@charset "UTF-8";
/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* =========================================
   foundation/_tokens.scss — Single Source of Truth
   ========================================= */
/* ---- Emission flags (CSS出力制御) ---- */
/* ---- Typography ---- */
/* ---- Z-index scale ---- */
/* ---- Spacing / Radius ---- */
/* ---- Breakpoints ---- */
/* ---- Shadow ---- */
/* ---- Base palette (HEX) ---- */
/* ---- CSS Custom Properties (HEX + RGB channels + semantic) ---- */
:root {
  /* layout */
  --container-max: 1280px;
  --container-pad: clamp(16px, 5vw, 48px);
  /* 互換エイリアス（段階移行が終わったら削除可） */
  --container-inline: var(--container-pad);
  /* HEX */
  --brand: #ee7b00;
  --fg: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --error: #d32f2f;
  --success: #0ea5a0;
  --warning: #d97706;
  --surface: #ffffff;
  --bg: #ffffff;
  /* RGB channels (“R G B”) */
  --brand-rgb: 238 123 0;
  --fg-rgb: 26 26 26;
  --muted-rgb: 107 114 128;
  --border-rgb: 229 231 235;
  --error-rgb: 211 47 47;
  --success-rgb: 14 165 160;
  --warning-rgb: 217 119 6;
  --surface-rgb: 255 255 255;
  --bg-rgb: 255 255 255;
  /* semantic */
  --color-brand: var(--brand);
  --color-fg: var(--fg);
  --color-muted: var(--muted);
  --color-border: var(--border);
  --color-error: var(--error);
  --color-success: var(--success);
  --color-warning: var(--warning);
  --color-surface: var(--surface);
  --color-bg: var(--bg);
  /* footer */
  --footer-bg: #111;
  --footer-text: #fff;
  /* elevation */
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ---- Dark theme override ---- */
[data-theme=dark] {
  --fg: #e5e7eb;
  --fg-rgb: 229 231 235;
  --muted: #94a3b8;
  --muted-rgb: 148 163 184;
  --border: #3f3f46;
  --border-rgb: 63 63 70;
  --surface: #111213;
  --surface-rgb: 17 18 19;
  --bg: #0b0b0b;
  --bg-rgb: 11 11 11;
  --color-fg: var(--fg);
  --color-muted: var(--muted);
  --color-border: var(--border);
  --color-surface: var(--surface);
  --color-bg: var(--bg);
  --footer-bg: #0b0b0b;
  --footer-text: #e5e7eb;
}

/* =========================================
   Optional: Gray scale & Hue-rotate emit
========================================= */
/* Gray (white→black 5% steps) */
:root {
  --gray-0: white;
  --gray-5: rgb(242.25, 242.25, 242.25);
  --gray-10: rgb(229.5, 229.5, 229.5);
  --gray-15: rgb(216.75, 216.75, 216.75);
  --gray-20: #cccccc;
  --gray-25: rgb(191.25, 191.25, 191.25);
  --gray-30: rgb(178.5, 178.5, 178.5);
  --gray-35: rgb(165.75, 165.75, 165.75);
  --gray-40: #999999;
  --gray-45: rgb(140.25, 140.25, 140.25);
  --gray-50: rgb(127.5, 127.5, 127.5);
  --gray-55: rgb(114.75, 114.75, 114.75);
  --gray-60: #666666;
  --gray-65: rgb(89.25, 89.25, 89.25);
  --gray-70: rgb(76.5, 76.5, 76.5);
  --gray-75: rgb(63.75, 63.75, 63.75);
  --gray-80: #333333;
  --gray-85: rgb(38.25, 38.25, 38.25);
  --gray-90: rgb(25.5, 25.5, 25.5);
  --gray-95: rgb(12.75, 12.75, 12.75);
  --gray-100: black;
}

/* Hue-rotate palette（CSS変数として出力） */
:root {
  --hx-000: #ffb366;
  --hx-015: rgb(255, 217.25, 102);
  --hx-030: rgb(254.5, 255, 102);
  --hx-045: rgb(216.25, 255, 102);
  --hx-060: #b2ff66;
  --hx-075: rgb(139.75, 255, 102);
  --hx-090: rgb(102, 255, 102.5);
  --hx-105: rgb(102, 255, 140.75);
  --hx-120: #66ffb3;
  --hx-135: rgb(102, 255, 217.25);
  --hx-150: rgb(102, 254.5, 255);
  --hx-165: rgb(102, 216.25, 255);
  --hx-180: #66b2ff;
  --hx-195: rgb(102, 139.75, 255);
  --hx-210: rgb(102.5, 102, 255);
  --hx-225: rgb(140.75, 102, 255);
  --hx-240: #b366ff;
  --hx-255: rgb(217.25, 102, 255);
  --hx-270: rgb(255, 102, 254.5);
  --hx-285: rgb(255, 102, 216.25);
  --hx-300: #ff66b2;
  --hx-315: rgb(255, 102, 139.75);
  --hx-330: rgb(255, 102.5, 102);
  --hx-345: rgb(255, 140.75, 102);
}

/* CSS側での参照ヘルパ（CSS関数を返す文字列） */
/* 2) 旧API互換：古い $color-*, $space-* を暫定サポートする場合だけ */
/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* =========================================
   foundation/_variables.scss — Compatibility Shim
   ========================================= */
/* 旧名 → 新トークンの値（Sass側からも参照できるようHEXを保持） */
/* 旧Spacing/Radius 変数（必要最小限の互換） */
/* 旧Breakpoints（参照用） */
/* 旧 container-inline 互換（CSS変数に委譲） */
/* 旧関数（そのまま維持：tokens 側の実装を利用） */
/* 旧 mixin は mixins 側に移行（ここでは提供しない） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* ================================
   Container
   - レイアウトは CSS変数に一元化
   - 余白や最大幅は :root の --container-* を参照
================================ */
/* ================================
   Focus Ring
   - brand色のアルファは RGBチャネルで統一
================================ */
/* ================================
   Media Query（ネスト用）
   - min / max / between を用意
   - 既存 @include media() は下の互換層へ
================================ */
/* ================================
   Interaction / Motion
================================ */
/* ================================
   Typography
================================ */
/* ================================
   A11y
================================ */
/* ================================
   互換層（旧: @include media(sm|md|lg|xl)）
   - 新: @include mq(sm|md|lg|xl) へ移行
   - 置換が終わったら削除OK
================================ */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* =========================================
   foundation/_color.scss — color helpers & semantic layer
   -----------------------------------------
   - 直書きHEX / rgba禁止、CSS変数経由で統一
   - RGBチャネル (--*-rgb) でアルファを制御
   - セマンティックカラー (--color-*) を利用
========================================= */
/* -----------------------------------------
   1. 定義済みセマンティックカラー対応表
   （tokens の :root に対応）
----------------------------------------- */
/* -----------------------------------------
   2. CSS変数呼び出し関数
----------------------------------------- */
/**
 * @function var-color($name)
 * Return CSS variable for a semantic color.
 * 例) color: var-color(brand);
 */
/**
 * @function var-rgb-alpha($base, $alpha)
 * Return rgb(var(--*-rgb) / alpha)
 * 例) background-color: var-rgb-alpha(brand, .5);
 */
/* -----------------------------------------
   3. Mixin — shorthand helpers
----------------------------------------- */
/* solid color */
/* alpha (via rgb channel vars) */
/* -----------------------------------------
   4. Shadow / gradient helpers
----------------------------------------- */
/**
 * @mixin shadow($alpha)
 * brand色を基調とした共通影（alpha指定）
 */
/**
 * @mixin gradient-brand($angle, $alpha-start, $alpha-end)
 * brand色のグラデーション
 */
/* -----------------------------------------
   5. Usage examples
-----------------------------------------
.c-btn {
  @include bg(brand);
  @include color(surface);
  &:hover {
    @include bgA(brand, .85);
  }
}

.c-section {
  @include bg(surface);
  border: 1px solid var-color(border);
  box-shadow: var(--shadow-card);
}
----------------------------------------- */
/* 5) リセット：色ヘルパーを使うので最後に読むのが安全 */
/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* ================================
   Base / Reset（最小限＋統一トークン）
================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif; /* tokens のフォント定義 */
  color: var(--color-fg);
  /* color: var(--color-fg) */
  background-color: var(--color-bg); /* 背景はセマンティック変数に統一 */
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit; /* リンク色は文脈に追従（必要ならユーティリティで上書き） */
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

/* アクセシビリティ：フォーカスリングは共通mixin */
:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.35);
}

/* 選択範囲：ブランドカラーのアルファは RGBチャネルで統一 */
::-moz-selection {
  background-color: rgb(var(--brand-rgb)/0.2);
}
::selection {
  background-color: rgb(var(--brand-rgb)/0.2);
}

/* 動作軽減：ネストで表現（生 @media は使わない） */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* 軽量化・アニメ関連 */
/* === Layout ================================================== */
/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* =========================================
   Layout: Body & Main（最適化版）
   - 色はセマンティック／RGBチャネルで統一
   - 低モーション配慮
   - Safari含むバックドロップ対策
========================================= */
.l-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* 黒透過エフェクト用（色は fg 基準で統一） */
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
  .l-body {
    transition: none;
  }
}
.l-body {
  /* メニュー開時などに付与されるクラス */
}
.l-body.is-dimmed {
  /* 直書き rgba(0,0,0,.6) は禁止 → fg のRGBチャネルで統一 */
  background-color: rgb(var(--fg-rgb)/0.6);
  /* 背景ぼかし（サポートブラウザのみ） */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* ダークテーマ時も fg 基準で適正コントラストを維持 */
}

/* メインコンテンツエリア */
.l-main {
  flex: 1 1 auto;
}

/* スクロールロック（互換：既存の menu-open / 推奨：.u-noscr on html） */
html.menu-open,
body.menu-open,
html.u-noscr {
  overflow: hidden;
}

/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* =========================================
   Layout: Container（共通レイアウトラッパー）
   -----------------------------------------
   - :root の --container-* に依存
   - mixin と併用可能（@include container();）
   - メディアクエリはネストで対応
========================================= */
.l-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  box-sizing: border-box;
  /* ← tokens側のCSS変数を使う共通mixin */
  /* デバッグ用ガイドライン（必要に応じてコメント解除）
  outline: 1px dashed rgba(var(--brand-rgb) / .2);
  */
  /* 任意の幅拡張・セクション間隔調整はネストで管理 */
}
@media (min-width: 1024px) {
  .l-container {
    padding-inline: clamp(16px, 4vw, 48px);
  }
}

