/* Shared structure for the three homepage directions. Themes set the look in <theme>/style.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.08; margin: 0; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--focus, #D7262E); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }
.small { font-size: .9rem; }

.proto { font: 500 .8rem/1.4 "Archivo", system-ui, sans-serif; background: #111214; color: #e9e8e3; padding: .5rem 16px; text-align: center; }
.proto a { color: #fff; margin: 0 .25rem; }

.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.5rem; padding: .7rem clamp(16px, 4vw, 48px); background: var(--nav-bg, var(--bg)); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 44px; flex: none; display: block; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word b { font-family: var(--f-head); font-size: 1.15rem; }
.brand-word span { font-size: .8rem; opacity: .8; }
.nav-links { display: flex; gap: 1.3rem; font-size: .95rem; }
.nav-links a, .menu nav a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; white-space: nowrap; display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .8rem; font-weight: 700; font-size: .9rem; border: 2px solid currentColor; border-radius: var(--radius, 0); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary span::after { content: " ×"; }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; display: flex; flex-direction: column; padding: .4rem 0; background: var(--menu-bg, var(--bg)); color: var(--menu-ink, var(--ink)); border: 1px solid var(--menu-line, rgba(0,0,0,.15)); box-shadow: 0 10px 30px rgba(0,0,0,.18); z-index: 30; }
.menu nav a { padding: .8rem 1.1rem; min-height: 44px; font-weight: 600; }
.menu nav a:hover, .menu nav a:focus-visible { background: var(--menu-hover, rgba(0,0,0,.06)); }
@media (max-width: 900px) { .nav-links { display: none; } .menu { display: block; } .nav { gap: .7rem; } }
@media (max-width: 520px) { .btn-nav { padding: .55rem .8rem; font-size: .85rem; } .brand-word span { display: none; } }
@media (max-width: 380px) { .brand-word { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .7rem 1.25rem; font: 700 1rem/1.1 var(--f-body); text-decoration: none; background: var(--btn-bg); color: var(--btn-ink); border: 2px solid var(--btn-bg); border-radius: var(--radius, 0); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 48px); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.kicker { font-size: 1rem; margin-bottom: 1rem; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-top: 1.4rem; max-width: 36em; }
.ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.where { margin-top: 1.4rem; font-size: .95rem; opacity: .8; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }

.img-slot { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: end start; padding: 1rem; overflow: hidden; }
.img-slot span { font-size: .8rem; position: relative; z-index: 1; padding: .3rem .6rem; }

.sec { padding: clamp(56px, 8vw, 112px) clamp(16px, 4vw, 48px); }
.sec-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2, .sec h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.sec-head p { margin-top: .9rem; font-size: 1.1rem; }

.prog-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.25rem; }
.prog h3 { font-size: 1.5rem; }
.prog-age { font-weight: 700; margin: .4rem 0 .8rem; font-size: .95rem; }

.two-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); }
.art-jp { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; margin-bottom: .8rem; }
.art h3 { font-size: 1.7rem; margin-bottom: .6rem; }
.two-note { grid-column: 1 / -1; font-size: 1.2rem; }
@media (max-width: 720px) { .two-grid { grid-template-columns: 1fr; } }

.week { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.day { padding: 1rem; min-height: 9rem; }
.day h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.day p { font-size: .95rem; margin-bottom: .5rem; }
.day p b { display: block; }
.day .rest { color: var(--mut); font-style: italic; }
.flag { display: inline-block; font-weight: 700; }
.schedule .small { margin-top: 1rem; }
@media (max-width: 900px) { .week { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.price-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.price-list li { padding: 1.25rem; }
.price-list h3 { font-size: 1.15rem; }
.price { font-size: 2rem; font-weight: 800; margin: .3rem 0; font-family: var(--f-head); }
.fund { margin-top: 1.5rem; max-width: 46rem; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.5rem; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font: 800 2.6rem/1 var(--f-head); margin-bottom: .6rem; }
.steps h3 { font-size: 1.25rem; margin-bottom: .4rem; }

.coach { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.coach-name { font-weight: 700; margin: .9rem 0; font-size: 1.1rem; }
.coach-text p + p { margin-top: .8rem; }
@media (max-width: 720px) { .coach { grid-template-columns: 1fr; } .coach .img-slot { max-width: 320px; } }

.learn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.learn-card { display: block; text-decoration: none; transition: transform .2s ease; }
.learn-card:hover { transform: translateY(-4px) rotate(-.4deg); }
.learn-card img { display: block; width: 100%; height: auto; box-shadow: 0 2px 4px rgba(0,0,0,.15), 0 14px 30px rgba(0,0,0,.18); }
@media (max-width: 900px) { .learn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.visit { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.visit-text p { margin-top: 1rem; max-width: 36rem; }
.visit-text .btn { margin-top: 1.5rem; }
.addr { font-size: 1.2rem; }
.visit-card { padding: 1.75rem; }
.visit-card h3 { font-size: 1.5rem; margin-bottom: .6rem; }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }

.faq-list { max-width: 50rem; }
.faq details { padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .7rem; max-width: 44rem; }

.contact { text-align: left; }
.contact p { margin-top: .8rem; font-size: 1.15rem; }
.contact-flag { display: inline-block; margin-top: 1.2rem; padding: .35rem .7rem; font-size: .95rem; font-weight: 700; background: var(--flag-bg, rgba(0,0,0,.2)); }
.contact-row { display: flex; flex-wrap: wrap; gap: .8rem 2.5rem; margin: 1.5rem 0 0; }
.contact-row dt { font-size: .85rem; }
.contact-row dd { margin: 0; font-weight: 700; font-size: 1.1rem; }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding: 2rem clamp(16px, 4vw, 48px); }
.foot-mark { width: 56px; display: block; }
.foot .small { margin-left: auto; }

/* Photos from Ernst's club */
.hero-photo, .coach-photo { margin: 0; }
.hero-photo img, .coach-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.coach-photo figcaption { font-size: .85rem; margin-top: .6rem; opacity: .85; }
.gallery-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: clamp(170px, 20vw, 300px); gap: 12px; }
.gallery-list li { overflow: hidden; }
.gallery-list li:first-child { grid-row: span 2; }
.gallery-list li:last-child { grid-column: span 2; }
.gallery-list img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.gallery-list li:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .gallery-list { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; } .gallery-list li:first-child { grid-column: span 2; grid-row: span 1; } .gallery-list li:last-child { grid-column: span 2; } }

