/* ハコセトラの商品ページ。配色・書体はLP（../style.css）を継承し、ここは構造だけを足す */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- ヒーロー ---------------- */
.sauna-hero { position: relative; overflow: hidden; }
.sauna-hero-image { width: 100%; height: clamp(380px, 62vh, 620px); object-fit: cover; }
.sauna-hero-wash {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 42%, rgba(0,0,0,.62) 100%);
}
.sauna-hero-copy {
  position: absolute; inset: auto 0 0 0;
  width: var(--wide); margin: 0 auto; padding: 0 0 clamp(34px, 6vw, 62px);
  color: #fff;
}
.sauna-hero-brand {
  font-size: clamp(11px, 2.4vw, 13px); font-weight: 600;
  letter-spacing: .38em; margin-bottom: 14px; color: rgba(255,255,255,.86);
}
.sauna-hero h1 {
  font-size: clamp(26px, 6.4vw, 50px); font-weight: 700;
  line-height: 1.42; letter-spacing: .03em;
}
.sauna-hero-lead {
  margin-top: 18px; font-size: clamp(13px, 2.9vw, 15px);
  line-height: 1.95; color: rgba(255,255,255,.9);
}

/* ---------------- 3タイプ ---------------- */
.type-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  margin-top: 54px;
}
.type-list li { border-top: 2px solid var(--ink); padding-top: 24px; }
.type-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .24em; color: var(--gold);
}
.type-list h3 {
  margin-top: 12px; font-size: 19px; font-weight: 700; line-height: 1.6;
}
.type-heat {
  margin-top: 8px; font-size: 12px; letter-spacing: .08em; color: var(--soft-gold); font-weight: 600;
}
.type-body { margin-top: 16px; font-size: 13.5px; line-height: 2.05; }
.type-for {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.95; color: var(--muted);
}

