@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Kaisei+Decol:wght@700&display=swap');

:root {
  --c-black: #060a14;
  --c-dark: #2D2000;
  --c-orange: #FFA500;
  --c-orange-dark: #FF8C00;
  --c-red: #FF6B35;
  --c-pink: #FFB84D;
  --c-yellow: #FFD700;
  --c-yellow-soft: #FFFACD;
  --c-cream: #FFFFF0;
  --c-white: #ffffff;
  --c-text: #3D3000;
  --shadow-soft: 0 10px 30px rgba(5, 10, 25, 0.2);
  --comic-shadow: 6px 6px 0 var(--c-black);
  --comic-shadow-sm: 4px 4px 0 var(--c-black);
  --radius: 18px;
  --header-h: 76px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  color: var(--c-text);
  background: var(--c-cream);
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(23, 17, 10, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(23, 17, 10, 0.96);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border-bottom-color: var(--c-yellow);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo .logo-main {
  font-family: 'Kaisei Decol', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.03em;
}

.logo .logo-sub {
  font-size: 0.62rem;
  color: var(--c-yellow);
  letter-spacing: 0.15em;
}

.main-nav ul {
  display: flex;
  gap: 6px;
}

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  border-radius: 999px;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: linear-gradient(135deg, var(--c-yellow), var(--c-orange) 55%, var(--c-red));
  color: var(--c-black);
  transform: translateY(-1px) scale(1.04);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}

.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: var(--c-yellow);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle span:nth-child(1) {
  top: 13px;
}

.nav-toggle span:nth-child(2) {
  top: 19px;
}

.nav-toggle span:nth-child(3) {
  top: 25px;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1100px) {

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--header-h));
    z-index: 1050;
    background: rgba(20, 13, 6, 0.98);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    overflow-y: auto;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 16px 18px;
    font-size: 1.05rem;
    border-radius: 12px;
  }

  .access-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}


/* ---------- Halftone / comic dot overlay ---------- */

.hero,
.page-hero {
  background-image:
    radial-gradient(circle at 50% 38%, rgba(255,215,0,0.35) 0%, transparent 42%),
    radial-gradient(circle at 12% 85%, rgba(255,165,0,0.35) 0%, transparent 45%),
    radial-gradient(circle at 88% 20%, rgba(255,107,53,0.4) 0%, transparent 45%),
    radial-gradient(circle, rgba(255,255,255,0.16) 1.6px, transparent 1.6px),
    radial-gradient(circle at 50% 45%, #2D2000 0%, var(--c-black) 72%);
  background-size: auto, auto, auto, 22px 22px, auto;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 60px 24px;
}

.page-hero {
  margin-top: var(--header-h);
}

.page-hero div {
  max-width: 700px;
}

.page-hero p {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
}

.page-hero .page-hero-eyebrow {
  display: inline-block;
  padding: 7px 20px;
  border: 2px solid var(--c-yellow);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-yellow);
  margin-bottom: 18px;
  box-shadow: 0 0 24px rgba(255,215,0,0.35);
}

.page-hero h1 {
  font-family: 'Kaisei Decol', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow:
    2px 2px 0 var(--c-red),
    4px 4px 0 var(--c-black),
    0 0 40px rgba(255,107,53,0.6);
  margin-bottom: 18px;
  white-space: nowrap;
}

.page-hero small {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.95);
  line-height: 1.7;
}


/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #2D2000;
  background-image: url('../images/explosion-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.character-image {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%) scale(1.15);
  transform-origin: left center;
  z-index: 2;
  width: 430px;
  height: 620px;
  pointer-events: none;
  filter: drop-shadow(8px 12px 20px rgba(0,0,0,0.4));
}

.character-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.hero::before,
.hero::after {
  display: none;
}