/* The scrolls on our wall */
.scroll-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(20px, 3vw, 40px); align-items: end; }
.scroll-paper { height: 300px; display: grid; place-items: center; padding: 1.4rem; background: #F7F4EC; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 12px 28px rgba(0,0,0,.14); margin-bottom: 1.2rem; }
.scroll-paper img { width: auto; height: auto; max-width: 100%; max-height: 252px; }
.scroll-list h3 { font-size: 1.9rem; letter-spacing: .06em; }
.sc-r { font-weight: 700; margin: .3rem 0 .4rem; }

/* ===== Nov 19 revision: generated hero media, 2-day schedule, single price, map ===== */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: min(86dvh, 820px); }
.hero-text { position: relative; max-width: 42rem; }
.hero-band { position: absolute; inset: 0; z-index: -1; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-media video { opacity: 0; transition: opacity .9s ease; }
.hero-media.is-video video { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: var(--hero-shade, none); }
.hero-pause { position: absolute; right: 16px; bottom: 16px; z-index: 1; min-height: 36px; padding: .5rem .85rem; font: 600 .8rem/1 var(--f-body); color: #fff; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius, 0); cursor: pointer; }
.hero-pause:hover { background: rgba(0,0,0,.65); }

.week { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 48rem; gap: 1rem; }
.day { min-height: 0; padding: 1.25rem 1.4rem; }
.day h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.day p { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0; padding: .7rem 0; font-size: 1.1rem; border-top: 1px solid rgba(127,127,127,.25); }
.day p b { display: inline; font-weight: 600; }
.day .cls { font-weight: 700; }
@media (max-width: 560px) { .week { grid-template-columns: 1fr; } }

.price-card { max-width: 32rem; padding: 1.6rem 1.8rem; }
.price-card .price { font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; margin: 0 0 .7rem; }
.price-card .price span { font-size: 1.1rem; font-weight: 400; }

.map { display: block; width: 100%; aspect-ratio: 4 / 3; min-height: 300px; border: 0; }

.gallery-list { grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: clamp(170px, 19vw, 290px); }
.gallery-list li:last-child { grid-column: auto; }
.gallery-list li:nth-child(2) img { object-position: 50% 20%; }
@media (max-width: 760px) { .gallery-list { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; } .gallery-list li:first-child { grid-column: span 2; grid-row: span 2; } .gallery-list li:last-child { grid-column: span 2; } }

.contact-row a { color: inherit; text-underline-offset: 3px; }

/* ===== Nov 20: canyon loop + 清水 text overlay; tint covers the whole video ===== */
/* Video, still and the SVG text share one frame anchored right, so 清水 stays where it was drawn. */
.hero-media img, .hero-media video { object-position: 100% 50%; }
.hero-kanji { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: var(--kanji, #EFECE5); }
/* One solid colour, multiplied over the entire frame: no gradient, no fade to clear. */
.hero-media::after { background: var(--hero-tint, transparent); mix-blend-mode: multiply; }

/* Events */
.ev { list-style: none; margin: 0 0 1.4rem; padding: 0; max-width: 52rem; }
.ev li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(127,127,127,.28); }
.ev time { font-weight: 700; }
.ev b { display: block; font-weight: 700; }
.ev b a { color: inherit; }
.ev span { font-size: .92rem; opacity: .85; }
.ev .ev-empty { display: block; opacity: .8; }
.events .sub { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: .8rem; }
@media (max-width: 560px) { .ev li { grid-template-columns: 1fr; gap: .2rem; } }
