/* ============================================================
   MIROCANA 自社サイト v3.1 — 参照デザイン準拠・ライト基調・EC版
   （2026-09-05 tomo指示「添付の形で作り直す」＋同日午後EC版決定）
   設計書＝Vault 80_Projects/LP制作事業部/自社サイト_v3設計書_参照デザイン準拠_2026-09-05.md
   実装指示＝同フォルダ 自社サイト_v3実装指示_Sonnet_2026-09-05.md

   構成：
   1. トークン(:root)
   2. リセット・基礎
   3. ユーティリティ（container / ph / pc-sp / reveal / focus-visible）
   4. 共通部品（ヘッダー＋ドロワー／ボタン／sec-head／link-more／フォーム／FAQ／フッター）
   5. トップページ セクション別（ヒーロー〜お問い合わせ）
   6. 下層ページ互換ブロック（services/*・404・legal/*）
   7. reduced-motion
   ============================================================ */

/* ============================================================
   1. デザイントークン（正本）
   ============================================================ */
:root {
  /* 地（セクションは クリーム／白 を交互に。ヒーロー・お問い合わせ・フッターは暗面） */
  --bg: #FFFFFF;                 /* 白面 */
  --bg-cream: #F7F4EF;           /* クリーム面 */
  --bg-dark: #202020;            /* 暗面（純黒ではない） */
  --bg-dark-soft: #2A2A2A;       /* 暗面の一段浮いた面 */
  --surface: #FFFFFF;            /* カード・パネル */
  --surface-tint: #FBF9F6;       /* サービス一覧の列パネル */

  /* 文字（明面） */
  --ink: #1F1F1F;
  --ink-soft: #4F4F4F;
  --ink-faint: #6B6B6B;          /* 注記。白面5.3:1／クリーム面4.9:1 */

  /* 文字（暗面） */
  --on-dark: #FFFFFF;
  --on-dark-soft: rgba(255, 255, 255, .76);
  --on-dark-faint: rgba(255, 255, 255, .58);

  /* アクセント（橙＝正式ロゴ実測値。UIのアクセントはこの1系統だけ） */
  --accent: #FB6223;             /* ボタン地・アイコン・点線・大きな数字（19px以上の太字か、非テキスト用途） */
  --accent-hover: #E3521A;
  --accent-text: #BF3F0E;        /* 16px前後の橙文字（ラベル・テキストリンク）。白面5.3:1／クリーム面4.9:1 */
  --accent-soft: #FDEBE2;        /* アイコン円・バッジの薄い地（文字は --ink） */
  --accent-line: #F9C7AE;        /* 点線・薄い枠 */
  --accent-text-on-dark: #FFB199; /* 暗面用のエラー文字色（--accent-textは暗面で沈むため） */

  /* 罫線・影 */
  --line: #E9E3DA;
  --line-dark: rgba(255, 255, 255, .16);
  --shadow-card: 0 4px 16px rgba(31, 31, 31, .06);
  --shadow-hover: 0 12px 28px rgba(31, 31, 31, .10);

  /* 書体 */
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* 角丸（体系は1つ＝12px系。ボタンだけピル） */
  --radius-card: 12px;
  --radius-ui: 8px;
  --radius-pill: 999px;

  /* 幅・余白 */
  --container: 1200px;
  --header-h: 80px;
  --space-section: clamp(56px, 6vw, 88px);
}

/* ============================================================
   2. リセット・基礎
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;            /* remの基準は16pxのまま動かさない */
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong { font-weight: 700; }
svg { display: block; }

::selection { background: var(--accent); color: var(--on-dark); }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-header :focus-visible,
.hero :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--on-dark);
}

/* スキップリンク */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-dark); font-weight: 700; font-size: 1rem;
  padding: 12px 20px; border-radius: var(--radius-ui);
  text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   3. ユーティリティ
   ============================================================ */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container-narrow { max-width: 760px; }
