/* 072 墨紫書院 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #0e0b12;
  --c-panel: #18131f;
  --c-paper: #f5f2ee;
  --c-accent: #a98bd6;
  --c-accent-text: #5b3c8c;
  --c-light: #f3eff8;
  --c-on-dark: #d9d3e2;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #2e2738;
  --c-line-paper: #ddd6cc;
  --font: "Noto Sans JP", sans-serif;
  --font-brush: "Yuji Boku", serif;
  --font-en: "Cinzel", 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-on-dark); background: var(--c-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.en { font-family: var(--font-en); font-weight: 700; font-size: 16px; letter-spacing: .32em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 16px; }
.en--dark { color: var(--c-accent-text); }
.h2 { font-family: var(--font-brush); font-size: clamp(32px, 4.4vw, 60px); line-height: 1.4; color: var(--c-light); margin-bottom: 28px; letter-spacing: .06em; }
.h2--dark { color: #15111b; }
.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 28px; font-weight: 700; text-decoration: none; letter-spacing: .12em; white-space: nowrap; flex: none; transition: background-color .25s, color .25s; }
.btn--accent { background: var(--c-accent); color: var(--c-bg); }
.btn--accent:hover, .btn--accent:focus-visible { background: #fff; }
.btn--lg { min-height: 60px; padding: 0 40px; font-size: 17px; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: #fff; background: rgba(14, 11, 18, .86); border-bottom: 1px solid var(--c-line); }
.header__inner { display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 20px; }
.logo { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; white-space: nowrap; flex: none; }
.logo__ja { font-family: var(--font-brush); font-size: 26px; letter-spacing: .1em; }
.logo__en { font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: .3em; color: var(--c-accent); }
.gnav { display: none; }
.header__btn { margin-left: auto; }
@media (max-width: 599px) { .logo__en { display: none; } }
@media (min-width: 1080px) {
  .header__inner { height: 80px; padding: 0 48px; gap: 36px; }
  .gnav { display: flex; gap: 32px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; letter-spacing: .14em; }
  .gnav a:hover { color: var(--c-accent); }
  .header__btn { margin-left: 0; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.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: 24px; height: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -8px; } .spmenu__bar::after { top: 8px; }
.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; border-top: 1px solid var(--c-line); }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; text-decoration: none; border-bottom: 1px solid var(--c-line); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== メインビジュアル（完成形＝全画面の写真） ===== */
.hero { background: var(--c-bg); }
.hero__stage { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero__window { position: absolute; inset: 0; overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; }
.hero__window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 11, 18, .1) 30%, rgba(14, 11, 18, .82) 100%), linear-gradient(0deg, rgba(14, 11, 18, .7) 0%, rgba(14, 11, 18, 0) 45%); }
.hero__text { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 56px; color: #fff; }
.hero__title { font-family: var(--font-brush); font-size: clamp(42px, 7vw, 104px); line-height: 1.25; letter-spacing: .04em; text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.hero__lead { margin: 16px 0 28px; font-size: 17px; color: #f3eff8; }
.hero__intro { display: none; }
.hero__rec { display: none; }
@media (min-width: 1080px) {
  .hero__text { left: auto; right: 7vw; bottom: auto; top: calc(50% + 40px); transform: translateY(-50%); display: grid; grid-template-columns: auto auto; gap: 0 32px; align-items: start; }
  .hero__title { writing-mode: vertical-rl; font-size: min(5.6vw, 9vh); line-height: 1.5; }
  .hero__lead { writing-mode: vertical-rl; margin: 0; line-height: 2.2; padding-top: 2em; }
  .hero__text .btn { grid-column: 1 / -1; margin-top: 32px; justify-self: end; }
}
/* 動画風：写真がゆっくり寄りながら流れる（JSが is-motion を付けたときだけ） */
.is-motion .hero__img { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: scale(1.04) translateX(1.5%); }
  to { transform: scale(1.14) translateX(-2.5%); }
}
.is-motion .hero__rec { display: flex; align-items: center; gap: 10px; position: absolute; z-index: 2; left: 24px; top: 96px; font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: .2em; color: #fff; }
.is-motion .hero__rec span { width: 10px; height: 10px; border-radius: 50%; background: #e0487b; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.is-motion .hero__intro { display: block; position: absolute; z-index: 1; left: 50%; top: calc(50% + 24vmin + 28px); transform: translateX(-50%); font-family: var(--font-en); font-weight: 700; font-size: 16px; letter-spacing: .5em; color: var(--c-accent); white-space: nowrap; }

/* ===== 教室について（半紙の白） ===== */
.about { background: var(--c-paper); color: var(--c-text); padding: 112px 20px; }
.about__inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 48px; }
.about__text p + p { margin-top: 16px; }
.about__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) { .about__inner { grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; } }

/* ===== E01：くり抜き文字（完成形は止まった写真が字の中に） ===== */
.ink { position: relative; padding: 96px 20px 112px; overflow: hidden; display: grid; gap: 24px; justify-items: center; text-align: center; }
.ink__char { font-family: var(--font-brush); font-size: 78vw; line-height: 1; color: var(--c-accent); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .ink__char { background: linear-gradient(rgba(190, 168, 226, .42), rgba(190, 168, 226, .42)), url("images/ink.webp") 50% 30% / cover; -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.ink__text { max-width: 34em; }
@media (min-width: 1080px) {
  .ink { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; gap: 4vw; padding: 120px 8vw; }
  .ink__char { font-size: min(46vw, 82vh); }
}

/* ===== コース（Swiper） ===== */
.courses { padding: 112px 0; background: var(--c-panel); }
.courses__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; padding: 0 20px; margin-bottom: 40px; }
.courses__head .h2 { margin: 0; }
.courses__head .en { width: 100%; margin-bottom: 0; }
.courses__ctrl { display: none; gap: 8px; margin-left: auto; }
.is-swiper .courses__ctrl { display: flex; }
.ctrl { min-width: 48px; min-height: 48px; padding: 0 14px; border: 1px solid var(--c-accent); background: transparent; color: #fff; font: inherit; font-size: 16px; cursor: pointer; }
.ctrl:hover, .ctrl:focus-visible { background: var(--c-accent); color: var(--c-bg); }
.ctrl--pause { font-size: 15px; }
.course { background: var(--c-bg); border: 1px solid var(--c-line); height: auto; }
.course img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.course__body { padding: 24px; }
.course__no { font-family: var(--font-en); font-weight: 700; font-size: 22px; color: var(--c-accent); letter-spacing: .2em; }
.course h3 { font-family: var(--font-brush); font-size: 32px; color: #fff; margin: 4px 0 8px; }
.course__price { margin-top: 12px; color: var(--c-accent); font-weight: 700; }
.courses__swiper { padding: 0 20px 72px; }
/* Swiper が動く前・JSなし：指で横に送れる並び */
.courses__swiper:not(.swiper-initialized) .swiper-wrapper { overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 12px; }
.courses__swiper:not(.swiper-initialized) .course { width: 82%; max-width: 420px; scroll-snap-align: start; }
/* 点（押せる大きさ 44px。見える丸は小さく） */
.courses__dots.swiper-pagination-bullets { bottom: 8px; }
.courses__dots .swiper-pagination-bullet { width: 44px; height: 44px; margin: 0 !important; background: transparent; opacity: 1; position: relative; border-radius: 0; }
.courses__dots .swiper-pagination-bullet::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 1px solid var(--c-accent); border-radius: 50%; transition: background-color .3s, width .3s; }
.courses__dots .swiper-pagination-bullet-active::after { background: var(--c-accent); }
.courses__dots .swiper-pagination-bullet:focus-visible { outline: 2px solid var(--c-accent); }
@media (min-width: 1080px) {
  .courses__head { padding: 0 8vw; }
  .courses__swiper { padding: 0 8vw 80px; }
}

/* ===== 流れ・料金（半紙の白） ===== */
.price { background: var(--c-paper); color: var(--c-text); padding: 112px 20px; }
.price__inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 56px; }
.flow li { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--c-line-paper); }
.flow__t { font-family: var(--font-en); font-weight: 700; color: var(--c-accent-text); flex: none; width: 4em; }
.fees div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--c-line-paper); }
.fees dt { font-weight: 700; color: #15111b; }
@media (min-width: 900px) {
  .price__inner { grid-template-columns: 1fr 1fr; gap: 96px; }
  .fees div { grid-template-columns: 1fr auto; gap: 24px; }
}

/* ===== 体験 ===== */
.trial { position: relative; padding: 140px 20px; text-align: center; overflow: hidden; background: var(--c-bg); }
.trial__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.trial::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 50% 50%, rgba(14, 11, 18, .7), rgba(14, 11, 18, .92)); }
.trial__inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; color: #fff; }
.trial__title { font-family: var(--font-brush); font-size: clamp(56px, 10vw, 140px); line-height: 1.2; margin-bottom: 16px; }
.trial__inner .btn { margin-top: 32px; }
.trial__tel { margin-top: 20px; font-size: 15px; }

.access { background: var(--c-paper); color: var(--c-text); padding: 96px 20px; }
.access__inner { max-width: 960px; margin: 0 auto; }

.footer { background: var(--c-bg); padding: 64px 20px 40px; text-align: center; font-size: 15px; }
.footer__logo { font-family: var(--font-brush); font-size: 32px; color: #fff; letter-spacing: .1em; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin: 16px 0 24px; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }

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