/* =====================================================
   凪 — nagi — 和モダン・静謐系ヨガスタジオLP
   デザイントークン
   ----------------------------------------------------
   色は日本の伝統色から:
   生成り(kinari) / 墨(sumi) / 松葉(matsuba) / 苔(koke)
   弁柄(bengara) / 金茶(kincha)
   ===================================================== */

/* 呼吸のアニメーション用（@property による型付きカスタムプロパティ） */
@property --breath {
  syntax: '<length>';
  inherits: false;
  initial-value: 240px;
}

:root {
  --kinari: #F5F1E8;
  --washi: #FBF8F2;
  --sumi: #262219;
  --sumi-2: #38321F;
  --text: #2B261D;
  --text-2: #6C6353;
  --matsuba: #5A6B4D;
  --koke: #3C4A33;
  --bengara: #A43D2C;
  --kincha: #B08D57;
  --line: #E3DBC9;

  --font-mincho: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-gothic: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;

  --container: 1080px;
  --narrow: 720px;
  --pad-x: clamp(20px, 4vw, 40px);
  --sec-pad: clamp(88px, 12vw, 150px);
  --banner-h: 38px;

  /* 開閉アニメーションで height:auto を補間可能に */
  interpolate-size: allow-keywords;
}

/* モダンブラウザでは知覚均等な oklch で再定義 */
@supports (color: oklch(50% 0 0)) {
  :root {
    --kinari: oklch(95.3% 0.014 92);
    --washi: oklch(97.5% 0.010 92);
    --sumi: oklch(23.5% 0.014 95);
    --text: oklch(26% 0.016 95);
    --text-2: oklch(50% 0.022 85);
    --matsuba: oklch(48.5% 0.055 135);
    --koke: oklch(38% 0.055 135);
    --bengara: oklch(46.5% 0.115 32);
    --kincha: oklch(66% 0.075 80);
    --line: oklch(89% 0.018 90);
  }
}

/* =====================================================
   リセット・ベース
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--banner-h) + 76px);
}

body {
  font-family: var(--font-gothic);
  font-size: 1rem;
  line-height: 1.95;
  letter-spacing: 0.02em;
  color: var(--text);
  background-color: var(--kinari);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'palt' 0; /* 本文はベタ組み */
}

ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--bengara); outline-offset: 3px; }

/* 日本語見出しの文節折り返し・約物詰め（対応環境のみ） */
h1, h2, h3, .hero__lead {
  word-break: auto-phrase;
  text-spacing-trim: trim-start;
}

/* =====================================================
   共通レイアウト・見出し
   ===================================================== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--narrow { max-width: var(--narrow); }

main > section {
  position: relative;
  padding-block: var(--sec-pad);
}

.sec-title {
  font-family: var(--font-mincho);
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-align: center;
  text-wrap: balance;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.sec-title--left { text-align: left; }
.sec-title__romaji {
  display: block;
  font-family: var(--font-gothic);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  color: var(--text-2);
  margin-top: 10px;
  text-transform: uppercase;
}

/* 縦書きの章ラベル（左の余白に静かに立つ） */
.sec-label {
  position: absolute;
  top: calc(var(--sec-pad) + 6px);
  left: clamp(10px, 2.2vw, 42px);
  writing-mode: vertical-rl;
  font-family: var(--font-mincho);
  font-size: 0.82rem;
  letter-spacing: 0.5em;
  color: var(--matsuba);
}
.sec-label::after {
  content: '';
  display: block;
  inline-size: 1px;      /* 縦書きなので論理プロパティで縦線に */
  block-size: 56px;
  margin-block-start: 18px;
  margin-inline: auto;
  background: linear-gradient(to bottom, var(--matsuba), transparent);
}

p { text-wrap: pretty; }

/* =====================================================
   ボタン（判子を思わせる角の立った矩形）
   ===================================================== */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 15px 40px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-family: var(--font-gothic);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.6;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, translate 0.2s ease;
}
.btn:active { translate: 0 1px; }
.btn__note { font-size: 0.72rem; font-weight: 400; letter-spacing: 0.14em; opacity: 0.85; }

