.accent-card {
  background: linear-gradient(120deg, #eaf6ff 60%, #f7faff 100%);
  border: 1.5px solid #b3d8f6;
  box-shadow: 0 8px 24px rgba(137, 197, 255, 0.10);
  color: #1d2a44;
  transition: transform 0.18s cubic-bezier(.4,1.4,.6,1);
}
.accent-card:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 16px 32px rgba(137, 197, 255, 0.18);
}

.panel-badge {
  background: linear-gradient(90deg, #e0f0ff 60%, #f7faff 100%);
  color: #1767aa;
  border: 1px solid #b3d8f6;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.kicker {
  color: #3a7bd5;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #e0f0ff 60%, #f7faff 100%);
  padding: 0.25em 1.2em 0.25em 0.8em;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(137, 197, 255, 0.08);
}

.highlight-list {
  margin-top: 2.25rem;
  display: grid;
  row-gap: 1.1rem;
  padding-left: 1.5rem;
  color: #34506f;
  font-size: 1.08rem;
  line-height: 1.8;
}

.highlight-list li {
  position: relative;
  padding-left: 0.2em;
}

.highlight-list li::marker {
  color: #3a7bd5;
  font-size: 1.2em;
}

.message-panel {
  background: linear-gradient(120deg, #f7faff 60%, #eaf6ff 100%);
  border: 1.5px solid #b3d8f6;
  box-shadow: 0 8px 24px rgba(137, 197, 255, 0.10);
}

.panel-header h2 {
  color: #1767aa;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
}

.panel-header p {
  color: #3a7bd5;
  font-size: 1.08rem;
}

.speech-bubble {
  background: linear-gradient(120deg, #fff 80%, #eaf6ff 100%);
  border: 1.5px solid #b3d8f6;
  box-shadow: 0 8px 24px rgba(137, 197, 255, 0.10);
}

.speech-bubble::after {
  border-color: #fff transparent transparent transparent;
}
/* Global resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #1d2a44;
  background: linear-gradient(135deg, #89c5ff 0%, #cce4ff 100%);
  overflow-x: hidden;
}

main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  padding: 6rem 2rem 5rem;
  min-height: 100vh;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.content-grid {
  display: flex;
  gap: 2.5rem;
  align-items: stretch;
  width: 100%;
}

.hero {
  flex: 1 1 52%;
  text-align: left;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 3.25rem 3rem;
  box-shadow: 0 24px 48px rgba(16, 45, 84, 0.16);
}

.hero h1 {
  font-family: "Quicksand", sans-serif;
  font-size: clamp(2.75rem, 5vw, 3.75rem);
  letter-spacing: 0.05em;
  color: #13457a;
  margin-bottom: 1.25rem;
}

.hero p {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #2d3f5d;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4f7aa1;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: rgba(79, 122, 161, 0.35);
}

.highlight-list {
  margin-top: 2.25rem;
  display: grid;
  row-gap: 1rem;
  padding-left: 1.5rem;
  color: #34506f;
  font-size: 1rem;
  line-height: 1.7;
}

.highlight-list li {
  position: relative;
}

.highlight-list li::marker {
  color: #4b9fe6;
  font-size: 1.2em;
}

.message-panel {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 22px 44px rgba(12, 38, 72, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #29405f;
}

.panel-header h2 {
  font-family: "Quicksand", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #144778;
}

.panel-header p {
  line-height: 1.7;
  font-size: 1rem;
}

.panel-badge {
  align-self: flex-start;
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(20, 102, 180, 0.12);
  color: #1767aa;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

#message-bubble {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  box-shadow: 0 16px 32px rgba(19, 69, 122, 0.2);
  font-size: 1.2rem;
  line-height: 1.9;
  border: 1px solid rgba(19, 69, 122, 0.12);
  min-height: 180px;
}

#message-bubble::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: clamp(26px, 12%, 64px);
  width: 0;
  height: 0;
  border-width: 20px 18px 0 18px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
  filter: drop-shadow(0 8px 12px rgba(19, 69, 122, 0.15));
}

#message-author {
  display: block;
  margin-top: 1.25rem;
  font-size: 1rem;
  color: #5a7697;
  text-align: right;
}

#background-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#background-layer.fallback {
  background: linear-gradient(135deg, rgba(137, 197, 255, 0.6), rgba(204, 228, 255, 0.8));
}

#background-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

#background-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19, 69, 122, 0.35), rgba(24, 95, 141, 0.25));
}

#countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 36, 60, 0.4);
  backdrop-filter: blur(24px);
  transition: opacity 1s ease, visibility 1s ease;
}

#countdown-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.countdown-card {
  text-align: center;
  padding: 3rem 4rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 30px 65px rgba(3, 10, 21, 0.35);
  color: #ffffff;
  max-width: 640px;
}

.countdown-card h2 {
  font-family: "Quicksand", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

#countdown-clock {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.time-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.time-value {
  font-family: "Quicksand", sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
}

.time-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
}

#confetti-canvas.active {
  opacity: 1;
}

.details-strip {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.detail-card {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 18px 38px rgba(18, 53, 95, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #2d4666;
  text-align: left;
}

.detail-card h3 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.4rem;
  color: #13457a;
  margin-bottom: 0.75rem;
}

.detail-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.detail-card code {
  background: rgba(19, 69, 122, 0.12);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
  font-size: 0.85rem;
}

.balloon {
  position: fixed;
  width: 80px;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50% 50% 45% 45%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  animation: float 12s ease-in-out infinite;
  z-index: 1;
}

.balloon::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 22px;
  background: rgba(255, 255, 255, 0.5);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.balloon:nth-child(odd) {
  animation-duration: 14s;
}

.balloon:nth-child(even) {
  animation-delay: -4s;
}

@keyframes float {
  0% {
    transform: translateY(10%) scale(0.95);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-10%) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translateY(10%) scale(0.95);
    opacity: 0.4;
  }
}

footer {
  padding: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
}

footer span {
  font-weight: 600;
}

@media (max-width: 768px) {
  main {
    padding: 5rem 1.5rem 4rem;
    gap: 2.75rem;
  }

  .content-grid {
    flex-direction: column;
  }

  .hero {
    padding: 2.5rem 1.75rem;
  }

  .message-panel {
    padding: 2.25rem 1.75rem;
  }

  .countdown-card {
    padding: 2.5rem 2.5rem;
  }

  #message-bubble {
    padding: 1.8rem 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    border-radius: 22px;
  }

  .message-panel {
    border-radius: 22px;
  }

  .detail-card {
    padding: 1.5rem;
  }
}
