/* SMILE SOCIETY JAPAN, v4. The club's own look (cream, community green, pastel steps, pink join band, Space
   Grotesk + DM Sans, 1.5 px ink outlines, round corners) rebuilt as one ordered file:
   fonts, tokens, base, header, buttons, sections top to bottom, phone bar, photo viewer, other pages, motion.
   The v3 file (original + fixes) is kept in smile-society-archive/site-v3.css. */

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(/fonts/dm-sans.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/space-grotesk.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  --ink: #183b31;
  --muted: #3a5047;
  --paper: #fffaf2;
  --cream: #fdeed9;
  --yellow: #f4b942;
  --pink: #ffddf8;
  --blue: #a9c9e8;
  --green: #247c64;
  --green-deep: #1b6150;
  --white: #ffffff;
  --line: rgba(24, 59, 49, .14);
  --on-dark: #cddad3;
  --max: 1200px;
  --radius: 28px;
  --header-h: 72px;
  --section: clamp(80px, 10vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 150ms;
  --slow: 300ms;
  --sans: "DM Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --display: "Space Grotesk", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  interpolate-size: allow-keywords;
  color-scheme: light;
  scrollbar-color: var(--green) var(--cream);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: clip; caret-color: var(--green); }
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
.container { width: min(calc(100% - 48px - env(safe-area-inset-left) - env(safe-area-inset-right)), var(--max)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -100px; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--white); font-weight: 600; }
.skip-link:focus { top: 12px; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(48px, 7.2vw, 96px); line-height: .95; }
h1 em { font-style: normal; font-weight: 400; }
h1 strong { font-weight: 600; color: var(--green); }
h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1; }
h2 span { font-weight: 400; }
h3 { font-size: 24px; line-height: 1.1; letter-spacing: -.02em; }
:lang(ja) h1 { font-size: clamp(38px, 6.4vw, 84px); line-height: 1.1; letter-spacing: -.02em; }
:lang(ja) h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.2; letter-spacing: -.02em; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) .statement { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
.section-label { margin: 0 0 16px; color: var(--muted); font-size: 14px; font-weight: 600; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.event-main :focus-visible, .ticker :focus-visible, .line:focus-visible, .footer :focus-visible, .join-bar :focus-visible, .lightbox :focus-visible, .event-details :focus-visible { outline-color: var(--white); }
.social-card:focus-visible, .photo-frame:focus-visible { border-radius: var(--radius); }

/* ---------- header ---------- */
.site-header { position: fixed; z-index: 40; inset: 0 0 auto; padding-top: env(safe-area-inset-top); transition: background-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
/* the blur sits on a layer behind the bar: backdrop-filter on the header itself would trap the fixed phone menu inside it */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); transition: opacity var(--slow) var(--ease); }
.site-header.is-scrolled::before { opacity: 1; }
.nav { min-height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.brand b { font-weight: 500; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 500; border-radius: 100px; transition: color var(--fast) var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--slow) var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-links a[aria-current="true"] { color: var(--green); }
.language-switcher { display: flex; align-items: center; margin-left: auto; }
.nav-links + .language-switcher { margin-left: 0; }
.language-switcher a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: 100px; transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.language-switcher a:hover { color: var(--ink); }
.language-switcher a.active { color: var(--ink); background: rgba(24, 59, 49, .07); font-weight: 600; }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 100px; background: var(--green); color: var(--white); font-size: 15px; font-weight: 600; white-space: nowrap; transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.nav-cta:hover { background: var(--green-deep); }
.nav-cta:active { transform: scale(.97); }
.menu-button { display: none; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; place-items: center; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform var(--slow) var(--ease), opacity var(--fast); }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-button[aria-expanded="true"] .menu-icon::before { transform: translateY(5px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- buttons and links ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 100px; font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.button:active { transform: scale(.98); }
.button-arrow { transition: transform var(--slow) var(--ease); }
.button:hover .button-arrow { transform: translateX(3px); }
.button-dark { background: var(--green); color: var(--white); }
.button-dark:hover { background: var(--green-deep); }
.button-light { background: var(--cream); color: var(--ink); }
.button-light:hover { background: var(--white); }
.button-outline { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.button-outline:hover { box-shadow: inset 0 0 0 1.5px var(--white); background: rgba(255, 255, 255, .06); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; transition: color var(--fast) var(--ease), text-underline-offset var(--slow) var(--ease); }
.text-link:hover { color: var(--green); text-underline-offset: 3px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); padding: calc(var(--header-h) + env(safe-area-inset-top) + 48px) 0 clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-next { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 8px 16px 8px 12px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255, 255, 255, .55); font-size: 15px; }
.hero-next strong { font-weight: 600; }
.hero-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(36, 124, 100, .18); }
.hero-text { max-width: 36ch; margin: 24px 0 0; font-size: 19px; color: var(--muted); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 500; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg, .detail svg, .cal-button svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-facts svg { color: var(--green); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px; }

.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -10% -14%; border: 1.5px solid rgba(24, 59, 49, .16); border-radius: 50%; transform: rotate(-12deg); pointer-events: none; }
.photo-frame { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--cream) center / cover; cursor: zoom-in; }
.photo-frame picture { display: contents; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo-frame:hover img { transform: scale(1.03); }
.hero-photo { aspect-ratio: 5 / 4; }
.bubble { position: absolute; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--white); font-family: var(--display); font-size: 20px; font-weight: 600; box-shadow: 0 8px 20px rgba(24, 59, 49, .14); pointer-events: none; }
.bubble-a { left: -18px; top: 14%; background: var(--yellow); }
.bubble-b { right: -18px; top: 44%; background: var(--blue); }
.bubble-c { left: 18%; bottom: -22px; background: var(--pink); }

/* ---------- ticker ---------- */
.ticker { position: relative; overflow: hidden; padding: 18px 0; background: var(--green); color: var(--cream); white-space: nowrap; }
.ticker-track { display: flex; width: max-content; animation: ticker 64s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--display); font-size: 20px; font-weight: 500; }
.ticker i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }
@keyframes ticker { to { transform: translateX(-25%); } }
.ticker-toggle { position: absolute; right: max(12px, env(safe-area-inset-right)); top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--green-deep); color: var(--white); cursor: pointer; transition: background-color var(--fast) var(--ease); }
.ticker-toggle:hover { background: var(--ink); }
.ticker-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.ticker-toggle .i-play { display: none; fill: currentColor; stroke-width: 0; }
.ticker.is-paused .i-pause { display: none; }
.ticker.is-paused .i-play { display: inline; }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 56px; }
.heading-note { max-width: 24ch; margin: 0; color: var(--muted); font-size: 18px; text-align: right; }

