@charset "UTF-8";
/* ============================================================
   style.css — みせもり（Mise-Mori）共通スタイル
   構成: 1.トークン → 2.リセット/ベース → 3.レイアウト
        → 4.共通部品 → 5.モーション → 6.停止ポリシー
   見た目の正: docs/design-comp_misemori_v2.html の #plan-d
   ページ固有のスタイルは /assets/css/pages/<page>.css に書き、
   このファイルには全ページで使う部品だけを置く。
   ブレークポイント: 768px（タブレット） / 1024px（PC）。モバイルファースト。
   ============================================================ */

/* ---------- 1. トークン ---------- */
:root {
  /* 色（仕様書2章） */
  --color-bg: #FFFFFF;          /* 地: 白（2026-09-30 ユーザー指示で生成り #F6F0E6 から変更） */
  --color-panel: #EFE6D8;       /* 面: 交互セクション・パネル */
  --color-surface: #FFFDF9;     /* カード・表・フォーム */
  --color-tint: #FAF4EA;        /* カードの中のうすい面（表のおすすめ列など） */
  --color-main: #A65D43;        /* れんが: CTA・強調・価格 */
  --color-main-dark: #8E4D37;   /* れんがのホバー */
  --color-main-text: #8E4D37;   /* 小さい文字のれんが（24px 未満・18.66px 未満の太字）。#A65D43 の文字は生成り・面の上で 4.5:1 に届かないため */
  --color-main-ink: #ffffff;    /* れんがの上の文字 */
  --color-accent: #7D8B6A;      /* セージ: ラベルの下線・チェック */
  --color-text: #3B322C;        /* こげ茶: 本文・太線 */
  --color-muted: #5e544c;       /* 説明文 */
  --color-muted-2: #6d625a;     /* 注記 */
  --color-line: #E2D6C4;        /* 細線 */
  --color-off: #c9bba8;         /* 無効（オフのトグル） */
  --color-off-text: #a3978a;
  --color-field-line: #8a7c70;  /* 入力欄の枠（欄の地・生成り・面のどれの上でも 3:1 以上） */
  --color-on-dark: #F0C9B3;     /* こげ茶の帯の中の強調 */
  --color-error: #B3261E;

  /* 差し色（2026-09-30 遊び心のある版で追加。docs/playful_spec.md 2章）。主役はれんがと白、差し色は面積を小さく。
     コントラストは実測（WCAG の式）: 本文 4.5:1・大きな文字 3:1 */
  --color-mustard: #E6B24C;     /* からし色: イラストの差し色・事実の札のアイコンの地・小さな飾り。文字色に使わない（白の上 1.94:1）。この上のアイコンはこげ茶（6.46:1） */
  --color-marker: #F6DFA6;      /* 蛍光ペン（からしの淡い版）: こげ茶 9.55:1 ／ #5e544c 5.63:1 ／ #8E4D37 4.91:1 ／ れんが #A65D43 3.75:1（大きな文字だけ） */
  --color-peach: #F6D9C8;       /* ピーチ: 輪の飾り・札の地。この上の小さい文字はこげ茶 9.34 ／ #5e544c 5.50 ／ #8E4D37 4.80 まで（#6d625a は 4.42 で不可） */
  --color-peach-soft: #FBEDE4;  /* 淡いピーチ: イラストの円の地・淡いピーチの段。既存の文字色はすべて 4.5:1 以上（#6d625a 5.17 ／ れんが #A65D43 4.30 は大きな文字だけ） */

  /* 字体（角ゴシック）: 見出し=Zen Kaku Gothic New / 本文=Noto Sans JP / 英字・数字=Archivo */
  --font-display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Archivo", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;

  /* 型 */
  --space: 8px;
  --section-pad: 64px;                 /* PC は 100px（下で上書き） */
  --container: 1064px;                 /* カンプ .in（1160px−左右48px） */
  --container-narrow: 760px;
  --gutter: 20px;                      /* 画面の左右の余白（SP 20 / TB 32 / PC 48） */
  --frame-pad: 20px;                   /* ヘッダー・FV の左右（画面の端基準） */
  --radius: 2px;                       /* 角は2px。これより丸くしない */
  --shadow: 0 1px 2px rgba(59, 50, 44, 0.08);  /* 影はこれだけ */
  --check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E");

  /* 階層: z-index は必ずこの変数経由 */
  --z-spbar: 90;
  --z-header: 100;
  --z-nav: 200;
  --z-modal: 1000;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.7s;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --frame-pad: 32px; }
}
@media (min-width: 1024px) {
  :root {
    --section-pad: 100px;
    --gutter: 48px;
    /* 1280px 幅で 48px（カンプと同じ）。それより広い画面では中央に寄せる */
    --frame-pad: max(40px, calc(50vw - 592px));
  }
}

/* ---------- 2. リセット/ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }  /* 固定ヘッダーの下に隠れないように */

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.85;                /* 日本語本文の床 */
  font-size: 15px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;          /* 長いURL・英単語のはみ出し事故防止 */
  -webkit-text-size-adjust: 100%;
}

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

a { color: inherit; }
a:hover { opacity: 0.7; transition: opacity 0.3s; }

:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;                /* カンプと同じく見出しは字間を足さない */
  word-break: auto-phrase;          /* 対応ブラウザでは文節で折り返す */
  text-wrap: balance;               /* 2行になるとき行の長さをそろえる */
}
/* 本文の折り返しも文節で（「取りこぼ/している」「使えま/す。」のような語の途中の改行を防ぐ。対応ブラウザだけ効く）
   ページ側で keep-all＋<wbr> にしている箇所（price.css）は、そちらの指定が勝つようにクラス付きで上書きしている */
p, li, dt, dd, th, td, summary {
  word-break: auto-phrase;
  text-wrap: pretty;
}
ul, ol { padding: 0; }
em { font-style: normal; }
small { font-size: inherit; }

/* 読み上げ専用・スキップリンク */
.u-sr-only {
  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-nowrap { white-space: nowrap; }
/* 表の中の補足など、ひとまわり小さい注記 */
.u-small { display: inline-block; font-size: 13px; line-height: 1.6; color: var(--color-muted); }
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: calc(var(--z-nav) + 10);
  background: var(--color-text); color: #fff; padding: 8px 14px; font-size: 13px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ---------- 3. レイアウト ---------- */
.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.container--narrow { width: min(var(--container-narrow), 100% - var(--gutter) * 2); margin-inline: auto; }

.section { padding-block: var(--section-pad); }
.section--tint { background: var(--color-panel); }         /* 面の色の段 */
.section--flush { padding-top: 0; }                         /* 同じ地の段が続くとき上の余白を詰める */
.section--peach { background: var(--color-peach-soft); }   /* 淡いピーチの段（遊び心のある版）。この上のイラストの円は白になる（4-23） */

/* ---------- 4. 共通部品 ---------- */

/* 4-1 アイコン（/assets/img/common/icons.svg の symbol を use で参照） */
.icon { display: inline-block; width: 1em; height: 1em; vertical-align: middle; }
.icon-box {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--color-panel); color: var(--color-main);
}
.icon-box .icon { width: 28px; height: 28px; }
.icon-box--light { background: var(--color-surface); }      /* 面の色の段の上で使う */

