/* プレミアム外壁ケア
   色・書体・余白は :root の変数から使う。
   --ink はカワウソの線画の色、--sentaku は帽子とシャツの青、--sun はチラシの「キレイ」の黄色。 */

:root {
  --ink: #231815;
  --ink-soft: #5b504a;
  --ink-hover: #3a2c26;
  --paper: #fff;
  --mist: #eef5f8;
  --rule: #d9e3e8;
  --sentaku: #45bef0;
  --sentaku-deep: #0b6a9f;
  --sun: #ffe14d;
  --sky: #1d4f8c;
  --on-dark: #e6deda;
  --on-dark-muted: #cfc6c1;
  --on-dark-faint: #a99e98;
  --rule-dark: #4a3f3a;
  --line-brand: #06c755;
  --error: #b03024;
  --shade: 35 24 21; /* --ink の RGB。写真の上に重ねる影に使う */

  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 3.25rem);
  --step-4: clamp(2.2rem, 1.4rem + 3.6vw, 5rem);

  --wrap-max: 1240px;
  --gutter: clamp(16px, 4vw, 56px);
  --space-section: clamp(72px, 10vw, 140px);
  --space-section-lg: clamp(80px, 12vw, 160px);
  --measure: 34em;
  --header-h: 68px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  letter-spacing: .02em;
  overflow-x: clip;
}
/* 日本語を文節で折り返す（対応ブラウザのみ）。1文字だけ次の行に落ちるのを防ぐ */
h1, h2, h3, h4, p, li, dt, dd, th, td, small, summary, figcaption, legend { word-break: auto-phrase; }
p, li, dd, td, th { text-wrap: pretty; }
img, video, canvas, svg { display: block; max-width: 100%; }
/* build.py が webp 用に <picture> で包む。レイアウト上は中の img を直接の子として扱う */
picture { display: contents; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; }
ul, ol { margin: 0; padding: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sentaku-deep); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- 共通パーツ ---------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap-max)); margin-inline: auto; }
.display { font-weight: 900; letter-spacing: .03em; line-height: 1.3; }
.nw { white-space: nowrap; }
.lead { font-size: var(--step-1); line-height: 1.8; max-width: var(--measure); }
.muted { color: var(--ink-soft); }
.note { font-size: var(--step--1); color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero .actions { margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .7em 1.5em;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-weight: 700; text-decoration: none; line-height: 1.2;
  transition: transform .2s var(--ease-out), background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-hover); }
.btn--line { background: var(--line-brand); border-color: var(--line-brand); color: var(--paper); }
.btn--sun { background: var(--sun); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

.arrow-link { display: inline-flex; align-items: center; gap: .6em; font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--sun); padding-bottom: 4px; }
.arrow-link svg { width: 1.1em; transition: transform .3s var(--ease-out); }
.arrow-link:hover svg { transform: translateX(6px); }

.tel { font-weight: 700; font-size: var(--step-2); text-decoration: none; letter-spacing: .03em; white-space: nowrap; }
.tel svg { display: inline-block; width: .82em; height: .82em; margin-right: .22em; vertical-align: -.08em; color: var(--sentaku-deep); }
.way-label { display: inline-flex; align-items: center; gap: .45em; }
.way-label svg { width: 1.35em; height: 1.35em; flex: none; color: var(--sentaku-deep); }

/* セクション見出し：左に太い短い線（ブラシの柄） */
.sec-title { font-size: var(--step-3); }
.sec-title--sm { font-size: var(--step-2); }
.sec-title + p, .sec-title + .checks, .sec-title + .numbered { margin-top: 1em; }
.sec-title--sm + p { margin-top: .8em; }
p + .sec-title--sm { margin-top: 1.4em; }
.sec-kicker { display: inline-flex; align-items: center; gap: .7em; font-weight: 700; font-size: var(--step--1); color: var(--sentaku-deep); margin-bottom: .9em; }
.sec-kicker::before { content: ""; width: 28px; height: 6px; border-radius: 3px; background: var(--sentaku); }