.burst-star {
  display: none;
  position: absolute;
  top: 46%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    var(--c-yellow) 0deg 15deg, transparent 15deg 30deg,
    var(--c-yellow) 30deg 45deg, transparent 45deg 60deg,
    var(--c-yellow) 60deg 75deg, transparent 75deg 90deg,
    var(--c-yellow) 90deg 105deg, transparent 105deg 120deg,
    var(--c-yellow) 120deg 135deg, transparent 135deg 150deg,
    var(--c-yellow) 150deg 165deg, transparent 165deg 180deg,
    var(--c-yellow) 180deg 195deg, transparent 195deg 210deg,
    var(--c-yellow) 210deg 225deg, transparent 225deg 240deg,
    var(--c-yellow) 240deg 255deg, transparent 255deg 270deg,
    var(--c-yellow) 270deg 285deg, transparent 285deg 300deg,
    var(--c-yellow) 300deg 315deg, transparent 315deg 330deg,
    var(--c-yellow) 330deg 345deg, transparent 345deg 360deg
  );
  opacity: 0.16;
  filter: blur(1px);
  animation: spin 30s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes spin {

  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }

}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  background: rgba(18, 12, 6, 0.78);
  border-radius: 34px;
  padding: 80px 88px;
  max-width: 900px;
  backdrop-filter: blur(14px);
  border: 4px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 22px 48px rgba(0,0,0,0.38), inset 0 0 32px rgba(0,0,0,0.3);
}

.hero-eyebrow {
  display: inline-block;
  padding: 8px 22px;
  border: 2px solid var(--c-yellow);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-yellow);
  margin-bottom: 22px;
  box-shadow: 0 0 32px rgba(255,215,0,0.5), inset 0 0 16px rgba(255,255,255,0.2);
  background: rgba(45, 32, 0, 0.5);
}

.hero-title {
  font-family: 'Kaisei Decol', serif;
  font-size: clamp(2.5rem, 7vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 4px 4px 0 rgba(0,0,0,0.8);
}

.hero-theme-name {
  margin-top: 16px;
  margin-bottom: 12px;
  font-family: 'Kaisei Decol', serif;
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--c-yellow);
  -webkit-text-stroke: 3px var(--c-black);
  text-shadow: 8px 8px 0 rgba(0,0,0,0.9);
  animation:
    bounceIn 1.1s cubic-bezier(.34,1.56,.64,1) both,
    wiggle 4.5s ease-in-out 1.2s infinite;
}

@keyframes bounceIn {

  0% {
    opacity: 0;
    transform: scale(0.4) rotate(-8deg);
  }

  60% {
    opacity: 1;
    transform: scale(1.12) rotate(3deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

}

@keyframes wiggle {

  0%, 100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-1.5deg);
  }

}

.hero-theme {
  margin-top: 0;
  margin-bottom: 18px;
  display: inline-block;
  padding: 4px 18px 6px;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 900;
  color: var(--c-yellow-soft);
  background: rgba(6, 10, 20, 0.72);
  border: 2px solid var(--c-yellow);
  border-radius: 10px;
  -webkit-text-stroke: 1.5px var(--c-black);
  text-shadow: 3px 3px 0 var(--c-black);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.75);
}

