/* 八週間の恋人 / Eight Weeks — 公式サイト
   色はチャンネルのロゴとバナーから：焦げ茶の地、生成りの字、金、赤いひも。 */
@font-face { font-family: "HL Mincho"; src: url("fonts/mincho.woff") format("woff"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "HL Garamond"; src: url("fonts/garamond.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "HL Garamond"; src: url("fonts/garamond-italic.woff") format("woff"); font-style: italic; font-weight: 400 700; font-display: swap; }

:root {
  --bg: #17100c;
  --bg2: #20160f;
  --bg3: #2a1d14;
  --ink: #f5eadb;
  --ink2: #cdbca5;
  --ink3: #9c8a74;
  --gold: #d6b47c;
  --red: #b5544b;
  --line: rgba(214, 180, 124, .28);
  --serif: "HL Garamond", "HL Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "AppleMyungjo", "Noto Serif KR", serif;
  --sans: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  --w: 1120px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .scroll::after { animation: none; } }
section[id], main { scroll-margin-top: 72px; }
.ep[id] { scroll-margin-top: 112px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.85; overflow-x: hidden; }
:lang(ja) body, body:lang(ja) { line-break: strict; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--bg); padding: 8px 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 10px 24px; background: rgba(23, 16, 12, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(214, 180, 124, .14); }
.brand img { width: 168px; }
.menu { display: flex; gap: 18px; margin-left: auto; font-size: 13px; letter-spacing: .06em; white-space: nowrap; }
.menu a { color: var(--ink2); }
.menu a:hover { color: var(--ink); text-decoration: none; }
.lang { display: flex; gap: 2px; font-size: 12px; }
.lang a { color: var(--ink3); padding: 3px 7px; border-radius: 99px; white-space: nowrap; }
.lang a[aria-current] { color: var(--bg); background: var(--gold); }
.lang a:hover { text-decoration: none; color: var(--ink); }
.lang a[aria-current]:hover { color: var(--bg); }
.ln-code { display: none; }
.lang-hint { display: block; text-align: center; padding: 8px 16px; background: var(--bg3); color: var(--gold); font-size: 14px; }

/* hero */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; align-items: end; padding: 120px 24px 96px; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0 0 0 30%; z-index: -1; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 30%; filter: saturate(.92); animation: drift 24s ease-out both; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--bg) 0%, rgba(23,16,12,.5) 9%, rgba(23,16,12,0) 22%),
  linear-gradient(0deg, var(--bg) 0%, rgba(23,16,12,0) 30%); }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-bg img { animation: none; } }
.hero-inner { max-width: var(--w); width: 100%; margin: 0 auto; }
.kicker { margin: 0 0 18px; font-size: 13px; letter-spacing: .22em; color: var(--gold); }
.hero h1 { margin: 0; width: min(560px, 100%); }
.tagline { margin: 34px 0 10px; font-family: var(--serif); font-size: clamp(24px, 3.2vw, 36px); font-weight: 600; letter-spacing: .08em; line-height: 1.5; }
.hero-sub { margin: 0; max-width: 30em; color: var(--ink2); font-size: 15px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; }
.hero-ai { margin: 20px 0 0; font-size: 14px; color: var(--ink2); display: flex; align-items: baseline; gap: 10px; }
.hero-ai::before { content: "AI"; flex: none; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--bg); background: var(--gold); padding: 1px 8px; border-radius: 3px; }
.hero-ai a { color: inherit; text-decoration: underline; text-decoration-color: rgba(214,180,124,.45); text-underline-offset: 3px; }
.scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 11px; letter-spacing: .3em; color: var(--ink3); padding-bottom: 34px; }
.scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 28px; background: linear-gradient(var(--gold), transparent); animation: line 2.4s ease-in-out infinite; }
@keyframes line { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 99px; font-size: 15px; letter-spacing: .04em; border: 1px solid var(--gold); transition: background .2s, color .2s; }
.btn:hover { text-decoration: none; }
.btn-main { background: var(--gold); color: #1c130d; font-weight: 600; }
.btn-main:hover { background: #e7c891; }
.btn-ghost { color: var(--ink); background: rgba(23,16,12,.35); }
.btn-ghost:hover { background: rgba(214,180,124,.14); }

/* sections */
.sec { max-width: var(--w); margin: 0 auto; padding: 112px 24px; }
.sec-h { margin: 0 0 48px; text-align: center; font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: .14em; }
.sec-h span { display: inline-block; position: relative; padding-bottom: 18px; }
.sec-h span::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 36px; height: 2px; background: var(--red); transform: translateX(-50%); border-radius: 2px; }
.sub-h { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .1em; margin: 72px 0 24px; text-align: center; color: var(--ink2); }
.note { font-size: 12.5px; color: var(--ink3); text-align: center; margin: 14px 0 0; }

/* watch */
.watch { text-align: center; }
.watch-lead { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: .06em; }
.watch-lead svg { color: var(--red); width: 1.3em; height: 1.3em; }
.watch-sub { color: var(--ink2); margin: 8px 0 40px; }
.sched { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; text-align: left; border-top: 1px solid var(--line); }
.sched li { display: grid; grid-template-columns: 13.5em 1fr auto; gap: 16px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.sched time { color: var(--ink2); font-variant-numeric: tabular-nums; font-size: 14px; }
.badge { font-size: 11.5px; letter-spacing: .08em; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink3); white-space: nowrap; }
.sched li.is-out .badge { background: var(--red); border-color: var(--red); color: #fff; }
.sched li.is-out .s-label { color: var(--ink); }
.sched li.is-soon .s-label { color: var(--ink2); }
.watch-subs { color: var(--ink3); font-size: 13.5px; margin: 28px 0 0; }
.watch-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 0; }

/* trailer */
.trailer { background: none; }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 960px; margin: 0 auto; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.video iframe, .video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { padding: 0; cursor: pointer; background: #000; }
.video-play img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.video-play:hover img { opacity: .85; }
.video-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.video-icon svg { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%); filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }

/* story */
.story { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; max-width: 1240px; }
.story-img img { border-radius: 4px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% 50%; }
.story .sec-h { text-align: left; }
.story .sec-h span::after { left: 0; transform: none; }
.story-text p { font-family: var(--serif); font-size: 17px; line-height: 2.05; margin: 0 0 1.2em; }
.story-text .question { color: var(--gold); font-size: 22px; letter-spacing: .08em; margin-top: 1.6em; }
.world { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.world img { border-radius: 4px; }
.world p { margin: 0 0 20px; color: var(--ink2); }
.tropes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tropes li { font-size: 13px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--gold); }

/* cast */
.cast { max-width: 1240px; }
.chars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; }
.char { grid-column: span 2; background: var(--bg2); border-radius: 6px; overflow: hidden; }
.char:nth-child(1), .char:nth-child(2) { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.15fr; }
.char img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.char:nth-child(1) img, .char:nth-child(2) img { height: 100%; }
.char-body { padding: 22px 22px 26px; }
.char h3 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .08em; line-height: 1.6; }
.char rt { font-family: var(--sans); font-size: 11px; letter-spacing: .12em; color: var(--ink3); font-weight: 400; }
.char .orig { display: block; font-size: 13px; color: var(--ink3); letter-spacing: .1em; font-family: var(--sans); font-weight: 400; }
.char-role { color: var(--gold); font-size: 13.5px; margin: 6px 0 12px; }
.char-role .age { color: var(--ink3); margin-left: 10px; white-space: nowrap; display: inline-block; }
.char p:last-child { margin: 0; font-size: 14.5px; color: var(--ink2); line-height: 1.85; }