.ph { display: inline-block; }           /* 見出しの意味改行 */
.pc-only { display: inline; }
.sp-only { display: none; }
@media (max-width: 767px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }
  .container { width: min(100% - 40px, var(--container)); }
}

/* スクロール出現（main.jsが .is-visible を付ける） */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* グリッドアイテムの既定 min-width:auto によるはみ出し防止
   （320px等の狭幅で.phの日本語見出しがグリッドトラックを押し広げるのを防ぐ） */
.hero-grid > *, .concept-layout > *, .scene-grid > *, .svc-grid > *,
.pain-grid > *, .plan-grid > *, .steps > *, .faq-layout > *,
.contact-grid > *, .footer-grid > * { min-width: 0; }

/* ============================================================
   4. 共通部品
   ============================================================ */

/* ---------- 4-1. ヘッダー＋ドロワー ---------- */
.header-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: var(--bg-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.header-inner {
  width: min(100% - 48px, 1280px); margin-inline: auto; height: 100%;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { height: 28px; width: auto; }
.brand-word, .wordmark {
  font-family: var(--font-en); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .14em; color: var(--on-dark); text-decoration: none;
}
.global-nav { margin-left: auto; display: flex; gap: 28px; }
.global-nav a {
  color: var(--on-dark-soft); text-decoration: none; font-size: 1rem; font-weight: 500;
  white-space: nowrap;
  transition: color .3s ease;
}
.global-nav a:hover { color: var(--on-dark); }

.btn-header .btn-label-short { display: none; }
.btn-header { white-space: nowrap; flex-shrink: 0; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto; flex-shrink: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--on-dark); cursor: pointer; padding: 0;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ナビ5項目＋ロゴ＋CTAは1024pxちょうどでは実測上ほぼ隙間なし（913px+gap48px≒961px＝
   header-innerの実測幅と同一）で折り返す危険があるため、余裕を見て1099px以下で
   ハンバーガーに切り替える（設計書§4-1の「1023px以下」から実装上の安全側に調整）。 */
@media (max-width: 1099px) {
  .global-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { gap: 14px; }
  .btn-header .btn-label-full { display: none; }
  .btn-header .btn-label-short { display: inline; }
}

/* 480px以下：ロゴ＋短縮CTA＋ハンバーガーが実測で363px必要（327px幅に対し36px超過）
   なので、ワードマークの文字サイズ(16px超を維持=DoD#4)以外の余白・CTA矢印を
   切り詰めて収める（設計書§3-4のブレークポイント480＝「SP微調整」に相当）。
   文言そのものは変えない。 */
@media (max-width: 480px) {
  .header-inner { gap: 6px; }
  .brand { gap: 4px; }
  .brand-mark { height: 20px; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-toggle svg { width: 22px; height: 22px; }
  .btn-header { padding: 8px 10px; gap: 0; }
  .btn-header::after { display: none; }
}
/* 340px以下：それでもロゴ＋短縮CTA＋ハンバーガーが収まらない極小幅のみ、
   ワードマーク文字を隠しロゴマークだけにする（ブランド名の視認性はロゴで確保）。
   320px実測で採用。text-decoration等は.brandに残る＝アイコンだけでも#topへ戻れる。 */
@media (max-width: 340px) {
  .brand-word { display: none; }
  .brand { gap: 0; }
}

@media (max-width: 767px) {
  .site-header { height: 64px; }
  html { scroll-padding-top: calc(64px + 12px); }
}

.nav-overlay {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(0, 0, 0, .45);
  opacity: 0; pointer-events: none; transition: opacity .24s ease;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

.site-drawer {
  position: fixed; top: 0; right: 0; z-index: 60;
  height: 100vh; width: min(84vw, 360px);
  background: var(--surface); color: var(--ink);
  display: flex; flex-direction: column;
  padding: 20px 28px 28px;
  box-shadow: -12px 0 32px rgba(0, 0, 0, .18);
  transform: translateX(100%);
  transition: transform .24s ease;
}
.site-drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.drawer-close {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--ink); cursor: pointer; padding: 0;
}
.drawer-close svg { width: 24px; height: 24px; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a {
  display: block; padding: 15px 4px; font-size: 1.125rem; font-weight: 700; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.drawer-cta { margin-top: auto; padding-top: 20px; }
.drawer-cta .btn { width: 100%; }

/* ---------- 4-2. ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-jp); font-size: 1.1875rem; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer; border: 0; border-radius: var(--radius-pill);
  padding: 16px 32px;
  transition: transform .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn::after { content: "→"; font-family: var(--font-en); font-weight: 500; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--on-dark); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline-dark { background: transparent; color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .55); }
.btn-outline-dark:hover { border-color: var(--on-dark); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); }
.btn-secondary { background: transparent; color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .55); } /* LP互換＝outline-darkの別名 */
.btn-secondary:hover { border-color: var(--on-dark); }
/* 下層ページ(services/*)は class="btn btn-header"（.btn-primary無し）で使われるため、
   単独でも橙地・白文字になるようここで直接指定する（v2の.btn-header挙動を踏襲） */
.btn-header { padding: 10px 22px; background: var(--accent); color: var(--on-dark); }
.btn-header:hover { background: var(--accent-hover); }
@media (max-width: 767px) { .btn-header { padding: 8px 16px; } }
.btn-submit { width: 100%; }
/* .em指定だと.btn(19px)の子で14.25pxに落ち16px未満ゼロ(DoD#4)に反するためrem固定 */
.btn-sub { display: block; margin-top: 2px; font-size: 1rem; font-weight: 500; opacity: .85; }

/* ---------- 4-3. 節の見出しブロック ---------- */
.sec-head { margin-bottom: 40px; }
.sec-head-flex { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-label {
  margin: 0 0 14px;
  font-family: var(--font-en); font-weight: 600; font-size: .875rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text);
}
.section-title {
  margin: 0 0 16px; font-family: var(--font-serif); color: var(--ink);
  font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 600; line-height: 1.5; letter-spacing: .04em;
}
.section-lead { margin: 0; max-width: 44em; font-size: 1.0625rem; color: var(--ink-soft); }
.sec-more {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 1rem; font-weight: 700; color: var(--ink); text-decoration: none;
}
.sec-more::after { content: "→"; color: var(--accent-text); transition: transform .3s ease; }
.sec-more:hover::after { transform: translateX(4px); }

/* ---------- 4-4. テキストリンク ---------- */
.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 700; color: var(--ink); text-decoration: none;
}
.link-more::after { content: "→"; color: var(--accent-text); transition: transform .3s ease; }
.link-more:hover::after { transform: translateX(4px); }

/* ---------- 4-5. フォーム ---------- */
/* grid（の暗黙auto列）は320px等の狭幅で内容がトラックを押し広げるため、単純な縦積みはflexにする */
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 1rem; font-weight: 700; color: var(--ink); }
.label-opt { font-weight: 400; color: var(--ink-faint); margin-left: 6px; font-size: 1rem; }
.form-field input, .form-field textarea {
  font-family: var(--font-jp); font-size: 1.0625rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-ui);
  padding: 14px 16px;
  transition: border-color .3s ease;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px;
}
.form-field textarea { resize: vertical; }
.form-error { margin: 0; color: var(--accent-text); font-size: 1rem; font-weight: 700; }
.form-note { margin: 0; font-size: 1rem; color: var(--ink-faint); }

/* ---------- 4-6. FAQアコーディオン ---------- */
.faq-list { margin-top: 20px; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 20px 56px 20px 24px;
  font-size: 1.0625rem; font-weight: 700; line-height: 1.6; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q."; flex: none; font-family: var(--font-en); font-weight: 700; color: var(--accent-text);
}
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 18px;
  font-family: var(--font-en); font-weight: 400; font-size: 1.5rem; color: var(--accent-text);
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 24px 22px; font-size: 1rem; color: var(--ink-soft); }

/* ---------- 4-7. フッター ---------- */
.site-footer { background: var(--bg-dark); color: var(--on-dark); border-top: 1px solid var(--line-dark); padding: 64px 0 28px; }

/* トップ用フッター（4列グリッド） */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand-mark { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand-mark img { height: 28px; width: auto; }
.footer-brand-mark span { font-family: var(--font-en); font-weight: 700; font-size: 1.05rem; letter-spacing: .14em; color: var(--on-dark); }
.footer-tagline { margin: 0; font-size: 1rem; color: var(--on-dark-soft); line-height: 1.8; max-width: 26em; }
.footer-col h4 { margin: 0 0 16px; font-size: 1rem; font-weight: 700; color: var(--on-dark); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--on-dark-soft); text-decoration: none; font-size: 1rem; }
.footer-col a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
}
.footer-copyright { margin: 0; font-family: var(--font-en); font-size: 1rem; color: var(--on-dark-faint); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-legal a { color: var(--on-dark-soft); font-size: 1rem; text-decoration: none; }
.footer-legal a:hover { color: var(--on-dark); text-decoration: underline; }
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* 下層用フッター（1列・簡素） */
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-wordmark {
  margin: 0; font-family: var(--font-en); font-weight: 700; font-size: 1.4rem;
  letter-spacing: .1em; color: var(--on-dark);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.footer-nav a { color: var(--on-dark-soft); text-decoration: none; font-size: 1rem; }
.footer-nav a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-copy { margin: 0; font-size: 1rem; color: var(--on-dark-faint); font-family: var(--font-en); }

/* ============================================================
   5. トップページ セクション別
   ============================================================ */

/* ---------- 5-2. ヒーロー ---------- */
.hero-top { position: relative; overflow: hidden; padding: calc(var(--header-h) + 56px) 0 0; }
.hero-top .hero-grid {
  display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  gap: 48px; align-items: center;
  min-height: clamp(560px, 64vh, 700px);
  padding-bottom: 40px;
}
.hero-top .hero-title {
  margin: 0 0 24px; font-family: var(--font-serif); color: var(--on-dark);
  /* 設計書§3-3は clamp(1.9rem,1.2rem+2.2vw,2.9rem)+letter-spacing .04em だが、
     44:56グリッドの左カラム（1024px時 約408px）にも375px単カラム（約335px）にも
     「売れる売り場をつくる。」(11字)が収まらず語中折れするため、
     上限を2.2rem・下限を1.85remへ調整し、letter-spacingを0にした
     （字間を空けるほど11字ぎりぎりの行が折れやすくなるため）。実装報告に記載。 */
  font-size: clamp(1.85rem, 1.35rem + 1.25vw, 2.2rem);
  font-weight: 600; line-height: 1.55; letter-spacing: 0;
}
.hero-top .hero-title .ph { overflow: hidden; }
.hero-top .hero-title .ph > span {
  display: inline-block; transform: translateY(110%);
  animation: heroRise .8s cubic-bezier(.22, .7, .3, 1) forwards;
}
.hero-top .hero-title .ph:nth-child(2) > span { animation-delay: .1s; }
.hero-top .hero-title .ph:nth-child(3) > span { animation-delay: .2s; }
@keyframes heroRise { to { transform: none; } }

.hero-top .hero-lead { margin: 0 0 32px; max-width: 30em; font-size: 1.0625rem; color: var(--on-dark-soft); }
.hero-top .hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0; }
.hero-top .hero-lead, .hero-top .hero-cta, .hero-top .hero-trust {
  opacity: 0; animation: heroFade .8s ease forwards;
}
.hero-top .hero-lead { animation-delay: .3s; }
.hero-top .hero-cta { animation-delay: .42s; }
.hero-top .hero-trust { animation-delay: .52s; }
.hero-top .hero-visual { position: relative; opacity: 0; animation: heroFade .9s ease .35s forwards; }
@keyframes heroFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-top .hero-visual img { width: 100%; max-width: 720px; height: auto; margin-inline: auto; }
@media (min-width: 1280px) { .hero-top .hero-visual img { margin-right: -5%; } }

.hero-trust {
  border-top: 1px solid var(--line-dark);
  padding: 26px 0; display: flex; flex-wrap: wrap;
}
.hero-trust-item {
  margin: 0; flex: 1 1 0; padding: 0 28px; font-size: 1rem; color: var(--on-dark-soft);
  border-left: 1px solid var(--line-dark);
}
.hero-trust-item:first-child { border-left: 0; padding-left: 0; }

.hero-scroll {
  position: absolute; left: 24px; bottom: 18px; margin: 0;
  font-family: var(--font-en); font-size: 1rem; letter-spacing: .05em; color: var(--on-dark-faint);
}

@media (max-width: 1023px) {
  .hero-top .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 32px; }
  .hero-top .hero-visual { max-width: 520px; margin-inline: auto; order: 2; }
  .hero-top .hero-copy { order: 1; }
}
@media (max-width: 767px) {
  .hero-top { padding-top: calc(64px + 32px); }
  .hero-trust { flex-direction: column; }
  .hero-trust-item { border-left: 0; border-top: 1px solid var(--line-dark); padding: 16px 0 0; }
  .hero-trust-item:first-child { border-top: 0; padding-top: 0; }
  .hero-scroll { display: none; }
}
@media (max-width: 359px) {
  /* 320px幅では1.85rem(min)でも「売れる売り場をつくる。」(11字)が
     コンテナ幅(280px)に収まらず語中折れするため、この幅域だけさらに縮める */
  .hero-top .hero-title { font-size: 1.55rem; }
}

