/* ── Flow1 オンボーディング: トークン参照は 00_共通/_tokens.css に一元化 ── */
@import url("_tokens.css");

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: var(--font-body);
  background-color: var(--surface);
  color: var(--gray-base);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ── Web アプリ化：スマホ枠モックアップは廃止、中央寄せ Web アプリ UI に ── */
.stage {
  min-height: 100vh;
  width: 100%;
  background: var(--surface);
  padding: 0;
  margin: 0;
  display: block;
}
.stage-meta { display: none !important; }
.phone {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.phone::before, .phone::after { display: none !important; content: none !important; }

/* ── ステータスバー（Webアプリ化のため全画面で非表示）── */
.status-bar { display: none !important; }

/* ── ナビバー（戻る＋タイトル＋アクション） ── */
.nav {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px 12px;
  background: var(--surface);
}
.nav-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gray-100); border: none; color: var(--gray-base);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-family: inherit;
}
.nav-btn .material-symbols-outlined { font-size: 20px; }
.nav-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 14px; font-weight: 900; color: var(--gray-base);
}
.nav-action {
  font-family: inherit; font-size: 13px; font-weight: 800;
  color: var(--primary); background: transparent; border: none; cursor: pointer;
  padding: 6px 10px;
}
.nav-action.is-disabled { color: var(--gray-slate); cursor: not-allowed; }

/* ── コンテンツ領域（Web アプリ：白基調） ── */
.content {
  flex: 1;
  padding: 18px 20px 28px;
  background: var(--surface);
  display: flex; flex-direction: column;
}
.content-tight { padding: 12px 20px 20px; }

.heading {
  font-family: var(--font-title);
  font-size: 22px; font-weight: 900; color: var(--gray-base);
  line-height: 1.45; margin-bottom: 8px;
}
.subheading {
  font-size: 12px; color: var(--gray-base);
  opacity: 0.78;
  line-height: 1.7; margin-bottom: 20px;
}

/* ── ボタン ── */
.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--primary); color: white;
  border: none; border-radius: 16px;
  font-family: inherit; font-size: 15px; font-weight: 900;
  box-shadow: 0 6px 16px -4px rgba(3,153,180,0.5);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:disabled { background: var(--gray-300); box-shadow: none; }
.btn-secondary {
  width: 100%;
  padding: 14px;
  background: var(--surface); color: var(--gray-base);
  border: 1px solid var(--gray-200); border-radius: 16px;
  font-family: inherit; font-size: 14px; font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-ghost {
  font-family: inherit; font-size: 13px; font-weight: 800;
  color: var(--primary); background: transparent; border: none; cursor: pointer;
  padding: 10px; display: inline-flex; align-items: center; gap: 4px;
}

/* ── 共通pill ── */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800;
  padding: 4px 10px; border-radius: 100px;
}
.pill.private { background: rgba(16,185,129,0.08); color: var(--success); border: 1px solid rgba(16,185,129,0.18); }
.pill.primary { background: var(--primary-pale); color: var(--primary); }
.pill .material-symbols-outlined { font-size: 12px; }

/* ── フッター注記 ── */
.footnote {
  font-size: 11px; color: var(--gray-slate);
  text-align: center; line-height: 1.7;
  margin-top: 16px;
}
.footnote .material-symbols-outlined { font-size: 12px; vertical-align: -2px; }

/* ── ナビ一覧 (index) ── */
.nav-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; max-width: 1200px; margin: 0 auto; padding: 20px;
}
.nav-card {
  display: block; text-decoration: none;
  padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--gray-200); border-radius: 18px;
  box-shadow: var(--shadow-card); color: var(--gray-base);
  transition: all 0.15s;
}
.nav-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--primary); }
.nav-card .step-tag {
  display: inline-block; font-size: 10px; font-weight: 800;
  color: var(--primary); letter-spacing: 0.15em;
  background: var(--primary-pale); padding: 3px 10px; border-radius: 100px;
  margin-bottom: 8px;
}
.nav-card .step-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 15px; font-weight: 900; margin-bottom: 4px;
}
.nav-card .step-desc { font-size: 11px; color: var(--gray-slate); line-height: 1.6; }

/* ── ボトムタブも常時非表示（Webアプリ化）── */
.tabbar { display: none !important; }

/* ── 480px 以下の狭幅スマホ向け軽い調整 ── */
@media (max-width: 480px) {
  .nav-title { font-size: 13px !important; }
  .heading { font-size: 18px !important; }
  .subheading { font-size: 12px !important; }
  input, textarea, select { font-size: 16px !important; /* iOS のフォーカス時自動ズーム回避 */ }
}