/* 4-2 ロゴ（ヘッダー・フッターとも logo.png を img で。マークは ChatGPT で作った yuru_tenban2、文字は Zen Maru Gothic。
   書き出しは docs/scripts/compose_logo2.py --export、経過は docs/logo_record_2026-10-01.md）
   画像は 398×144（表示の3倍）。高さだけ決めて、幅は縦横比に任せる */
.logo { display: block; width: auto; height: 40px; }

/* 4-3 ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header__inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 60px; padding: 10px var(--frame-pad);
}
.site-header__logo {
  display: block; line-height: 0; text-decoration: none;
  position: relative; z-index: calc(var(--z-nav) + 1);   /* SPのメニューを開いてもロゴは見せる */
}
.site-header__logo:hover { opacity: 1; }
@media (min-width: 1024px) {
  .site-header__inner { min-height: 72px; padding-block: 13px; }
  .site-header .logo { height: 46px; }
}

/* ハンバーガー(SP・タブレット) */
.nav-toggle {
  display: block; margin-left: auto;
  width: 44px; height: 44px;           /* タップ領域44px確保 */
  background: none; border: none; cursor: pointer; padding: 0;
  position: relative; z-index: calc(var(--z-nav) + 1);
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px auto;
  background: var(--color-text); transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* グローバルナビ: SP は全画面、PC は横並び */
.global-nav {
  position: fixed; inset: 0; z-index: var(--z-nav);
  background: var(--color-bg);
  padding: 92px var(--gutter) 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.global-nav.is-open { opacity: 1; visibility: visible; }
.global-nav ul {
  list-style: none; max-width: 420px; margin: 0 auto;
  border-top: 2px solid var(--color-text);
}
.global-nav li { border-bottom: 1px solid var(--color-line); }
.global-nav ul a {
  display: block; padding: 15px 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  text-decoration: none;
}
.global-nav ul a:hover { opacity: 1; color: var(--color-main-text); }
.global-nav ul a[aria-current="page"] { color: var(--color-main-text); }
.global-nav .global-nav__cta { display: flex; max-width: 420px; margin: 28px auto 0; padding: 16px 30px; font-size: 15px; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .global-nav {
    position: static; inset: auto; z-index: auto;
    display: flex; align-items: center; gap: 28px; margin-left: auto;
    padding: 0; background: none; overflow: visible;
    opacity: 1; visibility: visible; transition: none;
  }
  .global-nav ul { display: flex; gap: 24px; max-width: none; margin: 0; border: 0; }
  .global-nav li { border: 0; }
  .global-nav ul a {
    display: inline-block; padding: 4px 0;
    font-family: var(--font-body); font-weight: 500; font-size: 14px;
  }
  .global-nav ul a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--color-accent); }
  .global-nav .global-nav__cta { display: inline-flex; margin: 0; padding: 10px 18px; font-size: 14px; }
}

/* 4-4 SPの画面下の固定バー（相談してみる｜デモを見る）。PCでは出さない */
.sp-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-spbar);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
}
.sp-cta a {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 6px 8px;
  border: 2px solid; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none;
}
.sp-cta a:hover { opacity: 1; }
/* .sp-cta a の border（currentColor）より強くするため、.sp-cta を前に付けて書く */
.sp-cta .sp-cta__main { background: var(--color-main); border-color: var(--color-main); color: var(--color-main-ink); }
.sp-cta .sp-cta__sub { background: var(--color-surface); border-color: var(--color-text); color: var(--color-text); }
body:has(> .sp-cta) { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
/* Tab で下へ進んだとき、フォーカスした部品が固定バーの下に隠れないように */
@media (max-width: 1023px) {
  html:has(body > .sp-cta) { scroll-padding-bottom: calc(66px + 16px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  /* 停止ボタン(bottom:76px・高さ約40px)がバーの上に重なる分も空ける */
  html:has(body > .sp-cta) { scroll-padding-bottom: calc(76px + 44px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 1024px) {
  .sp-cta { display: none; }
  body:has(> .sp-cta) { padding-bottom: 0; }
}

/* 4-5 フッター */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 48px 0 28px;
  font-size: 13px; color: var(--color-muted-2);
}
.site-footer__inner { display: grid; gap: 28px; }
.site-footer__logo { display: inline-block; line-height: 0; }
.site-footer__logo:hover { opacity: 1; }
.site-footer__tagline { margin-top: 12px; }
.site-footer__nav { display: grid; gap: 14px; }
.site-footer__nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { opacity: 1; color: var(--color-main-text); }
.site-footer__nav a[aria-current="page"] { color: var(--color-main-text); }
.site-footer__sub a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--color-line); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--color-line);
}
.site-footer__bottom a { text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; gap: 48px; }
  .site-footer__nav { justify-items: end; }
  .site-footer__nav ul { justify-content: flex-end; }
}