.photo-tall { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-pair figure { margin: 0; }
.photo-pair img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.photo-pair figcaption { margin-top: 8px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding-inline: clamp(12px, 2.4vw, 32px);
  background: rgb(255 255 255 / .94);
  border-bottom: 1px solid transparent;
  transition: transform .35s var(--ease-out), border-color .3s;
}
.site-header.is-scrolled { border-color: var(--rule); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand__name { font-weight: 700; font-size: 1.25rem; line-height: 1; }
.brand__tag { display: block; font-size: .68rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; letter-spacing: .04em; }
.gnav ul { display: flex; gap: clamp(10px, 1.5vw, 24px); list-style: none; }
.gnav a { text-decoration: none; font-weight: 700; font-size: .92rem; padding: 6px 0; background: linear-gradient(var(--sentaku), var(--sentaku)) left bottom / 0 3px no-repeat; transition: background-size .25s var(--ease-out); }
.gnav a:hover, .gnav a[aria-current="page"] { background-size: 100% 3px; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .tel { font-size: 1.15rem; }
.header-cta .tel small { display: block; font-size: .66rem; color: var(--ink-soft); letter-spacing: 0; }
.header-cta .btn { min-height: 44px; padding-inline: 1.1em; font-size: .9rem; }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: none; padding: 0; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 3px; margin: 5px auto; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1320px) {
  .header-cta .tel { display: none; }
}
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .gnav {
    position: fixed; inset: var(--header-h) 0 0; background: var(--paper);
    padding: 24px var(--gutter) 120px; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .gnav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a { display: block; padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--rule); background: none; }
}
@media (max-width: 920px) {
  .header-cta { display: none; }
}

/* ---------- ヒーロー：洗って確かめる壁 ---------- */
.hero {
  --scrub-w: 46vw;
  --otter-w: clamp(130px, 13vw, 210px);
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--scrub-w));
  padding-top: var(--header-h);
}
.hero__copy {
  position: relative; z-index: 2;
  align-self: center;
  padding: clamp(32px, 6vh, 72px) clamp(16px, 2vw, 32px) clamp(120px, 18vh, 200px) max(var(--gutter), calc((100vw - var(--wrap-max)) / 2));
}
.hero__area { font-weight: 700; margin-bottom: 1.2em; }
.hero__area b { font-size: var(--step-1); }
.hero__title { font-size: clamp(2.8rem, 1.6rem + 5vw, 6.5rem); line-height: 1.2; margin-bottom: .35em; white-space: nowrap; }
.hero__title-sub { display: block; padding-left: .9em; color: var(--sentaku); }
.hero__lead { font-size: var(--step-1); line-height: 1.75; max-width: 24em; margin-bottom: 1.6em; }
.hero__lead strong { background: linear-gradient(transparent 60%, var(--sun) 60%); }

.scrub {
  position: relative;
  min-height: 100%;
  background: var(--sky);
  overflow: hidden;
  touch-action: pan-y;
  cursor: none;
}
/* object-position の縦 62% は site.js の POS_Y と合わせる */
.scrub img, .scrub canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.scrub canvas { z-index: 1; }
.scrub__cursor {
  position: absolute; z-index: 3; left: 0; top: 0; width: 120px; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-12deg); opacity: 0; transition: opacity .2s;
}
.scrub.is-active .scrub__cursor { opacity: 1; }
.scrub__tag {
  position: absolute; z-index: 2; left: 16px; top: 16px;
  font-weight: 700; font-size: .78rem; letter-spacing: .08em;
  background: var(--ink); color: var(--paper); padding: 4px 10px; border-radius: 3px;
}
.scrub__panel {
  position: absolute; z-index: 2; left: calc(var(--otter-w) * .62); right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgb(255 255 255 / .95); border-radius: 10px; padding: 12px 14px;
  cursor: auto;
}
.scrub__meter { flex: 1 1 160px; }
.scrub__meter-label { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; margin-bottom: 6px; }
.scrub__meter-label output { font-weight: 700; font-size: 1.1rem; }
.scrub__bar { height: 8px; background: var(--mist); border-radius: 4px; overflow: hidden; }
.scrub__bar i { display: block; height: 100%; width: 0; background: var(--sentaku); transition: width .3s; }
.scrub__btns { display: flex; gap: 8px; }
.scrub__btn { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); font-weight: 700; font-size: .82rem; cursor: pointer; }
.scrub__btn--primary { background: var(--ink); color: var(--paper); }
.scrub__caption { flex-basis: 100%; margin: 0; font-size: .74rem; color: var(--ink-soft); line-height: 1.5; }
.scrub__hint {
  position: absolute; z-index: 2; left: 50%; top: 17%; transform: translate(-50%, -50%);
  background: var(--sun); font-weight: 700; padding: 8px 16px; border-radius: 999px; font-size: .9rem;
  pointer-events: none; transition: opacity .4s; white-space: nowrap;
}
.scrub.is-touched .scrub__hint { opacity: 0; }

