:root {
  --base: #161210;
  --surface: #221b15;
  --panel: rgba(18, 13, 9, .88);
  --ink: #f5eddc;
  --sub: #cfc0a4;
  --accent: #e0aa4e;
  --line: #3d332a;
  --cta: #9e3b26;
  --radius: 16px;
}

* { 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);
}
a:hover { color: var(--ink); }
a:active { color: var(--ink); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sample-banner {
  background: #000000;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}

/* ---------- ヘッダー（ヒーローに重ねる） ---------- */
.hero-wrap { position: relative; }

header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.logo {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 20px;
  font-weight: 700;
}
.logo a { color: var(--ink); text-decoration: none; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

.header-tel { margin: 0; font-weight: 700; }
.header-tel a {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(245, 237, 220, .65);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(18, 13, 9, .55);
  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: rgba(18, 13, 9, .85); }
.header-tel a:active { transform: scale(.98); }

/* ---------- 場面（全面写真） ---------- */
.scene, .hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000000;
}
.scene-bg { position: absolute; inset: 0; }
.scene-bg img { width: 100%; height: 100%; object-fit: cover; }

.hero { min-height: 96svh; align-items: flex-end; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10, 7, 5, .42) 0%, rgba(10, 7, 5, 0) 30%, rgba(10, 7, 5, .18) 55%, rgba(10, 7, 5, .88) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 120px 20px 44px;
}

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

.hero h1 {
  font-family: "Shippori Mincho", serif;
  font-size: 34px;
  line-height: 1.5;
  font-weight: 700;
  margin: 0 0 14px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

.hero-sub { margin: 0 0 24px; max-width: 38em; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-note { font-size: 13px; color: var(--sub); margin: 16px 0 0; }

.scene-panel {
  position: relative;
  z-index: 2;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin: 0 16px 28px;
  max-width: 560px;
}
.scene-panel p { margin: 0; }
.scene-panel.center { margin-left: auto; margin-right: auto; text-align: center; }
.scene-close { align-items: center; justify-content: center; }
.scene-close .scene-panel { margin: 40px 16px; }
.close-hours { font-weight: 700; color: var(--accent); margin: 10px 0 18px; }

.sec-label {
  font-size: 13px;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 6px;
}
.sec-title {
  font-family: "Shippori Mincho", serif;
  font-size: 25px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.5;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #161210;
  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 {
  color: #161210;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
}
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-tel { background: var(--cta); color: #ffffff; }
.btn-tel:hover { color: #ffffff; }
.btn-ghost {
  background: rgba(18, 13, 9, .55);
  color: var(--ink);
  border: 1px solid rgba(245, 237, 220, .7);
}
.btn-ghost:hover { color: var(--ink); background: rgba(18, 13, 9, .85); }

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

table.menu, table.info {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
table.menu th, table.info th {
  text-align: left;
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  width: 58%;
}
table.menu td {
  text-align: right;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.info td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
table.menu tr:last-child th, table.menu tr:last-child td,
table.info tr:last-child th, table.info tr:last-child td { border-bottom: none; }
table.menu small { display: block; font-weight: 500; color: var(--sub); font-size: 13px; }
.menu-note { font-size: 14px; color: var(--sub); margin: 12px 0 0; }

.course-card {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-align: center;
  transition: transform .25s cubic-bezier(.25,.7,.3,1), box-shadow .25s cubic-bezier(.25,.7,.3,1);
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .4);
}
.course-name { font-family: "Shippori Mincho", serif; font-size: 19px; font-weight: 700; margin: 0 0 2px; }
.course-price { font-size: 30px; font-weight: 700; color: var(--accent); margin: 0; }
.course-price small { font-size: 14px; color: var(--sub); font-weight: 500; }
.course-note { margin: 8px 0 0; font-size: 15px; }

footer { margin-top: 64px; background: #0d0a08; border-top: 1px solid var(--line); }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 30px 20px 38px; }
.footer-logo { font-family: "Shippori Mincho", serif; font-size: 19px; font-weight: 700; margin: 0 0 8px; }
footer p { margin: 0 0 8px; font-size: 14px; }
.credits { font-size: 12px; color: #a08e6d; }

.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); }
.cta-bar .cta-tel { background: var(--cta); color: #ffffff; }

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .cta-bar { display: none; }
  .hero h1 { font-size: 46px; }
  .scene-panel { margin: 0 auto 44px; width: calc(100% - 40px); }
  .scene { align-items: flex-end; }
  .scene-panel:not(.center) { margin-left: max(20px, calc((100% - 1180px) / 2)); }
  .sec-title { font-size: 28px; }
}

/* ---------- 動き（M2 出現フェード／M10 場面ズーム） ---------- */
.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; }

.js-motion .scene-bg img { transform: scale(1.03); }
.js-motion .scene.on .scene-bg img,
.js-motion .hero.on .scene-bg img { animation: sceneZoom 16s ease-out forwards; }
@keyframes sceneZoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.12); }
}

/* ---------- 動きを減らす設定では、動きを止めて色の変化だけ残す ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .course-card, a, .cta-bar a, .header-tel a { transition: none; }
  .btn:hover, .course-card: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秒（カード0.25秒）・イージング cubic-bezier(.25,.7,.3,1)・:active と :focus-visible 必須。
   reduced-motion では末尾のメディアクエリで動きを止め、色の変化だけを即時に効かせる。 */
