/* 112 写真教室 あわい — K07 目次が横に固定された読み物。PC は左に目次（いまの章を示す）、右に長い読み物。スマホは目次を上の開閉に。
   色と書体は共通の13変数だけ（筆記体 Allura だけ --font-script を足した：1語の飾り用）。墨の区切りは .t-ink が同じ名前の変数を上書き */
:root {
  --c-bg: #f7f6f3;
  --c-bg-alt: #ecebe6;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #cfcdc7;
  --c-accent: #1c1c1c;
  --c-accent-text: #3a3a3a;
  --c-on-accent: #ffffff;
  --c-2: #8c8a85;
  --c-3: #1c1c1c;
  --font-ja: "Noto Sans JP", sans-serif;
  --font-head: "Shippori Mincho", "Noto Sans JP", serif;
  --font-en: "Josefin Sans", "Noto Sans JP", sans-serif;
  --font-script: "Allura", cursive;
  --header-h: 64px;
}
.t-ink { --c-bg: #1c1c1c; --c-bg-alt: #2a2a2a; --c-text: #f3f2ef; --c-sub: #d4d2cc; --c-line: #55534f; --c-accent: #f7f6f3; --c-accent-text: #f7f6f3; --c-on-accent: #1c1c1c; --c-3: #f7f6f3; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font-ja); font-size: 16px; line-height: 2.05; overflow-x: hidden; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dd, li, blockquote { word-break: auto-phrase; overflow-wrap: anywhere; }
h1, h2, h3, p, dl, dd, ol, ul, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ===== ヘッダー ===== */
.header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.header__inner { height: 100%; padding: 0 20px; display: flex; align-items: center; gap: 10px; position: relative; }
.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--c-3); white-space: nowrap; flex: none; min-height: 44px; justify-content: center; margin-right: auto; }
.logo__ja { font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.3; }
.logo__en { font-family: var(--font-en); font-size: 15px; letter-spacing: .4em; line-height: 1.2; color: var(--c-accent-text); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; background: var(--c-accent); color: var(--c-on-accent); font-family: var(--font-ja); font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap; flex: none; border: 0; cursor: pointer; letter-spacing: .06em; }
.btn--sm { min-height: 44px; padding: 0 16px; }
.btn--inv { margin-top: 8px; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--c-3); }
.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: 1px; 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; right: 0; top: 100%; width: min(100%, 360px); background: var(--c-bg); border: 1px solid var(--c-line); padding: 6px 24px 14px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; color: var(--c-text); text-decoration: none; border-bottom: 1px solid var(--c-line); }

/* ===== メインビジュアル（イラスト・図形） ===== */
.hero { padding: 28px 20px 56px; display: grid; gap: 22px; justify-items: center; max-width: 1200px; margin: 0 auto; }
.iris { width: min(78vw, 340px); height: auto; overflow: visible; }
.iris__ring { fill: none; stroke: var(--c-3); stroke-width: 1.2; }
.iris__ring--thin { stroke: var(--c-2); stroke-width: .8; }
.iris__ticks { fill: none; stroke: var(--c-2); stroke-width: 1; }
.iris__blades { fill: none; stroke: var(--c-3); stroke-width: 1.4; stroke-linecap: round; }
.glow0 { stop-color: var(--c-bg-alt); } .glow1 { stop-color: var(--c-bg); } .glow2 { stop-color: var(--c-bg); stop-opacity: 0; }
.hero__copy { text-align: center; }
.hero__en { font-family: var(--font-en); font-weight: 300; font-size: 15px; letter-spacing: .3em; color: var(--c-accent-text); margin-bottom: 8px; }
.hero__head { position: relative; padding-top: 74px; }
.script { position: absolute; left: 50%; top: -6px; translate: -50% 0; width: 220px; height: auto; overflow: visible; pointer-events: none; }
.script__word { font-family: var(--font-script); font-size: 150px; fill: var(--c-accent-text); stroke: var(--c-accent-text); stroke-width: 1.4; }
.hero__title { font-family: var(--font-head); font-weight: 500; font-size: clamp(34px, 9.4vw, 52px); line-height: 1.5; letter-spacing: .06em; color: var(--c-3); }
.hero__lead { margin: 14px 0 24px; }

/* E05：一筆書き（JS が is-motion を付けたときだけ・1回） */
.is-motion .script__word { stroke-dasharray: 1400; stroke-dashoffset: 1400; fill-opacity: 0; animation: draw 2.4s .4s ease-in-out forwards, fillin .9s 2.2s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }

/* ===== K07：目次＋読み物 ===== */
.read { max-width: 1100px; margin: 0 auto; padding: 0 20px 72px; }
.toc { border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); margin-bottom: 36px; }
.toc__sum { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-en); font-weight: 400; letter-spacing: .3em; color: var(--c-accent-text); }
.toc__sum::-webkit-details-marker { display: none; }
.toc__sum::after { content: "＋"; font-family: var(--font-ja); }
.toc[open] .toc__sum::after { content: "－"; }
.toc__list a { display: flex; align-items: baseline; gap: 14px; min-height: 48px; padding: 8px 0; color: var(--c-text); text-decoration: none; border-top: 1px solid var(--c-line); line-height: 1.6; }
.toc__list span { font-family: var(--font-en); font-size: 15px; letter-spacing: .12em; color: var(--c-accent-text); }
.toc__list a[aria-current="true"] { color: var(--c-3); font-weight: 500; }
.toc__list a[aria-current="true"] span { color: var(--c-3); }