.hero__otter {
  position: absolute; z-index: 3; bottom: 0;
  left: calc(100% - var(--scrub-w) - var(--otter-w) * .62);
  width: var(--otter-w);
  transform-origin: 50% 100%;
  animation: otter-in .9s var(--ease-out) .5s both;
  pointer-events: none;
}
@keyframes otter-in { from { transform: translateY(40%) rotate(6deg); opacity: 0; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__copy { grid-area: 1 / 1; padding: 28px var(--gutter) 24px; }
  .hero__title { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .scrub { grid-row: 2; min-height: 0; aspect-ratio: 4 / 5; max-height: 80svh; cursor: auto; }
  .scrub__cursor { display: none; }
  .scrub__panel { left: 12px; right: 12px; bottom: 12px; }
  .hero__otter { position: relative; grid-area: 1 / 1; justify-self: end; align-self: end; left: auto; bottom: -6px; width: clamp(84px, 24vw, 130px); margin-right: 8px; }
}
@media (max-width: 600px) {
  .scrub__caption { display: none; }
  .scrub__panel { padding: 8px 10px; gap: 8px; }
  .scrub__btn { min-height: 44px; }
}

/* ---------- 入口：戸建て / 法人 ---------- */
.doors { display: flex; min-height: min(82vh, 760px); }
.door {
  position: relative; flex: 1 1 0; display: flex; align-items: flex-end;
  color: var(--paper); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: flex-grow .6s var(--ease-out);
}
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease-out); }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(var(--shade) / .05) 0%, rgb(var(--shade) / .5) 45%, rgb(var(--shade) / .88) 100%); }
.door__body { padding: clamp(24px, 4vw, 56px); width: 100%; }
.door__who { font-weight: 700; margin-bottom: .4em; }
.door__title { font-size: clamp(2rem, 1rem + 2.4vw, 4.6rem); margin-bottom: .3em; }
.door__text { max-width: 26em; margin-bottom: 1.4em; }
.door__flag { display: inline-block; margin-bottom: 14px; background: var(--sun); color: var(--ink); font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 999px; }
.doors:hover .door { flex-grow: .8; }
.doors .door:hover, .doors .door:focus-visible { flex-grow: 1.35; }
.door:hover img { transform: scale(1.04); }
.door:hover .arrow-link svg { transform: translateX(6px); }
@media (max-width: 900px) {
  .doors { flex-direction: column; min-height: 0; }
  .door { flex: none; min-height: 70vw; }
}

/* ---------- 表 ---------- */
.table-scroll { overflow-x: auto; }
.table-scroll .vs-table { min-width: 680px; }

/* 塗装・高圧洗浄・ブラシ手洗いの比較表 */
.vs-table { width: 100%; border-collapse: collapse; }
.vs-table th, .vs-table td { padding: 18px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.vs-table thead th { font-size: var(--step-1); border-bottom: 3px solid var(--ink); vertical-align: bottom; }
.vs-table tbody th { font-weight: 700; white-space: nowrap; color: var(--ink-soft); width: 8em; }
.vs-table .us { background: var(--mist); min-width: 11em; }
.vs-table thead .us { background: var(--sentaku); }
.vs-table .us strong { font-size: var(--step-1); }
.vs-table td small { display: block; color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 600px) {
  .table-scroll .vs-table { min-width: 540px; }
  .vs-table th, .vs-table td { padding: 14px 10px; }
  /* 横にスクロールしても項目名が見えるように固定する */
  .vs-table tbody th, .vs-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); width: 6.5em; }
}

