/* 有限会社上薗ポンプ ページごとの部品
   トップ：ヒーロー（全画面の写真）→ ひとこと＋数字 → 3本柱 → 写真の帯 → 地層を掘り進む（スクロール）→ 井戸水の4つのよさ → 用途タブ → 症状チェック → 流れる英字 → 流れ → 写真の帯 → お越しの前に
   下層：営業案内（3本柱の詳細・流れ・Q&A）／取扱内容（水温グラフ・5項目・ポンプの選び方）／会社概要／アクセス／お問い合わせ */

/* ===== ヒーロー ===== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--sb) + var(--hd) + 60px) 0 clamp(130px, 17vh, 170px); display: flex; align-items: flex-end; overflow: hidden; color: var(--bg); background: var(--dark); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 2s ease, transform 9s linear; }
.hero-slide.on { opacity: 1; transform: scale(1); }
html:not(.js) .hero-slide:first-child { opacity: 1; transform: none; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--dark) 60%, transparent) 0, color-mix(in srgb, var(--dark) 10%, transparent) 28%, color-mix(in srgb, var(--dark) 18%, transparent) 50%, color-mix(in srgb, var(--dark) 82%, transparent) 100%), linear-gradient(90deg, color-mix(in srgb, var(--dark) 78%, transparent) 0, color-mix(in srgb, var(--dark) 40%, transparent) 40%, transparent 70%); }
.hero-word { position: absolute; left: 0; bottom: 4vh; white-space: nowrap; pointer-events: none; z-index: 0; }
.hero-word-in { font-family: var(--f-en); font-weight: 600; text-transform: uppercase; font-size: clamp(110px, 17vw, 300px); line-height: .8; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--bg) 16%, transparent); letter-spacing: .01em; padding-left: 3vw; }
.hero-in { position: relative; z-index: 1; }
.hero-txt { max-width: min(100%, 1000px); text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.hero-kicker { font-family: var(--f-en); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: .32em; color: var(--glow); display: flex; align-items: center; gap: 14px; }
.hero-kicker::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero-h { font-family: var(--f-mi); font-weight: 600; font-size: clamp(38px, min(5.4vw, 8.6svh), 84px); line-height: 1.4; letter-spacing: .1em; margin: 22px 0 28px; white-space: nowrap; }
.hero-h > span, .hero-h .ln { display: block; }
.hero-h .ln:nth-child(2) { padding-left: 1em; }
.hero-h .ln:nth-child(3) { padding-left: 2em; }
.hero-lead { color: color-mix(in srgb, var(--bg) 90%, transparent); font-size: 15px; line-height: 2.2; max-width: 44em; }
.hero-btns { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 38px; }
.btn-line { background: transparent; color: var(--bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bg) 60%, transparent); font-family: var(--f-en); font-size: 20px; letter-spacing: .08em; font-weight: 500; }
.btn-line::before { background: color-mix(in srgb, var(--bg) 16%, transparent); }
.hero-meta { position: absolute; z-index: 1; right: 44px; bottom: 70px; display: grid; justify-items: end; gap: 8px; text-align: right; }
.hero-time { font-family: var(--f-en); font-weight: 500; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 34px); line-height: 1; letter-spacing: .1em; color: var(--bg); white-space: nowrap; }
.hero-time.flip { animation: flip .9s var(--ease); }
@keyframes flip { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: none; } }
.hero-cap { font-size: 12.5px; letter-spacing: .1em; color: color-mix(in srgb, var(--bg) 84%, transparent); }
.hero-dots { display: flex; gap: 6px; margin-top: 4px; }
.hero-dots i { width: 18px; height: 2px; background: color-mix(in srgb, var(--bg) 35%, transparent); transition: background .5s, width .5s var(--ease); }
.hero-dots i.on { background: var(--glow); width: 40px; }
.hero-scroll { position: absolute; left: 44px; bottom: 70px; display: flex; align-items: center; gap: 14px; font-family: var(--f-en); text-transform: uppercase; font-size: 13px; letter-spacing: .3em; color: color-mix(in srgb, var(--bg) 75%, transparent); z-index: 1; }
.hero-scroll i { width: 60px; height: 1px; background: color-mix(in srgb, var(--bg) 30%, transparent); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--glow); transform: translateX(-100%); animation: scrollLine 2.4s var(--ease-io) infinite; }
@keyframes scrollLine { 50% { transform: none; } 100% { transform: translateX(100%); } }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(34px, 5vw, 70px); z-index: 1; fill: var(--bg); }
.js .hero-bg { transform: scale(1.08); transition: transform 2.6s var(--ease) var(--hdl, 0s); }
.js .hero.ready .hero-bg { transform: none; }
.pg-home .hd:not(.solid) .gnav > a.gnav-cta { background: var(--bg); color: var(--ink); }
.pg-home .hd:not(.solid) .gnav > a.gnav-cta i { color: var(--accent); }
@media (max-width: 1080px) { .pg-home .hd:not(.solid) .gnav > a.gnav-cta { background: none; color: inherit; } .pg-home .hd:not(.solid) .gnav > a i { color: var(--accent-l); } }
@media (max-width: 900px) {
  .hero { padding: calc(var(--sb) + var(--hd) + 40px) 0 190px; }
  .hero-h { font-size: clamp(30px, 8.6vw, 46px); margin: 16px 0 20px; }
  .hero-lead br { display: none; }
  .hero-lead { font-size: 14px; }
  .hero-kicker { font-size: 10.5px; letter-spacing: .16em; gap: 10px; white-space: nowrap; }
  .hero-kicker::before { width: 22px; }
  .hero-shade { background: linear-gradient(180deg, color-mix(in srgb, var(--dark) 55%, transparent) 0, color-mix(in srgb, var(--dark) 22%, transparent) 22%, color-mix(in srgb, var(--dark) 60%, transparent) 45%, color-mix(in srgb, var(--dark) 92%, transparent) 100%); }
  .hero-meta { left: 20px; right: 20px; bottom: 96px; justify-items: start; text-align: left; }
  .hero-cap { display: none; }
  .hero-time { font-size: 20px; }
  .hero-scroll { display: none; }
  .hero-btns { gap: 12px; margin-top: 28px; }
  .hero-btns .btn { min-width: 0; flex: 1 1 220px; }
}
@media (max-width: 1080px) { .hero-meta { bottom: calc(96px + env(safe-area-inset-bottom)); } }
@media (orientation: landscape) and (max-height: 500px) {
  .hero { padding-bottom: 96px; }
  .hero-h { font-size: clamp(24px, 7.6svh, 38px); margin: 10px 0 12px; }
  .hero-lead, .hero-meta { display: none; }
  .hero-btns { margin-top: 14px; }
  .hero-kicker { display: none; }
  .hero-btns .btn { padding-top: 12px; padding-bottom: 12px; }
  .hero { padding-top: calc(var(--sb) + var(--hd) + 20px); }
}

/* ===== 見出しまわり ===== */
.sec-head { margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head .lead { margin-top: 22px; }
.sec-head.center { text-align: center; }

/* ===== ひとこと＋数字 ===== */
.about-top-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: end; }
.paint { font-family: var(--f-mi); font-weight: 600; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.65; letter-spacing: .08em; color: var(--ink); }
.paint .ch { color: color-mix(in srgb, var(--ink) 16%, transparent); transition: color .5s; }
.paint .ch.on { color: var(--main); }
.about-top-txt p { color: var(--ink-2); }
.about-top-txt p + p { margin-top: 16px; }
.about-top-txt .txt-link { margin-top: 26px; color: var(--main); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(70px, 9vw, 120px); border-top: 1px solid var(--line); }
.stat { padding: 30px 24px 6px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: flex; align-items: baseline; gap: 8px; font-family: var(--f-en); font-weight: 500; font-size: clamp(56px, 6vw, 88px); line-height: 1; color: var(--main); }
.stat b small { font-family: var(--f-jp); font-size: 14px; font-weight: 500; letter-spacing: .1em; color: var(--ink); }
.stat p { margin-top: 14px; font-size: 13px; line-height: 1.9; color: var(--ink-2); }
@media (max-width: 900px) {
  .about-top-in { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 26px; }
  .stat { padding: 24px 16px 4px; }
}