/* about */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-grid > * { min-width: 0; }
.about-copy h2 { max-width: 13ch; }
.about-copy p { max-width: 52ch; margin: 0 0 16px; color: var(--muted); }
.about-copy .lead { margin: 32px 0 20px; color: var(--ink); font-family: var(--display); font-size: 24px; line-height: 1.3; letter-spacing: -.02em; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-photos .photo-frame { aspect-ratio: 4 / 5; }

/* journey */
.journey { background: var(--cream); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; top: 36px; left: 36px; right: 36px; border-top: 1.5px dashed rgba(24, 59, 49, .35); }
.step { position: relative; min-width: 0; }
.step-icon { position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 24px; border: 1.5px solid var(--ink); border-radius: 50%; transition: transform var(--slow) var(--ease); }
.step:hover .step-icon { transform: translateY(-2px) rotate(-6deg); }
.step-yellow .step-icon { background: var(--yellow); }
.step-pink .step-icon { background: var(--pink); }
.step-blue .step-icon { background: var(--blue); }
.step-green .step-icon { background: var(--green); color: var(--white); }
.step-green .step-icon svg { filter: invert(1) brightness(2); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.journey-note { display: flex; align-items: center; gap: 16px; margin-top: 64px; padding: 20px 24px; border: 1.5px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .5); }
.journey-note img { flex: none; width: 40px; height: 40px; border-radius: 50%; }
.journey-note p { margin: 0; font-size: 16px; }

/* event */
.event { background: var(--paper); }
.event-panel { display: grid; grid-template-columns: 1.2fr .8fr; overflow: hidden; border-radius: 32px; background: var(--ink); color: var(--white); }
.event-panel > * { min-width: 0; }
.event-main { padding: clamp(32px, 5vw, 64px); }
.event-title { margin: 0; color: var(--on-dark); font-size: 15px; font-weight: 500; }
.event-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 8px; color: var(--cream); font-family: var(--display); }
.event-date strong { font-size: clamp(44px, 7vw, 88px); font-weight: 600; letter-spacing: -.045em; line-height: .95; }
.event-date--tba strong { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.03em; }
.countdown { margin-top: 28px; min-height: 104px; }
.countdown-label { margin: 0 0 10px; color: var(--on-dark); font-size: 14px; }
.countdown-units { display: flex; flex-wrap: wrap; gap: 8px; }
.countdown-units > span { min-width: 76px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(255, 255, 255, .06); text-align: center; }
.countdown-units b { display: block; font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown-units small { display: block; color: var(--on-dark); font-size: 13px; }
.countdown-now { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; border-radius: 100px; background: rgba(255, 255, 255, .1); font-weight: 600; }
.countdown-now .hero-dot { background: var(--yellow); box-shadow: 0 0 0 3px rgba(244, 185, 66, .25); }
.countdown-ended { max-width: 40ch; margin: 0; color: var(--on-dark); }
.event-main h2 { margin-top: 36px; color: var(--white); font-size: clamp(36px, 4.4vw, 56px); }
.event-intro { max-width: 44ch; margin: 16px 0 28px; color: var(--on-dark); }
.event-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cal { position: relative; margin-top: 16px; width: fit-content; }
.cal summary { list-style: none; }
.cal summary::-webkit-details-marker { display: none; }
.cal-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 100px; color: var(--cream); font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color var(--fast) var(--ease); }
.cal-button:hover, .cal[open] .cal-button { background: rgba(255, 255, 255, .09); }
.cal-menu { position: absolute; z-index: 5; left: 0; top: calc(100% + 8px); display: grid; min-width: 248px; padding: 6px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 16px 40px rgba(0, 0, 0, .25); transition: opacity var(--fast) var(--ease), translate var(--fast) var(--ease); }
@starting-style { .cal[open] .cal-menu { opacity: 0; translate: 0 -4px; } }
.cal-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.cal-menu a:hover { background: var(--cream); }
.cal-menu :focus-visible { outline-color: var(--ink); }