/* バリエーション例：狭いコンテナ（オプション）
--------------------------------------------- */
.l-container--narrow {
  --container-max: 960px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  box-sizing: border-box;
}

/* フル幅コンテナ（セクション帯などで使用）
--------------------------------------------- */
.l-container--full {
  max-width: none;
  padding-inline: 0;
}

/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* ==============================
   Header（横基準はこのファイルで統一）
============================== */
.l-header {
  --header-h: clamp(64px, 7vh, 72px);
  --pad-x: var(--container-pad);
  --maxw: var(--container-max);
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding-inline: 0;
  transition: transform 0.3s ease, background-color 0.3s ease, border-bottom-color 0.3s ease, backdrop-filter 0.3s ease;
  will-change: transform;
}
.l-header.is-top {
  background-color: transparent;
  border-bottom: none;
  transform: translateY(0);
}
.l-header.is-scrolled {
  background-color: rgb(var(--surface-rgb)/0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgb(var(--fg-rgb)/0.04);
}
.l-header.is-hide {
  transform: translateY(calc(-1 * var(--header-h) - env(safe-area-inset-top, 0px)));
}
.l-header__inner {
  max-width: var(--maxw);
  width: 100%;
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  box-sizing: border-box;
}
@supports (padding: max(0px)) {
  @media (max-width: 767px) {
    .l-header__inner {
      padding-inline-start: calc(var(--pad-x) + env(safe-area-inset-left, 0px));
      padding-inline-end: calc(var(--pad-x) + env(safe-area-inset-right, 0px));
    }
  }
}
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 左から並べる */
  gap: 12px;
  container-type: inline-size;
  container-name: header;
  position: relative;
}
.l-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-brand);
  text-decoration: none;
  padding-block: 6px;
  -webkit-font-smoothing: antialiased;
  flex: 0 0 auto;
  order: 0;
}
.l-header__logo {
  width: auto;
  height: clamp(36px, 3.6vw, 44px);
  display: block;
  line-height: 1;
}
.l-header__logo,
.l-header__logo img,
.l-header__logo svg {
  height: inherit !important;
  max-height: inherit !important;
  width: auto !important;
}
.l-header {
  /* 右側（ナビ等） */
}
.l-header__nav {
  margin-left: auto; /* ← 右寄せの決め手 */
  display: flex;
  align-items: center;
  gap: 8px;
  order: 1;
  min-width: 0;
}

/* トグルがヘッダー外でも右へ寄せたい時の保険（任意） */
.c-gnav__toggle {
  margin-left: auto;
}

/* lg 未満は max-width を外す（横は pad に任せる） */
@media (max-width: 1023px) {
  .l-header__inner {
    max-width: 100%;
  }
}
/* 低モーション配慮 */
@media (prefers-reduced-motion: reduce) {
  .l-header {
    transition: none;
  }
  .l-header.is-scrolled {
    backdrop-filter: none;
  }
}
/* ヘッダー高さ分のスペーサ */
.u-header-spacer {
  height: var(--header-h);
}

/* ==============================
   PC(≥lg) 強制レイアウト（右寄せが効かない環境対策）
============================== */
@media (min-width: 1024px) {
  .l-header__brand {
    flex: 0 0 auto;
    order: 0;
  }
  /* .c-gnav が .l-header__nav 外にあっても右寄せしたい時の保険 */
  .l-header__inner > .c-gnav {
    margin-left: auto;
    flex: 0 0 auto;
    order: 1;
    display: block;
    position: static; /* SP用の fixed が残っても無効化 */
  }
  .c-gnav__toggle {
    display: none !important;
    margin-left: 0 !important;
  }
}
/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* ===== Footer (optimized) ===================================== */
.l-footer {
  /* テーマ切替はCSS変数で一元管理 */
  background-color: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.875rem;
  text-align: center;
  padding-block: clamp(16px, 3vw, 32px);
}
.l-footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* モバイル：縦積み */
  align-items: center;
  gap: 8px;
  /* PC：横並び・左右配置（ネストMQ） */
}
@media (min-width: 768px) {
  .l-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
  }
}
.l-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.l-footer__links a {
  color: inherit;
  font-size: 0.9em;
  /* モバイル／タブレットは下線あり（要件） */
  text-decoration: underline;
  /* PCのみ通常は下線なし、hover/focusで下線 */
}
@media (min-width: 768px) {
  .l-footer__links a {
    text-decoration: none;
  }
}
@media (hover: hover) and (pointer: fine) {
  .l-footer__links a:hover {
    text-decoration: underline;
  }
}
.l-footer__links a {
  /* アクセシビリティ：統一フォーカスリング */
}
.l-footer__links a:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.35);
}
.l-footer__copy {
  margin: 0;
  line-height: 1.6;
  opacity: 0.85;
}

/* === Components ============================================== */
/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* =========================================================
   c-scroll (optimized v3.6.2)
   - transformは変数で一元管理（translate衝突を防止）
   - 色は brand 連動（RGBチャネルでアルファ制御）
   - ネストMQ／低モーション配慮／テーマ対応
========================================================= */
.c-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5vh, 60px);
  /* 配置トークン（translateを変数化） */
  --tx: -50%;
  --ty: 0;
  transform: translate(var(--tx), var(--ty));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 100; /* 必要なら overlay に変更可 */
  /* 視覚トークン（brandに追従） */
  --scroll-rgb: var(--brand-rgb);
  --scroll-color: rgb(var(--scroll-rgb));
  --scroll-length: 150px;
  --scroll-width: 3px;
  --scroll-shadow: 0 0 12px rgb(var(--scroll-rgb) / 0.75);
  /* 全体のわずかな“揺れ” */
  animation: nm-scroll-drift 4.4s ease-in-out infinite;
}

/* テキスト */
.c-scroll__text {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgb(var(--scroll-rgb));
  text-shadow: 0 0 6px rgb(var(--scroll-rgb)/0.25);
}

/* ライン本体 */
.c-scroll__line {
  position: relative;
  width: var(--scroll-width);
  height: var(--scroll-length);
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(to bottom, rgb(var(--scroll-rgb)/0.25), rgb(var(--scroll-rgb)/0.55));
  /* 光の筋（下へ抜ける） */
}
.c-scroll__line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -38%;
  height: 42%;
  background: linear-gradient(to bottom, transparent, rgb(var(--scroll-rgb)/0.85) 55%, transparent);
  filter: drop-shadow(var(--scroll-shadow));
  animation: nm-scroll-light 2.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.c-scroll__line {
  /* 先端ドット */
}
.c-scroll__line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--scroll-color);
  box-shadow: var(--scroll-shadow);
  opacity: 0.85;
  animation: nm-scroll-dot 2.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* ========== Animations ========== */