/* ===== 3本柱：ホバーで広がる ===== */
.pillars { background: var(--paper); }
.pillar-row { display: flex; gap: 14px; height: clamp(480px, 62vh, 620px); }
.pillar { position: relative; flex: 1; min-width: 0; overflow: hidden; color: var(--bg); text-decoration: none; isolation: isolate; transition: flex 1s var(--ease); }
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.6s var(--ease); }
.pillar::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--dark) 10%, transparent) 20%, color-mix(in srgb, var(--dark) 88%, transparent) 100%); }
.pillar-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 32px; }
.pillar-no { position: absolute; top: -340px; left: 32px; font-family: var(--f-en); font-size: 15px; letter-spacing: .2em; color: var(--glow); }
.pillar-en { font-family: var(--f-en); font-weight: 500; text-transform: uppercase; font-size: 15px; letter-spacing: .32em; color: var(--accent-l); }
.pillar h3 { font-family: var(--f-mi); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: .1em; line-height: 1.5; margin-top: 6px; white-space: nowrap; }
.pillar-p { font-size: 13.5px; line-height: 2; color: color-mix(in srgb, var(--bg) 86%, transparent); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .8s var(--ease), opacity .6s, margin .6s; max-width: 30em; }
.pillar-go { display: inline-flex; gap: 10px; margin-top: 16px; font-size: 13px; letter-spacing: .16em; border-bottom: 1px solid color-mix(in srgb, var(--bg) 50%, transparent); padding-bottom: 4px; }
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .pillar-row:hover .pillar { flex: .8; }
  .pillar-row .pillar:hover { flex: 1.7; }
  .pillar:hover img { transform: scale(1.06); }
  .pillar:hover .pillar-p { max-height: 160px; opacity: 1; margin-top: 12px; }
}
@media (hover: none), (pointer: coarse), (max-width: 900px) { .pillar-p { max-height: none; opacity: 1; margin-top: 10px; } }
@media (max-width: 900px) {
  .pillar-row { flex-direction: column; height: auto; }
  .pillar { flex: none; height: 400px; }
  .pillar-txt { padding: 26px 22px; }
}