.hero-note {
  margin-top: 18px;
  margin-bottom: 28px;
  font-size: 1.15rem;
  color: #fff;
  max-width: 660px;
  margin-inline: auto;
  line-height: 1.8;
  font-weight: 500;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero-date {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-date span {
  padding: 16px 28px;
  border-radius: 12px;
  background: rgba(45, 32, 0, 0.75);
  border: 2px solid var(--c-yellow);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 480px;
  text-align: center;
  line-height: 1.5;
}


/* ---------- Side Bomb ---------- */

.bomb-widget,
.bomb-trigger {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 900;
  width: 140px;
  height: 140px;
  border: 4px solid var(--c-black);
  border-radius: 50%;
  background: var(--c-yellow-soft);
  box-shadow: var(--comic-shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

@media (max-width: 768px) {
  .bomb-widget,
  .bomb-trigger {
    display: none;
  }
}

.bomb-left {
  display: none;
}

.bomb-right {
  display: block;
}

.bomb-widget:hover,
.bomb-trigger:hover {
  transform: scale(1.08) rotate(-8deg);
  box-shadow: 10px 10px 0 var(--c-black);
  background: var(--c-yellow);
}

.bomb-widget:active,
.bomb-trigger:active {
  transform: scale(0.9) rotate(-4deg);
}

.bomb-emoji,
.bomb-icon {
  display: block;
  font-size: 4.4rem;
  line-height: 1;
  filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.25));
}

.bomb-label {
  display: block;
  margin-top: 6px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--c-black);
}

.explosion-icon {
  display: none;
}

.bomb-widget.bomb-shake,
.bomb-trigger.bomb-shake {
  animation: bombShake 0.8s ease-in-out;
}

.bomb-widget.bomb-shake .explosion-icon,
.bomb-trigger.bomb-shake .explosion-icon {
  animation: explosionBurst 0.8s ease-out;
}

@keyframes explosionBurst {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.4));
  }
  
  40% {
    transform: scale(1.3);
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(255,215,0,1)) drop-shadow(0 0 40px rgba(255,107,53,0.8));
  }
  
  70% {
    transform: scale(1.5);
    opacity: 0.8;
    filter: drop-shadow(0 0 30px rgba(255,215,0,0.8)) drop-shadow(0 0 60px rgba(255,107,53,0.6));
  }
  
  100% {
    transform: scale(1.6);
    opacity: 0;
    filter: drop-shadow(0 0 50px rgba(255,215,0,0)) drop-shadow(0 0 80px rgba(255,107,53,0));
  }
}

@keyframes bombShake {

  0%, 100% {
    transform: scale(1) rotate(0deg) translateY(0);
  }

  10% {
    transform: scale(1.15) rotate(-20deg) translateY(-8px);
  }

  20% {
    transform: scale(1.22) rotate(18deg) translateY(6px);
  }

  30% {
    transform: scale(1.18) rotate(-16deg) translateY(-5px);
  }

  40% {
    transform: scale(1.25) rotate(22deg) translateY(8px);
  }

  50% {
    transform: scale(1.2) rotate(-15deg) translateY(-4px);
  }

  60% {
    transform: scale(1.18) rotate(14deg) translateY(5px);
  }

  70% {
    transform: scale(1.12) rotate(-10deg) translateY(-3px);
  }

  80% {
    transform: scale(1.08) rotate(8deg) translateY(2px);
  }

  90% {
    transform: scale(1.05) rotate(-4deg) translateY(-1px);
  }

}


/* ---------- Countdown Overlay ---------- */

.countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6,10,20,0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.countdown-overlay.show,
.countdown-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.countdown-overlay::before,
.countdown-overlay::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.2);
  pointer-events: none;
}

.countdown-overlay::before {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,205,87,0.8) 18%, rgba(255,120,40,0.4) 38%, rgba(255,120,40,0) 72%);
}

.countdown-overlay::after {
  width: min(58vw, 420px);
  height: min(58vw, 420px);
  border: 10px solid rgba(255, 220, 120, 0.7);
  box-shadow: 0 0 30px rgba(255, 165, 0, 0.55);
}

.countdown-overlay.exploding::before,
.countdown-overlay.exploding::after {
  opacity: 1;
  animation: explosionBurst 0.8s ease-out forwards;
}

@keyframes explosionBurst {

  0% {
    opacity: 0;
    transform: scale(0.2);
  }

  25% {
    opacity: 1;
    transform: scale(0.8);
  }

  60% {
    opacity: 1;
    transform: scale(1.5);
  }

  100% {
    opacity: 0;
    transform: scale(2.2);
  }

}

.countdown-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  transition: transform 0.3s ease;
}

.countdown-overlay.show .countdown-content {
  transform: none;
}

