/* EeeeMO SHELTER：ヒーロー以降のセクション。トークンは styles.css の :root を使う。 */

/* ---- セクション共通 ---- */
.section {
  --iso-line: var(--color-navy);
  --iso-bg: var(--color-paper);
  padding: var(--section-pad) var(--gutter);
  color: var(--color-ink);
  scroll-margin-top: var(--header-height);
}
.section--white { background: var(--color-paper); --iso-bg: var(--color-paper); }
.section--mist { background: var(--color-mist); --iso-bg: var(--color-mist); }
.section--dark { background: var(--color-bg); color: var(--color-text); --iso-line: rgba(255, 255, 255, .72); --iso-bg: var(--color-bg); }

.section__inner { max-width: var(--container); margin: 0 auto; }
/* 日本語を文節で折り返す（「変え／られ」「終／了」のような単語の途中での改行を防ぐ） */
.section, .statement, .site-footer { word-break: auto-phrase; }
.selfcheck__title, .subhead, .option__title, .pair__title, .duo__title, .report__heading { text-wrap: balance; }
.section__inner--narrow { max-width: 820px; }

.section__head { margin-bottom: 64px; text-align: center; }
.section__eyebrow {
  margin-bottom: var(--space-3);
  color: var(--cm-blue-text);
  font: 600 var(--text-eyebrow)/1.4 var(--font-figure);
  letter-spacing: .2em;
}
.section--dark .section__eyebrow { color: var(--cm-blue-on-dark); }
.section__title {
  color: var(--color-ink-strong);
  font-size: var(--text-section);
  font-weight: var(--weight-black);
  letter-spacing: -.01em;
  line-height: 1.35;
  word-break: auto-phrase;
  text-wrap: balance;
}
.section--dark .section__title { color: var(--color-white); }
.section__title .line { display: inline-block; }
.section__lead {
  max-width: 40em;
  margin: var(--space-4) auto 0;
  font-size: var(--text-section-lead);
  line-height: 1.85;
  word-break: auto-phrase;
  text-wrap: pretty;
}
.section__action { margin-top: 56px; text-align: center; }

.prose p { font-size: var(--text-section-lead); line-height: 1.9; word-break: auto-phrase; text-wrap: pretty; }
.prose p + p { margin-top: .6em; }