/* ===== 全幅の写真の帯 ===== */
.band { position: relative; height: min(86vh, 820px); min-height: 460px; overflow: hidden; display: grid; place-items: center; text-align: center; color: var(--bg); isolation: isolate; }
.band-ph { position: absolute; inset: -12% 0; z-index: -1; }
.band-ph img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 52%, color-mix(in srgb, var(--dark) 60%, transparent), color-mix(in srgb, var(--dark) 28%, transparent) 78%); }
.band-en { font-family: var(--f-en); font-weight: 500; text-transform: uppercase; font-size: 15px; letter-spacing: .5em; color: var(--glow); }
.band-ja { margin-top: 20px; font-family: var(--f-mi); font-weight: 600; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.55; letter-spacing: .12em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); padding: 0 20px; }
.band-sub { margin-top: 20px; font-size: 14px; letter-spacing: .12em; padding: 0 20px; }
.band-sm { height: min(64vh, 600px); }
@media (max-width: 600px) { .band { height: 72svh; } }

/* ===== 地層を掘り進む（スクロール） ===== */
.depth { position: relative; background: var(--dark); color: var(--bg); }
.depth.on { height: 340vh; }
.depth-stage { padding: clamp(90px, 11vw, 140px) 0; }
.depth.on .depth-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; display: grid; align-items: center; overflow: hidden; }
.depth-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.depth .en-lab { color: var(--glow); }
.depth .sec-h { color: var(--bg); }
.depth-num { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 10px; font-family: var(--f-en); font-weight: 500; font-size: clamp(58px, 7vw, 104px); line-height: 1; color: var(--glow); font-variant-numeric: tabular-nums; }
.depth-num small { font-size: .32em; letter-spacing: .1em; color: color-mix(in srgb, var(--bg) 60%, transparent); }
.depth-list { display: grid; gap: 4px; counter-reset: dl; }
.depth-list li { position: relative; padding: 10px 0 10px 26px; font-size: 13.5px; line-height: 1.9; color: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--bg) 10%, transparent); }
.depth-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--bg) 40%, transparent); transition: background .4s, border-color .4s; }
.depth-list b { display: block; font-family: var(--f-mi); font-size: 16px; font-weight: 600; letter-spacing: .1em; color: var(--bg); }
.depth.on .depth-list li { display: none; }
.depth.on .depth-list li.on { display: block; animation: flip .7s var(--ease); }
.depth-list li.on::before, .depth-list li.done::before { background: var(--glow); border-color: var(--glow); }
.depth-note { margin-top: 14px; font-size: 11.5px; color: color-mix(in srgb, var(--bg) 50%, transparent); }
.depth-fig { position: relative; height: min(76vh, 640px); }
.depth:not(.on) .depth-fig { height: 560px; }
.depth-fig svg { width: 100%; height: 100%; }
.d-sky rect { fill: var(--dark-2); }
.d-house path, .d-house rect { fill: color-mix(in srgb, var(--bg) 18%, transparent); }
.d-house rect { fill: var(--dark); }
.d-pump rect { fill: var(--accent); }
.d-pump path { stroke: var(--accent); }
.d-l0 { fill: #4B3B2E; }
.d-l1 { fill: #6E6152; } .d-l1p { fill: color-mix(in srgb, #fff 20%, transparent); }
.d-l2 { fill: #55503F; } .d-l2p { fill: color-mix(in srgb, #fff 22%, transparent); }
.d-l3 { fill: #2E3438; } .d-l3p { stroke: color-mix(in srgb, #fff 14%, transparent); fill: none; }
.d-l3p { fill: url(#dp-rock); }
#dp-rock path { stroke: color-mix(in srgb, #fff 16%, transparent); }
.d-l4 { fill: #0D3B55; }
.d-aqw { fill: none; stroke: var(--glow); stroke-width: 1.5; opacity: .45; stroke-dasharray: 8 10; animation: aq 3s linear infinite; }
@keyframes aq { to { stroke-dashoffset: -36; } }
.d-labels text { font-family: var(--f-jp); font-size: 13px; fill: color-mix(in srgb, #fff 70%, transparent); text-anchor: end; letter-spacing: .1em; }
.d-casing { fill: color-mix(in srgb, var(--bg) 20%, transparent); transform-box: view-box; transform-origin: 200px 76px; transform: scaleY(var(--p, 0)); }
.d-water { fill: var(--glow); transform-box: view-box; transform-origin: 200px 546px; transform: scaleY(var(--w, 0)); }
.d-bit { fill: var(--accent-l); transform: translateY(calc(50px + var(--p, 0) * 470px)); }
.d-flow { stroke: var(--glow); stroke-width: 4; stroke-dasharray: 70; stroke-dashoffset: calc(70 - var(--f, 0) * 70); }
.d-drop { fill: var(--glow); opacity: var(--f, 0); animation: drip 1.2s ease-in infinite; }
@keyframes drip { 0% { transform: translateY(0); } 80%, 100% { transform: translateY(14px); opacity: 0; } }
.depth-bar { position: absolute; right: -18px; top: 13%; bottom: 9%; width: 2px; background: color-mix(in srgb, var(--bg) 12%, transparent); }
.depth-bar i { position: absolute; left: 0; right: 0; top: 0; height: 100%; background: var(--glow); transform-origin: top; transform: scaleY(var(--p, 0)); }
.depth:not(.on) .d-casing, .depth:not(.on) .d-water { transform: none; }
.depth:not(.on) .d-bit { transform: translateY(520px); }
.depth:not(.on) .d-flow { stroke-dashoffset: 0; }
.depth:not(.on) .d-drop { opacity: 1; }
@media (max-width: 900px) {
  .depth-in { grid-template-columns: 1fr; gap: 10px; }
  .depth.on .depth-in { grid-template-columns: 1fr 42%; gap: 16px; align-items: center; }
  .depth .sec-h { font-size: 19px; letter-spacing: .04em; }
  .depth .en-lab { letter-spacing: .18em; }
  .depth .en-lab::before { width: 18px; }
  .depth-num { font-size: 52px; margin: 8px 0 4px; }
  .depth-list li { font-size: 12.5px; line-height: 1.8; }
  .depth-list b { font-size: 14px; }
  .depth.on .depth-fig { height: 62svh; }
  .depth-bar { display: none; }
  .d-labels text { font-size: 20px; }
  .depth-note { font-size: 10.5px; }
  .depth .en-lab { margin-bottom: 10px; font-size: 11px; }
}
@media (max-width: 900px) and (max-height: 700px) { .depth.on .depth-list li { font-size: 11.5px; line-height: 1.7; } }
@media (orientation: landscape) and (max-height: 500px) { .depth.on .depth-fig { height: 84svh; } .depth.on .sec-h { font-size: 20px; } .depth.on .depth-num { font-size: 40px; } .depth-note { display: none; } }

/* ===== 井戸水の4つのよさ ===== */
.merit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.merit { position: relative; padding: 40px 28px 36px; background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; will-change: transform; overflow: hidden; }
.merit::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--main), var(--glow)); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.merit.in::after { transform: scaleX(1); transition-delay: calc(var(--d, 0s) + .5s); }
.merit-no { font-family: var(--f-en); font-size: 14px; letter-spacing: .2em; color: var(--accent); }
.merit-ic { display: block; width: 52px; height: 52px; margin: 18px 0 20px; color: var(--main); }
.merit h3 { font-family: var(--f-mi); font-weight: 600; font-size: 19px; letter-spacing: .06em; line-height: 1.6; }
.merit p { margin-top: 12px; font-size: 13.5px; line-height: 1.95; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .merit:hover { box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--main) 60%, transparent); } }
.merit-grid.small .merit { padding: 28px 24px; }
.merit-grid.small .merit h3 { margin-top: 10px; font-size: 17px; }
@media (max-width: 1000px) { .merit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .merit-grid { grid-template-columns: 1fr; } .merit { padding: 30px 24px; } }

/* ===== 用途タブ ===== */
.uses { background: var(--paper); }
.tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 60px; }
.tabs [role="tab"] { border: 0; background: none; padding: 20px 10px 22px; font-family: var(--f-mi); font-weight: 600; font-size: clamp(15px, 1.7vw, 21px); letter-spacing: .1em; color: var(--mute); transition: color .4s; line-height: 1.4; }
.tabs [role="tab"][aria-selected="true"] { color: var(--main); }
@media (hover: hover) and (pointer: fine) { .tabs [role="tab"]:hover { color: var(--ink); } }
.tab-bar { position: absolute; left: 0; bottom: -1px; height: 3px; width: var(--w, 33%); background: linear-gradient(90deg, var(--main), var(--glow)); transform: translateX(var(--x, 0)); transition: transform .6s var(--ease), width .6s var(--ease); }
.use-panel { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.use-panel[hidden] { display: none; }
.use-panel.show .use-ph { animation: mnIn 1.1s var(--ease-io); }
.use-panel.show .use-txt { animation: mnUp .9s var(--ease) .15s both; }
@keyframes mnIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mnUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.use-ph { aspect-ratio: 4 / 3; overflow: hidden; }
.use-ph img { width: 100%; height: 100%; object-fit: cover; }
.use-en { font-family: var(--f-en); font-weight: 500; text-transform: uppercase; letter-spacing: .32em; font-size: 14px; color: var(--accent); }
.use-txt h3 { font-family: var(--f-mi); font-weight: 600; font-size: clamp(22px, 2.3vw, 30px); letter-spacing: .08em; line-height: 1.6; margin: 10px 0 18px; }
.use-txt > p { color: var(--ink-2); }
.use-list { margin: 22px 0 28px; display: grid; gap: 2px; }
.use-list li { position: relative; padding: 9px 0 9px 24px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.use-list li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 9px; height: 12px; margin-top: -6px; background: var(--sub); border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%; }
.use-txt .txt-link { color: var(--main); }
@media (max-width: 900px) { .use-panel { grid-template-columns: 1fr; gap: 26px; } .tabs { margin-bottom: 36px; } .tabs [role="tab"] { padding: 16px 4px 18px; font-size: 14px; letter-spacing: .04em; } }

/* ===== 症状チェック ===== */
.trouble { background: var(--main-d); color: var(--bg); overflow: hidden; }
.trouble .sec-h { color: var(--bg); }
.trouble .lead { color: color-mix(in srgb, var(--bg) 78%, transparent); margin-top: 22px; }
.trouble-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.trouble-ph { margin-top: 40px; aspect-ratio: 4 / 3; overflow: hidden; }
.trouble-ph img { width: 100%; height: 118%; object-fit: cover; }
.trouble-list { display: grid; gap: 10px; }
.tb { border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); background: color-mix(in srgb, var(--bg) 4%, transparent); transition: background .4s, border-color .4s; }
.tb[open] { background: color-mix(in srgb, var(--bg) 9%, transparent); border-color: color-mix(in srgb, var(--glow) 60%, transparent); }
.tb summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px 22px; font-family: var(--f-mi); font-weight: 600; font-size: 16.5px; letter-spacing: .06em; line-height: 1.6; }
.tb summary::-webkit-details-marker { display: none; }
.tb-n { font-family: var(--f-en); font-weight: 500; font-size: 14px; color: var(--glow); letter-spacing: .1em; }
.tb summary i { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--bg) 40%, transparent); }
.tb summary i::before, .tb summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.4px; margin: -.7px 0 0 -5px; background: currentColor; transition: transform .4s var(--ease); }
.tb summary i::after { transform: rotate(90deg); }
.tb[open] summary i::after { transform: none; }
.tb p { padding: 0 22px 22px 58px; font-size: 13.5px; line-height: 2; color: color-mix(in srgb, var(--bg) 82%, transparent); }
.tb[open] p { animation: mnUp .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .tb:hover { border-color: color-mix(in srgb, var(--bg) 40%, transparent); } }
.trouble-btn { margin-top: 20px; justify-self: start; background: var(--bg); color: var(--ink); }
.trouble-btn::before { background: var(--accent-l); }
@media (max-width: 900px) { .trouble-in { grid-template-columns: 1fr; } .trouble-ph { display: none; } .tb summary { padding: 16px 16px; font-size: 15px; gap: 12px; } .tb p { padding: 0 16px 18px 16px; } .trouble-btn { justify-self: stretch; } }