.event-details { display: flex; flex-direction: column; justify-content: center; gap: 24px; margin: 0; padding: clamp(32px, 4vw, 56px); background: var(--green); }
.detail dt { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 14px; font-weight: 500; }
.detail dd { margin: 4px 0 0 30px; min-width: 0; overflow-wrap: anywhere; }
.detail strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.35; }
.detail em { display: block; margin-top: 2px; font-style: normal; font-size: 14px; }
.spots-bar { display: block; height: 6px; margin: 10px 0 6px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.spots-bar span { display: block; height: 100%; width: calc(var(--fill) * 100%); border-radius: 3px; background: var(--cream); }
.maps-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; padding: 0 16px; border-radius: 100px; background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 600; transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.maps-button:hover { background: var(--white); transform: translateY(-2px); }
.language-note { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: 15px; }
.lang-chips { display: flex; }
.lang-chips span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; background: var(--green); font-family: var(--display); font-size: 13px; font-weight: 600; }
.lang-chips span + span { margin-left: -8px; }

/* people + statement */
.people { background: var(--cream); }
.people-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.people-layout > * { min-width: 0; }
.people-copy > p { max-width: 46ch; margin: 24px 0; color: var(--muted); }
.mini-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mini-tags li { padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 100px; background: rgba(255, 255, 255, .45); font-size: 15px; font-weight: 500; }
.statement { margin: 0; font-family: var(--display); font-size: clamp(32px, 4.2vw, 56px); font-weight: 500; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.statement.is-armed span { color: rgba(24, 59, 49, .2); transition: color var(--slow) var(--ease); }
.statement.is-armed span.on { color: var(--ink); }

/* faq */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-grid > * { min-width: 0; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-head p { max-width: 32ch; margin: 20px 0 28px; color: var(--muted); }
.faq-item { border-bottom: 1.5px solid var(--line); }
.faq-item:first-child { border-top: 1.5px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 16px 0; list-style: none; font-family: var(--display); font-size: 21px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; cursor: pointer; transition: color var(--fast) var(--ease); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green); }
.faq-item summary svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--slow) var(--ease); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { max-width: 60ch; margin: 0; padding: 0 40px 24px 0; color: var(--muted); }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size var(--slow) var(--ease), content-visibility var(--slow) allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }

