/* ================================
   Flat. — Global Design System
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary:    #F8FAFC;
  --bg-surface:    #FFFFFF;
  --bg-card:       #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-input:      #F1F5F9;

  --border:        #E2E8F0;
  --border-focus:  #3B82F6;
  --border-hover:  #CBD5E1;

  --accent:        #2563EB; /* Deep, clear blue for readable logo & accents */
  --accent-light:  #1D4ED8;
  --accent-dim:    rgba(37, 99, 235, 0.15);
  --accent-glow:   rgba(37, 99, 235, 0.35);

  --mint:          #059669; /* Deeper mint/emerald */
  --mint-dim:      rgba(5, 150, 105, 0.15);

  --danger:        #E11D48;
  --danger-dim:    rgba(225, 29, 72, 0.15);

  --warning:       #D97706;
  --warning-dim:   rgba(217, 119, 6, 0.15);

  --text-primary:   #1E293B; /* Slate 800 (very clear, dark) */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted:     #64748B; /* Slate 500 */

  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  --shadow-sm:   0 2px 10px rgba(148, 163, 184, 0.08);
  --shadow-md:   0 8px 30px rgba(148, 163, 184, 0.12);
  --shadow-lg:   0 12px 40px rgba(148, 163, 184, 0.16);
  --shadow-glow: 0 4px 20px var(--accent-glow);

  --ease-out:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --t-fast:    0.2s;
  --t-base:    0.3s;
  --t-slow:    0.5s;

  --header-h: 64px;
  --max-w:    680px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
textarea, input { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── Animated Background ── */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
}
.bg-mesh::before,
.bg-mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.5;
  animation: drift 18s ease-in-out infinite alternate;
}
.bg-mesh::before {
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--accent-light), transparent 70%);
  top: -200px; left: -200px;
  animation-duration: 20s;
}
.bg-mesh::after {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--mint-dim), transparent 70%);
  bottom: -150px; right: -150px;
  animation-duration: 16s;
  animation-direction: alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(80px, 60px) scale(1.1); }
}

/* ── Page wrapper ── */
.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.logo-dot {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Main layout ── */
.main-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-out);
}
.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.card-glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ── Hero Section ── */
.hero {
  text-align: center;
  padding: 64px 20px 48px;
}
.hero-logo {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
}
.hero-tagline {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.hero-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Form Elements ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.form-input {
  padding: 12px 16px;
}
.form-textarea {
  padding: 14px 16px;
  resize: none;
  line-height: 1.7;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}
.char-counter {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
  transition: color var(--t-fast);
}
.char-counter.warning { color: var(--warning); }
.char-counter.danger  { color: var(--danger); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all var(--t-base) var(--ease-out);
  white-space: nowrap;
  user-select: none;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary {
  background: #BFDBFE; /* Faded pastel blue when disabled */
  color: #FFFFFF;
  box-shadow: none;
}
.btn-primary:not(:disabled) {
  background: #1D4ED8; /* Bold, highly-emphasized deep royal blue when enabled */
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}
.btn-primary:hover:not(:disabled) {
  background: #1E3A8A; /* Even darker blue on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.45);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-mint {
  background: #D1FAE5; /* Faded pastel mint when disabled */
  color: #065F46;      /* Soft forest green text for readability */
  box-shadow: none;
}
.btn-mint:not(:disabled) {
  background: #059669; /* Bold, highly-emphasized emerald green when enabled */
  color: #FFFFFF;      /* High contrast white text */
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}
.btn-mint:hover:not(:disabled) {
  background: #047857; /* Even darker green on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-danger {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(255,107,107,0.25);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(255,107,107,0.22);
}

.btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}
.btn-full { width: 100%; }

/* ── Badges / Status ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-open {
  background: var(--mint-dim);
  color: var(--mint);
  border: 1px solid rgba(0,201,167,0.25);
}
.badge-summarizing {
  background: var(--warning-dim);
  color: var(--warning);
  border: 1px solid rgba(255,184,77,0.25);
}
.badge-done {
  background: var(--accent-dim);
  color: var(--accent-light);
  border: 1px solid rgba(91,138,240,0.3);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-open .badge-dot { animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* ── Topic Display ── */
.topic-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(91,138,240,0.06), rgba(0,201,167,0.04));
  margin-bottom: 24px;
}
.topic-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.topic-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ── Opinion Item ── */
.opinion-item {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-primary);
  animation: fadeInUp var(--t-slow) var(--ease-out) both;
}
.opinion-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Count Display ── */
.count-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.count-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.count-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Loading / Spinner ── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(148,163,184,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.ai-loading {
  text-align: center;
  padding: 48px 24px;
}
.ai-orb {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--mint));
  margin: 0 auto 20px;
  animation: orb-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
@keyframes orb-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--accent-glow), 0 0 30px var(--accent-glow);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 20px transparent, 0 0 60px var(--accent-glow);
  }
}
.ai-loading-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.ai-loading-sub {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* ── Result Components ── */
.result-section {
  margin-bottom: 28px;
}
.result-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.issues-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.issue-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.6;
  animation: fadeInUp var(--t-slow) var(--ease-out) both;
}
.issue-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--accent-dim);
  color: var(--accent-light);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.needs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.need-chip {
  padding: 7px 14px;
  background: var(--mint-dim);
  border: 1px solid rgba(0,201,167,0.22);
  border-radius: var(--radius-full);
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 500;
  animation: fadeInUp var(--t-slow) var(--ease-out) both;
}

