/* 宵灯こまり トップ専用（index.html だけが読み込む）。
   土台・ヒーロー・流れる帯・プロフィール・物語・コンテンツ・写真・狐火花火・予定・お知らせ・つながる・フッター。
   演出（イントロ・鳥居の没入）は home-motion.css、画面幅ごとの指定は site-responsive.css の「トップ」の区切り。 */

:root {
  --night: #0B0712;
  --lacquer: #1A0E14;
  --dusk: #3B2038;
  --hi: #E8443A;
  --gold: #F5C34B;
  --lantern: #FFB25E;
  --kitsunebi: #8FD8FF;
  --paper: #FFF6E8;
  --line: rgb(255 246 232 / 0.14);
  --muted: rgb(255 246 232 / 0.67);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --shell-max: 76rem;
  --section-space: clamp(6rem, 11vw, 10rem);
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "BIZ UDMincho", serif;
  --gothic: "Hiragino Kaku Gothic ProN", "Yu Gothic", "BIZ UDPGothic", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--night);
  scroll-behavior: auto;
}

html,
body {
  overflow-x: clip;
}

html.intro-locked,
html.intro-locked body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

html.intro-locked body {
  touch-action: none;
}

body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 18% 12%, rgb(59 32 56 / 0.24), transparent 30rem),
    var(--night);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.site-shell::before {
  position: absolute;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.09;
  background-image:
    repeating-radial-gradient(circle at 17% 23%, rgb(255 246 232 / 0.16) 0 0.45px, transparent 0.6px 3px),
    repeating-radial-gradient(circle at 71% 67%, rgb(255 246 232 / 0.08) 0 0.5px, transparent 0.7px 4px);
  background-size: 7px 9px, 11px 13px;
}

html.motion .site-shell::before {
  display: none;
}

::selection {
  color: var(--night);
  background: var(--gold);
}

img,
svg,
canvas {
  display: block;
}

img {
  inline-size: 100%;
  block-size: auto;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  text-underline-offset: 0.24em;
}

:focus-visible {
  outline: 2px solid var(--kitsunebi);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 120;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--night);
  background: var(--paper);
  transform: translateY(-180%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.template-request-button,
[data-template-request-button] {
  display: none !important;
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section-shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - (var(--gutter) * 2)), var(--shell-max));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-family: var(--mincho);
  font-size: clamp(2rem, 3.6vw, 2.625rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-wrap: balance;
}

.section-lead {
  margin: 1.5rem 0 0;
  color: var(--muted);
  text-wrap: pretty;
}

.section-head {
  margin-block-end: clamp(2.5rem, 5vw, 4.5rem);
}

.warm-glow {
  color: var(--lantern);
  text-shadow: 0 0 12px currentColor, 0 0 28px currentColor;
}

.cool-glow {
  color: var(--kitsunebi);
  text-shadow: 0 0 12px currentColor, 0 0 28px currentColor;
}

/* Hero */
.hero {
  position: relative;
  min-block-size: 100svh;
  overflow: hidden;
  contain: paint;
  background: var(--night);
}

.hero-media,
.hero-scrim,
.hero-particles,
.hero-light {
  position: absolute;
  inset: 0;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  block-size: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-scrim {
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(11 7 18 / 0.86) 0%, rgb(11 7 18 / 0.52) 27%, transparent 57%),
    linear-gradient(0deg, rgb(11 7 18 / 0.94), transparent 35%, rgb(11 7 18 / 0.35));
}

.hero-light {
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 45%, rgb(255 178 94 / 0.14), transparent 26%),
    conic-gradient(from 220deg at 74% 10%, transparent 0 20deg, rgb(255 178 94 / 0.08) 28deg, transparent 40deg 360deg);
  mix-blend-mode: screen;
}

.hero-particles {
  z-index: 3;
  pointer-events: none;
}