@keyframes nm-scroll-light {
  0% {
    top: -40%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  65% {
    top: 80%;
    opacity: 1;
  }
  100% {
    top: 120%;
    opacity: 0.4;
  }
}
@keyframes nm-scroll-dot {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  50% {
    transform: translate(-50%, 6px);
    opacity: 1;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 0.2;
  }
}
/* ほんの僅かな横ゆれ＋回転。translateは変数を尊重 */
@keyframes nm-scroll-drift {
  0%, 100% {
    transform: translate(var(--tx), var(--ty)) rotate(0deg);
  }
  50% {
    transform: translate(calc(var(--tx) + 2px), var(--ty)) rotate(0.4deg);
  }
}
/* ========== Variants ========== */
/* 中段（top:45%）配置 */
.c-scroll--mid {
  bottom: auto;
  top: 45%;
  --ty: -50%;
}

/* SPだけ中段配置（ネストMQ） */
@media (max-width: 767px) {
  .c-scroll {
    bottom: auto;
    top: calc(60% + 1vh);
    --ty: -50%;
  }
}
/* 暗/色背景用：テキストを白寄せ、光筋はscreenで抜け感UP */
.c-scroll--invert {
  --scroll-rgb: 255 255 255;
  --scroll-color: rgb(var(--scroll-rgb));
}
.c-scroll--invert .c-scroll__text {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}
.c-scroll--invert .c-scroll__line::before {
  mix-blend-mode: screen; /* 光筋だけに適用 */
}

/* アニメーション削減配慮（ネストmixin） */
@media (prefers-reduced-motion: reduce) {
  .c-scroll,
  .c-scroll__line::before,
  .c-scroll__line::after {
    animation: none !important;
  }
}
/* メニュー開時に .c-scroll を非表示に */
.is-nav-open .c-scroll {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

/* 念のためレイヤーも整理 */
.c-scroll {
  position: absolute;
  z-index: 10;
}

.c-gnav,
.c-gnav__overlay {
  position: fixed;
  z-index: 500; /* ← 最前面に */
}

/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
.c-button {
  /* ---- Tunables（ページ側で上書き可） ---- */
  --btn-pad-y: 12px;
  --btn-pad-x: 16px;
  --btn-gap: 8px;
  --btn-radius: 6px;
  --btn-fz: 1rem;
  --btn-weight: 600;
  --btn-shadow: 0 0 0 rgba(0, 0, 0, 0);
  --btn-bg: var(--color-surface);
  --btn-fg: var(--color-fg);
  --btn-bd: var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-size: var(--btn-fz);
  font-weight: var(--btn-weight);
  line-height: 1;
  border-radius: var(--btn-radius);
  text-decoration: none;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  /* アイコンの高さ合わせ */
}
.c-button :where(svg, img) {
  height: 1.2em;
  width: auto;
}
.c-button:active {
  transform: translateY(1px);
}
.c-button {
  /* アクセシブルなフォーカスリング（共通mixin） */
}
.c-button:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.35);
}
.c-button {
  /* 無効状態 */
}
.c-button:disabled, .c-button.is-disabled, .c-button[aria-disabled=true] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}
.c-button {
  /* ---- Variants ---- */
}
.c-button--primary {
  --btn-bg: var(--color-brand);
  --btn-fg: var(--color-surface);
  --btn-bd: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .c-button--primary:hover {
    /* うっすら影：fgのRGBを使って統一 */
    box-shadow: 0 10px 28px rgb(var(--fg-rgb)/0.14);
  }
}
.c-button--secondary {
  --btn-bg: var(--color-surface);
  --btn-fg: var(--color-fg);
  --btn-bd: var(--color-border);
}
@media (hover: hover) and (pointer: fine) {
  .c-button--secondary:hover {
    box-shadow: 0 8px 20px rgb(var(--fg-rgb)/0.1);
  }
}
.c-button--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--color-fg);
  --btn-bd: var(--color-border);
}
@media (hover: hover) and (pointer: fine) {
  .c-button--ghost:hover {
    /* うっすら背景と境界：brandのRGBチャネルでアルファ管理 */
    background: rgb(var(--brand-rgb)/0.06);
    border-color: rgb(var(--brand-rgb)/0.2);
  }
}
.c-button {
  /* ---- Sizes ---- */
}
.c-button--xl {
  --btn-pad-y: 16px;
  --btn-pad-x: 22px;
  --btn-fz: 1.0625rem;
  border-radius: calc(var(--btn-radius) + 2px);
}
.c-button--lg {
  --btn-pad-y: 14px;
  --btn-pad-x: 20px;
}
.c-button--sm {
  --btn-pad-y: 8px;
  --btn-pad-x: 12px;
  --btn-fz: 0.9375rem;
  --btn-gap: 6px;
  border-radius: calc(var(--btn-radius) - 2px);
}
.c-button {
  /* ---- Layout helpers ---- */
}
.c-button--block {
  display: flex;
  width: 100%;
}
.c-button {
  /* 高コントラスト環境（ネストMQで統一） */
}
@media (prefers-contrast: more) {
  .c-button {
    border-color: color-mix(in srgb, var(--btn-bd) 60%, #000);
  }
}
.c-button {
  /* 動きを減らす環境（ネストのmixin推奨） */
}
@media (prefers-reduced-motion: reduce) {
  .c-button {
    transition: none;
  }
  .c-button:active {
    transform: none;
  }
}

/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
.c-card {
  /* ページ側で上書きできる可変値 */
  --_card-pad: clamp(16px, 3vw, 30px);
  --_card-radius: 6px;
  background-color: var(--color-surface);
  color: var(--color-fg);
  border-color: var(--color-border);
  border-radius: var(--_card-radius);
  padding: var(--_card-pad);
  box-shadow: var(--shadow-card);
  overflow: clip; /* 角丸内へコンテンツをクリップ（Safariは overflow:hidden でもOK） */
  /* レイアウトの基本 */
  display: grid;
  gap: 12px;
  /* 画像は中央寄せ・大きすぎ回避 */
}
.c-card img {
  display: block;
  width: min(50%, 320px);
  margin-inline: auto;
  height: auto;
}
.c-card {
  /* タイトル */
}
.c-card__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 36px);
  line-height: 1.25;
  text-align: center;
}
.c-card {
  /* テキスト */
}
.c-card__text {
  margin: 0;
  color: var(--color-muted);
  text-align: center;
  font-size: clamp(15px, 2vw, 28px);
  line-height: 1.6;
}
.c-card {
  /* ホバーアニメ（リンク化したカードにも効く） */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .c-card:hover {
    /* 影は fg のRGBチャネルで統一 */
    box-shadow: 0 10px 24px rgb(var(--fg-rgb)/0.1);
    transform: translateY(-1px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .c-card {
    transition: none;
    transform: none;
  }
}
.c-card {
  /* バリアント：コンパクト */
}
.c-card--compact {
  --_card-pad: clamp(12px, 2vw, 20px);
  gap: 8px;
}
.c-card--compact > img {
  width: min(45%, 260px);
}
.c-card--compact {
  /* BEM要素は明示（&__ 連結の事故を防ぐ） */
}
.c-card--compact .c-card__title {
  font-size: clamp(18px, 2.2vw, 28px);
}
.c-card--compact .c-card__text {
  font-size: clamp(14px, 1.8vw, 20px);
}
.c-card {
  /* アクセシビリティ：統一フォーカスリング */
}
.c-card:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.35);
}
.c-card {
  /* 画面が広いときに少しだけ余白を増やす（ネストMQ） */
}
@media (min-width: 768px) {
  .c-card {
    --_card-pad: clamp(20px, 3.2vw, 36px);
    gap: 16px;
  }
}
.c-card {
  /* 高コントラスト環境：境界を少し強める（任意） */
}
@media (prefers-contrast: more) {
  .c-card {
    border-color: rgb(var(--fg-rgb)/0.25);
  }
}

/* クリック可能なカード（任意の便利クラス） */
.c-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .c-card--link:hover {
    text-decoration: none;
  }
}
.c-card--link {
  /* カード全体がリンクのときもフォーカスリングを見せる */
}
.c-card--link:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.35);
}

/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* ---- Section base (optimized) ---- */
.c-section {
  /* ページ側で上書きできる可変値 */
  --section-pad-y: 32px; /* 初期: 32px */
  --section-pad-y-lg: 40px; /* lg↑: 40px */
  --section-gap-b: clamp(72px, 8vw, 120px); /* セクション下余白 */
  padding-block: var(--section-pad-y);
  margin-block-end: var(--section-gap-b);
}
@media (min-width: 768px) {
  .c-section {
    padding-block: var(--section-pad-y-lg);
  }
}
.c-section__title {
  position: relative;
  margin: 0 0 16px;
  padding-block-end: 8px;
  font-size: clamp(20px, 2vw, 28px);
  text-align: center;
  /* アンダーライン的なグラデーション（brandに追従） */
  background-image: linear-gradient(90deg, transparent 0%, transparent 35%, rgb(var(--brand-rgb)) 35%, rgb(var(--brand-rgb)) 65%, transparent 65%, transparent 100%);
  background-size: 20% 5px;
  background-repeat: no-repeat;
  background-position: center bottom;
}
.c-section__title::after {
  content: attr(data-en);
  display: block;
  margin-bottom: 8px;
  font-size: clamp(40px, 6vw, 80px);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-style: normal;
  text-transform: capitalize;
  /* brand 60% + white 40% 相当。CSS側でmix、トークン連動 */
  color: color-mix(in srgb, var(--color-brand) 60%, white);
}
.c-section__description {
  padding: 8px 0 12px;
  font-size: clamp(18px, 2.4vw, 24px); /* レスポンシブ調整 */
  line-height: 1.6;
  text-align: left;
  color: var(--color-muted);
}

/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* ==========================================
   Component: Link (Accessible + Theme Ready)
   ------------------------------------------
   - brand / muted / inverse バリアント可
   - ダークテーマにも対応
   - フォーカスリング統一
========================================== */
.c-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  /* デフォルトホバー */
}
@media (hover: hover) and (pointer: fine) {
  .c-link:hover {
    border-bottom-color: currentColor;
  }
}
.c-link {
  /* キーボードフォーカス時 */
}
.c-link:focus-visible {
  border-bottom-color: currentColor;
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.35);
}
.c-link {
  /* ------------------------------------------
     Variants
  ------------------------------------------ */
  /* ブランド強調リンク */
}
.c-link--brand {
  color: var(--color-brand);
}
.c-link--brand:hover, .c-link--brand:focus-visible {
  border-bottom-color: rgb(var(--brand-rgb));
}
.c-link {
  /* 補足テキスト用（控えめ） */
}
.c-link--muted {
  color: var(--color-muted);
}
.c-link--muted:hover, .c-link--muted:focus-visible {
  color: var(--color-fg);
  border-bottom-color: rgb(var(--fg-rgb)/0.4);
}
.c-link {
  /* 反転（ダーク背景上） */
}
.c-link--inverse {
  color: var(--color-surface);
}
.c-link--inverse:hover, .c-link--inverse:focus-visible {
  border-bottom-color: currentColor;
}

/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* =========================================================
   c-form — 軽量・再利用ベース（最適化版）
   - トークン集中管理
   - 入力/エラー/送信/チェック群/同意行/レスポンシブ
   - 必須マークは :has() + フォールバックで安定表示
