/* スタミナ手帳 取扱説明書 共通スタイル (ライト/ダーク自動追従) */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-sub: #F1F5F9;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-sub: #64748B;
  --accent: #0D9488;
  --accent-hover: #0F766E;
  --accent-soft: rgba(13, 148, 136, 0.12);
  --on-accent: #FFFFFF;
  --step-bg: #F0FDFA;
  --step-border: #99F6E4;
  --badge-blue: #2563EB;
  --badge-blue-soft: #EFF6FF;
  --badge-orange: #EA580C;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B111A;
    --surface: #131C2A;
    --surface-sub: #1A2637;
    --border: #24354D;
    --text: #F1F5F9;
    --text-sub: #94A3B8;
    --accent: #2DD4BF;
    --accent-hover: #14B8A6;
    --accent-soft: rgba(45, 212, 191, 0.15);
    --on-accent: #042F2C;
    --step-bg: #0D2825;
    --step-border: #134E48;
    --badge-blue: #60A5FA;
    --badge-blue-soft: #1E293B;
    --badge-orange: #FB923C;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme="dark"] {
  --bg: #0B111A;
  --surface: #131C2A;
  --surface-sub: #1A2637;
  --border: #24354D;
  --text: #F1F5F9;
  --text-sub: #94A3B8;
  --accent: #2DD4BF;
  --accent-hover: #14B8A6;
  --accent-soft: rgba(45, 212, 191, 0.15);
  --on-accent: #042F2C;
  --step-bg: #0D2825;
  --step-border: #134E48;
  --badge-blue: #60A5FA;
  --badge-blue-soft: #1E293B;
  --badge-orange: #FB923C;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

/* ヘッダーナビゲーション */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
}
.site-header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.brand-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-pill {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
}
.global-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.global-nav a {
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-sub);
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.global-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.global-nav a[aria-current="page"] {
  color: var(--on-accent);
  background: var(--accent);
}

/* ヒーローバナー */
.hero-banner {
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%);
  padding: 40px 20px 24px;
  text-align: center;
}
.hero-banner .pill {
  display: inline-block;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero-banner h1 {
  font-size: 26px;
  margin: 0 0 12px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--text);
}
.hero-banner p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-sub);
  font-size: 14.5px;
}

/* メインコンテナ */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 18px 80px;
}

/* パンくずリスト */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-sub);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--accent);
}

/* カードセクション */
.card-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.card-section h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.card-section h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 24px 0 12px;
  color: var(--text);
}

/* やりたいことタグ */
.want-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.want-tag {
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-sub);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.want-tag:hover {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* 機能グリッド（トップ用） */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.feature-card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.feature-card-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.feature-card-desc {
  font-size: 13.5px;
  color: var(--text-sub);
  margin: 0 0 16px;
  flex-grow: 1;
}
.feature-card-link {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ステップ解説カード */
.step-item {
  background: var(--step-bg);
  border: 1px solid var(--step-border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 24px;
}
.step-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.step-badge {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 6px;
}
.step-title {
  font-size: 16.5px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

/* 画像ギャラリー・スクリーンショット */
.shot-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 20px 0;
}
@media (min-width: 640px) {
  .shot-container-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .shot-container-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}
.shot-card {
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.shot-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto;
}
.shot-caption {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-sub);
  margin-top: 10px;
}

/* コールアウト / ポイント */
.callout {
  background: var(--surface-sub);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14px;
}
.callout-title {
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.faq-item {
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.faq-q {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.faq-q-mark {
  color: var(--accent);
  font-size: 18px;
  line-height: 1.2;
}
.faq-a {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.65;
}

/* ページフッターナビゲーション（前へ・次へ） */
.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.page-nav-link {
  flex: 1;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.page-nav-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.page-nav-sub {
  font-size: 11.5px;
  color: var(--text-sub);
  font-weight: 700;
}
.page-nav-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--accent);
  margin-top: 4px;
}

/* フッター */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 30px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
