@charset "UTF-8";

/* ==============================
   base
============================== */
:root {
  --badge: #fbef12;
  --sec-tint: #eeeeee;
  --ink: #1c1c1c;
  --white: #ffffff;
  --font-round: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --header-h: 72px;
}

/* --- テーマ：既定はブルー。<html data-theme="teal"> または ?theme=teal で旧ティール版 --- */
:root,
:root[data-theme="blue"] {
  --mv-bg: linear-gradient(90deg, rgba(3, 93, 174, 1), rgba(14, 244, 255, 1));
  --brand: #275dc1;
  --tone-deep: #083a82;
  --tone-deep-hover: #062d66;
  --tone-box: #0a4c9b;
  --badge-text: #083a82;
  --cta-icon: #1f6fe0;
  --cta-shadow: 2, 38, 96;
  --floor: #f2f5f9;
  --floor-shadow: #dde4ee;
  --th-main: #2a6fe0;
  --th-strong: #1f5fcf;
  --th-mid: #4f93f0;
  --th-light: #a6c8f7;
  --th-pale: #cfe1fb;
  --th-bg: #e9f2fd;
  --th-ink: #083a82;
  --footer-bg: #061d45;
  --sim-overlay: linear-gradient(120deg, rgba(3, 26, 66, 0.93) 0%, rgba(6, 44, 104, 0.88) 55%, rgba(4, 58, 128, 0.84) 100%);
}

:root[data-theme="teal"] {
  --mv-bg: radial-gradient(ellipse 58% 100% at 46% 20%, #05c4cc 0%, #02b3ba 30%, #009fa6 58%, #008d94 86%, #00898f 100%), #00898f;
  --brand: #00b3b9;
  --tone-deep: #015b66;
  --tone-deep-hover: #014a53;
  --tone-box: #00868d;
  --badge-text: #13705f;
  --cta-icon: #1aa3a9;
  --cta-shadow: 0, 52, 58;
  --floor: #f4f3ef;
  --floor-shadow: #e2e2dc;
  --th-main: #00b1b8;
  --th-strong: #00a3aa;
  --th-mid: #3cc2c8;
  --th-light: #9fdfe2;
  --th-pale: #c9eff1;
  --th-bg: #e5f6f7;
  --th-ink: #0e6a6f;
  --footer-bg: #01363c;
  --sim-overlay: linear-gradient(120deg, rgba(1, 40, 46, 0.93) 0%, rgba(1, 64, 72, 0.88) 55%, rgba(0, 86, 94, 0.84) 100%);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--badge);
  outline-offset: 3px;
}

.header a:focus-visible {
  outline-color: var(--brand);
}

/* ==============================
   header
============================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  padding-inline: 24px;
}

.header__logo {
  display: block;
  flex-shrink: 0;
}

.header__logo img {
  display: block;
  width: auto;
  height: 34px;
}

.header__nav {
  margin-inline: auto;
}

.header__nav-list {
  display: flex;
  gap: clamp(20px, 2.2vw, 44px);
}

.header__nav-list a {
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.header__nav-list a:hover {
  color: var(--brand);
}

.header__ctas {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding-inline: 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.header__cta--yellow {
  background: var(--badge);
  color: var(--tone-deep);
}

.header__cta--yellow:hover {
  background: #ede100;
}

.header__cta--dark {
  background: var(--tone-deep);
  color: var(--white);
}

.header__cta--dark:hover {
  background: var(--tone-deep-hover);
}

/* ==============================
   01 MV
============================== */
.mv {
  --fs1: clamp(40px, 5.9vw, 104px);
  position: relative;
  overflow: hidden;
  background: var(--mv-bg);
}

.mv__inner {
  --pad-l: clamp(24px, calc(24vw - 170px), 260px);
  --vis-w: clamp(480px, 48vw, 900px);
  --vis-r: max(-4vw, -77px);
  position: relative;
  max-width: 1920px;
  margin-inline: auto;
  min-height: clamp(560px, 45vw, 780px);
  padding: clamp(40px, 4.8vw, 84px) 24px clamp(56px, 5.6vw, 96px) var(--pad-l);
}

.mv__content {
  position: relative;
  z-index: 2;
}

/* --- リード：「〜は、」＋濃ティールのボックス --- */
.mv__lead {
  display: block;
  width: max-content;
  color: var(--white);
  font-weight: 700;
  font-size: calc(var(--fs1) * 0.44);
  font-feature-settings: "palt";
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transform: scaleX(0.86);
  transform-origin: left center;
}

.mv__lead-sm {
  font-size: 0.68em;
  margin-right: 0.12em;
}

.mv__lead-box {
  display: inline-block;
  background: var(--badge);
  color: var(--tone-deep);
  padding: 0.06em 0.28em 0.1em;
}

/* --- 見出し：長体の極太ゴシック＋大小ミックス --- */
.mv__title {
  margin-top: calc(var(--fs1) * 0.2);
  color: var(--white);
  font-weight: 800;
  font-feature-settings: "palt";
  line-height: 1;
  letter-spacing: 0.02em;
}

.mv__title-line {
  position: relative;
  display: block;
  width: max-content;
  white-space: nowrap;
  transform: scaleX(0.645);
  transform-origin: left bottom;
}

.mv__title-line--1 {
  font-size: var(--fs1);
}

.mv__title-line--2 {
  font-size: calc(var(--fs1) * 1.15);
  margin-top: 0.1em;
}

.mv__title-sm {
  display: inline-block;
  font-size: 0.66em;
  margin-left: 0.08em;
  margin-right: calc(var(--n, 1) * 0.26em);
  transform: scaleX(1.29);
  transform-origin: left bottom;
}

/* 「金、」の右肩に沿わせる強調線（行の長体を打ち消して正円比率で描く） */
.mv__title-spark {
  position: absolute;
  top: -0.17em;
  left: calc(100% - 0.52em);
  width: 0.42em;
  height: 0.42em;
  color: var(--white);
  transform: scaleX(1.55);
  transform-origin: left bottom;
}

/* --- 料金 --- */
.mv__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: calc(var(--fs1) * 0.38);
}

.price {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px 10px 16px;
  background: var(--tone-box);
  color: var(--white);
}

.price__label {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--tone-deep);
  font-weight: 700;
  font-size: clamp(12px, calc(var(--fs1) * 0.153), 16px);
  letter-spacing: 0.06em;
  line-height: 1.5;
  white-space: nowrap;
}

.price__value {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  font-feature-settings: "palt";
}

.price__num {
  font-weight: 800;
  font-size: calc(var(--fs1) * 0.64);
  line-height: 1;
  letter-spacing: -0.03em;
}

.price__unit {
  margin-left: 0.2em;
  font-weight: 800;
  font-size: calc(var(--fs1) * 0.24);
}

.price__unit small {
  font-weight: 700;
  font-size: 0.68em;
}

/* --- 料金の補足（大口の値下げ案内＋適用条件のヘッジ）。
   背後の床（白）にかかっても読めるよう、料金ボックスと同幅の紺帯にする --- */
.mv__offer {
  width: max-content;
  max-width: 100%;
  margin-top: calc(var(--fs1) * 0.38);
}

.mv__offer .mv__prices {
  margin-top: 0;
}

.mv__notes {
  contain: inline-size;
  margin-top: 10px;
  padding: 10px 18px 11px 16px;
  border-left: 4px solid var(--badge);
  background: var(--tone-deep);
  color: var(--white);
  word-break: auto-phrase;
  text-wrap: pretty;
}