/* ---------- 5-3. CONCEPT ---------- */
#concept { background: var(--bg-cream); }
.concept-layout { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); gap: 56px; }
.concept-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.concept-item { border-left: 1px solid var(--line); padding-left: 24px; }
.concept-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.concept-icon svg { width: 28px; height: 28px; stroke: var(--accent); }
.concept-item h3 { margin: 0 0 10px; font-size: 1.125rem; font-weight: 700; color: var(--ink); line-height: 1.6; }
.concept-item p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 1023px) {
  .concept-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
  .concept-list { grid-template-columns: 1fr; gap: 0; }
  .concept-item {
    display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start;
    border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding: 20px 0;
  }
  .concept-item:first-child { border-top: 0; }
  .concept-icon { width: 56px; height: 56px; margin-bottom: 0; }
  .concept-icon svg { width: 24px; height: 24px; }
}

/* ---------- 5-4. SERVICE SCENE ---------- */
#scene { background: var(--surface); }
.scene-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.scene-head .sec-label { justify-content: center; }
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scene-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 32px 24px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.scene-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.scene-card::before {
  content: ""; position: absolute; right: -50px; bottom: -50px; z-index: 0;
  width: 220px; height: 220px; border-radius: 50%; background: var(--accent-soft);
}
.scene-text, .scene-visual { position: relative; z-index: 1; }
.scene-text h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.scene-text h3 svg { width: 24px; height: 24px; stroke: var(--accent); flex: none; }
.scene-text p { margin: 0 0 16px; font-size: 1rem; color: var(--ink-soft); }
.scene-visual img { width: 180px; height: 180px; object-fit: contain; }
@media (max-width: 1023px) { .scene-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .scene-card { padding: 24px; }
  .scene-visual img { width: 120px; height: 120px; }
}