========================================================= */
.c-form {
  /* ---- tokens (ページ側で上書き可) ---- */
  --cf-max: 960px;
  --cf-pad-y: clamp(24px, 6vw, 40px);
  --cf-pad-x: clamp(16px, 5vw, 24px);
  --cf-cols: 220px 1fr;
  --cf-gap-x: 16px;
  --cf-gap-y: 12px;
  --cf-field-pad: 12px 14px;
  --cf-field-radius: 12px;
  --cf-card-radius: 16px;
  --cf-muted: var(--color-muted);
  /* required badge tokens */
  --req-badge-text: "必須";
  --req-badge-bg: var(--color-brand);
  --req-badge-fg: var(--color-surface);
  --req-badge-font: 11px;
  --req-badge-radius: 4px;
  --req-badge-pad-x: 6px;
  --req-badge-gap: 8px;
  /* =========================================================
     カードスタイル
  ========================================================== */
}
.c-form--card {
  max-width: var(--cf-max);
  margin-inline: auto;
  padding: var(--cf-pad-y) var(--cf-pad-x);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--cf-card-radius);
  box-shadow: var(--shadow-card);
}
.c-form {
  /* =========================================================
     入力グループ（PC:2col / SP:1col）
  ========================================================== */
}
.c-form__group {
  display: grid;
  grid-template-columns: var(--cf-cols);
  align-items: center;
  -moz-column-gap: var(--cf-gap-x);
       column-gap: var(--cf-gap-x);
  row-gap: var(--cf-gap-y);
  margin-bottom: var(--cf-gap-x);
}
.c-form__group > .c-form__label {
  font-weight: 700;
  text-align: right;
  line-height: 1.6;
  color: var(--cf-muted);
  margin: 0;
}
.c-form__group {
  /* 共通フィールド */
}
.c-form__group :where(.c-form__input, .c-form__textarea, .c-form__select) {
  width: 100%;
  padding: var(--cf-field-pad);
  border: 1px solid var(--color-border);
  border-radius: var(--cf-field-radius);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--color-surface);
  color: var(--color-fg);
}
.c-form__group :where(.c-form__input, .c-form__textarea, .c-form__select)::-moz-placeholder {
  color: rgb(var(--muted-rgb)/0.75);
}
.c-form__group :where(.c-form__input, .c-form__textarea, .c-form__select)::placeholder {
  color: rgb(var(--muted-rgb)/0.75);
}
.c-form__group :where(.c-form__input, .c-form__textarea, .c-form__select):focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.35);
  /* 統一リング */
  border-color: var(--color-brand);
  /* うっすら外側グロー（brand RGBで統一） */
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.15);
}
.c-form__group .c-form__textarea {
  min-height: 160px;
  resize: vertical;
}
.c-form__group {
  /* エラー */
}
.c-form__group .is-error :where(.c-form__input, .c-form__textarea, .c-form__select),
.c-form__group :where(.c-form__input.is-error, .c-form__textarea.is-error, .c-form__select.is-error) {
  border-color: var(--color-error);
  outline: 2px solid var(--color-error);
  box-shadow: 0 0 0 3px rgb(var(--error-rgb)/0.18);
}
.c-form__group {
  /* ラベル上／入力下（1カラム） */
}
.c-form__group--wide {
  grid-template-columns: 1fr;
}
.c-form__group--wide > .c-form__label {
  text-align: left;
}
.c-form {
  /* =========================================================
     送信ボタン行
  ========================================================== */
}
.c-form__actions {
  display: grid;
  grid-template-columns: var(--cf-cols);
  -moz-column-gap: var(--cf-gap-x);
       column-gap: var(--cf-gap-x);
  margin-top: 32px;
}
.c-form__actions input[type=submit] {
  grid-column: 2;
  justify-self: center;
  min-width: 220px;
  padding: 14px 24px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-surface);
  background-color: var(--color-brand);
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.02s ease-in-out;
}
@media (hover: hover) and (pointer: fine) {
  .c-form__actions input[type=submit]:hover {
    filter: brightness(1.05);
  }
}
.c-form__actions input[type=submit]:active {
  transform: translateY(1px);
}
.c-form__actions input[type=submit]:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.35);
}
@media (max-width: 767px) {
  .c-form__actions {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .c-form__actions input[type=submit] {
    grid-column: 1/-1;
    width: min(100%, 320px);
  }
}
.c-form {
  /* =========================================================
     チェックボックス／ラジオ（縦並び）
  ========================================================== */
}
.c-form .wpcf7-checkbox,
.c-form .wpcf7-radio {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 10px;
}
.c-form .wpcf7-list-item {
  display: block;
  margin: 0;
}
.c-form .wpcf7-list-item > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  cursor: pointer;
}
.c-form .wpcf7-list-item input[type=checkbox],
.c-form .wpcf7-list-item input[type=radio] {
  inline-size: 20px;
  block-size: 20px;
  margin-top: 2px;
  /* brandに追従するアクセントカラー */
  accent-color: var(--color-brand);
}
.c-form {
  /* =========================================================
     同意行（ベース）— ページ側で自由に配置上書き可
  ========================================================== */
}
.c-form__group--agree > .c-form__label[aria-hidden=true] {
  display: none;
}
.c-form__group--agree .wpcf7-list-item > label > span {
  display: none;
}
.c-form {
  /* =========================================================
     SP共通（ネストMQ）
  ========================================================== */
}
@media (max-width: 767px) {
  .c-form__group, .c-form__actions {
    grid-template-columns: 1fr;
  }
  .c-form__group > .c-form__label {
    text-align: left;
  }
}

/* =========================================================
   必須マーク（統合・最適化・競合なし）
   - :has() 対応ブラウザ → 自動付与
   - 未対応フォールバック（.is-required）あり
========================================================= */
/* ラベルの並びは1回だけ定義 */
.c-form__label {
  display: inline-flex;
  align-items: center;
  gap: var(--req-badge-gap);
  position: relative;
}

/* :has() 本体 */
@supports selector(:has(*)) {
  /* CF7の必須クラス（wrap or input どちらでもOK） */
  .c-form .c-form__group:has(.wpcf7-validates-as-required) > .c-form__label::after,
  .c-form .c-form__group:has(:where(input, textarea, select)[required]) > .c-form__label::after,
  .c-form .c-form__group:has(:where(input, textarea, select)[aria-required=true]) > .c-form__label::after {
    content: var(--req-badge-text);
    display: inline-block;
    font-size: var(--req-badge-font);
    color: var(--req-badge-fg);
    background: var(--req-badge-bg);
    border-radius: var(--req-badge-radius);
    padding: 0 var(--req-badge-pad-x);
    line-height: 1.6;
    translate: 0 1px;
  }
  /* 除外（同意行／非表示ラベル） */
  .c-form .c-form__group--agree > .c-form__label::after,
  .c-form .c-form__label[aria-hidden=true]::after {
    display: none !important;
  }
  /* 先頭側に付けたい場合（任意） */
  .c-form--req-prefix .c-form__group:has(.wpcf7-validates-as-required) > .c-form__label,
  .c-form--req-prefix .c-form__group:has(:where(input, textarea, select)[required]) > .c-form__label,
  .c-form--req-prefix .c-form__group:has(:where(input, textarea, select)[aria-required=true]) > .c-form__label {
    flex-direction: row-reverse;
  }
}
/* フォールバック：:has 未対応環境
   ※ 極小JSで .is-required を .c-form__group に付与する想定 */
.c-form .c-form__group.is-required > .c-form__label::after {
  content: var(--req-badge-text);
  display: inline-block;
  font-size: var(--req-badge-font);
  color: var(--req-badge-fg);
  background: var(--req-badge-bg);
  border-radius: var(--req-badge-radius);
  padding: 0 var(--req-badge-pad-x);
  line-height: 1.6;
  translate: 0 1px;
}

/* 除外はフォールバックにも適用 */
.c-form .c-form__group--agree > .c-form__label::after,
.c-form .c-form__label[aria-hidden=true]::after {
  display: none !important;
}

/* チェックボックス／ラジオの白背景化 */
.c-form input[type=checkbox],
.c-form input[type=radio] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  inline-size: 20px;
  block-size: 20px;
  margin: 0;
  border: 2px solid var(--color-brand, #ee7b00);
  border-radius: 4px;
  background-color: #fff; /* ← 白背景 */
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.c-form input[type=checkbox]:checked,
.c-form input[type=radio]:checked {
  background-color: var(--color-brand, #ee7b00);
  border-color: var(--color-brand, #ee7b00);
}
.c-form input[type=checkbox],
.c-form input[type=radio] {
  /* チェックマーク描画（擬似要素） */
}
.c-form input[type=checkbox]:checked::after,
.c-form input[type=radio]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='16' height='12' viewBox='0 0 16 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 6L6 11L15 1.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.c-form input[type=checkbox],
.c-form input[type=radio] {
  /* フォーカス時のアクセシビリティ対応 */
}
.c-form input[type=checkbox]:focus-visible,
.c-form input[type=radio]:focus-visible {
  outline: 2px solid rgb(var(--brand-rgb, 238 123 0)/0.4);
  outline-offset: 2px;
}

.c-form input[type=checkbox] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  inline-size: 20px;
  block-size: 20px;
  margin: 0;
  border: 2px solid var(--color-brand, #ee7b00);
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.c-form input[type=checkbox]:checked {
  background-color: var(--color-brand, #ee7b00);
  border-color: var(--color-brand, #ee7b00);
}
.c-form input[type=checkbox] {
  /* チェックマーク（strokeを完全な白に固定） */
}
.c-form input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1 6L6 11L15 1.5' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
  /* ↑ %23ffffff は完全白をURLエンコードしたもの */
}
.c-form input[type=checkbox]:focus-visible {
  outline: 2px solid rgb(var(--brand-rgb, 238 123 0)/0.4);
  outline-offset: 2px;
}

.c-form input[type=checkbox] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  inline-size: 20px;
  block-size: 20px;
  margin: 0;
  border: 2px solid var(--color-brand, #ee7b00);
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.c-form input[type=checkbox]:checked {
  background-color: var(--color-brand, #ee7b00);
  border-color: var(--color-brand, #ee7b00);
}
.c-form input[type=checkbox] {
  /* ✅ fill方式（黒のにじみ防止） */
}
.c-form input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath fill='%23ffffff' d='M6.2 11.4L0.8 6l1.4-1.4L6.2 8.6l8.2-8.2L16 1.8l-9.8 9.6z'/%3E%3C/svg%3E") center/80% no-repeat;
}
.c-form input[type=checkbox]:focus-visible {
  outline: 2px solid rgb(var(--brand-rgb, 238 123 0)/0.4);
  outline-offset: 2px;
}

/* =========================================================
   Controls — checkbox / radio（白背景 + brand、黒にじみ防止）
========================================================= */
/* CF7の素のaccent-colorはフォールバック専用に限定 */
@supports not ((-webkit-appearance: none) or (-moz-appearance: none) or (appearance: none)) {
  .wpcf7-list-item input[type=checkbox],
  .wpcf7-list-item input[type=radio] {
    inline-size: 20px;
    block-size: 20px;
    margin-top: 2px;
    accent-color: var(--color-brand);
  }
}

/* カスタム描画（全ブラウザで統一） */
.c-form {
  /* tunables */
  --ctrl-size: 20px;
  --ctrl-radius: 4px;
}
.c-form input[type=checkbox],
.c-form input[type=radio] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  inline-size: var(--ctrl-size);
  block-size: var(--ctrl-size);
  margin: 0;
  border: 2px solid var(--color-border);
  border-radius: var(--ctrl-radius);
  background-color: #fff; /* ← 白地 */
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.c-form input[type=checkbox]:checked,
.c-form input[type=radio]:checked {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
}
.c-form input[type=checkbox]:focus-visible,
.c-form input[type=radio]:focus-visible {
  outline: 2px solid rgb(var(--brand-rgb)/0.4);
  outline-offset: 2px;
}
@media (prefers-contrast: more) {
  .c-form input[type=checkbox],
  .c-form input[type=radio] {
    box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb)/0.25);
  }
}
.c-form {
  /* チェックボックス：白✓（fill方式で黒にじみゼロ） */
}
.c-form input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath fill='%23ffffff' d='M6.2 11.4L0.8 6l1.4-1.4L6.2 8.6l8.2-8.2L16 1.8l-9.8 9.6z'/%3E%3C/svg%3E") center/80% no-repeat;
}
.c-form {
  /* ラジオ：白ドット */
}
.c-form input[type=radio] {
  border-radius: 50%;
}
.c-form input[type=radio]:checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}

/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* ------------------------------------------
   Global Navigation (optimized)
------------------------------------------ */
.c-gnav {
  /* Tunables */
  --gn-gap: 72px;
  --gn-gap-sm: 20px;
  --gn-fz: 18px;
  --gn-color: var(--color-fg);
  --gn-active: var(--color-brand);
  --gn-pad-y: 10px;
  --gn-pad-x: 6px;
  --gn-underline-h: 2px;
  --gn-underline-radius: 2px;
  display: none;
  /* PC(≥lg)：ヘッダー右寄せで表示 */
}
@media (min-width: 1024px) {
  .c-gnav {
    display: block;
    margin-left: auto;
  }
}
.c-gnav__list {
  display: flex;
  align-items: center;
  gap: var(--gn-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
  /* PCでTOPは消す */
}
@media (min-width: 1024px) {
  .c-gnav__list .c-gnav__item--top {
    display: none;
  }
}
.c-gnav__item > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: var(--gn-pad-y) var(--gn-pad-x);
  color: var(--gn-color);
  font-size: var(--gn-fz);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.18s ease;
}
.c-gnav__item > a::after {
  content: "";
  position: absolute;
  left: var(--gn-pad-x);
  right: var(--gn-pad-x);
  bottom: calc(var(--gn-pad-y) - 2px);
  height: var(--gn-underline-h);
  border-radius: var(--gn-underline-radius);
  background: rgb(var(--brand-rgb));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.16s ease;
}
@media (hover: hover) and (pointer: fine) {
  .c-gnav__item > a:hover {
    color: var(--gn-active);
  }
  .c-gnav__item > a:hover::after {
    transform: scaleX(0.6);
  }
}
.c-gnav__item > a:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.35);
}
.c-gnav__item > a {
  /* 現在地 */
}
.c-gnav__item > a[aria-current=page], .c-gnav__item > a[aria-current=true], .c-gnav__item > a.is-current {
  color: var(--gn-active);
}
.c-gnav__item > a[aria-current=page]::after, .c-gnav__item > a[aria-current=true]::after, .c-gnav__item > a.is-current::after {
  transform: scaleX(1);
}
.c-gnav {
  /* タブレット/モバイル微調整 */
}
@media (max-width: 1023px) {
  .c-gnav__list {
    gap: var(--gn-gap-sm);
  }
  .c-gnav__item > a {
    font-size: clamp(16px, 2.6vw, 18px);
  }
}

/* ------------------------------------------
   Hamburger Toggle  （絶対配置で中央基準）
------------------------------------------ */
.c-gnav__toggle {
  /* icon tunables */
  --size: 44px;
  --bar-w: 26px;
  --bar-h: 2.6px;
  --bar-gap: 8px;
  display: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: transparent;
  border: 0;
  margin-left: auto;
  padding: 0;
  width: var(--size);
  height: var(--size);
  border-radius: 10px;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 900;
  color: var(--color-fg);
  transition: background-color 0.2s ease, color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .c-gnav__toggle:hover {
    background-color: rgb(var(--fg-rgb)/0.05);
  }
}
.c-gnav__toggle:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.35);
}
.c-gnav__toggle {
  /* SP(＜lg)：右上固定 */
}
@media (max-width: 1023px) {
  .c-gnav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 1000;
  }
  .c-gnav__toggle.is-open {
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--color-surface);
  }
}

