/* めものわ 取扱説明書 共通スタイル (ライト/ダーク自動追従) */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-sub: #F1F5F9;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-sub: #64748B;
  --accent: #2B6CB0;
  --accent-hover: #1E4E8C;
  --accent-soft: rgba(43, 108, 176, 0.12);
  --on-accent: #FFFFFF;
  --step-bg: #F8FAFC;
  --step-border: #CBD5E1;
  --gold: #D4A244;
  --gold-soft: rgba(212, 162, 68, 0.16);
  --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: #0B0F17;
    --surface: #131926;
    --surface-sub: #1A2234;
    --border: #26334A;
    --text: #F1F5F9;
    --text-sub: #94A3B8;
    --accent: #6FA8DC;
    --accent-hover: #93C5FD;
    --accent-soft: rgba(111, 168, 220, 0.16);
    --on-accent: #0B192C;
    --step-bg: #121A2A;
    --step-border: #1E2D44;
    --gold: #E0B050;
    --gold-soft: rgba(224, 176, 80, 0.2);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  --bg: #0B0F17;
  --surface: #131926;
  --surface-sub: #1A2234;
  --border: #26334A;
  --text: #F1F5F9;
  --text-sub: #94A3B8;
  --accent: #6FA8DC;
  --accent-hover: #93C5FD;
  --accent-soft: rgba(111, 168, 220, 0.16);
  --on-accent: #0B192C;
  --step-bg: #121A2A;
  --step-border: #1E2D44;
  --gold: #E0B050;
  --gold-soft: rgba(224, 176, 80, 0.2);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.5);
}

* { 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;
}

/* ツールバーアイコン一覧表 */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.tool-item {
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.tool-icon-box {
  width: 36px;
  height: 36px;
  background: #1B1E26;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 18px;
  flex-shrink: 0;
}
.tool-icon-box .tool-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.h-icon {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  margin-right: 0.15em;
}
.feature-card-icon .feature-icon {
  width: 26px;
  height: 26px;
  display: block;
}
.tool-text-box h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.tool-text-box p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* コールアウト / ポイント */
.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.gold {
  border-left-color: var(--gold);
}
.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: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}
.page-nav-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.page-nav-link.next {
  text-align: right;
  margin-left: auto;
}
.page-nav-sub {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-sub);
  display: block;
  margin-bottom: 4px;
}
.page-nav-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--accent);
}

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