/* ---------- 5-5. SERVICE一覧 ---------- */
#services { background: var(--bg-cream); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-col { background: var(--surface-tint); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.svc-col-head { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.svc-col-head svg { width: 24px; height: 24px; stroke: var(--accent); flex: none; }
.svc-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc-item { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.svc-item-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.svc-item-icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.svc-item h4 { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.svc-item p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.svc-item .link-more { margin-top: 10px; }
.service-note { margin: 32px 0 0; font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 1023px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- 5-5b. ECの外でも、お手伝いしていること（棚の下段・カードにしない） ---------- */
.svc-other-wrap { margin-top: 32px; }
.svc-other-heading { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.svc-other-list { margin-top: 12px; }
.svc-other-row {
  border-top: 1px solid var(--line); padding: 16px 4px;
  display: grid; grid-template-columns: minmax(0, 260px) 1fr auto; gap: 16px; align-items: center;
}
.svc-other-list .svc-other-row:last-child { border-bottom: 1px solid var(--line); }
.svc-other-name { margin: 0; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.svc-other-desc { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.svc-other-row .link-more { justify-self: end; white-space: nowrap; }
@media (max-width: 640px) {
  .svc-other-row { grid-template-columns: 1fr; gap: 6px; }
  .svc-other-row .link-more { justify-self: start; margin-top: 4px; }
}

/* ---------- 5-6. こんなご相談 ---------- */
#pain { background: var(--surface); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-card { background: var(--bg-cream); border-radius: 12px; padding: 24px; }
.pain-card-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.pain-card-icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.pain-card p { margin: 0; font-size: 1.0625rem; font-weight: 500; color: var(--ink); line-height: 1.7; }
.pain-note { margin: 32px 0 0; font-size: 1.0625rem; font-weight: 500; color: var(--ink); }
.pain-honest { margin: 8px 0 0; font-size: 1rem; color: var(--ink-faint); }
@media (max-width: 767px) { .pain-grid { grid-template-columns: 1fr; } }

/* ---------- 5-7. FLOW（トップの5ステップ＝.steps/.step。LPの.flow-*とは別） ---------- */
#flow { background: var(--bg-cream); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { position: relative; text-align: center; }
.step:not(:last-child)::after {
  /* 円(96px)の右端+8pxから、次の円(gap16px先)の左端-8pxまでを繋ぐ計算
     （100% - 96px = 100% + gap16px - 112px）。列幅179px(1024px時)でも
     隙間なく次の円まで届く */
  content: ""; position: absolute; top: 48px; left: calc(50% + 56px); width: calc(100% - 96px);
  border-top: 2px dotted var(--accent-line);
}
.step-circle {
  width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
}
.step-circle svg { width: 32px; height: 32px; stroke: var(--accent); }
.step-no { margin: 0 0 8px; font-family: var(--font-en); font-weight: 700; font-size: 1rem; color: var(--accent-text); }
.step h3 { margin: 0 0 8px; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.step p { margin: 0 auto; max-width: 22em; font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 1023px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; text-align: left; padding-bottom: 32px; }
  .step-circle { width: 64px; height: 64px; margin: 0; }
  .step-circle svg { width: 26px; height: 26px; }
  .step:not(:last-child)::after {
    top: 64px; left: 32px; width: 0; height: calc(100% - 64px);
    border-top: 0; border-left: 2px dotted var(--accent-line);
  }
  .step p { max-width: none; }
}

/* ---------- 5-8. PLAN ---------- */
#plan { background: var(--surface); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.plan-card.is-featured { border: 2px solid var(--accent); padding-top: 44px; }
.plan-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--accent-soft); color: var(--ink); font-size: 1rem; font-weight: 700;
  padding: 6px 18px; border-radius: var(--radius-pill); white-space: nowrap;
}
.plan-card h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.plan-sub { margin: 0 0 20px; font-size: 1rem; color: var(--ink-faint); }
.plan-price { margin: 0 0 20px; }
.plan-price .num { font-family: var(--font-en); font-weight: 700; font-size: 2.25rem; color: var(--ink); }
.plan-price .unit { font-size: 1rem; color: var(--ink-soft); margin-left: 4px; }
.plan-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.plan-list li { position: relative; padding-left: 20px; font-size: 1rem; color: var(--ink-soft); }
.plan-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.plan-note { margin-top: 28px; font-size: 1rem; color: var(--ink-faint); }
@media (max-width: 767px) { .plan-grid { grid-template-columns: 1fr; } }

/* ---------- 5-9. FAQ（トップ2カラム） ---------- */
#faq { background: var(--bg-cream); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); gap: 56px; align-items: end; }
.faq-visual { display: flex; justify-content: center; align-items: flex-end; }
.faq-visual img { max-width: 380px; width: 100%; height: auto; }
@media (max-width: 1023px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-visual { order: -1; margin-bottom: 24px; }
  .faq-visual img { max-width: 240px; }
}

/* ---------- 5-10. 運営者情報 ---------- */
.company-table { margin: 32px 0 0; }
.company-table > div { display: grid; grid-template-columns: 240px 1fr; gap: 16px; border-top: 1px solid var(--line); padding: 18px 4px; }
.company-table > div:last-child { border-bottom: 1px solid var(--line); }
.company-table dt { font-weight: 700; font-size: 1rem; color: var(--ink); }
.company-table dd { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.company-table a { color: var(--ink); text-decoration: underline; }
@media (max-width: 640px) { .company-table > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- 5-11. お問い合わせ ---------- */
.contact { background: var(--bg-dark); padding-block: var(--space-section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); gap: 56px; align-items: start; }
.contact-eyebrow { margin: 0 0 16px; font-size: 1rem; color: var(--on-dark-faint); }
.contact-grid .section-title { color: var(--on-dark); margin-bottom: 16px; }
.contact-lead { margin: 0; max-width: 30em; font-size: 1.0625rem; color: var(--on-dark-soft); }
.contact-card { background: var(--surface); border-radius: 12px; padding: 32px; box-shadow: var(--shadow-hover); }
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================
   6. 下層ページ互換ブロック（services/*・404・legal/*）
   Phase 1はv3トークンで違和感なく見える最小限の再定義。
   見た目の完成はPhase 2（下層の再スキン）。
   ============================================================ */
.section { padding-block: var(--space-section); background: var(--bg); }

.prose p { margin: 0 0 1.4em; font-size: 1.0625rem; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; }

/* 下層ヒーロー（LPのタイポ型・写真なし） */
.hero { position: relative; background: var(--bg-dark); color: var(--on-dark); padding: calc(var(--header-h) + 56px) 0 64px; }
.hero .hero-media, .hero .hero-scrim, .hero-side, .hero-rule { display: none; }
.hero-inner { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.hero-eyebrow {
  margin: 0 0 20px; display: flex; align-items: center; gap: 12px;
  font-size: 1rem; font-weight: 700; letter-spacing: .06em; color: var(--on-dark-soft);
}
.hero-eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.hero-title {
  margin: 0 0 22px; font-family: var(--font-serif); color: var(--on-dark);
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem); font-weight: 600; line-height: 1.55; letter-spacing: .03em;
}
.hero-lead { margin: 0 0 30px; max-width: 36em; font-size: 1.0625rem; color: var(--on-dark-soft); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-cta > a:not(.btn) {
  color: var(--on-dark-soft); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--line-dark); padding-bottom: 3px;
}
.hero-cta > a:not(.btn):hover { color: var(--on-dark); border-bottom-color: var(--accent); }
@media (max-width: 900px) { .hero-top ~ * .hero-visual { max-width: 560px; } }

/* 章番号 */
.section-no {
  margin: 0 0 16px; display: flex; align-items: center; gap: 14px;
  font-family: var(--font-en); font-weight: 600; font-size: 1rem; letter-spacing: .18em; color: var(--accent-text);
}
.section-no-rule { display: inline-block; width: 56px; height: 1px; background: var(--line); }
.section-no-dark { color: var(--on-dark); }
.section-no-dark .section-no-rule { background: var(--line-dark); }

/* 価値3点（value-rows） */
.value-rows { margin-top: 24px; }
.value-row { border-top: 1px solid var(--line); padding: 32px 4px; display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: baseline; }
.value-row:last-child { border-bottom: 1px solid var(--line); }
.value-index { margin: 0; font-size: 1rem; font-weight: 700; color: var(--accent-text); }
.value-body h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.6; color: var(--ink); font-weight: 700; }
.value-body p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 640px) { .value-row { grid-template-columns: 1fr; gap: 6px; padding: 24px 2px; } }

/* LPの3ステップ（トップの.steps/.stepとは別クラス） */
.flow-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.flow-item { border-top: 1px solid var(--line); padding-top: 20px; }
.flow-step { margin: 0 0 12px; font-family: var(--font-en); font-weight: 700; font-size: 1rem; letter-spacing: .08em; color: var(--accent-text); }
.flow-item h3 { margin: 0 0 10px; font-size: 1.0625rem; font-weight: 700; color: var(--ink); line-height: 1.6; }
.flow-item p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.flow-note { margin: 28px 0 0; font-size: 1rem; color: var(--ink-faint); }
@media (max-width: 820px) { .flow-list { grid-template-columns: 1fr; gap: 24px; } }

/* .band（LP料金・404）：橙ベタを廃止 */
.band { background: var(--bg-dark); color: var(--on-dark); }
.band .section-title.band-title { color: var(--on-dark); }
.band .prose p { color: var(--on-dark-soft); }
.band .prose strong { color: var(--on-dark); }
.band .btn-primary { background: var(--accent); color: var(--on-dark); }
.band .btn-primary:hover { background: var(--accent-hover); }

.band-price { background: var(--bg-cream); color: var(--ink); }
.band-price .section-title.band-title { color: var(--ink); }
.band-price .prose p { color: var(--ink-soft); }
.band-price .prose strong { color: var(--ink); }
.band-price .section-no.section-no-dark { color: var(--accent-text); }
.band-price .section-no-dark .section-no-rule { background: var(--line); }
.band-price .accent-word { color: var(--ink); border-bottom-color: var(--accent); }

.band-contact { background: var(--bg-dark); color: var(--on-dark); }
.band-contact .section-title.band-title { color: var(--on-dark); font-family: var(--font-serif); }
.band-contact .contact-lead { color: var(--on-dark-soft); }
.band-contact .form-field label { color: var(--on-dark); }
.band-contact .form-note { color: var(--on-dark-faint); }
.band-contact .form-error { color: var(--accent-text-on-dark); }

.accent-word { font-style: normal; color: var(--ink); border-bottom: 3px solid var(--accent); }

/* 料金パネル・表 */
.price-panel { background: var(--surface); color: var(--ink); border-radius: var(--radius-card); padding: clamp(28px, 4vw, 40px); margin-top: 32px; box-shadow: var(--shadow-card); }
.price-panel .prose p { color: var(--ink-soft); }
.price-panel .prose strong { color: var(--ink); }
.price-slots { margin: 20px 0 0; font-weight: 700; color: var(--ink); font-size: 1rem; }
.price-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.price-cell { background: var(--bg-cream); border-radius: var(--radius-ui); padding: 20px; }
.price-cell dt { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.price-figure { font-family: var(--font-en); font-weight: 700; font-size: 2rem; line-height: 1.2; color: var(--ink); }
.price-figure-sm { font-size: 1.3rem; }
.price-unit { font-size: 1rem; margin-left: 4px; color: var(--ink-soft); }
.price-notes { margin: 18px 0 0; font-size: 1rem; color: var(--ink-soft); }
.price-notes strong { color: var(--ink); }
@media (max-width: 640px) { .price-table { grid-template-columns: 1fr; } }

/* ============================================================
   7. 動きを減らす設定への対応（全アニメーション・トランジション停止）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-top .hero-title .ph > span { transform: none; animation: none; }
  .hero-top .hero-lead, .hero-top .hero-cta, .hero-top .hero-trust, .hero-top .hero-visual { opacity: 1; animation: none; }
  .site-drawer, .nav-overlay { transition: none; }
  .btn, .scene-card, .faq-item summary::after, .sec-more::after, .link-more::after, .site-header { transition: none; }
}