/* 4-6 ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 30px;
  background: var(--color-main); color: var(--color-main-ink);
  border: 2px solid var(--color-main); border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1.6;
  letter-spacing: 0.02em; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { opacity: 1; background: var(--color-main-dark); border-color: var(--color-main-dark); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn--sub { background: var(--color-surface); color: var(--color-text); border-color: var(--color-text); }
.btn--sub:hover { background: var(--color-panel); border-color: var(--color-text); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
/* れんがの面の上 */
.btn--invert { background: #fff; color: var(--color-main); border-color: #fff; }
.btn--invert:hover { background: var(--color-bg); border-color: var(--color-bg); }
.btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 4-7 セクションの見出し（英字ラベル＋h2） */
.section-label {
  display: inline-block;
  font-family: var(--font-en); font-weight: 800; font-size: 13px; line-height: 1.5;
  letter-spacing: 0.08em; color: var(--color-main-text);
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 2px; margin-bottom: 14px;
}
/* SPは1行に14字入る大きさ（最大24px）。375px幅でも「ひとりで切り盛りしていると、」が1行に収まる */
.section-title { font-weight: 900; font-size: min(24px, calc((100vw - 40px) / 14.2)); line-height: 1.5; }
.section-title em, .page-header__title em { color: var(--color-main); }
.section-lead { margin-top: 14px; color: var(--color-muted); max-width: 44em; }
.section-head { margin-bottom: 32px; }
.section-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
@media (min-width: 768px) { .section-title { font-size: 30px; } }
@media (min-width: 1024px) {
  .section-title { font-size: 34px; }
  .section-head { margin-bottom: 40px; }
}

/* 4-8 下層ページの見出し（page-header）: 面の帯＋パンくず＋英字ラベル＋h1＋リード＋下の太線 */
.page-header {
  background: var(--color-panel);
  border-bottom: 2px solid var(--color-text);
  padding: 18px 0 44px;
}
.page-header .breadcrumb { margin-bottom: 36px; }
.page-header > .container > .section-label:first-child { margin-top: 36px; }  /* パンくずが無いページ（404など） */
.page-header__title { font-weight: 900; font-size: 30px; line-height: 1.4; }
/* 語の途中で割れる見出し（「プライバシーポリシ/ー」）だけ、<wbr> の位置でだけ折り返す。全体に付けると thanks・404 の h1 が割れる */
.page-header__title--keep { word-break: keep-all; }
.page-header__lead { margin-top: 16px; max-width: 40em; color: var(--color-muted); }
@media (min-width: 768px) {
  .page-header__title { font-size: 38px; }
}
@media (min-width: 1024px) {
  .page-header { padding: 22px 0 64px; }
  .page-header .breadcrumb { margin-bottom: 56px; }
  .page-header > .container > .section-label:first-child { margin-top: 56px; }
  .page-header__title { font-size: 44px; }
  .page-header__lead { font-size: 16px; }
}

/* 4-8b page-header の右にイラスト（円の上）と輪の飾りを置く形（遊び心のある版・下層共通）
   使い方: .page-header に「page-header--art has-deco」を足し、.container の中の最後に次の塊を置く。
   差し替えるのは img の src と width/height だけ（縦長・横長どちらの絵でもよい。大きさは page-header 側で決まる）
     <div class="page-header__art" aria-hidden="true">
       <span class="illust-circle"><img src="/assets/img/illust/laptop.webp" width="660" height="480" alt=""></span>
       <span class="deco-ring deco-ring--brick"></span>
     </div>
   ・並び: SP（〜767px）は英字ラベルの右に小さく（h1・リードは全幅のまま＝文字は狭くしない）。768px〜は右の列に大きく、文字の列の上下中央
   ・パンくず・英字ラベル・h1・リード以外の子（できることの目次など）は全幅で一番下に並ぶ（1つまで。複数あるときは div で包む）
   ・輪は円の右上に円より奥で重なる。はみ出した分は page-header の端で切れる（has-deco）
   ・写真と違い最初の画面に入るので img に loading="lazy" は付けない */
.page-header--art > .container {
  --art: 96px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px;
  grid-template-areas: "crumb crumb" "label art" "title title" "lead lead";
}
.page-header--art > .container > * { grid-column: 1 / -1; grid-row-start: -1; }
.page-header--art > .container > .breadcrumb { grid-area: crumb; }
.page-header--art > .container > .section-label { grid-area: label; align-self: end; justify-self: start; }
.page-header--art > .container > .page-header__title { grid-area: title; }
.page-header--art > .container > .page-header__lead { grid-area: lead; }
.page-header--art > .container > .page-header__art { grid-area: art; align-self: end; margin: 0 6px 12px 0; }
.page-header__art { position: relative; isolation: isolate; line-height: 0; }
.page-header__art .illust-circle { --size: var(--art); }
.page-header__art .deco-ring {
  --ring: calc(var(--art) * 0.46);
  position: absolute; z-index: -1; top: -10%; right: -16%;
}
/* パンくずの無いページ（送信完了・404）: 英字ラベルが最初の子になる。絵が帯の上端に寄り、
   絵の上にはみ出すれんがの輪が帯の上端に接するので、絵の上に余白を足す（:has を使わずに書ける形） */
.page-header--art > .container > .section-label:first-child ~ .page-header__art { margin-top: 12px; }
@media (min-width: 768px) {
  .page-header--art > .container {
    --art: 180px;
    column-gap: 40px;
    grid-template-areas: "crumb crumb" ". art" "label art" "title art" "lead art" ". art";
    grid-template-rows: auto 1fr auto auto auto 1fr;   /* 絵が文字より高いとき、上下の 1fr に余りを分けて文字を中央に */
  }
  .page-header--art > .container > .page-header__art { align-self: center; margin: 0 14px 0 0; }
  .page-header--art > .container > .section-label:first-child ~ .page-header__art { margin-top: 24px; }
}
@media (min-width: 1024px) {
  .page-header--art > .container { --art: 230px; column-gap: 56px; }
  .page-header--art > .container > .page-header__art { margin-right: 24px; }
  .page-header--art > .container > .section-label:first-child ~ .page-header__art { margin-top: 32px; }
}

/* 4-9 パンくず */
.breadcrumb { font-size: 12px; line-height: 1.6; color: var(--color-muted-2); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 10px; color: var(--color-off-text); }
.breadcrumb a { text-underline-offset: 3px; text-decoration-color: var(--color-off); }

/* 4-10 カード面・グリッド */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: 24px 22px;
}
.card--panel { background: var(--color-panel); border-color: transparent; }
.card__title { font-size: 18px; line-height: 1.5; margin: 14px 0 6px; }
.card__title:first-child { margin-top: 0; }
.card__text { font-size: 14px; color: var(--color-muted); }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; list-style: none; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .card { padding: 30px 28px; }
  .card-grid { grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 20px; }
}

/* 4-11 スプリット（左右交互）。HTMLは常に media → body の順。--reverse でPCだけ左右を入れ替える */
.split { display: grid; gap: 28px; align-items: center; }
.split + .split { margin-top: 72px; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split__title { font-weight: 900; font-size: 24px; line-height: 1.5; }
.split__text { margin-top: 12px; }
.split__body .check-list { margin-top: 16px; }
.split__fit {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--color-line);
  font-size: 14px; color: var(--color-muted);
}
.split__fit b { display: block; font-size: 13px; color: var(--color-main-text); }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split + .split { margin-top: 100px; }
  .split--reverse > .split__media { order: 2; }
  .split__title { font-size: 28px; }
}