.mv__volume {
  font-weight: 700;
  font-size: clamp(13px, calc(var(--fs1) * 0.155), 16px);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.mv__volume em,
.sim__volume em {
  color: var(--badge);
  font-style: normal;
}

.mv__volume em,
.mv__volume span,
.sim__volume em,
.sim__volume span {
  display: inline-block;
}

.mv__terms {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: clamp(11px, calc(var(--fs1) * 0.115), 12px);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* --- CTA：白ピル／濃ティールピル＋黄色バッジ --- */
.mv__actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 32px 22px;
  width: max-content;
  max-width: 100%;
  margin-top: calc(var(--fs1) * 0.6);
}

.cta {
  position: relative;
}

.cta__badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -58%);
  padding: 2px 14px 3px;
  border-radius: 999px;
  background: var(--badge);
  color: var(--badge-text);
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(12px, calc(var(--fs1) * 0.153), 16px);
  letter-spacing: 0.1em;
  line-height: 1.45;
  white-space: nowrap;
}

.cta__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: clamp(260px, calc(var(--fs1) * 3.3), 360px);
  height: clamp(58px, calc(var(--fs1) * 0.73), 80px);
  padding: 0 20px 0 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(15px, calc(var(--fs1) * 0.176), 19px);
  letter-spacing: 0.06em;
  box-shadow: 0 8px 20px rgba(var(--cta-shadow), 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(var(--cta-shadow), 0.3);
}

.cta__btn--white {
  background: var(--white);
  color: var(--ink);
}

.cta__btn--white .cta__icon {
  color: var(--cta-icon);
}

.cta__thumb .th-main { fill: var(--th-main); }
.cta__thumb .th-strong { fill: var(--th-strong); }
.cta__thumb .th-mid { fill: var(--th-mid); }
.cta__thumb .th-light { fill: var(--th-light); }
.cta__thumb .th-pale { fill: var(--th-pale); }
.cta__thumb .th-bg { fill: var(--th-bg); }
.cta__thumb .th-ink { stroke: var(--th-ink); }
.cta__icon .th-deep { stroke: var(--tone-deep); }

.cta__btn--dark {
  background: var(--tone-deep);
  color: var(--white);
}

.cta__thumb {
  flex-shrink: 0;
  height: clamp(40px, calc(var(--fs1) * 0.52), 58px);
  width: auto;
}

.cta__thumb--device {
  height: clamp(36px, calc(var(--fs1) * 0.47), 52px);
}

.cta__label {
  flex: 1 0 auto;
  white-space: nowrap;
}

.cta__icon {
  flex-shrink: 0;
  width: clamp(22px, calc(var(--fs1) * 0.26), 28px);
  height: clamp(22px, calc(var(--fs1) * 0.26), 28px);
  transition: transform 0.2s ease;
}

.cta__btn:hover .cta__icon {
  transform: translateX(3px);
}

/* --- イラスト（写真の人物と同じく下端で切れる配置） --- */
.mv__visual {
  position: absolute;
  top: 54%;
  right: var(--vis-r);
  z-index: 1;
  transform: translateY(-51%);
  width: var(--vis-w);
  line-height: 0;
}

.mv__visual svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

/* 床はイラストの外まで広げ、CTAの後ろへ回り込ませる */
.mv__floor {
  position: absolute;
  left: -87%;
  top: 56%;
  width: 242%;
  height: 184%;
  border-radius: 50%;
  background: var(--floor);
}

/* 支給イラスト（既定）。旧SVGは <html data-illust="svg"> か ?illust=svg で表示 */
.mv__photo {
  display: none;
}

/* 支給イラストでは旧SVGは描かず、レイアウト（高さ）の基準としてだけ残す */
:root[data-illust="img"] .mv__illust {
  visibility: hidden;
}

/* テキスト左端と複合機右端の余白をそろえる：2つの余白の平均を両側に使う。
   0.314 は .mv__visual の右端から複合機（写真の実体部分）の右端までの距離（幅比） */
@media (min-width: 1101px) {
  :root[data-illust="img"] .mv__inner {
    --edge: calc((var(--pad-l) + var(--vis-r) + var(--vis-w) * 0.314) / 2);
    padding-left: var(--edge);
  }

  :root[data-illust="img"] .mv__visual {
    right: calc(var(--edge) - var(--vis-w) * 0.314);
  }
}

:root[data-illust="img"] .mv__photo {
  display: block;
  position: absolute;
  z-index: 1;
  left: 17.2%;
  top: 3.9%;
  height: 90%;
  aspect-ratio: 805 / 1206;
}

.mv__photo img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}

.mv__visual #flying-doc {
  animation: floatY 4.5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: reduce) {
  .mv__visual #flying-doc {
    animation: none;
  }
}

/* ==============================
   responsive
============================== */
/* ナビ6項目＋ロゴ＋ボタン2つが1行に収まらない幅ではナビを隠す */
@media (max-width: 1240px) {
  .header__nav {
    display: none;
  }

  .header__logo {
    margin-right: auto;
  }
}

@media (max-width: 1100px) {
  .mv {
    --fs1: clamp(40px, 8.4vw, 72px);
  }

  .mv__inner {
    min-height: 0;
    padding: 48px 32px 0;
  }

  .mv__visual {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: min(100%, 620px);
    margin: -24px 0 0 auto;
  }
}

@media (max-width: 720px) {
  .header__cta--dark {
    display: none;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 60px;
  }

  .header__inner {
    padding-inline: 14px;
    gap: 10px;
  }

  .header__logo img {
    height: 24px;
  }

  .header__cta {
    height: 36px;
    padding-inline: 14px;
    font-size: 0.75rem;
  }

  .mv {
    --fs1: 12.6vw;
  }

  .mv__inner {
    padding: 32px 20px 0;
  }

  .mv__offer {
    width: 100%;
  }

  .mv__prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mv__notes {
    margin-top: 8px;
    padding: 9px 12px 10px;
  }

  .price {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px 8px;
  }

  .price__label {
    font-size: 0.75rem;
    padding: 2px 10px;
  }

  .mv__actions {
    grid-auto-flow: row;
    width: 100%;
    gap: 30px;
  }

  .cta__btn {
    width: 100%;
    min-width: 0;
  }

  .mv__visual {
    width: calc(100% + 40px);
    margin: 20px -20px 0;
    transform: translateX(6%);
  }
}


/* ==============================
   02 お悩み
============================== */
.trouble__panel {
  position: relative;
  background: var(--sec-tint);
  padding: clamp(64px, 7vw, 104px) 24px clamp(64px, 6vw, 88px);
}

/* 下端の三角で結論ブロックへつなぐ */
.trouble__panel::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  border-width: 44px 64px 0;
  border-color: var(--sec-tint) transparent transparent;
}

.trouble__inner {
  max-width: 1160px;
  margin-inline: auto;
  text-align: center;
}

