/* EMBLE event details: LP identity with Gothic type and a dedicated reading section. */
:root {
  --ink: #0b0b0a;
  --ink-soft: #11110f;
  --paper: #f1eadf;
  --dim: #b7aea1;
  --accent: #b79658;
  --accent-strong: #d3b875;
  --line: rgba(211,184,117,.27);
  --header-surface: rgba(11,11,10,.95);
  --panel-surface: rgba(11,11,10,.9);
  --green: #007c45;
  --green-dark: #006638;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); color: var(--paper); }
html { scroll-padding-top: calc(70px + 2rem); }
body { font-family: var(--sans); line-height: 1.7; letter-spacing: .02em; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}
a { color: inherit; }
:where(a, button, input, select, textarea, [tabindex]) { scroll-margin-block: 10px; }
a:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--paper); color: var(--ink); }
.skip-link:focus { left: 8px; }

.site-header {
  /* Flow reserves the header's natural height when text is enlarged. */
  position: sticky;
  inset: 0 0 auto;
  z-index: 50;
  min-height: 70px;
  padding: 0 clamp(20px, 5vw, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--header-surface);
  backdrop-filter: blur(12px);
}
.brand { text-decoration: none; font-size: 20px; font-weight: 900; letter-spacing: .16em; }
.brand small { display: block; margin-top: -7px; color: var(--accent); font-size: 7px; letter-spacing: .38em; }
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--dim); text-decoration: none; font-size: 12px; letter-spacing: .1em; }
.nav a:hover { color: var(--paper); }
.nav .header-apply { padding: 9px 18px; border: 1px solid var(--accent); color: var(--accent-strong); font-weight: 700; }

