/* エアーパートナー 新サイト試作：共通スタイル
   Layout: 渋い現場のトーン。コンクリートの灰色に墨色の文字。ロゴの水色と赤はAマークと小さな印にだけ使う。 */
:root {
  --bg: #E6E8E6;
  --surface: #F3F4F2;
  --ink: #1C2126;
  --muted: #545C64;
  --line: #B9BEC0;
  --deep: #20272D;
  --deep-ink: #E4E7E8;
  --deep-muted: #9AA4AB;
  --blue: #009FDB;
  --red: #E2001A;
  --water: #7FC8E6;
  --f-display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171B1F; --surface: #1F252A; --ink: #E3E6E7; --muted: #9AA3AA; --line: #343C43;
    --deep: #0F1316; --deep-ink: #E4E7E8; --deep-muted: #8C979F; --water: #6BBDE0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171B1F; --surface: #1F252A; --ink: #E3E6E7; --muted: #9AA3AA; --line: #343C43;
  --deep: #0F1316; --deep-ink: #E4E7E8; --deep-muted: #8C979F; --water: #6BBDE0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
img { max-width: 100%; }
figure { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.35; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
.eyebrow { font-size: 13px; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.sec { padding-block: 88px; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec h2 { font-size: clamp(26px, 3.4vw, 38px); }
.sec .lead { color: var(--muted); max-width: 34em; margin-top: 14px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head p { color: var(--muted); max-width: 30em; }
.stack { display: grid; gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
@media (max-width: 760px) { .sec { padding-block: 64px; } }

/* 試作バー */
.proto { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ink); color: var(--bg); font-size: 13px; }
.proto .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding-block: 7px; }
.proto b { font-weight: 700; letter-spacing: .04em; }
.switch { display: inline-flex; border: 1px solid color-mix(in srgb, var(--bg) 40%, transparent); border-radius: 999px; padding: 2px; }
.switch button { all: unset; cursor: pointer; padding: 3px 14px; border-radius: 999px; color: var(--bg); opacity: .75; }
.switch button[aria-pressed="true"] { background: var(--bg); color: var(--ink); opacity: 1; font-weight: 700; }
.switch button:focus-visible { outline: 2px solid var(--blue); }

/* ヘッダー */
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 26px; flex: none; }
.wordmark { font-family: var(--f-display); font-weight: 900; letter-spacing: .22em; font-size: 15px; }
.wordmark .b { color: var(--blue); } .wordmark .r { color: var(--red); }
.site-head nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.site-head nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--ink); }
.head-tel { font-family: var(--f-mono); font-size: 14px; color: var(--ink) !important; border: 1px solid var(--line); padding: 4px 10px; }
.menu-btn { display: none; }
@media (max-width: 1180px) {
  .site-head nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 15; background: var(--surface); flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
  .site-head nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .site-head nav .head-tel { margin-top: 12px; text-align: center; }
  .site-head.open nav { display: flex; }
  .site-head { position: relative; }
  .menu-btn { display: inline-flex; all: unset; cursor: pointer; font-size: 14px; border: 1px solid var(--line); padding: 4px 12px; }
}

/* ボタン */
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; border-radius: 2px; border: 1px solid var(--ink); }
.cta:hover { background: color-mix(in srgb, var(--ink) 85%, var(--blue)); }
.cta.ghost { background: transparent; color: var(--ink); }
.cta.ghost:hover { background: var(--surface); }
.tel { font-family: var(--f-mono); letter-spacing: .02em; }
.more { display: inline-block; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ヒーロー */
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: end; padding-block: 40px 72px; }
.hero h1 { font-size: clamp(28px, 4.4vw, 54px); font-weight: 900; letter-spacing: .02em; line-height: 1.2; }
.hero h1 .ln { display: block; white-space: nowrap; }
.hero .lead { margin-top: 22px; max-width: 30em; color: var(--muted); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-block: 24px 56px; } }

/* 写真の置き場所 */
.ph { position: relative; aspect-ratio: 4 / 3; max-width: 100%; margin: 0; background:
  repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--deep-ink) 5%, transparent) 14px 15px), var(--deep);
  color: var(--deep-muted); display: grid; place-items: center; text-align: center; font-size: 13px; line-height: 1.6; padding: 16px; }