.btn--primary {
  background-color: var(--bengara);
  border-color: var(--bengara);
  color: var(--kinari);
}
.btn--primary:hover {
  background-color: color-mix(in oklab, var(--bengara) 84%, var(--sumi));
  border-color: color-mix(in oklab, var(--bengara) 84%, var(--sumi));
}

.btn--light {
  background-color: transparent;
  border-color: var(--kinari);
  color: var(--kinari);
}
.btn--light:hover { background-color: var(--kinari); color: var(--sumi); }

.btn--line {
  flex-direction: row;
  gap: 9px;
  background-color: transparent;
  border-color: #06C755;
  color: #7FD9A6;
}
.btn--line:hover { background-color: #06C755; color: #fff; }
.btn--line .icon { fill: currentColor; stroke: none; width: 19px; height: 19px; }

.btn--small { padding: 9px 22px; font-size: 0.83rem; background: var(--bengara); border-color: var(--bengara); color: var(--kinari); }
.btn--small:hover { background: color-mix(in oklab, var(--bengara) 84%, var(--sumi)); }

/* 細線アイコン */
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* =====================================================
   出現アニメーション
   既定: JS(IntersectionObserver) が .is-visible を付与
   対応環境: CSS Scroll-Driven Animations に切替（JS不使用）
   ===================================================== */
.reveal {
  opacity: 0;
  translate: 0 30px;
  transition: opacity 0.9s ease, translate 0.9s ease;
}
.reveal.is-visible { opacity: 1; translate: 0 0; }

@supports (animation-timeline: view()) {
  html.sda .reveal {
    opacity: 1;
    translate: none;
    transition: none;
    animation: reveal-rise both ease;
    animation-timeline: view();
    animation-range: entry 8% entry 42%;
  }
}
@keyframes reveal-rise {
  from { opacity: 0; translate: 0 30px; }
  to   { opacity: 1; translate: 0 0; }
}

/* =====================================================
   デモバナー・スクロール進捗
   ===================================================== */
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--banner-h);
  padding-inline: 16px;
  background-color: var(--sumi);
  color: color-mix(in oklab, var(--kinari) 80%, var(--sumi));
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.demo-banner a { color: var(--kinari); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.demo-banner a:hover { opacity: 0.75; }

/* ページ全体の読み進み（スクロール連動タイムライン） */
.scroll-progress {
  display: none;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1001;
  height: 2px;
  background: linear-gradient(to right, var(--bengara), var(--kincha));
  transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    display: block;
    animation: progress-grow linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes progress-grow { from { scale: 0 1; } to { scale: 1 1; } }

/* =====================================================
   ヘッダー
   ===================================================== */
.site-header {
  position: fixed;
  top: var(--banner-h);
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(16px, 3vw, 36px);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
  background-color: color-mix(in oklab, var(--kinari) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 1px 0 color-mix(in oklab, var(--sumi) 10%, transparent);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__hanko {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 5px;
  background-color: var(--bengara);
  color: var(--kinari);
  font-family: var(--font-mincho);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--kinari) 30%, transparent);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.35; }
.brand__name { font-family: var(--font-mincho); font-size: 1.05rem; letter-spacing: 0.12em; }
.brand__name small { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--text-2); }
.brand__place { font-size: 0.66rem; letter-spacing: 0.18em; color: var(--text-2); }

.site-nav { display: flex; gap: clamp(18px, 2.6vw, 34px); margin-left: auto; }
.site-nav a {
  position: relative;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  padding-block: 4px;
}
.site-nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background-color: var(--bengara);
  scale: 0 1;
  transform-origin: right;
  transition: scale 0.3s ease;
}
.site-nav a:hover::after { scale: 1 1; transform-origin: left; }

/* =====================================================
   壱｜ヒーロー
   ===================================================== */
.hero {
  display: grid;
  grid-template-columns: 11fr 9fr;
  min-height: calc(100svh - var(--banner-h));
}

.hero__visual {
  overflow: hidden;
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 24s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { scale: 1.0; }
  to   { scale: 1.06; }
}