.trouble__title {
  color: var(--tone-deep);
  font-weight: 800;
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.trouble__title-sub {
  display: block;
  font-size: clamp(18px, 1.9vw, 26px);
}

.trouble__title-main {
  display: block;
  margin-top: 0.2em;
  font-size: clamp(26px, 3.1vw, 42px);
}

.trouble__marker {
  padding-inline: 0.12em;
  background: linear-gradient(transparent 58%, var(--badge) 58%, var(--badge) 92%, transparent 92%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.u-sp {
  display: none;
}

.u-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- 吹き出し × イラスト --- */
.trouble__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: clamp(36px, 4vw, 56px);
}

.trouble__list {
  --stagger: clamp(0px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.trouble__list--left {
  align-items: flex-end;
}

.trouble__list--right {
  align-items: flex-start;
}

/* 外側にずらす分だけ吹き出しを縮め、列からはみ出さない */
.trouble__list .bubble:nth-child(odd) {
  width: min(calc(100% - var(--stagger)), 290px);
}

.trouble__list--left .bubble:nth-child(odd) {
  margin-right: var(--stagger);
}

.trouble__list--right .bubble:nth-child(odd) {
  margin-left: var(--stagger);
}

.bubble {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 290px);
  min-height: 78px;
  padding: 14px 20px 14px 16px;
  border: 2px solid var(--tone-deep);
  border-radius: 12px;
  background: var(--white);
  color: var(--tone-deep);
  text-align: left;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.bubble__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--brand);
}

.bubble__check rect {
  fill: currentColor;
}

.bubble__check path {
  fill: none;
  stroke: var(--white);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* しっぽ：外側の三角（線）＋内側の白三角で、枠線に切れ目を作る */
.bubble::before,
.bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 0;
  height: 0;
  border-style: solid;
}

.trouble__list--left .bubble::before {
  right: 26px;
  border-width: 14px 0 0 16px;
  border-color: var(--tone-deep) transparent transparent;
}

.trouble__list--left .bubble::after {
  right: 28px;
  border-width: 9.6px 0 0 11px;
  border-color: var(--white) transparent transparent;
}

.trouble__list--right .bubble::before {
  left: 26px;
  border-width: 14px 16px 0 0;
  border-color: var(--tone-deep) transparent transparent;
}

.trouble__list--right .bubble::after {
  left: 28px;
  border-width: 9.6px 11px 0 0;
  border-color: var(--white) transparent transparent;
}

.trouble__ill {
  line-height: 0;
}

.trouble__ill img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- 結論（イラストの下） --- */
.trouble__conclusion-text {
  margin-top: clamp(36px, 4vw, 56px);
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(19px, 2.2vw, 30px);
  font-feature-settings: "palt";
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.trouble__conclusion-text em {
  font-style: normal;
  color: var(--brand);
}

.trouble__conclusion-text mark {
  color: inherit;
  padding-inline: 0.08em;
  background: linear-gradient(transparent 60%, var(--badge) 60%, var(--badge) 94%, transparent 94%);
}

@media (max-width: 1179px) {
  .trouble__stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px 20px;
  }

  .trouble__ill {
    grid-column: 1 / -1;
    grid-row: 1;
    width: min(100%, 460px);
    margin-inline: auto;
  }

  .trouble__list--left,
  .trouble__list--right {
    align-items: stretch;
  }

  .trouble__list .bubble:nth-child(odd),
  .bubble {
    width: 100%;
    margin: 0;
  }

  .bubble::before,
  .bubble::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .trouble__panel {
    padding-inline: 20px;
  }

  .u-sp {
    display: inline;
  }

  .trouble__stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .trouble__list {
    gap: 14px;
  }

  .bubble {
    min-height: 0;
    padding: 14px 16px;
  }

  .trouble__conclusion-text {
    font-size: clamp(15px, 4.7vw, 19px);
  }
}

/* ==============================
   03 料金比較
============================== */
.compare {
  padding: clamp(88px, 8vw, 120px) 24px clamp(72px, 7vw, 104px);
}

.compare__inner {
  max-width: 1080px;
  margin-inline: auto;
  text-align: center;
}

.compare__title {
  color: var(--tone-deep);
  font-weight: 800;
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.compare__title-sub {
  display: block;
  font-size: clamp(18px, 1.9vw, 26px);
}

.compare__title-main {
  display: block;
  margin-top: 0.2em;
  font-size: clamp(26px, 3.1vw, 42px);
}

.compare__marker {
  padding-inline: 0.08em;
  background: linear-gradient(transparent 58%, var(--badge) 58%, var(--badge) 92%, transparent 92%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* --- 比較ボード：現在（グレー）→ ご提案（濃紺カードがボードから上下にはみ出す） --- */
.compare__board {
  --bp: clamp(32px, 3vw, 44px);
  margin-top: clamp(44px, 4.4vw, 60px);
  padding: var(--bp) clamp(20px, 3vw, 44px);
  background: var(--sec-tint);
}

.compare__caption {
  display: inline-flex;
  margin-top: clamp(40px, 4.5vw, 64px);
  align-items: center;
  gap: 14px;
  color: var(--tone-deep);
  font-weight: 800;
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: 0.06em;
}

.compare__caption::before,
.compare__caption::after {
  content: "";
  width: 2px;
  height: 1.2em;
  background: currentColor;
  border-radius: 2px;
}

.compare__caption::before {
  transform: rotate(-30deg);
}

.compare__caption::after {
  transform: rotate(30deg);
}

.compare__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: center;
}

.compare-card {
  padding: 28px clamp(18px, 2vw, 28px) 24px;
}

.compare-card--current {
  padding-inline: 0;
  color: #555;
}

.compare-card--ours {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-block: calc(var(--bp) * -1 - 28px);
  padding-block: 40px 36px;
  background: var(--tone-deep);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(var(--cta-shadow), 0.28);
}

.compare-card__head {
  font-weight: 800;
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: 0.06em;
}

.compare-card--current .compare-card__head {
  color: #444;
}

.compare-card--ours .compare-card__head {
  font-size: clamp(20px, 1.9vw, 26px);
}

.compare-card__prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.compare-cell {
  padding: 16px 8px 18px;
  background: var(--white);
}

.compare-card--ours .compare-cell {
  background: var(--white);
  color: var(--tone-deep);
}

.compare-cell__label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.compare-cell__value {
  margin-top: 4px;
  font-weight: 800;
  font-size: clamp(15px, 1.3vw, 18px);
  font-feature-settings: "palt";
  white-space: nowrap;
}

.compare-cell__num {
  margin-right: 0.08em;
  font-size: clamp(34px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.compare-card--ours .compare-cell__num {
  color: var(--brand);
  font-size: clamp(38px, 3.6vw, 52px);
}

.compare-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #cfcfcf;
  font-weight: 800;
  font-size: clamp(15px, 1.3vw, 18px);
  letter-spacing: 0.06em;
}

.compare-card--ours .compare-card__foot {
  border-top-color: rgba(255, 255, 255, 0.35);
}

.compare-card__total {
  font-feature-settings: "palt";
  white-space: nowrap;
}

.compare-card__total-num {
  margin-right: 0.06em;
  font-size: clamp(26px, 2.4vw, 32px);
  letter-spacing: 0.01em;
}

.compare-card--ours .compare-card__total {
  color: var(--badge);
}

.compare-card--ours .compare-card__total-num {
  font-size: clamp(34px, 3.4vw, 48px);
}

.compare__arrow {
  display: grid;
  place-items: center;
  color: var(--brand);
}

.compare__arrow svg {
  width: 44px;
  height: auto;
}

/* --- 削減額（ご提案カードのはみ出し分を空けて配置）＋試算条件・適用条件の注記 --- */
.compare__saving {
  display: flex;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin: clamp(60px, 5.6vw, 76px) auto 0;
  border: 3px solid var(--tone-deep);
  background: var(--white);
  color: var(--tone-deep);
  box-shadow: 0 10px 26px rgba(var(--cta-shadow), 0.12);
}

.compare__saving-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px 16px;
  padding: 14px clamp(20px, 2.6vw, 36px) 12px;
}

.compare__saving-item--year {
  background: var(--badge);
}

.compare__saving-item dt {
  font-weight: 800;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.compare__saving-item dd {
  font-weight: 800;
  font-size: clamp(15px, 1.4vw, 19px);
  font-feature-settings: "palt";
  white-space: nowrap;
}

.compare__saving-item dd span {
  margin-right: 0.06em;
  font-size: clamp(30px, 2.9vw, 40px);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.compare__saving-item--year dd span {
  font-size: clamp(34px, 3.4vw, 48px);
}

.compare__notes {
  width: fit-content;
  max-width: min(100%, 880px);
  margin: 22px auto 0;
  color: #555;
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
  word-break: auto-phrase;
  text-wrap: pretty;
}

.compare__notes p {
  padding-left: 1em;
  text-indent: -1em;
}

.compare__notes p + p {
  margin-top: 4px;
}

.compare__notes .compare__condition {
  margin-bottom: 8px;
  color: var(--tone-deep);
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 15px);
}

.compare__notes + .compare__actions {
  margin-top: clamp(64px, 6vw, 88px);
}

/* --- CTA（MVと同じボタン） --- */
.compare__actions,
.closing__actions {
  --fs1: clamp(40px, 5.9vw, 88px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 34px 24px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  margin-top: clamp(72px, 7vw, 100px);
  text-align: left;
}

@media (max-width: 860px) {
  .compare__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .compare__arrow {
    height: 56px;
  }

  .compare__arrow svg {
    width: 36px;
    transform: rotate(90deg);
  }

  .compare-card--current {
    padding-top: 0;
  }

  .compare-card--ours {
    margin: 0 calc(clamp(20px, 3vw, 44px) * -1 - 8px) calc(var(--bp) * -1 - 24px);
  }
}

@media (max-width: 600px) {
  .compare {
    padding-inline: 20px;
  }

  .compare__board {
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .compare__caption {
    font-size: 16px;
  }

  .compare-card--ours {
    margin-inline: -8px;
  }

  .compare__saving {
    flex-direction: column;
    width: 100%;
    margin-top: 52px;
  }

  .compare__saving-item {
    justify-content: space-between;
    padding: 12px 18px 10px;
  }

  .compare__notes {
    font-size: 12px;
  }

  .compare__actions,
  .closing__actions {
    --fs1: 12.6vw;
    grid-auto-flow: row;
    width: 100%;
    gap: 30px;
  }

  .compare__actions .cta__btn,
  .closing__actions .cta__btn {
    width: 100%;
    min-width: 0;
  }
}

/* CTAボタン2本は640px以下で縦積み（601〜640pxで横並びだとラベルが収まらない） */
@media (max-width: 640px) {
  .mv__actions,
  .compare__actions,
  .closing__actions {
    grid-auto-flow: row;
    width: 100%;
  }

  .mv__actions .cta__btn,
  .compare__actions .cta__btn,
  .closing__actions .cta__btn {
    width: 100%;
    min-width: 0;
  }
}

/* ==============================
   04 シミュレーター
============================== */
.sim {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 8vw, 120px) 24px;
  background: #062454;
  color: var(--white);
}

/* 背景画像（デスクの俯瞰）をモノクロ化＋ぼかし、上から紺のオーバーレイ */
.sim::before,
.sim::after {
  content: "";
  position: absolute;
  inset: 0;
}

.sim::before {
  background: url("../img/simulator-bg.svg") center / cover no-repeat;
  filter: grayscale(1) blur(1.5px);
  transform: scale(1.04);
}

.sim::after {
  background: var(--sim-overlay);
}

.sim__inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin-inline: auto;
  text-align: center;
}

.sim__title {
  font-weight: 800;
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.sim__title-sub {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--badge);
  font-size: clamp(18px, 1.9vw, 26px);
}

.sim__title-sub::before,
.sim__title-sub::after {
  content: "";
  width: 2px;
  height: 1.1em;
  border-radius: 2px;
  background: currentColor;
}

.sim__title-sub::before {
  transform: rotate(-30deg);
}

.sim__title-sub::after {
  transform: rotate(30deg);
}

.sim__title-main {
  display: block;
  margin-top: 0.2em;
  font-size: clamp(26px, 3.1vw, 42px);
}

.sim__title-em {
  color: var(--badge);
}

.sim__lead {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: 0.04em;
}

/* --- 入力フォーム＋結果 --- */
.sim__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(40px, 4.4vw, 60px);
  padding: clamp(24px, 3vw, 40px);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.sim-form__head {
  color: var(--tone-deep);
  font-weight: 800;
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: 0.04em;
}

.sim-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin-top: 20px;
}

.sim-field__label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.sim-field__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-field__input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 2px solid #d5dbe4;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 20px;
  text-align: right;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sim-field__input::placeholder {
  color: #a7b0bd;
  font-weight: 500;
  font-size: 16px;
}

.sim-field__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--cta-shadow), 0.14);
}

.sim-field__input[aria-invalid="true"] {
  border-color: #d93a3a;
}

.sim-field__unit {
  flex-shrink: 0;
  min-width: 3.4em;
  color: var(--tone-deep);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.sim-field__error {
  min-height: 1.5em;
  margin-top: 4px;
  color: #d0302f;
  font-weight: 700;
  font-size: 12px;
}

.sim-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 64px;
  margin-top: 8px;
  border: 3px solid var(--tone-deep);
  border-radius: 999px;
  background: var(--tone-deep);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(var(--cta-shadow), 0.26);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.sim-form__submit:hover {
  transform: translateY(-2px);
  background: var(--tone-deep-hover);
  box-shadow: 0 12px 26px rgba(var(--cta-shadow), 0.3);
}

.sim-form__submit:focus-visible {
  outline: 3px solid var(--badge);
  outline-offset: 3px;
}

.sim-form__submit svg {
  width: 24px;
  height: 24px;
}

/* 結果：比較セクションの「ご提案」カードと同じ濃紺＋黄色の数字 */
.sim-result {
  display: flex;
  flex-direction: column;
  padding: 28px clamp(20px, 2.4vw, 28px) 22px;
  background: var(--tone-deep);
  color: var(--white);
  text-align: center;
}

.sim-result__head {
  font-weight: 800;
  font-size: clamp(17px, 1.6vw, 20px);
  letter-spacing: 0.06em;
}

.sim-result__tag {
  align-self: center;
  margin-top: 10px;
  padding: 3px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.sim-result__total {
  margin-top: 6px;
  color: var(--badge);
  font-weight: 800;
  font-size: 22px;
  font-feature-settings: "palt";
  white-space: nowrap;
}

.sim-result__num {
  margin: 0 0.06em;
  font-size: clamp(44px, 4.6vw, 62px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.sim-result.is-updated .sim-result__num {
  display: inline-block;
  animation: simPop 0.5s ease;
}

@keyframes simPop {
  0% { transform: scale(0.92); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.sim-result__msg {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.sim-result__box {
  margin-top: 18px;
  padding: 14px 18px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  text-align: left;
}

.sim-result__box-head {
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.sim-result__rows {
  margin-top: 4px;
}

.sim-result__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
  font-weight: 700;
  font-size: 14px;
}

.sim-result__row:last-child {
  border-bottom: 0;
}

.sim-result__row dd {
  white-space: nowrap;
  font-size: 13px;
}

.sim-result__row dd span {
  margin-right: 0.1em;
  font-weight: 800;
  font-size: 20px;
  font-feature-settings: "palt";
}

.sim-result__row--save dd {
  color: var(--badge);
}

.sim-result__note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.6;
  text-align: left;
}

.sim-result__note + .sim-result__note {
  margin-top: 2px;
}

.sim-result__note--min {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

/* 合計が最低利用料金に満たず、最低利用料金で試算したときだけ表示 */
.sim-result__min {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--badge);
  color: var(--tone-deep);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  vertical-align: 0.1em;
  white-space: nowrap;
}

.sim-result__min[hidden] {
  display: none;
}

/* パネル下：大口のお客様向けの値下げ案内 */
.sim__volume {
  display: inline-block;
  max-width: 100%;
  margin-top: clamp(28px, 3vw, 40px);
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.04em;
  line-height: 1.6;
  word-break: auto-phrase;
  text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
  .sim-result.is-updated .sim-result__num {
    animation: none;
  }
}

@media (max-width: 1040px) {
  .sim__panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .sim {
    padding-inline: 20px;
  }

  .sim__panel {
    margin-inline: -8px;
    padding: 22px 18px;
  }

  .sim-form__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .sim-form__submit {
    font-size: 17px;
  }

  .sim__volume {
    padding: 12px 18px;
    border-radius: 14px;
  }
}

/* ==============================
   05 選ばれる理由
============================== */
.reason {
  overflow: hidden;
  padding: clamp(88px, 8vw, 120px) 24px clamp(80px, 7vw, 112px);
}

.reason__inner {
  max-width: 1080px;
  margin-inline: auto;
}

.reason__title {
  color: var(--tone-deep);
  font-weight: 800;
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-align: center;
}

.reason__title-sub {
  display: block;
  font-size: clamp(18px, 1.9vw, 26px);
}

.reason__title-main {
  display: block;
  margin-top: 0.2em;
  font-size: clamp(26px, 3.1vw, 42px);
}

.reason__marker {
  padding-inline: 0.08em;
  background: linear-gradient(transparent 58%, var(--badge) 58%, var(--badge) 92%, transparent 92%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.reason__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  color: var(--tone-deep);
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 18px);
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-align: center;
}

.reason__caption::before,
.reason__caption::after {
  content: "";
  width: 2px;
  height: 1.2em;
  border-radius: 2px;
  background: currentColor;
}

.reason__caption::before {
  transform: rotate(-30deg);
}

.reason__caption::after {
  transform: rotate(30deg);
}

/* --- 理由：イラスト（ブロブ背景）とテキストの左右交互 --- */
.reason__list {
  display: grid;
  gap: clamp(48px, 6vw, 88px);
  margin-top: clamp(48px, 5vw, 72px);
  list-style: none;
}

.reason-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.reason-item:nth-child(even) .reason-item__visual {
  order: 2;
}

.reason-item__visual {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  margin-inline: auto;
  padding: 6% 4%;
}

.reason-item__blob {
  position: absolute;
  inset: 0;
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  background: var(--sec-tint);
}

.reason-item:nth-child(2) .reason-item__blob {
  border-radius: 44% 56% 40% 60% / 58% 44% 56% 42%;
}

.reason-item:nth-child(3) .reason-item__blob {
  border-radius: 52% 48% 62% 38% / 42% 56% 44% 58%;
}

.reason-item__visual img {
  position: relative;
  display: block;
  width: min(100%, 294px);
  height: auto;
}

/* 02・03 は他より15%ほど大きく（ブロブごと拡大） */
.reason-item:nth-child(2) .reason-item__visual,
.reason-item:nth-child(3) .reason-item__visual {
  width: min(100%, 414px);
}

.reason-item:nth-child(2) .reason-item__visual img {
  width: min(100%, 378px);
}

.reason-item:nth-child(3) .reason-item__visual img {
  width: min(100%, 338px);
}

.reason-item__num {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--brand);
  font-weight: 800;
  font-size: clamp(44px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: 0.02em;
}

.reason-item__num span {
  font-size: 0.26em;
  letter-spacing: 0.16em;
}

/* タイトルは1行ずつ濃紺の帯 */
.reason-item__title {
  margin-top: 16px;
  font-weight: 800;
  font-size: clamp(20px, 2.1vw, 28px);
  font-feature-settings: "palt";
  line-height: 1.95;
  letter-spacing: 0.04em;
}

.reason-item__title span {
  padding: 0.18em 0.4em;
  background: var(--tone-deep);
  color: var(--white);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.reason-item__text {
  margin-top: 18px;
  color: #333;
  font-weight: 500;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 2;
  letter-spacing: 0.04em;
}

/* --- 対応領域 --- */
.reason-area {
  margin-top: clamp(64px, 7vw, 96px);
  padding: clamp(28px, 3vw, 40px) clamp(20px, 3vw, 40px);
  background: var(--sec-tint);
}

.reason-area__title {
  color: var(--tone-deep);
  font-weight: 800;
  font-size: clamp(18px, 1.7vw, 22px);
  letter-spacing: 0.08em;
  text-align: center;
}

.reason-area__list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  list-style: none;
}

.reason-area__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 6px 16px;
  border: 2px solid var(--tone-deep);
  border-radius: 12px;
  background: var(--white);
  color: var(--tone-deep);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.reason-area__item svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1040px) {
  .reason-area__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .reason-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .reason-item:nth-child(even) .reason-item__visual {
    order: 0;
  }

  .reason-item__visual {
    width: min(82%, 330px);
    margin-inline: auto;
  }

  .reason-item:nth-child(2) .reason-item__visual,
  .reason-item:nth-child(3) .reason-item__visual {
    width: min(94%, 380px);
  }
}

@media (max-width: 600px) {
  .reason {
    padding-inline: 20px;
  }

  .reason-item__text br {
    display: none;
  }

  .reason-area {
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .reason-area__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .reason-area__item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 14px 12px;
    text-align: left;
    white-space: normal;
  }

  .reason-area__item svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
}

/* ==============================
   06 削減シミュレーション例
============================== */
.case {
  padding: clamp(88px, 8vw, 120px) 24px clamp(80px, 7vw, 112px);
  background: var(--sec-tint);
}

.case__inner {
  max-width: 1160px;
  margin-inline: auto;
  text-align: center;
}

.case__title {
  color: var(--tone-deep);
  font-weight: 800;
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.case__title-sub {
  display: block;
  font-size: clamp(18px, 1.9vw, 26px);
}

.case__title-main {
  display: block;
  margin-top: 0.2em;
  font-size: clamp(26px, 3.1vw, 42px);
}

.case__marker {
  padding-inline: 0.08em;
  background: linear-gradient(transparent 58%, var(--badge) 58%, var(--badge) 92%, transparent 92%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.case__lead {
  margin-top: 18px;
  color: #333;
  font-weight: 500;
  font-size: clamp(15px, 1.25vw, 17px);
  letter-spacing: 0.04em;
}

/* --- カルーセル：PCは3枚並び、はみ出す幅になったら横スワイプ＋矢印・ドット --- */
.models {
  position: relative;
  margin-top: clamp(36px, 4vw, 56px);
}

.models__track {
  --gap: 28px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--gap) * 2) / 3);
  gap: var(--gap);
  /* カードの影が切れないよう余白を取り、同じ分だけ外側へ広げて位置は保つ */
  padding: 12px 24px 32px;
  margin: -12px -24px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  scrollbar-width: none;
  list-style: none;
  text-align: left;
}

.models__track::-webkit-scrollbar {
  display: none;
}

.model-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(var(--cta-shadow), 0.1);
}

/* 画像枠：実際の導入事例の写真に差し替える前提（16:9 で切り抜き） */
.model-card__image {
  aspect-ratio: 16 / 9;
  background: #eef3fa;
}

.model-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px clamp(16px, 1.6vw, 22px) 18px;
}

.model-card__title {
  color: var(--tone-deep);
  font-weight: 800;
  font-size: clamp(17px, 1.5vw, 19px);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* 印刷枚数は参考デザインの黄色タグで */
.model-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  list-style: none;
}

.model-card__tags li {
  padding: 1px 8px;
  background: var(--badge);
  color: var(--tone-deep);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

/* 現在 → 見直し後（月額）を横並びで */
.model-card__cost {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 12px;
  padding: 8px 12px 9px;
  background: #f4f4f4;
}

.model-card__cost > div {
  position: relative;
}

.model-card__cost .is-after::before {
  content: "→";
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  color: var(--brand);
  font-weight: 800;
  font-size: 16px;
}

.model-card__cost dt {
  color: #555;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.model-card__cost dd {
  color: #333;
  font-weight: 700;
  font-size: 12px;
  font-feature-settings: "palt";
  line-height: 1.3;
  white-space: nowrap;
}

.model-card__cost dd b {
  margin-right: 0.06em;
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(17px, 1.5vw, 19px);
}

.model-card__cost .is-after dd b {
  color: var(--brand);
}

.model-card__unit {
  margin: 6px 0 14px;
  color: #555;
  font-weight: 700;
  font-size: 12px;
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
}

.model-card__pair {
  white-space: nowrap;
}

.model-card__pair span[aria-hidden] {
  margin-inline: 0.2em;
  color: var(--brand);
}

.model-card__unit b {
  color: var(--brand);
  font-weight: 800;
}

.model-card__total {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin-top: auto;
  padding: 7px 12px 9px;
  background: var(--tone-deep);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.model-card__total span {
  color: var(--badge);
  white-space: nowrap;
}

.model-card__total b {
  margin-right: 0.06em;
  font-size: clamp(24px, 2.2vw, 28px);
  font-feature-settings: "palt";
  letter-spacing: 0.01em;
}

/* 矢印・ドット（はみ出すときだけ表示） */
.models__nav,
.models__dots {
  display: none;
}

.models.is-scrollable .models__nav {
  position: absolute;
  top: calc(50% - 40px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 64px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tone-deep);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.models.is-scrollable .models__nav--prev:hover {
  transform: translateX(-3px);
}

.models.is-scrollable .models__nav--next:hover {
  transform: translateX(3px);
}

.models.is-scrollable .models__nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.models__nav--prev {
  left: -18px;
}

.models__nav--next {
  right: -18px;
}

/* 画面に余裕がある幅では矢印をカードの外側へ */
@media (min-width: 1320px) {
  .models__nav--prev {
    left: -76px;
  }

  .models__nav--next {
    right: -76px;
  }
}

.models__nav svg {
  width: 30px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.models__nav:focus-visible,
.models__dots button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.models.is-scrollable .models__dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}

.models__dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid var(--tone-deep);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.models__dots button[aria-current="true"] {
  background: var(--tone-deep);
}

.case__note {
  margin-top: 20px;
  color: #666;
  font-size: 12px;
  line-height: 1.6;
}

/* タブレット：幅400pxのカードを中央に置き、矢印はカードのすぐ外側へ */
@media (max-width: 1040px) {
  .models__track {
    --gap: 26px;
    grid-auto-columns: 400px;
    padding-inline: calc(50% + 24px - 200px);
    scroll-padding-inline: calc(50% - 200px);
  }

  .models__nav--prev {
    left: calc(50% - 200px - 50px);
  }

  .models__nav--next {
    right: calc(50% - 200px - 50px);
  }
}

@media (max-width: 600px) {
  .case {
    padding-inline: 20px;
  }

  /* カードを中央に置き、左右の同じ幅の余白に矢印を収める */
  .models__track {
    --side: 44px;
    --gap: var(--side);
    grid-auto-columns: 100%;
    margin-inline: -20px;
    padding-inline: var(--side);
    scroll-padding-inline: var(--side);
  }

  .models__nav--prev {
    left: -20px;
  }

  .models__nav--next {
    right: -20px;
  }

  .model-card__tags li {
    padding-inline: 6px;
  }
}

/* ==============================
   共通見出し（07以降のセクション）
============================== */
.sec-title {
  color: var(--tone-deep);
  font-weight: 800;
  word-break: auto-phrase;
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-align: center;
  font-size: clamp(26px, 3.1vw, 42px);
}

.sec-title__sub {
  display: block;
  font-size: clamp(18px, 1.9vw, 26px);
}

.sec-title__main {
  display: block;
  margin-top: 0.2em;
}

.sec-title__marker {
  padding-inline: 0.08em;
  background: linear-gradient(transparent 58%, var(--badge) 58%, var(--badge) 92%, transparent 92%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.sec-lead {
  margin-top: 18px;
  color: #333;
  font-weight: 500;
  font-size: clamp(15px, 1.25vw, 17px);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ==============================
   07 導入の流れ
============================== */
.flow {
  padding: clamp(88px, 8vw, 120px) 24px clamp(80px, 7vw, 112px);
}

.flow__inner {
  max-width: 1160px;
  margin-inline: auto;
  text-align: center;
}

.flow__list {
  --gap: clamp(32px, 3.4vw, 48px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(80px, 7vw, 100px);
  list-style: none;
}

.step {
  position: relative;
  padding: 60px clamp(12px, 1.4vw, 20px) 28px;
  background: var(--sec-tint);
}

/* 日本語を文節で折り返し、1〜2文字だけの行を作らない */
.step__title,
.step__text,
.sec-lead,
.faq-item__text,
.faq-item__a p {
  word-break: auto-phrase;
  text-wrap: pretty;
}

.step__text br {
  display: none;
}

/* 丸いSTEPバッジをカード上端にのせる */
.step__badge {
  position: absolute;
  top: -44px;
  left: 50%;
  display: grid;
  place-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--tone-deep);
  color: var(--white);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.02em;
  transform: translateX(-50%);
}

.step__badge span {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.step__icon {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step__title {
  margin-top: 10px;
  color: var(--tone-deep);
  font-weight: 800;
  font-size: clamp(16px, 1.4vw, 19px);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.step__text {
  margin-top: 12px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.9;
}

/* ステップ間のシンプルな山括弧 */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--gap) / -2 + 4px);
  width: 14px;
  height: 14px;
  border-top: 2.5px solid var(--tone-deep);
  border-right: 2.5px solid var(--tone-deep);
  transform: translate(50%, -50%) rotate(45deg);
}

.flow__note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(40px, 4vw, 56px);
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--sec-tint);
  color: var(--tone-deep);
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-align: left;
}

.flow__note svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .flow__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 100px;
    max-width: 520px;
    margin-inline: auto;
  }

  .step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }
}

/* ==============================
   08 よくある質問
============================== */
.faq {
  padding: clamp(88px, 8vw, 120px) 24px clamp(80px, 7vw, 112px);
  background: var(--sec-tint);
}

.faq__inner {
  max-width: 900px;
  margin-inline: auto;
}

.faq__list {
  display: grid;
  gap: 14px;
  margin-top: clamp(36px, 4vw, 52px);
}

.faq-item {
  background: var(--white);
  box-shadow: 0 6px 16px rgba(var(--cta-shadow), 0.08);
}

.faq-item__q {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(16px, 2.4vw, 28px);
  color: var(--tone-deep);
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 17px);
  letter-spacing: 0.04em;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q:hover {
  color: var(--brand);
}

.faq-item__q:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: -3px;
}

.faq-item__text {
  flex: 1;
}

.faq-item__mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--badge);
  color: var(--tone-deep);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.faq-item__mark--a {
  background: var(--tone-deep);
  color: var(--white);
}

.faq-item__chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--tone-deep);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__a {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 clamp(16px, 2.4vw, 28px);
  padding: 16px 0 20px;
  border-top: 1px solid #e3e3e3;
}

.faq-item__a p {
  flex: 1;
  padding-top: 7px;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.9;
}

.faq-item[open] .faq-item__a {
  animation: faqIn 0.25s ease;
}

@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-item__a {
    animation: none;
  }
}

@media (max-width: 600px) {
  .faq {
    padding-inline: 20px;
  }

  .faq-item__q,
  .faq-item__a {
    gap: 12px;
  }

  .faq-item__mark {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}

/* ==============================
   09 CTA
============================== */
.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 9vw, 136px) 24px clamp(104px, 9vw, 136px);
}