/* 3本線：中央基準で絶対配置 */
.c-gnav__toggle-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--bar-w);
  height: var(--bar-h);
  background: currentColor;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* 上・中・下の並び */
.c-gnav__toggle-bar:nth-child(1) {
  top: calc(50% - var(--bar-gap));
}

.c-gnav__toggle-bar:nth-child(2) {
  top: 50%;
}

.c-gnav__toggle-bar:nth-child(3) {
  top: calc(50% + var(--bar-gap));
}

/* 開閉アニメ（×） */
.c-gnav__toggle.is-open .c-gnav__toggle-bar:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.c-gnav__toggle.is-open .c-gnav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0.2);
}

.c-gnav__toggle.is-open .c-gnav__toggle-bar:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ------------------------------------------
   Drawer / Overlay（SP：container query）
   ※ ヘッダー側で container-type を付与必須
------------------------------------------ */
@container header (max-width: 1024px) {
  .c-gnav {
    position: fixed;
    inset: 0;
    display: none; /* .is-open で flex */
    z-index: 900;
    background: rgb(var(--fg-rgb)/0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
  }
  .c-gnav.is-open {
    display: flex;
  }
  .c-gnav__list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
  }
  .c-gnav__list > li > a {
    color: var(--color-surface);
    font-size: 18px;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.16s ease, transform 0.04s ease;
  }
  @media (hover: hover) and (pointer: fine) {
    .c-gnav__list > li > a:hover {
      background: rgb(var(--surface-rgb)/0.16);
    }
  }
  .c-gnav__list > li > a:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.35);
  }
  .c-gnav__list > li > a:active {
    transform: translateY(1px);
  }
}
/* ------------------------------------------
   Fallback（CQ未対応ブラウザ）
------------------------------------------ */
@supports not (container-type: inline-size) {
  @media (max-width: 1023px) {
    .c-gnav {
      position: fixed;
      inset: 0;
      display: none;
      z-index: 900;
      background: rgb(var(--fg-rgb)/0.6);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      align-items: center;
      justify-content: center;
    }
    .c-gnav.is-open {
      display: flex;
    }
    .c-gnav__list {
      flex-direction: column;
      align-items: center;
      gap: 20px;
      text-align: center;
    }
    .c-gnav__list > li > a {
      color: var(--color-surface);
      padding: 14px 20px;
      font-weight: 600;
      border-radius: 10px;
    }
  }
  @media (max-width: 1023px) and (hover: hover) and (pointer: fine) {
    .c-gnav__list > li > a:hover {
      background: rgb(var(--surface-rgb)/0.16);
    }
  }
}
/* ------------------------------------------
   Scroll Lock（JSが .is-nav-open を付与）
------------------------------------------ */
html.is-nav-open,
body.is-nav-open {
  overflow: hidden;
}