/* ---------------- 仕様 ---------------- */
.spec-grid {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 58px); align-items: start; margin-top: 54px;
}
.spec-plan svg { width: 100%; height: auto; }
.spec-plan .plan-dim { font-size: 13px; font-weight: 600; fill: #111; }
.spec-plan .plan-sub { font-size: 12px; fill: #7d8c9c; }
.spec-plan .plan-in { font-size: 12px; fill: #5a6b7d; }
.spec-plan .plan-note { font-size: 11.5px; fill: #949494; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th,
.spec-table td {
  text-align: left; vertical-align: top;
  padding: 17px 0; border-bottom: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.95;
}
.spec-table th {
  width: 116px; padding-right: 18px; font-weight: 600; color: var(--muted);
  white-space: nowrap;
}
.spec-table tr:first-child th,
.spec-table tr:first-child td { border-top: 1px solid var(--line); }

.spec-photo { margin: 56px auto 0; max-width: 460px; text-align: center; }
.spec-photo img { width: 100%; }
.spec-photo figcaption {
  margin-top: 14px; font-size: 12.5px; color: var(--muted);
}

/* ---------------- 価格 ---------------- */
.price-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 54px;
}
.price-card {
  border: 1px solid var(--line); padding: 34px 30px 30px;
  display: flex; flex-direction: column;
}
.price-card-main { border-color: var(--ink); border-width: 2px; }
.price-name { font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.price-value {
  margin-top: 14px; font-size: clamp(30px, 6vw, 42px); font-weight: 700;
  letter-spacing: .01em; line-height: 1.2;
}
.price-value span { font-size: .46em; font-weight: 600; margin-left: 4px; }
.price-includes { margin-top: 20px; }
.price-includes li {
  position: relative; padding-left: 17px; font-size: 13px; line-height: 2.05;
}
.price-includes li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 7px; height: 1px; background: var(--soft-gold);
}
.price-note {
  margin-top: auto; padding-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.85;
}

.price-sub {
  margin-top: 62px; font-size: 15px; font-weight: 700; letter-spacing: .1em;
}
.option-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.option-table th,
.option-table td {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.85; text-align: left;
}
.option-table th { font-weight: 400; padding-right: 20px; }
.option-table td { width: 140px; white-space: nowrap; text-align: right; font-weight: 600; }
.option-table tr:first-child th,
.option-table tr:first-child td { border-top: 1px solid var(--line); }
.option-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.95; }

/* 注意書き。橙のアクセントは .section-heading::before と同じ「上罫に重ねる」形に揃える */
.price-caution {
  position: relative;
  margin-top: 54px; padding: 30px 30px 28px;
  background: #fbfbfa; border: 1px solid var(--line);
}
.price-caution::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 64px; height: 2px; background: var(--soft-gold);
}
.price-caution h3 { font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.price-caution ul { margin-top: 16px; }
.price-caution li {
  position: relative; padding-left: 18px; font-size: 13.5px; line-height: 2.05;
}
.price-caution li + li { margin-top: 10px; }
.price-caution li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 8px; height: 1px; background: var(--ink);
}
.price-ask {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.95; color: var(--muted);
}

/* ---------------- 導入の流れ ---------------- */
.flow-list { margin-top: 50px; }
.flow-list li {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.flow-list li:first-child { border-top: 1px solid var(--line); }
.flow-no {
  flex: 0 0 auto; width: 40px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--gold);
  padding-top: 3px;
}
.flow-list h3 { font-size: 15px; font-weight: 700; line-height: 1.7; }
.flow-list p { margin-top: 7px; font-size: 13px; line-height: 2; color: var(--muted); }

/* ---------------- レンタル ---------------- */
.section-rental { background: #fbfbfa; }
.rental-grid {
  display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px); align-items: center; margin-top: 52px;
}
.rental-photo img { width: 100%; }
.rental-lead {
  font-size: clamp(16px, 3.4vw, 20px); font-weight: 700; line-height: 1.85;
}
.rental-body > p { margin-top: 18px; font-size: 13.5px; line-height: 2.05; }
.rental-plans {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px;
}
.rental-plans > div {
  padding: 20px 22px; background: #fff; border: 1px solid var(--line);
  font-size: 15px; line-height: 1.5;
}
.rental-plans strong { font-size: 28px; font-weight: 700; margin-right: 2px; }
.rental-plans small {
  display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted);
}
.rental-plan {
  display: block; font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; color: var(--gold); margin-bottom: 8px;
}
.rental-terms { margin-top: 16px; font-size: 12.5px; line-height: 1.95; color: var(--muted); }
.rental-prep {
  margin-top: 20px; padding: 16px 20px; border: 1px solid var(--line);
  font-size: 13px; line-height: 1.85;
}
.rental-prep span {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; color: var(--muted); margin-bottom: 4px;
}
.rental-uses { margin-top: 24px; }
.rental-uses li {
  position: relative; padding-left: 17px; font-size: 13px; line-height: 2.05;
}
.rental-uses li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 7px; height: 1px; background: var(--soft-gold);
}
.rental-note { margin-top: 20px; font-size: 12.5px; color: var(--muted); line-height: 1.95; }