.hero__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(96px, 12vh, 140px) clamp(28px, 4.5vw, 64px) clamp(72px, 9vh, 110px);
  background-color: var(--kinari);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cg fill='%23F5F1E8' stroke='%23262219' stroke-opacity='.045'%3E%3Ccircle cx='0' cy='0' r='27'/%3E%3Ccircle cx='0' cy='0' r='20'/%3E%3Ccircle cx='0' cy='0' r='13'/%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='60' cy='0' r='27'/%3E%3Ccircle cx='60' cy='0' r='20'/%3E%3Ccircle cx='60' cy='0' r='13'/%3E%3Ccircle cx='60' cy='0' r='6'/%3E%3Ccircle cx='120' cy='0' r='27'/%3E%3Ccircle cx='120' cy='0' r='20'/%3E%3Ccircle cx='120' cy='0' r='13'/%3E%3Ccircle cx='120' cy='0' r='6'/%3E%3Ccircle cx='30' cy='30' r='27'/%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3Ccircle cx='30' cy='30' r='13'/%3E%3Ccircle cx='30' cy='30' r='6'/%3E%3Ccircle cx='90' cy='30' r='27'/%3E%3Ccircle cx='90' cy='30' r='20'/%3E%3Ccircle cx='90' cy='30' r='13'/%3E%3Ccircle cx='90' cy='30' r='6'/%3E%3Ccircle cx='0' cy='60' r='27'/%3E%3Ccircle cx='0' cy='60' r='20'/%3E%3Ccircle cx='0' cy='60' r='13'/%3E%3Ccircle cx='0' cy='60' r='6'/%3E%3Ccircle cx='60' cy='60' r='27'/%3E%3Ccircle cx='60' cy='60' r='20'/%3E%3Ccircle cx='60' cy='60' r='13'/%3E%3Ccircle cx='60' cy='60' r='6'/%3E%3Ccircle cx='120' cy='60' r='27'/%3E%3Ccircle cx='120' cy='60' r='20'/%3E%3Ccircle cx='120' cy='60' r='13'/%3E%3Ccircle cx='120' cy='60' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

/* 円相 — ページを象徴する一筆。読み込み時に描かれる */
.hero__enso {
  position: absolute;
  top: clamp(70px, 10vh, 120px);
  right: clamp(8px, 2vw, 36px);
  width: clamp(180px, 22vw, 300px);
  rotate: -80deg;
  opacity: 0.5;
}
.hero__enso circle,
.cta__enso circle {
  fill: none;
  stroke: var(--matsuba);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-dasharray: 88 112;
  stroke-dashoffset: 0;
}
.hero__enso circle {
  animation: enso-draw 1.8s cubic-bezier(0.6, 0, 0.3, 1) 0.5s both;
}
@keyframes enso-draw {
  from { stroke-dashoffset: 88; }
  to   { stroke-dashoffset: 0; }
}

/* 縦書きの主題 */
.hero__title {
  grid-column: 2;
  grid-row: 1 / span 4;
  writing-mode: vertical-rl;
  font-family: var(--font-mincho);
  font-size: clamp(2.7rem, 5.4vw, 4.3rem);
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: 0.22em;
  z-index: 1;
  animation: title-in 1.3s ease 0.25s both;
}
@keyframes title-in {
  from { opacity: 0; translate: 0 -18px; }
  to   { opacity: 1; translate: 0 0; }
}

.hero__eyebrow {
  grid-column: 1;
  align-self: end;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  color: var(--matsuba);
  animation: title-in 1.1s ease 0.7s both;
}
.hero__lead {
  grid-column: 1;
  font-family: var(--font-mincho);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 2.35;
  letter-spacing: 0.06em;
  color: var(--text);
  animation: title-in 1.1s ease 0.85s both;
}
.hero__meta {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  animation: title-in 1.1s ease 1s both;
}
.hero__meta li {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--text-2);
  border: 1px solid var(--line);
  background-color: color-mix(in oklab, var(--washi) 70%, transparent);
  padding: 5px 14px;
  border-radius: 2px;
}
.hero__actions {
  grid-column: 1;
  align-self: start;
  animation: title-in 1.1s ease 1.15s both;
}