/* ------------------------------------------
   Reduced motion
------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .c-gnav__toggle-bar {
    transition: none;
  }
}
/* -------------------------------------------------------
   c-backtotop — ページ上部へ戻るボタン
   - IntersectionObserver + GSAP対応
   - SP中心（PCは非表示）
------------------------------------------------------- */
.c-backtotop {
  /* ---- tokens ---- */
  --bt-size: 44px; /* タップ最低サイズ確保 */
  --bt-radius: 999px;
  --bt-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  --bt-bg: color-mix(in oklab, #fff 70%, #000 30%);
  --bt-fg: #222;
  --bt-accent: #ee7b00;
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: var(--bt-size);
  height: var(--bt-size);
  display: grid;
  place-items: center;
  border-radius: var(--bt-radius);
  box-shadow: var(--bt-shadow);
  background: rgb(var(--surface-rgb)/0.75);
  color: var(--bt-accent);
  z-index: 200;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none; /* hidden時にクリック無効 */
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.2s ease;
  /* ==== 子要素 ==== */
}
.c-backtotop__icon {
  width: 20px;
  height: 20px;
}
.c-backtotop {
  /* ==== 状態 ==== */
}
.c-backtotop.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.c-backtotop:focus-visible {
  outline: 2px solid var(--bt-accent);
  outline-offset: 3px;
}
.c-backtotop:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.c-backtotop {
  /* ==== 動きを最小化（利用者設定尊重） ==== */
}
@media (prefers-reduced-motion: reduce) {
  .c-backtotop {
    transition: none;
  }
}

/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* =========================================================
   Cookie Consent — consolidated & mobile-first
   ========================================================= */
.c-cookieConsent {
  /* ---- CSS variables (1か所定義) ---- */
  --cc-bg: rgba(17, 17, 17, 0.96);
  --cc-text: #fff;
  --cc-accent: #ee7b00; /* nexmoov orange */
  --cc-muted: #5a5a5a; /* decline */
  --cc-radius: 12px;
  /* ---- base ---- */
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10050;
  color: var(--cc-text);
  background: var(--cc-bg);
  backdrop-filter: blur(8px);
  transform: translateY(100%);
  transition: transform 0.32s ease;
  will-change: transform;
  /* 安全域（iOSノッチ等） */
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  /* 視認性 */
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
}
.c-cookieConsent.is-active {
  transform: translateY(0);
}
.c-cookieConsent {
  /* ---- layout ---- */
}
.c-cookieConsent__inner {
  max-width: 1200px;
  margin-inline: auto;
  /* SP: 縦積み → 後でPCで上書き */
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "text" "actions";
  align-items: center;
  gap: 10px;
  padding: 14px 18px max(env(safe-area-inset-bottom), 10px);
}
.c-cookieConsent__text {
  grid-area: text;
  line-height: 1.55;
  font-size: 0.9rem;
  word-break: break-word;
  text-wrap: pretty;
  margin-right: 2px; /* 端末差の詰まり対策 */
}
.c-cookieConsent__link {
  color: color-mix(in oklab, var(--cc-accent) 72%, white 28%);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.c-cookieConsent__actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: 1fr 1fr; /* SPは2列 */
  gap: 10px;
}
.c-cookieConsent__btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  border-radius: var(--cc-radius);
  padding: 10px 14px;
  min-height: 46px; /* タップ目標 */
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  width: 100%; /* SPは全幅 */
}
.c-cookieConsent__btn--accept {
  background: var(--cc-accent);
}
.c-cookieConsent__btn--decline {
  background: var(--cc-muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.c-cookieConsent {
  /* ---- ≥481px（タブレット/PC）で横並び ---- */
}
@media (min-width: 481px) {
  .c-cookieConsent__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "text actions";
    gap: 12px 14px;
    padding: 14px 16px;
  }
  .c-cookieConsent__actions {
    grid-template-columns: none;
    grid-auto-flow: column; /* 横並び */
    gap: 8px;
  }
  .c-cookieConsent__btn {
    width: auto;
    min-width: 108px;
  }
  .c-cookieConsent__text {
    font-size: 0.92rem;
  }
}
.c-cookieConsent {
  /* WP管理バー（ログイン時） */
}
.admin-bar .c-cookieConsent {
  bottom: 0;
}
.c-cookieConsent {
  /* 省モーション */
}
@media (prefers-reduced-motion: reduce) {
  .c-cookieConsent {
    transition: none;
  }
}

/* === Project blocks ========================================== */
/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* c-section 併用時は左右パディングをゼロに */
.p-hero.c-section {
  padding-inline: 0;
}

/* =========================================================
   HERO (tokenized / responsive / theme-aware)
========================================================= */
.p-hero {
  /* ---- ページ可変トークン（上書き可） ---- */
  --hero-img: url("../img/hero_pc.svg"); /* PC既定 */
  --hero-maxw: 1280px;
  --hero-pad-x: clamp(16px, 6vw, 48px);
  --hero-pad-top: clamp(96px, 16svh, 180px);
  --hero-pad-bottom: clamp(200px, 28svh, 340px);
  --hero-gap: clamp(60px, 8vw, 120px);
  --hero-after-bg: color-mix(in srgb, var(--color-bg) 94%, var(--color-fg)); /* セクション下の連結背景 */
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 100svh;
  background: var(--hero-img) center calc(100% + 140px)/cover no-repeat;
  margin-block-end: var(--hero-gap);
}
.p-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: calc(-1 * var(--hero-gap));
  height: var(--hero-gap);
  background: var(--hero-after-bg);
  z-index: 0;
}
.p-hero {
  /* ==== inner ==== */
}
.p-hero__inner {
  width: min(100%, var(--hero-maxw));
  margin-inline: auto;
  padding-top: var(--hero-pad-top);
  padding-right: calc(var(--hero-pad-x) + env(safe-area-inset-right));
  padding-bottom: var(--hero-pad-bottom);
}
.p-hero {
  /* ==== コピー ==== */
}
.p-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 50ch;
  text-align: left;
  /* 白背景前提の軽いリフト */
  text-shadow: 0 1px 3px rgb(var(--surface-rgb)/0.6);
}
@media (max-width: 767px) {
  .p-hero__copy {
    display: block;
    max-width: 35ch;
    width: 90%;
    margin-inline: auto;
    text-align: left;
  }
}
.p-hero {
  /* ==== 見出し ==== */
}
.p-hero__line {
  display: block;
  white-space: nowrap;
  font-size: clamp(46px, 6.8vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-fg);
}
@media (max-width: 767px) {
  .p-hero__line {
    white-space: normal;
    text-wrap: balance;
    font-size: clamp(28px, 9.4vw, 36px);
    line-height: 1.12;
    margin: 0;
  }
}
@media (max-width: 479px) {
  .p-hero__line {
    font-size: clamp(28px, 9.8vw, 38px);
    line-height: 1.06;
  }
}
.p-hero {
  /* ==== サブコピー ==== */
}
.p-hero__lead {
  margin-top: clamp(20px, 3vw, 28px);
  font-size: clamp(20px, 2.6vw, 30px);
  padding-top: calc(var(--header-h) + 20px);
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 0.02em;
  max-width: 33ch;
  color: var(--color-brand);
  text-shadow: 0 1px 1px rgb(var(--surface-rgb)/0.75), 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 2px rgb(var(--surface-rgb)/0.5);
  filter: brightness(1.05) contrast(1.1);
  transition: filter 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .p-hero__copy:hover .p-hero__lead {
    filter: brightness(1.12) contrast(1.12);
  }
}
@media (max-width: 767px) {
  .p-hero__lead {
    margin-top: 0.6em;
    max-width: 40ch;
    padding: 0;
    text-indent: 0;
    filter: brightness(1.08) contrast(1.12);
    text-shadow: 0 1px 2px rgb(var(--surface-rgb)/0.9), 0 2px 5px rgba(0, 0, 0, 0.3);
  }
}
@media (max-width: 767px) and (max-width: 479px) {
  .p-hero__lead {
    font-size: clamp(15px, 4.4vw, 18px);
  }
}
.p-hero {
  /* ==== 背景プレート（任意：ガラス風） ==== */
}
.p-hero__bgplate {
  position: absolute;
  left: 0;
  top: 24%;
  width: clamp(56%, 68vw, 820px);
  height: clamp(180px, 34vh, 380px);
  background: rgb(var(--surface-rgb)/0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0 24px 24px 0;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 767px) {
  .p-hero__bgplate {
    top: 28%;
    width: clamp(66%, 88vw, 92%);
    height: clamp(160px, 30vh, 320px);
    border-radius: 0 20px 20px 0;
  }
}
.p-hero {
  /* ==== SP差分 ==== */
}
@media (max-width: 767px) {
  .p-hero {
    --hero-img: url("../img/hero_sp.svg");
    --hero-pad-top: clamp(72px, 14svh, 140px);
    --hero-pad-bottom: clamp(160px, 24svh, 280px);
    --hero-pad-x: clamp(14px, 5.5vw, 24px);
    background-position: center bottom;
    background-size: 100% auto;
  }
  .p-hero__inner {
    width: 100%;
    padding-right: calc(var(--hero-pad-x) + env(safe-area-inset-right));
    padding-left: calc(var(--hero-pad-x) + env(safe-area-inset-left));
  }
}
.p-hero {
  /* ==== 強制切替（デバッグ／ABテスト用） ==== */
}
.p-hero--force-pc {
  --hero-img: url("../img/hero_pc.svg") !important;
}
.p-hero--force-sp {
  --hero-img: url("../img/hero_sp.svg") !important;
}

/* ==== PC：二重パディング防止（任意） ==== */
@media (min-width: 768px) {
  .p-hero__inner.l-container {
    padding-inline: var(--hero-pad-x);
  }
}
/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* ==============================================
   Business Section (tokenized / responsive)
============================================== */
.p-business {
  /* セクション背景は上書き可能。既定はBGをわずかに明るくしたトーン */
  --section-bg: color-mix(in srgb, var(--color-bg) 94%, var(--color-fg));
  --section-gap: clamp(60px, 8vw, 120px);
  --container-max: 1280px;
  position: relative;
  background: var(--section-bg);
  padding-block: clamp(24px, 5vw, 40px);
  margin-block-end: var(--section-gap);
}
.p-business::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: calc(-1 * var(--section-gap));
  height: var(--section-gap);
  background: var(--section-bg);
  z-index: 0;
}
.p-business .l-container {
  max-width: var(--container-max);
  padding-inline: clamp(16px, 4vw, 48px);
}
.p-business__list {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.2vw, 40px);
}
@media (min-width: 768px) {
  .p-business__list {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: clamp(32px, 3vw, 40px);
  }
}
.p-business__item {
  list-style: none;
}
.p-business__item > .p-business-card {
  width: 100%;
}

/* ==============================================
   Business Card
============================================== */
.p-business-card {
  --brand: var(--color-brand);
  --icon-box: clamp(96px, 18vw, 152px);
  --icon-size: 56%;
  width: 100%;
  background-color: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgb(var(--fg-rgb)/0.05);
  overflow: hidden;
  display: grid;
  grid-template-areas: "icon" "body";
  row-gap: clamp(16px, 3vw, 28px);
  /* 上=22 / 下=28（SPで少し広がる） */
  padding: clamp(22px, 5vw, 30px) clamp(16px, 5vw, 20px) clamp(28px, 6vw, 36px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (min-width: 768px) {
  .p-business-card {
    min-height: 420px;
    padding: clamp(20px, 4vw, 28px);
  }
}
.p-business-card:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.35);
}
.p-business-card {
  /* lift only the card（二重lift回避） */
}
@media (hover: hover) and (pointer: fine) {
  .p-business__item:hover .p-business-card, .p-business__item:focus-within .p-business-card {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgb(var(--fg-rgb)/0.1);
  }
}
.p-business-card__icon {
  grid-area: icon;
  align-self: start;
  justify-self: center;
  width: var(--icon-box);
  height: var(--icon-box);
  background: var(--brand);
  border-radius: 12px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .p-business__item:hover .p-business-card__icon, .p-business__item:focus-within .p-business-card__icon {
    transform: scale(1.03);
  }
}
.p-business-card {
  /* 高品位：CSSマスクで白抜き */
}
.p-business-card__glyph {
  width: var(--icon-size);
  aspect-ratio: 1/1;
  background: rgb(254, 249, 246); /* わずかに温かい白 */
  -webkit-mask: var(--icon) center/contain no-repeat;
  mask: var(--icon) center/contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .p-business__item:hover .p-business-card__glyph, .p-business__item:focus-within .p-business-card__glyph {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.16));
  }
}
.p-business-card {
  /* fallback（mask非対応） */
}
.p-business-card__imgFallback {
  display: none;
}
@supports not ((-webkit-mask: url("")) or (mask: url(""))) {
  .p-business-card__glyph {
    display: none;
  }
  .p-business-card__imgFallback {
    display: block;
    width: var(--icon-size);
    height: auto;
    filter: brightness(0) invert(1); /* 黒→白 */
  }
}
.p-business-card__body {
  grid-area: body;
}
.p-business-card__title {
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  color: var(--brand);
  margin-bottom: clamp(6px, 1.6vw, 10px);
  text-align: center;
}
@media (max-width: 767px) {
  .p-business-card__title {
    margin-bottom: clamp(2px, 0.8vw, 6px);
  }
}
.p-business-card__desc {
  text-align: left;
  max-width: 54ch;
  margin-inline: auto;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.8;
  color: var(--text-body, var(--color-fg));
}

/* ==============================================
   Motion preference
============================================== */
@media (prefers-reduced-motion: reduce) {
  .p-business * {
    transition: none !important;
  }
}
/* ==============================================
   Optional soft tone
============================================== */
.p-business-card--soft .p-business-card__icon {
  background: #ffe4cc;
}
.p-business-card--soft {
  /* brandの淡色トーン */
}
.p-business-card--soft .p-business-card__glyph {
  background: var(--brand);
}
@supports not ((-webkit-mask: url("")) or (mask: url(""))) {
  .p-business-card--soft .p-business-card__imgFallback {
    filter: none;
  }
}

/* ==============================================
   Smartphone tweaks（ネストMQ）
============================================== */
@media (max-width: 767px) {
  .p-business__list {
    gap: clamp(36px, 8vw, 64px);
  } /* カード間を広めに */
  .p-business-card {
    --icon-box: clamp(72px, 28vw, 112px);
  } /* 視覚重心を下げる */
}
/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* ==============================
   Vision (tokenized / theme-aware)