.countdown-number {
  display: block;
  font-family: 'Kaisei Decol', serif;
  font-size: clamp(7rem, 20vw, 13rem);
  line-height: 0.9;
  font-weight: 900;
  color: #fff5d4;
  letter-spacing: 0.04em;
  white-space: normal;
  text-shadow:
    0 0 24px rgba(255,220,120,0.9),
    0 12px 32px rgba(0,0,0,0.35),
    6px 6px 0 rgba(255,120,40,0.9);
  opacity: 0;
  transform: scale(0.5) translateY(18px);
  animation: countReveal 0.7s cubic-bezier(.2, .8, .2, 1) forwards;
}

.countdown-overlay.exploding .countdown-number {
  color: #ffef9a;
  text-shadow:
    0 0 24px rgba(255,230,100,0.9),
    0 0 56px rgba(255,120,40,0.8);
  animation: countBurst 0.8s ease-out forwards;
}

.countdown-overlay.result-visible .countdown-number {
  animation: resultPop 0.9s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes countReveal {

  0% {
    opacity: 0;
    transform: scale(0.5) translateY(18px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

}

@keyframes countBurst {

  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  30% {
    opacity: 1;
    transform: scale(1.5) rotate(-8deg);
  }

  70% {
    opacity: 0.8;
    transform: scale(2.2) rotate(8deg);
  }

  100% {
    opacity: 0;
    transform: scale(3.5) rotate(12deg);
  }

}

.countdown-explosion {
  width: 180px;
  height: 180px;
  filter: drop-shadow(0 0 20px rgba(255,215,0,0.8)) drop-shadow(0 0 40px rgba(255,107,53,0.6));
  animation: explosionBurst 0.9s ease-out forwards;
}

@keyframes explosionBurst {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(0deg);
  }
  
  20% {
    opacity: 1;
    transform: scale(1) rotate(-5deg);
  }
  
  40% {
    opacity: 1;
    transform: scale(1.3) rotate(8deg);
    filter: drop-shadow(0 0 30px rgba(255,215,0,1)) drop-shadow(0 0 60px rgba(255,107,53,0.8));
  }
  
  70% {
    opacity: 0.8;
    transform: scale(1.8) rotate(-6deg);
    filter: drop-shadow(0 0 50px rgba(255,215,0,0.8)) drop-shadow(0 0 80px rgba(255,107,53,0.6));
  }
  
  100% {
    opacity: 0;
    transform: scale(2.5) rotate(15deg);
    filter: drop-shadow(0 0 80px rgba(255,215,0,0.3)) drop-shadow(0 0 120px rgba(255,107,53,0.2));
  }
}

.countdown-result {
  display: none;
  font-family: 'Kaisei Decol', serif;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.3;
  font-weight: 900;
  color: var(--c-red);
  -webkit-text-stroke: 1px var(--c-black);
  text-shadow: 4px 4px 0 var(--c-black);
}

.countdown-result.visible {
  display: block;
  animation: resultPop 0.8s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes resultPop {

  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-8deg);
  }

  70% {
    opacity: 1;
    transform: scale(1.08) rotate(2deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

}


/* ---------- Sections ---------- */

.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--c-yellow-soft);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--c-red);
  font-weight: 900;
}

.section-title {
  font-family: 'Kaisei Decol', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-top: 10px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin: 16px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c-yellow), var(--c-orange), var(--c-red));
}

.section-lead {
  max-width: 900px;
  margin: 16px auto 0;
  text-align: center;
  color: #4a5b73;
  font-size: 1.1rem;
  line-height: 1.8;
}


/* ---------- Cards / Grid ---------- */

.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.access-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.category-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 3px solid var(--c-black);
  box-shadow: var(--comic-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.grid .card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.grid .card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.grid .card p {
  font-size: 1rem;
  line-height: 1.7;
}

.category-grid .card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.food-card {
  align-items: flex-start;
  background: var(--c-white);
}

.food-card-image-frame {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--c-yellow), var(--c-orange) 60%, var(--c-red));
  border: 3px solid var(--c-black);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.food-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.food-card-image--potato {
  transform: scaleX(-1);
}