.site-header {
  position: absolute;
  z-index: 8;
  inset-block-start: calc(4.5rem + 2.5rem);
  inset-inline: 0;
  width: min(calc(100% - (var(--gutter) * 2)), var(--shell-max));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-inline: auto;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.header-brand,
.header-status {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.header-brand {
  color: rgb(255 246 232 / 0.7);
}

.header-status {
  color: rgb(143 216 255 / 0.76);
}

.header-status::before {
  display: inline-block;
  inline-size: 0.45rem;
  aspect-ratio: 1;
  margin-inline-end: 0.65rem;
  border-radius: 50%;
  content: "";
  background: currentColor;
  box-shadow: 0 0 12px currentColor, 0 0 28px currentColor;
  vertical-align: 0.08em;
}

/* 縦書きなので inset-block-start が右からの距離、inset-inline-start が上からの距離。
   上端はヘッダー（4.5rem）＋間（2.5rem）＋KV上端の帯（3.6rem）の下に 2rem あける */
.hero-catch {
  position: absolute;
  z-index: 6;
  inset-block-start: max(calc(4.5rem + 2.5rem + 3.5rem), clamp(9rem, 18vh, 13rem));
  inset-inline-start: calc(4.5rem + 2.5rem + 3.6rem + 2rem);
  margin: 0;
  font-family: var(--mincho);
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.8;
  text-shadow: 0 4px 26px var(--night);
  text-wrap: balance;
  writing-mode: vertical-rl;
}

.hero-catch > [aria-hidden="true"] {
  display: inline-block !important;
}

.hero-copy {
  position: absolute;
  z-index: 7;
  inset-inline-start: var(--gutter);
  inset-block-end: clamp(3.5rem, 8vh, 5.75rem);
}

.hero-kicker {
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-logo-row {
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
}

.hero-name {
  margin: 0;
  font-family: var(--mincho);
  font-size: clamp(2.8rem, 5.2vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-shadow: 0 4px 30px var(--night);
}

.logo-seal {
  inline-size: 2.25rem;
  aspect-ratio: 1;
  margin-block-end: 0.25rem;
  color: var(--hi);
  filter: drop-shadow(0 0 10px rgb(232 68 58 / 0.5));
}

.hero-role {
  margin: 0.85rem 0 0;
  color: rgb(255 246 232 / 0.82);
  font-size: clamp(0.84rem, 1.35vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 3px 18px var(--night);
  text-wrap: pretty;
}

.hero-character-hit {
  position: absolute;
  z-index: 7;
  inset-block-start: 14%;
  inset-inline-start: 48%;
  inline-size: 38%;
  block-size: 72%;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.hero-character-hit:focus-visible {
  border-radius: 48%;
  outline-offset: -5px;
}

/* 夜空は枠いっぱいで外側の輪が切れて見えないので、内側に出す */
.firework-canvas:focus-visible {
  outline-offset: -6px;
}

.scroll-cue {
  position: absolute;
  z-index: 7;
  right: var(--gutter);
  bottom: clamp(2rem, 5vh, 3.5rem);
  margin: 0;
  color: rgb(255 246 232 / 0.62);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
  writing-mode: horizontal-tb;
}

.scroll-cue::after {
  display: inline-block;
  inline-size: 3.5rem;
  block-size: 1px;
  margin-inline-start: 0.8rem;
  content: "";
  background: linear-gradient(90deg, var(--paper), transparent);
  vertical-align: middle;
}

/* Marquee */
.marquee {
  position: relative;
  z-index: 4;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--hi);
  color: var(--paper);
}

.marquee-track {
  display: flex;
  inline-size: max-content;
  transform-origin: center;
  will-change: transform;
}

.marquee-group {
  flex: none;
  margin: 0;
  padding: 0.9rem 0;
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.1vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.5;
  white-space: nowrap;
}

/* Profile */
.profile {
  background:
    radial-gradient(circle at 12% 35%, rgb(143 216 255 / 0.08), transparent 26rem),
    var(--night);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.profile-figure {
  position: relative;
  margin: 0;
}

.profile-image-button {
  position: relative;
  display: block;
  inline-size: 100%;
  padding: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 48% 48% 0.8rem 0.8rem / 18% 18% 0.8rem 0.8rem;
  cursor: pointer;
  background: var(--lacquer);
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 0.42);
  transform-style: preserve-3d;
}

.profile-image-button::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 20%, rgb(255 178 94 / 0.15), transparent 45%),
    linear-gradient(0deg, rgb(11 7 18 / 0.54), transparent 30%);
}

.profile-image-button img {
  block-size: 100%;
  object-fit: cover;
  object-position: 36% center;
}

.profile-figure figcaption {
  position: absolute;
  inset-inline-start: -0.75rem;
  inset-block-end: 1.5rem;
  padding: 0.55rem 0.9rem;
  color: var(--night);
  background: var(--gold);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.profile-copy .section-lead {
  color: var(--paper);
  font-family: var(--mincho);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  line-height: 1.9;
}

.profile-list {
  margin: 2.5rem 0 0;
  border-block-start: 1px solid var(--line);
}

.profile-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding-block: 0.95rem;
  border-block-end: 1px solid var(--line);
}

.profile-row dt,
.profile-row dd {
  margin: 0;
}

.profile-row dt {
  align-self: start;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgb(232 68 58 / 0.45);
  color: var(--hi);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
}

.profile-row dd {
  color: rgb(255 246 232 / 0.82);
  line-height: 1.7;
  text-wrap: pretty;
}

.powa-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-block-start: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgb(255 178 94 / 0.3);
  background:
    radial-gradient(circle at 12% 50%, rgb(255 178 94 / 0.12), transparent 8rem),
    rgb(26 14 20 / 0.62);
}

.powa-card h3,
.powa-card p {
  margin: 0;
}

.powa-card h3 {
  font-family: var(--mincho);
  font-size: 1.05rem;
  line-height: 1.5;
}

.powa-card p {
  margin-block-start: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.powa-icon {
  position: relative;
  inline-size: 4rem;
  aspect-ratio: 1;
  border: 1px solid rgb(255 246 232 / 0.35);
  border-radius: 50% 50% 42% 42%;
  background:
    radial-gradient(circle at 50% 62%, var(--paper) 0 4%, var(--lantern) 5% 25%, rgb(255 178 94 / 0.18) 38%, transparent 40%),
    var(--paper);
  box-shadow: 0 0 12px rgb(255 178 94 / 0.32), 0 0 28px rgb(255 178 94 / 0.2);
  transition: box-shadow 0.35s var(--ease);
}

.powa-icon::before {
  position: absolute;
  inset-block-start: 22%;
  inset-inline-start: 38%;
  inline-size: 24%;
  aspect-ratio: 1;
  border: 3px solid var(--night);
  border-radius: 50%;
  content: "";
  background: var(--gold);
}

.powa-icon::after {
  position: absolute;
  inset-block-start: -0.45rem;
  inset-inline-start: 38%;
  inline-size: 24%;
  aspect-ratio: 1;
  border: 3px solid var(--gold);
  border-radius: 50%;
  content: "";
}

.powa-card:hover .powa-icon {
  box-shadow: 0 0 12px var(--lantern), 0 0 28px var(--lantern);
  animation: powa-pulse 0.65s var(--ease) 2;
}

@keyframes powa-pulse {
  50% {
    transform: scale(1.04);
  }
}

/* Story */
.story {
  padding-block-start: 0;
  background: var(--lacquer);
}

.story-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
}

.story-frame > img {
  position: absolute;
  z-index: -3;
  inset: 0;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
}

.story-frame::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgb(11 7 18 / 0.95), rgb(11 7 18 / 0.68) 42%, transparent 75%),
    linear-gradient(0deg, rgb(11 7 18 / 0.72), transparent 44%);
}