============================== */
.p-vision {
  /* ---- ページ可変トークン（上書き可） ---- */
  --pv-img: url("/wp-content/themes/nexmoov/assets/img/ourvision_bk.jpg");
  --pv-pad: clamp(32px, 6vw, 96px);
  --pv-sat: 0.7;
  --pv-bright: 0.92;
  --pv-contrast: 0.96;
  --pv-fade-top: 0;
  --pv-fade-middle: 0.72;
  --pv-fade-bottom: 0.98;
  --pv-rule-alpha: 0.7;
  --pv-overlay-blur: 7px;
  /* brand を少しだけ柔らかく（Sass関数の代わりに color-mix で白寄せ） */
  --pv-brand-soft: color-mix(in srgb, var(--color-brand) 85%, white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: rgb(255, 255, 255); /* 視認性のため白基調 */
  /* === 背景レイヤ（画像） === */
}
.p-vision::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pv-img) center/cover no-repeat;
  filter: saturate(var(--pv-sat)) brightness(var(--pv-bright)) contrast(var(--pv-contrast));
  z-index: -2;
  pointer-events: none;
}
.p-vision {
  /* === グラデ／ブラーのオーバーレイ === */
}
.p-vision::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0, 0, 0, var(--pv-fade-top)) 0%, rgb(0, 0, 0, var(--pv-fade-middle)) 32%, rgb(0, 0, 0, var(--pv-fade-bottom)) 100%);
  backdrop-filter: blur(var(--pv-overlay-blur));
  -webkit-backdrop-filter: blur(var(--pv-overlay-blur));
  z-index: -1;
  pointer-events: none;
}
.p-vision {
  /* === コンテンツ === */
}
.p-vision__overlay {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  padding: clamp(72px, 10vw, 168px) clamp(24px, 6vw, 64px);
  text-align: center;
}
.p-vision__inner {
  position: relative;
}
.p-vision {
  /* 小見出し + EN タイトル */
}
.p-vision__title {
  margin: 0 0 1.25em;
  padding-bottom: 0.65em;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  /* センター罫線 */
}
.p-vision__title::before {
  content: "";
  display: block;
  width: clamp(72px, 22vw, 160px);
  height: 2px;
  margin: 0.9em auto;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  border-radius: 2px;
}
.p-vision__title {
  /* EN メイン */
}
.p-vision__title::after {
  content: attr(data-en);
  display: block;
  margin-top: 0.35em;
  font-family: "Montserrat", "Helvetica Neue", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 6.5vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.p-vision {
  /* オレンジ見出し（brandの柔らかめトーン） */
}
.p-vision__subtitle {
  margin: clamp(64px, 8vw, 96px) auto clamp(32px, 5vw, 64px);
  padding-top: 1.05em;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: var(--pv-brand-soft);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  border-top: 4px solid rgb(255, 255, 255, var(--pv-rule-alpha));
  text-align: center;
  display: block;
  width: 100%;
  max-width: none;
}
.p-vision {
  /* 本文 */
}
.p-vision__text {
  margin: 0 auto;
  max-width: clamp(42em, 65vw, 60em);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 2.05;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
.p-vision__text + .p-vision__text {
  margin-top: 1.2em;
}
.p-vision {
  /* ===== tablet ↓ ===== */
}
@media (max-width: 767px) {
  .p-vision {
    --pv-pad: clamp(24px, 6vw, 48px);
  }
  .p-vision__overlay {
    padding: clamp(56px, 10vw, 120px) clamp(20px, 6vw, 40px);
  }
}
.p-vision {
  /* ===== phone ↓ ===== */
}
@media (max-width: 479px) {
  .p-vision {
    min-height: 100svh;
    width: 100%;
    --pv-pad: clamp(16px, 5.5vw, 24px);
    --pv-sat: 0.6;
    --pv-bright: 0.9;
    --pv-contrast: 0.95;
    --pv-overlay-blur: 9px; /* 7→9 で背景をやや柔らかく */
  }
  .p-vision::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.9) 100%);
  }
  .p-vision__overlay {
    max-width: 680px;
    padding: clamp(40px, 12vw, 64px) clamp(16px, 8vw, 28px);
    padding-top: clamp(28px, 10vw, 48px); /* 重心微調整 */
  }
  .p-vision__title {
    letter-spacing: 0.12em;
    margin-bottom: 0.8em;
  }
  .p-vision__title::after {
    font-size: clamp(38px, 10vw, 56px);
    letter-spacing: 0.02em;
  }
  .p-vision__subtitle {
    /* SPでは内容幅センター＋折返し最適化 */
    margin: clamp(48px, 10vw, 64px) auto clamp(24px, 6vw, 32px);
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.35;
    border-top-width: 3px;
    display: inline-block;
    width: -moz-fit-content;
    width: fit-content;
    max-width: clamp(16ch, 70vw, 20ch);
    margin-inline: auto;
    text-align: center;
    -moz-text-align-last: center;
         text-align-last: center;
    text-wrap: balance;
    word-break: normal;
    line-break: strict;
    letter-spacing: 0.045em;
    padding-top: 0.9em;
  }
  .p-vision__text {
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.85;
    letter-spacing: 0.06em;
    max-width: 26ch;
    margin-inline: auto;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.42);
  }
}
.p-vision {
  /* 低モーション配慮 */
}
@media (prefers-reduced-motion: reduce) {
  .p-vision::after {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .p-vision__title, .p-vision__subtitle, .p-vision__text {
    text-shadow: none;
  }
}

/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* ==============================================
   Company Section (tokenized / responsive)
============================================== */
.p-company {
  /* ---- 基本トークン（ページ側で上書き可） ---- */
  --pc-border: var(--color-border);
  --pc-text: var(--color-fg);
  --pc-muted: var(--color-muted);
  --pc-bg: var(--color-surface);
  --pc-radius: 0; /* Goodpatchは角丸なし */
  --pc-pad-y: clamp(14px, 2vw, 20px);
  --pc-pad-x: clamp(16px, 3vw, 28px);
  --pc-font-size: clamp(14px, 1.5vw, 16px);
  --pc-line: 1px solid var(--pc-border);
  color: var(--pc-text);
  font-size: var(--pc-font-size);
  background: var(--pc-bg);
  /* ------------------------------
     カード全体
  ------------------------------ */
}
.p-company__card {
  width: min(100%, 960px);
  margin-inline: auto;
  background: var(--pc-bg);
  border-radius: var(--pc-radius);
  border: var(--pc-line);
  border-width: 0 0 1px 0; /* 下線のみ（最終行用） */
}
.p-company {
  /* ------------------------------
     dl構造リセット
  ------------------------------ */
}
.p-company__list {
  margin: 0;
  padding: 0;
}
.p-company__list :where(dt, dd) {
  margin: 0;
}
.p-company {
  /* ------------------------------
     各行（PC:2col / SP:1col）
  ------------------------------ */
}
.p-company__row {
  display: grid;
  grid-template-columns: 1fr;
  border-top: var(--pc-line);
}
.p-company__row:first-child {
  border-top: none;
}
.p-company__row > dt,
.p-company__row > dd {
  padding: var(--pc-pad-y) var(--pc-pad-x);
  box-sizing: border-box;
}
.p-company__row > dt {
  font-weight: 700;
  color: var(--pc-text);
}
.p-company__row > dd {
  color: var(--pc-text);
  line-height: 1.8;
  word-break: break-word;
}
.p-company {
  /* ------------------------------
     PC（md↑）2カラム化
  ------------------------------ */
}
@media (min-width: 768px) {
  .p-company__row {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
  .p-company__row > dt {
    text-align: left;
    color: var(--pc-muted);
  }
  .p-company__row > dd {
    padding-left: var(--pc-pad-x);
  }
}
.p-company {
  /* ------------------------------
     SP（md未満）カード風
  ------------------------------ */
}
@media (max-width: 767px) {
  .p-company__card {
    border: none;
    box-shadow: 0 2px 10px rgb(var(--fg-rgb)/0.06);
    border-radius: 8px; /* mobileではわずかに角丸 */
  }
  .p-company__row {
    border-top: none;
    border-bottom: var(--pc-line);
  }
  .p-company__row:last-child {
    border-bottom: none;
  }
  .p-company__row > dt {
    color: var(--pc-muted);
    font-weight: 600;
    padding-bottom: 4px;
  }
  .p-company__row > dd {
    padding-top: 0;
    line-height: 1.75;
  }
}
.p-company {
  /* ------------------------------
     事業内容（番号リストなど）
  ------------------------------ */
}
.p-company__bizlist {
  margin: 0.4em 0 0 1.25em;
  padding: 0;
  list-style: decimal;
}
.p-company__bizlist li {
  margin: 0.25em 0;
  line-height: 1.75;
}
.p-company {
  /* ------------------------------
     英語表記などの補助テキスト
  ------------------------------ */
}
.p-company__en {
  display: block;
  font-size: 0.9em;
  color: var(--pc-muted);
  margin-top: 4px;
}

/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* =========================================================
   p-contact — ページ専用上書き（tokenized / responsive）
========================================================= */
.p-contact {
  /* 背景・レイアウト変数（ページ側で上書き可） */
  --ct-bg: color-mix(in srgb, var(--color-bg) 94%, var(--color-brand) 6%);
  --ct-max: 1040px;
  --ct-pad-y: clamp(40px, 8vw, 96px);
  /* c-form 左列幅が変わる場合に利用 */
}
.p-contact .c-form {
  --cf-col-left: 220px;
}
.p-contact {
  background: var(--ct-bg);
}
.p-contact__section {
  padding-block: var(--ct-pad-y);
  padding-bottom: clamp(96px, 12vw, 160px);
}
.p-contact {
  /* コンテナ幅統一 */
}
.p-contact .l-container.p-contact__inner,
.p-contact .p-contact__card,
.p-contact .c-form {
  max-width: var(--ct-max);
  width: min(100%, var(--ct-max));
  margin-inline: auto;
}
.p-contact .l-container.p-contact__inner {
  padding-inline: clamp(16px, 5vw, 32px);
}
.p-contact {
  /* 同意行：SP（縦並び） */
}
.p-contact .c-form .c-form__group.c-form__group--agree {
  display: block;
  width: 100%;
  padding-left: 0;
  margin: 16px 0 20px;
  text-align: left;
}
.p-contact .c-form .c-form__group.c-form__group--agree > .c-form__label {
  display: none !important;
}
.p-contact .c-form .c-form__group.c-form__group--agree .wpcf7-list-item-label,
.p-contact .c-form .c-form__group.c-form__group--agree .wpcf7-list-item > label > span {
  display: none !important;
}
.p-contact .c-form .c-form__group.c-form__group--agree > .wpcf7-form-control-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  width: auto;
}
.p-contact .c-form .c-form__group.c-form__group--agree input[type=checkbox] {
  inline-size: 18px;
  block-size: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--color-brand);
}
.p-contact .c-form .c-form__group.c-form__group--agree .c-form__agree-text,
.p-contact .c-form .c-form__group.c-form__group--agree .c-form_agree-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-fg);
}
.p-contact .c-form .c-form__group.c-form__group--agree .c-form__agree-text a,
.p-contact .c-form .c-form__group.c-form__group--agree .c-form_agree-text a {
  color: var(--color-brand);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .p-contact .c-form .c-form__group.c-form__group--agree .c-form__agree-text a:hover,
  .p-contact .c-form .c-form__group.c-form__group--agree .c-form_agree-text a:hover {
    opacity: 0.8;
  }
}
.p-contact .c-form .c-form__group.c-form__group--agree .c-form__agree-text a:focus-visible,
.p-contact .c-form .c-form__group.c-form__group--agree .c-form_agree-text a:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.35);
}
.p-contact {
  /* PC：右カラム位置へインデントして横並びに見せる */
}
@media (min-width: 768px) {
  .p-contact .c-form .c-form__group.c-form__group--agree {
    display: flex;
    align-items: center;
    gap: 8px;
    /* 右カラム = 左列幅 + カラム間ギャップ（c-form側トークン） */
    padding-left: calc(var(--cf-col-left) + var(--cf-gap-x));
    margin-bottom: var(--cf-gap-x);
    text-align: left;
  }
  .p-contact .c-form .c-form__group.c-form__group--agree > .wpcf7-form-control-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    width: auto;
  }
  .p-contact .c-form .c-form__group.c-form__group--agree {
    /* 残骸を非表示（特異性強化） */
  }
  .p-contact .c-form .c-form__group.c-form__group--agree > span:not(.wpcf7-form-control-wrap):not(.c-form__agree-text):not(.c-form_agree-text) {
    display: none !important;
  }
}