.food-card h3 {
  align-self: stretch;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: left;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.card:hover,
.card-link:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--c-black);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-yellow), var(--c-orange) 60%, var(--c-red));
  color: var(--c-black);
  font-weight: 900;
  font-size: 1.8rem;
  margin-bottom: 16px;
  border: 3px solid var(--c-black);
  overflow: hidden;
}

.card-icon--image {
  background: linear-gradient(135deg, var(--c-yellow), var(--c-orange) 60%, var(--c-red));
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon--image img {
  width: 140%;
  height: 140%;
  object-fit: contain;
  display: block;
  background: transparent;
  mix-blend-mode: multiply;
  filter: contrast(1.05) saturate(0.9);
}

.card-icon--sticker img {
  padding: 8px;
  box-sizing: border-box;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.card p {
  font-size: 0.9rem;
  color: #4a5b73;
}


/* ---------- Guest grid ---------- */

.guests-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 960px);
  margin-inline: auto;
  margin-top: 32px;
}

.guest-card {
  display: block;
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 0;
  border: 3px solid var(--c-black);
  box-shadow: var(--comic-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.guest-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--c-black);
}

.guest-image {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--c-yellow-soft), #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.guest-card--full .guest-image {
  aspect-ratio: 4 / 3;
}

.guest-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.guest-card--full .guest-image img {
  object-fit: cover;
}

.guest-card--pacchi .guest-image img {
  object-position: center 28%;
  transform: scale(1.08);
}

.guest-card--seagullman .guest-image {
  aspect-ratio: 1;
}

.guest-card--seagullman .guest-image img {
  object-fit: contain;
  object-position: center bottom;
  transform: scale(3);
}

.guest-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  padding: 20px 24px 12px;
  margin: 0;
}

.guest-card p {
  font-size: 1rem;
  color: var(--c-red);
  padding: 0 24px 18px;
  margin: 0;
  font-weight: 600;
  line-height: 1.6;
}


/* ---------- Notice list ---------- */

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notice-item {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--c-white);
  border-radius: 14px;
  border: 2px solid var(--c-black);
  border-left: 6px solid var(--c-red);
  box-shadow: var(--comic-shadow-sm);
}

.notice-item .mark {
  font-weight: 900;
  color: var(--c-red);
  font-size: 1.1rem;
}


/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.98rem;
  background: linear-gradient(120deg, var(--c-yellow), var(--c-orange) 55%, var(--c-red));
  color: var(--c-black);
  border: 3px solid var(--c-black);
  box-shadow: var(--comic-shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--c-black);
}

.btn.outline {
  background: var(--c-white);
  color: var(--c-black);
}

.btn-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}


/* ---------- Table ---------- */

.table-wrap {
  overflow-x: auto;
  margin-top: 32px;
}

table.tt {
  width: 100%;
  border-collapse: collapse;
  background: #f9f5ed;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--c-orange);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 560px;
}

table.tt th,
table.tt td {
  padding: 18px 20px;
  text-align: left;
  font-size: 1rem;
  border-bottom: 2px solid rgba(0,0,0,0.15);
  color: var(--c-black);
}

table.tt th {
  background: var(--c-orange);
  color: var(--c-white);
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

table.tt th:first-child {
  min-width: 100px;
  background: var(--c-orange);
}

table.tt tr:nth-child(even) td {
  background: #faf7f1;
}

table.tt tr:hover td {
  background: rgba(255, 215, 0, 0.2);
  transition: background 0.2s ease;
}

table.tt td:first-child {
  font-weight: 600;
  color: var(--c-black);
  font-size: 1.05rem;
  min-width: 90px;
}

table.tt tr:last-child td {
  border-bottom: none;
}


/* ---------- Quote / message ---------- */

.quote-box {
  max-width: 760px;
  margin: 0 auto;
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 44px;
  border: 3px solid var(--c-black);
  box-shadow: var(--comic-shadow);
  text-align: left;
}

.quote-box p {
  margin-bottom: 18px;
  font-size: 0.98rem;
  text-align: left;
  white-space: normal;
}

.signature {
  text-align: left;
  margin-top: 30px;
  font-weight: 700;
}

.signature small {
  display: block;
  font-weight: 400;
  color: #4a5b73;
}

.portrait-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--c-yellow), var(--c-orange) 55%, var(--c-red));
  border: 4px solid var(--c-black);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  color: var(--c-black);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.25;
  transform: translateX(2px);
}