/* 料金表 */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 18px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.price-table thead th { border-bottom: 3px solid var(--ink); font-size: var(--step--1); color: var(--ink-soft); }
.price-table thead th:last-child { text-align: right; }
.price-table td.num { font-weight: 700; font-size: var(--step-2); white-space: nowrap; text-align: right; }
.price-table td.num small { font-size: var(--step--1); margin-left: 4px; }
.price-table tbody th { font-size: var(--step-1); }
.price-table tbody th small { display: block; font-size: var(--step--1); font-weight: 400; color: var(--ink-soft); }
@media (max-width: 600px) {
  .price-table th, .price-table td { padding: 14px 6px; }
  .price-table td.num { font-size: var(--step-1); }
  .price-table tbody th { font-size: var(--step-0); }
}

/* ---------- 塗る前に：比較 ---------- */
.versus { padding-block: var(--space-section-lg); }
.versus--flush { padding-top: 0; }
.versus__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.versus__head .sec-title { font-size: var(--step-4); }
@media (max-width: 860px) { .versus__head { grid-template-columns: 1fr; } }

/* ---------- 汚れの種類 ---------- */
.dirt { background: var(--ink); color: var(--paper); padding-block: var(--space-section); overflow: hidden; }
.dirt__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: 48px; }
.dirt__item { margin: 0; }
.dirt__item img { width: 100%; object-fit: cover; border-radius: 4px; }
.dirt__item figcaption { margin-top: 12px; }
.dirt__item b { display: block; font-size: var(--step-1); }
.dirt__item span { color: var(--on-dark-muted); font-size: var(--step--1); }
.dirt__item--a { grid-column: 1 / span 5; }
.dirt__item--a img { aspect-ratio: 4 / 5; }
.dirt__item--b { grid-column: 6 / span 4; margin-top: 12vh; }
.dirt__item--b img { aspect-ratio: 3 / 4; }
.dirt__item--c { grid-column: 10 / span 3; margin-top: 6vh; }
.dirt__item--c img { aspect-ratio: 3 / 5; }
@media (max-width: 760px) {
  .dirt__grid { grid-template-columns: 1fr 1fr; }
  .dirt__item--a { grid-column: 1 / -1; }
  .dirt__item--a img { aspect-ratio: 4 / 3; }
  .dirt__item--b, .dirt__item--c { grid-column: auto; margin-top: 0; }
  .dirt__item--b img, .dirt__item--c img { aspect-ratio: 3 / 4; }
}

/* ---------- 料金：800円 ---------- */
.price-band { background: var(--sentaku); padding-block: var(--space-section); }
.price-band__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px clamp(32px, 6vw, 96px); align-items: center; }
.price-big { line-height: .9; font-weight: 700; }
.price-big__unit { display: block; font-size: var(--step-1); margin-bottom: .6em; }
.price-big__fig { display: block; white-space: nowrap; }
.price-big__num { font-size: clamp(5rem, 2rem + 10vw, 12.5rem); letter-spacing: -.02em; }
.price-big__yen { font-size: var(--step-3); margin-left: .1em; }
.price-big__tax { display: block; margin-top: .8em; font-size: var(--step-0); }
@media (max-width: 860px) { .price-band__grid { grid-template-columns: 1fr; } }

.calc { background: var(--paper); border-radius: 14px; padding: clamp(20px, 3vw, 36px); box-shadow: 8px 8px 0 var(--ink); border: 2px solid var(--ink); }
.calc__title { font-size: var(--step-1); margin-bottom: 18px; }
.calc fieldset { margin-bottom: 20px; }
.calc legend { font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--rule); border-radius: 999px; font-weight: 700; font-size: .9rem; cursor: pointer; transition: border-color .15s, background-color .15s; }
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--sentaku-deep); outline-offset: 2px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--ink); height: 32px; }
.range-row output { font-weight: 700; font-size: 1.4rem; min-width: 4.5em; text-align: right; }
.calc__result { border-top: 2px dashed var(--rule); padding-top: 18px; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.calc__result dt { font-weight: 700; }
.calc__result dd { margin: 0; }
.calc__total { font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1; }
.calc__sub { flex-basis: 100%; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- 施工事例 ---------- */
.works { padding-block: var(--space-section-lg); }
.works__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; }
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
.case + .case { margin-top: clamp(64px, 9vw, 120px); }
.case--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.case--flip .case__media { order: 2; }
.case__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); margin-bottom: 12px; }
.case__title { font-size: var(--step-2); margin-bottom: 16px; }
@media (max-width: 860px) { .case, .case--flip { grid-template-columns: 1fr; } .case--flip .case__media { order: 0; } }

