/* セラ濾過槽 CW-900 LP
   色は製品そのものから: 槽のベージュ / ろ材マットの青と黒 / ロゴの赤 */
:root {
  --ink: #0f2238;
  --ink-soft: #46586c;
  --water: #eef3f6;
  --paper: #ffffff;
  --tank: #ddd4bd;
  --tank-deep: #b9ad8f;
  --mat-blue: #1e63d6;
  --mat-black: #171a1f;
  --red: #c4122f;
  --red-deep: #9d0d24;
  --line: #cfd8e0;
  --wrap: 1120px;
  --font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --num: "Barlow Condensed", "Zen Kaku Gothic New", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt";
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--mat-blue); outline-offset: 3px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.num { font-family: var(--num); font-weight: 600; letter-spacing: 0.01em; }

/* ろ材マットの縞: このページの唯一の装飾 */
.mat-band {
  height: 22px;
  background: repeating-linear-gradient(90deg,
    var(--mat-blue) 0 34px, var(--mat-black) 34px 46px);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 14px 34px;
  background: var(--red); color: #fff;
  font-weight: 900; font-size: 1.08rem; line-height: 1.4; text-decoration: none; text-align: center;
  border-radius: 4px;
  box-shadow: 0 4px 0 var(--red-deep);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--red-deep); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink); box-shadow: none; min-height: 52px; font-weight: 700; font-size: 1rem;
}
.btn--ghost:hover { background: var(--ink); color: #fff; transform: none; box-shadow: none; }
.btn-note { font-size: .92rem; color: var(--ink-soft); margin-top: 12px; line-height: 1.6; }

/* ---------- ヘッダー ---------- */
.site-head { border-bottom: 1px solid var(--line); background: #fff; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 6px; }
.brand-name { white-space: nowrap; font-weight: 900; font-size: 1.05rem; line-height: 1.25; letter-spacing: .02em; }
.brand-name small { display: block; font-family: var(--num); font-weight: 600; font-size: .78rem; letter-spacing: .08em; color: var(--ink-soft); }
.head-nav { display: flex; gap: 26px; margin-left: auto; margin-right: 12px; }
.head-nav a { font-size: .92rem; font-weight: 500; text-decoration: none; }
.head-nav a:hover { color: var(--mat-blue); }
.site-head { position: sticky; top: 0; z-index: 15; }
.site-head a.head-link { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; background: var(--red); color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; border-radius: 4px; white-space: nowrap; }
.nb { display: inline-block; }

/* ---------- ファーストビュー ---------- */
.hero { background: var(--water); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero-model { display: inline-flex; align-items: baseline; gap: 14px; font-weight: 700; font-size: 1.15rem; }
.hero-model .num { background: var(--ink); color: #fff; padding: 0 12px; font-size: 1.35rem; border-radius: 3px; }
.hero h1 {
  font-weight: 900; font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.16; letter-spacing: -0.01em;
  margin: 18px 0 22px;
}
.hero-three { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-three li { background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: 4px 16px; font-weight: 700; font-size: 1.05rem; }
.hero-lead { max-width: 30em; color: var(--ink-soft); }
.hero-price { margin: 26px 0 20px; font-weight: 700; }
.hero-price .num { font-size: 3.1rem; line-height: 1; margin-right: 2px; }
.hero-price small { font-size: .9rem; font-weight: 500; color: var(--ink-soft); margin-left: 8px; }
.hero-photo { position: relative; margin-right: calc((100vw - min(100vw - 40px, var(--wrap))) / -2 + 20px); padding-bottom: 54px; }
.hero-photo .hero-inset { position: absolute; left: -34px; bottom: 0; width: 34%; border: 6px solid #fff; border-radius: 6px; }
.hero-photo img { width: 100%; border-radius: 6px; box-shadow: 0 24px 50px -24px rgba(15, 34, 56, .55); }
.hero-photo figcaption { white-space: nowrap; position: absolute; left: calc(34% - 18px); bottom: 14px; font-size: .82rem; color: var(--ink-soft); }

/* 寸法線スタイルの主要スペック */
.keyspec { background: var(--ink); color: #fff; }
.keyspec ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.keyspec li { padding: 22px 18px; border-left: 1px solid rgba(255,255,255,.18); }
.keyspec li:first-child { border-left: 0; padding-left: 0; }
.keyspec .k { display: block; font-size: .9rem; opacity: .8; line-height: 1.4; }
.keyspec .v { display: block; font-family: var(--num); font-weight: 600; font-size: 1.9rem; line-height: 1.25; }
.keyspec .v small { font-family: var(--font); font-size: .9rem; font-weight: 500; margin-left: 3px; }

/* ---------- 共通セクション ---------- */
.sec { padding-block: 88px; }
.sec--water { background: var(--water); }
.sec-title, .worry-answer, .reason h3 { text-wrap: balance; word-break: auto-phrase; }
.worry li { word-break: auto-phrase; }
.sec-title { font-weight: 900; font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.35; margin-bottom: 14px; }
.sec-lead { max-width: 36em; color: var(--ink-soft); margin-bottom: 44px; }

/* ---------- 悩み ---------- */
.worry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 2px solid var(--ink); border-radius: 6px; background: #fff; }
.worry li { padding: 26px 16px; text-align: center; font-weight: 700; font-size: 1.12rem; border-left: 1px dashed var(--line); }
.worry li:first-child { border-left: 0; }
.worry-answer { margin-top: 34px; font-weight: 900; font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.5; }

/* ---------- 3つの理由 ---------- */
.reason { display: grid; grid-template-columns: minmax(170px, 260px) minmax(0, 1fr) minmax(240px, 32%); gap: 36px; align-items: center; padding-block: 44px; border-top: 1px solid var(--line); }
.reason:last-child { border-bottom: 1px solid var(--line); }
.reason p.reason-key { font-weight: 900; font-size: 1.9rem; line-height: 1.3; color: var(--ink); }
.reason-key .num { display: block; font-size: 4.6rem; line-height: 1; color: var(--mat-blue); }
.reason-key .num small { font-size: 2rem; }
.reason h3 { font-size: 1.3rem; font-weight: 900; line-height: 1.5; margin-bottom: 10px; }
.reason p { color: var(--ink-soft); }
.reason figure { background: var(--water); border-radius: 6px; padding: 16px; }
.reason figure img { margin-inline: auto; max-height: 230px; width: auto; border-radius: 3px; }

/* ---------- 動画 ---------- */
.movie { background: var(--mat-black); color: #fff; }
.movie .sec-lead { color: rgba(255,255,255,.78); margin-bottom: 32px; }
.movie-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.movie-card { display: block; color: #fff; text-decoration: none; }
.movie-thumb { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.movie-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.movie-card:hover .movie-thumb img { transform: scale(1.03); }
.yt-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 76px; height: 54px; border-radius: 14px; background: var(--red); box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.yt-play::after { content: ""; position: absolute; left: 30px; top: 15px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.movie-card strong { display: block; margin-top: 14px; font-size: 1.15rem; font-weight: 900; line-height: 1.5; word-break: auto-phrase; text-wrap: balance; }
.movie-card small { display: block; margin-top: 4px; font-size: .9rem; opacity: .75; text-decoration: underline; }
.midcta :focus-visible, .movie :focus-visible, .site-foot :focus-visible, .keyspec :focus-visible { outline-color: #fff; }

/* ---------- 中間CTA ---------- */
.midcta { background: var(--mat-blue); color: #fff; padding-block: 30px; }
.midcta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.midcta p { font-weight: 700; font-size: 1.08rem; line-height: 1.6; }
.midcta .num { font-size: 1.7rem; margin-left: 4px; }
.midcta .btn { background: #fff; color: var(--ink); box-shadow: 0 4px 0 rgba(0,0,0,.28); min-height: 54px; }

/* ---------- 比較 ---------- */
.table-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; background: #fff; }
.compare th, .compare td { padding: 18px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare thead th { background: var(--ink); color: #fff; font-weight: 700; }
.compare thead th.ours { background: var(--mat-blue); }
.compare tbody th { font-weight: 700; background: var(--water); width: 22%; }
.compare td.ours { font-weight: 900; font-size: 1.1rem; background: #f3f7fe; border-inline: 2px solid var(--mat-blue); }
.compare tbody tr:last-child td.ours { border-bottom: 2px solid var(--mat-blue); }
.compare td.other { color: var(--ink-soft); }
.fine { font-size: .92rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- 3タイプ ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: 6px; padding: 52px 24px 24px; position: relative; }
.plan--pick { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 16px 32px -18px rgba(15, 34, 56, .5); }
.plan-flag { position: absolute; top: 0; left: 0; right: 0; text-align: center; background: var(--red); color: #fff; font-weight: 900; font-size: .95rem; padding: 3px 14px; border-radius: 3px 3px 0 0; }
.plan figure { height: 190px; display: grid; place-items: center; margin-bottom: 18px; background: var(--water); border-radius: 4px; padding: 12px; }
.plan figure img { max-height: 166px; width: auto; border-radius: 2px; }
.plan h3 { font-size: 1.28rem; font-weight: 900; line-height: 1.45; }
.plan-for { color: var(--ink-soft); font-size: .95rem; margin-top: 6px; min-height: 3.5em; }
.plan-price { margin: 14px 0 4px; font-weight: 700; }
.plan-price .num { font-size: 2.7rem; line-height: 1.1; }
.plan-price small { display: block; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.plan-items { margin: 16px 0 22px; padding-top: 16px; border-top: 1px dashed var(--line); flex: 1; }
.plan-items li { position: relative; padding-left: 1.3em; line-height: 1.6; margin-bottom: 7px; font-size: .97rem; }
.plan-items li::before { content: ""; position: absolute; left: 0; top: .5em; width: .62em; height: .62em; background: var(--mat-blue); }
.plan-items li.add { font-weight: 700; }
.plan-items li.add::before { background: var(--red); }
.plan .btn { width: 100%; padding-inline: 12px; font-size: 1rem; min-height: 60px; }
.plan-notes { margin-top: 28px; border-left: 6px solid var(--tank-deep); background: var(--water); padding: 18px 22px; }
.plan-notes p + p { margin-top: 6px; }
.plan-notes a { font-weight: 700; }
.flow-cta { margin-top: 36px; }

/* ---------- おすすめ ---------- */
.fit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--ink); }
.fit li { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--line); }
.fit li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.fit strong { display: block; font-size: 1.18rem; font-weight: 900; line-height: 1.5; margin-bottom: 6px; }
.fit span { color: var(--ink-soft); font-size: .97rem; }
.scenes { margin-top: 30px; font-weight: 700; }
.scenes b { display: inline-block; background: var(--tank); padding: 2px 14px; margin: 0 6px 6px 0; border-radius: 3px; }

/* ---------- 仕様 ---------- */
.spec-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.spec { width: 100%; border-collapse: collapse; border-top: 3px solid var(--ink); }
.spec th, .spec td { padding: 15px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 9.5em; font-weight: 700; padding-right: 12px; }
.spec td .num { font-size: 1.3rem; }
.spec-fig { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.spec-fig a { display: block; cursor: zoom-in; }
.spec-fig figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }
.spec-fig .spec-parts { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
[id] { scroll-margin-top: 84px; }
.docs { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.docs a { font-weight: 700; font-size: .93rem; text-decoration: none; border: 1.5px solid var(--ink); border-radius: 3px; padding: 10px 16px; background: #fff; }
.docs a.docs-main { background: var(--ink); color: #fff; }
.docs a:hover { background: var(--ink); color: #fff; }

/* ---------- チェック ---------- */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.check h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: 14px; }
.check li { position: relative; padding: 12px 0 12px 2.1em; border-bottom: 1px solid var(--line); line-height: 1.7; }
.check li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 1.05em; height: .55em; border-left: 3px solid var(--mat-blue); border-bottom: 3px solid var(--mat-blue); transform: rotate(-45deg); }
.note-box { background: var(--water); border-left: 6px solid var(--tank-deep); padding: 20px 22px; }
.note-box p + p { margin-top: 10px; }

/* ---------- 流れ ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.flow li { counter-increment: step; padding: 24px 22px 24px 0; border-top: 3px solid var(--ink); position: relative; }
.flow li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.flow li::before { content: counter(step); font-family: var(--num); font-weight: 600; font-size: 3rem; line-height: 1; color: var(--red); display: block; margin-bottom: 8px; }
.flow strong { display: block; font-weight: 900; font-size: 1.1rem; line-height: 1.5; margin-bottom: 6px; }
.flow span { color: var(--ink-soft); font-size: .95rem; line-height: 1.7; display: block; }

/* ---------- FAQ ---------- */
.faq { border-top: 3px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 700; font-size: 1.08rem; position: relative; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; translate: 0 -50%; font-family: var(--num); font-size: 1.9rem; color: var(--mat-blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 44em; }

/* ---------- 最終CTA ---------- */
.final { background: var(--tank); }
.final .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.final .sec-title { margin-bottom: 18px; }
.final-prices { margin-bottom: 28px; }
.final-prices li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--tank-deep); font-weight: 700; }
.final-prices .num { font-size: 1.5rem; line-height: 1.3; white-space: nowrap; }
.final .btn-note { color: var(--ink); }
.final figure img { border-radius: 6px; margin-inline: auto; max-width: 260px; width: 100%; }
.final-tel { margin-top: 18px; font-weight: 700; }
.final-tel .num { font-size: 1.6rem; text-decoration: none; }
.final-tel a { display: inline-block; padding-block: 8px; }

/* ---------- フッター ---------- */
.site-foot { background: var(--ink); color: #fff; padding-block: 44px; font-size: .93rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-foot strong { font-size: 1.1rem; display: block; margin-bottom: 6px; }
.site-foot a { color: #fff; }
.site-foot nav a { display: block; padding-block: 8px; }
.site-foot a[href^="tel"] { display: inline-block; padding-block: 8px; }
.site-foot .copy { width: 100%; opacity: .6; font-size: .82rem; border-top: 1px solid rgba(255,255,255,.2); padding-top: 18px; }

/* ---------- スマホ固定CTA ---------- */
.sticky { display: none; transition: transform .2s; }
.sticky.is-hidden { transform: translateY(110%); }

@media (max-width: 900px) {
  body { font-size: 16px; }
  .sec { padding-block: 60px; }
  .hero .wrap { grid-template-columns: 1fr; padding-block: 40px 40px; gap: 28px; }
  .keyspec ul { grid-template-columns: 1fr; padding-block: 6px; }
  .keyspec li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .keyspec li:first-child { border-top: 0; }
  .keyspec .v { font-size: 1.5rem; white-space: nowrap; }
  .worry { grid-template-columns: 1fr 1fr; }
  .worry li { border-left: 0; border-top: 1px dashed var(--line); padding: 20px 10px; }
  .worry li:nth-child(even) { border-left: 1px dashed var(--line); }
  .worry li:nth-child(-n+2) { border-top: 0; }
  .reason { grid-template-columns: 1fr; gap: 16px; padding-block: 34px; }
  .reason-key { font-size: 1.5rem; }
  .reason-key .num { font-size: 3.6rem; }
  .spec-grid, .check-grid, .final .wrap { grid-template-columns: 1fr; gap: 30px; }
  .plans { grid-template-columns: 1fr; gap: 34px; }
  .plan-for { min-height: 0; }
  .fit { grid-template-columns: 1fr; }
  .fit li, .fit li + li { padding: 20px 0; border-left: 0; }
  .flow { grid-template-columns: 1fr; }
  .flow li, .flow li + li { padding: 18px 0 18px 62px; border-left: 0; border-top: 1px solid var(--line); }
  .flow li:first-child { border-top: 3px solid var(--ink); }
  .flow li::before { position: absolute; left: 4px; top: 16px; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: .85rem; }
  .brand-name small { display: none; }
  .movie-grid { grid-template-columns: 1fr; gap: 30px; }
  .site-head { position: static; }
  .site-head a.head-link { font-size: .78rem; padding-inline: 9px; }
  .site-head .wrap { gap: 8px; }
  html { scroll-padding-bottom: 90px; }
  .hero .wrap { gap: 0; }
  .hero .wrap > div { display: contents; }
  .hero-photo { order: 1; margin-bottom: 18px; }
  .hero-lead, .hero-price, .hero .btn, .hero .btn-note { order: 2; }
  .hero .btn { width: 100%; }
  .hero-three { gap: 6px; }
  .hero-three li { padding: 2px 9px; font-size: .92rem; }
  .compare { min-width: 0; table-layout: fixed; }
  .compare th, .compare td { padding: 14px 6px; font-size: .9rem; line-height: 1.5; }
  .compare tbody th { width: 19%; }
  .compare td.ours { font-size: .95rem; }
  .spec-fig { order: -1; }
  .final .wrap { grid-template-columns: minmax(0, 1fr); }
  .flow-cta .btn { width: 100%; }
  .head-nav { display: none; }
  .site-foot { padding-bottom: 110px; }
  .hero-photo { margin-right: 0; padding-bottom: 46px; }
  .hero-photo figcaption { white-space: normal; }
  .hero-photo .hero-inset { left: 10px; width: 36%; border-width: 4px; }
  .hero-photo figcaption { left: calc(36% + 22px); bottom: 6px; line-height: 1.5; }
  .hero-price small { display: block; margin: 4px 0 0; }
  .midcta .btn { width: 100%; }
  [id] { scroll-margin-top: 70px; }
  .sticky {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 20;
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }
  .sticky .btn { width: 100%; min-height: 54px; padding: 10px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky, .movie-thumb img { transition: none; }
}

@media (max-width: 350px) {
  .brand-name { display: none; }
}