/* ===== 流れ ===== */
.flow-top-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.flow-head { position: sticky; top: calc(var(--hd) + 30px); }
.flow-head .lead { margin: 22px 0 32px; }
.flow { position: relative; display: grid; gap: 0; padding-left: 0; }
.flow::before { content: ""; position: absolute; left: 31px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.flow::after { content: ""; position: absolute; left: 31px; top: 20px; width: 2px; height: calc((100% - 40px) * var(--p, 0)); background: linear-gradient(180deg, var(--main), var(--glow)); }
.flow li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 26px; padding: 0 0 46px; }
.flow li:last-child { padding-bottom: 0; }
.flow-n { position: relative; z-index: 1; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); font-family: var(--f-en); font-weight: 500; font-size: 20px; color: var(--mute); transition: background .5s, color .5s, border-color .5s; }
.flow li.on .flow-n { background: var(--main); border-color: var(--main); color: var(--bg); }
.flow h3 { font-family: var(--f-mi); font-weight: 600; font-size: 19px; letter-spacing: .08em; margin: 14px 0 8px; }
.flow p { font-size: 14px; color: var(--ink-2); }
html:not(.js) .flow-n { background: var(--main); color: var(--bg); }
@media (max-width: 900px) { .flow-top-in { grid-template-columns: 1fr; } .flow-head { position: static; } .flow li { grid-template-columns: 52px 1fr; gap: 18px; padding-bottom: 34px; } .flow-n { width: 52px; height: 52px; font-size: 17px; } .flow::before, .flow::after { left: 25px; } .flow h3 { margin-top: 10px; font-size: 17px; } }