/* 比べるスライダー */
.compare { position: relative; overflow: hidden; border-radius: 6px; --pos: 50%; user-select: none; touch-action: pan-y; }
.compare img { width: 100%; aspect-ratio: 5 / 6; max-height: 82vh; object-fit: cover; object-position: 50% 62%; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--paper); pointer-events: none; }
.compare__knob { position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); color: var(--ink); display: grid; place-items: center; pointer-events: none; }
.compare__knob svg { width: 26px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__label { position: absolute; top: 12px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 3px; background: var(--ink); color: var(--paper); pointer-events: none; }
.compare__label--before { left: 12px; }
.compare__label--after { right: 12px; background: var(--sentaku); color: var(--ink); }
.compare:has(input:focus-visible) .compare__knob { outline: 3px solid var(--sentaku-deep); outline-offset: 3px; }

.video-frame { position: relative; border-radius: 6px; overflow: hidden; background: var(--ink); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-frame--portrait { aspect-ratio: 9 / 16; max-height: 80vh; width: min(100%, 440px); }
.video-frame--end { justify-self: end; }

/* ---------- 流れ ---------- */
.flow { background: var(--mist); padding-block: var(--space-section); }
.flow__list { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 48px; counter-reset: step; }
.flow__list li { position: relative; padding-right: 20px; counter-increment: step; }
.flow__list li::before {
  content: counter(step); display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 1.2rem; margin-bottom: 16px; position: relative; z-index: 1;
}
.flow__list li::after { content: ""; position: absolute; top: 23px; left: 48px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); }
.flow__list li:last-child::after { display: none; }
.flow__list b { display: block; font-size: var(--step-1); margin-bottom: 6px; }
.flow__list p { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) {
  .flow__list { grid-template-columns: 1fr; gap: 28px; }
  .flow__list li { padding: 0 0 0 68px; }
  .flow__list li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .flow__list li::after { top: 48px; bottom: -28px; left: 23px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--ink) 0 6px, transparent 6px 12px); }
}

/* ---------- 施工について ---------- */
.team { padding-block: var(--space-section-lg); }
.team__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .team__grid { grid-template-columns: 1fr; } }