.pill--lg { height: 64px; padding: 0 44px; font-size: 18px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- 線画 ---- */
.iso { display: block; width: 100%; height: auto; color: var(--iso-line); overflow: visible; }
.iso path, .iso circle { vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.iso .iso-line { fill: none; stroke: currentColor; stroke-width: 1; }
.iso .iso-face { fill: var(--iso-bg); stroke: currentColor; stroke-width: 1; }
.iso .iso-tint { fill: color-mix(in srgb, currentColor 8%, var(--iso-bg)); }
.iso .iso-solid { fill: color-mix(in srgb, var(--color-navy) 10%, var(--iso-bg)); }
.section--dark .iso .iso-solid { fill: color-mix(in srgb, var(--color-navy) 85%, var(--iso-bg)); }
.section--dark .iso .iso-tint { fill: color-mix(in srgb, var(--color-navy) 70%, var(--iso-bg)); }
.iso .iso-glass { fill: color-mix(in srgb, currentColor 4%, transparent); }
.iso .iso-faint { fill: none; stroke: currentColor; stroke-width: 1; opacity: .5; }
.iso .iso-grid { fill: none; stroke: currentColor; stroke-width: 1; opacity: .28; }
.section--dark .iso .iso-grid { stroke: rgb(118, 152, 206); opacity: .55; }
.iso .iso-dash { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; }
.iso .iso-gold { fill: none; stroke: var(--color-gold); stroke-width: 1.25; }
.iso .iso-dot { fill: currentColor; }
.iso--small { width: 112px; height: 96px; margin-bottom: var(--space-4); }
.iso--medium { max-width: 300px; height: 210px; margin: 0 auto var(--space-5); }

/* ---- ふわっと表示（JS が動くときだけ） ---- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-calm), transform 700ms var(--ease-calm);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .statement [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---- 背景写真のあるセクション ---- */
.section--photo { position: relative; overflow: hidden; isolation: isolate; }
.section--photo > .section__inner { position: relative; z-index: 1; }
.section__photo { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.section__photo img { width: 100%; height: 100%; object-fit: cover; }
.section__photo::after { content: ""; position: absolute; inset: 0; }
.section__photo--how::after { background: linear-gradient(180deg, rgba(10, 10, 10, .9) 0%, rgba(10, 10, 10, .84) 40%, rgba(10, 10, 10, .93) 100%); }
/* 写真の上の線画：隠れ面はほぼ不透明の黒で塗り、下の層が透けて見えないようにする */
#how { --iso-bg: rgba(10, 10, 10, .97); }
.section__photo--cta img { object-position: 70% 50%; }
.section__photo--cta::after { background: linear-gradient(90deg, rgba(10, 10, 10, .93) 0%, rgba(10, 10, 10, .82) 50%, rgba(10, 10, 10, .3) 90%); }

/* ================= 2. 何が起きているのか ================= */
.analogy {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
}
.analogy__figure { max-width: 440px; justify-self: center; width: 100%; }
.analogy__body p:first-child { color: var(--color-ink-strong); font-weight: var(--weight-bold); }

/* このセクションの主役：10月21日の事実 */
.keyfact {
  max-width: 880px;
  margin: 112px auto 0;
  padding: 80px 0;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  text-align: center;
}
.keyfact__date {
  display: inline-block;
  margin-bottom: var(--space-4);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-gold);
  color: var(--color-navy);
  font: 700 15px/1.5 var(--font-figure);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}
.keyfact__text {
  color: var(--color-ink-strong);
  font-size: clamp(24px, 2.7vw, 40px);
  font-weight: var(--weight-black);
  line-height: 1.5;
  letter-spacing: -.01em;
  word-break: auto-phrase;
  text-wrap: balance;
}
.keyfact__note { margin-top: var(--space-4); color: var(--color-ink); font-size: 20px; line-height: 1.8; word-break: auto-phrase; text-wrap: pretty; }

.subhead {
  margin: 96px 0 var(--space-6);
  color: var(--color-ink-strong);
  font-size: 28px;
  font-weight: var(--weight-black);
  line-height: 1.5;
  text-align: center;
  word-break: auto-phrase;
  text-wrap: balance;
}

.risk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.risk {
  padding: var(--space-5) 28px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper);
}
.risk__title { margin-bottom: var(--space-2); color: var(--color-ink-strong); font-size: 19px; font-weight: var(--weight-black); line-height: 1.5; word-break: auto-phrase; }
.risk__text { font-size: 17px; line-height: 1.8; }
/* 小さな線画は紺で、補助線も少し濃く（線の太さは 1px のまま） */
.risk .iso { color: var(--color-navy); }
.risk .iso .iso-faint, .risk .iso .iso-dash { opacity: .85; }

/* 費用の数字ブロック */
.cost { margin-top: 80px; text-align: center; }
.cost__label { color: var(--color-ink-strong); font-size: 18px; font-weight: var(--weight-bold); line-height: 1.6; word-break: auto-phrase; }
.cost__value {
  margin-top: var(--space-1);
  color: var(--color-navy);
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: var(--weight-black);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.cost__source { margin-top: var(--space-2); color: var(--color-ink-sub); font-size: 14px; line-height: 1.8; }
.cost__links { white-space: nowrap; }
/* 押しやすいよう、出典の数字リンクに 24px 以上の当たり判定を持たせる */
.cost__links a {
  display: inline-block;
  min-width: 24px;
  padding: 2px 4px;
  color: var(--cm-blue-text);
  text-align: center;
  text-underline-offset: 3px;
}

.selfcheck {
  max-width: 760px;
  margin: 96px auto 0;
  padding: 48px 56px;
  border-radius: 24px;
  background: var(--color-mist);
  text-align: center;
}
.selfcheck__title { color: var(--color-ink-strong); font-size: 28px; font-weight: var(--weight-black); line-height: 1.5; }
.selfcheck__list { display: inline-grid; gap: var(--space-3); margin: var(--space-5) 0 40px; text-align: left; }
.selfcheck__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--color-ink-strong);
  font-size: var(--text-section-body);
  font-weight: var(--weight-bold);
  line-height: 1.6;
}
.selfcheck__list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: .3em;
  border: 1.5px solid var(--color-navy);
  border-radius: 4px;
  background: var(--color-paper);
}

