/* ============================================================
   セントラル浄水器レンタル - Shared Stylesheet
   ============================================================ */

:root {
  --navy:       #0d2147;
  --blue:       #1a4f8a;
  --mid-blue:   #22699b;
  --light-blue: #d6eaf8;
  --pale-blue:  #eaf4fb;
  --sky:        #f0f7ff;
  --white:      #ffffff;
  --gray-light: #f8f9fa;
  --gray:       #5a6069;
  --dark:       #1a1a2e;
  --note-on-dark: #d6ecfa;
  --green:      #27ae60;
  --green-dark: #1e8449;
  --orange:     #e67e22;
  --shadow:     0 4px 20px rgba(13,33,71,.12);
  --radius:     12px;
  --transition: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP',
               'Yu Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── キーボード操作時のフォーカス表示 ──
   白背景・濃紺背景のどちらでも視認できるよう、白リング＋オレンジリングの
   二重box-shadowにする（hoverの有無に関係なく、常にfocus-visible時のみ表示）。
   個別の入力欄（.form-control等）は下部でより強いリングに上書きする。 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px #e8590c;
  border-radius: 4px;
}

/* ── 本文へ移動リンク（スキップリンク） ──
   通常時は画面外に隠し、キーボードフォーカス時のみ表示する。 */
.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 9999;
  background: var(--navy); color: var(--white);
  padding: 12px 20px; border-radius: 0 0 8px 8px;
  font-weight: 700; font-size: .95rem;
  transition: top .15s ease;
}
.skip-link:hover { color: var(--white); text-decoration: underline; }
.skip-link:focus-visible {
  top: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px #e8590c;
}