/* ---------------- 問い合わせ ---------------- */
/* ---------------- OHAKO（開発中） ---------------- */
.section-ohako { background: #fbfbfa; }
.section-ohako .section-inner { text-align: center; }
.ohako-tag {
  display: inline-block; padding: 6px 16px; margin-bottom: 22px;
  border: 1px solid var(--soft-gold); color: var(--soft-gold);
  font-size: 11px; font-weight: 700; letter-spacing: .2em;
}
.section-ohako > .section-inner > p { font-size: 13.5px; line-height: 2.1; }
.ohako-spec {
  display: inline-grid; grid-template-columns: repeat(2, auto);
  gap: 14px 40px; margin-top: 34px; text-align: left;
}
.ohako-spec li { font-size: 13.5px; line-height: 1.8; }
.ohako-spec span {
  display: block; font-size: 11px; letter-spacing: .16em;
  color: var(--muted); margin-bottom: 3px;
}
.ohako-note {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.95; color: var(--muted);
}

/* ---------------- 問い合わせ ---------------- */
.sauna-contact .section-inner { text-align: center; }
.sauna-contact > .section-inner > p { font-size: 13.5px; line-height: 2.1; }
/* メールアドレス確定までの暫定表示。届いたらボタンへ差し替える */
.contact-pending {
  margin-top: 30px; padding: 26px 28px;
  border: 1px dashed #c9c9c9; background: #fbfbfa;
  font-size: 13.5px; line-height: 2; color: var(--muted);
}

/* ---------------- オーダーメイド ---------------- */
.section-custom .section-inner { text-align: center; }
.section-custom > .section-inner > p { font-size: 13.5px; line-height: 2.1; }
.custom-note {
  margin-top: 22px; font-size: 12.5px; color: var(--muted); line-height: 1.95;
}
.sauna-contact .contact-info {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12px; line-height: 2; color: var(--muted);
}
.footer-links .sep,
.contact-note .sep { margin: 0 8px; color: var(--line); }

/* ---------------- レスポンシブ ---------------- */
@media (max-width: 900px) {
  .type-list { grid-template-columns: 1fr; gap: 34px; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-plan { max-width: 380px; margin: 0 auto; }
  .rental-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .sauna-hero-copy { width: calc(100% - 40px); }
  .price-cards { grid-template-columns: 1fr; }
  .price-card { padding: 28px 24px 24px; }
  .price-caution { padding: 24px 22px; }
  .option-table th, .option-table td { font-size: 12.5px; }
  .option-table td { width: 108px; }
  .spec-table th { width: 92px; padding-right: 12px; font-size: 12.5px; }
  .spec-table td { font-size: 12.5px; }
  .flow-list li { gap: 14px; }
  .flow-no { width: 30px; font-size: 12px; }
  .rental-plans { grid-template-columns: 1fr; }
}

/* ============================================================
   モーション（2026-08-03）
   方針: 「遅く・少なく」。1.2秒級のcubic-bezier(.16,1,.3,1)で統一し、
   速いUIアニメを使わないことで高額商材の落ち着きを出す。
   JSが無い・省モーション設定のときは、すべて静的表示にフォールバックする。
   ============================================================ */

/* ---------- 写真: 置くときは色を少し抜き、触れると戻る ---------- */
.type-list img,
.rental-figure img,
.spec-photo img {
  filter: grayscale(12%);
  transition: filter 1.2s cubic-bezier(.16, 1, .3, 1),
              transform 1.2s cubic-bezier(.16, 1, .3, 1);
}
.type-list li:hover img,
.rental-figure:hover img,
.spec-photo:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}
/* 拡大が枠外へ出ないように、図版側で切る */
.rental-figure, .spec-photo { overflow: hidden; }

/* ---------- 3タイプ: 触れると静かに浮く ---------- */
.type-list li {
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1),
              border-color 1.2s cubic-bezier(.16, 1, .3, 1);
}
.type-list li:hover {
  transform: translateY(-6px);
  border-color: #c9c9c9;
}

/* ---------- 平面図: 設計図が引かれる ---------- */
/* JS稼働時だけ隠す。JSが無ければ最初から完成形が見える */
.js-motion .spec-plan .pl-fill,
.js-motion .spec-plan .pl-part,
.js-motion .spec-plan .pl-label,
.js-motion .spec-plan .pl-dim { opacity: 0; }

/* ---------- 価格の数字 ---------- */
.price-value { font-variant-numeric: tabular-nums; }

/* ---------- 追従バー ---------- */
.sauna-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .975);
  border-top: 1px solid var(--line, #eaeaea);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  transform: translateY(100%);
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}
.sauna-bar.is-shown { transform: translateY(0); }
.sauna-bar-inner {
  width: var(--wide, min(1120px, calc(100% - 48px)));
  margin: 0 auto;
  padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.sauna-bar-price {
  font-size: 12px; letter-spacing: .04em; color: var(--muted, #747474); line-height: 1.6;
}
.sauna-bar-price span {
  display: block;
  font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--ink, #111);
  font-variant-numeric: tabular-nums;
}
.sauna-bar-cta {
  flex: 0 0 auto;
  padding: 13px 30px;
  background: var(--ink, #111); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1);
}
.sauna-bar-cta:hover { opacity: .82; }

@media (max-width: 600px) {
  .sauna-bar-inner { padding: 11px 0; gap: 12px; }
  .sauna-bar-price { font-size: 11px; }
  .sauna-bar-price span { font-size: 13.5px; }
  .sauna-bar-cta { padding: 11px 20px; font-size: 12px; letter-spacing: .08em; }
}

/* 省モーション設定では、動かさず最初から見せる */
@media (prefers-reduced-motion: reduce) {
  .type-list img, .rental-figure img, .spec-photo img,
  .type-list li, .sauna-bar, .sauna-bar-cta { transition: none; }
  .js-motion .spec-plan .pl-fill,
  .js-motion .spec-plan .pl-part,
  .js-motion .spec-plan .pl-label,
  .js-motion .spec-plan .pl-dim { opacity: 1; }
}