/* join band */
.final-cta { position: relative; overflow: hidden; padding: var(--section) 0; background: var(--pink); }
.final-cta::before { content: ""; position: absolute; width: 520px; height: 520px; left: -320px; top: -280px; border: 1.5px solid rgba(24, 59, 49, .12); border-radius: 50%; pointer-events: none; }
.final-heading { position: relative; max-width: 760px; margin: 0 auto 48px; text-align: center; }
.final-heading h2 { font-size: clamp(40px, 6vw, 76px); }
.final-heading p { max-width: 50ch; margin: 20px auto 0; font-size: 18px; }
.final-heading strong { font-weight: 600; }
.social-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(880px, 100%); margin: 0 auto; }
.social-card { display: flex; flex-direction: column; min-height: 264px; padding: 28px; border: 1.5px solid var(--ink); border-radius: var(--radius); transition: transform var(--fast) var(--ease), box-shadow var(--slow) var(--ease); }
.social-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(24, 59, 49, .16); }
.social-card.line { background: var(--green); color: var(--white); }
.social-card.instagram { background: var(--paper); }
.social-icon { width: 40px; height: 40px; }
.social-card h3 { margin: 40px 0 8px; font-size: 30px; }
.social-card p { max-width: 32ch; margin: 0 0 auto; font-size: 16px; }
.social-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 600; }
.social-cta span { transition: transform var(--slow) var(--ease); }
.social-card:hover .social-cta span { transform: translateX(4px); }
.social-note { position: relative; margin: 24px 0 0; text-align: center; font-size: 15px; }

/* footer */
.footer { padding: 40px 0; background: var(--ink); color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer p { margin: 0; color: var(--on-dark); font-size: 14px; }

/* ---------- phone join bar ---------- */
.join-bar { display: none; }

/* ---------- photo viewer ---------- */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 30, 25, .95); color: var(--white); opacity: 0; transition: opacity var(--slow) var(--ease), overlay var(--slow) allow-discrete, display var(--slow) allow-discrete; }
.lightbox[open] { opacity: 1; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: transparent; }
.lightbox-stage { position: absolute; inset: 0 0 96px; display: grid; place-items: center; padding: max(56px, env(safe-area-inset-top)) 16px 0; touch-action: pan-y; }
.lightbox figure { margin: 0; display: grid; place-items: center; width: 100%; height: 100%; }
.lightbox figure[hidden] { display: none; }
.lightbox picture { display: contents; }
.lightbox img { width: auto; height: auto; max-width: min(100%, 1400px); max-height: 100%; object-fit: contain; border-radius: 16px; animation: lb-in var(--slow) var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.98); } }
.lightbox-bar { position: absolute; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); translate: -50% 0; display: flex; align-items: center; gap: 16px; }
.lb-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer; transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-btn:active { transform: scale(.95); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }
.lb-count { min-width: 56px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
body.lb-open { overflow: hidden; }

/* ---------- other pages: offline, 404, admin sign-in, admin preview ---------- */
.preview-bar { position: sticky; top: 0; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600; text-align: center; }
.preview-bar ~ .site-header { top: 41px; }
.notice { position: relative; overflow: hidden; min-height: calc(100svh - 110px); display: grid; align-items: center; padding: calc(var(--header-h) + env(safe-area-inset-top) + 48px) 0 80px; background: var(--cream); }
.notice::before { content: ""; position: absolute; width: 560px; height: 560px; right: -240px; top: -300px; border: 1.5px solid rgba(24, 59, 49, .12); border-radius: 50%; pointer-events: none; }
.notice-inner { position: relative; max-width: 720px; }
.notice h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 1; }
.notice h1 span { font-weight: 400; }
.notice .hero-text { margin-top: 20px; }
.notice-msg { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--white); font-weight: 600; max-width: 44ch; }
.notice-event { display: inline-flex; align-items: center; gap: 10px; margin-top: 40px; padding: 10px 16px 10px 12px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255, 255, 255, .55); font-size: 15px; transition: background-color var(--fast) var(--ease); }
.notice-event:hover { background: var(--white); }
.notice-event strong { font-weight: 600; }
.notice-join { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.button-outline-ink { min-height: 48px; padding: 0 20px; font-size: 15px; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button-outline-ink:hover { background: var(--white); }
.auth { min-height: 100vh; min-height: 100svh; }
.auth h1 span { font-weight: 400; }
.auth .hero-text { margin-bottom: 0; }
.auth .auth-ja { margin-top: 8px; color: var(--muted); font-size: 15px; }
.auth-ja { line-break: strict; text-wrap: pretty; }
.auth .hero-actions { margin-top: 32px; }
.auth-btn { min-height: 60px; padding: 8px 28px; text-align: left; }
.auth-btn:disabled { opacity: .6; cursor: progress; }
.auth-btn__l { display: grid; line-height: 1.25; }
.auth-btn__l small { font-size: 12px; font-weight: 500; opacity: .85; }
.auth-msg { max-width: 560px; margin: 8px 0 0; padding: 12px 16px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--white); font-weight: 600; }
.auth-small { max-width: 560px; margin: 32px 0 0; color: var(--muted); font-size: 14px; }
.auth-small.auth-ja { margin-top: 4px; font-size: 14px; }
.auth-warn { max-width: 560px; margin: 0 0 32px; padding: 16px 20px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--pink); }
.auth-warn span { display: block; margin-top: 8px; }