/* ---------- Map placeholder ---------- */

.map-placeholder {
  width: min(100%, 760px);
  margin-inline: auto;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  border: 3px solid var(--c-black);
  background: repeating-linear-gradient(
    45deg,
    var(--c-yellow-soft),
    var(--c-yellow-soft) 10px,
    #fff 10px,
    #fff 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-orange-dark);
  font-weight: 900;
  box-shadow: var(--comic-shadow);
}


/* ---------- Access Info ---------- */

.access-info {
  background: var(--c-cream);
  border: 3px solid var(--c-black);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--comic-shadow);
}

.access-info h3 {
  font-size: 1.2rem;
  color: var(--c-black);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}


/* ---------- Calendar Widget ---------- */

.calendar-widget {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(18, 12, 6, 0.9);
  border: 3px solid rgba(255, 215, 0, 0.6);
  border-radius: 16px;
  padding: 32px;
  width: 436px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.4);
}

.calendar-nav button {
  background: rgba(255, 215, 0, 0.2);
  border: 2px solid rgba(255, 215, 0, 0.6);
  color: var(--c-yellow);
  font-size: 1.38rem;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.calendar-nav button:hover {
  background: rgba(255, 215, 0, 0.4);
  transform: scale(1.1);
}

.calendar-month-year {
  color: var(--c-yellow);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-align: center;
  flex: 1;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 1.04rem;
}

.calendar-day-header {
  text-align: center;
  color: var(--c-yellow);
  font-weight: 700;
  padding: 7px;
  font-size: 0.98rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  cursor: default;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-day.other-month {
  color: rgba(255, 255, 255, 0.3);
}

.calendar-day.today {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--c-yellow);
  color: var(--c-yellow);
  font-weight: 600;
}

.calendar-day.event-day {
  background: rgba(255, 107, 53, 0.6);
  border-color: var(--c-red);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.6);
}

@media (max-width: 1800px) {
  .calendar-widget {
    display: none;
  }

  .character-image {
    left: 8px;
    width: 420px;
    height: 600px;
  }

  .hero-content {
    width: min(760px, calc(100% - 48px));
    padding: 56px 48px;
  }
}

@media (max-width: 768px) {
  .calendar-widget {
    display: none;
  }
}

.access-info ul {
  list-style: none;
  padding-left: 0;
}

.access-info li {
  padding-left: 28px;
  margin-bottom: 12px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--c-text);
}

.access-info li:before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--c-orange);
  font-weight: 700;
}


/* ---------- Callout / placeholder banner ---------- */

.placeholder-banner {
  background: repeating-linear-gradient(
    135deg,
    var(--c-yellow-soft),
    var(--c-yellow-soft) 12px,
    #FFE4B5 12px,
    #FFE4B5 24px
  );
  border: 2px dashed var(--c-black);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-orange-dark);
  margin-bottom: 32px;
}


/* ---------- Footer ---------- */