/* ===== お越しの前に ===== */
.info { background: var(--paper); }
.info-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.today { margin: 26px 0 8px; padding: 14px 20px 14px 44px; position: relative; background: var(--bg); font-size: 14px; line-height: 1.9; }
.today::before { content: ""; position: absolute; left: 20px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--mute); }
.today.open::before { background: var(--sub); animation: pulse 2s infinite; }
.info-dl { margin: 22px 0 30px; border-top: 1px solid var(--line); }
.info-dl div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info-dl dt { color: var(--ink-2); font-size: 13px; letter-spacing: .12em; }
.info-dl small { color: var(--ink-2); font-size: 12px; }
.info-dl a { color: var(--main); font-family: var(--f-en); font-weight: 500; font-size: 24px; letter-spacing: .06em; }
.map { position: relative; aspect-ratio: 4 / 4; background: var(--paper-2); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.5) hue-rotate(160deg) saturate(.6); }
@media (max-width: 900px) { .info-in { grid-template-columns: 1fr; } .info-dl div { grid-template-columns: 6em 1fr; gap: 10px; } .map { aspect-ratio: 4 / 3.4; } }

/* ===== 下層：ページ内リンク ===== */
.jump { border-block: 1px solid var(--line); margin-top: clamp(60px, 8vw, 100px); background: var(--bg); }
.jump-in { display: flex; flex-wrap: wrap; }
.jump a { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px 12px; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .08em; border-right: 1px solid var(--line); transition: background .4s, color .4s; }
.jump a:last-child { border-right: 0; }
.jump a span { font-family: var(--f-en); color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .jump a:hover { background: var(--main); color: var(--bg); } .jump a:hover span { color: var(--glow); } }
@media (max-width: 900px) { .jump-in { display: grid; grid-template-columns: 1fr 1fr; } .jump a { justify-content: flex-start; padding: 14px 6px; font-size: 13px; border-right: 0; border-bottom: 1px solid var(--line); } .jump a:nth-child(odd) { border-right: 1px solid var(--line); } }