/* スクロールの誘い */
.hero__scroll {
  position: absolute;
  bottom: 0;
  left: clamp(16px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
  mix-blend-mode: difference;
  color: #cfcabb;
}
.hero { position: relative; }
.hero__scroll-text {
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
}
.hero__scroll-line {
  width: 1px;
  height: 64px;
  background: currentColor;
  animation: scroll-hint 2.4s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%   { transform: scaleY(0); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: top; }
  56%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =====================================================
   弐｜想い
   ===================================================== */
.omoi { background-color: var(--washi); }
.omoi .sec-title { margin-bottom: clamp(40px, 6vw, 64px); }

.omoi__quotes {
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(48px, 7vw, 72px);
}
.omoi__quote {
  font-family: var(--font-mincho);
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  letter-spacing: 0.05em;
  color: var(--text-2);
  text-align: center;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}
.omoi__quote::before { content: '「'; color: var(--matsuba); }
.omoi__quote::after  { content: '」'; color: var(--matsuba); }
.omoi__quote:last-child { border-bottom: 1px solid var(--line); }

.omoi__body {
  font-size: 1.02rem;
  line-height: 2.4;
  text-align: center;
  color: var(--text);
}
/* 圏点（日本語の傍点）で静かに強調する */
.omoi__body em {
  font-style: normal;
  font-family: var(--font-mincho);
  color: var(--bengara);
  -webkit-text-emphasis: filled sesame var(--bengara);
  text-emphasis: filled sesame var(--bengara);
}

/* =====================================================
   参｜スタジオ
   ===================================================== */
.studio { background-color: var(--kinari); }
.studio__grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.studio__photos {
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.studio__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}
.studio__photo--main { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.studio__photo--sub1 { aspect-ratio: 4 / 3.4; }
.studio__photo--sub2 { aspect-ratio: 4 / 3.4; margin-top: 26px; } /* ずらして雑誌的に */

.studio__text p { color: var(--text-2); margin-bottom: 18px; }
.studio__features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.studio__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.studio__features .icon { color: var(--matsuba); }

/* =====================================================
   肆｜クラス（コンテナクエリでカードが自ら形を変える）
   ===================================================== */
.classes { background-color: var(--washi); }
.classes__list {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 56px);
}

.class-card { container-type: inline-size; }
.class-card__inner {
  display: grid;
  background-color: var(--kinari);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.class-card__figure {
  position: relative;
  margin: 0;
}
.class-card__figure img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: scale 0.6s ease;
}
.class-card:hover .class-card__figure img { scale: 1.04; }
.class-card__time {
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: color-mix(in oklab, var(--sumi) 88%, transparent);
  color: var(--kinari);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  padding: 7px 18px;
}

.class-card__body { padding: clamp(24px, 4cqi, 44px); align-self: center; }
.class-card__title {
  font-family: var(--font-mincho);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  color: var(--koke);
}
.class-card__title::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 1px;
  background-color: var(--bengara);
  vertical-align: middle;
  margin-right: 12px;
}
.class-card__text { font-size: 0.93rem; color: var(--text-2); margin-bottom: 14px; }
.class-card__level { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--matsuba); }

/* カードが十分に広い時だけ、写真と本文が横に並ぶ */
@container (min-width: 620px) {
  .class-card__inner { grid-template-columns: 5fr 6fr; }
  .class-card:nth-child(even) .class-card__figure { order: 2; }
}

/* =====================================================
   伍｜体験の流れ
   ===================================================== */
