/* smart-room.net
   発想のもと：初期費用の見積書に赤ペンで訂正を入れる／間取り図の線
   色：ロゴの青緑（#1e8aa8）とグレー（#4b4948）を基準に、蛍光ペンの黄と赤ペンを足す */

:root {
  --ink: #33312f;          /* ロゴのグレーを文字用に少し濃くした色 */
  --ink-soft: #6b6866;
  --logo-teal: #1e8aa8;    /* ロゴの青緑そのまま。数字や線など飾りに使う */
  --brand: #177890;        /* ボタン用。白い文字が読みやすいよう少し濃くした青緑 */
  --brand-deep: #12637a;
  --brand-dark: #145f74;   /* 帯の背景 */
  --marker: #ffe14a;
  --pen: #e5432e;
  --mist: #edf4f6;
  --line: #cfdadd;
  --paper: #ffffff;
  --line-green: #06c755;

  --display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --hand: "Yomogi", "Zen Maru Gothic", cursive;

  --wrap: 1120px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--brand); text-underline-offset: 0.2em; }

h1, h2, h3 {
  font-family: var(--display); line-height: 1.4; letter-spacing: 0.01em;
  /* 見出しは文節の切れ目で、行の長さをそろえて折り返す */
  text-wrap: balance; word-break: auto-phrase;
}
.nowrap { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 760px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 28px;
  border: 2px solid var(--brand); border-radius: 8px;
  background: var(--brand); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.3;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn--small { min-height: 42px; padding: 8px 18px; font-size: 0.9rem; }
.btn--wide { width: 100%; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--line { background: var(--line-green); border-color: var(--line-green); width: 100%; }
.btn--line:hover { background: #05a847; border-color: #05a847; }
.btn--on-dark { background: var(--marker); border-color: var(--marker); color: var(--ink); }
.btn--on-dark:hover { background: #fff; border-color: #fff; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }

/* ロゴは元のサイトの画像（logo.png）をそのまま使う */
.logo { display: block; margin-right: auto; }
.logo img { height: 50px; width: auto; }

.nav { display: flex; gap: 20px; flex-shrink: 0; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-header .btn { flex-shrink: 0; white-space: nowrap; }
.nav a:hover { border-bottom-color: var(--marker); }
/* スマホのメニューの中だけに出す項目 */
.nav .nav__cta, .nav .nav__sp { display: none; }
@media (max-width: 960px) { .nav .nav__sp { display: block; } }

/* スマホ用のメニューボタン。画面が狭いときだけ出す */
.menu-btn { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  background-color: var(--mist);
  background-image:
    linear-gradient(rgba(30, 138, 168, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 138, 168, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 64px 0 80px;
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: start; }

/* 1行12文字が段の幅に収まる大きさにする（途中で折り返さない） */
.hero h1 { font-weight: 900; font-size: min(3.6vw, 2.75rem); line-height: 1.4; }
.hero h1 span { display: inline-block; }
.hero__lead { margin-top: 20px; max-width: 34em; color: var(--ink); font-size: 1.02rem; }

/* 手数料チェックのフォーム */
.check {
  margin-top: 32px; padding: 28px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px;
  display: grid; gap: 18px;
}
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 10px 14px;
  border: 1.5px solid var(--ink-soft); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff;
}
.field textarea { line-height: 1.75; resize: vertical; display: block; }
.field select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #8f9597; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--pen); border-width: 2px; }
.field__error, .check__error { color: #b62a17; font-size: 0.9rem; font-weight: 500; margin-top: 6px; line-height: 1.6; }
.check__error { margin: 0; padding: 12px 14px; background: #fdecea; border-radius: 8px; }
.check__note { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.7; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 見積書（このページの主役） */
.slip {
  position: relative; margin-top: 8px; padding: 34px 30px 26px;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(51, 49, 47, 0.32);
  transform: rotate(1.2deg);
}
.slip::before { /* 切り取り線のような上端 */
  content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px;
  background: radial-gradient(circle at 8px 0, transparent 6px, var(--paper) 6.5px) 0 0 / 16px 10px repeat-x;
}
.slip__title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.slip__title span { display: block; font-family: var(--body); font-weight: 400; font-size: 0.82rem; color: var(--ink-soft); margin-top: 2px; }

.slip__rows > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 0; border-bottom: 1px dashed var(--line);
}
.slip__rows dt { font-size: 0.95rem; }
.slip__rows dd { position: relative; font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }

.cut { position: relative; color: var(--ink-soft); }
.cut::after { /* 赤ペンの取り消し線 */
  content: ""; position: absolute; left: -6px; right: -6px; top: 52%; height: 3px;
  background: var(--pen); border-radius: 2px; transform: rotate(-3deg); transform-origin: left center;
  animation: strike 0.45s 0.7s cubic-bezier(0.6, 0, 0.3, 1) backwards;
}
/* 赤ペンの書き込みは、取り消した金額の左に並べる（重ならないように） */
.is-cut dd { display: flex; align-items: center; gap: 14px; }
.pen {
  order: -1;
  font-family: var(--hand); color: var(--pen); font-size: 1.6rem; line-height: 1; white-space: nowrap;
  -webkit-text-stroke: 0.6px var(--pen);
  transform: rotate(-5deg);
  animation: write 0.35s 1.15s ease-out backwards;
}
.pen--zero { font-size: 2.7rem; margin-block: -14px; }
.pen--small { font-size: 1.3rem; }
.is-cut:nth-of-type(6) .cut::after { animation-delay: 1.5s; }
.is-cut:nth-of-type(6) .pen { animation-delay: 1.95s; }
.slip__total .cut::after { animation-delay: 2.3s; }
.slip__total .pen { animation-delay: 2.75s; font-size: 1.9rem; }

.slip__total { border-bottom: 0 !important; border-top: 2px solid var(--ink); margin-top: 26px; padding-top: 30px !important; }
.slip__total dt { font-family: var(--display); font-weight: 700; }
.slip__foot { margin-top: 10px; font-size: 0.78rem; color: var(--ink-soft); line-height: 1.7; }

/* 見積書が画面に入るまで、赤ペンの動きを止めておく（JavaScriptが動く場合だけ） */
.js .slip:not(.is-inview) .cut::after,
.js .slip:not(.is-inview) .pen { animation-play-state: paused; }

/* 動きが再生されない環境でも、訂正後の状態がそのまま見えるようにしている */
@keyframes strike { from { transform: rotate(-3deg) scaleX(0); } }
@keyframes write { from { opacity: 0; transform: rotate(-5deg) translateY(6px); } }

/* ---------- 3つの特長 ---------- */
.promises { padding: 56px 0; border-bottom: 1px solid var(--line); }
.promises__in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.promises__in > div { border-top: 4px solid var(--ink); padding-top: 18px; }
.promises h2 { font-size: 1.25rem; font-weight: 700; }
.promises p { margin-top: 8px; font-size: 0.95rem; }

/* ---------- セクション共通 ---------- */
.sec { padding: 88px 0; }
.sec h2 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.05rem); font-weight: 700; }
.sec__head { margin-bottom: 40px; }
.sec__head p { margin-top: 8px; color: var(--ink-soft); }

/* ---------- 手数料のしくみ ---------- */
.fee { background: var(--mist); }
.fee__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.fee__text p { margin-top: 18px; max-width: 34em; }

.fee__cases { display: grid; gap: 20px; }
.case { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 10px; padding: 22px 24px; }
.case__name { font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
.case__flow { display: flex; align-items: center; gap: 8px; margin: 18px 0 16px; }
.who {
  flex: 0 0 auto; padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 6px;
  font-size: 0.88rem; font-weight: 700; line-height: 1.3; background: #fff;
}
.who--us { background: var(--ink); color: #fff; }
.arrow { flex: 1 1 0; position: relative; height: 2px; background: var(--ink); min-width: 44px; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -5px; border: 6px solid transparent; border-left-color: var(--ink); border-right: 0; }
.arrow--rev::after { right: auto; left: -1px; border-left: 0; border-right: 6px solid var(--ink); border-left-color: transparent; }
.arrow em { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-style: normal; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.arrow--none { background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.arrow--none::after { display: none; }
.arrow--none em { color: var(--ink-soft); font-weight: 500; }
.case__result { font-size: 0.95rem; border-top: 1px dashed var(--line); padding-top: 12px; }
.case__result strong { font-family: var(--display); font-weight: 900; font-size: 1.6rem; margin-left: 6px; }
.case--zero .case__result strong { background: linear-gradient(transparent 58%, var(--marker) 58%); padding: 0 4px; }
.case__result small { margin-left: 10px; color: var(--ink-soft); font-size: 0.82rem; }

/* ---------- 物件 ---------- */
.rooms__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.room { border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.room__plan { position: relative; background: var(--mist); padding: 18px 22px; border-bottom: 1.5px solid var(--ink); }
.plan rect, .plan path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.plan rect { fill: #fff; }
.plan path.open { stroke: #fff; stroke-width: 5; }
.plan text { font-family: var(--body); font-size: 11px; fill: var(--ink-soft); }
.room__sample {
  position: absolute; right: 14px; top: 10px;
  font-family: var(--hand); color: var(--pen); font-size: 1.3rem; line-height: 1;
  border: 2px solid var(--pen); border-radius: 4px; padding: 4px 8px; transform: rotate(6deg); background: rgba(255, 255, 255, 0.85);
}
.room__body { padding: 20px 22px 22px; }
.room__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { font-size: 0.8rem; font-weight: 700; line-height: 1.3; padding: 5px 10px; border-radius: 4px; border: 1.5px solid var(--ink); }
.badge--zero { background: var(--marker); }
.badge--half { background: #fff; }
.badge--plain { border-color: var(--line); color: var(--ink-soft); font-weight: 500; }
.room h3 { margin-top: 14px; font-size: 1.1rem; font-weight: 700; }
.room__rent { margin-top: 4px; font-size: 0.95rem; }
.room__rent strong { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1.2; margin-right: 2px; }
.room__rent span { margin-left: 12px; color: var(--ink-soft); font-size: 0.85rem; }
.room__spec { margin-top: 14px; font-size: 0.88rem; }
.room__spec > div { display: grid; grid-template-columns: 5em 1fr; gap: 8px; padding: 7px 0; border-top: 1px dashed var(--line); }
.room__spec dt { color: var(--ink-soft); }
.rooms__note, .rooms__empty { margin-top: 24px; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- 動画内見 ---------- */
.video { padding-top: 0; }
.video__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.video__shot { position: relative; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--mist); aspect-ratio: 1216 / 832; }
.video__shot img { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: var(--marker); border: 2px solid var(--ink);
}
.video__play::after { content: ""; position: absolute; left: 30px; top: 22px; border: 15px solid transparent; border-left: 22px solid var(--ink); border-right: 0; }
.video__text p { margin-top: 18px; }

.ticks { margin-top: 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 0.5em; width: 14px; height: 8px;
  border-left: 3px solid var(--logo-teal); border-bottom: 3px solid var(--logo-teal); transform: rotate(-45deg);
}

/* ---------- 流れ ---------- */
.flow { background: var(--mist); }
.flow__list { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flow__list li {
  counter-increment: step; position: relative;
  background: var(--paper); border-radius: 10px; padding: 24px 24px 26px 78px; min-height: 132px;
}
.flow__list li::before {
  content: counter(step); position: absolute; left: 24px; top: 18px;
  font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--logo-teal);
}
.flow__list h3 { font-size: 1.05rem; font-weight: 700; }
.flow__list p { margin-top: 6px; font-size: 0.9rem; line-height: 1.75; }

/* ---------- 家電 ---------- */
.kaden__in { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.kaden__text p { margin-top: 18px; max-width: 32em; }
.kaden__text .btn { margin-top: 8px; }
.kaden__shot { border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--mist); aspect-ratio: 1216 / 832; }
.kaden__shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- よくある質問 ---------- */
.faq { padding-top: 0; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1.5px solid var(--ink); }
.faq details:last-of-type { border-bottom: 1.5px solid var(--ink); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 20px 44px 20px 0; font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; margin-top: -9px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 0 22px; max-width: 40em; }

/* ---------- 締めの案内 ---------- */
.closing { background: var(--brand-dark); color: #fff; padding: 72px 0; }
.closing__in { display: grid; justify-items: start; gap: 12px; }
.closing h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; }
.closing .btn { margin-top: 14px; }

/* ---------- フッター ---------- */
.site-footer { padding: 48px 0 28px; font-size: 0.88rem; border-top: 1px solid var(--line); }
.site-footer__in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer__logo img { height: 48px; width: auto; margin-bottom: 14px; }
.site-footer__name { font-family: var(--display); font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.site-footer a { color: var(--ink); }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 36px; align-content: start; }
.site-footer__copy { margin-top: 32px; color: var(--ink-soft); font-size: 0.8rem; }

/* ---------- 下層ページの見出し ---------- */
.page-head {
  background-color: var(--mist);
  background-image:
    linear-gradient(rgba(30, 138, 168, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 138, 168, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 56px 0;
}
.page-head h1 { font-weight: 900; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); }

/* ---------- 会社概要 ---------- */
.profile__list { border-top: 2px solid var(--ink); }
.profile__list > div { display: grid; grid-template-columns: 10em 1fr; gap: 24px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.profile__list dt { font-family: var(--display); font-weight: 700; }
.profile__list a { color: var(--ink); }

.philosophy { background: var(--mist); }
.philosophy__lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.philosophy__word { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.3; letter-spacing: 0.12em; margin: 18px 0 14px; color: var(--brand); }
.philosophy__shot { border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
.philosophy__shot img { width: 100%; height: 100%; object-fit: cover; }
.philosophy__items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.philosophy__items > div { background: var(--paper); border-radius: 10px; padding: 26px 28px; }
.philosophy__items h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.philosophy__items p { font-size: 0.95rem; }
.philosophy__close { margin-top: 40px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; max-width: 36em; }

/* ---------- フォームのページ（お問い合わせ・ヒアリング） ---------- */
.formsec__lead { margin-bottom: 28px; }
.formsec__tel { margin-top: 28px; color: var(--ink-soft); }
.formsec__tel a { color: var(--ink); font-weight: 700; font-family: var(--display); font-size: 1.15rem; margin-left: 6px; white-space: nowrap; }
.muted { color: var(--ink-soft); }

/* 先に知っておいてほしい注意書き。蛍光ペンの色で目立たせる */
.callout { padding: 16px 20px; margin-bottom: 28px; background: #fff8d2; border-left: 6px solid var(--marker); border-radius: 0 8px 8px 0; font-size: 0.95rem; }
.callout p + p { margin-top: 6px; }

.form-card { padding: 32px; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; display: grid; gap: 22px; }
.form-card .check__error { margin: 0; }
.field__label { font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.field__hint { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.7; margin-top: 6px; }
.field__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.field__stack { display: grid; gap: 8px; }
.req { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 4px; background: #fdecea; color: #b62a17; font-size: 0.74rem; font-weight: 700; vertical-align: 0.1em; }

/* チェックボックス1つの確認欄 */
.field .tick { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; margin: 0; }
.tick input { flex: none; width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--brand); }
.tick input[aria-invalid="true"] { outline: 2px solid var(--pen); outline-offset: 2px; }

/* いくつかから選ぶ欄。押せる範囲を広く取る */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.field .choice { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px 8px 14px; border: 1.5px solid var(--ink-soft); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 500; font-size: 1rem; margin: 0; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--mist); font-weight: 700; }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }

/* 確認画面 */
.confirm__list { margin-top: 8px; }
.confirm__message { overflow-wrap: anywhere; }
.confirm__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 14px; }

/* SMSでの本人確認 */
.otp { width: min(420px, calc(100% - 32px)); padding: 28px; border: 2px solid var(--ink); border-radius: 12px; color: var(--ink); }
.otp::backdrop { background: rgba(51, 49, 47, 0.6); }
.otp h2 { font-size: 1.25rem; font-weight: 700; }
.otp__lead { font-size: 0.92rem; color: var(--ink-soft); margin: 6px 0 18px; }
.otp .btn { margin-top: 14px; }
.otp__code { font-size: 1.5rem !important; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.otp__msg { min-height: 1.7em; margin-top: 12px; font-size: 0.9rem; font-weight: 500; color: #b62a17; }
.otp__msg.is-ok { color: var(--brand-deep); }
.otp__link { display: block; width: 100%; min-height: 44px; margin-top: 6px; border: 0; background: none; color: var(--brand); font: inherit; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.otp__link--quiet { color: var(--ink-soft); }

/* ヒアリング：3つの区切り */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 10px; border-top: 4px solid var(--line); font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); line-height: 1.5; }
.steps li::before { content: counter(step) ". "; font-variant-numeric: tabular-nums; }
.steps li.is-done { border-top-color: var(--logo-teal); }
.steps li[aria-current="step"] { border-top-color: var(--ink); color: var(--ink); font-weight: 700; }
html:not(.js) .steps { display: none; }

.lead__step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 22px; }
.lead__step[hidden] { display: none; }
.lead__step legend { padding: 0; margin-bottom: 18px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.4; }
.lead__step legend:focus { outline: none; }
.lead__why { font-size: 0.92rem; color: var(--ink-soft); margin-top: -12px; }
.lead__hint { margin-top: -14px; }
.lead__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
/* JavaScriptが動かないときは全部を続けて見せるので、「次へ」「戻る」は出さない */
html:not(.js) .lead__nav [data-go] { display: none; }
html:not(.js) .lead__step + .lead__step { padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- 受付完了ページ ---------- */
.thanks { padding: 96px 0 120px; background: var(--mist); }
.thanks h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 900; }
.thanks p { margin-top: 18px; }
.thanks .btn { margin-top: 12px; }

/* ---------- 画面が狭いとき ---------- */
@media (max-width: 960px) {
  /* メニューはボタンで開く。ヘッダーのすぐ下に、画面の幅いっぱいで出す */
  .js .menu-btn {
    order: 3; flex-shrink: 0;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 52px; height: 46px; padding: 0;
    border: 1.5px solid var(--line); border-radius: 8px;
    background: var(--paper); color: var(--ink);
    font-family: var(--display); cursor: pointer;
  }
  .menu-btn__bars { position: relative; display: block; width: 20px; height: 14px; }
  .menu-btn__bars::before, .menu-btn__bars::after, .menu-btn__bars span {
    content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 1px;
    background: currentColor; transition: transform 0.18s, opacity 0.18s;
  }
  .menu-btn__bars::before { top: 0; }
  .menu-btn__bars span { top: 6px; }
  .menu-btn__bars::after { top: 12px; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars span { opacity: 0; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .menu-btn__label { font-size: 0.66rem; font-weight: 700; line-height: 1; letter-spacing: 0.02em; }

  .js .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto;
    padding: 4px var(--gutter) 20px;
    background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(51, 49, 47, 0.14);
  }
  .js .nav.is-open { display: flex; animation: nav-open 0.18s ease-out; }
  .js .nav a {
    display: flex; align-items: center; min-height: 54px; padding: 8px 4px;
    font-family: var(--display); font-size: 1.05rem; font-weight: 700;
    border-bottom: 1px dashed var(--line); white-space: normal;
  }
  .js .nav a:hover { border-bottom-color: var(--line); color: var(--brand); }
  .js .nav .nav__cta { display: none; }

  /* JavaScriptが動かないときは、メニューを開いたままヘッダーの下に並べる */
  html:not(.js) .site-header__in { flex-wrap: wrap; }
  html:not(.js) .nav { order: 4; width: 100%; flex-wrap: wrap; gap: 2px 18px; padding-bottom: 10px; }
  html:not(.js) .nav .nav__sp { display: block; }

  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: min(7.4vw, 2.4rem); }
  .hero__in, .fee__in, .video__in, .kaden__in, .philosophy__lead { grid-template-columns: 1fr; gap: 36px; }
  .philosophy__items { margin-top: 36px; }
  .page-head { padding: 40px 0; }
  .slip { transform: none; margin-top: 0; }
  .promises__in { grid-template-columns: 1fr; gap: 24px; }
  .rooms__list { grid-template-columns: repeat(2, 1fr); }
  .flow__list { grid-template-columns: repeat(2, 1fr); }
  .sec { padding: 64px 0; }
  .kaden__shot { order: -1; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  html { scroll-padding-top: 76px; }
  .site-header__in { min-height: 60px; gap: 10px; }
  .logo img { height: 40px; }
  .site-header .btn { padding: 8px 12px; }
  .js .nav { max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); }
  .check { padding: 20px; }
  .slip { padding: 30px 20px 22px; }
  .slip__rows dt { font-size: 0.9rem; }
  .is-cut dd { gap: 8px; }
  .pen { font-size: 1.35rem; }
  .pen--small { font-size: 1.1rem; }
  .slip__total .pen { font-size: 1.5rem; }
  .cut { font-size: 0.85rem; }
  .pen--zero { font-size: 2.2rem; }
  .rooms__list, .flow__list, .philosophy__items { grid-template-columns: 1fr; }
  .profile__list > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 4px; }
  .profile__list dt { font-size: 0.88rem; color: var(--ink-soft); }
  .case { padding: 18px 16px; }
  .case__flow { gap: 5px; }
  .who { padding: 7px 8px; font-size: 0.8rem; }
  .arrow { min-width: 30px; }
  .case__result small { display: block; margin: 2px 0 0; }
  .site-footer__nav { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .field__row { grid-template-columns: 1fr; }
  .confirm__actions .btn, .lead__nav .btn { flex: 1 1 auto; }
  .otp { padding: 22px 18px; }
}

/* 幅の狭いスマホ。ロゴ・ボタン・メニューが1行に収まるように詰める */
@media (max-width: 400px) {
  .site-header__in { gap: 8px; }
  .site-header .btn { padding: 8px 10px; font-size: 0.82rem; }
}
@media (max-width: 360px) {
  .logo img { height: 36px; }
}
/* さらに狭いときは、ヘッダーのボタンをメニューの中に移す */
@media (max-width: 340px) {
  .js .site-header .btn { display: none; }
  .js .nav .nav__cta { display: flex; color: var(--brand); }
}

@keyframes nav-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cut::after, .pen { animation: none; }
  .btn, .faq summary::after, .menu-btn__bars::before, .menu-btn__bars::after, .menu-btn__bars span { transition: none; }
  .js .nav.is-open { animation: none; }
}