/* ===== 営業案内：3本柱 ===== */
.svc-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.svc-rev { background: var(--paper); }
.svc-rev .svc-ph { order: 2; }
.svc-ph { aspect-ratio: 4 / 3.3; overflow: hidden; }
.svc-ph img { width: 100%; height: 116%; object-fit: cover; }
.svc-no { font-family: var(--f-en); font-weight: 500; text-transform: uppercase; letter-spacing: .3em; font-size: 14px; color: var(--accent); margin-bottom: 14px; }
.svc-txt > p.up { margin-top: 24px; color: var(--ink-2); }
.svc-list { margin-top: 30px; border-top: 1px solid var(--line); }
.svc-list li { display: grid; grid-template-columns: 11em 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
.svc-list b { font-family: var(--f-mi); font-weight: 600; font-size: 15px; color: var(--main); letter-spacing: .06em; }
@media (max-width: 900px) { .svc-in { grid-template-columns: 1fr; gap: 30px; } .svc-rev .svc-ph { order: 0; } .svc-list li { grid-template-columns: 1fr; gap: 2px; } }
.flow-sec { background: var(--bg); }

/* ===== Q&A ===== */
.faq { background: var(--paper); }
.faq-list { display: grid; gap: 10px; }
.qa { background: var(--bg); border: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px 22px; font-weight: 500; font-size: 15px; line-height: 1.7; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary b, .qa p b { font-family: var(--f-en); font-weight: 500; font-size: 22px; color: var(--main); }
.qa p b { color: var(--accent); margin-right: 14px; }
.qa summary i { position: relative; width: 24px; height: 24px; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.4px; margin: -.7px 0 0 -6px; background: var(--ink); transition: transform .4s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: none; }
.qa p { padding: 0 22px 22px 22px; font-size: 14px; color: var(--ink-2); display: flex; align-items: baseline; }
.qa[open] p { animation: mnUp .6s var(--ease); }

/* ===== 取扱内容 ===== */
.merit-band { background: var(--paper); }
.temp { background: #fff; border: 1px solid var(--line); padding: 30px 32px 24px; margin-bottom: 20px; }
.temp-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; margin-bottom: 14px; }
.temp-head p { font-family: var(--f-mi); font-weight: 600; letter-spacing: .06em; }
.temp-key { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.temp-key i { width: 22px; height: 3px; display: inline-block; }
.temp-key .k-well { background: var(--sub); } .temp-key .k-air { background: var(--accent); margin-left: 10px; }
.temp svg { width: 100%; height: 200px; overflow: visible; }
.t-grid { stroke: var(--line); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.t-air, .t-well { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.t-air { stroke: var(--accent); stroke-dasharray: 6 6; }
.t-well { stroke: var(--sub); }
.js .temp .t-well { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .3s; }
.js .temp.in .t-well { stroke-dashoffset: 0; }
.js .temp .t-air { opacity: 0; transition: opacity 1.2s; }
.js .temp.in .t-air { opacity: 1; }
.temp-mon { display: flex; justify-content: space-between; font-family: var(--f-en); font-size: 13px; color: var(--mute); margin-top: 6px; }
.temp-note { margin-top: 10px; font-size: 11.5px; color: var(--mute); }
@media (max-width: 600px) { .temp { padding: 22px 18px 18px; } .temp svg { height: 150px; } }
.item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; padding: clamp(40px, 6vw, 70px) 0; border-top: 1px solid var(--line); }
.item-rev .item-ph { order: 2; }
.item-ph { aspect-ratio: 16 / 11; overflow: hidden; }
.item-ph img { width: 100%; height: 116%; object-fit: cover; }
.item-no { font-family: var(--f-en); font-weight: 500; font-size: clamp(60px, 6vw, 90px); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--sub); }
.item-txt h3 { font-family: var(--f-mi); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: .08em; line-height: 1.6; margin: 14px 0 18px; }
.item-txt > p.up:not(.item-no):not(.item-tags) { color: var(--ink-2); }
.item-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.item-tags span { font-size: 12px; letter-spacing: .08em; padding: 4px 14px; border: 1px solid color-mix(in srgb, var(--main) 35%, transparent); color: var(--main); }
@media (max-width: 900px) { .item { grid-template-columns: 1fr; gap: 24px; } .item-rev .item-ph { order: 0; } }
.pump-guide { background: var(--dark); color: var(--bg); }
.pump-guide .sec-h { color: var(--bg); }
.pump-guide .lead { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.pg-tool { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; }
.pg-btns { display: grid; gap: 10px; align-content: start; }
.pg-btns button { text-align: left; padding: 22px 26px; border: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); background: none; color: color-mix(in srgb, var(--bg) 75%, transparent); font-family: var(--f-mi); font-weight: 600; font-size: 17px; letter-spacing: .06em; transition: background .4s, color .4s, border-color .4s; }
.pg-btns button[aria-pressed="true"] { background: var(--bg); color: var(--ink); border-color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .pg-btns button:hover { border-color: var(--glow); color: var(--bg); } .pg-btns button[aria-pressed="true"]:hover { color: var(--ink); } }
.pg-out { position: relative; min-height: 260px; border: 1px solid color-mix(in srgb, var(--glow) 40%, transparent); background: color-mix(in srgb, var(--glow) 6%, transparent); }
.pg-card { position: absolute; inset: 0; padding: 36px 36px; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease), visibility 0s .5s; }
.pg-card.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s, transform .6s var(--ease); }
.pg-en { font-family: var(--f-en); font-weight: 500; text-transform: uppercase; letter-spacing: .3em; font-size: 13px; color: var(--glow); }
.pg-card h3 { font-family: var(--f-mi); font-weight: 600; font-size: 24px; letter-spacing: .08em; margin: 10px 0 16px; }
.pg-card p:last-child { color: color-mix(in srgb, var(--bg) 82%, transparent); font-size: 14px; }
html:not(.js) .pg-card { position: static; opacity: 1; visibility: visible; transform: none; }
@media (max-width: 900px) { .pg-tool { grid-template-columns: 1fr; } .pg-btns button { padding: 16px 18px; font-size: 15px; } .pg-out { min-height: 270px; } .pg-card { padding: 26px 22px; } }

/* ===== 会社概要 ===== */
.greet-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.greet-ph { aspect-ratio: 3 / 4; overflow: hidden; position: sticky; top: calc(var(--hd) + 30px); }
.greet-ph img { width: 100%; height: 116%; object-fit: cover; }
.greet-txt .sec-h { margin-bottom: 30px; }
.greet-txt p.up { color: var(--ink-2); }
.greet-txt p.up + p.up { margin-top: 18px; }
.greet-sign { margin-top: 36px !important; text-align: right; font-size: 13px; line-height: 2; color: var(--ink) !important; }
.greet-sign b { font-family: var(--f-mi); font-weight: 600; font-size: 22px; letter-spacing: .2em; }
@media (max-width: 900px) { .greet-in { grid-template-columns: 1fr; } .greet-ph { position: static; aspect-ratio: 4 / 3; } }
.values { background: var(--paper); }
.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { background: var(--bg); padding: 40px 32px; border-top: 3px solid var(--main); }
.value-n { font-family: var(--f-en); font-weight: 500; font-size: 46px; line-height: 1; color: var(--sub); }
.value h3 { font-family: var(--f-mi); font-weight: 600; font-size: 20px; letter-spacing: .08em; margin: 18px 0 12px; }
.value p { font-size: 13.5px; color: var(--ink-2); line-height: 2; }
@media (max-width: 900px) { .value-row { grid-template-columns: 1fr; } .value { padding: 30px 24px; } }
.ol-dl { border-top: 1px solid var(--ink); }
.ol-dl div { display: grid; grid-template-columns: 12em 1fr; gap: 20px; padding: 22px 6px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.ol-dl dt { color: var(--ink-2); font-size: 13.5px; letter-spacing: .12em; }
.ol-dl a { color: var(--main); }
@media (max-width: 700px) { .ol-dl div { grid-template-columns: 1fr; gap: 4px; padding: 16px 2px; } }

/* ===== アクセス ===== */
.hours { padding-bottom: 0; }
.week { width: min(560px, 100%); border-collapse: collapse; margin: 26px 0 20px; }
.week th, .week td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.week th { font-family: var(--f-mi); width: 5.5em; white-space: nowrap; }
.week td { font-family: var(--f-en); font-size: 19px; letter-spacing: .04em; }
.week tr.off td { font-family: var(--f-jp); font-size: 14px; color: var(--mute); }
.week tr[data-wd="6"] td { font-family: var(--f-jp); font-size: 14px; color: var(--ink-2); }
.week tr.today { background: color-mix(in srgb, var(--sub) 14%, transparent); }
.week tr.today th::after { content: "今日"; margin-left: 10px; font-family: var(--f-jp); font-size: 10.5px; padding: 1px 8px; background: var(--main); color: var(--bg); vertical-align: 2px; }
.hours-note { font-size: 13px; color: var(--ink-2); }
.access-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
@media (max-width: 900px) { .access-in { grid-template-columns: 1fr; } }
.route { background: var(--paper); }
.route-line { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 0; }
.rt-pt { display: grid; justify-items: center; text-align: center; gap: 4px; }
.rt-pt i { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--main); margin-bottom: 10px; }
.rt-goal i { background: var(--main); box-shadow: 0 0 0 6px color-mix(in srgb, var(--main) 18%, transparent); }
.rt-pt b { font-family: var(--f-mi); font-weight: 600; font-size: 17px; letter-spacing: .08em; }
.rt-pt small { font-size: 12px; color: var(--ink-2); }
.rt-mid { position: relative; height: 2px; margin: 0 14px 64px; background: var(--line); }
.rt-mid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--main), var(--glow)); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease-io) .3s; }
.route-line.in .rt-mid::after { transform: none; }
.route-line.in .rt-mid:nth-of-type(4)::after { transition-delay: 1.2s; }
.rt-mid span { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; white-space: nowrap; font-size: 12.5px; color: var(--ink-2); letter-spacing: .06em; }
html:not(.js) .rt-mid::after { transform: none; }
@media (max-width: 700px) {
  .route-line { grid-template-columns: 1fr; justify-items: start; gap: 0; padding-left: 8px; }
  .rt-pt { grid-template-columns: 18px auto; justify-items: start; text-align: left; column-gap: 16px; align-items: center; }
  .rt-pt i { margin: 0; grid-row: span 2; }
  .rt-mid { width: 2px; height: 56px; margin: 6px 0 6px 8px; }
  .rt-mid::after { transform-origin: top; transform: scaleY(0); }
  .route-line.in .rt-mid::after { transform: none; }
  .rt-mid span { left: 24px; bottom: auto; top: 50%; translate: 0 -50%; }
}

