:root {
  --base: #fbf6ee;
  --surface: #ffffff;
  --ink: #33302a;
  --sub: #6b6257;
  --accent: #b5502a;
  --accent-deep: #9c4525;
  --line: #e7dcc9;
  --radius: 18px;
}

* { 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; }

h1, h2, h3, .logo, .footer-logo { font-family: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif; }

/* ---------- リンクの反応（共通） ---------- */
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: #33302a;
  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; line-height: 1.15; }
.logo a { color: var(--ink); text-decoration: none; }
.logo small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .3em; color: var(--accent); font-family: "Zen Kaku Gothic New", sans-serif; }

.header-tel { margin: 0; font-weight: 700; }
.header-tel a {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--line);
  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: #f3e9d8; }
.header-tel a:active { transform: scale(.98); opacity: 1; }

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

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

.hero h1 {
  font-size: clamp(34px, 7.6vw, 52px);
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 16px;
}

.hero-sub { margin: 0 0 14px; max-width: 34em; }
.hero-price { margin: 0 0 24px; font-size: 17px; }
.hero-price strong { color: var(--accent); font-size: 21px; 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: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(51, 48, 42, .13); }
.hero-img img { width: 100%; aspect-ratio: 3 / 2; 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(51, 48, 42, .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; background: var(--accent-deep); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--ink); }
.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(28px, 6.8vw, 40px);
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 18px;
}
.sec-lead { margin: 0 0 30px; color: var(--ink); max-width: 36em; }

/* ---------- M13 重なるカード ---------- */
.stack { margin-top: 6px; }
.stack-slot { min-height: 100vh; padding-bottom: 26px; }
.stack-slot:last-child { min-height: 0; padding-bottom: 0; }

.stack-card {
  position: sticky;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(51, 48, 42, .13);
}
.stack-slot:nth-child(1) .stack-card { top: 12px; }
.stack-slot:nth-child(2) .stack-card { top: 24px; }
.stack-slot:nth-child(3) .stack-card { top: 36px; }

.stack-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.stack-body { padding: 22px 24px 26px; }
.stack-num {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
  text-transform: uppercase;
}
.stack-body h3 { font-size: 23px; font-weight: 900; margin: 0 0 8px; }
.stack-body p { margin: 0 0 10px; }
.stack-price { margin: 0; font-size: 16px; }
.stack-price strong { color: var(--accent); font-size: 20px; font-weight: 900; }

/* ---------- 初めての流れ ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
  margin: 0 0 8px;
}
.step h3 { font-size: 19px; font-weight: 900; margin: 0 0 6px; }
.step p { margin: 0; }

.salon-fig { margin: 30px 0 0; }
.salon-fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); }
.salon-fig figcaption { font-size: 13px; color: var(--sub); margin-top: 8px; }

/* ---------- 料金・店舗情報 ---------- */
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: #33302a; color: var(--base); }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 30px 20px 38px; }
.footer-logo { font-size: 20px; font-weight: 900; margin: 0 0 8px; }
.footer-logo small { font-size: 10px; letter-spacing: .28em; color: #e8b48f; }
footer p { margin: 0 0 8px; font-size: 14px; }
.credits { font-size: 12px; color: #ddd5c6; }

.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: 30px; }
  .stack-card { display: flex; }
  .stack-img { flex: 0 0 46%; }
  .stack-img img { height: 100%; aspect-ratio: auto; }
  .stack-body { flex: 1; padding: 28px 30px 30px; }
  .steps { grid-template-columns: 1fr 1fr; }
}

/* ---------- 動き（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; }

/* ---------- 画面の高さが小さい場合は、重なりをやめて通常リストにする ---------- */
@media (max-height: 600px) {
  .stack-card { position: static; }
  .stack-slot { min-height: 0; }
}

/* ---------- 動きを減らす設定では、重なりをやめて通常リストにし、動きを止めて色の変化だけ残す ---------- */
@media (prefers-reduced-motion: reduce) {
  .stack-card { position: static; }
  .stack-slot { min-height: 0; }
  .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 では末尾のメディアクエリで動きを止め、色の変化だけを即時に効かせる。 */