/* Ended-page notices retain their existing composition and destinations. */
.event-page { position: relative; isolation: isolate; min-height: calc(100svh - 70px); display: grid; align-items: center; background-position: center; background-size: cover; }
.event-page::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11,11,10,.85); }
.event-page--detail { display: block; background: var(--ink); }
.event-page--detail::before { content: none; }
.event-hero { position: relative; isolation: isolate; background-position: center; background-size: cover; }
.event-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(11,11,10,.94),rgba(11,11,10,.64)); }
.event-shell { width: min(1180px, calc(100% - 48px)); margin: auto; padding: 46px 0 72px; display: grid; grid-template-columns: minmax(0,1.04fr) minmax(430px,.96fr); gap: clamp(34px,6vw,84px); align-items: center; }
.event-hero .event-shell { min-height: min(770px,calc(100svh - 70px)); }
.event-copy { max-width: 620px; }
.eyebrow { margin: 0 0 18px; color: var(--accent-strong); font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.event-date { margin: 0 0 14px; color: var(--accent-strong); font-size: clamp(23px,2.2vw,32px); font-weight: 600; letter-spacing: .04em; }
.event-copy h1 { margin: 0; font-size: clamp(34px,4.3vw,60px); font-weight: 700; line-height: 1.28; letter-spacing: .015em; overflow-wrap: anywhere; }
.event-summary { max-width: 600px; margin: 24px 0 0; color: var(--dim); font-size: 15px; line-height: 1.95; }
.event-panel { padding: clamp(24px,3vw,38px); border: 1px solid var(--line); background: var(--panel-surface); }
.panel-label { margin: 0 0 20px; color: var(--accent-strong); font-size: 11px; font-weight: 700; letter-spacing: .3em; }
.event-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line); }
.event-fact { min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.event-fact:nth-child(odd) { padding-right: 18px; }
.event-fact:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.event-fact.full { grid-column: 1 / -1; padding-left: 0; padding-right: 0; border-left: 0; }
.event-fact dt { margin: 0 0 5px; color: var(--accent-strong); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.event-fact dd { margin: 0; color: var(--paper); font-size: 15px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.event-fact.address dd { font-size: 13px; font-weight: 500; color: var(--dim); }
.event-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 22px; }
.apply-button, .back-button { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 20px; text-decoration: none; font-weight: 800; letter-spacing: .04em; }
.apply-button { background: var(--green); color: #fff; }
.apply-button:hover { background: var(--green-dark); }
.apply-button.pending { background: #2d2d29; color: var(--dim); }
.back-button { border: 1px solid var(--accent); color: var(--accent-strong); font-size: 12px; }
.back-button:hover { background: var(--line); }
.event-note { margin: 15px 0 0; color: var(--dim); font-size: 12px; line-height: 1.75; }
.event-note a { color: var(--accent-strong); text-underline-offset: 3px; }

.event-announcement { border-top: 1px solid var(--line); background: var(--ink); padding: clamp(72px,8vw,110px) 0; }
.announcement-shell { width: min(1080px,calc(100% - 48px)); margin: auto; display: grid; grid-template-columns: 220px minmax(0,760px); gap: clamp(40px,5vw,80px); align-items: start; }
.announcement-intro .eyebrow { margin-bottom: 14px; font-size: 10px; letter-spacing: .24em; }
.announcement-intro h2 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.5; letter-spacing: .04em; }
.announcement-content { min-width: 0; }
.announcement-body { color: var(--paper); font-size: 16px; line-height: 2; letter-spacing: .025em; overflow-wrap: anywhere; }
.announcement-body p { margin: 0 0 1.6em; white-space: pre-line; }
.announcement-body p:last-child { margin-bottom: 0; }
.announcement-actions { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.announcement-contact { margin: 16px 0 0; }
.contact-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-strong); font-size: 13px; text-underline-offset: 5px; }
.contact-link:hover { color: var(--paper); }

@media (max-width: 820px) {
  html { scroll-padding-top: calc(60px + 2rem); }
  .site-header { min-height: 60px; padding: 0 16px; }
  .brand { font-size: 18px; }
  .nav a:not(.header-apply) { display: none; }
  .nav .header-apply { min-height: 44px; padding: 7px 12px; font-size: 11px; letter-spacing: .04em; }
  .event-page { min-height: calc(100svh - 60px); align-items: start; }
  .event-hero { background-position: center; }
  .event-hero::before { background: linear-gradient(180deg,rgba(11,11,10,.67),rgba(11,11,10,.95) 63%); }
  .event-shell { width: 100%; padding: 32px 18px 40px; grid-template-columns: 1fr; gap: 28px; }
  .event-hero .event-shell { min-height: 0; }
  .eyebrow { margin-bottom: 12px; font-size: 10px; letter-spacing: .22em; }
  .event-date { margin-bottom: 10px; font-size: 22px; }
  .event-copy h1 { font-size: clamp(26px,6.8vw,36px); line-height: 1.4; letter-spacing: .01em; }
  .event-summary { margin-top: 18px; font-size: 14px; line-height: 1.9; }
  .event-panel { padding: 22px; }
  .panel-label { margin-bottom: 14px; font-size: 10px; }
  .event-fact { padding-top: 12px; padding-bottom: 12px; }
  .event-fact:nth-child(odd) { padding-right: 12px; }
  .event-fact:nth-child(even) { padding-left: 12px; }
  .event-fact.full { padding-left: 0; padding-right: 0; }
  .event-fact dt { font-size: 10px; }
  .event-fact dd { font-size: 14px; }
  .event-fact.address dd { font-size: 12px; }
  .event-actions { margin-top: 20px; }
  .apply-button, .back-button { min-height: 48px; padding: 11px 13px; }
  .event-note { margin-top: 14px; font-size: 11px; }
  .event-announcement { padding: 48px 0 56px; }
  .announcement-shell { width: calc(100% - 36px); grid-template-columns: 1fr; gap: 26px; }
  .announcement-intro .eyebrow { margin-bottom: 8px; }
  .announcement-intro h2 { font-size: 24px; }
  .announcement-body { font-size: 15px; line-height: 1.95; }
  .announcement-actions { margin-top: 32px; padding-top: 24px; }
}
@media (max-width: 380px) {
  .site-header { padding: 0 14px; gap: 10px; }
  .brand { font-size: 17px; }
  .brand small { font-size: 6px; }
  .nav .header-apply { min-height: 44px; padding: 7px 10px; font-size: 10px; }
  .event-shell { padding: 24px 14px 32px; gap: 24px; }
  .event-copy h1 { font-size: 23px; text-wrap: balance; }
  .event-panel { padding: 16px; }
  .event-actions { grid-template-columns: 1fr; }
  .back-button { min-height: 44px; }
  .announcement-shell { width: calc(100% - 28px); }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