/* ── Typography ── */
h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.3; }
h2 { font-size: clamp(1.3rem, 3vw, 2rem);   font-weight: 700; line-height: 1.35; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { margin-bottom: .8em; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 72px 0; }
.section--gray { background: var(--gray-light); }
.section--sky  { background: var(--sky); }
.section--navy { background: var(--navy); color: var(--white); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { color: var(--navy); margin-bottom: .5em; }
.section-head p  { color: var(--gray); max-width: 600px; margin: 0 auto; }
.section-head .kicker {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  color: var(--mid-blue); background: var(--light-blue);
  padding: 4px 14px; border-radius: 999px; margin-bottom: .6em;
}

/* ── Header / Nav ── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 68px; max-width: 1200px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px; color: var(--white);
  font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
  text-decoration: none;
}
.logo-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #2980b9, #6dd5fa);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.logo span { font-size: .75rem; color: #a0c8f0; font-weight: 400; display: block; }

.nav-links {
  display: flex; gap: 2px; list-style: none;
}
.nav-links a {
  display: block; padding: 6px 8px; color: #cdd9e8; font-size: .80rem;
  border-radius: 6px; transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,.12); color: var(--white); text-decoration: none; }

.nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  font-weight: 700;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--green-dark) !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 8px 16px 16px; }
.mobile-menu a {
  display: block; padding: 12px 8px;
  color: #cdd9e8; font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mobile-menu a:hover { color: var(--white); text-decoration: none; }
.mobile-menu .nav-cta { background: var(--green); color: var(--white) !important; border-radius: 8px; margin-top: 8px; text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px; border-radius: 8px;
  font-weight: 700; font-size: 1rem; text-align: center;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); text-decoration: none;
}
.btn--primary {
  background: var(--green); color: var(--white); border-color: var(--green);
}
.btn--primary:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; color: var(--white); }
.btn--outline {
  background: transparent; color: var(--white); border-color: var(--white);
}
.btn--outline:hover { background: var(--white); color: var(--navy); text-decoration: none; }
.btn--blue {
  background: var(--blue); color: var(--white); border-color: var(--blue);
}
.btn--blue:hover { background: var(--navy); border-color: var(--navy); text-decoration: none; color: var(--white); }
.btn--sm { padding: 10px 22px; font-size: .9rem; }
.btn--lg { padding: 18px 42px; font-size: 1.1rem; }

/* 白・グレー背景専用のアウトラインボタン（商品紹介ページ「製品情報」用）。
   共通の .btn--outline は濃色背景での白文字前提のため変更せず、
   別クラスとして追加する（他ページ・他コンポーネントへの影響なし）。 */
.btn--outline-blue {
  background: var(--white); color: var(--blue); border-color: var(--blue);
}
.btn--outline-blue:hover {
  background: var(--blue); color: var(--white); text-decoration: none;
}

/* ── Cards ── */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card--bordered { border: 2px solid var(--light-blue); box-shadow: none; }
.card__body { padding: 28px; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.price-table {
  width: 100%; border-collapse: collapse; font-size: .92rem;
  min-width: 600px;
}
.price-table th {
  background: var(--navy); color: var(--white); padding: 14px 16px;
  text-align: center; font-weight: 700; white-space: nowrap;
}
.price-table th:first-child { text-align: left; border-radius: 0; }
.price-table td {
  padding: 13px 16px; border-bottom: 1px solid #e8f0f8;
  text-align: center;
}
.price-table td:first-child { text-align: left; font-weight: 600; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: var(--sky); }
.price-table .highlight { color: var(--blue); font-weight: 700; font-size: 1.05em; }
.price-table .payment   { color: var(--green-dark); font-weight: 700; }

/* ── Price table inside dark (navy) sections ── */
.section--navy .table-wrap { box-shadow: 0 4px 20px rgba(0,0,0,.35); }
.section--navy .price-table th {
  background: rgba(255,255,255,.18);
  color: var(--white);
}
.section--navy .price-table td {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,.1);
}
.section--navy .price-table tr:nth-child(even) td {
  background: rgba(255,255,255,.07);
}
.section--navy .price-table td:first-child { color: #c8e0f4; }
.section--navy .price-table .highlight { color: #6dd5fa; }
.section--navy .price-table .payment   { color: #6dfa9a; }

/* ── Badge / Tag ── */
.badge {
  display: inline-block; font-size: .75rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: var(--light-blue); color: var(--blue);
}
.badge--green { background: #d5f5e3; color: #1e8449; }
.badge--orange { background: #fdebd0; color: #a04000; }

/* ── Comparison ── */
.compare-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-card {
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.compare-card--ours { background: linear-gradient(135deg, #1a4f8a 0%, #0d2147 100%); color: var(--white); }
.compare-card--other { background: var(--gray-light); border: 2px solid #ddd; }
.compare-card .label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; opacity: .75; margin-bottom: .3em; }
.compare-card .price { font-size: 2.4rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.compare-card .price sub { font-size: .38em; font-weight: 400; vertical-align: .12em; }
.compare-card .price-note { font-size: .82rem; opacity: .8; margin-top: .3em; }
.compare-card--ours .diff { font-size: .95rem; margin-top: 12px; color: #a0f0b0; font-weight: 600; }

/* ── Hero ── */
/*
 * FV（ファーストビュー）は後日、カスタム水デザイン動画/GIFに差し替え予定。
 * WP移行時: video タグまたは ACF背景画像フィールドをここに追加。
 * 現在はグラデーションのみで運用。
 */
/* ══════════════════════════════════════════════════════════
   ヒーロー（ファーストビュー）— 静止画スライダー（2026-07-31）
   構成: [スライド層(z0)] + [暗幕グラデーション(z1)] + [コピー/5ボタン(z2)]
        + [操作UI(z3, JS有効時のみ)]
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  color: var(--white);
  /* スライド未読込・JS無効時のフォールバック背景 */
  background: linear-gradient(135deg, #0d2147 0%, #1a4f8a 55%, #2980b9 100%);
  min-height: clamp(560px, 80vh, 760px);
  /* コピーは上下中央。上下パディングで端に寄りすぎず、下部の操作UIとも重ならない。 */
  display: flex; align-items: center; justify-content: center;
  padding: clamp(52px, 9vh, 92px) 16px clamp(72px, 12vh, 112px);
}

/* ── スライド層（最背面 z0） ── */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide--photo .hero-slide-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%; display: block;
}
/* 1枚目: 取扱商品スライドの背景（ブランドグラデーション。商品カードは .hero-inner 内） */
.hero-slide--products {
  background: linear-gradient(135deg, #0d2147 0%, #1a4f8a 60%, #2980b9 100%);
}

/* ── 暗幕(z1): 画像全体を暗くしすぎない。中央のコピー周辺のコントラストを確保。 ── */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(135% 78% at 50% 50%, rgba(6,17,40,.42) 0%, rgba(6,17,40,0) 66%),
    linear-gradient(to bottom, rgba(6,17,40,.30) 0%, rgba(6,17,40,.12) 34%, rgba(6,17,40,.14) 64%, rgba(6,17,40,.44) 100%);
}

/* ── コピー（上下中央 z2）＋ 1枚目のみ商品カード ── */
.hero-inner {
  position: relative; z-index: 2; text-align: center;
  width: 100%; max-width: 920px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.hero .kicker {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .1em;
  color: #a9e4fb; background: rgba(9,20,44,.5);
  padding: 5px 16px; border-radius: 999px; margin-bottom: .9em;
  border: 1px solid rgba(109,213,250,.45);
}
.hero h1 {
  color: var(--white); margin-bottom: 0;
  font-size: clamp(1.7rem, 4.4vw, 2.8rem); line-height: 1.28;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

/* 商品カード（1枚目のみ表示）: カード → 余白 → コピー のまとまり。大きな空白を作らない。
   既定は表示（JS無効時も1枚目で商品が見える）。JSが2枚目以降を表示中のみ隠す。 */
.hero-products {
  display: flex; gap: clamp(10px, 2vw, 24px);
  justify-content: center; align-items: stretch; flex-wrap: nowrap;
  width: min(100%, 940px); margin: 0 auto clamp(20px, 3.2vh, 34px);
}
.hero--photo-active .hero-products { display: none; }
.hero-product-card {
  flex: 1 1 0; min-width: 0; margin: 0;
  background: #fff; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  padding: clamp(10px, 1.6vw, 18px);
  display: flex; flex-direction: column; align-items: center;
}
.hero-product-card img {
  width: 100%; height: clamp(88px, 15vw, 164px);
  object-fit: contain; display: block;
}
.hero-product-card figcaption { margin-top: 8px; text-align: center; line-height: 1.3; }
.hpc-plan { display: block; font-size: clamp(.62rem, 1.4vw, .78rem); font-weight: 700; color: #2980b9; }
.hpc-name { display: block; font-size: clamp(.68rem, 1.5vw, .9rem); font-weight: 800; color: #0d2147; overflow-wrap: anywhere; }

/* ── 5ボタン（案内セクションで使用。PCは2段、SPは押しやすく） ── */
.hero-actions { display: grid; gap: 12px; width: 100%; max-width: 760px; margin: 0 auto; }
.hero-actions__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* white-space:nowrap で「ウルトラバブル発生器」等が語中で不自然に分割されるのを防ぐ */
.hero-actions .btn { padding: 15px 24px; font-size: 1rem; font-weight: 700; border-radius: 10px; white-space: nowrap; }
.hero-actions__row--info .btn { flex: 1 1 200px; max-width: 280px; }
.hero-actions__row--cta  .btn { flex: 1 1 220px; max-width: 320px; }

/* ── 案内ボタン セクション（FV直後・料金例の前）── */
/* 2026-08-01 PDF②-1: hikarix「家計にやさしい」画像を背景に、淡色オーバーレイで
   明るい印象にし、その上に見出し＋5ボタンを重ねる（濃紺一色にはしない）。 */
.hero-cta-section {
  position: relative; overflow: hidden;
  padding: clamp(44px, 7vw, 72px) 0;
  background: #e9f2fb url("../images/cta-family.jpg") center 60% / cover no-repeat;
  color: var(--navy);
}
.hero-cta-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.60) 0%, rgba(233,243,251,.52) 52%, rgba(238,244,251,.94) 100%);
}
.hero-cta-inner { position: relative; z-index: 1; }
.hero-cta-title {
  color: var(--navy); text-align: center; line-height: 1.4;
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  margin: 0 auto 1.15em; text-shadow: 0 1px 3px rgba(255,255,255,.75);
}
/* 明るい写真背景でも読めるよう、5ボタンは実色＋影で立たせる（.hero-actions は案内セクション専用） */
.btn--hero {
  background: #fff; color: var(--navy);
  border: 1.5px solid #b7d0ea; box-shadow: 0 3px 12px rgba(13,33,71,.14);
}
.btn--hero:hover, .btn--hero:focus-visible { background: var(--navy); color: #fff; border-color: var(--navy); }
/* 最重要CTA（緑・強調） */
.btn--hero-cta {
  background: linear-gradient(135deg, #1e8449, #27ae60); color: #fff;
  border: none; box-shadow: 0 6px 18px rgba(39,174,96,.42); font-weight: 800;
}
.btn--hero-cta:hover, .btn--hero-cta:focus-visible { background: linear-gradient(135deg, #196f3d, #219150); color: #fff; }
/* 相談ボタン（濃紺） */
.btn--hero-ghost { background: var(--navy); color: #fff; border: none; box-shadow: 0 3px 12px rgba(13,33,71,.22); }
.btn--hero-ghost:hover, .btn--hero-ghost:focus-visible { background: #12305e; color: #fff; }
/* SPは縦長トリミングの背景に切り替え、人物の手・スマホが見切れすぎないようにする */
@media (max-width: 600px) {
  .hero-cta-section { background-image: url("../images/cta-family-sp.jpg"); background-position: center 58%; }
}

/* ── スライダー操作UI（JS有効時=hero--ready のみ表示 z3）── */
/* 前後矢印・ドット・停止ボタンをすべて下部の1行にまとめ、商品カードや文字に重ねない。
   タップ領域は各44×44px。画面下端には安全な余白を取る。 */
.hero-nav, .hero-controls { display: none; }
.hero--ready .hero-controls {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  position: absolute; left: 0; right: 0; bottom: clamp(16px, 3.2vh, 28px);
  z-index: 3; padding: 0 12px;
}
.hero--ready .hero-nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; padding: 0; flex: 0 0 auto;
  background: rgba(6,17,40,.46); color: #fff; border: 1px solid rgba(255,255,255,.5);
  font-size: 1.9rem; line-height: 1; cursor: pointer;
}
.hero-nav:hover { background: rgba(6,17,40,.76); }
.hero-nav:focus-visible, .hero-playpause:focus-visible, .hero-dot:focus-visible {
  outline: 2px solid #6dd5fa; outline-offset: 2px;
}
.hero-dots { display: flex; gap: 9px; justify-content: center; align-items: center; }
.hero-dot {
  width: 11px; height: 11px; border-radius: 50%; padding: 0;
  background: rgba(255,255,255,.5); border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-dot.is-active { background: #fff; transform: scale(1.25); }
/* 一時停止／再開ボタン（44×44、アイコンで状態が分かる） */
.hero-playpause {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; padding: 0; flex: 0 0 auto;
  background: rgba(6,17,40,.46); color: #fff; border: 1px solid rgba(255,255,255,.5);
  cursor: pointer;
}
.hero-playpause:hover { background: rgba(6,17,40,.76); }
.hero-playpause svg { width: 18px; height: 18px; display: block; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-dot  { transition: none; }
}

/* ── Benefit cards ── */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.benefit-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; text-align: center;
}
.benefit-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.benefit-icon--blue   { background: var(--light-blue); }
.benefit-icon--green  { background: #d5f5e3; }
.benefit-icon--orange { background: #fdebd0; }
.benefit-icon--purple { background: #e8d5f5; }
/* 画像アイコン（カード全幅ヘッダー型） */
.benefit-icon-img {
  width: calc(100% + 56px); height: 160px;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -28px -28px 20px;
  overflow: hidden;
}
.benefit-icon-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* STEPカード画像アイコン */
.step-icon-img {
  width: calc(100% + 48px); height: 120px;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -24px -24px 14px;
  overflow: hidden;
}
.step-icon-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.benefit-card h3 { font-size: 1rem; margin-bottom: .5em; color: var(--navy); }
.benefit-card p  { font-size: .87rem; color: var(--gray); margin: 0; }

/* ── Stats row ── */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  text-align: center;
}
.stat-item .num { font-size: 2.8rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-item .unit { font-size: 1rem; color: #a0d8f0; }
.stat-item .label { font-size: .82rem; color: #a0d8f0; margin-top: .3em; }

/* ── Simulator ── */
.sim-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px;
  max-width: 760px; margin: 0 auto;
}
.sim-step { margin-bottom: 32px; }
.sim-step__label { font-size: .82rem; font-weight: 700; letter-spacing: .08em; color: var(--mid-blue); margin-bottom: 12px; }
.sim-step__label span { display: inline-block; background: var(--light-blue); color: var(--blue); border-radius: 50%; width: 24px; height: 24px; text-align: center; line-height: 24px; font-size: .75rem; margin-right: 8px; }

.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.model-btn {
  border: 2px solid #d0dce8; border-radius: 10px; padding: 18px;
  background: var(--white); cursor: pointer; text-align: center;
  transition: all var(--transition);
}
.model-btn:hover { border-color: var(--mid-blue); background: var(--sky); }
.model-btn.selected { border-color: var(--blue); background: var(--light-blue); }
.model-btn .model-name { font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.model-btn .model-sub  { font-size: .85rem; color: var(--gray); margin-top: 4px; }
.model-btn .model-cap  { font-size: .82rem; color: var(--mid-blue); margin-top: 6px; font-weight: 600; }

.person-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.person-btn {
  min-width: 56px; height: 56px; padding: 0 12px; border: 2px solid #d0dce8; border-radius: 10px;
  background: var(--white); cursor: pointer; font-weight: 700; font-size: 1rem;
  transition: all var(--transition); color: var(--navy); white-space: nowrap;
}
.person-btn:hover { border-color: var(--mid-blue); background: var(--sky); }
.person-btn.selected { border-color: var(--blue); background: var(--blue); color: var(--white); }

/* ── 検針結果 6回入力グリッド ── */
.meter-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px;
  margin-bottom: 12px;
}
.meter-field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.meter-field__input-wrap { display: flex; align-items: center; gap: 8px; }
.meter-input {
  flex: 1; min-width: 0; padding: 12px 14px; font-size: 1.05rem; font-weight: 700;
  border: 2px solid #c0d8f0; border-radius: 8px; background: var(--white);
  text-align: right; font-family: inherit; color: var(--navy);
}
.meter-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,79,138,.35); }
.meter-unit { font-weight: 700; color: var(--navy); font-size: .95rem; flex-shrink: 0; }
.meter-progress { font-size: .85rem; font-weight: 700; color: var(--mid-blue); margin-bottom: 4px; }
.meter-error {
  margin-top: 12px; padding: 12px 16px; border-radius: 8px;
  background: #fdf2f2; border-left: 4px solid #e74c3c; color: #c0392b; font-size: .88rem;
}

/* ── 比較差額 2カラム（購入 / 一般レンタル） ── */
.sim-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.sim-compare-block { background: rgba(255,255,255,.08); border-radius: 10px; padding: 16px 18px; }
.scb-title { font-size: .8rem; font-weight: 700; color: #a0d8f0; margin-bottom: 10px; }
.scb-row { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; padding: 4px 0; color: #e0eeff; }
.scb-row strong { color: #a0f0b0; font-size: .95rem; }

@media (max-width: 600px) {
  .meter-grid { grid-template-columns: 1fr; }
  .sim-compare-grid { grid-template-columns: 1fr; }
}
@media (orientation: landscape) and (max-width: 900px) {
  .meter-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── グラフ用キャンバス領域（SPでは凡例がある分だけ高さを確保する） ── */
.chart-canvas-wrap { position: relative; height: 280px; }
@media (max-width: 480px) {
  .chart-canvas-wrap { height: 340px; }
}

/* ── #chart-table: 濃紺カード内でも読みやすい配色に統一する ──
   全行を白／淡色の交互背景にし、本文文字は濃紺へ統一。ヘッダーのみ濃紺背景＋白文字。
   自社列(.highlight)は --blue（白背景比コントラスト比 約8.3:1）でWCAG AA/AAAを満たす。 */
#chart-table th {
  background: var(--navy);
  color: var(--white);
}
#chart-table td {
  background: var(--white);
  color: var(--dark);
}
#chart-table tr:nth-child(even) td {
  background: var(--sky);
}
#chart-table td:first-child {
  color: var(--navy);
}
#chart-table .highlight {
  color: var(--blue);
}
@media (max-width: 430px) {
  #chart-table th, #chart-table td {
    padding: 10px 8px;
    font-size: .82rem;
  }
}

/* ── 横スクロールに気づけるUI（#chart-tableの表） ──
   768px以下でヒント文を表示し、右端フェード・先頭列stickyで
   横に続くことを視覚的に示す。PC側は非表示。 */
.table-scroll-hint {
  display: none;
  text-align: center; font-size: .82rem; color: var(--note-on-dark);
  margin: 0 0 8px;
}
@media (max-width: 768px) {
  .table-scroll-hint { display: block; }
}
/* 白・グレー背景の表用（Large/XLarge料金表など）。文字色だけ切り替える。 */
.table-scroll-hint--light { color: var(--blue); }

/* 注意: position:absoluteの疑似要素で「右端フェード」を作ると、
   overflow-x:autoのスクロール量ぶんコンテンツと一緒に動いてしまい、
   本来の右端ではなく表の途中に白い帯として現れる不具合になるため、
   フェード演出は使わない。横に続くことは案内文＋先頭列stickyのみで示す。 */
.table-wrap--chart {
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.table-wrap--chart #chart-table th:first-child {
  position: sticky; left: 0; z-index: 2;
  background: var(--navy);
  border-right: 1px solid rgba(255,255,255,.3);
}
.table-wrap--chart #chart-table td:first-child {
  position: sticky; left: 0; z-index: 1;
  background: var(--white);
  border-right: 1px solid #c3d6e8;
}
.table-wrap--chart #chart-table tr:nth-child(even) td:first-child {
  background: var(--sky);
}

/* ── 横スクロールに気づけるUI（Large/XLarge料金表・大手比較表・UFB総合プラン表） ──
   .table-wrap--chart（シミュレーター専用・#chart-table前提）とは別に、
   通常の .price-table を含む任意の表ラッパーへ汎用的に適用できるバージョン。
   PC（769px以上）では表が横幅に収まるため先頭列を固定しない。
   768px以下でのみ、ヒント文とあわせて先頭列stickyを有効化する
   （右端フェードは上記と同じ理由で使わない）。 */
.table-wrap--scroll {
  position: relative;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  /* .price-table th は白背景表・濃紺背景表どちらでも常に紺色地のため、
     先頭列の境界線は常に白系（rgba白）にする。 */
  .table-wrap--scroll .price-table th:first-child {
    position: sticky; left: 0; z-index: 2;
    border-right: 1px solid rgba(255,255,255,.3);
  }
  .table-wrap--scroll .price-table td:first-child {
    position: sticky; left: 0; z-index: 1;
    background: var(--white);
    border-right: 1px solid #c3d6e8;
  }
  .table-wrap--scroll .price-table tr:nth-child(even) td:first-child {
    background: var(--sky);
  }
  /* 濃紺背景（大手比較表・UFB総合プラン表）では本文セルの地色と境界線を反転する。 */
  .section--navy .table-wrap--scroll .price-table td:first-child {
    background: var(--navy);
    border-right-color: rgba(255,255,255,.3);
  }
  .section--navy .table-wrap--scroll .price-table tr:nth-child(even) td:first-child {
    background: #1e3154;
  }
}

.sim-result {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white); border-radius: var(--radius); padding: 32px;
  display: none;
}
.sim-result.visible { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.result-item { background: rgba(255,255,255,.12); border-radius: 10px; padding: 16px; text-align: center; }
.result-item .r-label { font-size: .82rem; color: var(--note-on-dark); margin-bottom: 6px; }
.result-item .r-value { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.result-item .r-unit  { font-size: .85rem; color: var(--note-on-dark); margin-top: 2px; }
/* カートリッジ交換目安：主表示は他の結果金額（1.5rem）より少し小さく、
   「ごと」だけが次行へ落ちないよう改行させない。年数は小さな補足行に分離する。 */
.result-item .r-value--sm { font-size: 1.15rem; white-space: nowrap; }
.result-item .r-sub { font-size: .82rem; color: var(--note-on-dark); margin-top: 4px; font-weight: 400; }

.sim-compare {
  background: rgba(255,255,255,.08); border-radius: 10px; padding: 16px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.sim-compare .arrow { font-size: 1.5rem; color: #6dd5fa; }
.sim-diff { font-size: .9rem; color: #a0f0b0; font-weight: 600; }

/* ── Contact form ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-group label .req { color: #e74c3c; font-size: .8rem; margin-left: 4px; }
.form-control {
  display: block; width: 100%; padding: 12px 16px;
  border: 2px solid #d0dce8; border-radius: 8px;
  font-size: 1rem; font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white); color: var(--dark);
}
.form-control:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,79,138,.35);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: .9rem; }
.radio-label input { accent-color: var(--blue); width: 16px; height: 16px; }

/* お名前／フリガナ、メール／電話番号のような2項目を並べるための共通クラス。
   Contact Form 7 側のフォームHTMLでも再利用できる（600px以下で1列に落ちる）。 */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── Contact Form 7 表示スタイル ──
   バリデーション・送信中・成功・失敗・スパム判定のメッセージを
   既存デザイン（form-control/info-box等）に合わせて読みやすくする。 */
.cf7-wrap .wpcf7-form-control-wrap { display: block; margin-bottom: 20px; }
.cf7-wrap label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.cf7-wrap input[type="text"],
.cf7-wrap input[type="email"],
.cf7-wrap input[type="tel"],
.cf7-wrap input[type="number"],
.cf7-wrap select,
.cf7-wrap textarea {
  display: block; width: 100%; padding: 12px 16px;
  border: 2px solid #d0dce8; border-radius: 8px;
  font-size: 1rem; font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white); color: var(--dark);
}
.cf7-wrap input:focus, .cf7-wrap select:focus, .cf7-wrap textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,79,138,.35);
}
.cf7-wrap textarea { resize: vertical; min-height: 120px; }
.cf7-wrap input.wpcf7-not-valid,
.cf7-wrap textarea.wpcf7-not-valid {
  border-color: #e74c3c;
}
.cf7-wrap .wpcf7-not-valid-tip {
  color: #e74c3c; font-size: .82rem; margin-top: 4px; display: block;
}
.cf7-wrap .wpcf7-response-output {
  border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 20px 0;
  font-size: .92rem; border-left: 4px solid var(--mid-blue);
  background: var(--light-blue); color: var(--dark);
}
.cf7-wrap form.sent .wpcf7-response-output {
  background: #eafaf1; border-left-color: var(--green); color: var(--green-dark);
}
.cf7-wrap form.failed .wpcf7-response-output,
.cf7-wrap form.aborted .wpcf7-response-output,
.cf7-wrap form.spam .wpcf7-response-output,
.cf7-wrap form.invalid .wpcf7-response-output {
  background: #fdf2f2; border-left-color: #e74c3c; color: #c0392b;
}
.cf7-wrap .wpcf7-spinner {
  margin: 0 0 0 10px; vertical-align: middle;
}
.cf7-wrap .wpcf7-list-item { margin: 0 12px 6px 0; }
.cf7-wrap input[type="submit"] {
  display: inline-block; width: 100%;
  padding: 14px 32px; border-radius: 8px;
  font-weight: 700; font-size: 1.1rem; text-align: center;
  cursor: pointer; border: 2px solid transparent;
  background: var(--green); color: var(--white);
  transition: all var(--transition);
}
.cf7-wrap input[type="submit"]:hover { background: var(--green-dark); }
.cf7-wrap input[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }

/* ── Info boxes ── */
.info-box {
  background: var(--light-blue); border-left: 4px solid var(--mid-blue);
  border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 20px 0;
  font-size: .9rem;
}
.info-box--yellow { background: #fef9e7; border-left-color: #f39c12; }
.info-box--green  { background: #eafaf1; border-left-color: var(--green); }

/* シミュレーター結果（.sim-result）は color:white を指定しているため、
   内側の .info-box--green がそのまま白文字を継承してしまう。
   薄緑背景の上では十分に濃い色を明示し、太字部分も白にしない。 */
.discount-note, .discount-note strong { color: var(--navy); }
.discount-note__main { margin: 0 0 6px; font-size: .95rem; line-height: 1.7; }
.discount-note__sub  { margin: 0; font-size: .85rem; line-height: 1.6; }

/* ── Option cost list ──
   SPで長い項目名・数値があっても横スクロールを起こさないよう、
   flex-wrap と min-width:0 で自然な折り返しを許可する。 */
.option-list { list-style: none; }
.option-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid #e8f0f8;
  font-size: .92rem; gap: 4px 16px;
}
.option-list li:last-child { border-bottom: none; }
.option-list .opt-label { color: var(--dark); flex: 1 1 200px; min-width: 0; }
.option-list .opt-price {
  font-weight: 700; color: var(--blue);
  white-space: normal; word-break: break-word;
  text-align: right; flex: 0 1 auto; min-width: 0;
}

/* ── Feature detail sections ── */
.feature-sub { font-size: .88rem; color: var(--gray); font-style: italic; margin-bottom: 12px; }
.feature-list { list-style: none; }
.feature-list li { display: flex; gap: 10px; margin-bottom: 10px; font-size: .9rem; }
.feature-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── img-frame: Pexels画像 + オフラインフォールバック ──────────────
 * 使い方:
 *   <div class="img-frame">
 *     <img src="https://images.pexels.com/..." alt="..." loading="lazy">
 *     <div class="img-fallback" aria-hidden="true">
 *       <span class="ifb-icon">💧</span>
 *       <span class="ifb-text">説明</span>
 *     </div>
 *   </div>
 *
 * JS (main.js) が img の error イベントを拾い .img-fallback を表示。
 * WP移行時: img src を the_post_thumbnail_url() 等に差し替えるだけ。
 * ─────────────────────────────────────────────────────────────────── */
.img-frame {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: var(--light-blue); /* img ロード前の背景色 */
}
.img-frame img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: opacity .4s ease;
}
/* img が壊れたとき JS が .img-broken クラスを付与 */
.img-frame img.img-broken { display: none; }

/* フォールバック: 水波・グラデーションパターン（常に裏に待機） */
.img-fallback {
  display: none; /* JS が img-broken を付けると flex に切り替わる */
  position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  /* 水をイメージしたオフラインパターン */
  background:
    radial-gradient(ellipse at 20% 60%, rgba(41,128,185,.22) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 25%, rgba(109,213,250,.18) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 90%, rgba(13,33,71,.14) 0%, transparent 45%),
    linear-gradient(160deg, #d6eaf8 0%, #aed6f1 50%, #c8e6f8 100%);
  /* SVG 波線パターンをオーバーレイ */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='20' viewBox='0 0 100 20'%3E%3Cpath d='M0 10 Q25 0 50 10 Q75 20 100 10' stroke='rgba(41,128,185,0.12)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='20' viewBox='0 0 100 20'%3E%3Cpath d='M0 10 Q25 0 50 10 Q75 20 100 10' stroke='rgba(41,128,185,0.12)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 20% 60%, rgba(41,128,185,.22) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 25%, rgba(109,213,250,.18) 0%, transparent 50%),
    linear-gradient(160deg, #d6eaf8 0%, #aed6f1 50%, #c8e6f8 100%);
  background-size: 100px 20px, 100px 20px, auto, auto, auto;
  background-position: 0 40%, 0 65%, center, center, center;
  background-repeat: repeat-x, repeat-x, no-repeat, no-repeat, no-repeat;
}
/* img が読めないときだけフォールバックを表示 */
.img-frame img.img-broken ~ .img-fallback { display: flex; }

.ifb-icon { font-size: 2.8rem; opacity: .55; }
.ifb-text { font-size: .82rem; color: #5a8aaa; text-align: center; line-height: 1.5; }

/* 各サイズバリエーション */
.img-frame--sm   { min-height: 180px; }
.img-frame--md   { min-height: 260px; }
.img-frame--lg   { min-height: 340px; }
.img-frame--hero { min-height: 420px; border-radius: var(--radius); }

/* ── 旧 Placeholder image (後方互換) ── */
.img-placeholder {
  background: linear-gradient(135deg, var(--light-blue), #bde0f5);
  border-radius: var(--radius); display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--gray); font-size: .85rem; gap: 8px;
  min-height: 240px;
}
.img-placeholder .ph-icon { font-size: 3rem; opacity: .5; }

/* ── Before / After セクション ── */
.ba-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ba-card { text-align: center; }
/* 固定高さで画像サイズに依存しないよう統一 */
.ba-card .img-frame { height: 280px; min-height: unset; }
.ba-card .img-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ba-label {
  display: inline-block; font-size: .85rem; font-weight: 800;
  letter-spacing: .1em; padding: 6px 20px; border-radius: 999px; margin-top: 14px;
}
.ba-label--before { background: #fdebd0; color: #a04000; }
.ba-label--after  { background: #d5f5e3; color: #1e8449; }
.ba-caption { font-size: .82rem; color: var(--gray); margin-top: 6px; line-height: 1.5; }

/* ── 施工実績ギャラリー ── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img { display: block; width: 100%; height: 220px; object-fit: cover; object-position: center; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .gallery-cap { padding: 10px 14px; font-size: .82rem; color: var(--gray); background: var(--white); }

/* ── 決済サイクル・割引テーブル ── */
.payment-cycles {
  background: var(--sky); border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--light-blue);
}
.pc-header {
  background: var(--blue); color: var(--white); padding: 16px 24px;
  font-weight: 700; font-size: .95rem;
}
.pc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; border-bottom: 1px solid #d0e8f8; flex-wrap: wrap; gap: 8px;
}
.pc-row:last-child { border-bottom: none; }
.pc-row.pc-basic { background: #eaf4fb; }
.pc-label { font-weight: 600; font-size: .92rem; }
.pc-detail { font-size: .82rem; color: var(--gray); margin-top: 2px; }
.pc-discount {
  font-weight: 800; font-size: 1rem;
  padding: 4px 14px; border-radius: 999px;
}
.pc-discount--base   { background: var(--light-blue); color: var(--blue); }
.pc-discount--mid    { background: #d5f5e3; color: #1e8449; }
.pc-discount--best   { background: #27ae60; color: var(--white); }

/* ── 解約ルール ── */
.rules-list { display: flex; flex-direction: column; gap: 0; }
.rule-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px;
  border-left: 5px solid transparent; border-bottom: 1px solid #eee;
}
.rule-item:last-child { border-bottom: none; }
.rule-item--warn   { border-left-color: #e74c3c; background: #fdf2f2; }
.rule-item--mid    { border-left-color: #e67e22; background: #fef9f0; }
.rule-item--ok     { border-left-color: #27ae60; background: #f0faf4; }
.rule-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; color: var(--white);
}
.rule-item--warn .rule-num { background: #e74c3c; }
.rule-item--mid  .rule-num { background: #e67e22; }
.rule-item--ok   .rule-num { background: #27ae60; }
.rule-body h4 { font-size: .92rem; margin-bottom: 4px; }
.rule-body p  { font-size: .85rem; color: var(--gray); margin: 0; }
.rule-cost {
  margin-left: auto; flex-shrink: 0;
  font-size: 1rem; font-weight: 800; white-space: nowrap;
  padding-left: 12px;
}
.rule-item--warn .rule-cost { color: #c0392b; }
.rule-item--mid  .rule-cost { color: #a04000; }
.rule-item--ok   .rule-cost { color: #187a3d; }

@media (max-width: 600px) {
  .ba-wrap                { grid-template-columns: 1fr; }
  .gallery-grid           { grid-template-columns: 1fr; }
  .pc-row                 { flex-direction: column; align-items: flex-start; }
}

/* ── Footer ── */
.site-footer {
  background: #08152e; color: #8aabb8; font-size: .87rem;
}
.footer-top {
  padding: 52px 0 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .logo { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; color: #8aabb8; }
.footer-col h4 { color: var(--white); font-size: .92rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #8aabb8; font-size: .85rem; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-col .btn { color: var(--white); }
.footer-col .btn:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 0; text-align: center; font-size: .82rem; color: #5a7a8a;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  position: relative; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath d='M0,40 C360,72 720,8 1080,40 C1260,56 1380,24 1440,40 L1440,80 L0,80 Z' fill='rgba(255,255,255,.07)'/%3E%3Cpath d='M0,60 C240,36 600,78 900,50 C1100,32 1300,70 1440,60 L1440,80 L0,80 Z' fill='rgba(255,255,255,.05)'/%3E%3C/svg%3E") left bottom / 120% 80px no-repeat,
    radial-gradient(ellipse at 20% 60%, rgba(30,130,220,.30) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(0,80,180,.20) 0%, transparent 50%),
    linear-gradient(135deg, #0d2147, #1a4f8a);
  color: var(--white); padding: 60px 0 72px;
  animation: page-hero-wave 9s ease-in-out infinite alternate;
}
@keyframes page-hero-wave {
  from { background-position: left bottom, center, center, 0 0; }
  to   { background-position: -50px bottom, center, center, 0 0; }
}
/* page-hero テキスト入場アニメーション */
.page-hero .kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: #6dd5fa; opacity: 0;
  margin-bottom: .5em;
  animation: ph-slide-up .6s cubic-bezier(.22,1,.36,1) .1s forwards;
}
.page-hero h1 {
  color: var(--white); font-size: clamp(1.4rem, 3vw, 2rem); opacity: 0;
  animation: ph-slide-up .7s cubic-bezier(.22,1,.36,1) .25s forwards;
}
.page-hero p {
  color: #c0d8ef; margin: .5em 0 0; opacity: 0;
  animation: ph-slide-up .7s cubic-bezier(.22,1,.36,1) .4s forwards;
}
@keyframes ph-slide-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
/* page-hero 浮遊する光点 */
.page-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle 3px at 15% 35%, rgba(109,213,250,.6) 0%, transparent 100%),
    radial-gradient(circle 2px at 40% 70%, rgba(109,213,250,.4) 0%, transparent 100%),
    radial-gradient(circle 4px at 65% 25%, rgba(109,213,250,.5) 0%, transparent 100%),
    radial-gradient(circle 2px at 82% 60%, rgba(109,213,250,.4) 0%, transparent 100%),
    radial-gradient(circle 3px at 90% 80%, rgba(109,213,250,.3) 0%, transparent 100%);
  animation: light-float 6s ease-in-out infinite alternate;
}
@keyframes light-float {
  from { transform: translateY(0) translateX(0); }
  to   { transform: translateY(-12px) translateX(8px); }
}
.page-hero .container { position: relative; z-index: 1; }

/* ── Bubble page ── */
.bubble-highlight {
  background: linear-gradient(135deg, #0d2147, #1a4f8a, #2980b9);
  color: var(--white); border-radius: var(--radius); padding: 36px; text-align: center;
}
.bubble-highlight .big-price { font-size: 3rem; font-weight: 800; line-height: 1; }
.bubble-highlight .big-price sup { font-size: 1.2rem; vertical-align: super; }
.bubble-highlight .big-price sub { font-size: 1.2rem; }
.torneo-badge {
  display: inline-block; background: linear-gradient(90deg, #2980b9, #6dd5fa);
  color: var(--white); padding: 6px 20px; border-radius: 999px;
  font-weight: 700; font-size: .85rem; letter-spacing: .08em; margin-bottom: 1em;
}

/* ── Price breakdown table (bubble page) ── */
.price-breakdown {
  border: 1px solid #d0dce8; border-radius: 8px; overflow: hidden;
}
.price-breakdown-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; gap: 12px;
  border-bottom: 1px solid #d0dce8;
}
.price-breakdown-row:last-child { border-bottom: none; }
.price-breakdown .pl {
  font-size: .88rem; color: #1a2a40; font-weight: 600; flex: 1; line-height: 1.5;
}
.price-breakdown .pl small { font-weight: 400; font-size: .85rem; }
.price-breakdown .pr {
  font-size: 1.05rem; font-weight: 700; text-align: right; white-space: nowrap; color: #1a2a40;
}
.price-breakdown .pr small { font-size: .78em; font-weight: 400; }

/* メーカー希望販売価格の行だけ、見出し・金額・補足を独立した要素にする。
   .pr（nowrap）が横幅を圧迫し、補足キャプションが1〜2文字ずつ折り返される
   問題を避けるため、価格欄の横へ押し込まず補足を専用の全幅行にする。 */
.price-breakdown-row--maker { display: block; }
.price-breakdown-row--maker .pbr-top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap;
}
.price-breakdown-row--maker .pbr-head { font-size: .88rem; color: #1a2a40; font-weight: 600; }
.price-breakdown-row--maker .pbr-amount { font-size: 1.05rem; font-weight: 700; color: #1a2a40; }
.price-breakdown-row--maker .pbr-note {
  margin: 6px 0 0; font-size: .85rem; color: var(--gray); line-height: 1.6;
}
@media (max-width: 400px) {
  .price-breakdown-row--maker .pbr-top { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ── UFB feature cards (with image support) ── */
.ufb-feat-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  border-top: 3px solid var(--mid-blue);
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ufb-feat-card:hover {
  transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.ufb-feat-img { width: 100%; height: 168px; overflow: hidden; }
.ufb-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ufb-feat-icon {
  padding: 22px 22px 0; font-size: 2.6rem; line-height: 1;
}
.ufb-feat-body { padding: 14px 22px 22px; flex: 1; }
.ufb-feat-title { font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.ufb-feat-desc  { font-size: .86rem; color: var(--gray); margin: 0; line-height: 1.65; }

/* ── About page hero ── */
.about-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(140deg, #06132e 0%, #0d2147 45%, #1a4f8a 85%, #1e6ba8 100%);
  padding: 80px 0 0;
}
.about-hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 640px 420px at 72% 42%, rgba(41,128,185,.28) 0%, transparent 65%),
    radial-gradient(ellipse 280px 180px at 8% 80%,  rgba(109,213,250,.14) 0%, transparent 60%);
}
.about-hero__inner {
  display: grid; grid-template-columns: 1fr 220px; gap: 40px;
  align-items: center; padding-bottom: 56px;
  position: relative; z-index: 1;
}
.about-hero__kicker {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .15em;
  color: #6dd5fa; margin-bottom: 14px;
  animation: ph-slide-up .6s cubic-bezier(.22,1,.36,1) .1s both;
}
.about-hero__title {
  font-size: clamp(1.55rem, 3.2vw, 2.4rem); line-height: 1.35;
  color: #fff; margin: 0 0 20px; font-style: normal;
  animation: ph-slide-up .7s cubic-bezier(.22,1,.36,1) .25s both;
}
.about-hero__accent { font-style: normal; color: #6dd5fa; }
.about-hero__lead {
  color: #c0d8ef; line-height: 1.85; max-width: 480px;
  animation: ph-slide-up .7s cubic-bezier(.22,1,.36,1) .4s both;
}
/* デコリング */
.about-hero__deco {
  position: relative; width: 200px; height: 200px; flex-shrink: 0;
}
.about-hero__ring {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.about-hero__ring--1 { width: 72px;  height: 72px;  border: 2px solid rgba(109,213,250,.6); }
.about-hero__ring--2 { width: 136px; height: 136px; border: 1px solid rgba(109,213,250,.3); animation: ring-pulse 3.2s ease-in-out infinite; }
.about-hero__ring--3 { width: 198px; height: 198px; border: 1px solid rgba(109,213,250,.14); animation: ring-pulse 3.2s ease-in-out .9s infinite; }
.about-hero__drop {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -54%); font-size: 3rem; line-height: 1;
}
@keyframes ring-pulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  50%       { transform: translate(-50%,-50%) scale(1.07); opacity: .65; }
}
/* スタッツバー */
.about-hero__stats {
  position: relative; z-index: 1;
  display: flex; border-top: 1px solid rgba(255,255,255,.14); padding: 24px 0;
}
.about-hero__stat { flex: 1; text-align: center; padding: 0 12px; }
.about-hero__stat-num { font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1.1; }
.about-hero__stat-num span { font-size: .82rem; font-weight: 500; color: #6dd5fa; margin-left: 2px; }
.about-hero__stat-label { font-size: .74rem; color: #a0c8e0; margin-top: 5px; line-height: 1.4; }
.about-hero__stat-sep { width: 1px; background: rgba(255,255,255,.16); flex-shrink: 0; margin: 2px 0; }
@media (max-width: 768px) {
  .about-hero__deco { display: none; }
  .about-hero__inner { grid-template-columns: 1fr; }
  .about-hero__stat-num { font-size: 1.3rem; }
  .about-hero__stat-label { font-size: .68rem; }
}

/* ── About page ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-navy   { color: var(--navy); }
.text-blue   { color: var(--blue); }
.text-green  { color: var(--green-dark); }
.text-gray   { color: var(--gray); }
.text-white  { color: var(--white); }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.fw-bold { font-weight: 700; }
.d-flex { display: flex; }
.gap-3  { gap: 12px; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

/* ── Responsive ── */
/* ヘッダーナビは8項目（UFB含む）あるため、900pxではなく1080pxでハンバーガーへ
   切り替える。1024px幅でも項目が詰まったり折り返したりしないようにする。 */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .compare-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .sim-card { padding: 24px 16px; }
  .result-grid { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }

  /* ── FV SP調整（スライダー・コピーは上下中央のまま） ── */
  .hero {
    min-height: min(88svh, 720px);
    padding: clamp(40px, 7vh, 64px) 12px clamp(64px, 11vh, 90px);
  }
  .hero-inner { padding: 0; }
  .hero h1 { font-size: clamp(1.4rem, 6.6vw, 2rem); }
  /* SP用の縦長トリミング画像は中央固定でよい（PC用インライン object-position を上書き） */
  .hero-slide--photo .hero-slide-img { object-position: 50% 50% !important; }
  /* 商品カード（1枚目）: SPは Large / XLarge を2列、横長のウルトラバブル発生器を
     次の段に2列分の幅で。3点すべてを最初から（スライド操作なしで）確認できる。 */
  .hero-products {
    flex-wrap: wrap; gap: 8px; margin: 0 auto clamp(16px, 2.6vh, 26px); padding: 0 4px;
  }
  .hero-product-card { flex: 1 1 44%; padding: 10px 8px; border-radius: 12px; }
  .hero-product-card:nth-child(3) {
    flex-basis: 100%;
    flex-direction: row; align-items: center; justify-content: center; gap: 12px;
  }
  .hero-product-card img { height: clamp(84px, 24vw, 128px); }
  .hero-product-card:nth-child(3) img { width: auto; max-width: 55%; height: clamp(56px, 15vw, 84px); }
  .hero-product-card:nth-child(3) figcaption { margin-top: 0; text-align: left; }
  .hpc-plan { font-size: .66rem; }
  .hpc-name { font-size: .74rem; }
  /* 5ボタン: SPは全幅1列で押しやすく。長い「ウルトラバブル発生器」も1行に収める */
  .hero-actions { gap: 9px; }
  .hero-actions__row { gap: 9px; }
  .hero-actions__row--info .btn { flex: 1 1 100%; max-width: none; padding: 13px 12px; font-size: .92rem; }
  .hero-actions__row--cta  .btn { flex: 1 1 100%; max-width: none; padding: 14px 12px; font-size: .95rem; }
  /* 操作UI（矢印・ドット・停止）は下部1行のまま。各44×44を維持し、下端に余白を取る */
  .hero--ready .hero-controls { gap: 10px; bottom: clamp(14px, 2.6vh, 22px); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .benefit-icon-img { width: calc(100% + 48px); margin: -24px -24px 16px; height: 140px; }
  .step-icon-img { height: 100px; }

}


/* ════════════════════════════════════════════════════════════
   水の演出 / スクロールアニメーション
   ════════════════════════════════════════════════════════════ */

/* ── スクロール出現 ─────────────────────────────────── */
.js-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.js-reveal.is-visible { opacity: 1; transform: none; }

/* ── ウェーブ区切り ──────────────────────────────────── */
.wave-sep {
  display: block;
  line-height: 0; font-size: 0;
  overflow: hidden;
  margin: -1px 0;   /* 前後セクションとの1px隙間を潰す */
}
.wave-sep svg { display: block; width: 100%; height: 56px; }

/* ── 浮かぶ水泡 ─────────────────────────────────────── */
.bubble-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bubble-field span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  animation: bubble-rise var(--dur, 6s) infinite ease-in var(--delay, 0s);
}
@keyframes bubble-rise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  15%  { opacity: .8; }
  100% { transform: translateY(-200px) scale(1.5); opacity: 0; }
}

/* ── navy section：シンプルに統一（wave-sep と色を合わせる） */
.section--navy {
  position: relative; overflow: hidden;
  background: var(--navy);
}
.section--navy > * { position: relative; z-index: 1; }

/* ── section--gray / sky：波は wave-sep に任せてシンプルに */
.section--gray { background: var(--gray-light); }
.section--sky  { background: var(--sky); }

/* ── ボタンリップル（タップ時の波紋） ────────────────── */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transform: scale(0);
  animation: ripple-expand .55s linear;
  pointer-events: none;
}
@keyframes ripple-expand {
  to { transform: scale(4); opacity: 0; }
}

/* ── section-head 水滴ドロップ装飾 ──────────────────── */
.section-head { position: relative; }
/* 水滴シェイプ：スクロールで現れてポトリと落ちる */
.section-head::before {
  content: '';
  display: block;
  width: 13px; height: 18px;
  background: linear-gradient(165deg, #5dccec 15%, #1a5fc4 100%);
  border-radius: 50% 50% 50% 50% / 35% 35% 65% 65%;
  margin: 0 auto 18px;
  opacity: 0;
  transform: translateY(-22px) scale(.4);
  filter: drop-shadow(0 4px 10px rgba(26,95,196,.55));
  transition: none;
}
.section-head.is-visible::before {
  animation:
    drop-fall .65s cubic-bezier(.34,1.56,.64,1) .15s both,
    drop-glow 2.8s ease-in-out 1s infinite alternate;
}
@keyframes drop-fall {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes drop-glow {
  from { filter: drop-shadow(0 4px 10px rgba(26,95,196,.5)); }
  to   { filter: drop-shadow(0 4px 20px rgba(93,204,236,.95)); }
}

/* kicker ラベルの水紋アニメーション */
.section-head .kicker { position: relative; display: inline-block; }
.section-head .kicker::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(.7);
  width: calc(100% + 24px); height: calc(100% + 12px);
  border: 1.5px solid rgba(26,95,196,.5);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
}
.section-head.is-visible .kicker::after {
  animation: kicker-ripple 1.4s ease-out .6s forwards;
}
@keyframes kicker-ripple {
  0%   { transform: translate(-50%,-50%) scale(.7); opacity: .8; }
  100% { transform: translate(-50%,-50%) scale(1.6); opacity: 0; }
}

/* ── hero の z-index 明示（bubble-field との兼ね合い） ── */
.hero .hero-inner { position: relative; z-index: 2; }

/* ══ セントラル浄水器とは ページ (page-what-is.php) ══════ */

/* 価格グリッド */
.wi-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px; max-width: 1080px; margin: 0 auto 20px;
}
.wi-price-card {
  border-radius: var(--radius); padding: 20px;
  text-align: center; box-shadow: var(--shadow);
  min-width: 0;
}
.wi-price-card--ours   { background: #fff; border: 2px solid var(--primary); }
.wi-price-card--yearly { background: #f0f7ff; border: 2px solid #5dccec; }
.wi-price-card--other  { background: #fff8f8; border: 2px solid #e74c3c; }
.wi-price-plan  { font-size: .85rem; font-weight: 700; color: var(--gray); margin-bottom: 6px; }
.wi-price-amount { font-size: 2rem; font-weight: 900; color: var(--navy); line-height: 1.1; }
.wi-price-amount span { font-size: .9rem; font-weight: 400; }
.wi-price-amount--other { color: #c0392b; }
/* 範囲表記（例: 4,000〜5,000円／月）は桁が長い。カード幅を超えさせず
   overflow:hidden で隠しもしない。最大文字サイズを抑え、幅が足りない場合は
   「円／月」を自然に2行目へ折り返す（white-space:normal）。「円／月」だけは
   専用span で縮小し、単位内での改行は防ぐ（span は nowrap）。 */
.wi-price-amount--range { font-size: clamp(1.15rem, 2vw, 1.35rem); white-space: normal; line-height: 1.2; }
.wi-price-amount--range span { white-space: nowrap; font-size: .78rem; }
/* 4列 → 1024px前後は2列×2段 → 600px以下は1列。各段でカード高さ・余白は揃う。 */
@media (max-width: 1100px) {
  .wi-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
}
@media (max-width: 600px) {
  .wi-price-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* 料金カード下の案内＋料金シミュレーターCTA（PDF②-2準拠）。料金カードとの間隔を確保。 */
.price-sim-cta { margin-top: 30px; }
.price-sim-cta__lead { font-size: .98rem; color: var(--dark); font-weight: 600; margin: 0 0 14px; }
.wi-price-amount--yearly { font-size: 1.2rem; line-height: 1.5; }
.wi-price-tbd { font-size: .9rem; color: var(--gray); }
.wi-price-note  { font-size: .82rem; color: var(--gray); margin-top: 4px; }
.wi-ufb-note {
  text-align: center; background: #e8f4fb;
  border: 1px solid #5dccec; border-radius: 999px;
  display: inline-block; padding: 8px 28px;
  font-size: .9rem; margin: 8px auto 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  max-width: 480px;
}

/* 家イラスト */
.wi-house-wrap { max-width: 860px; margin: 0 auto; }
.wi-house-img { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.wi-house-img img { display: block; width: 100%; }

/* 導入部の補助動画（旧TOP水滴動画の移設先）— 本文を邪魔しない補助ビジュアル */
/* 水面動画は家の画像と同じ横幅（860px）まで拡大。高さ制限で不自然に切らず、
   動画本来の比率で表示する。PC/SPとも横スクロールを起こさない（width:100%）。 */
.wi-intro-video { max-width: 860px; width: 100%; margin: 26px auto 0; text-align: center; }
.wi-video {
  width: 100%; height: auto; object-fit: contain;
  border-radius: var(--radius); box-shadow: var(--shadow); display: block;
}
.wi-video-cap { font-size: .9rem; color: var(--dark); font-weight: 600; margin-top: 10px; }

/* 会社概要の住所（2行構成の32bit透過PNG）。生テキストは持たず alt="所在地"。
   固定高さは設けず、幅基準（PC 200px目安）で表示。セル幅が幅指定より狭い場合だけ
   max-width:100% で縮小し、縦横比を維持する。他の表本文と近い文字サイズに見せる。 */
.about-address-img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
/* 住所行は他の会社概要項目と同じ2列（th/td）形式を維持する（block化しない） */
.about-address-row th { white-space: nowrap; vertical-align: middle; }
.about-address-row td { min-width: 0; vertical-align: middle; }
@media (max-width: 600px) {
  .about-address-row th { width: 34%; }
  .about-address-row td { width: 66%; }
  .about-address-img { width: 180px; max-width: 100%; }
}
.wi-house-label {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  background: rgba(26,79,138,.88); color: #fff;
  padding: 10px 18px; border-radius: 8px;
  font-size: .9rem; font-weight: 700; letter-spacing: .05em;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  backdrop-filter: blur(4px);
}

/* KAITEKI テキスト */
.wi-kaiteki-text {
  max-width: 720px; margin: 0 auto; text-align: center;
}
.wi-kaiteki-text p { font-size: 1rem; line-height: 1.85; color: var(--dark); margin-bottom: .6em; }

/* 水道水・PFAS */
.wi-water-wrap { max-width: 900px; margin: 0 auto; }
.wi-pfas-note {
  background: #fff5f5; border: 2px solid #e74c3c;
  border-radius: var(--radius); padding: 16px 24px;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .92rem; line-height: 1.7;
}
.wi-pfas-badge {
  background: #e74c3c; color: #fff;
  border-radius: 999px; padding: 2px 12px; font-size: .8rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0; margin-top: 2px;
}
.wi-pfas-note em { color: #c0392b; font-style: normal; font-weight: 700; }

/* ユニバーサルデザイン */
.wi-universal-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; max-width: 960px; margin: 0 auto;
}
@media (max-width: 768px) { .wi-universal-wrap { grid-template-columns: 1fr; } }
.wi-universal-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.wi-universal-img img { display: block; width: 100%; height: 360px; object-fit: cover; }
.wi-universal-body h2 { margin-bottom: .4em; }
.wi-universal-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.wi-universal-list li { font-size: .95rem; font-weight: 600; color: var(--navy); }

/* 3カラム（水の使われ方・ゼロシステム） */
.wi-threecol {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  max-width: 900px; margin: 0 auto;
}
@media (max-width: 768px) { .wi-threecol { grid-template-columns: 1fr; } }
.wi-threecol-item { text-align: center; }
.wi-threecol-item img {
  display: block; width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 20px;
}
.wi-threecol-item h3 { color: var(--navy); margin-bottom: .4em; }
.wi-threecol-item p { font-size: .9rem; color: var(--dark); text-align: left; }

/* ══ 会社概要 4要素グリッド ══════════════════════════════ */
.about-4grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-4grid { grid-template-columns: 1fr; }
  /* SPでは「サービスについて → 考え方 → 会社概要 → 代表者」の順に並べ替える。
     ヒーロー直後に説明なしで社長写真が出ないようにする。 */
  .about-4grid-service    { order: 1; }
  .about-4grid-philosophy { order: 2; }
  .about-4grid-table      { order: 3; }
  .about-4grid-photo      { order: 4; }
}

.about-president-img {
  display: block; width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); object-fit: cover; object-position: top;
  max-height: 440px;
}
.about-president-frame { min-height: 320px; }
.about-photo-caption {
  text-align: center; font-size: .82rem; color: var(--gray);
  margin-top: 8px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
/* rep-name.png はテキスト周囲の余白を最小限にトリミング済み（比率 約2.94:1）。
   可読性のため、PCは20px前後・SPは18px前後の表示高を確保する。 */
.rep-name-img { height: 20px; width: auto; object-fit: contain; display: inline-block; }
/* SPでは社長写真を縮小し、余白を詰める。
   同じ詳細度(0,1,0)の基本ルールより後ろに置くことで確実に適用する。 */
@media (max-width: 600px) {
  .about-4grid-photo { max-width: 240px; width: 100%; margin: 0 auto; }
  .about-president-frame { min-height: 0; }
  .about-president-img {
    max-height: 260px; margin: 0 auto;
    object-fit: cover; object-position: top;
  }
  .about-photo-caption { margin-top: 6px; }
  .rep-name-img { height: 18px; }
}
.about-cell-head { margin-bottom: 20px; }
.about-cell-head h2 { margin-bottom: 0; }

.about-service-block { margin-bottom: 1.4em; }
.about-service-block h4 { color: var(--navy); font-size: .95rem; margin-bottom: 6px; border-left: 3px solid var(--blue); padding-left: 8px; }
.about-service-block p { font-size: .88rem; color: var(--dark); line-height: 1.75; margin-bottom: .4em; }
.about-service-block strong { color: var(--navy); }

.about-4grid-philosophy p { font-size: .92rem; line-height: 1.9; color: var(--dark); margin-bottom: .9em; }

/* ══ 会社概要 社長写真セクション ═══════════════════════════ */
.about-president-wrap {
  display: grid; grid-template-columns: 260px 1fr; gap: 48px;
  align-items: start; max-width: 960px; margin: 0 auto;
}
.about-president-wrap--no-photo { grid-template-columns: 1fr; }
@media (max-width: 768px) { .about-president-wrap { grid-template-columns: 1fr; } }
.about-president-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-president-photo img { display: block; width: 100%; object-fit: cover; object-position: top; }
.about-president-text p { line-height: 1.9; color: var(--dark); margin-bottom: 1em; font-size: .95rem; }

/* ══ 商品紹介ページ (page-products.php / page-sh3000.php) ═══
   grid-template-areas で「見出し→画像→本文→価格→CTA」の順序を
   デスクトップ・スマートフォンの両方で保証する。
   DOMの複製やdirection:rtlの疑似反転は使わない（同一DOMのまま
   グリッド上の配置だけを切り替える）。
   ═════════════════════════════════════════════════════════ */
.product-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "img     heading"
    "img     detail"
    "img     price"
    "img     cta";
  column-gap: 56px; row-gap: 12px;
  align-items: start; max-width: 1000px; margin: 0 auto;
}
.product-wrap--reverse {
  grid-template-areas:
    "heading img"
    "detail  img"
    "price   img"
    "cta     img";
}
.product-heading  { grid-area: heading; align-self: start; }
.product-img-col  { grid-area: img; border-radius: var(--radius); overflow: hidden; align-self: start; }
.product-detail   { grid-area: detail; }
.product-price-row{ grid-area: price; }
.product-cta      { grid-area: cta; }

@media (max-width: 768px) {
  .product-wrap, .product-wrap--reverse {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "img"
      "detail"
      "price"
      "cta";
  }
}
.product-title { font-size: 1.8rem; color: var(--navy); margin: .3em 0 .5em; line-height: 1.2; }
.product-model { font-size: 1.1rem; font-weight: 700; color: var(--blue); letter-spacing: .08em; }
.product-lead { font-size: 1rem; color: var(--dark); margin-bottom: 1em; }
.product-feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.4em; }
.product-feature-list li::before { content: "✓ "; color: var(--blue); font-weight: 700; }
.product-feature-list li { font-size: .93rem; color: var(--dark); }
/* 商品価格カード：2列固定グリッド。ラベルの無い「月額」カードだけ
   1段目を横幅いっぱいに使い、その下の2枚（メーカー価格／カートリッジ価格）は
   同じ高さ・同じ横幅の2列になる（Gridの同一行アイテムはデフォルトで高さが揃う）。
   PHP側に専用クラスを追加せず、既存の .product-price-val--lead を目印に
   :has() で親カードを判定する（対応ブラウザでのみ全幅化、非対応でも崩れない）。
   ラベルの無いカードが無い場合（UFBの2項目）は、そのまま2列均等になる。 */
.product-price-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-top: 8px; width: 100%;
}
.product-price-item--lead { grid-column: 1 / -1; }
.product-price-item {
  background: var(--sky); border-radius: 10px; padding: 14px 18px;
  min-width: 0; display: flex; flex-direction: column; justify-content: center;
}

/* ── 当社レンタル（大・水色枠）／メーカー購入時（小・別色枠）を明確に分ける ──
   専用クラスに限定し、他ページの一般カードへは影響させない。 */
.product-price-groups { grid-area: price; display: flex; flex-direction: column; gap: 14px; width: 100%; min-width: 0; }
.product-price-group { border-radius: 14px; padding: 16px 18px; min-width: 0; }
.product-price-group__head { font-weight: 800; margin-bottom: 12px; }
.product-price-group__items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; min-width: 0; }
/* 769〜1100px は商品紹介が左右2列のままで価格カード列が狭く、金額とラベルが窮屈に
   なるため、この幅だけ価格項目を1列にする（601〜768pxは商品セクションが全幅になり
   2列で収まるので維持、600px以下は下部の一括指定で1列）。 */
@media (min-width: 769px) and (max-width: 1100px) {
  .product-price-group__items { grid-template-columns: 1fr; }
}
.product-price-group--rental { background: #e9f4fc; border: 1.5px solid #c5e1f6; }
.product-price-group--rental .product-price-group__head { color: #1a6fb5; font-size: 1.05rem; }
.product-price-group--rental .product-price-item { background: #fff; }
/* メーカー側は当社レンタルより小さめ・別背景（ベージュ） */
.product-price-group--maker { background: #f6f1e8; border: 1px solid #e6dcc7; }
/* 背景#f6f1e8とのコントラスト比を確保（#755c22 ≈ 5.64:1）。小さく見せる設計は
   font-size:.82remで維持しつつ、可読性を優先して見出し色を濃くする。 */
.product-price-group--maker .product-price-group__head { color: #755c22; font-size: .82rem; }
.product-price-group--maker .product-price-item { background: #fbf8f2; padding: 12px 14px; }
.product-price-group--maker .product-price-label { font-size: .78rem; }
.product-price-group--maker .price-tax-main { font-size: .95rem; }
.product-price-group--maker .price-tax-sub  { font-size: .76rem; }
/* ウルトラバブル発生器: 同時設置(A)／単独設置(B)のサブグループ */
.product-price-sub + .product-price-sub { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #bcdcf3; }
.product-price-sub__head { font-weight: 700; font-size: .88rem; color: var(--navy); margin-bottom: 8px; }
.product-price-note { font-size: .8rem; color: #5b6570; line-height: 1.7; margin: 12px 0 0; }
.product-price-label {
  font-size: .85rem; color: var(--gray); margin-bottom: 4px; font-weight: 600;
  line-height: 1.4;
}
.product-price-val {
  font-size: 1.1rem; font-weight: 800; color: var(--navy); line-height: 1.4;
  overflow-wrap: break-word;
}
/* ── 価格の「税込（主）＋税別（補足）」共通表示（全ページ共通・helpers.php csj_price_pair）──
   1段目=税込を大きく太字、2段目=税別を一段小さい補足色。金額の前に「税込／税別」を置く。
   親要素のインライン font-size で変動しないよう主・補足へ固定サイズを与える。
   390px でも横スクロールせず金額が語中で改行しないよう nowrap。数字は等幅で桁を揃える。
   税込・税別の左端を揃える（ペア内部は左揃え、右寄せが必要な欄は外側コンテナで右寄せ）。 */
.price-tax-pair {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  gap: 3px; line-height: 1.25; vertical-align: top; text-align: left;
  font-variant-numeric: tabular-nums;
}
.price-tax-main,
.price-tax-sub { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.price-tax-main { font-size: 1.05rem; font-weight: 800; color: var(--navy); }        /* ≥16px */
.price-tax-sub  { font-size: .8125rem; font-weight: 600; color: #6b7683; }            /* ≥13px */
.price-tax-pair--lead .price-tax-main { font-size: clamp(1.25rem, 4.6vw, 1.35rem); } /* 月額主価格を強調 */
.price-tax-pair--lead .price-tax-sub  { font-size: .9rem; }
.price-tax-pair--single { gap: 0; }
.price-tax-amount { white-space: nowrap; }
/* 「税込／税別」ラベル: 2文字で同幅のため金額の開始位置が上下で揃う */
.price-tax-kind {
  flex: 0 0 auto; font-size: .68em; font-weight: 700; letter-spacing: .04em;
  padding: 1px 6px; border-radius: 4px;
}
.price-tax-main .price-tax-kind { background: #e4f1fc; color: #1a6fb5; }
.price-tax-sub  .price-tax-kind { background: #eef1f5; color: #6b7683; }
/* 右側に置く価格欄は外側コンテナで右寄せ（ペア内部は左揃えのまま） */
.price-breakdown .pr { text-align: right; }
.option-list .opt-price { text-align: right; }
@media (max-width: 600px) {
  .product-price-row { grid-template-columns: 1fr; }
  .product-price-group__items { grid-template-columns: 1fr; }
}
/* SH-1000などの縦長・透過商品画像を、色背景を付けず contain で自然に表示する枠 */
.img-frame--plain { background: transparent !important; }
.img-frame--plain img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* 商品画像は縦横比を保ちトリミングしすぎない（contain）。
   CSSで背景色を足さない（元画像自体の背景と二重にならないようにする）。
   width:auto/height:auto + max-width/max-height で自然な等比縮小・中央配置にする。 */
.product-img-col .img-frame img,
.product-img-col > img {
  display: block;
  width: auto; height: auto;
  max-width: 100%; max-height: 380px;
  margin: 0 auto;
  object-fit: contain;
  background: none;
}
@media (max-width: 600px) {
  .product-img-col .img-frame img,
  .product-img-col > img { max-height: 220px; }
}

/* 商品紹介ページの画像枠（Large/XL/ウルトラバブル発生器いずれも）を白背景にする。
   共通 .img-frame の background:var(--light-blue) は他ページで使われているため
   削除せず、.product-img-col 配下の .img-frame だけ白背景に上書きする。
   ウルトラバブル発生器のように img-frame--md 等、--productクラス無しの枠にも効かせる。 */
.product-img-col .img-frame {
  background: #fff;
}

/* 商品カード専用の画像フレーム。
   ACF画像が未設定の場合のフォールバック表示のみ最低限の高さを確保し、
   実画像が入った場合は img 自身のサイズに枠を合わせる（余分な余白箱を作らない）。 */
.img-frame--product {
  min-height: 160px;
}
@media (max-width: 600px) {
  .img-frame--product { min-height: 120px; }
}

/* グリッド子要素の内容がはみ出さないよう、product-wrap 内の全アイテムに適用 */
.product-heading, .product-img-col, .product-detail,
.product-price-row, .product-cta { min-width: 0; }

/* 商品CTAはSPで縦並び・横幅100%にする（グローバルな .d-flex/.flex-wrap 自体は変更しない）。 */
@media (max-width: 480px) {
  .product-cta .d-flex { flex-direction: column; align-items: stretch; }
  .product-cta .btn { width: 100%; }
}

/* ══ SH-3000ページ：5つの特徴（転載元の縦積みリスト構成をトレース） ═══ */
.sh3-feature-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.sh3-feature { display: flex; gap: 20px; align-items: flex-start; min-width: 0; }
.sh3-feature__img {
  width: 140px; flex-shrink: 0; border-radius: 8px;
  object-fit: contain; background: none; display: block;
}
.sh3-feature__body { flex: 1; min-width: 0; }
.sh3-feature__title { color: var(--blue); font-size: 1.05rem; margin-bottom: 6px; }
.sh3-feature__body p { font-size: .92rem; color: var(--dark); margin: 0; }
.sh3-feature .inlineBR {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin-top: 8px;
}
.sh3-feature .inlineBR li {
  font-size: .78rem; border: 1px solid var(--light-blue); color: var(--blue);
  border-radius: 999px; padding: 2px 12px; white-space: nowrap;
}
@media (max-width: 480px) {
  .sh3-feature { flex-direction: column; }
  .sh3-feature__img { width: 100%; max-width: 220px; margin: 0 auto; }
}

/* ══ SH-3000ページ：JIS試験結果カード（転載元の2列/3列カード構成をトレース） ═══ */
.sh3-test-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.sh3-test-card { background: var(--sky); border-radius: 10px; padding: 18px; text-align: left; min-width: 0; }
.sh3-test-card__title { font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 8px; }
.sh3-test-card__spec { font-size: .85rem; color: var(--gray); line-height: 1.6; margin-bottom: 10px; }
.sh3-test-card__result { font-size: .92rem; color: var(--dark); line-height: 1.6; margin-bottom: 10px; }
.sh3-test-card__report { font-size: .85rem; color: var(--gray); line-height: 1.6; }
@media (max-width: 700px) { .sh3-test-grid { grid-template-columns: 1fr; } }

/* ══ Large / XL プランロゴ風表記（csj_plan_label()） ═════════
   「L」を大きく、「arge」を右下に小さく添える。画面幅に関わらず
   arge が改行・欠落しないよう white-space と flex を固定する。
   ═════════════════════════════════════════════════════════ */
.plan-label {
  display: inline-flex; align-items: baseline; white-space: nowrap;
  font-weight: 800; color: inherit; line-height: 1;
}
.plan-label__l, .plan-label__x {
  font-size: 1.5em; line-height: .8;
}
.plan-label__arge {
  font-size: .58em; margin-left: 1px; align-self: flex-end;
  letter-spacing: .01em;
}
.plan-label__xl {
  font-size: 1.15em;
}
.plan-label__suffix {
  font-size: .62em; font-weight: 700; margin-left: .15em;
}
.plan-label__model {
  display: inline-block; font-size: .5em; font-weight: 600;
  color: var(--mid-blue); margin-left: .5em; letter-spacing: .04em;
  white-space: nowrap; vertical-align: middle;
}
h1 .plan-label, h2 .plan-label, .product-title .plan-label { font-size: 1em; }

/* ── アクセシビリティ用の視覚非表示ユーティリティ ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ══ prefers-reduced-motion: reduce ══════════════════════════
   装飾アニメーション・スムーススクロールを抑制する。
   .js-reveal 等は初期状態のまま表示させ、モーションに依存させない。 ══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js-reveal {
    opacity: 1; transform: none; transition: none;
  }
  .bubble-field { display: none; }
  .about-hero__ring--2, .about-hero__ring--3 { animation: none; }
  .section-head::before, .section-head .kicker::after { animation: none; opacity: 0; }
  .page-hero::before { animation: none; }
  .hero::after, .page-hero { animation: none; }
}