.story-frame::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 79% 57%, rgb(255 178 94 / 0.16), transparent 24%);
}

.story-copy {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  max-inline-size: 46rem;
}

.story-copy .section-title {
  margin-block-end: 2rem;
}

.story-text {
  margin: 0;
  color: rgb(255 246 232 / 0.86);
  font-family: var(--mincho);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 700;
  line-height: 2.2;
  text-wrap: pretty;
}

/* Content + gallery */
.content {
  background:
    radial-gradient(circle at 90% 18%, rgb(232 68 58 / 0.12), transparent 26rem),
    var(--night);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.content-card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--lacquer), var(--lacquer)) padding-box,
    linear-gradient(120deg, var(--hi), var(--gold), var(--hi)) border-box;
  box-shadow: 0 1.25rem 3rem rgb(0 0 0 / 0.22);
}

.content-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgb(255 246 232 / 0.12), transparent 56%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}

.content-card:hover::after {
  transform: translateX(120%);
}

.content-card .card-no {
  margin: 0 0 2.25rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.content-card h3 {
  margin: 0;
  font-family: var(--mincho);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.5;
  text-wrap: balance;
}

/* カードをリンクにして末尾に「〜を見る →」を足したため :last-child では当たらなくなっていた。説明文を直接指す */
.content-card p:not(.card-no) {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.75;
  text-wrap: pretty;
  word-break: auto-phrase;
}

/* 背景の絵。変数で site.css に渡すと site.css 基準で解決されて assets/assets/ になり 404 だったので、ここで直接指定する（この CSS は assets/ にあるので、同じフォルダからの相対パス） */
.content-grid .content-card--link:nth-child(1)::before {
  background: linear-gradient(160deg, rgb(11 7 18 / 0.43), rgb(11 7 18 / 0.84)), url("gallery-1.webp") center / cover;
}

.content-grid .content-card--link:nth-child(2)::before {
  background: linear-gradient(160deg, rgb(11 7 18 / 0.43), rgb(11 7 18 / 0.84)), url("gallery-2.webp") center / cover;
}

.content-grid .content-card--link:nth-child(3)::before {
  background: linear-gradient(160deg, rgb(11 7 18 / 0.43), rgb(11 7 18 / 0.84)), url("gallery-3.webp") center / cover;
}

/* 出現アニメ（GSAP）が transform を動かしている間は CSS の transform 遷移を外す。
   残っていると ScrollTrigger の測り直しで終わりの値を読み違え、カードが 42px 下・94% の大きさで止まっていた */
html.motion .content-grid .content-card--link:not(.is-revealed) {
  transition: box-shadow 0.35s var(--ease);
}

.gallery-block {
  margin-block-start: clamp(6rem, 11vw, 10rem);
}

.gallery-stage {
  position: relative;
  margin-block-start: 2.5rem;
}

html:not(.motion) .gallery-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

html.motion .gallery-stage {
  block-size: calc(min(58vw, 46rem) * 2 / 3 + 3rem);
  perspective: 1200px;
  touch-action: pan-y;
  cursor: grab;
  overflow: visible;
}

html.motion .gallery-stage:active {
  cursor: grabbing;
}

.gallery-card {
  margin: 0;
  padding: 0.65rem;
  border: 1px solid rgb(245 195 75 / 0.5);
  background:
    linear-gradient(135deg, #6c3d1f, #b97832 45%, #5a3019);
  box-shadow:
    inset 0 0 0 0.2rem rgb(26 14 20 / 0.28),
    0 1.5rem 4rem rgb(0 0 0 / 0.34);
  transform-style: preserve-3d;
}

html.motion .gallery-card {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-start: 50%;
  inline-size: min(58vw, 46rem);
  aspect-ratio: 3 / 2;
}

.gallery-card::before,
.gallery-card::after {
  position: absolute;
  z-index: 2;
  inset-block-start: -0.85rem;
  inline-size: 0.7rem;
  aspect-ratio: 1;
  border: 2px solid var(--gold);
  border-radius: 50%;
  content: "";
  background: var(--lacquer);
}

.gallery-card::before {
  inset-inline-start: 18%;
}

.gallery-card::after {
  inset-inline-end: 18%;
}

.gallery-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--night);
}

