/* =========================================================
   杉本総業 — style
   色：漆喰 / 墨 / 杉 / 養生テープ / 空
   ========================================================= */
:root {
  --plaster: #ECEEE9;
  --plaster-2: #E1E4DE;
  --ink: #1E2B2F;
  --ink-2: #2B3A3F;
  --sugi: #3F6B5A;
  --sugi-deep: #2E5E4E;
  --tape: #EBC84A;
  --sky: #9DBCCB;
  --muted: #3F4C51;
  --line: rgba(30, 43, 47, .18);
  --wall: #3F6B5A;

  --f-display: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", sans-serif;
  --f-body: "BIZ UDPGothic", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --wrap: 1120px;
  --gut: clamp(20px, 5vw, 48px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, li, dd, summary { word-break: auto-phrase; text-wrap: pretty; }
/* 見出し書体：Dela Gothic は1ウェイトのみ。読み込み前の代替フォントは極太で表示 */
.hero-title, .tape, .brand-name, .chip-name, .btn-tel span, .way-points h3, .flow-no, .flow-list h3, .area-list .area-main, .tel-card strong, .footer-brand, .doc h1 { font-weight: 900; font-synthesis: none; }
@media (min-width: 960px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.35; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--plaster); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 10px 26px;
  border-radius: 999px; border: 2px solid var(--ink);
  font: 700 1rem/1.3 var(--f-body); letter-spacing: .06em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--plaster); }
.btn-ink:hover { background: var(--sugi-deep); border-color: var(--sugi-deep); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--plaster); }
.btn-paint { background: var(--ink); color: var(--plaster); border-color: var(--ink); }
.btn-tel svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-tel span { display: flex; flex-direction: column; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; letter-spacing: .05em; line-height: 1.15; }
.btn-tel small { white-space: nowrap; font-family: var(--f-body); font-size: .72rem; font-weight: 500; letter-spacing: .04em; opacity: .85; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gut);
  background: rgba(236, 238, 233, .93);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: auto; }
.brand-name { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .12em; }
.gnav { display: flex; gap: 26px; font-size: .92rem; font-weight: 500; }
.gnav a { text-decoration: none; position: relative; padding: 4px 0; white-space: nowrap; }
.gnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.gnav a:hover::after { transform: scaleX(1); }
.gnav-contact { display: none; }
.header-tel {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 6px 22px 6px 18px;
  border-radius: 999px; background: var(--ink); color: var(--plaster);
  text-decoration: none; line-height: 1.15;
  transition: background-color .25s, transform .25s var(--ease);
}
.header-tel:hover { background: var(--sugi-deep); }
.header-tel:active { transform: scale(.97); }
.header-tel svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.header-tel span { display: flex; flex-direction: column; font-weight: 700; font-size: .95rem; letter-spacing: .06em; }
.header-tel small { font-size: .66rem; font-weight: 500; opacity: .8; letter-spacing: .04em; }
.menu-btn { display: none; }

@media (max-width: 1099px) {
  :root { --header-h: 60px; }
  .header-tel { display: none; }
  .menu-btn {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: var(--ink); cursor: pointer;
  }
  .menu-btn span { display: block; width: 18px; height: 2px; background: var(--plaster); transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .gnav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0;
    padding: 8px var(--gut) 28px; background: var(--plaster);
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .45s var(--ease), visibility 0s .45s;
  }
  .gnav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease); }
  .gnav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .gnav a::after { display: none; }
  .gnav-contact { display: block; }
}

