:root {
  --base: #f7faf9;
  --surface: #ffffff;
  --ink: #22312c;
  --sub: #4a5d55;
  --accent: #0e7a6d;
  --line: #d3e2dd;
  --chip: #e6f2ef;
  --radius: 14px;
}

* { box-sizing: border-box; }

/* M6 なめらかなページ内スクロール（動きOKのときだけ） */
html.js-motion { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 500;
  padding-bottom: 64px;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- リンクの反応（共通） ---------- */
a {
  color: var(--accent);
  transition: color .2s cubic-bezier(.25,.7,.3,1), opacity .2s cubic-bezier(.25,.7,.3,1);
}
a:hover { color: var(--ink); }
a:active { opacity: .72; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sample-banner {
  background: #22312c;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 8px 16px;
}

/* ---------- ヘッダー ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.logo { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: .08em; line-height: 1.1; }
.logo a { color: var(--ink); text-decoration: none; }
.logo small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .3em; color: var(--accent); }

.header-tel { margin: 0; font-weight: 700; }
.header-tel a {
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 7px 16px;
  background: var(--surface);
  transition: background-color .2s cubic-bezier(.25,.7,.3,1), color .2s cubic-bezier(.25,.7,.3,1), transform .15s cubic-bezier(.25,.7,.3,1);
}
.header-tel a:hover { background: var(--chip); color: var(--accent); }
.header-tel a:active { transform: scale(.98); opacity: 1; }

/* ---------- ヒーロー ---------- */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 10px;
  display: grid;
  gap: 26px;
  align-items: center;
}

.open-chip {
  display: inline-block;
  background: var(--chip);
  border: 1px solid var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 5px 16px;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(38px, 9vw, 62px);
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 16px;
}

.hero-sub { margin: 0 0 14px; max-width: 36em; }
.hero-price { margin: 0 0 24px; font-size: 17px; }
.hero-price strong { color: var(--accent); font-size: 22px; font-weight: 900; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-note { font-size: 13px; color: var(--sub); margin: 16px 0 0; }

.hero-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hero-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: transform .2s cubic-bezier(.25,.7,.3,1), box-shadow .2s cubic-bezier(.25,.7,.3,1), background-color .2s cubic-bezier(.25,.7,.3,1), color .2s cubic-bezier(.25,.7,.3,1);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 49, 44, .16);
}
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; opacity: 1; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-main { background: var(--accent); color: #ffffff; }
.btn-main:hover { color: #ffffff; }
.btn-ghost { border: 1px solid var(--accent); color: var(--accent); }
.btn-ghost:hover { color: var(--accent); background: var(--chip); }
.btn-ghost2 { border: 1px solid var(--line); }
.btn-ghost2:hover { color: var(--ink); }

/* ---------- ブロック共通 ---------- */
main { display: block; }
.block { max-width: 880px; margin: 0 auto; padding: 64px 20px 8px; }

.sec-label {
  font-size: 13px;
  letter-spacing: .22em;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.sec-title {
  font-size: clamp(30px, 7.6vw, 42px);
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 18px;
}
.sec-lead { margin: 0 0 14px; }
.ba-note {
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  margin: 0 0 28px;
}

/* ---------- M14 比べるスライダー ---------- */
.ba-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
}
.ba-card h3 { font-size: 21px; font-weight: 900; margin: 0 0 14px; }
.ba-caption { margin: 10px 0 0; color: var(--sub); font-size: 15px; }

.ba-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--chip);
  touch-action: pan-y;
  cursor: ew-resize;
}
.ba-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 作業前：同じ写真にフィルタをかけて表現する（見本専用の表現であることは本文で開示） */
.ba-stage img.ba-before {
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
  filter: saturate(.3) brightness(.76) contrast(.94) sepia(.24);
}
.ba-label {
  position: absolute;
  top: 12px;
  z-index: 3;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 14px;
  pointer-events: none;
}
.ba-label-before { left: 12px; background: #22312c; color: #ffffff; }
.ba-label-after { right: 12px; background: var(--accent); color: #ffffff; }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  margin-left: -1.5px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(34, 49, 44, .35);
  z-index: 2;
  pointer-events: none;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}
.ba-range {
  width: 100%;
  height: 36px;
  margin: 8px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.ba-range:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.scene { margin: 6px 0 0; }
.scene-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.scene-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.scene figcaption { font-size: 14px; color: var(--sub); margin-top: 10px; }

/* ---------- ご利用の流れ ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.step-num {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 2px 0 0;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { font-size: 19px; font-weight: 900; margin: 0 0 4px; }
.steps p { margin: 0; }

/* ---------- 料金・店舗情報 ---------- */
table.price, table.info {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
table.price th, table.info th {
  text-align: left;
  font-weight: 700;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  width: 58%;
}
table.price td {
  text-align: right;
  font-weight: 900;
  font-size: 19px;
  color: var(--accent);
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.info td { padding: 15px 16px; border-bottom: 1px solid var(--line); }
table.price tr:last-child th, table.price tr:last-child td,
table.info tr:last-child th, table.info tr:last-child td { border-bottom: none; }
table.price small { display: block; font-weight: 500; color: var(--sub); font-size: 13px; }
.price-note { font-size: 14px; color: var(--sub); margin: 12px 0 0; }
.price-cta { margin: 22px 0 0; text-align: center; }

footer { margin-top: 72px; background: #22312c; color: #ffffff; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 30px 20px 38px; }
.footer-logo { font-size: 20px; font-weight: 900; letter-spacing: .1em; margin: 0 0 8px; }
.footer-logo small { font-size: 10px; letter-spacing: .28em; color: #cfe8e2; }
footer p { margin: 0 0 8px; font-size: 14px; }
.credits { font-size: 12px; color: #cfe8e2; }

.cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--line);
  z-index: 50;
}
.cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .2s cubic-bezier(.25,.7,.3,1), transform .15s cubic-bezier(.25,.7,.3,1);
}
.cta-bar a:active { transform: scale(.98); opacity: 1; }
.cta-bar .cta-tel { background: var(--accent); color: #ffffff; }

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .cta-bar { display: none; }
  .hero { grid-template-columns: 1fr 1.05fr; padding-top: 40px; }
}

/* ---------- 動き（M2 出現フェード） ---------- */
.js-motion .rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--d, 0s);
}
.js-motion .rv.on { opacity: 1; transform: none; }

/* ---------- 動きを減らす設定では、動きを止めて色の変化だけ残す ---------- */
/* M14は操作型の動きのため、reduced-motion でも機能は維持する（自動で動く要素はない） */
@media (prefers-reduced-motion: reduce) {
  .btn, a, .cta-bar a, .header-tel a { transition: none; }
  .btn:hover { transform: none; box-shadow: none; }
  .btn:active, .cta-bar a:active, .header-tel a:active { transform: none; }
}

/* ================= IF-STD v1 =================
   インタラクション・フィードバック標準（templates/motion-parts.md）準拠。
   ボタン・カードは上の各規則で「浮く／沈む＋影・色」を実装し、本文リンクは色の変化のみ。
   時間0.2秒・イージング cubic-bezier(.25,.7,.3,1)・:active と :focus-visible 必須。
   reduced-motion では末尾のメディアクエリで動きを止め、色の変化だけを即時に効かせる。 */
