/* 042 ヨガスタジオ 葉音 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f4f6ef;
  --c-main: #2f5d46;
  --c-accent: #7fb08a;
  --c-accent-text: #2f6b4a;
  --c-cloud1: #cfe6c8;
  --c-cloud2: #e7efc4;
  --c-cloud3: #bfe0d8;
  --c-ink-wait: #b8c4b6; /* まだ読んでいない文字（E02） */
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #d6dfcf;
  --font: "Zen Kaku Gothic New", sans-serif;
  --font-ja: "Klee One", serif;
  --font-en: "Cormorant Garamond", serif;
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--c-bg); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 2; letter-spacing: .04em; color: var(--c-text); background: transparent; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }
main, .footer { position: relative; z-index: 1; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.en { font-family: var(--font-en); font-style: italic; font-size: 21px; letter-spacing: .04em; color: var(--c-accent-text); margin-bottom: 4px; }
.en--light { color: #e3efd9; }
.h2 { font-family: var(--font-ja); font-weight: 600; font-size: clamp(26px, 3.8vw, 40px); line-height: 1.55; color: var(--c-main); margin-bottom: 28px; }
.note { margin-top: 16px; font-size: 15px; color: var(--c-sub); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; text-decoration: none; letter-spacing: .08em; font-weight: 500; white-space: nowrap; flex: none; transition: background-color .4s, color .4s; }
.btn--green { background: var(--c-main); color: #fff; }
.btn--green:hover, .btn--green:focus-visible { background: #244a37; }
.btn--white { background: #fff; color: var(--c-main); }
.btn--white:hover, .btn--white:focus-visible { background: var(--c-cloud2); }
.btn--lg { min-height: 60px; padding: 0 40px; font-size: 17px; }

/* ===== 演出①（D03）：色の雲 ===== */
.clouds { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cloud { position: absolute; display: block; filter: blur(60px); opacity: .85; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; will-change: transform; }
.cloud--1 { width: 70vmax; height: 60vmax; background: var(--c-cloud1); left: -24vmax; top: -18vmax; animation: drift1 38s ease-in-out infinite alternate; }
.cloud--2 { width: 56vmax; height: 50vmax; background: var(--c-cloud2); right: -20vmax; top: 18vh; animation: drift2 44s ease-in-out infinite alternate; }
.cloud--3 { width: 60vmax; height: 52vmax; background: var(--c-cloud3); left: 10vw; bottom: -30vmax; animation: drift3 52s ease-in-out infinite alternate; }
.cloud--4 { width: 34vmax; height: 30vmax; background: #dcebd0; right: 10vw; bottom: 8vh; animation: drift1 34s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { 0% { transform: translate(0, 0) rotate(0deg) scale(1); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; } 100% { transform: translate(12vw, 10vh) rotate(40deg) scale(1.15); border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%; } }
@keyframes drift2 { 0% { transform: translate(0, 0) rotate(0deg) scale(1); } 100% { transform: translate(-14vw, 16vh) rotate(-30deg) scale(.9); border-radius: 35% 65% 50% 50% / 60% 40% 60% 40%; } }
@keyframes drift3 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(10vw, -14vh) scale(1.2); border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; } }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(244, 246, 239, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header__inner { display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 12px 0 20px; max-width: 1440px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; color: var(--c-main); white-space: nowrap; flex: none; }
.logo__leaf { width: 28px; height: 28px; }
.logo__ja { font-family: var(--font-ja); font-weight: 600; font-size: 24px; letter-spacing: .1em; }
.logo__en { font-family: var(--font-en); font-style: italic; font-size: 18px; color: var(--c-accent-text); }
@media (max-width: 400px) { .logo__en { display: none; } }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (min-width: 1080px) {
  .header__inner { height: 84px; padding: 0 48px; gap: 32px; }
  .gnav { display: flex; gap: 28px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; color: var(--c-main); }
  .gnav a:hover { color: var(--c-accent-text); }
  .header__btn { margin-left: 0; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .7); color: var(--c-main); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -6px; } .spmenu__bar::after { top: 6px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 12px; right: 12px; top: calc(100% + 4px); background: var(--c-bg); border-radius: var(--radius); padding: 8px 20px 16px; display: flex; flex-direction: column; box-shadow: 0 16px 40px rgba(47, 93, 70, .18); }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; color: var(--c-main); text-decoration: none; font-family: var(--font-ja); font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--c-line); }
.spmenu__nav a:last-child { border-bottom: 0; }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 演出②（A03）：全画面の写真 → 角丸のカード ===== */
.hero__stage { position: relative; height: 100vh; min-height: 580px; }
.hero__frame { position: absolute; top: 80px; left: 20px; right: 20px; bottom: 20px; border-radius: var(--radius); overflow: hidden; background: var(--c-main); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 40, 30, .7) 0%, rgba(20, 40, 30, .2) 50%, rgba(20, 40, 30, 0) 70%), linear-gradient(90deg, rgba(20, 40, 30, .5) 0%, rgba(20, 40, 30, .2) 40%, rgba(20, 40, 30, 0) 60%); }
.hero__copy { position: absolute; z-index: 2; left: 44px; right: 44px; bottom: 52px; color: #fff; }
.hero__en { font-family: var(--font-en); font-style: italic; font-size: 22px; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.hero__title { font-family: var(--font-ja); font-weight: 600; font-size: clamp(40px, 7vw, 88px); line-height: 1.35; letter-spacing: .08em; margin: 4px 0 8px; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero__lead { font-size: 16px; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
@media (min-width: 1080px) {
  .hero__frame { top: 104px; left: 48px; right: 48px; bottom: 40px; border-radius: 32px; }
  .hero__copy { left: 104px; bottom: 96px; }
}
/* 動く版：最初は画面いっぱい（JSが角丸のカードまで縮める） */
.is-motion .hero__frame { top: 0; left: 0; right: 0; bottom: 0; border-radius: 0; }

/* ===== 演出③（E02）：1字ずつ濃く染まる文章 ===== */
.mind { padding: 120px 20px; }
.mind__inner { max-width: 880px; margin: 0 auto; }
.mind__text { font-family: var(--font-ja); font-weight: 600; font-size: clamp(20px, 2.6vw, 30px); line-height: 2.1; letter-spacing: .06em; color: var(--c-main); }
.mind__text em { font-style: normal; color: var(--c-accent-text); background: linear-gradient(transparent 70%, rgba(127, 176, 138, .35) 0); }
.ink-c { transition: color .25s; }
.is-motion .ink-c { color: var(--c-ink-wait); }
.is-motion .ink-c.is-on { color: inherit; }
@media (min-width: 900px) { .mind { padding: 200px 6vw; } }

/* ===== クラス ===== */
.classes { padding: 40px 0 112px; }
.cards { display: grid; gap: 24px; }
.card { background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--radius); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { padding: 24px; }
.card__time { font-size: 15px; color: var(--c-accent-text); font-weight: 500; }
.card h3 { font-family: var(--font-ja); font-weight: 600; font-size: 24px; color: var(--c-main); margin: 4px 0 8px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 32px; } .classes { padding-bottom: 160px; } }

/* ===== 時間割・料金 ===== */
.schedule { padding: 0 0 112px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.timetable { width: 100%; min-width: 560px; border-collapse: collapse; background: rgba(255, 255, 255, .7); }
.timetable th, .timetable td { padding: 14px 8px; text-align: center; border-bottom: 1px solid var(--c-line); font-size: 15px; }
.timetable thead th { font-family: var(--font-ja); font-weight: 600; color: var(--c-main); font-size: 17px; }
.timetable tbody th { color: var(--c-main); font-weight: 500; }
.timetable td:not(:empty) { color: var(--c-main); font-weight: 500; }
.prices { display: grid; gap: 12px; margin-top: 32px; }
.prices li { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 24px; background: rgba(255, 255, 255, .62); border-radius: 999px; }
.prices__v { font-family: var(--font-ja); font-weight: 600; font-size: 22px; color: var(--c-main); }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ===== レッスンのあと ===== */
.after { padding: 0 0 120px; }
.after__inner { display: grid; gap: 40px; }
.after__photo { border-radius: var(--radius); overflow: hidden; }
.after__photo img { width: 100%; object-fit: cover; }
.after__photo--tea img { aspect-ratio: 4 / 5; }
.after__photo--props { margin-top: 32px; max-width: 320px; border-radius: 50%; }
.after__photo--props img { aspect-ratio: 1; }
.after__body p + p { margin-top: 16px; }
@media (min-width: 900px) { .after__inner { grid-template-columns: 1fr 1.1fr; gap: 96px; align-items: center; } }

/* ===== 体験 ===== */
.trial { padding: 0 12px; }
.trial__inner { background: var(--c-main); color: #fff; border-radius: 40px; padding: 96px 24px; text-align: center; max-width: 1280px; margin: 0 auto; }
.trial__title { font-family: var(--font-ja); font-weight: 600; font-size: clamp(26px, 4.4vw, 46px); line-height: 1.6; margin-bottom: 16px; }
.trial p { margin-bottom: 32px; color: #f0f5ec; }

/* ===== アクセス ===== */
.access { padding: 112px 0; }
.access__inner { display: grid; gap: 16px; }
.info div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.info dt { font-family: var(--font-ja); font-weight: 600; color: var(--c-main); }
@media (min-width: 768px) { .access__inner { grid-template-columns: 1fr 2fr; gap: 64px; } .info div { grid-template-columns: 7em 1fr; gap: 24px; } }

/* ===== フッター ===== */
.footer { background: #23463a; color: #e8f0e2; padding: 64px 20px 32px; text-align: center; font-size: 15px; }
.footer__logo { font-family: var(--font-ja); font-weight: 600; font-size: 36px; letter-spacing: .2em; color: #fff; }
.footer__en { font-family: var(--font-en); font-style: italic; font-size: 20px; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin: 16px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__fiction { margin-top: 24px; }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .cloud { animation: none; }
}