/* ---- 2. 氷山 ---- */
.iceberg { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; max-width: 1080px; margin: 0 auto; }
/* 氷山の図は scripts/build-iceberg.cjs が生成（iso-art.js と同じ等角投影・1px 線）。面の塗りは紺 4% まで */
.iceberg__art { display: block; width: 100%; max-width: 520px; height: auto; justify-self: end; color: var(--color-navy); overflow: visible; }
.iceberg__art path, .iceberg__art circle { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.iceberg__art .ib-water { stroke: var(--cm-blue); opacity: .7; }
.iceberg__art .ib-wave { stroke: var(--cm-blue); opacity: .35; }
.iceberg__art .ib-body { fill: color-mix(in srgb, var(--color-navy) 4%, var(--iso-bg, #fff)); stroke-opacity: .55; }
.iceberg__art .ib-core { fill: color-mix(in srgb, var(--color-navy) 4%, var(--iso-bg, #fff)); stroke: var(--color-gold); }
.iceberg__art .ib-core-edge { stroke: var(--color-gold); }
.iceberg__art .ib-dash { stroke-dasharray: 3 4; opacity: .7; }
.iceberg__art .ib-waterline { stroke: var(--cm-blue); fill: color-mix(in srgb, var(--cm-blue) 4%, var(--iso-bg, #fff)); }
.iceberg__art .ib-tip { fill: var(--iso-bg, #fff); }
.iceberg__art .ib-tip-line { opacity: .5; }
.iceberg__art .ib-mark { fill: var(--iso-bg, #fff); stroke-opacity: .45; }
.iceberg__art .ib-mark-dot { fill: currentColor; stroke: none; opacity: .45; }
.iceberg__art .ib-gold { fill: var(--iso-bg, #fff); stroke: var(--color-gold); }
.iceberg__labels { position: relative; list-style: none; }
.iceberg__label { position: absolute; left: 0; right: 0; top: var(--y); transform: translateY(-50%); padding-left: 44px; }
.iceberg__label::before { content: ""; position: absolute; left: 0; top: 13px; width: 30px; height: 1px; background: var(--color-navy); opacity: .5; }
.iceberg__level { color: var(--cm-blue-text); font-size: 14px; font-weight: var(--weight-black); letter-spacing: .06em; line-height: 1.6; }
.iceberg__text { margin-top: 2px; color: var(--color-ink-strong); font-size: 18px; font-weight: var(--weight-bold); line-height: 1.6; text-wrap: pretty; }
.iceberg__items { display: grid; gap: 2px; margin-top: 2px; }
.iceberg__items li { position: relative; padding-left: 16px; color: var(--color-ink-strong); font-size: 17px; line-height: 1.7; }
.iceberg__items li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 6px; height: 1px; background: currentColor; }
.iceberg__label--core .iceberg__level { color: #8A6A10; } /* 金の文字は白地で読めないため、濃い金茶にする（白地で 5.06:1） */
.iceberg__label--core::before { background: var(--color-gold); opacity: 1; height: 2px; }
.iceberg__label--core .iceberg__text { padding: 10px 14px; border: 1.5px solid var(--color-gold); border-radius: 10px; }

/* 図の下の本文（入口から入られると…） */
.incident { max-width: 760px; margin: 72px auto 56px; text-align: center; }
.incident p { color: var(--color-ink-strong); font-weight: var(--weight-bold); }
.risk-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1040px; margin: 0 auto; }
.risk-note { margin-top: var(--space-5); color: var(--color-ink-strong); font-size: 18px; font-weight: var(--weight-bold); line-height: 1.8; text-align: center; }

/* ================= 3. 直すか、引っ越すか ================= */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.option {
  display: flex;
  flex-direction: column;
  padding: 48px 44px;
  border-radius: 24px;
  background: var(--color-paper);
}
.option--stay { border: 1px solid var(--color-rule); --iso-line: #9AA3B2; }
.option--move { border: 1.5px solid var(--color-navy); }
.option__title { margin-bottom: var(--space-4); font-size: 26px; font-weight: var(--weight-black); line-height: 1.45; text-align: center; }
.option--stay .option__title { color: var(--color-ink-sub); }
.option--move .option__title { color: var(--color-navy); }
.option__list { display: grid; gap: var(--space-2); }
.option__list li { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.75; }
.option__list li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 8px; height: 1px; background: currentColor; }
.option--stay .option__list li { color: var(--color-ink-sub); }
.option--move .option__list li { color: var(--color-ink-strong); }
.option--move .option__list li::before { width: 10px; height: 2px; background: var(--color-navy); }
.option__close {
  margin-top: auto;
  padding-top: var(--space-5);
  font-size: 19px;
  font-weight: var(--weight-black);
  line-height: 1.6;
  text-align: center;
  word-break: auto-phrase;
}
.option--stay .option__close { color: var(--color-ink-sub); }
.option--move .option__close { color: var(--color-navy); }
.option--move .option__close::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: var(--space-3) auto 0;
  background: var(--color-gold);
}

/* ================= 3.5 一文の帯 ================= */
.statement {
  --iso-line: var(--color-white);
  --iso-bg: var(--color-navy);
  position: relative;
  overflow: hidden;
  padding: 160px var(--gutter);
  background: var(--color-navy);
  color: var(--color-white);
}
.statement__art {
  position: absolute;
  top: 50%;
  right: -4%;
  width: min(860px, 60vw);
  transform: translateY(-50%);
  opacity: .13;
  pointer-events: none;
}
.statement__inner { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; }
.statement__text {
  font-size: clamp(32px, 4.45vw, 80px); /* 1440 幅で 64px。1 行目が 1 行に収まる大きさ */
  font-weight: var(--weight-black);
  letter-spacing: -.02em;
  line-height: 1.3;
  word-break: auto-phrase;
}
.statement__line { display: block; }
/* 改行位置の固定：600px 以上は 2 行、600px 未満は 4 行（自動の折り返しに任せない） */
.statement__seg { display: inline; }
@media (min-width: 600px) { .statement__line { white-space: nowrap; } }
@media (max-width: 599px) {
  .statement__seg { display: block; white-space: nowrap; }
  /* 最長の行「続けるのではなく、」（9 文字）が幅 320px でも 1 行に収まる大きさ */
  .statement .statement__text { font-size: clamp(28px, 9.4vw, 40px); } /* 下の 767px 以下の指定より優先 */
}
.statement__rule { display: block; width: 80px; height: 2px; margin-top: 48px; background: var(--color-gold); }
/* 1 行ずつ、ゆっくり浮かび上がる */
.js .statement [data-reveal] { transform: translateY(28px); transition-duration: 1200ms; transition-delay: calc(var(--reveal-delay, 0ms) * 6); }
.js .statement .statement__rule[data-reveal] { transform: none; transition-delay: 700ms; }
.js .statement [data-reveal].is-in { transform: none; }
/* 最終状態（演出の打ち切り後・タブ復帰後）。途中の状態で止まらないよう、演出を外して必ず全部見せる */
.js [data-reveal-group].is-revealed [data-reveal] { opacity: 1; transform: none; transition: none; }

/* ================= 4. 引っ越し先の仕組み ================= */
.layers {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: stretch;
}
.layers__art { max-width: 520px; justify-self: end; }
.layers__list { position: relative; list-style: none; }
.layer {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--layer-y, 0);
  transform: translateY(-50%);
  padding-left: 48px;
}
.layer::before { content: ""; position: absolute; left: 0; top: 14px; width: 32px; height: 1px; background: rgba(255, 255, 255, .45); }
.layer__role { color: rgba(255, 255, 255, .62); font-size: 14px; font-weight: var(--weight-bold); letter-spacing: .08em; line-height: 1.4; }
.layer__who { margin-top: 2px; color: var(--color-white); font-size: var(--text-card-title); font-weight: var(--weight-black); line-height: 1.4; }
/* 層の名前は公式サイトへのリンク（控えめな下線と外部リンクの矢印） */
.layer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.layer__ext { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
@media (hover: hover) and (pointer: fine) {
  .layer__link:hover { text-decoration-color: currentColor; }
}
.layer__text { max-width: 26em; margin-top: var(--space-1); font-size: 17px; line-height: 1.75; word-break: auto-phrase; }
/* 幅が狭い PC・タブレット（768〜1099px）は、説明が長く（VALANCE は 6 行）層の高さに合わせると重なるため、縦に並べて中央にそろえる */
@media (min-width: 768px) and (max-width: 1099px) {
  .layers__list { display: grid; align-content: center; gap: var(--space-5); }
  .layer { position: relative; top: auto; transform: none; } /* 左の短い線（::before）を各項目の横に置くため relative */
}

.duty {
  max-width: 760px;
  margin: 96px auto 0;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
}
.duty__eyebrow { color: rgba(255, 255, 255, .62); font-size: 15px; font-weight: var(--weight-bold); }
.duty__title { margin: var(--space-2) 0 var(--space-3); color: var(--color-white); font-size: 30px; font-weight: var(--weight-black); line-height: 1.5; }
.duty__text { font-size: var(--text-section-body); line-height: 1.9; word-break: auto-phrase; text-wrap: pretty; }

/* ================= 4.5 これから来るものに備える ================= */
.future { position: relative; }
.future__art { position: absolute; top: -24px; right: 0; width: 180px; height: auto; color: var(--color-navy); }
.forecast { width: 100%; border-collapse: collapse; }
.forecast__head { padding: 0 32px 20px; font-size: 18px; font-weight: var(--weight-black); line-height: 1.5; text-align: left; }
.forecast__head--risk { width: 50%; color: var(--color-ink-sub); }
.forecast__head--answer { color: var(--color-navy); border-left: 1px solid var(--color-rule); }
.forecast td {
  padding: 28px 32px;
  border-top: 1px solid var(--color-rule);
  font-size: 17px;
  line-height: 1.8;
  vertical-align: top;
  text-wrap: pretty;
}
.forecast tbody tr:last-child td { border-bottom: 1px solid var(--color-rule); }
.forecast__risk { color: var(--color-ink-sub); }
.forecast__answer {
  border-left: 1px solid var(--color-rule);
  color: var(--color-ink-strong);
  font-weight: var(--weight-medium);
}
/* 右列：各行の先頭に小さな金の点（文の 1 行目の高さにそろえる） */
.forecast__text { position: relative; display: block; padding-left: 20px; }
.forecast__text::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.9em - 3.5px); /* 行間 1.8 の 1 行目の中心 */
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
}
.future__close {
  max-width: 34em;
  margin: 72px auto 0;
  color: var(--color-ink-strong);
  font-size: 26px;
  font-weight: var(--weight-bold);
  line-height: 1.7;
  text-align: center;
  text-wrap: balance;
}
.future__close .line { display: inline-block; }
.future__sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 40px; color: var(--color-ink-sub); font-size: 14px; line-height: 1.8; }
.future__sources a { display: inline-block; padding: 3px 0; color: var(--cm-blue-text); text-underline-offset: 3px; }

/* ================= 4.6 診断の結果は3つ ================= */
.states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); list-style: none; }
.state { display: flex; flex-direction: column; padding: 40px 36px; border: 1px solid var(--color-rule); border-radius: 20px; background: var(--color-paper); }
.state__num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--space-3); border: 1px solid var(--color-navy); border-radius: 50%; color: var(--color-navy); font: 700 16px/1 var(--font-figure); }
.state__title { color: var(--color-ink-strong); font-size: var(--text-card-title); font-weight: var(--weight-black); line-height: 1.5; text-wrap: pretty; }
.state__text { margin-top: var(--space-2); font-size: 17px; line-height: 1.85; text-wrap: pretty; }
.state__reason { margin-top: auto; padding-top: var(--space-4); color: var(--color-navy); font-size: 18px; font-weight: var(--weight-black); line-height: 1.7; text-wrap: pretty; }
.state__reason::before { content: ""; display: block; width: 48px; height: 2px; margin-bottom: var(--space-3); background: var(--color-gold); }
.state__text + .state__reason { margin-top: var(--space-4); }
.states__note { margin-top: var(--space-4); color: var(--color-ink-sub); font-size: 14px; line-height: 1.8; text-align: center; }

/* 料金の中の「4通り」 */
.outcomes-wrap { max-width: 920px; margin: 72px auto 0; }
.subhead--left { margin: 0 0 var(--space-5); text-align: left; font-size: 24px; }

/* ================= 5. 引っ越しの流れ ================= */
.timeline { position: relative; max-width: 780px; margin: 0 auto; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 12px; bottom: 12px; width: 1px; background: var(--color-rule); }
.step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 28px; padding-bottom: 40px; }
.step:last-child { padding-bottom: 0; }
.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--color-navy);
  border-radius: 50%;
  background: var(--color-paper);
  color: var(--color-navy);
  font: 700 18px/1 var(--font-figure);
  font-variant-numeric: tabular-nums;
}
.step__title { padding-top: 14px; color: var(--color-ink-strong); font-size: var(--text-card-title); font-weight: var(--weight-black); line-height: 1.5; }
.step__text { margin-top: var(--space-1); font-size: var(--text-section-body); line-height: 1.85; word-break: auto-phrase; text-wrap: pretty; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: 96px; }
.pair__box { padding: 40px; border: 1px solid var(--color-rule); border-radius: 20px; background: var(--color-paper); }
.pair__title { margin-bottom: var(--space-4); color: var(--color-ink-strong); font-size: var(--text-card-title); font-weight: var(--weight-black); line-height: 1.5; }
.pair__list { display: grid; gap: var(--space-3); }
.pair__list li { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.8; word-break: auto-phrase; }
.pair__list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; border: 1px solid var(--color-navy); border-radius: 50%; }

/* ================= 6. 引っ越したあと ================= */
.report { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.report__mock { margin: 0; }
.report__caption { margin-top: var(--space-2); color: var(--color-ink-sub); font-size: 14px; text-align: center; }
.mock {
  overflow: hidden;
  border: 1px solid var(--color-rule);
  border-radius: 16px;
  background: var(--color-paper);
  box-shadow: 0 24px 48px -28px rgba(20, 43, 79, .35);
  font-family: var(--font-sans);
}
.mock__bar { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: 14px 20px; background: var(--color-navy); color: var(--color-white); }
.mock__brand { font: 800 14px/1 var(--font-figure); letter-spacing: .04em; }
.mock__meta { font-size: 12px; opacity: .8; }
.mock__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--color-rule); }
.mock__kpi { display: grid; gap: 4px; padding: 18px 20px; border-left: 1px solid var(--color-rule); }
.mock__kpi:first-child { border-left: 0; }
.mock__label { color: var(--color-ink-sub); font-size: 12px; font-weight: var(--weight-bold); }
.mock__value { color: var(--color-ink-strong); font: 800 24px/1.2 var(--font-figure); font-variant-numeric: tabular-nums; }
.mock__delta { color: var(--color-ink-sub); font-size: 11px; }
.mock__chart { padding: 16px 20px 8px; }
.mock__chart svg { display: block; width: 100%; height: 88px; margin-top: 8px; }
.mock__grid { fill: none; stroke: var(--color-rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mock__line { fill: none; stroke: var(--color-navy); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mock__checks { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 12px 20px 18px; color: var(--color-ink); font-size: 12px; }
.mock__checks li::before { content: "✓ "; color: var(--color-navy); font-weight: 800; }

.report__heading { margin-bottom: var(--space-4); color: var(--color-ink-strong); font-size: 26px; font-weight: var(--weight-black); line-height: 1.5; }
.report__list { display: grid; gap: 0; border-top: 1px solid var(--color-rule); }
.report__list > div { padding: 14px 0; border-bottom: 1px solid var(--color-rule); }
.report__list dt { color: var(--color-ink-strong); font-size: var(--text-section-body); font-weight: var(--weight-black); line-height: 1.5; }
.report__list dd { margin-top: 2px; font-size: 17px; line-height: 1.7; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: 80px; }
.duo__card { padding: 40px; border-radius: 20px; background: var(--color-paper); }
/* 白いセクションに置いたとき、白いカードが背景と同化しないよう枠線を付ける（#future から下は白とグレーが交互） */
.section--white .duo__card, .section--white .outcome { border: 1px solid var(--color-rule); }
.duo__title { margin-bottom: var(--space-2); color: var(--color-ink-strong); font-size: var(--text-card-title); font-weight: var(--weight-black); line-height: 1.5; }
.duo__text { font-size: 17px; line-height: 1.85; word-break: auto-phrase; text-wrap: pretty; }

/* ================= 7. 料金 ================= */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); max-width: 920px; margin: 0 auto; }
.plan {
  position: relative;
  padding: 48px 40px 40px;
  border: 1px solid var(--color-rule);
  border-radius: 24px;
  background: var(--color-paper);
}
.plan--main { border: 1.5px solid var(--color-gold); }
.plan__tag {
  position: absolute;
  top: -14px;
  left: 40px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 13px;
  font-weight: var(--weight-black);
  line-height: 1.5;
}
.plan__name { color: var(--color-navy); font: 800 26px/1.3 var(--font-figure); letter-spacing: .01em; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: var(--space-3); color: var(--color-ink-strong); }
.plan__unit { font-size: 16px; font-weight: var(--weight-bold); }
.plan__amount { font: 800 44px/1.1 var(--font-figure); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.plan__tax { color: var(--color-ink-sub); font-size: 15px; }
.plan__scope { margin-top: 4px; color: var(--color-ink-sub); font-size: 16px; }
.plan__list { display: grid; gap: var(--space-2); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-rule); }
.plan__list li { display: flex; gap: 10px; color: var(--color-ink-strong); font-size: 17px; line-height: 1.6; }
.plan__note { margin-top: var(--space-3); color: var(--color-ink-sub); font-size: 15px; line-height: 1.7; }
.plan__list li::before { content: ""; flex: none; width: 12px; height: 7px; margin-top: .5em; border-left: 1.5px solid var(--color-navy); border-bottom: 1.5px solid var(--color-navy); transform: rotate(-45deg); }

.fees { width: 100%; max-width: 920px; margin: 56px auto 0; border-collapse: collapse; }
.fees th, .fees td { padding: 18px 4px; border-bottom: 1px solid var(--color-rule); font-size: 17px; line-height: 1.6; text-align: left; vertical-align: baseline; }
.fees tr:first-child th, .fees tr:first-child td { border-top: 1px solid var(--color-rule); }
.fees th { color: var(--color-ink-strong); font-weight: var(--weight-bold); }
.fees td { color: var(--color-ink-strong); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; text-align: right; }
.fees__tax { margin-left: var(--space-1); color: var(--color-ink-sub); font-size: 15px; font-weight: var(--weight-medium); }

.notes { display: grid; gap: 4px; max-width: 920px; margin: var(--space-4) auto 0; color: var(--color-ink-sub); font-size: 14px; line-height: 1.8; }
.notes li { word-break: auto-phrase; text-wrap: pretty; }
.notes li::before { content: "※ "; }

.growth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  max-width: 920px;
  margin: 56px auto 0;
  padding: 28px 36px;
  border-radius: 16px;
  background: var(--color-navy);
  box-shadow: inset 0 0 0 1px var(--color-gold);
  color: var(--color-white);
}
.growth__text { flex: 1 1 28em; font-size: 17px; line-height: 1.8; word-break: auto-phrase; }
.growth__link { color: var(--color-white); font-size: 17px; font-weight: var(--weight-bold); text-underline-offset: 5px; white-space: nowrap; }

/* ================= 8. 診断の結果は4通り ================= */
.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.outcome { padding: 36px 40px; border-radius: 20px; background: var(--color-paper); }
.outcome__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: var(--weight-black);
  line-height: 1.5;
}
.outcome__mark { font-size: 14px; }
/* 実際の診断結果画面（result-temp.css）と同じ色分け */
.outcome .b-std { background: #E6F7E9; color: #1F7A3A; }
.outcome .b-opt { background: #FFF4E0; color: #8A5300; }
.outcome .b-ind { background: #EEF2FF; color: #2F4BB8; }
.outcome .b-none { background: #EEF0EE; color: #4A524B; }
.outcome__text { margin-top: var(--space-3); font-size: 17px; line-height: 1.85; word-break: auto-phrase; text-wrap: pretty; }
.outcome__text a { color: var(--cm-blue-text); font-weight: var(--weight-bold); text-underline-offset: 4px; }

/* ================= 9. よくある質問 ================= */
.faq { border-top: 1px solid var(--color-rule); }
.faq__item { border-bottom: 1px solid var(--color-rule); }
.faq__q {
  position: relative;
  display: block;
  padding: 26px 56px 26px 44px;
  color: var(--color-ink-strong);
  font-size: 19px;
  font-weight: var(--weight-black);
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before { content: "Q"; position: absolute; left: 4px; top: 26px; color: var(--color-navy); font: 800 19px/1.6 var(--font-figure); }
.faq__q::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--color-navy);
  border-bottom: 1.5px solid var(--color-navy);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 200ms var(--ease-calm);
}
.faq__item[open] > .faq__q::after { transform: translateY(-30%) rotate(-135deg); }
.faq__q:focus-visible { outline-offset: -2px; }
.faq__a {
  position: relative;
  padding: 0 56px 28px 44px;
  font-size: 17px;
  line-height: 1.9;
  word-break: auto-phrase;
  text-wrap: pretty;
}
.faq__a::before { content: "A"; position: absolute; left: 4px; top: 0; color: var(--color-ink-sub); font: 800 19px/1.6 var(--font-figure); }
@media (prefers-reduced-motion: reduce) { .faq__q::after { transition: none; } }

/* ================= 10. 最後の入口 ================= */
.section--cta { position: relative; overflow: hidden; }
.cta { display: grid; grid-template-columns: minmax(0, 640px); padding: 48px 0; }
.cta__title { color: var(--color-white); font-size: 48px; font-weight: var(--weight-black); letter-spacing: -.01em; line-height: 1.35; word-break: auto-phrase; text-wrap: balance; }
.cta__text { margin-top: var(--space-3); font-size: var(--text-section-body); line-height: 1.8; word-break: auto-phrase; text-wrap: pretty; }
.check--foot { margin-top: 40px; }

/* ================= フッター ================= */
/* ロゴは「白または明るい無地の背景」で使う指定のため、フッターは明るい背景にする */
.site-footer { padding: 56px var(--gutter) 48px; background: var(--color-mist); color: var(--color-ink-sub); }
.site-footer__inner { display: grid; justify-items: center; gap: var(--space-4); max-width: var(--container); margin: 0 auto; text-align: center; }
.site-footer__logo { width: auto; height: 80px; max-width: 100%; object-fit: contain; } /* 幅 320px の画面でもはみ出さない */
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-5); }
.site-footer__nav a { display: inline-block; padding: 6px 0; color: var(--color-ink); font-size: 14px; text-decoration: none; } /* 指で押しやすい高さ（32px 前後）を確保 */
@media (hover: hover) and (pointer: fine) { .site-footer__nav a:hover { color: var(--color-navy); text-decoration: underline; text-underline-offset: 4px; } }
.site-footer__copy { font: 500 13px/1.6 var(--font-figure); }

/* ================= 幅の狭い画面 ================= */
@media (max-width: 1023px) {
  :root { --text-section: 44px; --section-pad: 96px; }
  .risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .states { grid-template-columns: 1fr; }
  .risk-grid--three { grid-template-columns: 1fr; }
  .report { grid-template-columns: 1fr; }
  .section__photo--cta::after { background: linear-gradient(180deg, rgba(10, 10, 10, .72) 0%, rgba(10, 10, 10, .88) 100%); }
}

@media (max-width: 767px) {
  :root { --text-section: clamp(28px, 7.4vw, 40px); --text-section-lead: 17px; --text-section-body: 16px; --text-card-title: 19px; --section-pad: 72px; }
  .section__head { margin-bottom: 40px; }
  .analogy, .compare, .pair, .duo, .plans, .outcomes { grid-template-columns: 1fr; }
  .iceberg { grid-template-columns: 1fr; gap: var(--space-4); }
  .iceberg__art { justify-self: center; max-width: 360px; }
  .iceberg__labels { display: grid; gap: var(--space-4); }
  .iceberg__label { position: relative; top: auto; transform: none; } /* 左の短い線（::before）を各ラベルの横に置くため relative */
  .iceberg__text { font-size: 16px; }
  .iceberg__items li { font-size: 16px; }
  .risk-note { font-size: 16px; }
  .incident { margin: 48px auto 40px; text-align: left; }
  .state { padding: 28px 24px; }
  .state__text { font-size: 16px; }
  .state__reason { font-size: 17px; }
  .outcomes-wrap { margin-top: 56px; }
  .subhead--left { font-size: 20px; }
  .analogy { gap: var(--space-5); }
  .analogy__figure { max-width: 300px; }
  .keyfact { margin-top: 64px; padding: 48px 0; }
  .keyfact__text { font-size: 25px; }
  .keyfact__note { font-size: 17px; }
  .cost { margin-top: 56px; }
  .cost__label { font-size: 16px; }
  .statement { padding: 96px var(--gutter); }
  .statement__text { font-size: clamp(32px, 6.4vw, 40px); }
  .statement__art { width: 120%; right: -45%; opacity: .1; }
  .statement__rule { margin-top: 32px; }
  .subhead { margin: 64px 0 var(--space-5); font-size: 21px; }
  .risk-grid { grid-template-columns: 1fr; }
  .risk { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: var(--space-3); padding: var(--space-4) 20px; }
  .risk .iso--small { grid-row: span 2; width: 72px; height: 64px; margin: 0; }
  .selfcheck { margin-top: 64px; padding: 36px 24px; }
  .selfcheck__title { font-size: 21px; }
  .pill--lg { width: 100%; }
  .option { padding: 36px 24px; }
  .option__title { font-size: 21px; }

  .layers { grid-template-columns: 1fr; gap: var(--space-5); }
  .layers__art { justify-self: center; max-width: 300px; }
  .layers__list { display: grid; gap: var(--space-5); }
  .layer { position: static; transform: none; padding-left: 0; }
  .layer::before { display: none; }
  .duty { margin-top: 64px; padding-top: 40px; }
  .duty__title { font-size: 22px; }

  .future__art { position: static; display: block; width: 132px; margin: -16px 0 16px auto; }
  .forecast thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .forecast, .forecast tbody, .forecast tr, .forecast td { display: block; width: 100%; }
  .forecast tr { padding: 24px 0; border-top: 1px solid var(--color-rule); }
  .forecast tbody tr:last-child { border-bottom: 1px solid var(--color-rule); }
  .forecast td, .forecast tbody tr:last-child td { padding: 0; border: 0; font-size: 16px; }
  .forecast__answer { margin-top: 14px; padding-top: 14px !important; border-left: 0 !important; border-top: 1px dashed var(--color-rule) !important; }
  .forecast td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 14px; font-weight: var(--weight-black); }
  .forecast__risk::before { color: var(--color-ink-sub); }
  .forecast__answer::before { color: var(--color-navy); }
  .future__close { margin-top: 48px; font-size: 20px; }
  .timeline::before { left: 23px; }
  .step { grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding-bottom: 32px; }
  .step__num { width: 48px; height: 48px; font-size: 15px; }
  .step__title { padding-top: 8px; }
  .pair { margin-top: 64px; }
  .pair__box, .duo__card { padding: 28px 24px; }

  .mock__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock__kpi:nth-child(3) { border-left: 0; }
  .mock__kpi:nth-child(n + 3) { border-top: 1px solid var(--color-rule); }
  .mock__meta { display: none; }
  .report { gap: 40px; }
  .report__heading { font-size: 21px; }
  .duo { margin-top: 56px; }

  .plan { padding: 40px 24px 28px; }
  .plan__tag { left: 24px; }
  .plan__amount { font-size: 38px; }
  .fees th, .fees td { display: block; padding: 4px 0; border: 0; text-align: left; }
  .fees tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--color-rule); }
  .fees tr:first-child { border-top: 1px solid var(--color-rule); }
  .fees tr:first-child th, .fees tr:first-child td { border-top: 0; }
  .growth { padding: 24px; }

  .outcome { padding: 28px 24px; }
  .faq__q { padding: 22px 40px 22px 32px; font-size: 17px; }
  .faq__q::before { top: 22px; font-size: 17px; }
  .faq__a { padding: 0 8px 24px 32px; font-size: 16px; }

  .cta__title { font-size: clamp(26px, 7vw, 36px); }
}