/* episodes */
.eps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.ep-link { display: flex; flex-direction: column; height: 100%; color: inherit; background: var(--bg2); border-radius: 6px; overflow: hidden; transition: transform .25s, background .25s; }
.ep-link:hover { text-decoration: none; transform: translateY(-3px); background: var(--bg3); }
.ep-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.ep-img img { width: 100%; height: 100%; object-fit: cover; }
.ep.is-soon .ep-img img { filter: grayscale(.55) brightness(.7); }
.ep-body { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 22px; flex: 1; }
.ep-no { font-family: var(--serif); color: var(--gold); letter-spacing: .14em; font-size: 14px; }
.ep-title { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .06em; }
.ep-hook { font-family: var(--serif); color: var(--ink); font-size: 15.5px; margin-top: 4px; }
.ep-story { color: var(--ink3); font-size: 13.5px; line-height: 1.8; margin-top: 6px; }
.ep-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--ink3); }
.ep.is-out .ep-cta { color: var(--gold); }

/* music */
.music-box { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.music-box img { border-radius: 4px; }
.music h3 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .08em; }
.music-sub { margin: 2px 0 18px; font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 20px; }
.music-box p { color: var(--ink2); }
.mv { margin-top: 26px; }
.mv-soon { display: inline-block; padding: 10px 20px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink2); font-size: 14px; }

/* making */
.making { text-align: center; }
.making-lead { font-family: var(--serif); font-size: 19px; margin: 0 0 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.steps li { background: var(--bg2); border-radius: 6px; padding: 24px 22px; }
.step-n { font-family: var(--serif); color: var(--red); font-size: 26px; font-style: italic; }
.steps h3 { margin: 4px 0 8px; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.steps p { margin: 0; font-size: 14px; color: var(--ink2); line-height: 1.8; }
.ai { max-width: 820px; margin: 40px auto 0; padding: 22px 26px; border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; text-align: left; }
.ai-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--bg); background: var(--gold); padding: 2px 10px; border-radius: 3px; }
.ai p:last-child { margin: 0; font-size: 14px; color: var(--ink2); }