/* ===== お問い合わせ ===== */
.tel-sec { padding-bottom: 0; }
.tel-box { text-align: center; padding: 50px 24px; background: var(--paper); border-top: 3px solid var(--main); }
.tel-big { display: inline-block; font-family: var(--f-en); font-weight: 500; font-size: clamp(44px, 7vw, 76px); letter-spacing: .06em; line-height: 1.1; color: var(--main); text-decoration: none; }
.tel-box p:last-child { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.form-sec .lead { margin: 20px 0 40px; }
.form { display: grid; gap: 22px; }
.f-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.f-row { display: grid; gap: 8px; }
.f-row label, .f-lab { font-size: 13px; letter-spacing: .1em; }
.f-row label b { font-size: 10.5px; font-weight: 500; color: var(--bg); background: var(--main); padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
.f-row input:not([type="checkbox"]), .f-row select, .f-row textarea { width: 100%; font: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none; }
.f-row select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.f-row input:focus, .f-row select:focus, .f-row textarea:focus { outline: 2px solid var(--main); outline-offset: -1px; }
.f-chk { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.f-chk label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .04em; cursor: pointer; }
.f-chk input { width: 18px; height: 18px; accent-color: var(--main); }
.form .btn { justify-self: start; margin-top: 10px; }
@media (max-width: 767px) { .f-2 { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

/* ===== お問い合わせ欄の波（共通） ===== */
.cta-ripple { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .55; }

/* ===== トップの地図：押したときだけ読み込む（ページを軽くするため） ===== */
.map-lazy { display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; background: var(--main-d); color: var(--bg); padding: 30px; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-art path, .map-art circle { fill: none; stroke: color-mix(in srgb, var(--glow) 22%, transparent); stroke-width: 1.2; }
.map-art circle { stroke-dasharray: 4 6; }
.map-pin { position: relative; width: 54px; height: 54px; color: var(--glow); }
.map-pin svg { width: 100%; height: 100%; }
.map-addr { position: relative; font-family: var(--f-mi); font-weight: 600; font-size: 17px; letter-spacing: .1em; line-height: 1.8; }
.map-btn { position: relative; min-width: 0; background: var(--bg); color: var(--ink); }
.map-btn::before { background: var(--accent-l); }
.map-link { position: relative; color: var(--bg); font-size: 12.5px; }
.map-lazy.on { padding: 0; background: var(--paper-2); }
.map-lazy.on > :not(iframe) { display: none; }