.proposal-box {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(91,138,240,0.1), rgba(0,201,167,0.08));
  border: 1px solid rgba(91,138,240,0.3);
  position: relative;
  overflow: hidden;
}
.proposal-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(0,201,167,0.06));
  pointer-events: none;
}
.proposal-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.proposal-text {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--text-primary);
}

.summary-box {
  padding: 18px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
}

/* ── Share Buttons ── */
.share-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-x {
  background: #334155;
  color: #fff;
  flex: 1;
  min-width: 120px;
}
.btn-x:hover:not(:disabled) {
  background: #1e293b;
  transform: translateY(-2px);
}
.btn-line {
  background: #22C55E;
  color: #fff;
  flex: 1;
  min-width: 120px;
}
.btn-line:hover:not(:disabled) {
  background: #16a34a;
  transform: translateY(-2px);
}
.btn-save {
  background: #FDE047;
  color: #854D0E;
  flex: 1;
  min-width: 120px;
}
.btn-save:hover:not(:disabled) {
  background: #FACC15;
  transform: translateY(-2px);
}

/* ── URL Share Box ── */
.url-share-box {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.url-text {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  word-break: break-all;
  line-height: 1.5;
}
.copy-btn {
  flex-shrink: 0;
  padding: 10px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(91,138,240,0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--t-fast);
}
.copy-btn:hover { background: rgba(91,138,240,0.22); }
.copy-btn.copied {
  background: var(--mint-dim);
  color: var(--mint);
  border-color: rgba(0,201,167,0.3);
}

/* ── Success State ── */
.success-card {
  text-align: center;
  padding: 40px 28px;
}
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--mint-dim);
  border: 2px solid rgba(0,201,167,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  animation: pop-in var(--t-slow) var(--ease-out) both;
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.success-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.success-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

/* ── Step Cards (Landing) ── */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 40px;
}
@media (max-width: 520px) {
  .steps-grid { grid-template-columns: 1fr; }
}
.step-card {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--t-base) var(--ease-out);
}
.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.step-num {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.step-1 .step-num { background: var(--accent-dim); color: var(--accent-light); }
.step-2 .step-num { background: var(--mint-dim); color: var(--mint); }
.step-3 .step-num { background: var(--warning-dim); color: var(--warning); }
.step-4 .step-num { background: rgba(168,85,247,0.14); color: #C084FC; }
.step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.step-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Admin Banner ── */
.admin-banner {
  padding: 12px 18px;
  background: linear-gradient(90deg, rgba(255,184,77,0.12), transparent);
  border: 1px solid rgba(255,184,77,0.22);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--warning);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

/* ── Section Heading ── */
.section-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ── Toast / Notification ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: toast-in var(--t-base) var(--ease-out) both;
  pointer-events: auto;
}
.toast-success {
  background: #A7F3D0;
  color: #064E3B;
  border: 1px solid rgba(167, 243, 208, 0.5);
}
.toast-error {
  background: #FECDD3;
  color: #881337;
  border: 1px solid rgba(253, 164, 175, 0.5);
}
.toast-info {
  background: #BFDBFE;
  color: #1E3A8A;
  border: 1px solid rgba(147, 197, 253, 0.5);
}
.toast-out { animation: toast-out var(--t-fast) var(--ease-in) both; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(8px) scale(0.95); }
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(100, 116, 139, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in var(--t-base) var(--ease-out);
}
.modal-box {
  width: 100%;
  max-width: 540px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  animation: slide-up var(--t-slow) var(--ease-out);
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.modal-sub {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.65;
}

/* ── URL section in modal ── */
.url-section {
  margin-bottom: 20px;
}
.url-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}
.url-section-label.participant { color: var(--mint); }
.url-section-label.admin { color: var(--warning); }
.url-admin-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Misc utilities ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-light); }
.text-mint { color: var(--mint); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .main-container { padding: 24px 16px 60px; }
  .modal-box { padding: 24px 20px; }
  .card { padding: 20px; }
  .hero { padding: 40px 16px 32px; }
  .share-row { flex-direction: column; }
}

/* ── AdSense 開発環境用プレースホルダー ── */
/* 広告がまだ読み込まれていない（審査待ち）期間中のみプレースホルダーを表示 */
ins.adsbygoogle[data-ad-client="ca-pub-5227506587735209"]:not([data-ad-status="filled"]):not([data-ad-status="unfilled"]) {
  background: var(--bg-card-hover);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  position: relative;
  display: block !important;
  width: 100%;
  min-height: 90px;
}
ins.adsbygoogle[data-ad-client="ca-pub-5227506587735209"]:not([data-ad-status="filled"]):not([data-ad-status="unfilled"])[data-ad-format="rectangle"] {
  min-height: 250px;
}
ins.adsbygoogle[data-ad-client="ca-pub-5227506587735209"]:not([data-ad-status="filled"]):not([data-ad-status="unfilled"])::before {
  content: "Google AdSense プレースホルダー\n(アドセンス審査通過後に自動的に本物の広告に切り替わります)";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  line-height: 1.6;
  padding: 16px;
}