.site-footer {
  background: var(--c-black);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 28px;
  border-top: 5px solid var(--c-yellow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand .logo-main {
  color: var(--c-yellow);
}

.footer-brand {
  text-align: center;
}

.footer-brand p {
  margin-top: 14px;
  margin-inline: auto;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

.footer-col h4 {
  color: var(--c-yellow);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--c-yellow);
}

.sns-row {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.sns-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.sns-row a:hover {
  background: linear-gradient(135deg, var(--c-yellow), var(--c-orange), var(--c-red));
  border-color: var(--c-black);
  transform: translateY(-2px) rotate(-6deg);
}

.sns-row svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.sns-row a:hover svg {
  fill: var(--c-black);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

@media (max-width: 720px) {

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

}


/* ---------- Fade-in on scroll ---------- */

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .fade-in:not(.in-view) {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled .fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}


/* ---------- Responsive ---------- */

@media (max-width: 1100px) {

  .bomb-widget {
    width: 76px;
    height: 76px;
  }

  .bomb-left {
    left: 8px;
  }

  .bomb-right {
    right: 8px;
  }

  .bomb-emoji {
    font-size: 2.6rem;
  }

  .bomb-label {
    font-size: 0.5rem;
  }

}


@media (max-width: 900px) {

  .character-image {
    left: 4px;
    width: 300px;
    height: 400px;
  }

  .bomb-widget {
    width: 64px;
    height: 64px;
  }

  .bomb-left {
    left: 4px;
  }

  .bomb-right {
    right: 4px;
  }

  .bomb-emoji {
    font-size: 2.1rem;
  }

  .bomb-label {
    display: none;
  }

}


@media (max-width: 600px) {

  .hero {
    background-attachment: scroll;
    background-position: center center, center center;
    background-size: cover, cover;
  }

  .character-image {
    left: 0;
    width: 260px;
    height: 350px;
  }

  .bomb-widget {
    width: 58px;
    height: 58px;
    top: auto;
    bottom: 18px;
    transform: none;
    z-index: 950;
  }

  .bomb-left {
    display: none;
  }

  .bomb-right {
    right: 14px;
  }

  .bomb-widget:hover {
    transform: scale(1.08) rotate(-4deg);
  }

  .bomb-widget:active {
    transform: scale(0.94);
  }

  .bomb-widget.bomb-shake {
    animation: bombShakeMobile;
  }

  /* ---------- Mobile Improvements ---------- */
  
  .section-title {
    font-size: clamp(1.4rem, 4vw, 2rem) !important;
    margin-top: 8px;
  }

  .section-lead {
    font-size: 1rem;
    max-width: 100%;
    line-height: 1.7;
  }

  .theme-description {
    overflow-x: auto;
    text-align: left;
    white-space: nowrap;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .container {
    padding: 0 16px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .grid .card {
    min-height: auto;
    padding: 24px 20px;
  }

  .grid .card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }

  .grid .card p {
    font-size: 0.95rem;
  }

  .guests-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }

  .guest-card h3 {
    font-size: 1.2rem;
    padding: 16px 18px 8px;
  }

  .guest-card p {
    font-size: 0.9rem;
    padding: 0 18px 12px;
  }

  .guest-image {
    aspect-ratio: 1;
  }

  .guest-card--full .guest-image {
    aspect-ratio: 1;
  }

  table.tt {
    min-width: auto;
    border: 3px solid var(--c-orange);
  }

  table.tt th,
  table.tt td {
    padding: 14px 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.12);
  }

  table.tt th {
    font-size: 1rem;
  }

  table.tt td:first-child {
    min-width: 70px;
    font-size: 1rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
  }

  .card {
    padding: 20px 16px;
  }

  .card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .card p {
    font-size: 0.85rem;
  }

  .card-icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
  }

  .hero-content {
    width: calc(100% - 24px);
    padding: 32px 16px;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-theme-name {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .hero-theme {
    font-size: clamp(1.05rem, 5vw, 1.5rem);
  }

  .hero-note {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .hero-date span {
    padding: 12px 14px;
    font-size: 0.78rem;
  }

  .page-hero h1 {
    white-space: normal;
  }

  .btn {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .quote-box {
    padding: 28px 20px;
  }

  .access-info {
    padding: 20px;
  }

  .access-info h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .access-grid {
    grid-template-columns: 1fr;
  }
}