/* ================= 特定商取引法に基づく表記（law.html） ================= */
.law { padding: calc(var(--header-height) + 72px) var(--gutter) 96px; background: var(--color-paper); color: var(--color-ink); }
.law__inner { max-width: 880px; margin: 0 auto; }
.law__title { color: var(--color-ink-strong); font-size: clamp(28px, 3.2vw, 40px); font-weight: var(--weight-black); line-height: 1.4; }
.law__lead { margin-top: var(--space-2); font-size: 17px; line-height: 1.8; }
.law__heading { margin: 56px 0 var(--space-3); color: var(--color-ink-strong); font-size: 22px; font-weight: var(--weight-black); line-height: 1.5; }
.law__table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--color-rule); }
.law__table > tbody > tr > th, .law__table > tbody > tr > td { padding: 18px 4px; border-bottom: 1px solid var(--color-rule); font-size: 16px; line-height: 1.8; text-align: left; vertical-align: top; }
.law__table > tbody > tr > th { width: 13em; padding-right: var(--space-4); color: var(--color-ink-strong); font-weight: var(--weight-bold); }
.law__table a { color: var(--cm-blue-text); text-underline-offset: 4px; overflow-wrap: anywhere; }
.law__sub { color: var(--color-ink-sub); font-size: 15px; }
.law__prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.law__prices th, .law__prices td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--color-rule); font-size: 15px; line-height: 1.6; text-align: left; vertical-align: top; }
.law__prices thead th { color: var(--color-ink-sub); font-size: 14px; font-weight: var(--weight-bold); }
.law__prices tbody th { color: var(--color-ink-strong); font-weight: var(--weight-bold); }
.law__note { margin-top: var(--space-2); color: var(--color-ink-sub); font-size: 14px; }
.law__updated { margin-top: 48px; color: var(--color-ink-sub); font-size: 14px; }
@media (max-width: 599px) {
  .law { padding: calc(var(--header-height) + 40px) var(--gutter) 64px; }
  .law__heading { margin-top: 40px; font-size: 20px; }
  .law__table > tbody > tr > th, .law__table > tbody > tr > td { display: block; width: auto; padding: 0; border: 0; }
  .law__table > tbody > tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--color-rule); }
  .law__table > tbody > tr > th { margin-bottom: 4px; font-size: 15px; }
  .law__prices thead { display: none; }
  .law__prices tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--color-rule); }
  .law__prices th, .law__prices td { padding: 0; border: 0; }
  .law__prices tbody th { grid-column: 1 / -1; }
  .law__prices td[colspan] { grid-column: 1 / -1; }
  .law__prices td[data-label]::before { content: attr(data-label) "　"; color: var(--color-ink-sub); font-size: 13px; }
}