.ph span { border: 1px dashed var(--deep-muted); padding: 8px 12px; }
.ph.wide { aspect-ratio: 16 / 9; }
.ph.sq { aspect-ratio: 1; }
.pimg { margin: 0; max-width: 100%; overflow: hidden; background: var(--deep); }
.pimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* 図解 */
.diagram { background: var(--deep); color: var(--deep-ink); }
.diagram .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; padding-block: 64px; min-height: 100vh; min-height: 100svh; }
.diagram h2 { font-size: clamp(26px, 3.4vw, 38px); }
.diagram .eyebrow, .diagram .sub { color: var(--deep-muted); }
.diagram .sub { margin-top: 12px; max-width: 26em; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 2px; }
.steps li { display: grid; grid-template-columns: 2.4em 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--deep-ink) 14%, transparent); transition: opacity .3s; }
.steps li .n { font-family: var(--f-mono); color: var(--deep-muted); font-size: 13px; padding-top: 3px; }
.steps li b { display: block; font-size: 16px; }
.steps li small { color: var(--deep-muted); font-size: 13px; line-height: 1.6; display: block; }
.js .steps li { opacity: .42; }
.js .steps li.on { opacity: 1; }
.steps li.on .n { color: var(--blue); }
.diagram .more { color: var(--deep-ink); margin-top: 24px; }
.fig { width: 100%; max-width: 100%; }
.fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.fig .lbl { font-family: var(--f-body); font-size: 15px; fill: var(--deep-ink); }
.fig .lbl-s { font-size: 12px; fill: var(--deep-muted); }
.fig .stroke { stroke: var(--deep-ink); fill: none; stroke-width: 2; }
.fig .fill { fill: color-mix(in srgb, var(--deep-ink) 10%, var(--deep)); stroke: var(--deep-ink); stroke-width: 2; }
.fig .thin { stroke: var(--deep-muted); stroke-width: 1; fill: none; }
.fig .water { stroke: var(--water); stroke-width: 3; stroke-linecap: round; fill: none; }
.fig .air { stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; fill: none; }
@media (max-width: 860px) { .diagram .wrap { grid-template-columns: 1fr; min-height: 0; gap: 24px; padding-block: 56px; } .fig { order: -1; } }

/* カード */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cards.peeking { padding-top: 120px; }
.card { position: relative; }
.card-body { position: relative; z-index: 2; background: var(--surface); border-top: 3px solid var(--ink); padding: 28px 28px 32px; height: 100%; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.card .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.card .tag i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.card h3 { font-size: 22px; }
.card ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 6px; }
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; gap: 24px; }
  .card-body { padding: 24px 20px 28px; }
  .cards.peeking > .card + .card { margin-top: 120px; }
  .no-chara .cards.peeking { padding-top: 0; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards.three { grid-template-columns: 1fr; } .cards.three.peeking { padding-top: 0; } .cards.three > .card + .card { margin-top: 0; } .cards.three > .card:last-child { margin-top: 120px; } .no-chara .cards.three > .card:last-child { margin-top: 0; } }
  .no-chara .cards.peeking > .card + .card { margin-top: 0; }
}
.no-chara .cards.peeking { padding-top: 0; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards.three { grid-template-columns: 1fr; } .cards.three.peeking { padding-top: 0; } .cards.three > .card + .card { margin-top: 0; } .cards.three > .card:last-child { margin-top: 120px; } .no-chara .cards.three > .card:last-child { margin-top: 0; } }

/* サービスの行 */
.svc { display: grid; grid-template-columns: 5em 1fr 1.1fr; gap: 24px 40px; padding-block: 36px; border-top: 1px solid var(--line); align-items: start; }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc .no { font-family: var(--f-mono); color: var(--muted); font-size: 14px; padding-top: 6px; }
.svc h3 { font-size: 22px; }
.svc .body { display: grid; gap: 12px; color: var(--muted); }
.svc .body b { color: var(--ink); }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; gap: 12px; } }

/* ひょっこり */
.peek { position: absolute; z-index: 1; right: 28px; bottom: 100%; width: 168px; height: 140px; overflow: hidden; pointer-events: none; }
.peek.left { right: auto; left: 28px; }
.peek button { all: unset; cursor: pointer; pointer-events: auto; position: absolute; left: 0; bottom: 0; width: 168px; display: block; transform: translateY(8%); }
.peek img { width: 168px; height: auto; display: block; transform-origin: 50% 90%; }
.peek button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.bubble { position: absolute; z-index: 3; right: 206px; bottom: calc(100% + 54px); background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1.5; padding: 8px 14px; border-radius: 14px; box-shadow: 0 1px 0 var(--line); white-space: nowrap; }
.bubble::after { content: ""; position: absolute; right: -7px; bottom: 12px; border: 7px solid transparent; border-left-color: var(--surface); border-right: 0; }
.bubble.right { right: auto; left: 206px; }
.bubble.right::after { right: auto; left: -7px; border-left: 0; border-right: 7px solid var(--surface); }
.no-chara .peek, .no-chara .bubble, .no-chara .chara-only { display: none !important; }
@media (max-width: 760px) { .peek { right: 12px; } .peek.left { left: 12px; right: auto; } .bubble { right: 186px; font-size: 13px; } .bubble.right { left: 186px; right: auto; } }
@media (max-width: 440px) { .bubble { right: auto; left: 0; bottom: calc(100% + 104px); } .bubble.right { left: auto; right: 0; } .bubble::after { display: none; } }