.closing__deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.closing__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-inline: auto;
}

.closing__actions {
  margin-top: clamp(56px, 5vw, 72px);
}

@media (max-width: 600px) {
  .closing {
    padding-inline: 20px;
  }

  .closing .sec-lead br {
    display: none;
  }
}

/* ==============================
   footer
============================== */
.footer {
  position: relative;
  background: var(--footer-bg);
  color: var(--white);
}

.pagetop {
  position: absolute;
  top: -32px;
  right: clamp(20px, 5vw, 64px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.pagetop:hover {
  transform: translateY(-3px);
}

.pagetop svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  max-width: 1080px;
  margin-inline: auto;
  padding: clamp(72px, 7vw, 96px) 24px clamp(56px, 5vw, 72px);
}

.footer__brand img {
  display: block;
  width: 220px;
  height: auto;
}

.footer__brand p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.9;
}

.footer__nav {
  display: flex;
  gap: clamp(40px, 6vw, 88px);
}

.footer__heading {
  margin-bottom: 14px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.16em;
}

.footer__group ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer__group a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer__group a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__heading a {
  color: inherit;
  font-size: inherit;
}

.footer__copy {
  padding: 12px 20px;
  background: var(--mv-bg);
  text-align: center;
}

.footer__copy small {
  font-size: 12px;
  letter-spacing: 0.04em;
}