/* ---------- エリア・FAQ（見出し 4 : 本文 8） ---------- */
.area { padding-block: var(--space-section); border-top: 1px solid var(--rule); }
.faq { padding-block: var(--space-section); }
.grid-4-8 { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 64px; }
@media (max-width: 860px) { .grid-4-8 { grid-template-columns: 1fr; } }
.area__cities { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.area__cities li { font-weight: 700; font-size: var(--step-2); line-height: 1.2; white-space: nowrap; }
.area__cities li::after { content: "／"; color: var(--rule); margin-left: 12px; }
.area__cities li:last-child::after { content: none; }
.area__cities li.is-home { color: var(--sentaku-deep); }
.area__cities + p { margin-top: 20px; }

.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; font-weight: 700; font-size: var(--step-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-weight: 700; color: var(--sentaku-deep); flex: none; }
.faq summary::after { content: ""; margin-left: auto; flex: none; width: 14px; height: 14px; margin-top: .45em; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details > div { padding: 0 0 24px 2.1em; }
.faq + .faq { padding-top: 0; }

/* ---------- 締めの問い合わせ欄 ---------- */
.cta { --cta-pad: clamp(72px, 10vw, 130px); position: relative; background: var(--sun); padding-block: var(--cta-pad); overflow: hidden; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.cta__title { font-size: var(--step-4); margin-bottom: .4em; }
.cta__ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.cta__way { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .2s var(--ease-out), box-shadow .2s; }
.cta__way:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.cta__way small { font-weight: 700; color: var(--ink-soft); font-size: .8rem; }
.cta__way b { font-size: var(--step-1); }
.cta__way .tel { font-size: clamp(1.25rem, .9rem + 1vw, 1.7rem); }
.cta__otter { width: clamp(160px, 20vw, 300px); margin-bottom: calc(var(--cta-pad) * -1); }
@media (max-width: 860px) {
  .cta__grid { grid-template-columns: minmax(0, 1fr); }
  .cta__ways { grid-template-columns: 1fr; }
  .cta__otter { display: none; }
}

/* ---------- 下層ページ ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(48px, 8vw, 110px)) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.page-hero__crumb { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 20px; }
.page-hero__crumb a { text-decoration: none; }
.page-hero__crumb a:hover { text-decoration: underline; }
.page-hero__title { font-size: var(--step-4); margin-bottom: .45em; }
.page-hero__title--sm { font-size: var(--step-3); }
.page-hero--photo { color: var(--paper); min-height: min(78vh, 720px); display: flex; align-items: flex-end; isolation: isolate; }
.page-hero--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(var(--shade) / .78) 0%, rgb(var(--shade) / .35) 60%, rgb(var(--shade) / .1) 100%); }
.page-hero--photo .page-hero__crumb { color: var(--on-dark); }
.page-hero--photo .sec-kicker { color: var(--sun); }
.page-hero--photo .sec-kicker::before { background: var(--sun); }

/* 見出しの手動改行は、スマホでは外して文節で自然に折り返させる */
@media (max-width: 600px) {
  .page-hero__title br, .cta__title br { display: none; }
  .page-hero__title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .cta__title { font-size: clamp(2rem, 9.4vw, 2.6rem); }
}

.section { padding-block: var(--space-section); }
.flush-top { padding-top: 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .muted, .section--ink .note { color: var(--on-dark-muted); }
.section--ink a { color: var(--paper); }
.dirt .sec-kicker, .section--ink .sec-kicker { color: var(--sun); }
.dirt .sec-kicker::before, .section--ink .sec-kicker::before { background: var(--sun); }
.section__head { max-width: 46em; margin-bottom: clamp(32px, 5vw, 56px); }
.section__narrow { max-width: 820px; }
.section__foot { margin-top: 40px; }
.table-scroll + .note { margin-top: 16px; }
.more { margin-top: 1em; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: center; }
.split--wide-media { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--top { align-items: start; }
.split > img, .split > picture > img, .split > video { width: 100%; border-radius: 6px; object-fit: cover; }
@media (max-width: 860px) { .split, .split--wide-media { grid-template-columns: 1fr; } }

.checks { list-style: none; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 2em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.1em; height: .6em; border-left: 3px solid var(--sentaku-deep); border-bottom: 3px solid var(--sentaku-deep); transform: rotate(-45deg); }
.section--ink .checks li::before { border-color: var(--sun); }
.team .checks { margin-top: 28px; }

.numbered { padding-left: 1.4em; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-top: 3px solid var(--ink); }
.point { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--rule); }
.point + .point { padding-left: 28px; border-left: 1px solid var(--rule); }
.point h3 { font-size: var(--step-1); margin-bottom: 10px; }
.point p { margin: 0; color: var(--ink-soft); }
@media (max-width: 680px) { .point + .point { padding-left: 0; border-left: 0; } }

.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.plan { border: 2px solid var(--ink); border-radius: 12px; padding: 26px; background: var(--paper); color: var(--ink); }
.plan h2, .plan h3 { font-size: var(--step-1); margin-bottom: 8px; }
.plan p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.plan p + .btn { margin-top: 14px; }
.plan--accent { background: var(--sentaku); }
.plan--accent p { color: var(--ink); }

.prose { max-width: 46em; }
.prose h2 { font-size: var(--step-2); margin: 2.2em 0 .8em; }
.prose ul { padding-left: 1.4em; margin-bottom: 1em; }

.def { display: grid; grid-template-columns: 11em 1fr; border-top: 1px solid var(--rule); margin: 0; }
.def dt, .def dd { padding: 16px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.def dt { font-weight: 700; padding-right: 16px; }
@media (max-width: 600px) { .def { grid-template-columns: 1fr; } .def dt { border-bottom: 0; padding-bottom: 0; } }

.works-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 40px 28px; }
.work-card { text-decoration: none; display: block; }
.work-card__img { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.work-card:hover .work-card__img img { transform: scale(1.04); }
.work-card__meta { font-size: var(--step--1); color: var(--ink-soft); font-weight: 700; margin: 14px 0 4px; }
.work-card h2 { font-size: var(--step-1); }

.area-map { column-gap: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); border-top: 3px solid var(--ink); }
.area-map li { list-style: none; padding: 20px 20px 20px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.area-map b { font-size: var(--step-2); white-space: nowrap; }
.area-map span { font-size: var(--step--1); color: var(--ink-soft); white-space: nowrap; flex: none; }
.area-map + p { margin-top: 24px; }

/* お問い合わせ */
.form { display: grid; gap: 26px; max-width: 760px; }
.field > label, .field > .label { display: flex; gap: 10px; align-items: center; font-weight: 700; margin-bottom: 8px; }
.req { font-size: .72rem; background: var(--ink); color: var(--paper); padding: 2px 8px; border-radius: 3px; }
.opt { font-size: .72rem; background: var(--mist); padding: 2px 8px; border-radius: 3px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--rule); border-radius: 8px; background: var(--paper);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field .hint { font-size: var(--step--1); color: var(--ink-soft); margin: 6px 0 0; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .err { color: var(--error); font-size: var(--step--1); font-weight: 700; margin: 6px 0 0; }
.field--check > label { min-height: 44px; font-weight: 500; }
.field--check input { width: 24px; height: 24px; accent-color: var(--ink); flex: none; }
.field--check .hint { margin-top: 0; }
.form [data-for] { display: none; }
.form.is-house [data-for="house"], .form.is-biz [data-for="biz"] { display: block; }
.form__status { padding: 16px; border-radius: 8px; background: var(--mist); font-weight: 700; }
.form__submit { min-width: 240px; }
/* 機械による送信を見分けるための欄。人には見せない */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.contact-aside .plan + .plan { margin-top: 16px; }
.otter-deco { width: 150px; margin: 24px 0 0 auto; }
.otter-deco--lg { width: min(70%, 320px); justify-self: center; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 96px) 0 calc(32px + env(safe-area-inset-bottom)); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; }
.site-footer .brand__name { font-size: 1.6rem; }
.site-footer .brand__tag { color: var(--on-dark-muted); }
.footer__info { margin: 20px 0 0; font-size: var(--step--1); color: var(--on-dark); line-height: 1.9; }
.footer__info .tel { color: var(--paper); font-size: 1.6rem; display: inline-block; margin: 4px 0; }
.footer__info .tel svg { color: var(--sentaku); }
.footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 24px; list-style: none; align-content: start; }
.footer__nav a { text-decoration: none; color: var(--on-dark); font-size: var(--step--1); display: inline-block; padding: 6px 0; }
.footer__nav a:hover { color: var(--paper); text-decoration: underline; }
.footer__bottom { margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--rule-dark); font-size: .75rem; color: var(--on-dark-faint); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- スマホの下部バー / PCのカワウソの呼びかけ ---------- */
.dock { display: none; }
@media (max-width: 920px) {
  .dock {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    background: var(--paper); border-top: 2px solid var(--ink); padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(110%); transition: transform .35s var(--ease-out);
  }
  .dock.is-shown { transform: none; }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; text-decoration: none; font-weight: 700; font-size: .78rem; }
  .dock a + a { border-left: 1px solid var(--rule); }
  .dock .dock__line { background: var(--line-brand); color: var(--paper); }
  .dock .dock__form { background: var(--ink); color: var(--paper); }
  .dock svg { width: 22px; height: 22px; }
  body { padding-bottom: 64px; }
}
.peek {
  position: fixed; z-index: 40; right: 24px; bottom: 0; width: 132px; text-decoration: none;
  transform: translateY(105%); transition: transform .5s var(--ease-out);
}
.peek.is-shown { transform: translateY(32%); }
.peek.is-shown.is-away { transform: translateY(105%); }
.peek:hover, .peek:focus-visible { transform: translateY(8%); }
.peek img { width: 100%; }
.peek__bubble {
  position: absolute; right: 92%; top: 6px; width: max-content; max-width: 220px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px;
  font-weight: 700; font-size: .82rem; line-height: 1.5;
}
@media (max-width: 920px) { .peek { display: none; } }

/* ---------- 出現アニメーション（1回だけ・控えめ） ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