.flow { background-color: var(--kinari); }
.flow__steps {
  display: flex;
  flex-direction: column;
  counter-reset: flow;
}
.flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: clamp(20px, 3vw, 36px);
  padding-block: clamp(28px, 4vw, 40px);
}
/* 手順を繋ぐ points 線 */
.flow__step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 36px;
  bottom: -14px;
  width: 1px;
  height: 28px;
  background-image: linear-gradient(to bottom, var(--matsuba) 40%, transparent 40%);
  background-size: 1px 7px;
}
.flow__num {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid color-mix(in oklab, var(--matsuba) 50%, transparent);
  border-radius: 50%;
  font-family: var(--font-mincho);
  font-size: 1.5rem;
  color: var(--bengara);
}
.flow__title {
  font-family: var(--font-mincho);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.flow__step p { font-size: 0.93rem; color: var(--text-2); }

/* =====================================================
   陸｜インストラクター
   ===================================================== */
.instructor { background-color: var(--washi); }
.instructor__grid {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.instructor__figure { margin: 0; position: relative; }
.instructor__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  /* 冷たい照明の写真を、生成りの空気に馴染ませる */
  filter: sepia(0.22) saturate(0.82) brightness(1.04) contrast(0.96);
}
.instructor__figure::after {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  z-index: -1;
}

.instructor .sec-title { margin-bottom: 28px; }
.instructor__quote {
  font-family: var(--font-mincho);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 2.3;
  letter-spacing: 0.05em;
  color: var(--text);
  border-left: 2px solid var(--bengara);
  padding-left: 22px;
  margin-bottom: 26px;
}
.instructor__bio { font-size: 0.95rem; color: var(--text-2); margin-bottom: 26px; }
.instructor__certs {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.instructor__certs li {
  font-size: 0.86rem;
  color: var(--text-2);
  letter-spacing: 0.05em;
  padding-left: 18px;
  position: relative;
}
.instructor__certs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background-color: var(--bengara);
}

/* =====================================================
   漆｜通う人の声
   ===================================================== */
.voices { background-color: var(--kinari); }
.voices__list {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 52px);
}
.voice { margin: 0; }
.voice blockquote {
  font-family: var(--font-mincho);
  font-size: 1.02rem;
  line-height: 2.25;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: 0 0 18px 24px;
  border-left: 1px solid var(--line);
}
.voice figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-2);
  padding-left: 24px;
}
/* 通っているクラスを一文字で示す小さな印 */
.voice__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background-color: var(--matsuba);
  color: var(--kinari);
  font-family: var(--font-mincho);
  font-size: 0.82rem;
  line-height: 1;
}

/* =====================================================
   捌｜料金
   ===================================================== */
.pricing { background-color: var(--washi); }
.pricing__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}
.pricing__table th,
.pricing__table td {
  padding: 24px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.pricing__table tr:first-child th,
.pricing__table tr:first-child td { border-top: 1px solid var(--line); }
.pricing__table th {
  font-family: var(--font-mincho);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
}
.pricing__table td { text-align: right; white-space: nowrap; }
.pricing__desc {
  display: block;
  font-family: var(--font-gothic);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.pricing__badge {
  display: inline-block;
  font-family: var(--font-gothic);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--bengara);
  border: 1px solid color-mix(in oklab, var(--bengara) 55%, transparent);
  border-radius: 2px;
  padding: 2px 10px;
  margin-left: 12px;
  vertical-align: 2px;
}
/* :has() — バッジを持つ行だけが自然に浮かび上がる */
.pricing__table tr:has(.pricing__badge) {
  background-color: color-mix(in oklab, var(--matsuba) 7%, transparent);
  box-shadow: inset 3px 0 0 var(--bengara);
}
.price {
  font-family: var(--font-mincho);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--sumi);
}
.price__note {
  display: block;
  font-size: 0.75rem;
  color: var(--text-2);
  letter-spacing: 0.06em;
}
.pricing__notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pricing__notes li {
  font-size: 0.84rem;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
}
.pricing__notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 7px;
  height: 1px;
  background-color: var(--bengara);
}

/* =====================================================
   玖｜よくある質問（details + ::details-content で高さを補間）
   ===================================================== */
.faq { background-color: var(--kinari); }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item:first-child { border-top: 1px solid var(--line); }

.faq__item summary {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 24px 44px 24px 4px;
  font-family: var(--font-mincho);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: '問';
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--kinari);
  background-color: var(--matsuba);
  border-radius: 4px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  align-self: center;
}
.faq__item summary::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--text-2);
  border-bottom: 1px solid var(--text-2);
  translate: 0 -70%;
  rotate: 45deg;
  transition: rotate 0.35s ease, translate 0.35s ease;
}
.faq__item[open] summary::after { rotate: 225deg; translate: 0 -30%; }

.faq__answer {
  display: flex;
  gap: 16px;
  padding: 2px 4px 26px;
}
.faq__answer::before {
  content: '答';
  flex-shrink: 0;
  font-family: var(--font-mincho);
  font-size: 0.82rem;
  color: var(--kinari);
  background-color: var(--bengara);
  border-radius: 4px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
}
.faq__answer p { font-size: 0.93rem; color: var(--text-2); }

/* 開閉を滑らかに（対応環境のみ、非対応は即時開閉） */
.faq__item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.4s ease, content-visibility 0.4s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }

/* =====================================================
   拾｜アクセス
   ===================================================== */