/* contact */
.contact { text-align: center; }
.contact > p { color: var(--ink2); margin: 0; }
.mail { margin: 18px 0 0 !important; }
.mail a { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(18px, 2.2vw, 24px); font-family: var(--serif); letter-spacing: .04em; }
.banners { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.banners a { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; color: var(--ink); background: var(--bg2); }
.banners img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: opacity .3s, transform .5s; }
.banners a:hover { text-decoration: none; }
.banners a:hover img { opacity: .7; transform: scale(1.03); }
.banners span { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; background: linear-gradient(transparent, rgba(23,16,12,.92)); font-size: 14px; text-align: left; }
.banners small { flex-basis: 100%; color: var(--ink3); font-size: 12px; }
.share { margin-top: 56px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; }
.share p { margin: 0 8px 0 0; width: 100%; color: var(--ink3); font-size: 13px; letter-spacing: .1em; }
.sh { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: background .2s; }
.sh:hover { background: var(--bg3); }
.sh-line svg { color: #06c755; }
.sh-fb svg { color: #8fb3ff; }

/* footer */
.foot { border-top: 1px solid rgba(214,180,124,.14); padding: 56px 24px 40px; text-align: center; background: #120c09; }
.foot-logo { width: 120px; margin: 0 auto 24px; }
.foot .lang { justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.privacy { max-width: 720px; margin: 0 auto; text-align: left; font-size: 13.5px; color: var(--ink2); }
.privacy summary { cursor: pointer; text-align: center; color: var(--ink3); list-style: none; font-size: 13px; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::after { content: " ＋"; }
.privacy[open] summary::after { content: " －"; }
.privacy h2 { font-family: var(--serif); font-size: 18px; margin: 20px 0 8px; }
.copy { color: var(--ink3); font-size: 12px; margin: 28px 0 0; }

/* phones and tablets */
@media (max-width: 1080px) {
  .top { flex-wrap: wrap; row-gap: 0; }
  .menu { order: 3; flex-basis: 100%; margin: 0 -24px; padding: 0 24px; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; }
  .lang { margin-left: auto; }
  section[id], main { scroll-margin-top: 104px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .top { padding: 8px 16px; gap: 10px; }
  .brand img { width: 128px; }
  .lang { font-size: 12px; letter-spacing: .06em; }
  .lang a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 38px; padding: 0 6px; }
  .ln-full { display: none; }
  .ln-code { display: inline; }
  .menu { margin: 0 -16px; padding: 0 16px; }
  .hero { min-height: 0; display: block; padding: 0 16px 72px; }
  .hero-bg { position: relative; inset: auto; margin: 0 -16px; aspect-ratio: 1 / 1; }
  .hero-inner { max-width: none; }
  .hero-bg img { object-position: 42% 30%; }
  .hero-bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(23,16,12,0) 45%); }
  .hero-inner { margin-top: -36px; position: relative; }
  .hero h1 { width: min(420px, 100%); }
  .tagline { margin-top: 24px; }
  .scroll { display: none; }
  .sec { padding: 80px 16px; }
  .sec-h { margin-bottom: 36px; }
  .sched li { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .sched time { grid-column: 1; font-size: 13px; }
  .sched .s-label { grid-column: 1; grid-row: 2; }
  .sched .badge { grid-column: 2; grid-row: 1 / span 2; }
  .story { grid-template-columns: 1fr; gap: 32px; }
  .story-img img { aspect-ratio: 16 / 10; }
  .world { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
  .chars { grid-template-columns: 1fr; gap: 14px; }
  .char, .char:nth-child(1), .char:nth-child(2) { grid-column: span 1; display: grid; grid-template-columns: 35% 1fr; align-items: start; }
  .char img, .char:nth-child(1) img, .char:nth-child(2) img { height: auto; aspect-ratio: 4 / 5; min-height: 0; align-self: start; }
  .char-body { padding: 14px 14px 18px; }
  .char h3 { font-size: 18px; }
  .char p:last-child { font-size: 14px; }
  .eps { grid-template-columns: 1fr; gap: 18px; }
  .music-box { grid-template-columns: 1fr; gap: 24px; }
  .banners { grid-template-columns: 1fr; }
  .ai { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .ai-label { justify-self: start; }
}
@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .brand img { width: 108px; }
  .lang a { min-width: 34px; padding: 0 4px; }
}

/* ---------- 江ノ電の小さなレール（ヘッダーの下、ページの進み具合） ---------- */
.top { position: sticky; }
.rail-mini { position: absolute; left: 0; right: 0; bottom: -1px; height: 0; pointer-events: none; }
.tram-mini { position: absolute; bottom: 0; left: calc(var(--sp, 0) * (100% - 40px)); width: 40px; height: 17px; transition: left .12s linear; }
.tram-mini svg { width: 100%; height: 100%; display: block; }
.is-rev .tram-mini svg, .journey.is-rev .tram svg { transform: scaleX(-1); }

/* ---------- 毎週土曜、東京から海へ（横に進む道のり） ---------- */
.journey { position: relative; background: linear-gradient(180deg, var(--bg) 0%, #0f1418 18%, #10161a 82%, var(--bg) 100%); }
.journey-pin { padding: 96px 0 72px; overflow: hidden; }
.journey-head { max-width: 1120px; margin: 0 auto; padding: 0 24px 28px; }
.journey-h { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.6vw, 44px); letter-spacing: .08em; line-height: 1.45; margin: 6px 0 12px; }
.journey-lead { color: var(--ink2); max-width: 640px; margin: 0; font-size: 15px; }
.journey-strip { list-style: none; margin: 0; padding: 0 24px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.journey-strip::-webkit-scrollbar { display: none; }
.stop { flex: 0 0 min(64vw, 760px); scroll-snap-align: center; }
.stop figure { margin: 0; }
.stop-media { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #0b0f12; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.stop-media video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 1.2s ease, filter .8s ease; filter: saturate(.75) brightness(.8); }
.stop.is-active .stop-media video { transform: scale(1); filter: none; }
.stop-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(8,10,12,.55)); pointer-events: none; }
.stop figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; padding: 16px 4px 0; }
.stop-no { grid-row: span 2; font-family: "HL Garamond", serif; font-style: italic; color: var(--gold); font-size: 30px; line-height: 1; }
.stop-name { font-family: var(--serif); font-size: 20px; letter-spacing: .12em; }
.stop-line { color: var(--ink2); font-size: 14.5px; }
.journey-rail { position: relative; max-width: 1120px; height: 64px; margin: 30px auto 0; padding: 0 24px; }
.rail { position: absolute; left: 24px; right: 24px; top: 22px; height: 6px; border-top: 2px solid #8a7a66; border-bottom: 2px solid #8a7a66;
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(138, 122, 102, .55) 10px 13px); }
.station { position: absolute; top: 20px; left: calc(24px + var(--x) * (100% - 48px)); width: 10px; margin-left: -5px; font-size: 12px; color: var(--ink3); white-space: nowrap; }
.station i { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid #8a7a66; transition: background .4s, border-color .4s; }
.station b { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font-weight: 500; letter-spacing: .08em; transition: color .4s; }
.station:first-of-type b { left: 0; transform: none; }
.station:last-of-type b { left: auto; right: 0; transform: none; }
.station.is-on i { background: var(--gold); border-color: var(--gold); }
.station.is-on b { color: var(--ink); }
.tram { position: absolute; top: -13px; left: calc(24px + var(--p, 0) * (100% - 48px)); width: 96px; height: 40px; transform: translateX(calc(var(--p, 0) * -100%)); z-index: 2; }
.tram svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.journey.is-moving .tram svg .tram-wheels, .journey.is-moving .tram { animation: tram-bob .32s ease-in-out infinite alternate; }
@keyframes tram-bob { from { margin-top: 0; } to { margin-top: -1.5px; } }
.journey-hint { margin: 12px 0 0; color: var(--gold); font-size: 12.5px; letter-spacing: .14em; }
.journey-head { position: relative; }
.journey-skip { position: absolute; right: 24px; bottom: 28px; font-size: 12.5px; color: var(--ink3); padding: 6px 2px; display: none; }
.journey.is-pinned .journey-skip { display: inline-block; }
.journey-skip:hover { color: var(--ink); text-decoration: none; }
.tram-mini { opacity: 1; transition: left .12s linear, opacity .4s; }
.in-journey .tram-mini { opacity: 0; }
.season-fx { transition: opacity 1.1s; }
.season-fx.is-off { opacity: 0; }
.season-ep:not([href]) { color: var(--ink2); cursor: default; }
.journey.is-pinned .journey-pin > * { flex-shrink: 0; }
@keyframes hint-nudge { 50% { transform: translateX(6px); } }

/* 固定して横へ進む（JavaScript が is-pinned を付けたときだけ） */
.journey.is-pinned { height: calc(100vh * 4.2); }
.journey.is-pinned .journey-pin { position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; padding: 72px 0 16px; }
.journey.is-pinned .journey-strip { overflow: visible; scroll-snap-type: none; will-change: transform; transform: translate3d(var(--tx, 0px), 0, 0); }
.journey.is-pinned .journey-rail { display: block; }
.journey.is-pinned .journey-head, .journey.is-pinned .journey-rail { width: 100%; }
.journey.is-pinned .stop { flex-basis: min(52vw, 44vh * 1.778, 760px); }
.journey.is-pinned .journey-strip { padding-left: max(24px, calc((100vw - 1120px) / 2 + 24px)); padding-right: 24px; }

/* ---------- 祭りまで、八週間（季節のダイヤル） ---------- */
.season { text-align: center; }
.season-kicker { margin: 0 0 4px; }
.season-lead { color: var(--ink2); max-width: 620px; margin: 0 auto 30px; }
.season-stage { position: relative; max-width: 980px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #0b0f12; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.season-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 6s ease; }
.season-img.is-on { opacity: 1; transform: scale(1); }
.season-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.season-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(10,8,6,.72)); pointer-events: none; }
.season-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 28px 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; text-align: left; }
.season-week { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 40px); letter-spacing: .1em; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.season-name { color: var(--ink); font-size: 15px; letter-spacing: .08em; }
.season-ep { margin-left: auto; font-size: 14px; position: relative; z-index: 3; }
.season-dial { position: relative; display: flex; justify-content: space-between; max-width: 760px; margin: 26px auto 0; padding: 0 6px; }
.dial-line { position: absolute; left: 24px; right: 24px; top: 21px; height: 2px; background: linear-gradient(90deg, #6d8fa3, #a7c4a0 45%, #e3b6c2 75%, var(--gold)); opacity: .6; }
.season-dial button { position: relative; background: none; border: 0; color: var(--ink3); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 6px; min-width: 40px; min-height: 44px; }
.season-dial .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink3); transition: transform .3s, background .3s, border-color .3s; }
.season-dial .wk { font-family: "HL Garamond", serif; font-size: 15px; line-height: 1; }
.season-dial button[aria-checked="true"] { color: var(--ink); }
.season-dial button[aria-checked="true"] .dot { background: var(--gold); border-color: var(--gold); transform: scale(1.35); box-shadow: 0 0 0 5px rgba(214, 180, 124, .18); }
.season-dial button:hover .dot { border-color: var(--gold); }

@media (max-width: 820px) {
  .journey-pin { padding: 72px 0 56px; }
  .journey-h { font-size: 23px; letter-spacing: .03em; }
  .journey-head { padding-inline: 16px; }
  .stop { flex-basis: 84vw; }
  .journey.is-pinned .journey-pin { padding: 108px 0 20px; justify-content: flex-start; }
  .journey.is-pinned .journey-head { padding-bottom: 20px; }
  .journey.is-pinned .journey-lead { font-size: 13.5px; }
  .journey.is-pinned .stop { flex-basis: 84vw; }
  .journey-rail { height: 58px; margin-top: 18px; }
  .station b { font-size: 11px; letter-spacing: .04em; opacity: 0; transition: opacity .3s; }
  .station.is-here b { opacity: 1; }
  .tram { width: 72px; height: 30px; top: -4px; }
  .season-cap { padding: 0 16px 14px; }
  .season-name { font-size: 13px; }
  .season-ep { margin-left: 0; width: 100%; font-size: 13px; }
  .season-dial { margin-top: 18px; }
  .season-dial button { min-width: 34px; padding-inline: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .tram-mini, .season-img { transition: none; }
}
@media (min-width: 821px) and (max-height: 820px) {
  .journey.is-pinned .journey-pin { padding-top: 64px; }
  .journey.is-pinned .journey-h { font-size: 30px; margin: 2px 0 6px; }
  .journey.is-pinned .journey-lead { display: none; }
  .journey.is-pinned .journey-head { padding-bottom: 18px; }
  .journey.is-pinned .journey-skip { bottom: 18px; }
  .journey.is-pinned .stop { flex-basis: min(52vw, 42vh * 1.778, 760px); }
  .journey.is-pinned .stop figcaption { padding-top: 10px; }
  .journey.is-pinned .journey-rail { margin-top: 16px; }
}

/* 2026-12-04 Codex 3 回目の直し */
.journey-strip:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 4px; }
.season-pause { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(10, 8, 6, .45); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.season-pause:hover { background: rgba(10, 8, 6, .7); }
.season-pause:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.season-pause .i-pause { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.season-pause .i-play { display: none; width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.season-pause.is-paused .i-pause { display: none; }
.season-pause.is-paused .i-play { display: block; }
@media (prefers-reduced-motion: reduce) {
  .stop-media video { transition: none; transform: none; }
  .station i, .station b, .season-dial .dot, .season-fx { transition: none; }
}
@media (max-width: 1080px) {
  /* 目次は横に送れる。右の端を薄くぼかして続きがあると見せ、最後まで送ったら消す（矢印は使わない）。 */
  .top::after { content: ""; position: absolute; right: 0; bottom: 0; width: 56px; height: 46px; background: linear-gradient(90deg, rgba(23, 16, 12, 0), #17100c 80%); pointer-events: none; transition: opacity .3s; }
  .top.menu-end::after { opacity: 0; }
}

/* ---------- 言語えらび（2026-12-04）：押すと、各言語の決め台詞が並ぶ切符の板が開く ---------- */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.lp { position: relative; flex: none; }
.lp-btn { list-style: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px 0 10px; border: 1px solid rgba(214, 180, 124, .45); border-radius: 99px; color: var(--ink); font-size: 12.5px; letter-spacing: .06em; cursor: pointer; user-select: none; -webkit-user-select: none; transition: background .25s, border-color .25s; }
.lp-btn::-webkit-details-marker { display: none; }
.lp-btn::marker { content: ""; }
.lp-btn > svg:first-of-type { color: var(--gold); flex: none; }
.lp-btn:hover, .lp[open] .lp-btn { background: rgba(214, 180, 124, .12); border-color: var(--gold); }
.lp-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lp-code { display: none; font-family: "HL Garamond", serif; letter-spacing: .12em; }
.lp-chev { opacity: .7; transition: transform .25s; }
.lp[open] .lp-chev { transform: rotate(180deg); }
.lp-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(360px, calc(100vw - 32px)); padding: 16px 16px 8px; box-sizing: border-box; background: #1d1612; border: 1px solid rgba(214, 180, 124, .3); border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); z-index: 30; animation: lp-in .22s ease-out; }
.lp-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; padding: 0 2px 10px; border-bottom: 1px dashed rgba(214, 180, 124, .35); font-family: "HL Garamond", serif; font-style: italic; color: var(--gold); font-size: 15px; letter-spacing: .08em; }
.lp-head span:last-child { font-style: normal; color: var(--ink3); font-size: 12px; }
.lp-list { list-style: none; margin: 0; padding: 0; }
.lp-list li { position: relative; }
.lp-list li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 50%; height: 100%; width: 2px; background: #8a7a66; }
.lp-list a { position: relative; display: grid; grid-template-columns: 20px 1fr auto; column-gap: 12px; align-items: baseline; padding: 10px 8px 10px 0; color: var(--ink); border-radius: 6px; }
.lp-list a:hover { text-decoration: none; background: rgba(214, 180, 124, .07); }
.lp-list a:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.lp-list i { grid-row: span 2; align-self: center; justify-self: center; position: relative; z-index: 1; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; background: #1d1612; border: 2px solid #8a7a66; transition: border-color .25s, background .25s; }
.lp-list a:hover i { border-color: var(--gold); }
.lp-list a[aria-current] i { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 180, 124, .2); }
.lp-name { font-family: var(--serif); font-size: 17px; letter-spacing: .06em; }
.lp-list a[aria-current] .lp-name { color: var(--gold); }
.lp-x { font-family: "HL Garamond", serif; font-size: 12px; color: var(--ink3); letter-spacing: .14em; }
.lp-line { grid-column: 2 / 4; margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--ink2); }
@keyframes lp-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .lp-panel { animation: none; } .lp-chev { transition: none; } }
@media (max-width: 1080px) { .lp { margin-left: auto; } }
@media (max-width: 820px) {
  .lp-btn { min-height: 40px; padding: 0 10px; }
  .lp-cur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .lp-code { display: inline; }
}
.lp-btn > svg:first-of-type, .lp-btn > svg:first-of-type * { fill: none; }
.lp-chev path { fill: none; }

/* ---------- 入口：花立通りの恋物語（2026-12-04） ---------- */
.hub-hero { position: relative; min-height: min(100svh, 960px); display: grid; align-items: end; padding: 120px 24px 96px; isolation: isolate; overflow: hidden; }
.hub-bg { position: absolute; inset: 0; z-index: -1; background: #0e1216 url("assets/hub-hero.jpg") center / cover no-repeat; }
.hub-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(0deg, var(--bg) 0%, rgba(23,16,12,.55) 32%, rgba(23,16,12,.15) 62%, rgba(23,16,12,.35) 100%),
  linear-gradient(90deg, rgba(23,16,12,.6) 0%, rgba(23,16,12,0) 60%); }
.hub-inner { max-width: var(--w); width: 100%; margin: 0 auto; }
.hub-h { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 6vw, 76px); letter-spacing: .14em; line-height: 1.25; text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
html[lang="en"] .hub-h, html[lang="es"] .hub-h, html[lang="pt"] .hub-h { font-family: "HL Garamond", serif; font-weight: 500; letter-spacing: .06em; }
.hub-lead { margin: 22px 0 0; max-width: 34em; color: var(--ink); font-size: 16px; line-height: 1.9; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.hub-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; }
.sec-kicker { text-align: center; margin-bottom: 8px; }

.work-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 72px; }
.work { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.work.is-flip .work-img { order: 2; }
.work-img { display: block; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); aspect-ratio: 16 / 9; }
.work-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s ease; }
.work:hover .work-img img { transform: scale(1.03); }
.work-kind { display: inline-block; margin: 0 0 12px; padding: 2px 12px; border: 1px solid var(--gold); border-radius: 99px; color: var(--gold); font-size: 12.5px; letter-spacing: .14em; }
.work-h { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 36px); letter-spacing: .1em; line-height: 1.4; }
.work-logo { width: min(380px, 100%); height: auto; display: block; }
.work-sub { margin: 8px 0 0; color: var(--ink3); font-size: 13px; letter-spacing: .12em; }
.work-line { margin: 22px 0 0; font-family: var(--serif); font-size: 19px; line-height: 1.7; letter-spacing: .04em; }
.work-desc { margin: 10px 0 0; color: var(--ink2); font-size: 14.5px; }
.work-status { margin: 18px 0 0; color: var(--gold); font-size: 13.5px; letter-spacing: .06em; }
.work-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(214, 180, 124, .18); vertical-align: 1px; }
.work-more { margin: 6px 0 0; color: var(--ink); font-size: 13.5px; }
.work-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

.street-lead { text-align: center; color: var(--ink2); margin: -24px auto 40px; max-width: 36em; }
.street-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.street-list img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; display: block; box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.street-list h3 { margin: 18px 0 6px; font-family: var(--serif); font-size: 18px; letter-spacing: .08em; }
.street-list p { margin: 0; color: var(--ink2); font-size: 14.5px; }
.is-hub .banners { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 820px) {
  .hub-hero { min-height: 0; padding: 0 16px 64px; display: block; }
  .hub-bg { position: relative; inset: auto; margin: 0 -16px; aspect-ratio: 4 / 5; z-index: 0; }
  .hub-inner { margin-top: -40%; position: relative; }
  .hub-h { font-size: 38px; letter-spacing: .1em; }
  .hub-lead { font-size: 15px; }
  .work { grid-template-columns: 1fr; gap: 22px; }
  .work.is-flip .work-img { order: 0; }
  .work-line { font-size: 17px; }
  .work-btns .btn { flex: 1 1 auto; justify-content: center; }
  .street-list { grid-template-columns: 1fr; gap: 34px; }
  .street-lead { margin-top: -16px; }
  .is-hub .banners { grid-template-columns: 1fr; }
}

/* 矢印は使わない（2026-12-04、ユーザー「→ ↓ は AI っぽい」。描いた矢印も外した） */

/* 花立通りの私書箱（メールアドレスを出さずに、お手紙を受け取る） */
.mail button { font: inherit; cursor: pointer; }
.pb { text-align: left; width: min(440px, calc(100vw - 24px)); max-height: min(86svh, 760px); padding: 0; border: 1px solid rgba(214, 180, 124, .45); border-radius: 18px; background: #1d1510; color: var(--ink); box-shadow: 0 40px 90px rgba(0, 0, 0, .6); overflow: hidden; }
.pb[open] { display: flex; flex-direction: column; animation: pb-in .35s cubic-bezier(.2, .8, .2, 1); }
.pb::backdrop { background: rgba(10, 7, 5, .62); backdrop-filter: blur(6px); }
@keyframes pb-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.pb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 12px 20px; border-bottom: 1px solid rgba(214, 180, 124, .18); background: linear-gradient(180deg, rgba(181, 84, 75, .16), transparent); }
.pb-title { margin: 0; font-family: var(--serif); font-size: 16px; letter-spacing: .12em; display: flex; align-items: center; gap: 10px; }
.pb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(181, 84, 75, .22); }
.pb-x { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink2); cursor: pointer; }
.pb-x:hover, .pb-x:focus-visible { background: rgba(245, 234, 219, .08); color: var(--ink); }
.pb-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pb-log { padding: 18px 18px 4px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.pb-bot, .pb-me { margin: 0; max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.7; animation: pb-in .3s ease both; }
.pb-bot { align-self: flex-start; background: #2b2018; border-top-left-radius: 4px; }
.pb-me { align-self: flex-end; background: rgba(181, 84, 75, .32); border-top-right-radius: 4px; white-space: pre-wrap; }
.pb-log .pb-bot:nth-child(2) { animation-delay: .25s; }
.pb-form { padding: 6px 18px 18px; display: grid; gap: 12px; overflow-y: auto; }
.pb-form[hidden], .pb-again[hidden] { display: none; }
.pb-topics { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pb-q { float: none; width: auto; margin: 0 0 6px; display: block; }
.pb-topics label { position: relative; cursor: pointer; }
.pb-topics input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pb-topics span { display: inline-block; padding: 6px 14px; border: 1px solid rgba(214, 180, 124, .5); border-radius: 99px; color: var(--gold); font-size: 13.5px; transition: background .2s, color .2s; }
.pb-topics input:checked + span { background: var(--gold); color: #1d1510; }
.pb-topics input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.pb-field { display: grid; gap: 6px; font-size: 13px; color: var(--ink2); }
.pb-field textarea, .pb-field input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid rgba(245, 234, 219, .2); border-radius: 10px; background: #140e0a; color: var(--ink); font: inherit; font-size: 15px; line-height: 1.6; }
.pb-field textarea { resize: vertical; min-height: 96px; }
.pb-field textarea:focus, .pb-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 180, 124, .2); }
.pb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pb-send { justify-self: stretch; justify-content: center; }
.pb-send:disabled { opacity: .7; cursor: progress; }
.pb-note { margin: 0; color: var(--ink3); font-size: 12px; text-align: center; }
.pb-again { margin: 0; padding: 8px 18px 20px; display: flex; justify-content: center; }
@media (max-width: 820px) {
  .pb { width: 100%; max-width: 100%; max-height: 92svh; margin: auto 0 0; border-radius: 18px 18px 0 0; border-bottom: 0; }
  @keyframes pb-in { from { opacity: 0; transform: translateY(40px); } }
}
@media (prefers-reduced-motion: reduce) { .pb[open], .pb-bot, .pb-me { animation: none; } }

/* 入口（2026-12-04、ユーザー「入り口もっとすごい感じに」「遊び心のある、BL ファンがよろこぶ感じ」）
   二人の店の場面に灯がともり、題が一字ずつ浮かび、第 1 話の台詞がメッセージのように届く。タグは好きな型。 */
.hx { position: relative; min-height: min(100svh, 980px); display: grid; grid-template-columns: minmax(480px, 47%) 1fr; isolation: isolate; overflow: hidden; }
.hx-bg { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%); }
.hx-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 43% 50%; display: block; animation: hx-light 2.8s ease-out both, hx-kb 16s cubic-bezier(.2, .6, .2, 1) both; }
.hx-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0, transparent 22%), radial-gradient(120% 90% at 60% 40%, transparent 55%, rgba(23, 16, 12, .55)); }
@keyframes hx-light { from { filter: brightness(.3) saturate(.4); } 60% { filter: brightness(.85) saturate(.9); } to { filter: none; } }
@keyframes hx-kb { from { transform: scale(1.08); } to { transform: scale(1); } }
.hx-side { grid-column: 1; align-self: center; padding: 120px 24px 72px clamp(24px, 6vw, 120px); }
.is-hub .hx-side:has(.is-tate) { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: start; }
.hx-title { margin: 0 0 22px; font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.15; letter-spacing: .06em; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
html[lang="en"] .hx-title, html[lang="es"] .hx-title, html[lang="pt"] .hx-title { font-family: "HL Garamond", serif; font-weight: 500; font-size: clamp(40px, 4.2vw, 60px); }
.hx-title.is-tate { margin: 0; writing-mode: vertical-rl; font-size: clamp(44px, 4.4vw, 66px); letter-spacing: .22em; line-height: 1; }
.hx-word { white-space: nowrap; }
.hx-ch { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.35em); animation: hx-ch 1s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.45s + var(--i) * .085s); }
.is-tate .hx-ch { transform: translateY(-.35em); }
@keyframes hx-ch { to { opacity: 1; filter: none; transform: none; } }
.hx-body .kicker { margin-bottom: 0; }
.hx-talk { margin: 22px 0 0; display: grid; gap: 10px; max-width: 470px; }
.hx-msg, .hx-typing { display: flex; align-items: flex-end; gap: 10px; opacity: 0; animation: hx-pop .5s cubic-bezier(.2, .9, .3, 1.3) forwards; }
.hx-av { flex: none; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(214, 180, 124, .65); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.hx-msg p, .hx-typing p { margin: 0; padding: 9px 15px 10px; border-radius: 18px; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.hx-a { animation-delay: 1.25s; }
.hx-a p { background: #f5eadb; color: #24170f; border-bottom-left-radius: 5px; }
.hx-b, .hx-typing { flex-direction: row-reverse; justify-self: end; }
.hx-b { animation-delay: 3.35s; }
.hx-b p { background: #8a3a33; color: #fbefe6; border-bottom-right-radius: 5px; }
.hx-who { display: block; font-size: 11px; letter-spacing: .08em; opacity: .7; line-height: 1.6; }
.hx-who rt { font-size: 8px; letter-spacing: 0; }
.hx-line { display: block; text-wrap: balance; font-family: var(--serif); font-size: 17px; line-height: 1.55; letter-spacing: .04em; }
.hx-read { white-space: nowrap; align-self: flex-end; font-size: 11px; color: var(--ink3); opacity: 0; animation: hx-fade .4s 2.1s forwards; }
.hx-typing { max-height: 60px; animation: hx-pop .4s 2.3s forwards, hx-gone .25s 3.2s forwards; }
.hx-typing p { background: #8a3a33; display: flex; gap: 5px; padding: 14px 16px; border-bottom-right-radius: 5px; }
.hx-typing i { width: 6px; height: 6px; border-radius: 50%; background: #fbefe6; animation: hx-dot 1s infinite; }
.hx-typing i:nth-child(2) { animation-delay: .15s; } .hx-typing i:nth-child(3) { animation-delay: .3s; }
.hx-talk figcaption { order: -1; font-size: 11.5px; color: var(--ink3); letter-spacing: .06em; opacity: 0; animation: hx-fade .5s .9s forwards; }
@keyframes hx-pop { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes hx-fade { to { opacity: 1; } }
@keyframes hx-gone { to { opacity: 0; max-height: 0; margin-top: -10px; } }
@keyframes hx-dot { 0%, 100% { opacity: .35; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
.hx .hub-lead { margin: 26px 0 0; max-width: 30em; font-size: 15px; color: var(--ink2); text-shadow: none; }
.hx-tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 470px; }
.hx-tags li { opacity: 0; animation: hx-pop .45s cubic-bezier(.2, .9, .3, 1.3) forwards; animation-delay: calc(1.9s + var(--i) * .07s); }
.hx-tags a { display: inline-block; padding: 5px 13px; border: 1px solid rgba(214, 180, 124, .5); border-radius: 99px; background: rgba(23, 16, 12, .55); color: var(--gold); font-size: 13px; letter-spacing: .03em; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.hx-tags a:hover, .hx-tags a:focus-visible { transform: translateY(-2px) rotate(-2deg); background: var(--gold); color: var(--bg); }
.hx .hero-ai { margin-top: 22px; }
@media (max-width: 1080px) and (min-width: 821px) { .hx { grid-template-columns: minmax(400px, 52%) 1fr; } .hx-bg { width: 66%; } }
@media (max-width: 820px) {
  .hx { display: block; min-height: 0; }
  .hx-bg { position: relative; width: 100%; aspect-ratio: 1 / 1; z-index: 0; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent); mask-image: linear-gradient(180deg, #000 62%, transparent); }
  .hx-bg img { object-position: 41% 50%; }
  .hx-side { position: relative; margin-top: -26%; padding: 0 18px 56px; }
  .is-hub .hx-side:has(.is-tate) { gap: 18px; }
  .hx-title.is-tate { font-size: 34px; letter-spacing: .16em; }
  .hx-title { font-size: 36px; }
  .hx-line { font-size: 15.5px; }
  .hx-av { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-bg img, .hx-ch, .hx-msg, .hx-typing, .hx-read, .hx-talk figcaption, .hx-tags li { animation: none; opacity: 1; filter: none; transform: none; }
  .hx-typing { display: none; }
}