/* ---------- hero ---------- */
.hero {
  padding: calc(var(--header-h) + 28px) var(--gut) 40px;
  display: grid; gap: 28px;
  align-items: center;
  max-width: 1320px; margin-inline: auto;
}
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 11vw, 4rem);
  line-height: 1.2; letter-spacing: .06em;
}
.ht-line { display: block; }
.ht-line .ch { display: inline-block; }
.hero-lead { max-width: 34em; color: var(--ink-2); margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-visual { margin: 0; position: relative; }
.house { width: 100%; height: auto; overflow: visible; }
.house .lines path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wall-base { fill: var(--wall); }
.wall-next { fill: var(--wall-next, var(--wall)); clip-path: inset(0 0 100% 0); }
.fill-roof { fill: var(--ink); }
.fill-win rect { fill: #F7F8F4; }
.fill-door { fill: var(--ink-2); }
.fill-tree { fill: var(--sugi-deep); }
.roller { opacity: 0; pointer-events: none; }
.roller rect { fill: var(--wall-next, var(--wall)); stroke: var(--ink); stroke-width: 3; }
.roller path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.roller .roller-grip { stroke-width: 10; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.swatches button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; min-height: 44px;
  border: 2px solid transparent; border-radius: 999px;
  background: rgba(255,255,255,.55);
  font: 500 .85rem/1 var(--f-body); color: var(--ink); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.swatches button::before {
  content: ""; width: 30px; height: 30px; border-radius: 50%;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(30,43,47,.2);
}
.swatches button:hover { background: #fff; }
.swatches button[aria-checked="true"] { border-color: var(--ink); background: #fff; }
.hero-visual figcaption { margin-top: 10px; font-size: .82rem; color: var(--muted); }

@media (min-width: 700px) and (max-width: 1199px) {
  .hero-visual { width: min(100%, 640px); margin-inline: auto; }
}
@media (min-width: 1200px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
@media (min-width: 1200px) {
  .hero {
    gap: 56px; min-height: 100svh;
    padding-top: calc(var(--header-h) + 24px);
  }
  .hero-copy { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
  .hero-title {
    writing-mode: vertical-rl;
    font-size: clamp(3.2rem, 5.4vw, 5.2rem);
    line-height: 1.25; letter-spacing: .14em;
    height: min(72vh, 11.5em);
  }
  .ht-line { display: inline-block; }
  .ht-line + .ht-line { padding-top: 1.4em; }
  .hero-body { align-self: end; padding-bottom: 8px; }
  .hero-lead { margin-top: 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ---------- intro motion ---------- */
.js .house .lines path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .house .fill-roof, .js .house .fill-win, .js .house .fill-door, .js .house .fill-tree, .js .wall-base { opacity: 0; }
.js .ht-line .ch { opacity: 0; transform: translateY(.35em); }
.js .hero-body, .js .swatches, .js .hero-visual figcaption { opacity: 0; transform: translateY(14px); }

.is-ready .house .lines path { animation: draw 1.1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
.is-ready .house .fill-roof, .is-ready .house .fill-win, .is-ready .house .fill-door, .is-ready .house .fill-tree {
  animation: fade .6s ease forwards; animation-delay: 1.1s;
}
.is-ready .ht-line .ch { animation: rise .7s var(--ease) forwards; animation-delay: calc(.2s + var(--i, 0) * 60ms); }
.is-ready .hero-body { animation: rise .8s var(--ease) forwards .9s; }
.is-ready .swatches, .is-ready .hero-visual figcaption { animation: rise .8s var(--ease) forwards 2.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; }
.tape {
  position: relative; display: inline-block;
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  line-height: 1.45; letter-spacing: .06em;
  margin-bottom: 36px;
  align-self: start; justify-self: start;
}
.tape span { position: relative; z-index: 1; }
.tape .nb { white-space: nowrap; }
.tape::before {
  content: ""; position: absolute; z-index: 0;
  left: -.35em; right: -.35em; bottom: .12em; height: .62em;
  background: var(--tape); opacity: .9;
  transform: rotate(-1.2deg) scaleX(var(--tape-x, 1)); transform-origin: left center;
  clip-path: polygon(0 8%, 2% 0, 98% 4%, 100% 0, 99% 50%, 100% 100%, 2% 96%, 0 100%, 1% 50%);
  transition: transform .9s var(--ease);
}
.js .tape { --tape-x: 0; }
.js .tape.is-in { --tape-x: 1; }
.tape-dark { color: var(--plaster); }

/* way */
.way-grid { display: grid; gap: 8px 64px; }
.way-body { max-width: 36em; font-size: 1.05em; }
.way-points { display: grid; gap: 0; margin-top: 48px; border-top: 2px solid var(--ink); }
.way-points li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.way-points h3 { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .06em; margin-bottom: 6px; }
.way-points p { color: var(--muted); }
@media (min-width: 960px) {
  .way-grid { grid-template-columns: 5fr 6fr; align-items: start; }
  .way-points { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .way-points li { border-bottom: 0; padding: 28px 28px 28px 0; }
  .way-points li + li { border-left: 1px solid var(--line); padding-left: 28px; }
}

/* services — 色見本帳 */
.services { background: var(--ink); color: var(--plaster); padding: clamp(80px, 12vw, 140px) 0; }
.services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.services-progress { display: none; }
.services-track { display: grid; gap: 20px; width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; }
.chip {
  display: grid; grid-template-rows: auto 1fr;
  background: var(--ink-2); border-radius: 18px; overflow: hidden;
}
.chip-swatch {
  background: var(--chip); color: var(--chip-ink);
  min-height: 140px; padding: 22px 26px;
  display: flex; align-items: flex-end;
}
.chip-name { font-family: var(--f-display); font-size: clamp(2.2rem, 8vw, 3.6rem); letter-spacing: .08em; line-height: 1; }
.chip-body { padding: 26px; }
.chip-lead { color: #D3D9D6; }
.chip ul { margin-top: 18px; display: grid; gap: 0; border-top: 1px solid rgba(236,238,233,.18); }
.chip li { padding: 10px 0; border-bottom: 1px solid rgba(236,238,233,.18); font-weight: 500; }
.chip .btn-paint { margin-top: 16px; background: var(--plaster); color: var(--ink); border-color: var(--plaster); }

@media (min-width: 960px) {
  .services.is-pinned { padding: 0; height: var(--hs-height, 400vh); }
  .services.is-pinned .services-sticky {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: var(--header-h);
  }
  .services.is-pinned .services-head .tape { margin-bottom: 28px; }
  .services.is-pinned .services-progress { display: block; width: 180px; height: 3px; background: rgba(236,238,233,.2); margin-bottom: 44px; border-radius: 2px; overflow: hidden; }
  .services-progress i { display: block; height: 100%; background: var(--tape); transform: scaleX(var(--p, 0)); transform-origin: left; }
  .services.is-pinned .services-track {
    display: flex; gap: 32px; width: max-content; margin: 0;
    padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2));
    will-change: transform;
  }
  .services.is-pinned .chip {
    width: min(78vw, 860px); height: min(62vh, 520px);
    grid-template-rows: none; grid-template-columns: 5fr 6fr;
  }
  .services.is-pinned .chip-swatch { min-height: 0; padding: 36px; }
  .services.is-pinned .chip-name { font-size: clamp(2.6rem, 4vw, 3.6rem); white-space: nowrap; }
  .services.is-pinned .chip-body { padding: 40px; align-self: center; }
}

/* flow */
.flow-list { position: relative; counter-reset: none; max-width: 760px; }
.flow-list::before, .flow-list::after {
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px;
}
.flow-list::before { background: var(--line); }
.flow-list::after { background: var(--sugi); transform: scaleY(var(--flow, 0)); transform-origin: top; }
.flow-list li { position: relative; z-index: 1; display: grid; grid-template-columns: 48px 1fr; gap: 22px; padding: 0 0 36px; }
.flow-list li:last-child { padding-bottom: 0; }
.flow-no {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--plaster); border: 2px solid var(--ink);
  font-family: var(--f-display); font-size: 1.15rem;
  transition: background-color .4s, color .4s, border-color .4s;
}
.flow-list li.is-done .flow-no { background: var(--sugi); border-color: var(--sugi); color: var(--plaster); }
.flow-list h3 { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .05em; padding-top: 6px; margin-bottom: 4px; }
.flow-list p { color: var(--muted); }

/* area */
.area { background: var(--plaster-2); }
.area-grid { display: grid; gap: 24px 64px; }
.area-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; }
.area-list li {
  padding: 14px 18px; border-radius: 12px; background: var(--plaster);
  font-weight: 700; letter-spacing: .08em;
}
.area-list .area-main { grid-column: 1 / -1; background: var(--ink); color: var(--plaster); font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; padding: 22px 22px; }
.area-list .area-main small { display: block; font-family: var(--f-body); font-size: .8rem; font-weight: 500; opacity: .8; margin-top: 4px; letter-spacing: .04em; }
.area-list .area-home { grid-column: 1 / -1; background: var(--sugi); color: var(--plaster); }
.area-list .area-home::after { content: "事務所があります"; float: right; font-size: .78rem; font-weight: 500; opacity: .85; padding-top: 3px; }
@media (min-width: 960px) {
  .area-grid { grid-template-columns: 5fr 6fr; }
  .area-list { grid-template-columns: repeat(4, 1fr); }
  .area-list .area-home { grid-column: span 2; }
}

/* faq */
.faq-grid { display: grid; gap: 0 64px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 22px 0; font-weight: 700; font-size: 1.05em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 40em; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 5fr 6fr; } }

/* contact */
.contact { background: var(--ink); color: var(--plaster); }
.contact .tape { color: var(--plaster); }
.contact-grid { display: grid; gap: 48px 64px; }
.contact-side p { color: #C9D1CE; max-width: 26em; }
.tel-card {
  display: grid; gap: 4px; margin-top: 28px; padding: 26px 28px;
  border-radius: 18px; background: var(--tape); color: var(--ink); text-decoration: none;
  transition: transform .3s var(--ease);
}
.tel-card:hover { transform: translateY(-3px); }
.tel-card small { font-weight: 700; }
.tel-card strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 7vw, 2.6rem); letter-spacing: .04em; line-height: 1.2; }
.tel-card span { font-size: .85rem; font-weight: 500; }

.form { display: grid; gap: 22px; background: var(--plaster); color: var(--ink); border-radius: 20px; padding: clamp(24px, 4vw, 44px); }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: .95rem; padding: 0; }
.field em { font-style: normal; font-size: .72rem; font-weight: 700; background: var(--ink); color: var(--plaster); padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.6 var(--f-body); color: var(--ink);
  padding: 13px 16px; border-radius: 10px; border: 2px solid transparent;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sugi); }
.field [aria-invalid="true"] { border-color: #B3402A; }
.field textarea { resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.checks label { position: relative; cursor: pointer; }
.checks input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.checks span { display: block; padding: 9px 18px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; transition: background-color .2s, color .2s; }
.checks input:checked + span { background: var(--sugi); color: var(--plaster); box-shadow: none; }
.checks input:focus-visible + span { outline: 3px solid var(--tape); outline-offset: 2px; }
.agree { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.agree input { width: 22px; height: 22px; accent-color: var(--sugi); }
.hp { position: absolute; left: -9999px; }
.btn-submit { width: 100%; min-height: 62px; font-size: 1.05rem; }
.btn-submit[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-weight: 700; min-height: 1em; }
.form-status.is-error { color: #B3402A; }
.form-status.is-ok { color: var(--sugi-deep); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 6fr; align-items: start; } }

/* company */
.company-grid { display: grid; gap: 0 64px; }
.company-table { margin: 0; border-top: 2px solid var(--ink); }
.company-table div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.company-table dt { font-weight: 700; font-size: .9rem; color: var(--muted); }
.company-table dd { margin: 0; }
@media (min-width: 640px) { .company-table div { grid-template-columns: 9em 1fr; } }
@media (min-width: 960px) { .company-grid { grid-template-columns: 5fr 6fr; } }

/* footer */
.site-footer { background: var(--sugi-deep); color: var(--plaster); padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 28px; }
.footer-id { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.footer-logo { display: inline-block; background: #fff; padding: 12px 14px; border-radius: 14px; line-height: 0; }
.footer-logo img { width: 120px; height: auto; }
.footer-brand { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .1em; margin-bottom: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.copy { text-align: center; margin: 40px 0 0; opacity: .75; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1fr auto; align-items: end; } }

/* mobile dock */
.dock { display: none; }
@media (max-width: 959px) {
  body { padding-bottom: 76px; }
  .dock {
    position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 6px; border-radius: 999px; background: var(--ink);
    box-shadow: 0 10px 30px rgba(30,43,47,.3);
    transform: translateY(140%); transition: transform .45s var(--ease);
  }
  .dock.is-shown { transform: none; }
  .dock a { display: grid; place-content: center; text-align: center; min-height: 52px; border-radius: 999px; text-decoration: none; font-weight: 700; line-height: 1.2; }
  .dock small { font-size: .68rem; font-weight: 500; opacity: .85; }
  .dock-tel { background: var(--tape); color: var(--ink); }
  .dock-form { color: var(--plaster); }
}

/* privacy page */
.doc { padding: calc(var(--header-h) + 64px) 0 100px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-family: var(--f-display); font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: .06em; margin-bottom: 32px; }
.doc h2 { font-weight: 700; font-size: 1.1rem; margin: 40px 0 10px; }
.doc ul { list-style: disc; padding-left: 1.4em; }
.doc .back { display: inline-block; margin-top: 48px; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- 施工事例（施工前・施工後スライダー） ---------- */
.works-head { display: grid; gap: 8px 64px; margin-bottom: 40px; }
.works-head p { color: var(--muted); max-width: 32em; }
.works-grid { display: grid; gap: 48px 40px; }
.work { display: grid; gap: 18px; }
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--plaster-2); box-shadow: 0 0 0 2px var(--ink); touch-action: pan-y; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--tape); pointer-events: none; }
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: var(--tape); border: 2px solid var(--ink);
  background-image: linear-gradient(90deg, transparent 13px, var(--ink) 13px 15px, transparent 15px 27px, var(--ink) 27px 29px, transparent 29px);
  background-size: 40px 14px; background-position: center; background-repeat: no-repeat;
}
.ba-label { position: absolute; top: 12px; padding: 2px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; pointer-events: none; }
.ba-label-b { left: 12px; background: var(--ink); color: var(--plaster); }
.ba-label-a { right: 12px; background: var(--plaster); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible + * , .ba:focus-within { outline: 3px solid var(--tape); outline-offset: 4px; }
.work-tag { display: inline-block; margin: 0 0 8px; padding: 2px 14px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.work h3 { font-family: var(--f-display); font-weight: 900; font-synthesis: none; font-size: 1.3rem; letter-spacing: .04em; margin-bottom: 8px; }
.work-body p:not(.work-tag) { color: var(--muted); }
.works-note { margin-top: 40px; font-size: .85rem; color: var(--muted); }
@media (min-width: 760px) { .works-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .works-head { grid-template-columns: 5fr 6fr; align-items: end; } }

/* 文節ごとに折り返す（ブラウザや書体が変わっても、言葉の途中で改行しない） */
.ph { display: inline-block; }
br.pc { display: none; }
@media (min-width: 1200px) { br.pc { display: inline; } }
.hero-actions .btn { max-width: 100%; }

/* LINEで相談（フォームの代わり） */
.line-card { display: grid; gap: 14px; align-content: start; background: var(--plaster); color: var(--ink); border-radius: 20px; padding: clamp(24px, 4vw, 44px); }
.line-card-eyebrow { margin: 0; font-weight: 700; font-size: .9rem; color: var(--sugi-deep); letter-spacing: .08em; }
.line-card h3 { font-family: var(--f-display); font-weight: 900; font-synthesis: none; font-size: clamp(1.4rem, 3vw, 1.8rem); letter-spacing: .04em; line-height: 1.45; }
.line-card p { margin: 0; }
.line-steps { counter-reset: s; display: grid; gap: 10px; margin: 8px 0 10px; }
.line-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; font-weight: 500; }
.line-steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--plaster); font-weight: 700; font-size: .9rem; }
.btn-line-app { width: 100%; min-height: 62px; background: #06C755; border-color: #06C755; color: #fff; font-size: 1.05rem; }
.btn-line-app:hover { background: #05a547; border-color: #05a547; }

/* ===== 見やすさの調整（案B：読みやすい書体＋文字の濃さ・大きさ） ===== */
body { font-weight: 500; letter-spacing: .02em; line-height: 1.85; }
@media (min-width: 960px) { body { font-size: 18px; } }
.hero-title, .tape, .chip-name, .way-points h3, .flow-list h3, .work h3, .brand-name, .footer-brand,
.area-list .area-main, .flow-no, .doc h1, .call-card h3 { font-weight: 900; }
.btn-tel span, .tel-card strong { font-family: var(--f-body); font-weight: 700; }
/* 白い文字に重なるテープは杉色に */
.tape-dark::before, .contact .tape::before { background: var(--sugi); opacity: 1; }
/* 小さすぎる文字を大きく、透けをなくす */
.header-tel small, .btn-tel small, .dock small { font-size: .78rem; opacity: 1; }
.hero-visual figcaption, .works-note, .tel-card span, .area-list .area-main small { font-size: .88rem; opacity: 1; }
.ba-label, .work-tag { font-size: .85rem; }
.area-list .area-home::after { opacity: 1; font-size: .82rem; }
.copy { opacity: 1; }

/* 電話でうかがうこと（フォームの代わり） */
.call-card { display: grid; gap: 16px; align-content: start; background: var(--plaster); color: var(--ink); border-radius: 20px; padding: clamp(24px, 4vw, 44px); }
.call-card h3 { font-family: var(--f-display); font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.5; letter-spacing: .03em; }
.call-card p { margin: 0; color: var(--muted); }
.call-list { counter-reset: s; display: grid; gap: 12px; }
.call-list li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; font-weight: 700; }
.call-list li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--plaster); font-size: .9rem; }
/* スマホ下部は電話ボタンだけ */



/* ===== 2026-11-27 修正：ファーストビューの電話ボタンがイラストと重なる／小型スマホで横はみ出し ===== */
@media (min-width:1200px){
  .hero{grid-template-columns:minmax(600px,5fr) minmax(0,7fr)}
  .hero-copy{grid-template-columns:auto minmax(330px,1fr);position:relative;z-index:1}
  .hero-title{font-size:clamp(2.6rem,min(5.4vw,6.2vh),5.2rem);height:11.5em}
  .ht-line{white-space:nowrap}
}
@media (max-width:374px){
  .hero-actions>.btn{flex:1 1 100%}
  .btn-tel{min-width:0}
  .btn-tel span{font-size:1.15rem}
  .btn-tel small{font-size:.62rem}
}