.access { background-color: var(--washi); }
.access__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.access .sec-title { margin-bottom: 36px; }
.access__table div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.access__table div:last-child { border-bottom: 1px solid var(--line); }
.access__table dt {
  font-family: var(--font-mincho);
  letter-spacing: 0.28em;
  color: var(--matsuba);
  font-size: 0.92rem;
  padding-top: 2px;
}
.access__table dd { font-size: 0.94rem; color: var(--text); }
.access__table small { color: var(--text-2); font-size: 0.78rem; }

.access__map {
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.access__map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.2;
  border: 0;
  /* 地図も紙の色に沈める */
  filter: grayscale(1) sepia(0.14) contrast(1.02);
}

/* =====================================================
   拾壱｜CTA（墨の間 — 青海波の上で呼吸する円相）
   ===================================================== */
.cta {
  position: relative;
  background-color: var(--sumi);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cg fill='%23262219' stroke='%23F5F1E8' stroke-opacity='.06'%3E%3Ccircle cx='0' cy='0' r='27'/%3E%3Ccircle cx='0' cy='0' r='20'/%3E%3Ccircle cx='0' cy='0' r='13'/%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='60' cy='0' r='27'/%3E%3Ccircle cx='60' cy='0' r='20'/%3E%3Ccircle cx='60' cy='0' r='13'/%3E%3Ccircle cx='60' cy='0' r='6'/%3E%3Ccircle cx='120' cy='0' r='27'/%3E%3Ccircle cx='120' cy='0' r='20'/%3E%3Ccircle cx='120' cy='0' r='13'/%3E%3Ccircle cx='120' cy='0' r='6'/%3E%3Ccircle cx='30' cy='30' r='27'/%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3Ccircle cx='30' cy='30' r='13'/%3E%3Ccircle cx='30' cy='30' r='6'/%3E%3Ccircle cx='90' cy='30' r='27'/%3E%3Ccircle cx='90' cy='30' r='20'/%3E%3Ccircle cx='90' cy='30' r='13'/%3E%3Ccircle cx='90' cy='30' r='6'/%3E%3Ccircle cx='0' cy='60' r='27'/%3E%3Ccircle cx='0' cy='60' r='20'/%3E%3Ccircle cx='0' cy='60' r='13'/%3E%3Ccircle cx='0' cy='60' r='6'/%3E%3Ccircle cx='60' cy='60' r='27'/%3E%3Ccircle cx='60' cy='60' r='20'/%3E%3Ccircle cx='60' cy='60' r='13'/%3E%3Ccircle cx='60' cy='60' r='6'/%3E%3Ccircle cx='120' cy='60' r='27'/%3E%3Ccircle cx='120' cy='60' r='20'/%3E%3Ccircle cx='120' cy='60' r='13'/%3E%3Ccircle cx='120' cy='60' r='6'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--kinari);
  text-align: center;
  overflow: hidden;
}
/* @property で型付けした --breath がゆっくり伸縮する（呼吸のリズム） */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 62%,
    color-mix(in oklab, var(--matsuba) 32%, transparent),
    transparent var(--breath)
  );
  animation: breath 7s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes breath {
  from { --breath: 240px; }
  to   { --breath: 460px; }
}

.cta__enso {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -54%;
  width: min(420px, 80vw);
  rotate: -80deg;
  opacity: 0.16;
  pointer-events: none;
}
.cta__enso circle { stroke: var(--kinari); }

.cta__content { position: relative; z-index: 1; }
.cta__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.7;
  margin-bottom: 26px;
}
.cta__body {
  font-size: 1rem;
  line-height: 2.3;
  color: color-mix(in oklab, var(--kinari) 85%, var(--sumi));
  margin-bottom: 44px;
}
.cta__actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}
.cta__sub {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: color-mix(in oklab, var(--kinari) 65%, var(--sumi));
}

/* =====================================================
   フッター
   ===================================================== */