.gallery-image img {
  block-size: 100%;
  object-fit: cover;
}

.gallery-card figcaption {
  position: absolute;
  z-index: 3;
  inset-inline: 1.2rem;
  inset-block-end: 1.2rem;
  padding: 0.55rem 0.8rem;
  color: var(--paper);
  background: rgb(11 7 18 / 0.9);
  font-family: var(--mincho);
  font-size: clamp(0.88rem, 1.4vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-align: center;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-block-start: 0.5rem;
}

.gallery-button {
  display: inline-grid;
  inline-size: 2.9rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper);
  cursor: pointer;
  background: rgb(26 14 20 / 0.82);
  transition:
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.gallery-button:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.gallery-status {
  margin: 0 0.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.content {
  padding-block-end: calc(var(--section-space) * 0.45);
}

/* Kitsunebi */
.kitsunebi {
  padding-block: calc(var(--section-space) * 0.55) 0;
  background: var(--night);
}

.kitsunebi .section-head {
  padding-inline: var(--gutter);
  text-align: center;
}

.kitsunebi .section-lead {
  margin-inline: auto;
}

.firework-stage {
  position: relative;
  /* 主役canvasの空を確保し、花火と下端の屋台を同時に見せる。 */
  min-block-size: min(72svh, 48rem);
  overflow: hidden;
  contain: paint;
  border-block: 1px solid var(--line);
  background: var(--night);
  isolation: isolate;
}

.firework-background,
.firework-stage::before {
  position: absolute;
  inset: 0;
}

.firework-background {
  z-index: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.firework-stage::before {
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgb(11 7 18 / .22), rgb(11 7 18 / .04) 65%, rgb(11 7 18 / .65));
  pointer-events: none;
}

.firework-canvas {
  display: none;
  position: absolute;
  z-index: 2;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  cursor: crosshair;
}

.firework-canvas.is-active {
  mix-blend-mode: screen;
}

html.motion .firework-canvas {
  display: block;
}

.firework-static {
  position: absolute;
  z-index: 1;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  color: var(--kitsunebi);
  opacity: 0.74;
}

html.motion .firework-static {
  display: none;
}

.firework-hud {
  flex-wrap: wrap;
  position: absolute;
  z-index: 4;
  inset-inline: var(--gutter);
  inset-block-end: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

.firework-instruction,
.firework-count {
  margin: 0;
  padding: 0.55rem 0.8rem;
  color: var(--paper);
  background: rgb(11 7 18 / .52);
  font-size: 0.75rem;
  line-height: 1.55;
}

.firework-count {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-align: end;
}

.firework-count strong {
  color: var(--gold);
  font-size: 1rem;
}

/* Schedule */
.schedule {
  background: var(--lacquer);
}

.schedule .section-head {
  text-align: center;
}

.schedule-table-wrap {
  overflow-x: auto;
  max-inline-size: clamp(30rem, 60vw, 46rem);
  margin-inline: auto;
  border-block-start: 1px solid var(--line);
}

.schedule-table {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.schedule-table thead,
.schedule-table tbody,
.schedule-table tr {
  display: contents;
}

.schedule-table th,
.schedule-table td {
  padding: 0.9rem 0.65rem;
  border-block-end: 1px solid var(--line);
  text-align: start;
  vertical-align: middle;
  white-space: nowrap;
}

.schedule-table th {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.schedule-table td {
  color: rgb(255 246 232 / 0.84);
}

.schedule-table .time {
  color: var(--kitsunebi);
  font-family: var(--mono);
  font-weight: 700;
  white-space: nowrap;
}

.schedule-table .rest {
  color: rgb(255 246 232 / 0.42);
}

/* Links */
.connect {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  contain: paint;
  text-align: center;
  background: var(--night);
  isolation: isolate;
}

.connect-scene,
.connect-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.connect-scene {
  z-index: 0;
  margin: 0;
  transform: scale(1.025);
  transform-origin: center;
}

.connect-scene img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
}

.connect-ambience {
  display: none;
  position: absolute;
  z-index: 1;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  pointer-events: none;
  opacity: 0.96;
}

html.motion .connect-ambience {
  display: block;
}

html.motion .connect-scene {
  animation: connect-scene-breathe 34s steps(60, end) infinite alternate;
  animation-play-state: paused;
}

html.motion .connect.is-active .connect-scene {
  animation-play-state: running;
}

.connect-scrim {
  z-index: 1;
  background:
    linear-gradient(180deg, rgb(11 7 18 / 0.84), rgb(11 7 18 / 0.2) 35%, rgb(11 7 18 / 0.06) 62%, rgb(11 7 18 / 0.78)),
    radial-gradient(circle at 50% 58%, transparent 18%, rgb(11 7 18 / 0.26) 100%);
}

@keyframes connect-scene-breathe {
  from {
    transform: scale(1.025);
  }
  to {
    transform: scale(1.075);
  }
}

.connect > .section-shell {
  position: relative;
  z-index: 3;
}

.connect .eyebrow,
.connect .section-title {
  text-shadow: 0 2px 14px rgb(11 7 18 / 0.96), 0 0 28px rgb(255 178 94 / 0.16);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-block-start: 3rem;
}

.connect .social-grid {
  grid-template-columns: repeat(3, max-content);
  inline-size: fit-content;
  margin-inline: auto;
  margin-block-start: 2rem;
  padding: clamp(0.55rem, 1.2vw, 0.8rem);
  border: 1px solid rgb(245 195 75 / 0.32);
  background:
    radial-gradient(circle at 50% 0, rgb(245 195 75 / 0.08), transparent 70%),
    rgb(11 7 18 / 0.9);
  box-shadow:
    0 1rem 2.5rem rgb(0 0 0 / 0.32),
    inset 0 0 2rem rgb(245 195 75 / 0.04);
}

.social-link {
  position: relative;
  display: block;
  padding: 1.15rem 1.35rem;
  overflow: hidden;
  border: 1px solid rgb(245 195 75 / 0.58);
  color: var(--paper);
  background: rgb(26 14 20 / 0.84);
  box-shadow: inset 0 0 0 1px rgb(245 195 75 / 0.05);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-decoration: none;
  text-shadow: 0 1px 10px rgb(11 7 18 / 0.96);
  transform: translate(var(--mag-x, 0), var(--mag-y, 0));
  transition:
    border-color 0.35s var(--ease),
    background-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.social-link::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(110deg, transparent 24%, rgb(245 195 75 / 0.2), transparent 48%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--gold);
  color: var(--paper);
  background: rgb(26 14 20 / 0.94);
  box-shadow:
    0 0 12px rgb(245 195 75 / 0.74),
    0 0 28px rgb(245 195 75 / 0.42),
    inset 0 0 0 1px rgb(255 246 232 / 0.1);
}

.social-link:hover::after,
.social-link:focus-visible::after {
  transform: translateX(120%);
}

.closing-copy {
  position: absolute;
  z-index: 4;
  inset-inline: var(--gutter);
  inset-block-end: clamp(2rem, 5vw, 5rem);
  margin: 0;
  font-family: var(--mincho);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.6;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgb(11 7 18 / 0.98), 0 0 28px rgb(255 178 94 / 0.2);
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin: 0;
  padding-inline: max(var(--gutter), calc((100% - var(--shell-max)) / 2));
  padding-block: 2rem;
  border-block-start: 1px solid var(--line);
  color: rgb(255 246 232 / 0.48);
  font-size: 0.72rem;
  line-height: 1.75;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--paper);
}

.connect-actions-band {
  padding: 3rem 0 4rem;
  border-bottom: 1px solid var(--line);
  background: var(--night);
}

.copyright {
  flex: none;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.footer-credit {
  flex: none;
  white-space: nowrap;
}

.speech-toast {
  position: fixed;
  z-index: 140;
  inset-inline-start: 50%;
  inset-block-end: 2rem;
  margin: 0;
  padding: 0.65rem 1rem;
  border: 1px solid rgb(245 195 75 / 0.5);
  border-radius: 999px;
  color: var(--night);
  background: var(--paper);
  font-family: var(--mincho);
  font-weight: 800;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.speech-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bell-flash {
  animation: bell-flash 0.7s var(--ease);
}

@keyframes bell-flash {
  45% {
    color: var(--gold);
    transform: rotate(8deg) scale(1.12);
    text-shadow: 0 0 12px currentColor, 0 0 28px currentColor;
  }
}

.nine-tail-flight {
  position: fixed;
  z-index: 135;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.nine-tail-fox {
  position: absolute;
  inset-block-start: 26%;
  inset-inline-start: 0;
  inline-size: clamp(18rem, 38vw, 34rem);
  color: var(--gold);
  filter: drop-shadow(0 0 12px currentColor) drop-shadow(0 0 28px currentColor);
  opacity: 0.82;
  transform: translateX(-120%);
}

.nine-tail-fox svg {
  inline-size: 100%;
  block-size: auto;
  overflow: visible;
}