@media (max-width: 760px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 40px;
  }

  .footer__brand {
    text-align: center;
  }

  .footer__brand img {
    margin-inline: auto;
  }

  .footer__nav {
    justify-content: center;
    gap: 32px;
  }

  .pagetop {
    top: -26px;
    width: 52px;
    height: 52px;
  }
}

/* 締めのCTAはボタン1つ（幅を広げてラベルは中央） */
@media (min-width: 641px) {
  .closing__actions--single .cta__btn {
    min-width: clamp(300px, 34vw, 440px);
  }
}

.closing__actions--single .cta__label {
  text-align: center;
}

/* ==============================
   イラストのポップイン（90%→100%に拡大しながらフェードイン）
   JSが動く環境だけ初期状態を隠す
============================== */
:root.js .js-pop {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.4s cubic-bezier(0.5, 0, 0, 1) var(--pop-delay, 0.2s),
    transform 0.4s cubic-bezier(0.5, 0, 0, 1) var(--pop-delay, 0.2s);
}

:root.js .js-pop.is-shown {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  :root.js .js-pop {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==============================
   セクションのフェードイン（formly-x.com と同仕様）
   opacityのみ 0→1、1.4s、遅延0.1s。背景の色帯は固定で中身だけフェード
============================== */
:root.js .fade-section {
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
  will-change: opacity;
}

:root.js .fade-section.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  :root.js .fade-section,
  :root.js .fade-section.is-visible {
    opacity: 1;
    transition: none;
  }
}

/* ==============================
   締めのCTA：黄色ベース（バッジは濃紺で反転）
============================== */
.cta__btn--yellow {
  background: var(--badge);
  color: var(--tone-deep);
  box-shadow: 0 8px 20px rgba(160, 140, 0, 0.28);
}

.cta__btn--yellow:hover {
  background: #ffe600;
  box-shadow: 0 12px 26px rgba(160, 140, 0, 0.34);
}

.cta__btn--yellow .cta__icon {
  color: var(--tone-deep);
}

.cta__btn--yellow .cta__label {
  font-weight: 800;
}

.cta:has(.cta__btn--yellow) .cta__badge {
  background: var(--tone-deep);
  color: var(--white);
}

/* ==============================
   ボタン共通：紺色の太めの枠（すべてのボタンで統一）
============================== */
.cta__btn,
.header__cta {
  border: 3px solid var(--tone-deep);
}

/* ==============================
   サブページ共通（お問い合わせフォーム・送信完了）
============================== */
/* ページタイトル：MVと同じグラデーション＋床色の弧で下の面へつなぐ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 4.6vw, 68px) 24px clamp(92px, 8vw, 124px);
  /* 最下部2pxを床色に（幅によって弧との境に1pxの線が出るのを防ぐ） */
  background: linear-gradient(to top, var(--floor) 2px, transparent 2px), var(--mv-bg);
  color: var(--white);
  text-align: center;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: -20%;
  bottom: calc(clamp(40px, 5vw, 72px) * -1);
  width: 140%;
  height: clamp(96px, 11vw, 160px);
  border-radius: 50%;
  background: var(--floor);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin-inline: auto;
}