.footer {
  background-color: var(--sumi);
  color: color-mix(in oklab, var(--kinari) 75%, var(--sumi));
  padding: 60px 0 30px;
  border-top: 1px solid color-mix(in oklab, var(--kinari) 12%, transparent);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-bottom: 40px;
  margin-bottom: 28px;
  border-bottom: 1px solid color-mix(in oklab, var(--kinari) 10%, transparent);
}
.footer__brand { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; }
.brand__hanko--footer { grid-row: 1 / span 2; }
.footer__name { font-family: var(--font-mincho); letter-spacing: 0.16em; color: var(--kinari); }
.footer__tagline { font-size: 0.76rem; letter-spacing: 0.14em; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__nav a {
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  transition: color 0.25s ease;
}
.footer__nav a:hover { color: var(--kinari); }
.footer__copy {
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: color-mix(in oklab, var(--kinari) 45%, var(--sumi));
}

/* =====================================================
   予約ダイアログ（<dialog> + @starting-style）
   ===================================================== */
.booking {
  width: min(480px, calc(100vw - 40px));
  border: none;
  border-radius: 6px;
  background-color: var(--washi);
  color: var(--text);
  padding: clamp(28px, 5vw, 40px);
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.28);
}
.booking::backdrop {
  background-color: color-mix(in oklab, var(--sumi) 55%, transparent);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
/* 開いた瞬間のフェード＋浮き上がり */
.booking, .booking::backdrop {
  opacity: 1;
  transition: opacity 0.3s ease, translate 0.3s ease, overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}
@starting-style {
  .booking[open] { opacity: 0; translate: 0 16px; }
  .booking[open]::backdrop { opacity: 0; }
}

.booking__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-2);
  cursor: pointer;
}
.booking__close:hover { color: var(--bengara); }

.booking__title {
  font-family: var(--font-mincho);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.booking__lead { font-size: 0.86rem; color: var(--text-2); margin-bottom: 26px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 7px;
  color: var(--text-2);
  transition: color 0.2s ease;
}
/* :has() — 入力中の項目だけラベルが色づく */
.field:has(:focus-visible) label { color: var(--bengara); }

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background-color: var(--kinari);
  font-family: var(--font-gothic);
  font-size: 0.95rem;
  color: var(--text);
}
.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--bengara);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--bengara) 15%, transparent);
}

.booking__submit { width: 100%; margin-top: 8px; }
.booking__note { font-size: 0.76rem; color: var(--text-2); margin-top: 14px; text-align: center; }

.booking__thanks { text-align: center; padding-block: 12px; }
.booking__thanks-hanko {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 7px;
  background-color: var(--bengara);
  color: var(--kinari);
  font-family: var(--font-mincho);
  font-size: 1.9rem;
  margin-bottom: 18px;
}
.booking__thanks p { font-size: 0.92rem; color: var(--text-2); margin-bottom: 14px; }
.booking__thanks .btn { margin-top: 8px; }

/* =====================================================
   ユーティリティ・レスポンシブ
   ===================================================== */
.sp-only { display: none; }

@media (max-width: 960px) {
  .sec-label { display: none; }

  .hero { grid-template-columns: 1fr; }
  .hero__visual { max-height: 44svh; }
  .hero__panel { padding-top: 56px; }
  .hero__enso { top: 28px; }

  .studio__grid,
  .instructor__grid,
  .access__grid { grid-template-columns: 1fr; }
  .instructor__figure { max-width: 420px; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
}

@media (max-width: 640px) {
  .sp-only { display: inline; }
  :root { --sec-pad: 72px; }

  .hero__panel {
    grid-template-columns: 1fr auto;
    gap: 16px 20px;
    padding-inline: 22px;
  }
  .hero__title { font-size: clamp(2.2rem, 11vw, 2.8rem); letter-spacing: 0.16em; }
  .hero__scroll { display: none; }

  .brand__place { display: none; }

  .flow__step { grid-template-columns: 52px 1fr; gap: 16px; }
  .flow__num { width: 52px; height: 52px; font-size: 1.15rem; }
  .flow__step:not(:last-child)::after { left: 26px; }

  .pricing__table th, .pricing__table td { padding: 18px 10px; }
  .price { font-size: 1.2rem; }
  .pricing__badge { display: block; width: fit-content; margin: 6px 0 0; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__brand { justify-items: center; }
  .footer__nav { justify-content: center; gap: 14px 18px; }
}

/* =====================================================
   アクセシビリティ：動きを控えたい人への配慮
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; translate: none; }
  .hero__visual img { animation: none; }
}