/* ---------- enter on load (hero only) ---------- */
.hero [data-enter] { animation: enter .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 120ms; }
.hero-copy > :nth-child(4) { animation-delay: 180ms; }
.hero-copy > :nth-child(5) { animation-delay: 240ms; }
.hero-visual[data-enter] { animation-delay: 120ms; }
.bubble { animation: pop .5s var(--ease) both; }
.bubble-a { animation-delay: 500ms; }
.bubble-b { animation-delay: 580ms; }
.bubble-c { animation-delay: 660ms; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .steps::before { display: none; }
  .nav-links a { padding: 0 8px; font-size: 14px; }
  .nav-links a::after { left: 8px; right: 8px; }
}

@media (max-width: 800px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .container { width: min(calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)), var(--max)); }
  .nav { gap: 8px; }
  .menu-button { display: grid; }
  .nav-links { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 0; z-index: 39; flex-direction: column; gap: 0; margin: 0; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); visibility: hidden; opacity: 0; translate: 0 -8px; transition: opacity var(--slow) var(--ease), translate var(--slow) var(--ease), visibility 0s linear var(--slow); }
  .nav-links.is-open { visibility: visible; opacity: 1; translate: 0 0; transition-delay: 0s; }
  .nav-links a { min-height: 64px; padding: 0 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
  .nav-links a::after { display: none; }
  .language-switcher { margin-left: auto; }
  .nav-links + .language-switcher { margin-left: auto; }
  .nav-cta { padding: 0 16px; font-size: 14px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--paper); }

  .hero { padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 24px); }
  .hero-grid, .about-grid, .event-panel, .people-layout, .faq-grid { grid-template-columns: 1fr; }
  .hero-next { margin-bottom: 20px; font-size: 14px; }
  .hero-text { font-size: 17px; margin-top: 20px; }
  .hero-facts { gap: 8px 18px; margin-top: 20px; font-size: 14px; }
  .hero-actions { margin-top: 28px; }
  .hero-visual { max-width: 560px; margin: 8px 12px 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .bubble { width: 44px; height: 44px; font-size: 17px; }
  .bubble-a { left: -12px; } .bubble-b { right: -12px; }

  .ticker-group { font-size: 18px; }
  .section-heading { display: block; margin-bottom: 40px; }
  .heading-note { margin-top: 16px; text-align: left; font-size: 17px; }
  .about-copy .lead { font-size: 21px; margin-top: 24px; }
  .about-photos { gap: 12px; }
  .faq-head { position: static; }
  .faq-item summary { font-size: 18px; min-height: 64px; }
  .faq-item p { padding-right: 0; }
  .social-grid { grid-template-columns: 1fr; }
  .social-card { min-height: 0; }
  .social-card h3 { margin-top: 28px; }

  .join-bar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 20px; background: var(--ink); color: var(--white); box-shadow: 0 12px 32px rgba(12, 30, 25, .3); transform: translateY(calc(100% + 40px)); transition: transform var(--slow) var(--ease); }
  .join-bar.is-visible { transform: translateY(0); }
  .join-bar p { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.3; color: var(--on-dark); }
  .join-bar strong { display: block; color: var(--white); font-size: 15px; }
  .join-bar .button { min-height: 44px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
  .bar-ig { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; transition: background-color var(--fast) var(--ease); }
  .bar-ig:hover { background: rgba(255, 255, 255, .1); }
  .bar-ig svg { width: 22px; height: 22px; }
  body:has(.join-bar) .footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .notice-inner { text-align: left; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: block; top: 36px; bottom: 36px; left: 36px; right: auto; border-top: 0; border-left: 1.5px dashed rgba(24, 59, 49, .35); }
  .step { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; align-items: start; }
  .step-icon { grid-row: span 2; margin: 0; background-clip: padding-box; }
  .step h3 { align-self: end; margin-top: 10px; }
  .journey-note { align-items: flex-start; margin-top: 48px; padding: 16px 18px; }
  .event-panel { border-radius: 24px; }
  .countdown-units > span { min-width: 0; flex: 1; }
  .event-actions .button { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .site-header .brand span { display: none; }
  .site-header .nav-cta { display: none; }
  .language-switcher a { min-width: 44px; padding: 0 6px; font-size: 13px; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-actions .text-link { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
  .ticker-toggle { display: none; }
}
@media (max-width: 380px) { .hero-time { display: none; } }