/* 4-12 チェック付きリスト（チェックはセージ。--main でれんが、--inline で横並び） */
.check-list { list-style: none; }
.check-list li { position: relative; padding: 3px 0 3px 25px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: calc(3px + 0.925em - 8px);
  width: 16px; height: 16px;
  background: var(--check-color, var(--color-accent));
  -webkit-mask: var(--check-mask) no-repeat center / contain;
  mask: var(--check-mask) no-repeat center / contain;
}
.check-list--main { --check-color: var(--color-main); }
.check-list--inline { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.check-list--inline li { padding-left: 23px; }

/* 4-13 小さなラベル（チップ・タグ） */
.chip {
  display: inline-block; background: var(--color-panel); color: var(--color-main-text);
  font-weight: 700; font-size: 13px; line-height: 1.6; padding: 5px 12px; border-radius: var(--radius);
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tag {
  display: inline-block; background: var(--color-panel); color: var(--color-main-text);
  font-size: 12px; font-weight: 500; line-height: 1.7; padding: 2px 8px; border-radius: var(--radius);
}
/* れんがの札（遊び心のある版）: 参考サイトの「17,000店舗」の札にあたる。文の中の語を <span class="tag tag--brick"> で包んで使う
   例:「別々より<span class="tag tag--brick tag--lg">月2,000円おトク</span>」「こんなお店に」の見出し札
   ・--brick: れんが地に白（4.92:1）／--marker: からしの淡い地にこげ茶（9.55:1）／--peach: ピーチ地にこげ茶（9.34:1）
   ・--lg: 少し大きく（14px）。文の中で目立たせたいとき
   ・れんがの面（おすすめのプラン・まとめCTA）の上では、--brick は自動でからしの淡い札になる（れんがの上にれんがは見えないため） */
.tag--brick { background: var(--color-main); color: var(--color-main-ink); font-weight: 700; }
.tag--marker { background: var(--color-marker); color: var(--color-text); font-weight: 700; }
.tag--peach { background: var(--color-peach); color: var(--color-text); }
.tag--lg { font-size: 14px; line-height: 1.6; padding: 2px 10px; margin-inline: 2px; }
.plan--rec .tag--brick, .cta-box .tag--brick { background: var(--color-marker); color: var(--color-text); }

/* 4-14 製品画面の絵（カンプの .ui-* をそのまま。架空のデータで描く・装飾扱いで aria-hidden） */
.ui-phone {
  width: 230px; background: #fff; border: 7px solid #23262b; border-radius: 14px; overflow: hidden;
  font-family: "Noto Sans JP", sans-serif; color: #23262b; font-size: 11px; line-height: 1.45; letter-spacing: 0;
}
.ui-top { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 12px 8px; border-bottom: 1px solid #e3e5e8; }
.ui-top b { font-size: 13px; }
.ui-top span { color: #7a808a; font-size: 10px; }
.ui-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 6px; align-items: center; padding: 9px 12px; border-bottom: 1px solid #eef0f2; }
.ui-row .t { font-weight: 700; font-size: 11px; }
.ui-row .n { font-weight: 500; }
.ui-row .n small { display: block; color: #7a808a; font-size: 9.5px; font-weight: 400; }
.ui-row.free .n { color: #a3a8b0; }
.ui-tag { font-size: 9px; padding: 2px 5px; border-radius: 2px; background: #eef0f2; color: #4a505a; white-space: nowrap; }
.ui-tag.warn { background: #fbe9e2; color: #a4452a; }
.ui-tag.new { background: #e5efe9; color: #2f6b4f; }
.ui-nav { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #e3e5e8; margin-top: 6px; }
.ui-nav span { text-align: center; padding: 9px 0 10px; color: #8a909a; font-size: 10px; }
.ui-nav span.on { color: #23262b; font-weight: 700; box-shadow: inset 0 2px 0 #23262b; }
.ui-card {
  background: #fff; border: 1px solid #d9dce1; border-radius: 2px; padding: 14px 16px; width: 230px;
  font-family: "Noto Sans JP", sans-serif; color: #23262b; font-size: 11px; line-height: 1.5; letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.ui-card .ui-lbl { color: #7a808a; font-size: 10px; }
.ui-card .big { font-size: 22px; font-weight: 700; letter-spacing: 0.01em; margin: 2px 0; }
.ui-card .sub { color: #7a808a; font-size: 10px; }
.ui-card .bar { height: 6px; background: #eef0f2; margin: 8px 0 4px; position: relative; }
.ui-card .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v, 62%); background: #23262b; }

/* 画面の絵を置く台（下層のスプリットの media 側で使う）。--photo で写真の上に重ねる */
.ui-stage {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  min-height: 420px; padding: 36px 20px;
  background: var(--color-panel); border-radius: var(--radius);
}
.section--tint .ui-stage { background: var(--color-surface); }
.ui-stage .ui-phone, .ui-stage .ui-card { position: relative; z-index: 2; }
.ui-stage--photo { justify-content: flex-start; align-items: flex-start; }
.ui-stage--photo > img {
  position: absolute; right: 0; top: 0; width: 72%; height: 100%;
  object-fit: cover; aspect-ratio: auto; border-radius: 0;
}
.ui-stage--photo .ui-card { position: absolute; right: 20px; bottom: 24px; }
@media (max-width: 767px) {
  .ui-stage .ui-phone, .ui-stage .ui-card { width: 200px; }
  .ui-stage--photo > img { width: 100%; }
}

/* 4-15 料金プラン（3枚。真ん中がおすすめ） */
.plans {
  display: grid; grid-template-columns: 1fr; list-style: none;
  border: 2px solid var(--color-text); border-radius: var(--radius); background: var(--color-surface);
}
.plan { padding: 30px 24px 28px; }
.plan + .plan { border-top: 1px solid var(--color-line); }
.plan--rec { background: var(--color-main); color: var(--color-main-ink); }
.plan__tag {
  display: inline-block; background: #fff; color: var(--color-main);
  font-size: 12px; font-weight: 700; line-height: 1.7; padding: 2px 10px; border-radius: var(--radius); margin-bottom: 8px;
}
.plan__name { font-size: 18px; }
.plan__price {
  font-family: var(--font-en); font-weight: 800; font-size: 48px; line-height: 1.1;
  margin: 10px 0 4px; letter-spacing: -0.02em;
}
.plan__price small { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-left: 4px; letter-spacing: 0; }
.plan__desc { font-size: 14px; }
.plan__list { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-line); font-size: 14px; }
.plan--rec .plan__list { border-color: rgba(255, 255, 255, 0.3); --check-color: #fff; }
.plan--rec :focus-visible { outline-color: #fff; }
@media (min-width: 1024px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan { padding: 36px 30px 34px; }
  .plan + .plan { border-top: 0; border-left: 1px solid var(--color-line); }
  .plan__price { font-size: 54px; }
}
/* 4か月目からの3つのプラン の小見出し（トップの PRICE で、料金の流れのあとに） */
.price-sub { font-size: 18px; margin: 48px 0 16px; }

/* 4-15b 料金の流れ（2026-09-30 追加。はじめの3か月 → 4か月目から「プランの月額」。伴走プランは4か月目から付けたり外したりできるもの（2026-10-01））
   <div class="price-steps">
     <div class="price-step price-step--start">…</div>
     <span class="price-steps__arrow" aria-hidden="true"></span>
     <div class="price-steps__after">
       <div class="price-step">…</div>
       <p class="price-steps__or">付けた月は</p>
       <div class="price-step price-step--rec"><span class="price-step__tag">…</span>…</div>
     </div>
   </div>
   ・SP（〜639px）: すべて縦に／640px〜: 4か月目からの2枚を横に／1024px〜: 1行に（はじめ → 4か月目からの2枚）
   ・はじめの3か月＝淡いピーチの地、伴走プラン＝れんがの枠（プランのおすすめのような塗りにはしない。塗りは1段に1つまで） */
.price-steps { display: grid; gap: 12px; }
.price-step {
  position: relative; display: flex; flex-direction: column;
  background: var(--color-surface); border: 2px solid var(--color-text); border-radius: var(--radius);
  padding: 22px 20px 20px;
}
.price-step--start { background: var(--color-peach-soft); }
.price-step--rec { border-color: var(--color-main); box-shadow: inset 0 0 0 1px var(--color-main); }
.price-step__when {
  align-self: flex-start;
  font-size: 12px; font-weight: 700; line-height: 1.7; padding: 1px 10px; border-radius: var(--radius);
  background: var(--color-text); color: #fff;
}
.price-step--rec .price-step__when { background: var(--color-main); color: var(--color-main-ink); }   /* 白の文字 4.9:1 */
.price-step__tag {
  position: absolute; top: -13px; right: 14px;
  font-size: 12px; font-weight: 700; line-height: 1.7; padding: 1px 10px; border-radius: var(--radius);
  background: var(--color-marker); color: var(--color-text);
}
.price-step__name { font-size: 18px; margin-top: 10px; }
.price-step__price {
  font-family: var(--font-en); font-weight: 800; font-size: 40px; line-height: 1.1;
  margin: 6px 0 8px; letter-spacing: -0.02em; color: var(--color-main);
}
.price-step__price small { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-left: 4px; letter-spacing: 0; color: var(--color-text); }
.price-step__desc { font-size: 14px; color: var(--color-muted); }
.price-step__list { font-size: 14px; line-height: 1.6; margin-bottom: 6px; }
.price-step__link { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 700; }
.price-step__link a { color: var(--color-main-text); }
/* 次へ進む「∨」（線の2辺。装飾） */
.price-steps__arrow {
  justify-self: center; width: 18px; height: 18px; margin: -2px 0 8px;
  border-right: 3px solid var(--color-main); border-bottom: 3px solid var(--color-main); transform: rotate(45deg);
}
.price-steps__after { display: grid; gap: 10px; }
.price-steps__or { justify-self: center; font-size: 13px; font-weight: 700; color: var(--color-muted); }
.price-steps__after > .price-step--rec { margin-top: 6px; }   /* 札（上に 13px はみ出す）のぶん */
@media (min-width: 640px) {
  .price-steps__after { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; }
  .price-steps__or { align-self: center; }
  .price-steps__after > .price-step--rec { margin-top: 0; }
  .price-steps { padding-top: 6px; }
}
@media (min-width: 1024px) {
  .price-steps { grid-template-columns: minmax(0, 1fr) auto minmax(0, 2.15fr); gap: 16px; }
  .price-steps__arrow { align-self: center; margin: 0 6px 0 -2px; transform: rotate(-45deg); }
  .price-step { padding: 26px 24px 24px; }
  .price-step__price { font-size: 44px; }
}

/* 4-16 よくある質問（details。最初から開いておく） */
.faq { border-top: 2px solid var(--color-text); }
.faq__item { border-bottom: 1px solid var(--color-line); }
.faq__q {
  display: block; list-style: none; cursor: pointer; position: relative;
  padding: 20px 44px 20px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.6;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before, .faq__q::after {
  content: ""; position: absolute; right: 10px; top: 50%;
  width: 14px; height: 2px; margin-top: -1px; background: var(--color-text);
}
.faq__q::before { transform: rotate(90deg); transition: transform 0.2s; }
.faq__item[open] > .faq__q::before { transform: rotate(0deg); }
.faq__q:hover { color: var(--color-main-text); }
.faq__a { padding: 0 44px 20px 0; margin-top: -14px; color: var(--color-muted); }
@media (min-width: 1024px) { .faq__q { font-size: 17px; } }
/* 「Q」「A」のれんがの小さな札（装飾）。文字は data-qa から CSS で出すので、画面の文（＝FAQPage の JSON-LD と一致させる文）に「Q」「A」は混ざらない
   .faq に faq--qa を足し、質問・答えの先頭に札を置く:
   <div class="faq faq--qa">
   <summary class="faq__q"><span class="qa-tag" data-qa="Q" aria-hidden="true"></span>質問の文</summary>
   <p class="faq__a"><span class="qa-tag qa-tag--a" data-qa="A" aria-hidden="true"></span>答えの文</p> */
.faq--qa .faq__q, .faq--qa .faq__a { position: relative; padding-left: 40px; }
@media (max-width: 767px) { .faq--qa .faq__a { padding-right: 0; } }  /* 答えの右は開閉の印の列ではないので、SP では文の幅を広く */
.qa-tag {
  position: absolute; left: 0; top: 20px;   /* 質問の1行目（行の高さ 25.6〜27.2px）の高さにそろえる */
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: var(--radius);
  background: var(--color-main); color: var(--color-main-ink);
  font-family: var(--font-en); font-weight: 800; font-size: 14px; line-height: 1; letter-spacing: 0;
}
.qa-tag::before { content: attr(data-qa); }
.qa-tag--a { top: 1px; background: var(--color-surface); color: var(--color-main-text); box-shadow: inset 0 0 0 2px var(--color-main); }

/* 4-17 まとめCTA（れんがの箱） */
.cta-section { background: var(--color-panel); padding-block: 56px; }
.cta-box {
  display: grid; gap: 24px; align-items: center;
  background: var(--color-main); color: var(--color-main-ink);
  border-radius: var(--radius); padding: 36px 24px;
}
.cta-box__title { font-weight: 900; font-size: 23px; line-height: 1.5; }
.cta-box__text { margin-top: 8px; }  /* 文字は親の白のまま（半透明の白は 4.5:1 に届かない） */
.cta-box__btns { display: flex; flex-direction: column; gap: 12px; }
.cta-box :focus-visible { outline-color: #fff; }
@media (min-width: 1024px) {
  .cta-section { padding-block: 90px; }
  .cta-box { grid-template-columns: 1fr auto; gap: 40px; padding: 56px 60px; }
  .cta-box__title { font-size: 30px; }
}
/* まとめCTAにイラスト（円の上）を添える形: .cta-box に cta-box--art を足し、最初の子に次を置く
   <span class="illust-circle cta-box__art" aria-hidden="true"><img src="/assets/img/illust/cheer.webp" width="380" height="480" alt="" loading="lazy"></span>
   SP・タブレット: 見出しの上に小さく（96px）／PC: 左の列に（150px） */
.cta-box .cta-box__art { --size: 96px; }
@media (min-width: 1024px) {
  .cta-box--art { grid-template-columns: auto 1fr auto; }
  .cta-box .cta-box__art { --size: 150px; margin-block: -12px; }
}

/* 4-18 表（料金比較・キーと値） */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%; border-collapse: collapse;
  background: var(--color-surface); border: 2px solid var(--color-text);
  font-size: 14px; line-height: 1.7;
}
.table caption { caption-side: top; text-align: left; font-weight: 700; padding-bottom: 10px; }
.table th, .table td {
  padding: 14px 16px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}
.table thead th {
  background: var(--color-panel); border-bottom: 2px solid var(--color-text);
  font-family: var(--font-display); font-size: 15px;
}
.table tbody th { font-weight: 700; }
.table tr:last-child > * { border-bottom: 0; }
.table .num { font-family: var(--font-en); font-weight: 800; font-size: 24px; line-height: 1.2; color: var(--color-main); letter-spacing: -0.01em; }
.table .num small { font-family: var(--font-display); font-size: 13px; font-weight: 700; margin-left: 2px; color: var(--color-text); }
.table-wrap + .table-wrap, .table-wrap + .table, .table + .table-wrap, .table + .table { margin-top: 32px; }
/* 比較表: 真ん中の列などを .is-rec で目立たせる。SPは横にスクロール */
.table--compare { min-width: 620px; table-layout: fixed; }  /* プランの列の幅をそろえる（中身の長さで真ん中のおすすめ列が狭くならないように） */
.table--compare thead th:not(:first-child) { width: 23.33%; }
.table--compare thead th:not(:first-child), .table--compare td { text-align: center; }
.table--compare tbody th { width: 30%; }
.table--compare thead th.is-rec { background: var(--color-main); color: var(--color-main-ink); }
.table--compare td.is-rec { background: var(--color-tint); }
.table-hint { display: none; font-size: 12px; color: var(--color-muted-2); margin-bottom: 8px; }  /* SPだけ「横に動かせます」を出す */
@media (max-width: 767px) { .table-hint { display: block; } }
/* キーと値の表: SPは縦に積む */
.table--def tbody th { width: 30%; background: var(--color-tint); }
@media (max-width: 767px) {
  .table--def, .table--def tbody, .table--def tr, .table--def th, .table--def td { display: block; width: auto; }
  .table--def tbody th { border-bottom: 0; padding-bottom: 4px; width: auto; }
  .table--def td { padding-top: 6px; }
}
@media (min-width: 1024px) {
  .table { font-size: 15px; }
  .table th, .table td { padding: 16px 20px; }
}

/* 4-19 注記 */
.note { font-size: 13px; line-height: 1.8; color: var(--color-muted-2); margin-top: 16px; }
.note--right { text-align: right; }
.note--box { background: var(--color-panel); padding: 14px 18px; border-radius: var(--radius); }

/* 4-20 フォーム基盤（項目の並べ方は contact 側で足す。ハニーポットは削除禁止） */
.form { display: grid; gap: calc(var(--space) * 4); }
.form__field { display: grid; gap: calc(var(--space) * 1); border: 0; padding: 0; min-width: 0; }
.form__field > label, .form__field > legend { font-size: 15px; font-weight: 700; padding: 0; }
.form__field > legend { margin-bottom: calc(var(--space) * 1); }  /* legend には grid の間隔が効かないので、同じ幅の余白を足す */
.form__field .required, .form__field .optional {
  display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: var(--radius);
  font-size: 11px; font-weight: 700; line-height: 1.8; vertical-align: 1px;
}
.form__field .required { background: var(--color-main); color: var(--color-main-ink); }
.form__field .optional { background: var(--color-panel); color: var(--color-muted-2); }
.form__hint { font-size: 13px; color: var(--color-muted-2); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px;
  background: var(--color-surface); color: var(--color-text);
  border: 1px solid var(--color-field-line); border-radius: var(--radius);  /* 欄の形が分かるよう 3:1 以上の枠 */
}
.form input:focus, .form textarea:focus { border-color: var(--color-main); outline: 2px solid var(--color-main); outline-offset: 0; }
.form input[type="radio"], .form input[type="checkbox"] { accent-color: var(--color-main); width: 18px; height: 18px; margin: 0; flex: none; }
.form__choices { display: flex; flex-wrap: wrap; gap: 8px 12px; list-style: none; }
.form__choices label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 14px; background: var(--color-surface);
  border: 1px solid var(--color-off); border-radius: var(--radius); font-weight: 500;
}
.form__choices label:has(input:checked) { border-color: var(--color-main); box-shadow: inset 0 0 0 1px var(--color-main); }
/* 入力欄の既定の枠（.form input[type=…]）より強くするため、要素名つきで書く */
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--color-error); }
.form input[aria-invalid="true"]:focus, .form textarea[aria-invalid="true"]:focus { outline-color: var(--color-error); }
.form__error { color: var(--color-error); font-size: 13px; min-height: 1.2em; }
.form__error:empty { min-height: 0; }
.form__hp { position: absolute; left: -9999px; }  /* ハニーポット: 削除禁止 */

/* ============================================================
   4-21〜4-27 遊び心のある版の部品（2026-09-30。docs/playful_spec.md）
   参考サイトから借りたのは「丸い枠の中の人物イラスト・段の端からのぞく太い輪・蛍光ペン・数字の札・事実の札・段のあいだの∨・淡いピーチの段」。
   角は2pxのまま（円・輪・イラストの円の地は装飾の図形なので border-radius:50% を使う）。グラデーション・発光の影は使わない。
   装飾（輪・円・イラスト・∨）は aria-hidden="true"、イラストの img は alt=""。文字の後ろには置かない。
   ============================================================ */

/* 4-21 輪の飾り（段の端からのぞく太い輪）
   使い方: 段（.section・.page-header・.cta-section など）に has-deco を足し、その直下（.container の外）に置く
     <span class="deco-ring deco-ring--peach deco-ring--m deco-ring--right" aria-hidden="true"></span>
   ・has-deco: position:relative＋overflow:clip。輪のはみ出した分は段の端で切れる。輪は中身より奥（中身は z-index:1 に上がる）
   ・色: --peach（既定）／--brick（れんが。強い。1ページ1つまで）／--mustard（からし。小さい輪だけ）
   ・大きさ（直径。SP→768px〜→1024px〜）: --s 110/150/190 ／ --m 150/220/300 ／ --l 190/300/420。線の太さは直径の 12%
   ・位置と「文字の後ろに置かない」決まり（どの画面幅でも中身に重ならない所にだけ出す）:
       --tl / --tr / --bl / --br（角）: 段の上（下）の余白の帯の中だけに出る（見える高さ＝余白−16px まで）。横は輪の半分まで入る
         → .section--flush（上の余白0）の上の角には置かない（出ない）。余白の違う入れ物は --deco-band で帯の高さを指定する
       --left / --right（辺の中ほど）: 1024px〜は .container の外の左右の余白の中だけに出る（1440px で最大 170px ほど、1024px では細い弧）。
         縦の位置は style="--ring-y: 30%"（既定 50%）。1023px 以下では自動で --tl / --tr（上の角）と同じ置き方になる
   ・--sp-hide: SP（〜767px）では出さない
   ・1ページに2〜4個まで。同じ段に2つ置かない。隣り合う段の境目をはさんで同じ側に置かない（--left/--right は 1023px 以下で上の角に移るので、
     上の段の --bl/--br と接して見える）。見本: _qa/playful/system/parts_sample.html と components_*.png */
.has-deco {
  --deco-band: calc(var(--section-pad) - 16px);   /* 角の輪が入ってよい帯の高さ（段の上下の余白−16px） */
  position: relative; overflow: hidden; overflow: clip; isolation: isolate;
}
:where(.has-deco) > :where(:not(.deco-ring)) { position: relative; z-index: 1; }  /* 詳細度0: 中身が自分で position を持っていればそちらが勝つ */
.deco-ring {
  --ring: 150px;
  --ring-color: var(--color-peach);
  position: absolute; z-index: 0; pointer-events: none;
  width: var(--ring); height: var(--ring);
  border: calc(var(--ring) * 0.12) solid var(--ring-color); border-radius: 50%;
}
.deco-ring--peach { --ring-color: var(--color-peach); }
.deco-ring--brick { --ring-color: var(--color-main); }
.deco-ring--mustard { --ring-color: var(--color-mustard); }
.deco-ring--s { --ring: 110px; }
.deco-ring--m { --ring: 150px; }
.deco-ring--l { --ring: 190px; }
@media (min-width: 768px) {
  .deco-ring--s { --ring: 150px; }
  .deco-ring--m { --ring: 220px; }
  .deco-ring--l { --ring: 300px; }
}
@media (min-width: 1024px) {
  .deco-ring--s { --ring: 190px; }
  .deco-ring--m { --ring: 300px; }
  .deco-ring--l { --ring: 420px; }
}
/* 角: 帯の高さ（--deco-band）と輪の半径の小さい方だけ中へ入る */
.deco-ring--tl, .deco-ring--tr, .deco-ring--left, .deco-ring--right { top: calc(min(var(--ring) * 0.5, var(--deco-band)) - var(--ring)); }
.deco-ring--bl, .deco-ring--br { bottom: calc(min(var(--ring) * 0.5, var(--deco-band)) - var(--ring)); }
.deco-ring--tl, .deco-ring--bl, .deco-ring--left { left: calc(var(--ring) * -0.5 + var(--ring-x, 0px)); }
.deco-ring--tr, .deco-ring--br, .deco-ring--right { right: calc(var(--ring) * -0.5 + var(--ring-x, 0px)); }
/* 辺の中ほど（1024px〜）: 見える幅＝左右の余白（段の幅−.container の幅）/2 −16px と、輪の半径の小さい方。left/right の % は段の幅 */
@media (min-width: 1024px) {
  .deco-ring--left, .deco-ring--right { top: var(--ring-y, 50%); transform: translateY(-50%); }
  .deco-ring--left { left: calc(min(var(--ring) * 0.5, max(var(--gutter), (100% - var(--container)) / 2) - 16px) - var(--ring)); }
  .deco-ring--right { right: calc(min(var(--ring) * 0.5, max(var(--gutter), (100% - var(--container)) / 2) - 16px) - var(--ring)); }
}
@media (max-width: 767px) {
  .deco-ring--sp-hide { display: none; }
}

/* 4-22 蛍光ペン（からしの淡い色の下線。グラデーションは使わず inset の影で引く）
   <span class="u-marker">こんなこと、ありませんか？</span>（見出しの語を包む。文言は変えない）
   ・2行に折れても行ごとに引く（box-decoration-break）。れんがの文字（大きな文字）の下にも引ける（3.75:1） */
.u-marker {
  box-shadow: inset 0 -0.6em 0 var(--color-marker);   /* 字の箱の下 0.6em＝字の下 3〜4割にかかる高さ */
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: 0.06em;
}

/* 4-23 イラストの円（円の地＋イラスト）。イラストの顔・袖は透明なので、円の地の色が肌の色に見える
   <span class="illust-circle illust-circle--m" aria-hidden="true"><img src="/assets/img/illust/worry.webp" width="284" height="480" alt="" loading="lazy"></span>
   ・img の src と width/height を差し替えるだけで使える。縦長の絵は円の下で胴が円に沿って切れ、横長の絵（laptop・phone-check・money）は
     幅に合わせて縮んで少し下寄りに入る（object-fit: contain）
   ・大きさ（直径。SP→768px〜→1024px〜）: --s 88/104/120 ／ --m 112/150/170 ／ --l 132/190/230 ／ --xl 150/230/280。
     入れ物側（page-header__art・section-head__art・cta-box__art など）で --size を決めているときは変種を付けなくてよい
   ・地の色: 既定は淡いピーチ。--peach（ピーチ）／--white（白）。淡いピーチの段（.section--peach）の中では自動で白
   ・--sp-hide: SP（〜767px）では出さない。SP で縦に長くなりすぎるときに使う
   ・絵は表示の2倍（高さ480px）で書き出してある。--xl より大きくしない */
.illust-circle {
  --size: 150px;
  position: relative; display: block; flex: none;
  width: var(--size); height: var(--size);
  border-radius: 50%; overflow: hidden;
  background: var(--illust-bg, var(--color-peach-soft));
}
.illust-circle > img {
  position: absolute; left: 5%; top: 8%; width: 90%; height: 92%; max-width: none;
  object-fit: contain; object-position: 50% 60%;
}
.illust-circle--s { --size: 88px; }
.illust-circle--m { --size: 112px; }
.illust-circle--l { --size: 132px; }
.illust-circle--xl { --size: 150px; }
.illust-circle--peach { --illust-bg: var(--color-peach); }
.illust-circle--white, .section--peach .illust-circle { --illust-bg: #fff; }
@media (min-width: 768px) {
  .illust-circle--s { --size: 104px; }
  .illust-circle--m { --size: 150px; }
  .illust-circle--l { --size: 190px; }
  .illust-circle--xl { --size: 230px; }
}
@media (min-width: 1024px) {
  .illust-circle--s { --size: 120px; }
  .illust-circle--m { --size: 170px; }
  .illust-circle--l { --size: 230px; }
  .illust-circle--xl { --size: 280px; }
}
@media (max-width: 767px) {
  .illust-circle--sp-hide { display: none; }
}

/* 4-24 見出しの横にイラスト（円の上）を置く形（.section-head の変種）
   <div class="section-head section-head--art">
     <p class="section-label" lang="en">WORRIES</p>
     <h2 class="section-title">…</h2>
     （<p class="section-lead">…</p>）
     <span class="illust-circle section-head__art" aria-hidden="true"><img src="/assets/img/illust/worry.webp" width="284" height="480" alt="" loading="lazy"></span>
   </div>
   ・SP: 英字ラベルの右に小さく（96px。見出しは全幅のまま）／768px〜: 見出しの右の列に（150px → 1024px〜 190px。文字の列の上下中央） */
.section-head--art {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px;
  grid-template-areas: "label art" "title title" "lead lead";
}
.section-head--art > * { grid-column: 1 / -1; }
.section-head--art > .section-label { grid-area: label; align-self: end; justify-self: start; }
.section-head--art > .section-title { grid-area: title; }
.section-head--art > .section-lead { grid-area: lead; }
.section-head--art > .section-head__art { grid-area: art; align-self: end; margin: 0 4px 12px 0; --size: 96px; }
@media (min-width: 768px) {
  .section-head--art {
    column-gap: 40px;
    grid-template-areas: ". art" "label art" "title art" "lead art" ". art";
    grid-template-rows: 1fr auto auto auto 1fr;
  }
  .section-head--art > .section-head__art { align-self: center; margin: 0; --size: 150px; }
}
@media (min-width: 1024px) {
  .section-head--art > .section-head__art { --size: 190px; margin-right: 12px; }
}

/* 4-25 事実の札（アイコン＋ラベル＋値）。参考サイトの王冠・円マークの札にあたる。**事実だけ**（実績の件数など、無い数字は作らない）
   <ul class="facts">
     <li class="fact">
       <span class="fact__icon" aria-hidden="true"><svg class="icon" focusable="false"><use href="/assets/img/common/icons.svg#i-yen"></use></svg></span>
       <span class="fact__label">月額<small>（税抜）</small></span>
       <span class="fact__value"><b class="fact__num">6,000</b>円〜</span>
     </li>…
   </ul>
   ・並び: 3つ横並び（--facts で列の数）。札の並びの幅（コンテナクエリ）で形が変わる:
     幅 560px 未満（SP・PC の細い所）はアイコン→ラベル→値の縦積みで中央ぞろえ、560px 以上はアイコンが左
   ・（税抜）などの添え書きはラベルの中の <small> に（どの札もラベル1行・値1行にそろう）
   ・札は白地に細線（写真や面の上でも文字の後ろは白）。アイコンの地はからし色の円、線はこげ茶 */
.facts { display: grid; grid-template-columns: repeat(var(--facts, 3), minmax(0, 1fr)); gap: 8px; list-style: none; container-type: inline-size; }
/* 細い並び: 札の中の「アイコン・ラベル・値」の3段を subgrid で札どうしそろえる（ラベルが2行に折れた札があっても、値の高さがそろう） */
.fact {
  display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 1px;
  justify-items: center; align-items: start; text-align: center;
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: 12px 4px 11px; min-width: 0;
}
.fact__icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; margin-bottom: 5px; border-radius: 50%;
  background: var(--color-mustard); color: var(--color-text);
}
.fact__icon .icon { width: 21px; height: 21px; }
.fact__label { font-size: 12px; font-weight: 700; line-height: 1.5; color: var(--color-muted); }
.fact__label small { font-size: 11px; font-weight: 500; color: var(--color-muted-2); }
.fact__value { font-family: var(--font-display); font-weight: 900; font-size: 15px; line-height: 1.35; color: var(--color-main); letter-spacing: 0; }
.fact__num { font-family: var(--font-en); font-weight: 800; font-size: 1.2em; letter-spacing: -0.01em; }
@container (min-width: 560px) {
  .fact {
    grid-row: auto; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto;
    align-items: center; justify-items: start; column-gap: 12px; row-gap: 0; text-align: left;
    padding: 12px 14px;
  }
  .fact__icon { grid-row: 1 / 3; width: 44px; height: 44px; margin: 0; }
  .fact__icon .icon { width: 26px; height: 26px; }
  .fact__label { align-self: end; }
  .fact__value { align-self: start; font-size: 17px; }
}

/* 4-26 段のあいだの「∨」（SVGの線。装飾）。悩み→解決のように、話が次へ進む所に1つ
   <div class="chevron" aria-hidden="true"><svg viewBox="0 0 44 30" focusable="false"><path d="M4 4l18 10 18-10M4 16l18 10 18-10"/></svg></div> */
.chevron { display: flex; justify-content: center; margin-block: 22px; color: var(--color-main); line-height: 0; }
.chevron svg { width: 40px; height: 27px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: miter; }
@media (min-width: 1024px) {
  .chevron { margin-block: 30px; }
  .chevron svg { width: 48px; height: 33px; }
}

/* 4-27 アイコンの円の地（料金の INCLUDED などで .icon-box に足す）。ピーチの円にれんがの線 */
.icon-box--circle { border-radius: 50%; background: var(--color-peach); }

/* ---------- 5. モーション基盤 ---------- */
/* JSが .is-inview を付ける。html.js（head のインラインで付与）の時だけ隠すので、JSが無くても読める。
   main.js が読めない・途中で止まったときは、head のインラインが3秒後に html.js を外して全部見せる（main.js の initReveal が window.__mmReady を立てる）。
   最初の画面に入る page-header・ファーストビューには js-reveal を付けない（表示を遅らせないため） */
.js .js-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}
.js .js-reveal.is-inview { opacity: 1; transform: none; }
.js-reveal[data-delay="1"] { transition-delay: 0.08s; }
.js-reveal[data-delay="2"] { transition-delay: 0.16s; }
.js-reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- 6. モーション停止(SKILL.mdのポリシー実装。削除禁止) ---------- */
.motion-stop {
  display: none;
  position: fixed; right: 12px; bottom: 12px; z-index: var(--z-modal);
  padding: 8px 14px; font: inherit; font-size: 12px; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-off);
  border-radius: var(--radius); cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .motion-stop { display: block; }     /* reduced-motion環境にだけボタンを出す */
}
@media (max-width: 1023px) {
  body:has(> .sp-cta) .motion-stop { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
html.is-motion-off .js-reveal,
html.is-motion-off *[class] {
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
}
html.is-motion-off .js-reveal { opacity: 1; transform: none; }
/* 上の *[class] は html 自身に当たらないので、なめらかなスクロールは別に止める（scroll-padding は残す） */
html.is-motion-off { scroll-behavior: auto; }