/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* ---- sr-only ---- */
.u-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==============================
   Policy（個人情報保護方針 / Cookie 共用）
   tokenized / theme-aware
============================== */
.p-policy {
  color: var(--color-fg);
  background-color: var(--color-bg);
  /* 固定ヘッダ対策: 可変余白 */
  margin-top: clamp(40px, 6vh, 96px);
  /* セクションの上下余白（モバイル詰め / デスクゆったり） */
}
.p-policy.c-section {
  padding-block: clamp(20px, 5vw, 64px);
}
.p-policy {
  /* 文章の“流し”ルール（下余白のみ） */
}
.p-policy :where(p, ol, ul, address, .p-policy__heading) {
  margin-top: 0;
  margin-bottom: 16px;
}
.p-policy {
  /* 見出し→段落の間を詰めすぎない */
}
.p-policy .p-policy__heading + :where(p, ol, ul) {
  margin-top: 12px;
}
.p-policy {
  /* セクション間の余白を統一 */
}
.p-policy__section {
  margin: 0 0 clamp(24px, 5vw, 40px);
  scroll-margin-top: 96px;
  line-height: 1.9;
  /* セクション内の最後の余白だまりを解消 */
}
.p-policy__section > :last-child {
  margin-bottom: 0;
}
.p-policy__section {
  /* ターゲット強調（brand×透明） */
}
.p-policy__section:target .p-policy__heading {
  background: linear-gradient(90deg, rgb(var(--brand-rgb)/0.1), transparent);
}
.p-policy__section {
  /* リストのインデントと行間 */
}
.p-policy__section ol,
.p-policy__section ul {
  margin: 16px 0 16px 20px;
  padding: 0;
}
.p-policy__section ol {
  list-style: decimal;
}
.p-policy__section ol ol {
  list-style: decimal;
  margin-top: 6px;
}
.p-policy__section li {
  padding-left: 4px;
}
.p-policy__section li + li {
  margin-top: 4px;
}
.p-policy__section {
  /* 箇条書きの行間を一定に */
}
.p-policy__header {
  margin-bottom: clamp(24px, 4vw, 40px);
  padding-top: clamp(20px, 4vw, 32px);
}
.p-policy__header .c-pageTitle {
  margin: 0 0 16px;
  line-height: 1.25;
  font-size: clamp(28px, 3.5vw, 40px);
}
.p-policy__header .p-policy__lead {
  color: var(--color-muted);
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.9;
  margin: 0 0 16px;
}
.p-policy__header .p-policy__updated {
  font-size: 0.93rem;
  color: var(--color-muted);
  border-left: 3px solid var(--color-brand);
  padding-left: 16px;
  margin: 12px 0 0; /* 少し詰める */
}
.p-policy {
  /* 目次：上下余白と内側パディングを微調整 */
}
.p-policy__toc {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.02));
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: clamp(16px, 2.5vw, 20px);
  margin: 0 0 clamp(20px, 4vw, 32px);
}
.p-policy__toc a {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px dotted transparent;
}
@media (hover: hover) and (pointer: fine) {
  .p-policy__toc a:hover {
    border-bottom-color: currentColor;
  }
}
.p-policy__toc a:focus-visible {
  border-bottom-color: currentColor;
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.35);
}
.p-policy__tocList {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
  list-style: none;
}
.p-policy__heading {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.5;
  padding: 0.25em 0.4em;
  border-left: 4px solid var(--color-brand);
  margin: 0 0 16px; /* 下だけ余白 */
}
.p-policy {
  /* 戻るリンク：上余白弱め、本文との間隔を均一化 */
}
.p-policy__back {
  margin-top: 12px;
  font-size: 0.95rem;
  text-align: end;
}
.p-policy__back a {
  text-underline-offset: 3px;
  color: inherit;
}
.p-policy__back a:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.35);
}
.p-policy {
  /* お問い合わせブロック：外側は本文ルールに従うので内側だけ整える */
}
.p-policy__address {
  font-style: normal;
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  padding: clamp(16px, 2.5vw, 20px);
  background-color: var(--color-surface);
}
.p-policy__dl {
  margin: 0;
  display: grid;
  gap: 8px;
}
.p-policy__row {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 12px;
}
.p-policy__row dt {
  color: var(--color-muted);
}
.p-policy__row dd {
  margin: 0;
}
.p-policy {
  /* セクション先頭の不要な上余白を消す（1つ目の要素だけ） */
}
.p-policy__section > *:first-child {
  margin-top: 0;
}
.p-policy {
  /* 最後の戻るリンクがある場合はセクションの下だまりを吸収 */
}
.p-policy__section > .p-policy__back:last-child {
  margin-top: 12px;
  margin-bottom: 0;
}
.p-policy {
  /* ---- モディファイア（任意） ---- */
}
.p-policy--personal {
  /* 個人情報保護方針用の差分があればここへ */
}
.p-policy--cookie {
  /* Cookieポリシー用の差分があればここへ */
}

/* 右揃えテキスト */
.tR {
  text-align: right;
}

/* ---- レスポンシブでの余白最終調整（ネストMQ） ---- */
@media (max-width: 479px) {
  .p-policy {
    margin-top: clamp(28px, 4vh, 56px); /* モバイルで上の余白をさらに詰める */
  }
  .p-policy.c-section {
    padding-block: clamp(16px, 4vw, 24px);
  }
  .p-policy__section {
    margin-bottom: clamp(20px, 5vw, 24px);
  }
  .p-policy__row {
    grid-template-columns: 6.5em 1fr;
    gap: 10px;
  }
}
/* ---- 印刷最適化 ---- */
@media print {
  .l-header,
  .l-footer,
  .p-policy__toc,
  .p-policy__back {
    display: none !important;
  }
  .p-policy.c-section {
    padding: 0 !important;
  }
  .p-policy {
    margin-top: 0 !important;
  }
  .p-policy__section {
    page-break-inside: avoid;
    margin-bottom: 24px;
  }
  a[href]:after {
    content: "";
  }
}
/* === Foundation (依存順に注意) ============================ */
/* 1) トークン：CSS変数／関数／maps（他がこれに依存） */
/* 3) 共通mixins（mq, container, focus-ring など） */
/* 4) 色ヘルパー（color(), bg(), colorA() 等） */
/* ================================
   404 Page (tokenized / accessible)
================================ */
.p-404 {
  text-align: center;
  padding: clamp(80px, 15vh, 200px) 16px;
  color: var(--color-fg);
}
.p-404__num {
  display: block;
  font-size: clamp(80px, 20vw, 200px);
  font-weight: 700;
  color: var(--color-brand);
  line-height: 1;
}
.p-404__text {
  display: block;
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 600;
  margin-top: 8px;
}
.p-404__desc {
  margin-top: 16px;
  font-size: clamp(14px, 2.5vw, 16px);
  /* rgba($color-text, .75) → fg のRGBチャネルで統一 */
  color: rgb(var(--fg-rgb) / 0.75);
  line-height: 1.8;
}
.p-404__btn {
  margin-top: 40px;
  /* 既存のボタン設計に準拠（どちらの命名にも対応） */
}
.p-404__btn .c-button--primary,
.p-404__btn .c-btn--primary {
  display: inline-block;
  background-color: var(--color-brand);
  color: var(--color-surface);
  font-weight: 600;
  padding: 0.8em 2em;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  transition: filter 0.2s ease, transform 0.02s ease-in-out;
}
@media (hover: hover) and (pointer: fine) {
  .p-404__btn .c-button--primary:hover,
  .p-404__btn .c-btn--primary:hover {
    filter: brightness(1.05);
  }
}
.p-404__btn .c-button--primary:active,
.p-404__btn .c-btn--primary:active {
  transform: translateY(1px);
}
.p-404__btn .c-button--primary:focus-visible,
.p-404__btn .c-btn--primary:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(var(--brand-rgb)/0.35);
}
.p-404 {
  /* 余白の調整（必要なら） */
}
@media (min-width: 768px) {
  .p-404 {
    padding-inline: 24px;
  }
}

/* === Utilities =============================================== */
/* 使っていない場合はコメントアウト推奨（下の判断ガイド参照） */
.u-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.u-focusable:focus {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* 2) 旧API互換：古い $color-*, $space-* を暫定サポートする場合だけ */
.u-mt-0 {
  margin-top: 0 !important;
}

.u-mt-1 {
  margin-top: 4px !important;
}

.u-mt-2 {
  margin-top: 8px !important;
}

.u-mt-3 {
  margin-top: 12px !important;
}

.u-mt-4 {
  margin-top: 16px !important;
}

.u-mt-5 {
  margin-top: 20px !important;
}

.u-mt-6 {
  margin-top: 24px !important;
}

.u-text-center {
  text-align: center !important;
}

.u-text-right {
  text-align: right !important;
}