.page-hero__en {
  color: var(--badge);
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: 0.24em;
}

.page-hero__title {
  margin-top: 6px;
  font-weight: 800;
  font-size: clamp(26px, 3.1vw, 42px);
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.page-hero__lead {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: 0.04em;
  word-break: auto-phrase;
}

/* 手順：1 情報の入力 → 2 送信完了 */
.form-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  list-style: none;
}

.form-steps__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ステップ間のつなぎ線 */
.form-steps__item + .form-steps__item::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 7px);
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
}

.form-steps__num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 13px;
}

.form-steps__item[aria-current="step"] {
  border-color: var(--white);
  background: var(--white);
  color: var(--tone-deep);
}

.form-steps__item[aria-current="step"] .form-steps__num {
  background: var(--badge);
  color: var(--tone-deep);
}

/* 床色の面に白いカードを重ねる（ページタイトルの弧に少しかぶせる） */
.form-section {
  background: var(--floor);
  padding: 0 24px clamp(88px, 8vw, 120px);
}

.form-card,
.thanks-card {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: calc(clamp(28px, 3vw, 44px) * -1) auto 0;
  padding: clamp(28px, 3.6vw, 52px);
  background: var(--white);
  box-shadow: 0 20px 50px rgba(var(--cta-shadow), 0.1);
}