/* 数字 */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); }
.fact { padding: 36px 24px 36px 0; display: grid; gap: 8px; align-content: start; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 24px; }
.fact .num { font-family: var(--f-mono); font-size: clamp(32px, 4.4vw, 50px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.fact .num small { font-family: var(--f-body); font-size: .38em; margin-left: 4px; letter-spacing: .04em; }
.fact p { color: var(--muted); font-size: 14px; line-height: 1.7; }
@media (max-width: 860px) { .facts .wrap { grid-template-columns: 1fr 1fr; } .fact:nth-child(odd) { border-left: 0; padding-left: 0; } .fact { border-top: 1px solid var(--line); } .fact:nth-child(-n+2) { border-top: 0; } }
@media (max-width: 520px) { .facts .wrap { grid-template-columns: 1fr; } .fact { border-left: 0 !important; padding-left: 0 !important; padding-block: 24px; } .fact:nth-child(2) { border-top: 1px solid var(--line); } }

/* 表 */
.tbl-wrap { overflow-x: auto; }
table.tbl { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-size: 13px; color: var(--muted); font-weight: 400; border-bottom: 1px solid var(--ink); }
.tbl td.num, .tbl th.num { text-align: right; font-family: var(--f-mono); white-space: nowrap; }
.tbl tbody th { font-weight: 700; }
dl.info { margin: 0; display: grid; grid-template-columns: 9em 1fr; border-top: 1px solid var(--line); }
dl.info dt, dl.info dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
dl.info dt { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { dl.info { grid-template-columns: 6.5em 1fr; } }
.notes { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.notes li::before { content: "※ "; }

/* 2カラム */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split.r { grid-template-columns: 1fr 2fr; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split, .split.r { grid-template-columns: 1fr; gap: 28px; } }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.grid3 > *, .grid4 > *, .grid5 > * { min-width: 0; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } .grid4 { grid-template-columns: 1fr 1fr; } .grid5 { grid-template-columns: 1fr 1fr; } }

/* 標準手順（A・B・C） */
.std { display: grid; grid-template-columns: 4em 1fr; gap: 8px 24px; padding-block: 40px; border-top: 1px solid var(--line); }
.std .k { font-family: var(--f-mono); font-size: 40px; line-height: 1; color: var(--muted); }
.std h3 { font-size: 22px; }
.std .body { display: grid; gap: 16px; }
.std ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
@media (max-width: 640px) { .std { grid-template-columns: 1fr; } .std .k { font-size: 28px; } }

/* 3時間の作業枠 */
.window { background: var(--surface); padding: 28px; display: grid; gap: 16px; }
.window .bar { position: relative; height: 44px; background: var(--bg); border: 1px solid var(--line); }
.window .fillbar { position: absolute; inset: 0 auto 0 0; width: 100%; background: color-mix(in srgb, var(--blue) 22%, transparent); border-right: 2px solid var(--blue); }
.window .ticks { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.window .count { font-family: var(--f-mono); font-size: 40px; line-height: 1; }
.window .count small { font-family: var(--f-body); font-size: 14px; color: var(--muted); margin-left: 6px; }
.rooms { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.rooms i { aspect-ratio: 1; background: var(--bg); border: 1px solid var(--line); }
.rooms i.done { background: var(--ink); border-color: var(--ink); }

/* 約束・お客様の声 */
.promise { border-top: 3px solid var(--ink); background: var(--surface); padding: 24px; display: grid; gap: 10px; align-content: start; position: relative; }
.promise h3 { font-size: 20px; }
.promise p { color: var(--muted); font-size: 15px; }
blockquote.voice { margin: 0; padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
blockquote.voice p { font-size: 17px; }
blockquote.voice cite { font-style: normal; font-size: 13px; color: var(--muted); }

/* よくある質問 */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 2.2em 18px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--f-mono); font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* フォーム */
.form { display: grid; gap: 18px; background: var(--surface); padding: 28px; }
.form .row { display: grid; gap: 6px; }
.form label { font-size: 14px; font-weight: 700; }
.form label .req { color: var(--red); font-weight: 400; font-size: 12px; margin-left: 6px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=number], .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 10px 12px; }
.form textarea { min-height: 140px; resize: vertical; }
.form .agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; }
.form .agree input { margin-top: 6px; }
.form button[type=submit] { all: unset; cursor: pointer; text-align: center; padding: 14px 24px; background: var(--ink); color: var(--bg); font-weight: 700; }
.form button[type=submit]:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.form .done { border: 1px solid var(--line); background: var(--bg); padding: 16px; font-size: 14px; }

/* お問い合わせ帯 */
.band { background: var(--ink); color: var(--bg); }
.band .wrap { padding-block: 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { font-size: clamp(22px, 3vw, 32px); }
.band p { opacity: .78; margin-top: 8px; }
.band .cta { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.band .cta.ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 50%, transparent); }

/* 代表の想い */
.vision-hero .wrap { padding-block: 56px 40px; }
.vision-hero h1 { font-size: clamp(16px, 1.8vw, 18px); font-weight: 400; color: var(--muted); letter-spacing: .14em; }
.vision-hero .big { font-family: var(--f-display); font-weight: 900; font-size: clamp(40px, 8vw, 96px); line-height: 1.15; margin-top: 18px; letter-spacing: .02em; }
.prose { display: grid; gap: 1.4em; font-size: 17px; line-height: 2; }
.prose h2 { font-size: 22px; margin-top: 1.2em; }
.roots-sec { padding-block: clamp(56px, 8vw, 112px) 0; overflow: hidden; }
.roots-head { max-width: 720px; margin-bottom: clamp(16px, 3vw, 32px); }
.roots-head h2 { font-size: clamp(26px, 3.6vw, 44px); margin: 10px 0 0; }
.tree { position: relative; margin-inline: calc(-1 * clamp(16px, 4vw, 48px)); }
.tree svg { width: 100%; height: auto; display: block; }
.tree .soil { fill: color-mix(in srgb, var(--ink) 5%, var(--bg)); }
.tree .ground { stroke: var(--ink); stroke-width: 1.2; }
.tree .t { fill: none; stroke: var(--ink); stroke-linecap: round; }
.tree .root { stroke: color-mix(in srgb, var(--ink) 78%, var(--muted)); }
.tree .trunk-f { fill: var(--ink); }
.tree .leaf { fill: var(--blue); opacity: .85; }
.tree .leaf.red { fill: var(--red); }
.tl { position: absolute; left: clamp(16px, 4vw, 48px); display: grid; gap: 6px; max-width: 30%; }
.tl-up { top: 6%; }
.tl-down { top: 38%; }
.tl-k { font-size: clamp(22px, 3vw, 36px); font-weight: 700; letter-spacing: .08em; line-height: 1; }
.tl-up .tl-k { color: var(--blue); }
.tl-t { font-size: clamp(12px, 1.2vw, 14.5px); color: var(--muted); line-height: 1.75; }
.rnotes { list-style: none; margin: 0; padding: 0; }
.rnotes li { position: absolute; left: var(--x); top: var(--y); font-size: clamp(11px, 1.1vw, 13.5px); color: var(--ink); background: var(--bg); border: 1px solid var(--line); padding: 3px 10px; white-space: nowrap; }
.rnotes li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); margin-right: 7px; vertical-align: middle; transform: translateY(-1px); }
@media (max-width: 700px) {
  .tl-down { top: 36%; }
  .tl { max-width: 44%; }
  .tl-t br { display: none; }
  .rnotes { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px clamp(16px, 4vw, 48px) 0; }
  .rnotes li { position: static; white-space: normal; }
}
.sign { text-align: right; color: var(--muted); }

/* ページ見出し（下層） */
.page-head .wrap { padding-block: 48px 56px; display: grid; gap: 18px; }
.page-head h1 { font-size: clamp(28px, 4.4vw, 52px); font-weight: 900; line-height: 1.3; }
.page-head .lead { color: var(--muted); max-width: 36em; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { text-decoration: none; }

/* 分解洗浄の章 */
.chapter .wrap { padding-block: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.chapter h2 { font-size: clamp(26px, 3.6vw, 40px); }
.chapter p { color: var(--muted); margin-top: 14px; max-width: 28em; }
.chapter.dark { background: var(--deep); color: var(--deep-ink); }
.chapter.dark p { color: var(--deep-muted); }
.chapter .bignum { font-family: var(--f-mono); font-size: clamp(72px, 12vw, 150px); line-height: 1; font-variant-numeric: tabular-nums; }
.chapter .bignum small { font-family: var(--f-body); font-size: .2em; margin-left: 8px; }
@media (max-width: 860px) { .chapter .wrap { grid-template-columns: 1fr; gap: 24px; padding-block: 56px; } }
.errtbl td:first-child { white-space: nowrap; }
.code { font-family: var(--f-mono); font-weight: 500; }

/* 法務 */
.legal { display: grid; gap: 32px; }
.legal h2 { font-size: 19px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 8px 0 0; padding-left: 1.2em; }

/* お知らせ */
.news-empty { border: 1px dashed var(--line); padding: 20px; color: var(--muted); font-size: 14px; }

/* フッター */
.site-foot { border-top: 1px solid var(--line); font-size: 14px; }
.site-foot .wrap { padding-block: 48px 24px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; color: var(--muted); }
.site-foot a:hover { color: var(--ink); }
.site-foot .addr { color: var(--muted); display: grid; gap: 6px; }
.copy { grid-column: 1 / -1; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* 試作の注記 */
.proto-note { color: var(--muted); font-size: 12px; }
.proto-note .wrap { padding-block: 0 32px; display: grid; gap: 4px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ===== 1画面目：天井が開く ===== */
.xhero { position: relative; background: var(--deep); color: var(--deep-ink); margin-top: 0; }
.js .xhero { height: 230vh; }
.xstage { position: relative; min-height: 640px; height: 100vh; height: 100svh; max-height: 980px; overflow: hidden; display: flex; align-items: flex-end; }
.js .xstage { position: sticky; top: 0; max-height: none; }
.xmedia { position: absolute; inset: 0; }
.xmedia img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.xmedia .x-out { filter: saturate(.55) contrast(1.05) brightness(.72); transform-origin: 50% 40%; }
.xmedia .x-in { clip-path: inset(50% 50% 50% 50%); filter: saturate(.7) contrast(1.08) brightness(.8); object-position: 50% 50%; }
.xshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,13,16,.15) 0%, rgba(10,13,16,.1) 35%, rgba(10,13,16,.82) 100%); }
.xcopy { position: relative; z-index: 2; padding-block: 0 72px; width: 100%; }
.xcopy .eyebrow { color: rgba(228,231,232,.75); }
.xcopy h1 { font-size: clamp(34px, 6.2vw, 84px); font-weight: 900; letter-spacing: .01em; line-height: 1.12; color: #F2F4F5; }
.xcopy h1 .ln { display: block; white-space: nowrap; }
.xcopy .lead { margin-top: 22px; max-width: 30em; color: rgba(228,231,232,.82); }
.cta.light { background: #F2F4F5; color: #1C2126; border-color: #F2F4F5; }
.cta.light:hover { background: #fff; }
.cta.ghost.light { background: transparent; color: #F2F4F5; border-color: rgba(242,244,245,.5); }
.cta.ghost.light:hover { background: rgba(255,255,255,.08); }
.xcap { position: absolute; z-index: 2; right: max(16px, env(safe-area-inset-right, 0px)); top: 28px; margin: 0; font-size: 13px; color: #F2F4F5; opacity: 0; display: flex; gap: 12px; align-items: center; }
.xcap .tel { font-size: 11px; letter-spacing: .2em; border: 1px solid rgba(242,244,245,.5); padding: 2px 8px; }
.xhint { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; font-size: 12px; letter-spacing: .14em; color: rgba(228,231,232,.6); display: none; }
.js .xhint { display: block; }
@media (max-width: 760px) {
  .js .xhero { height: 190vh; }
  .xstage { min-height: 560px; }
  .xcopy { padding-block: 0 56px; }
  .xcap { left: max(16px, env(safe-area-inset-left, 0px)); right: auto; top: 18px; }
}


/* 表紙：見出しは縦書きで右に立てる（パソコン）。スマホは横書きで下に大きく */
@media (min-width: 761px) {
  .xstage { background: #14181B; }
  .xmedia .x-out { object-position: 40% 50%; filter: saturate(.62) contrast(1.1) brightness(.78); }
  .xshade { background: linear-gradient(270deg, rgba(14,18,21,.82) 0%, rgba(14,18,21,.35) 22%, rgba(14,18,21,0) 38%), linear-gradient(180deg, rgba(10,13,16,0) 55%, rgba(10,13,16,.75) 100%); }
  .xcopy { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 64px; }
  .xcopy h1 { position: absolute; z-index: 3; top: calc(var(--proto-h, 0px) + 48px); right: 0; writing-mode: vertical-rl; font-size: min(clamp(40px, 4.4vw, 64px), calc((100svh - var(--proto-h, 0px) - 150px) / 10.5)); line-height: 1.3; letter-spacing: .06em; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.5); margin: 0; }
  .xcopy h1 .ln:last-child { padding-top: 1em; }
  .xcopy .lead { max-width: 30em; }
  .xhint { display: none !important; }
  .js .xcopy h1 .ln { animation: ink-v 1.1s cubic-bezier(.6,0,.2,1) both; }
  .js .xcopy h1 .ln:last-child { animation-delay: .55s; }
}
@media (max-width: 760px) {
  .xmedia { top: 0; bottom: 30%; }
  .xstage { background: #14181B; }
  .xshade { background: linear-gradient(180deg, rgba(10,13,16,.1) 0%, rgba(10,13,16,0) 30%, rgba(14,18,21,.85) 80%, #14181B 100%); }
  .xcopy h1 { font-size: clamp(30px, 9.2vw, 44px); line-height: 1.12; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
  .js .xcopy h1 .ln { animation: ink-h 1s cubic-bezier(.6,0,.2,1) both; }
  .js .xcopy h1 .ln:last-child { animation-delay: .45s; }
}
@keyframes ink-v { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ink-h { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .js .xcopy h1 .ln { animation: none !important; } }

/* ===== 洗う前と後（つまみで比べる） ===== */
.ba { position: relative; aspect-ratio: 1568 / 760; max-width: 100%; overflow: hidden; background: var(--deep); user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #F2F4F5; pointer-events: none; }
.ba-line i { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #F2F4F5; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.ba-line i::before, .ba-line i::after { content: ""; position: absolute; top: 50%; margin-top: -5px; border: 5px solid transparent; }
.ba-line i::before { left: 9px; border-right-color: #1C2126; }
.ba-line i::after { right: 9px; border-left-color: #1C2126; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba input:focus-visible + .ba-line, .ba:focus-within .ba-line i { outline: 2px solid var(--blue); outline-offset: 2px; }
.ba-tag { position: absolute; top: 12px; font-size: 12px; letter-spacing: .12em; color: #F2F4F5; background: rgba(16,20,24,.6); padding: 3px 10px; pointer-events: none; }
.ba-tag.l { left: 12px; } .ba-tag.r { right: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ba-sec { border-top: 0 !important; }
body:has(.xhero) .site-head { background: var(--deep); }
body:has(.xhero) .site-head nav a { color: var(--deep-muted); }
body:has(.xhero) .site-head nav a:hover { color: var(--deep-ink); }
body:has(.xhero) .head-tel { color: var(--deep-ink) !important; border-color: color-mix(in srgb, var(--deep-ink) 30%, transparent); }
body:has(.xhero) .menu-btn { color: var(--deep-ink); border-color: color-mix(in srgb, var(--deep-ink) 30%, transparent); }
@media (max-width: 1180px) { body:has(.xhero) .site-head nav { background: var(--deep); } body:has(.xhero) .site-head nav a { border-color: color-mix(in srgb, var(--deep-ink) 14%, transparent); } }
.xstage { height: calc(100vh - 84px); height: calc(100svh - 84px); min-height: 560px; }
.js .xstage { top: 36px; }
@media (max-width: 760px) {
  .xstage { height: calc(100svh - 150px); min-height: 520px; }
  .js .xstage { top: 82px; }
  .xcopy h1 { font-size: clamp(28px, 8.4vw, 40px); }
}
@media (max-width: 760px) { .xcap .tel { display: none; } .xcap { font-size: 12px; } }

/* ===== 保守の年間計画と報告書 ===== */
.year { background: var(--surface); padding: 28px; display: grid; gap: 18px; align-content: start; }
.months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid var(--ink); }
.months li { position: relative; min-height: 120px; border-right: 1px solid var(--line); padding: 6px 0 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.months li:last-child { border-right: 0; }
.months .mo { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.ev { font-style: normal; font-size: 11px; line-height: 1.3; writing-mode: vertical-rl; padding: 6px 2px; border-radius: 2px; color: #fff; }
.ev.k { background: var(--blue); }
.ev.w { background: var(--ink); color: var(--bg); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.legend .ev { display: inline-block; width: 10px; height: 10px; padding: 0; margin-right: 8px; vertical-align: middle; }
.report { background: #FBFBFA; color: #1C2126; border: 1px solid var(--line); padding: 24px; display: grid; gap: 14px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); transform: rotate(-.6deg); }
.rp-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #1C2126; padding-bottom: 8px; }
.rp-head .tel { font-size: 11px; letter-spacing: .2em; border: 1px solid #1C2126; padding: 1px 8px; }
.report dl { margin: 0; display: grid; grid-template-columns: 7.5em 1fr; font-size: 14px; line-height: 1.6; }
.report dt, .report dd { margin: 0; padding: 7px 0; border-bottom: 1px solid #D6D9DA; }
.report dt { color: #5A626A; font-size: 13px; }
.st { display: inline-block; font-size: 12px; padding: 0 8px; margin-right: 6px; border-radius: 999px; }
.st.ok { background: #E3F2EA; color: #1E6B45; }
.rp-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 520px) { .year { padding: 18px 12px; } .months li { min-height: 100px; } .ev { font-size: 10px; } .report { transform: none; } }
.months .ev { flex: none; min-height: 4.6em; letter-spacing: .08em; font-size: 12px; }
.legend .ev { min-height: 0; }
.year .months { min-height: 130px; }
.months .ev { writing-mode: horizontal-tb; min-height: 0; padding: 3px 0; width: 86%; text-align: center; font-size: 11px; letter-spacing: 0; }

/* 保守：法律の根拠 */
.law { margin-top: 56px; padding: 32px; border: 1px solid var(--line); border-left: 3px solid var(--blue); background: var(--surface); display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px 48px; }
.law h3 { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.5; margin: 6px 0 12px; }
.law-facts { margin: 0; display: grid; gap: 0; }
.law-facts > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; font-size: 14.5px; padding: 12px 0; border-top: 1px solid var(--line); }
.law-facts > div:last-child { border-bottom: 1px solid var(--line); }
.law-facts dt { font-size: 13px; color: var(--muted); }
.law-facts dd { margin: 0; }
.law-src { grid-column: 1 / -1; margin: 0; }
@media (max-width: 860px) { .law { grid-template-columns: 1fr; padding: 22px; } }
.nb { display: inline-block; }
@media (max-width: 560px) { .tbl th, .tbl td { padding: 12px 8px; } }

/* 分解洗浄：部品ごと（汚れ／洗った後） */
.pswitch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-top: 14px; }
.pswitch button { font: inherit; font-size: 14px; border: 0; background: none; color: var(--muted); padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.pswitch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.parts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.part { margin: 0; }
.part-img { position: relative; aspect-ratio: 1; background: var(--surface); border: 1px solid var(--line); }
.part-img img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; transition: opacity .5s ease; }
.part-img .p-c { opacity: 0; }
.parts-sec.clean .p-c { opacity: 1; }
.parts-sec.clean .p-d { opacity: 0; }
.part figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.part figcaption b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
@media (max-width: 860px) { .parts { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (prefers-reduced-motion: reduce) { .part-img img { transition: none; } }
/* 分解洗浄：動画（縦長） */
.vids { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 24px; align-items: start; }
.vids figure { margin: 0; }
.vids video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #111; }
.vids figcaption { font-size: 14px; margin-top: 8px; }
.vids-note { grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) { .vids { grid-template-columns: 1fr 1fr; gap: 12px; } }
/* 分解洗浄：ドレンポンプの図 */
.pump-fig { margin: 0; display: grid; justify-items: center; gap: 10px; }
.pump-fig img { width: min(320px, 70%); height: auto; }
.pump-fig figcaption { font-size: 13.5px; opacity: .8; text-align: center; }
.vid-layout { display: grid; grid-template-columns: 1fr auto; gap: 32px 56px; align-items: start; }
.vid-layout h2 { margin-top: 8px; }
@media (max-width: 860px) { .vid-layout { grid-template-columns: 1fr; } }

/* 日本語の改行：文節の切れ目（build.pyが<wbr>を入れる）でだけ折る */
body { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
h1, h2, h3 { text-wrap: balance; }
.form label .opt { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 6px; }
.form input[type=file] { font: inherit; font-size: 14px; padding: 10px; border: 1px dashed var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.form .hint { font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) {
  .errtbl thead { display: none; }
  .errtbl tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .errtbl td { border: 0; padding: 0 8px; }
  .errtbl td:nth-child(1) { font-weight: 600; }
  .errtbl td.code { text-align: right; }
  .errtbl td:nth-child(3) { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
}
.tl-k, .tl-t { text-shadow: 0 0 6px var(--bg), 0 0 10px var(--bg), 0 0 14px var(--bg); }
.tl-down .tl-k, .tl-down .tl-t { text-shadow: 0 0 6px color-mix(in srgb, var(--ink) 5%, var(--bg)), 0 0 12px color-mix(in srgb, var(--ink) 5%, var(--bg)); }
@media (max-width: 700px) { .tl-t { display: none; } .tl-down { top: 42%; } }
.fig .arw { stroke: var(--water); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fig .dirt { stroke: color-mix(in srgb, var(--deep-ink) 35%, #3a2f22); stroke-width: 3; stroke-linecap: round; }
/* 水は、中央のノズルから熱交換器へ（線の始点＝内側 → 終点＝外側）流れ続ける */
.fig .water { stroke-dasharray: 6 10; animation: flow-out .7s linear infinite; }
@keyframes flow-out { to { stroke-dashoffset: -16; } }
@media (prefers-reduced-motion: reduce) { .fig .water { animation: none; } }

/* 分解図：工程の進み具合（スマホで使う） */
.dg-prog { display: none; gap: 6px; margin: 10px 0 0; }
.dg-prog i { width: 18px; height: 3px; background: color-mix(in srgb, var(--deep-ink) 22%, transparent); }
.dg-prog i.on { background: var(--blue); }
/* スマホ：図を上、いまの工程1つを下に。同じ画面に収めて一緒に進める */
@media (max-width: 860px) {
  .js .diagram .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-block: 12px 14px; min-height: calc(100svh - var(--proto-h, 0px)); justify-content: center; }
  .js .diagram .wrap > div:first-child { display: contents; }
  .js .diagram .eyebrow { order: 1; margin: 0; }
  .js .diagram h2 { order: 2; margin: 0; font-size: clamp(22px, 6vw, 28px); }
  .js .diagram .sub, .js .diagram .more { display: none; }
  .js .diagram .fig { order: 3; max-height: 46svh; display: flex; justify-content: center; }
  .js .diagram .fig svg { max-height: 46svh; width: auto; max-width: 100%; }
  .js .diagram .steps { order: 4; margin: 0; min-height: 6.4em; }
  .js .steps li small { font-size: 12.5px; }
  .js .steps li { display: none; border-top: 0; padding: 0; }
  .js .steps li.on { display: grid; opacity: 1; }
  .js .diagram .dg-prog { order: 5; display: flex; }
}
@media (max-width: 860px) { .fig .lbl { font-size: 19px; } .fig .lbl-s { font-size: 15px; } }
@media (max-width: 860px) and (max-height: 620px) { .js .diagram .eyebrow { display: none; } .js .diagram .steps { min-height: 5.6em; } }
/* パソコン：木の全体（枝先から根の先まで）を1画面に収め、描き終わるまで留める */
@media (min-width: 861px) {
  .roots-sec .wrap { display: flex; flex-direction: column; min-height: calc(100svh - var(--proto-h, 0px)); justify-content: center; padding-block: 16px; }
  .roots-sec { padding-block: 0; }
  .roots-head { margin-bottom: 8px; }
  .roots-head h2 { font-size: clamp(22px, 2.6vw, 34px); }
  .tree { margin-inline: auto; width: min(100%, calc((100svh - var(--proto-h, 0px) - 110px) * 1200 / 880)); }
  .tl { left: 0; }
  .tl-down { top: 80%; }
}
@media (min-width: 861px) { .roots-head { max-width: none; margin-inline: auto; width: min(100%, calc((100svh - var(--proto-h, 0px) - 110px) * 1200 / 880)); } }
@media (max-width: 860px) {
  .roots-sec { padding-block: 0; }
  .roots-sec .wrap { min-height: calc(100svh - var(--proto-h, 0px)); display: flex; flex-direction: column; justify-content: center; padding-block: 12px; }
  .roots-head { margin-bottom: 6px; }
  .roots-head h2 { font-size: clamp(22px, 6vw, 28px); }
  .rnotes { gap: 6px; padding-top: 10px; }
  .rnotes li { font-size: 12px; padding: 3px 8px; }
}
@media (max-width: 860px) and (max-height: 620px) {
  .roots-head h2 { font-size: 20px; }
  .roots-sec .wrap { padding-block: 6px; }
  .rnotes { gap: 4px; padding-top: 6px; }
  .rnotes li { padding: 2px 8px; }
}
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .err { color: var(--red); font-size: 14px; margin: 0; }

/* 広告のサイトリンクの飛び先（/bunkai#price など）で見出しが隠れないように */
#price, #guarantee, #error, #parts, #video { scroll-margin-top: 84px; }

/* お知らせ */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-list time { font-size: 14px; color: var(--muted); letter-spacing: .06em; padding-top: 2px; }
.news-list h3 { font-size: 17px; margin: 0 0 4px; }
@media (max-width: 560px) { .news-list li { grid-template-columns: 1fr; } }
