/* 039 しらべピアノ教室 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f7f7f5;
  --c-gray: #e9e9e6;
  --c-dark: #161616;
  --c-main: #1f1f1f;
  --c-accent: #9a9a9a;
  --c-accent-text: #5b5b5b;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #d9d9d5;
  --font: "Zen Kaku Gothic New", sans-serif;
  --font-ja: "Zen Old Mincho", serif;
  --font-en: "Cormorant Garamond", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 2; letter-spacing: .04em; color: var(--c-text); background: var(--c-bg); }
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; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.label { font-family: var(--font-en); font-size: 20px; letter-spacing: .12em; color: var(--c-accent-text); margin-bottom: 12px; }
.label--light { color: var(--c-accent); }
.h2 { font-family: var(--font-ja); font-weight: 700; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.6; letter-spacing: .08em; color: var(--c-main); margin-bottom: 28px; }
.h2--light { color: #fff; }
.note { margin-top: 20px; font-size: 15px; color: var(--c-sub); }
.sp-only { display: inline; }
@media (min-width: 768px) { .sp-only { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; text-decoration: none; letter-spacing: .1em; white-space: nowrap; flex: none; transition: background-color .3s, color .3s; }
.btn--dark { background: var(--c-dark); color: #fff; border: 1px solid var(--c-dark); }
.btn--dark:hover, .btn--dark:focus-visible { background: #fff; color: var(--c-dark); }
.btn--lg { min-height: 64px; padding: 0 44px; font-size: 17px; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background-color .4s, box-shadow .4s; }
.header.is-scrolled { background: rgba(247, 247, 245, .94); box-shadow: 0 1px 0 var(--c-line); }
.header__inner { display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 12px 0 20px; max-width: 1440px; margin: 0 auto; }
.logo { display: flex; align-items: baseline; gap: 12px; min-height: 48px; align-items: center; text-decoration: none; color: var(--c-main); white-space: nowrap; flex: none; }
.logo__en { font-family: var(--font-en); font-style: italic; font-weight: 600; font-size: 28px; letter-spacing: .02em; }
.logo__ja { font-family: var(--font-ja); font-weight: 700; font-size: 15px; letter-spacing: .12em; }
@media (max-width: 420px) { .logo__ja { display: none; } }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 16px; 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; letter-spacing: .12em; color: var(--c-main); }
  .gnav a:hover { color: var(--c-accent-text); }
  .header__btn { margin-left: 0; padding: 0 24px; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; 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: 22px; height: 1.5px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.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: 0; right: 0; top: 100%; background: var(--c-bg); padding: 8px 20px 24px; display: flex; flex-direction: column; box-shadow: 0 16px 32px rgba(0, 0, 0, .12); }
.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: 700; border-bottom: 1px solid var(--c-line); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 演出①（A05）：せり上がる写真と、グラデで浮かぶ教室名 ===== */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; background: var(--c-bg); }
.hero__word {
  position: absolute; z-index: 0; left: 0; right: 0; top: 96px; text-align: center;
  font-family: var(--font-en); font-style: italic; font-weight: 500; font-size: 27vw; line-height: 1; letter-spacing: -.01em;
  color: var(--c-main);
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero__word span { display: inline-block; padding: 0 .08em; background: linear-gradient(180deg, #c9c9c4 0%, #6b6b6b 45%, #161616 100%); background-size: 100% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.hero__photo { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 66%; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
/* 上の縁を霧のようにぼかして、白い画面に溶かす */
.hero__photo { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%); mask-image: linear-gradient(180deg, transparent 0%, #000 34%); }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22, 22, 22, .72) 0%, rgba(22, 22, 22, .25) 42%, rgba(22, 22, 22, 0) 62%), linear-gradient(90deg, rgba(22, 22, 22, .6) 0%, rgba(22, 22, 22, .35) 35%, rgba(22, 22, 22, 0) 60%); }
.hero__copy { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 40px; color: #fff; }
.hero__en { font-family: var(--font-en); font-size: 20px; letter-spacing: .1em; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.hero__title { font-family: var(--font-ja); font-weight: 700; font-size: clamp(36px, 6vw, 72px); line-height: 1.45; letter-spacing: .1em; margin: 4px 0 12px; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero__lead { max-width: 26em; font-size: 16px; color: #f2f2f2; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
@media (min-width: 768px) { .hero__word { top: 80px; font-size: 24vw; } .hero__photo { height: 70%; } }
@media (min-width: 1080px) {
  .hero__word { top: 70px; font-size: 22vw; }
  .hero__photo { height: 72%; }
  .hero__copy { left: 6vw; right: auto; bottom: 64px; }
}

/* ===== 演出②（E07）：円に沿って並ぶ文字 ===== */
.about { padding: 112px 20px; overflow: hidden; }
.about__inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 56px; }
.ring { position: relative; width: min(84vw, 460px); aspect-ratio: 1; margin: 0 auto; }
.ring__photo { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: cover; border-radius: 50%; }
.ring__text { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring__text text { font-family: var(--font-en); font-weight: 600; font-size: 21px; fill: var(--c-main); }
.about__body p + p { margin-top: 16px; }
.about__sign { font-family: var(--font-ja); font-weight: 700; color: var(--c-main); margin-top: 28px !important; }
@media (min-width: 900px) {
  .about { padding: 160px 6vw; }
  .about__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
  .ring { width: 100%; max-width: 500px; }
}

/* 鍵盤の帯（飾り） */
.keys { height: 96px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='96'%3E%3Crect width='280' height='96' fill='%23fff'/%3E%3Cg stroke='%23c9c9c4' stroke-width='1.5'%3E%3Cpath d='M40 0v96M80 0v96M120 0v96M160 0v96M200 0v96M240 0v96M280 0v96'/%3E%3C/g%3E%3Cg fill='%23161616'%3E%3Crect x='27' y='0' width='26' height='58' rx='2'/%3E%3Crect x='67' y='0' width='26' height='58' rx='2'/%3E%3Crect x='147' y='0' width='26' height='58' rx='2'/%3E%3Crect x='187' y='0' width='26' height='58' rx='2'/%3E%3Crect x='227' y='0' width='26' height='58' rx='2'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / auto 100%; border-top: 1px solid var(--c-line); }

/* ===== 演出③（C01）：コースが横に流れる ===== */
.courses { background: var(--c-dark); color: #e6e6e3; padding: 112px 0 72px; overflow: hidden; }
.courses__head { padding: 0 20px; margin-bottom: 40px; }
.courses__lead { color: #d4d4d0; }
.courses__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
.courses__track { display: flex; gap: 20px; padding: 0 20px; width: max-content; }
.course { width: 80vw; max-width: 520px; scroll-snap-align: center; background: #222; border: 1px solid #333; }
.course img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.course__body { padding: 24px; }
.course__no { font-family: var(--font-en); font-style: italic; font-size: 40px; line-height: 1; color: var(--c-accent); }
.course h3 { font-family: var(--font-ja); font-weight: 700; font-size: 22px; color: #fff; margin: 12px 0 4px; letter-spacing: .08em; }
.course__who { font-size: 15px; color: #cfcfca; border-bottom: 1px solid #3a3a3a; padding-bottom: 12px; margin-bottom: 12px; }
.course p:last-child { color: #e6e6e3; }
.courses__bar { margin: 32px 20px 0; height: 1px; background: #3a3a3a; }
.courses__bar span { display: block; height: 100%; width: 100%; background: #e6e6e3; transform-origin: 0 50%; }
@media (min-width: 1080px) {
  .courses { padding: 0; }
  .courses__head { padding: 120px 6vw 0; margin-bottom: 48px; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0 48px; }
  .courses__head .label { grid-column: 1 / -1; }
  .courses__head .h2 { margin-bottom: 0; }
  .courses__track { padding: 0 6vw; gap: 40px; }
  .course { width: 38vw; max-width: 600px; }
  .courses__bar { margin: 40px 6vw 0; padding-bottom: 0; }
  .courses { padding-bottom: 96px; }
}
.is-motion-pc .courses { height: 100vh; padding-bottom: 0; display: flex; flex-direction: column; justify-content: center; }
.is-motion-pc .courses__head { padding-top: 0; }
.is-motion-pc .courses__viewport { overflow: visible; scroll-snap-type: none; }
.is-motion-pc .course img { aspect-ratio: 16 / 9; }

/* ===== レッスン ===== */
.lesson { padding: 112px 20px; background: var(--c-gray); }
.lesson__inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 48px; }
.lesson__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.lesson__body > p { margin-bottom: 32px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid #c9c9c4; }
.steps__no { font-family: var(--font-en); font-style: italic; font-size: 36px; line-height: 1; color: var(--c-main); }
.steps h3 { font-family: var(--font-ja); font-weight: 700; font-size: 19px; color: var(--c-main); }
@media (min-width: 900px) {
  .lesson { padding: 160px 6vw; }
  .lesson__inner { grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
}

/* ===== 月謝 ===== */
.price { padding: 112px 0; }
.fees div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.fees dt { color: var(--c-main); }
.fees dd { font-family: var(--font-ja); font-weight: 700; color: var(--c-main); }

/* ===== 体験レッスン（E07 もう一度：ボタンのまわりを回る円い文字） ===== */
.trial { padding: 112px 20px 128px; text-align: center; background: var(--c-gray); overflow: hidden; }
.trial__title { font-family: var(--font-ja); font-weight: 700; font-size: clamp(26px, 4vw, 44px); line-height: 1.6; letter-spacing: .08em; color: var(--c-main); margin-bottom: 16px; }
.trial__btnwrap { position: relative; display: inline-block; margin-top: 64px; }
.trial__btnwrap .btn { position: relative; z-index: 1; }
.trial__ring { position: absolute; z-index: 0; width: 132px; height: 132px; right: -54px; top: -78px; animation: spin 24s linear infinite; }
.trial__ring text { font-family: var(--font-en); font-weight: 600; font-size: 17px; fill: var(--c-main); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) { .trial__btnwrap { margin-top: 112px; } .trial__btnwrap .btn { padding: 0 28px; } .trial__ring { right: -14px; top: -96px; width: 112px; height: 112px; } }

/* ===== アクセス ===== */
.access { padding: 112px 0; }
.access__inner { display: grid; gap: 24px; }
.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: 700; 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: var(--c-dark); color: #e6e6e3; padding: 72px 20px 32px; text-align: center; font-size: 15px; }
.footer__logo { font-family: var(--font-en); font-style: italic; font-size: 52px; line-height: 1; color: #fff; }
.footer__ja { font-family: var(--font-ja); font-weight: 700; letter-spacing: .2em; margin-top: 8px; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin: 24px 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; }
  .trial__ring { animation: none; }
}