/* --- フォーム --- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px clamp(32px, 4vw, 56px);
}

.form-group {
  min-width: 0;
  border: 0;
}

.form-group__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  width: 100%;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tone-deep);
  color: var(--tone-deep);
  font-weight: 800;
  font-size: clamp(17px, 1.5vw, 19px);
  letter-spacing: 0.06em;
}

.form-group__title small {
  color: #666;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.form-field {
  display: grid;
  grid-template-columns: 11.2em minmax(0, 1fr);
  align-items: start;
  gap: 6px 16px;
  padding-block: 8px;
}

.form-field--wide {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e3e8ef;
}

.form-field__label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-height: 54px;
  color: #333;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.form-field__control {
  min-width: 0;
}

.form-field__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-badge {
  flex-shrink: 0;
  padding: 1px 7px;
  border-radius: 3px;
  background: #d0302f;
  color: var(--white);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.form-badge--optional {
  background: #e3e8ef;
  color: #5a6475;
}

.form-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 2px solid #d5dbe4;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: #a7b0bd;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--cta-shadow), 0.14);
}

.form-input[aria-invalid="true"] {
  border-color: #d93a3a;
  background: #fff7f7;
}

.form-input--select {
  appearance: none;
  padding-right: 44px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23083a82' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
  text-overflow: ellipsis;
  cursor: pointer;
}

.form-input--select:invalid,
.form-input--select:has(option[value=""]:checked) {
  color: #8a94a3;
}

.form-input--select option {
  color: var(--ink);
}

.form-input--textarea {
  height: auto;
  min-height: 140px;
  padding: 14px 16px;
  line-height: 1.7;
  resize: vertical;
}

.form-unit {
  flex-shrink: 0;
  min-width: 3.4em;
  color: var(--tone-deep);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.form-error {
  margin-top: 6px;
  color: #d0302f;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.5;
}

.form-error:empty {
  display: none;
}

/* 同意チェック */
.form-consent {
  margin-top: 36px;
  text-align: center;
}

.form-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}

.form-check__input {
  position: absolute;
  width: 26px;
  height: 26px;
  opacity: 0;
  cursor: pointer;
}

