/* =========================================================
   MAGNUM LP - style.css
   モバイルファースト / 背景白 / 上品で信頼感のあるデザイン
   ========================================================= */

/* ---- パレット & デザイントークン（spec.palette） ---- */
:root {
  --bg: #ffffff;
  --text: #1a1a2e;
  --primary: #16213e;
  --accent: #2563eb;

  --text-muted: #5b6275;
  --border: #e7e9ef;
  --surface: #ffffff;
  --surface-alt: #eef3fd;

  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-grad: linear-gradient(135deg, #2f6bed 0%, #6d5ef0 100%);
  --primary-soft: rgba(22, 33, 62, 0.06);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(22, 33, 62, 0.06), 0 1px 2px rgba(22, 33, 62, 0.04);
  --shadow-md: 0 8px 24px rgba(22, 33, 62, 0.08);
  --shadow-lg: 0 16px 48px rgba(22, 33, 62, 0.12);

  --header-h: 64px;
  --maxw: 1200px;
  --maxw-narrow: 820px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

/* ---- リセット ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---- レイアウト ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: var(--maxw-narrow); }

/* スクリーンリーダー用（視覚的に非表示・SEO/アクセシビリティ目的） */
.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;
}

.section { padding: 64px 0; }
.section-alt { background: var(--surface-alt); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section-title {
  font-size: 1.7rem;
  line-height: 1.4;
  font-weight: 800;
  -webkit-text-stroke: 0.4px currentColor;
  text-stroke: 0.4px currentColor;
  color: var(--primary);
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 56px; height: 3px;
  border-radius: 2px;
  background: var(--accent-grad);
}
.section-lead { color: var(--text-muted); margin-top: 16px; font-size: 0.98rem; }

/* ---- グリッド ---- */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 4px 14px rgba(47,107,237,0.28); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 6px 20px rgba(47,107,237,0.38); }

.btn-outline-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: #fff; color: var(--primary); }

.btn-outline-dark { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.btn-line { background: #06c755; color: #fff; box-shadow: var(--shadow-sm); }
.btn-line:hover { background: #05b14c; box-shadow: var(--shadow-md); }

/* =========================================================
   ヘッダー（追従）
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 16px; }
.logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
  color: var(--primary);
  margin-right: auto;
}
.logo-tag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em; color: var(--accent); }
.logo-name { font-size: 1.45rem; font-weight: 800; letter-spacing: 0.08em; }

.nav-list { display: none; }
.header-cta { display: none; }

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  padding: 10px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルナビ展開 */
.nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.nav.open { max-height: 70vh; }
.nav .nav-list {
  display: flex;
  flex-direction: column;
  padding: 8px 20px 20px;
}
.nav .nav-list li a {
  display: block;
  padding: 14px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}
.nav .nav-list li a:hover { color: var(--accent); }

/* =========================================================
   1. ヒーロー / スライダー
   ========================================================= */
/* ============ ヒーロー（白背景・2カラム） ============ */
.hero {
  position: relative;
  background: var(--bg);
  margin-top: var(--header-h);
  padding: 10px 0 14px;            /* ヘッダーとの上スペースを約70%圧縮（34px→10px） */
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; padding: 0; } /* モバイルは左右余白なし＝画面最大 */
.hero-inner { display: grid; gap: 30px; align-items: center; }
.hero-eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.hero-headline {
  color: var(--primary);
  font-size: 1.7rem;
  line-height: 1.45;
  font-weight: 800;
}
.hero-subcopy {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 0.98rem;
}
.hero-cta-group {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
}
.hero-badges li {
  position: relative;
  padding-left: 22px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.hero-badges li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* スライダー（正方形バナー。モバイルは画面いっぱいのフルブリード） */
.hero-media {
  display: flex;
  flex-wrap: wrap;          /* スマホ：画像の下に矢印が折り返す */
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.slider {
  order: 0;
  flex: 0 0 100%;           /* スマホ：画像が1行を占有し、矢印は下へ */
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;        /* モバイル：画面最大 */
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;       /* モバイルは角丸なしで全幅 */
  background: var(--surface-alt);
  box-shadow: var(--shadow-lg);
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slider-arrow {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #e8eaee;          /* 薄いグレー */
  border: none;
  color: #6b7280;               /* グレーのアイコン */
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, transform 0.2s, color 0.2s;
}
.slider-arrow:hover { background: #dbdee4; color: #4b5563; }
/* スマホ：両矢印を画像の下に折り返して中央配置 */
.slider-prev { order: 1; }
.slider-next { order: 2; }

/* ヒーロー画像と最初のセクション（POINTS）の間隔を約50%圧縮 */
#points { padding-top: 24px; }
@media (min-width: 768px) { #points { padding-top: 30px; } }

.slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.slider-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 0 0 1px rgba(22,33,62,0.15);
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.slider-dots button.active { background: var(--accent); transform: scale(1.3); }

/* =========================================================
   カード共通
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,0.4); }
.card-title { font-size: 1.08rem; font-weight: 700; color: var(--primary); line-height: 1.5; }
.card-lead { color: var(--primary); font-weight: 700; margin-top: 10px; font-size: 0.98rem; line-height: 1.7; }
/* 選ばれる理由：見出しは紺背景＋白文字（番号なし） */
#reasonsGrid .card-title { background: var(--primary); color: #fff; padding: 11px 14px; border-radius: var(--radius-sm); }
.card-lead + .card-desc { margin-top: 8px; }
.card-desc { color: var(--text-muted); margin-top: 12px; font-size: 0.93rem; }
.card-price { color: var(--accent); font-weight: 800; margin-top: 12px; font-size: 1.12rem; letter-spacing: 0.02em; }

/* 便利な機能例：各カード左に縦グラデ帯でメリハリ＋見出し強調 */
#featuresGrid .card { position: relative; overflow: hidden; padding-left: 26px; }
#featuresGrid .card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--accent-grad);
}
#featuresGrid .card-title { font-size: 1.1rem; }
#featuresGrid .card-desc { margin-top: 8px; }

/* ポイント / 理由：番号バッジ */
.card-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* 対応業種：業種名のみ／枠の色を1つずつ変える */
.industry-box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 92px;
  padding: 18px 16px;
  border: 2px solid var(--border);   /* 実際の色は main.js が業種ごとに設定 */
  border-radius: var(--radius);
  background: var(--surface-alt);
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.industry-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.industry-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: inherit;                    /* 親(.industry-box)の業種カラーを継承 */
}

/* 事例カード（実サイトのPCスクリーンショットを表示・店舗名は非表示） */
.cases-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cases-grid { grid-template-columns: repeat(3, 1fr); } }
.case-card {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
/* リンクカードのホバー時：「サイトを見る ↗」を表示 */
a.case-card::after {
  content: "サイトを見る ↗";
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 16px 14px;
  background: linear-gradient(transparent, rgba(22, 33, 62, 0.88));
  color: #fff; font-weight: 700; font-size: 0.92rem; text-align: center;
  opacity: 0; transition: opacity 0.2s var(--ease);
  pointer-events: none;
}
a.case-card:hover::after { opacity: 1; }

/* Fu-Reel（TikTok型）バナー */
.banner-strip { padding: 30px 0; }
.banner-link {
  display: block;
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.banner-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.banner-link img { width: 100%; height: auto; display: block; }
/* ヒーロー直下バナー（非リンク画像）：横幅をヒーロー画像に合わせる */
.banner-strip--tight { padding: 8px 0 30px; }
.banner-strip--tight > .container { padding: 0; }        /* モバイル：全幅（ヒーローと同様） */
.banner-img {
  max-width: none;          /* モバイル：全幅 */
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.banner-img img { width: 100%; height: auto; display: block; }
@media (min-width: 768px) {
  .banner-strip--tight > .container { padding: 0 20px; }
  .banner-img { max-width: 680px; border-radius: var(--radius); }
}
@media (min-width: 1000px) {
  .banner-img { max-width: 796px; }   /* ＝ヒーロー画像と同じ */
}
.case-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* 全機能 */
.allfeatures-grid { gap: 14px; }
.allfeatures-toggle { text-align: center; }
.allfeatures-grid.is-collapsed { display: none; }
.allfeatures-grid:not(.is-collapsed) { margin-top: 24px; }
.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-item:hover { border-color: rgba(37,99,235,0.4); box-shadow: var(--shadow-md); }
.feature-check {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 800;
  margin-top: 2px;
}
.feature-item .fi-title { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.feature-item .fi-desc { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; line-height: 1.7; }

/* =========================================================
   料金プラン
   ========================================================= */
.plans-grid { align-items: stretch; }
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card.featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.plan-badge {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.plan-card.featured .plan-badge { background: var(--accent); color: #fff; }
.plan-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; margin-bottom: 3px; line-height: 1.2; }
.plan-name { font-size: 1.44rem; font-weight: 900; color: var(--primary); font-family: "Meiryo", "Yu Gothic", var(--font); }
.plan-monthly { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin: 10px 0 18px; }
.plan-terms {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.plan-term {
  flex: 1 1 30%;
  min-width: 88px;
  text-align: center;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
}
.plan-term .pt-label { font-size: 0.78rem; color: var(--text-muted); }
.plan-term .pt-price { font-weight: 700; color: var(--primary); font-size: 0.92rem; margin-top: 4px; }
.plan-features { margin-bottom: 18px; }
.plan-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text);
}
.plan-features li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-weight: 800;
}
.plan-note { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.plan-card .btn { margin-top: auto; }
.plans-disclaimer { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 26px; }

/* 料金：割引価格表示 */
.plan-price { margin: 6px 0 18px; }
.plan-price-regular { display: block; color: var(--text-muted); text-decoration: line-through; font-size: 0.9rem; margin-bottom: 2px; }
.plan-price-now { display: flex; align-items: baseline; gap: 3px; }
.plan-price-amount { font-size: 1.85rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.plan-cycle { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; }

/* 料金グリッド（7プラン対応） */
.plans-grid { grid-template-columns: 1fr; }
@media (min-width: 680px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } }

/* オプション */
.options-head { text-align: center; margin: 56px auto 24px; max-width: 720px; }
.options-title { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.options-lead { color: var(--text-muted); font-size: 0.92rem; margin-top: 8px; }
.options-grid { grid-template-columns: 1fr; }
@media (min-width: 680px) { .options-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .options-grid { grid-template-columns: repeat(3, 1fr); } }
.option-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.option-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.option-cycle {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.option-cycle.monthly { background: var(--accent-soft); color: #1d4ed8; }
.option-cycle.onetime { background: rgba(47,128,237,0.12); color: #2f80ed; }
.option-name { font-size: 1.02rem; font-weight: 800; color: var(--primary); line-height: 1.5; }
.option-price { color: var(--accent); font-weight: 800; font-size: 1.15rem; margin: 6px 0 12px; }
.option-features { margin: 0; }
.option-features li {
  position: relative; padding-left: 18px; margin-bottom: 8px;
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.6;
}
.option-features li::before { content: "・"; position: absolute; left: 2px; top: 0; color: var(--accent); font-weight: 800; }

/* =========================================================
   FAQ アコーディオン
   ========================================================= */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 52px 18px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--primary);
  position: relative;
  line-height: 1.6;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.3s var(--ease);
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-a-inner { padding: 0 20px 20px; color: var(--text-muted); font-size: 0.92rem; }

/* =========================================================
   無料相談
   ========================================================= */
.consult-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.consult-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.consult-label { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.consult-phone {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
  margin: 10px 0;
}
.consult-phone:hover { color: var(--accent); }
.consult-hours { color: var(--text-muted); font-size: 0.88rem; margin-top: 8px; }
.consult-card .btn { margin: 6px 0 12px; }

/* =========================================================
   問合せフォーム
   ========================================================= */
.req { color: #d4373b; margin-left: 2px; }
.req-note { display: block; font-size: 0.82rem; margin-top: 6px; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 20px; border: none; padding: 0; }
.form-group legend,
.form-group > label {
  display: block;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { resize: vertical; }

.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500 !important;
  color: var(--text) !important;
  cursor: pointer;
  margin-bottom: 0 !important;
  font-size: 0.95rem;
  line-height: 1.6;
}
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: 0 0 auto; }

.error-msg { color: #d4373b; font-size: 0.82rem; margin-top: 6px; min-height: 0; }
.field-error input,
.field-error textarea { border-color: #d4373b !important; background: #fef6f6; }
.field-error.form-group .checkbox-row,
.field-error .checkbox { /* チェック群のハイライト */ }
.field-error legend,
.field-error > label { color: #d4373b; }

.form-thanks {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--primary);
  font-weight: 700;
  text-align: center;
}

/* =========================================================
   フッター
   ========================================================= */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.85); }
.footer-inner {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  padding-top: 48px;
  padding-bottom: 36px;
}
.footer-logo-yomi { font-size: 0.8rem; letter-spacing: 0.25em; color: rgba(255,255,255,0.65); margin-bottom: 2px; }
.footer-logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.08em; color: #fff; }
.footer-tagline { font-size: 0.88rem; margin-top: 6px; color: rgba(255,255,255,0.7); }
.footer-info p { font-size: 0.9rem; margin-bottom: 6px; }
.footer-operator { font-weight: 700; color: #fff; }
.footer-info a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.45); }
.footer-info a:hover { text-decoration-color: #fff; }
.footer-policy { margin-top: 6px; }
/* フッター サイトマップ（全ページへのリンク） */
.footer-nav { display: flex; flex-wrap: wrap; gap: 9px 22px; margin: 10px auto 2px; padding: 22px 20px 2px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-nav a { color: rgba(255,255,255,0.72); font-size: 0.84rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 0; }
.footer-bottom small { color: rgba(255,255,255,0.6); font-size: 0.8rem; }

/* フォーム内のプライバシーポリシーリンク */
.checkbox a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* 法務ページ（プライバシーポリシー等） */
.legal { margin-top: var(--header-h); }
.legal-body { color: var(--text); line-height: 1.9; }
.legal-body h2 { font-size: 1.12rem; font-weight: 800; color: var(--primary); margin: 30px 0 10px; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul { list-style: disc; padding-left: 1.4em; margin: 0 0 14px; }
.legal-body ul li { margin-bottom: 6px; }
.legal-lead { color: var(--text-muted); margin-bottom: 8px; }
.legal-meta { color: var(--text-muted); font-size: 0.9rem; margin-top: 28px; }
.legal-back { margin-top: 36px; }
.legal-back a { color: var(--accent); font-weight: 700; }

/* =========================================================
   スクロールリビール
   ========================================================= */
/* スクロールリビール：JS無し（サブページ）では常に表示。LPは main.js が html に .js-reveal を付与してアニメ */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js-reveal .reveal.in-view { opacity: 1; transform: none; }
/* サブページのタイトル（先頭セクション）：ヘッダー下の余白を統一・圧縮（LPのヒーローは除外） */
main > section:first-child:not(.hero) { padding-top: calc(var(--header-h) + 24px) !important; padding-bottom: 16px !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .slide { transition: none; }
  .btn:hover, .card:hover, .plan-card:hover { transform: none; }
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (min-width: 600px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .consult-grid { grid-template-columns: 1fr 1fr; }
  .hero-headline { font-size: 2rem; }
}

@media (min-width: 768px) {
  body { font-size: 17px; }
  .section { padding: 88px 0; }
  .section-title { font-size: 2.1rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .slider-arrow { width: 48px; height: 48px; }
  .footer-inner { grid-template-columns: 1.2fr 1fr; }
  /* タブレット以上：画像を内寄せ・角丸に戻す */
  .hero > .container { padding: 0 20px; }
  .slider { max-width: 680px; border-radius: var(--radius); }
}

@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 14px 0 22px; }
  /* PC：矢印を画像の左右（外側）に配置。画像は最大796px */
  .hero-media { flex-wrap: nowrap; }
  .hero-media .slider { order: 0; flex: 0 1 796px; max-width: 796px; margin: 0; }
  .slider-prev { order: -1; }
}

@media (min-width: 1024px) {
  /* デスクトップヘッダー：ナビ＋CTA表示、ハンバーガー非表示 */
  .hamburger { display: none; }
  .nav {
    position: static;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    border: none;
    background: transparent;
    margin-right: 20px;
  }
  .nav .nav-list { flex-direction: row; padding: 0; gap: 22px; }
  .nav .nav-list li a { border: none; padding: 6px 2px; font-size: 0.95rem; }
  .nav-list { display: flex; }
  .header-cta { display: inline-flex; }
  /* PC版：ヘッダー幅（左右11.5%ずつ空けて中央寄せ＝幅77%。70%から10%拡大） */
  .site-header {
    left: 11.5%;
    right: 11.5%;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 6px 20px rgba(22, 33, 62, 0.08);
  }
}

@media (min-width: 1200px) {
  .hero-headline { font-size: 2.6rem; }
}