.chap { padding: 12px 0 64px; }
.chap > p + p, .chap > .ph + p, .chap > p + .quote, .chap > .quote + p { margin-top: 18px; }
.chap__no { font-family: var(--font-en); font-weight: 300; font-size: 56px; line-height: 1; color: var(--c-2); letter-spacing: .04em; margin-bottom: 6px; }
.h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(28px, 7vw, 38px); line-height: 1.5; color: var(--c-3); margin-bottom: 18px; }
.ph { margin: 6px 0 22px; overflow: hidden; }
.ph img { width: 100%; height: auto; filter: grayscale(.85); }
.ph--sq { max-width: 380px; }
.quote { font-family: var(--font-head); font-weight: 500; font-size: clamp(22px, 5.6vw, 28px); line-height: 1.7; color: var(--c-3); border-left: 1px solid var(--c-3); padding: 4px 0 4px 20px; margin: 26px 0; }

/* 光の一日（B01：画面を止めずに場面が入れ替わる。タブで切り替え・CSSだけ） */
.day__radio { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.day__tabs { display: flex; margin: 22px 0 18px; border: 1px solid var(--c-line); }
.day__tab { flex: 1; min-height: 52px; display: grid; place-items: center; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--c-text); border-left: 1px solid var(--c-line); }
.day__tab:first-child { border-left: 0; }
#day-1:checked ~ .day__tabs [for="day-1"], #day-2:checked ~ .day__tabs [for="day-2"], #day-3:checked ~ .day__tabs [for="day-3"] { background: var(--c-accent); color: var(--c-on-accent); }
#day-1:focus-visible ~ .day__tabs [for="day-1"], #day-2:focus-visible ~ .day__tabs [for="day-2"], #day-3:focus-visible ~ .day__tabs [for="day-3"] { outline: 2px solid var(--c-accent-text); outline-offset: 2px; }
.day__panel { display: none; }
#day-1:checked ~ .day__panels .day__panel--1, #day-2:checked ~ .day__panels .day__panel--2, #day-3:checked ~ .day__panels .day__panel--3 { display: block; }
.day__panel h3 { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.6; color: var(--c-3); margin-bottom: 4px; }
.day__panel .ph { margin-bottom: 14px; }
.day__panel .ph img { aspect-ratio: 3 / 2; object-fit: cover; }

/* 講座（CSSだけの scroll-snap。矢印は JS の scrollBy だけ） */
.snap { margin: 20px -20px 0; padding: 0 20px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; -webkit-overflow-scrolling: touch; }
.snap:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
.snap__track { display: flex; gap: 16px; width: max-content; }
.course { flex: none; width: min(76vw, 270px); scroll-snap-align: start; border: 1px solid var(--c-line); background: var(--c-bg-alt); padding: 20px 20px 22px; line-height: 1.85; }
.course__kind { font-family: var(--font-en); font-size: 15px; letter-spacing: .3em; color: var(--c-accent-text); }
.course h3 { font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.5; color: var(--c-3); margin: 4px 0 8px; }
.course p:last-child { font-size: 15px; line-height: 1.85; color: var(--c-sub); }
.snap__ctrl { display: flex; gap: 12px; margin-top: 12px; }
.snap__arrow { width: 52px; height: 52px; border: 1px solid var(--c-accent); background: transparent; color: var(--c-accent-text); font-family: var(--font-ja); font-size: 20px; cursor: pointer; }
.snap__arrow:hover { background: var(--c-accent); color: var(--c-on-accent); }

/* 料金 */
.price { border-top: 1px solid var(--c-line); }
.price div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.price dt { font-size: 16px; }
.price dd { font-size: 15px; }
.price b { font-family: var(--font-head); font-weight: 600; font-size: 26px; color: var(--c-3); }
.note { font-size: 15px; color: var(--c-sub); margin-top: 14px; }

/* 体験レッスン（墨の区切り・1回だけ） */
.chap--ink { background: var(--c-bg); color: var(--c-text); padding: 40px 24px 44px; margin-top: 8px; }
.chap--ink .chap__no { color: var(--c-sub); }
.addr { font-size: 15px; color: var(--c-sub); margin-top: 20px; }

.footer { padding: 32px 20px 44px; text-align: center; background: var(--c-bg-alt); border-top: 1px solid var(--c-line); font-size: 15px; line-height: 1.9; }
.footer__logo { font-family: var(--font-head); font-size: 18px; color: var(--c-3); }
.footer__fiction { color: var(--c-sub); }

@media (min-width: 768px) {
  .header__inner { padding: 0 40px; }
  .hero { padding: 48px 40px 72px; }
  .iris { width: 380px; }
  .read { padding: 0 40px 96px; }
  .snap { margin-inline: 0; padding-inline: 0; }
}
@media (min-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) 460px; align-items: center; justify-items: start; gap: 56px; padding: 56px 80px 88px; }
  .hero__copy { text-align: left; order: -1; }
  .script { left: 0; translate: none; }
  .hero__title { font-size: clamp(44px, 4.6vw, 60px); }
  .iris { width: 460px; justify-self: end; }
  .read { display: grid; grid-template-columns: 240px minmax(0, 700px); column-gap: 72px; justify-content: center; align-items: start; padding-inline: 40px; }
  .toc { position: sticky; top: calc(var(--header-h) + 32px); border: 0; margin: 12px 0 0; border-left: 1px solid var(--c-line); padding-left: 0; }
  .toc__sum { pointer-events: none; padding: 0 0 12px 24px; }
  .toc__sum::after { content: none !important; }
  .toc__list a { border-top: 0; padding: 8px 0 8px 24px; margin-left: -1px; border-left: 1px solid transparent; min-height: 44px; }
  .toc__list a:hover { color: var(--c-3); }
  .toc__list a[aria-current="true"] { border-left-color: var(--c-3); }
  .chap { padding-top: 24px; }
  .chap__no { font-size: 84px; }
  .snap { margin-inline: 0; }
  .course { width: 270px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