.form-check__box {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid #b9c3d2;
  border-radius: 6px;
  background: var(--white);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.form-check__box::after {
  content: "";
  width: 7px;
  height: 13px;
  margin-top: -3px;
  border: solid var(--white);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}

.form-check__input:checked + .form-check__box {
  border-color: var(--tone-deep);
  background: var(--tone-deep);
}

.form-check__input:checked + .form-check__box::after {
  transform: rotate(45deg) scale(1);
}

.form-check__input:focus-visible + .form-check__box {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.form-check__input[aria-invalid="true"] + .form-check__box {
  border-color: #d93a3a;
  background: #fff7f7;
}

.form-check__text {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.form-check__text a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-alert {
  width: fit-content;
  max-width: 100%;
  margin: 20px auto 0;
  padding: 10px 18px;
  border: 1px solid #f0b7b6;
  border-radius: 8px;
  background: #fff4f4;
  color: #c62d2c;
  font-weight: 700;
  font-size: 14px;
}

.form-actions {
  --fs1: clamp(40px, 5.9vw, 88px);
  display: grid;
  justify-content: center;
  margin-top: 32px;
}

.form-actions .cta__btn {
  min-width: clamp(300px, 34vw, 440px);
}

.form-actions .cta__label {
  text-align: center;
}

.form-submit {
  font-family: inherit;
  cursor: pointer;
}

.form-submit__mail {
  flex-shrink: 0;
  width: clamp(26px, calc(var(--fs1) * 0.32), 32px);
  height: auto;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.form-note {
  margin-top: 18px;
  color: #666;
  font-size: 12.5px;
  text-align: center;
}

/* --- 送信完了 --- */
.thanks-card {
  max-width: 800px;
  padding-block: clamp(44px, 5vw, 68px);
  text-align: center;
}

.thanks-card__icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--tone-deep);
  color: var(--badge);
  box-shadow: 0 0 0 10px rgba(39, 93, 193, 0.1);
}

.thanks-card__icon svg {
  width: 46px;
  height: 46px;
}

.thanks-card__title {
  margin-top: 30px;
  color: var(--tone-deep);
  font-weight: 800;
  font-size: clamp(22px, 2.5vw, 32px);
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
  line-height: 1.5;
  word-break: auto-phrase;
}

.thanks-card__text {
  margin-top: 18px;
  word-break: auto-phrase;
  text-wrap: pretty;
  color: #333;
  font-weight: 500;
  font-size: clamp(15px, 1.25vw, 17px);
  letter-spacing: 0.04em;
}

.thanks-card__mail {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--th-bg);
  color: var(--tone-deep);
  font-weight: 700;
  font-size: 13px;
  word-break: auto-phrase;
}

.thanks-next {
  margin-top: 36px;
  padding: 24px clamp(18px, 3vw, 36px) 22px;
  background: var(--sec-tint);
}

.thanks-next__head {
  color: var(--tone-deep);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.thanks-next__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  list-style: none;
  counter-reset: none;
}

.thanks-next__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--white);
  color: #333;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
}

.thanks-next__num {
  color: var(--brand);
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.thanks-next__note {
  margin-top: 14px;
  word-break: auto-phrase;
  text-wrap: pretty;
  color: #555;
  font-size: 13px;
}

.thanks-card__sub {
  margin-top: 28px;
  color: #666;
  font-size: 13px;
  word-break: auto-phrase;
}

.thanks-card .form-actions {
  margin-top: 28px;
}

@media (max-width: 1000px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding-inline: 20px;
  }

  .form-steps__item {
    padding-right: 14px;
    font-size: 13px;
  }

  .form-section {
    padding-inline: 20px;
  }

  .form-card,
  .thanks-card {
    margin-inline: -8px;
    padding: 26px 18px 32px;
  }

  .form-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding-block: 10px;
  }

  .form-field__label {
    min-height: 0;
  }

  .form-actions {
    --fs1: 12.6vw;
    justify-content: stretch;
  }

  .page-hero__title {
    font-size: clamp(22px, 6.6vw, 26px);
  }

  .form-actions,
  .form-actions .cta__btn {
    width: 100%;
    min-width: 0;
  }

  .thanks-card {
    padding-block: 36px;
  }

  .thanks-next__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .thanks-next__list li {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 16px;
  }

  .thanks-card__text br,
  .thanks-card__sub br {
    display: none;
  }

  .thanks-card__mail {
    border-radius: 12px;
  }
}

/* 締めのボタンはラベルが長いので、極小幅（〜374px）だけ余白・字間を詰める */
@media (max-width: 374px) {
  .closing__actions--single .cta__btn {
    gap: 8px;
    padding-inline: 10px 12px;
  }

  .closing__actions--single .cta__label {
    letter-spacing: 0;
  }

  .closing__actions--single .cta__thumb {
    height: 34px;
  }
}

/* ==============================
   ハンバーガーメニュー（ヘッダーのナビを隠す1240px以下）
============================== */
.header__menu-btn {
  display: none;
}

.sp-menu[hidden] {
  display: none;
}

@media (max-width: 1240px) {
  .header__menu-btn {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -6px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--tone-deep);
    cursor: pointer;
  }

  .header__menu-btn:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 0;
  }

  /* 三本線 → ×（真ん中の線＋上下の疑似要素） */
  .header__menu-icon,
  .header__menu-icon::before,
  .header__menu-icon::after {
    display: block;
    width: 24px;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s ease, background-color 0.2s ease;
  }

  .header__menu-icon {
    position: relative;
  }

  .header__menu-icon::before,
  .header__menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .header__menu-icon::before {
    top: -7.5px;
  }

  .header__menu-icon::after {
    top: 7.5px;
  }

  .header__menu-btn[aria-expanded="true"] .header__menu-icon {
    background: transparent;
  }

  .header__menu-btn[aria-expanded="true"] .header__menu-icon::before {
    transform: translateY(7.5px) rotate(45deg);
  }

  .header__menu-btn[aria-expanded="true"] .header__menu-icon::after {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* ヘッダーの下を半透明の紺で覆い、白いパネルを上から出す */
  .sp-menu {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 99;
    background: rgba(6, 29, 69, 0.45);
  }

  .sp-menu__panel {
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 24px 28px;
    border-top: 1px solid #e3e8ef;
    background: var(--white);
    box-shadow: 0 16px 32px rgba(var(--cta-shadow), 0.18);
    animation: spMenuIn 0.22s ease-out;
  }

  .sp-menu__panel:focus {
    outline: none;
  }

  .sp-menu__list {
    max-width: 560px;
    margin-inline: auto;
    list-style: none;
  }

  .sp-menu__list a {
    position: relative;
    display: block;
    padding: 16px 32px 16px 4px;
    border-bottom: 1px solid #e3e8ef;
    color: var(--ink);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .sp-menu__list a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 8px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--tone-deep);
    border-right: 2px solid var(--tone-deep);
    transform: translateY(-50%) rotate(45deg);
  }

  .sp-menu__list a:hover {
    color: var(--brand);
  }

  .sp-menu__ctas {
    display: grid;
    gap: 12px;
    max-width: 560px;
    margin: 24px auto 0;
  }

  .sp-menu__ctas .header__cta {
    display: flex;
    justify-content: center;
    height: 52px;
    font-size: 15px;
  }

  /* ページの背面スクロールを止める */
  html.is-menu-open,
  html.is-menu-open body {
    overflow: hidden;
  }
}

@keyframes spMenuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-menu__panel {
    animation: none;
  }

  .header__menu-icon,
  .header__menu-icon::before,
  .header__menu-icon::after {
    transition: none;
  }
}

/* 極小幅ではロゴを少し小さくして、ロゴ・無料見積り・メニューを1行に収める */
@media (max-width: 360px) {
  .header__logo img {
    height: 20px;
  }
}
