:root {
  --sky: #66c5dc;
  --sky-deep: #49b4ce;
  --ink: #63bacd;
  --panel: #ffffff;
  --shadow: rgba(24, 96, 112, 0.14);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #eef8fb;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 24px 12px;
  opacity: 0;
  animation: pageFade 0.45s ease-out forwards;
}

.notice-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 520px);
  min-height: calc(100vh - 48px);
  padding: 38px 20px 22px;
  background-color: var(--sky);
  background-image: repeating-linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.12) 0,
    rgba(255, 255, 255, 0.12) 22px,
    rgba(255, 255, 255, 0) 22px,
    rgba(255, 255, 255, 0) 44px
  );
  background-size: 125% 125%;
  border-radius: 24px;
  box-shadow: 0 16px 42px var(--shadow);
  transform: translateY(26px) scale(0.985);
  opacity: 0;
  animation:
    cardEnter 0.82s var(--ease-out) 0.08s forwards,
    stripeDrift 18s linear 1.1s infinite;
}

.notice-card::before,
.notice-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.notice-card::before {
  width: 130px;
  height: 130px;
  top: -48px;
  right: -38px;
  animation: bubbleFloat 8s ease-in-out 1.2s infinite alternate;
}

.notice-card::after {
  width: 86px;
  height: 86px;
  left: -34px;
  bottom: 110px;
  animation: bubbleFloat 10s ease-in-out 1.7s infinite alternate-reverse;
}

.organization {
  margin: 0 0 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 5vw, 28px);
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(-12px);
  animation: softEnter 0.65s var(--ease-out) 0.48s forwards;
}

.page-title {
  margin: 0 0 18px;
  padding: 12px 20px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  text-align: center;
  font-size: clamp(24px, 7vw, 36px);
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 10px rgba(39, 121, 142, 0.08);
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  animation: titlePop 0.72s var(--ease-out) 0.62s forwards;
}

.content-panel {
  min-height: 620px;
  padding: 58px 28px 24px;
  background: var(--panel);
  border-radius: 34px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(22px);
  clip-path: inset(0 0 100% 0 round 34px);
  animation: panelReveal 0.9s var(--ease-out) 0.78s forwards;
}

.eyebrow {
  margin: 0 0 24px;
  font-size: clamp(22px, 6vw, 34px);
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(10px);
  animation: softEnter 0.62s var(--ease-out) 1.25s forwards;
}

.main-copy {
  margin: 0;
  min-height: 1.65em;
  font-size: clamp(27px, 7.2vw, 42px);
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: 0.035em;
}

.main-copy .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px) scale(0.75) rotate(-4deg);
  animation: charPop 0.58s var(--ease-out) forwards;
  animation-delay: calc(1.48s + var(--char-index) * 0.07s);
}

.main-copy .char-space {
  width: 0.35em;
}

.illustration {
  margin-top: auto;
  width: min(100%, 390px);
  color: var(--ink);
  opacity: 0.92;
  transform-origin: 50% 100%;
  animation: illustrationSway 5.5s ease-in-out 3.2s infinite;
}

.illustration svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.illustration svg circle,
.illustration svg path {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: lineDraw 1.45s var(--ease-out) forwards;
}

.illustration svg circle:nth-child(1),
.illustration svg path:nth-child(2),
.illustration svg path:nth-child(3) {
  animation-delay: 1.72s;
}

.illustration svg circle:nth-child(4),
.illustration svg path:nth-child(5),
.illustration svg path:nth-child(6) {
  animation-delay: 1.88s;
}

.illustration svg circle:nth-child(7),
.illustration svg path:nth-child(8),
.illustration svg path:nth-child(9),
.illustration svg path:nth-child(10) {
  animation-delay: 2.04s;
}

.illustration svg circle:nth-child(11),
.illustration svg path:nth-child(12),
.illustration svg path:nth-child(13) {
  animation-delay: 2.2s;
}

.illustration svg path:nth-child(n + 14) {
  animation-delay: 2.35s;
}

@keyframes pageFade {
  to { opacity: 1; }
}

@keyframes cardEnter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes stripeDrift {
  to { background-position: 88px 0; }
}

@keyframes softEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titlePop {
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.025);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panelReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0 round 34px);
  }
}

@keyframes charPop {
  72% {
    opacity: 1;
    transform: translateY(-3px) scale(1.06) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes lineDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes illustrationSway {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(0.35deg); }
}

@keyframes bubbleFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(8px, 14px, 0) scale(1.08); }
}

@media (max-width: 420px) {
  .page-shell {
    padding: 0;
  }

  .notice-card {
    min-height: 100vh;
    border-radius: 0;
    padding: 34px 14px 14px;
  }

  .content-panel {
    min-height: calc(100vh - 185px);
    padding: 48px 18px 20px;
    border-radius: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }

  .page-shell,
  .notice-card,
  .organization,
  .page-title,
  .content-panel,
  .eyebrow,
  .main-copy .char {
    opacity: 1;
    transform: none;
  }

  .content-panel {
    clip-path: none;
  }

  .illustration svg circle,
  .illustration svg path {
    stroke-dashoffset: 0;
  }
}
