:root {
  --mint: #c9f6df;
  --mint-deep: #7fd8ac;
  --pink: #ffddeb;
  --pink-deep: #ee8fb9;
  --cream: #fff8df;
  --yellow: #ffe58a;
  --sky: #bfe8ff;
  --ink: #443b48;
  --muted: #746b77;
  --paper: #fffefa;
  --line: #eadfd4;
  --shadow: 0 20px 55px rgba(119, 91, 103, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", system-ui, sans-serif;
  background: linear-gradient(180deg, #fff6fa 0%, #fffefa 42%, #f2fff8 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.is-lightbox-open {
  overflow: hidden;
}

.floating-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-bg span {
  position: absolute;
  display: block;
  width: var(--size);
  height: var(--size);
  left: var(--left);
  bottom: -9rem;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.98) 0 9%, transparent 10%),
    radial-gradient(circle at 72% 76%, rgba(191, 232, 255, 0.42), transparent 40%),
    radial-gradient(circle at 18% 82%, rgba(255, 221, 235, 0.28), transparent 34%),
    rgba(255, 255, 255, 0.32);
  box-shadow:
    inset -0.45rem -0.5rem 1rem rgba(238, 143, 185, 0.18),
    inset 0.45rem 0.45rem 1rem rgba(127, 216, 172, 0.16),
    0 0.8rem 2rem rgba(119, 91, 103, 0.1);
  opacity: var(--opacity);
  animation: float-bubble var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.floating-bg i {
  position: absolute;
  display: block;
  width: var(--balloon-width);
  height: calc(var(--balloon-width) * 1.28);
  left: var(--left);
  bottom: -11rem;
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 48% 52% 50% 50% / 42% 42% 58% 58%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.88) 0 12%, transparent 13%),
    linear-gradient(145deg, var(--balloon-color-a), var(--balloon-color-b));
  box-shadow:
    inset -0.45rem -0.7rem 1rem rgba(119, 91, 103, 0.1),
    0 0.8rem 2rem rgba(119, 91, 103, 0.09);
  opacity: var(--opacity);
  animation: float-balloon var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

.floating-bg i::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.45rem;
  width: 0;
  height: 0;
  border-left: 0.35rem solid transparent;
  border-right: 0.35rem solid transparent;
  border-top: 0.65rem solid var(--balloon-color-b);
  transform: translateX(-50%);
}

.floating-bg i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 0.15rem);
  width: 1px;
  height: 4.4rem;
  background: linear-gradient(rgba(119, 91, 103, 0.28), transparent);
  transform: translateX(-50%);
}

.floating-bg i:nth-of-type(1) {
  --balloon-width: 3.6rem;
  --left: 9%;
  --duration: 30s;
  --delay: -9s;
  --opacity: 0.42;
  --balloon-color-a: rgba(255, 221, 235, 0.62);
  --balloon-color-b: rgba(238, 143, 185, 0.36);
}

.floating-bg i:nth-of-type(2) {
  --balloon-width: 4.4rem;
  --left: 27%;
  --duration: 36s;
  --delay: -21s;
  --opacity: 0.34;
  --balloon-color-a: rgba(201, 246, 223, 0.66);
  --balloon-color-b: rgba(127, 216, 172, 0.34);
}

.floating-bg i:nth-of-type(3) {
  --balloon-width: 3rem;
  --left: 45%;
  --duration: 28s;
  --delay: -14s;
  --opacity: 0.38;
  --balloon-color-a: rgba(255, 229, 138, 0.64);
  --balloon-color-b: rgba(238, 201, 99, 0.34);
}

.floating-bg i:nth-of-type(4) {
  --balloon-width: 4.8rem;
  --left: 67%;
  --duration: 40s;
  --delay: -5s;
  --opacity: 0.32;
  --balloon-color-a: rgba(191, 232, 255, 0.7);
  --balloon-color-b: rgba(133, 199, 236, 0.34);
}

.floating-bg i:nth-of-type(5) {
  --balloon-width: 3.4rem;
  --left: 81%;
  --duration: 32s;
  --delay: -25s;
  --opacity: 0.4;
  --balloon-color-a: rgba(255, 221, 235, 0.58);
  --balloon-color-b: rgba(201, 246, 223, 0.34);
}

.floating-bg i:nth-of-type(6) {
  --balloon-width: 5.2rem;
  --left: 94%;
  --duration: 44s;
  --delay: -17s;
  --opacity: 0.28;
  --balloon-color-a: rgba(255, 248, 223, 0.74);
  --balloon-color-b: rgba(255, 221, 235, 0.38);
}

.floating-bg span:nth-child(1) {
  --size: 5.6rem;
  --left: 6%;
  --duration: 24s;
  --delay: -8s;
  --opacity: 0.76;
}

.floating-bg span:nth-child(2) {
  --size: 2.8rem;
  --left: 17%;
  --duration: 19s;
  --delay: -15s;
  --opacity: 0.62;
}

.floating-bg span:nth-child(3) {
  --size: 7.5rem;
  --left: 33%;
  --duration: 31s;
  --delay: -5s;
  --opacity: 0.54;
}

.floating-bg span:nth-child(4) {
  --size: 3.6rem;
  --left: 48%;
  --duration: 21s;
  --delay: -13s;
  --opacity: 0.7;
}

.floating-bg span:nth-child(5) {
  --size: 6.4rem;
  --left: 65%;
  --duration: 28s;
  --delay: -18s;
  --opacity: 0.6;
}

.floating-bg span:nth-child(6) {
  --size: 2.4rem;
  --left: 76%;
  --duration: 17s;
  --delay: -4s;
  --opacity: 0.66;
}

.floating-bg span:nth-child(7) {
  --size: 4.8rem;
  --left: 86%;
  --duration: 23s;
  --delay: -11s;
  --opacity: 0.7;
}

.floating-bg span:nth-child(8) {
  --size: 8rem;
  --left: 93%;
  --duration: 34s;
  --delay: -22s;
  --opacity: 0.48;
}

.floating-bg span:nth-child(9) {
  --size: 3.1rem;
  --left: 10%;
  --duration: 18s;
  --delay: -2s;
  --opacity: 0.66;
}

.floating-bg span:nth-child(10) {
  --size: 4.2rem;
  --left: 24%;
  --duration: 26s;
  --delay: -20s;
  --opacity: 0.58;
}

.floating-bg span:nth-child(11) {
  --size: 2rem;
  --left: 41%;
  --duration: 16s;
  --delay: -9s;
  --opacity: 0.72;
}

.floating-bg span:nth-child(12) {
  --size: 5rem;
  --left: 56%;
  --duration: 25s;
  --delay: -6s;
  --opacity: 0.6;
}

.floating-bg span:nth-child(13) {
  --size: 2.7rem;
  --left: 71%;
  --duration: 20s;
  --delay: -16s;
  --opacity: 0.68;
}

.floating-bg span:nth-child(14) {
  --size: 6rem;
  --left: 82%;
  --duration: 30s;
  --delay: -25s;
  --opacity: 0.52;
}

.floating-bg span:nth-child(15) {
  --size: 3.4rem;
  --left: 4%;
  --duration: 22s;
  --delay: -19s;
  --opacity: 0.64;
}

.floating-bg span:nth-child(16) {
  --size: 4.6rem;
  --left: 38%;
  --duration: 27s;
  --delay: -23s;
  --opacity: 0.58;
}

.floating-bg span:nth-child(17) {
  --size: 2.5rem;
  --left: 61%;
  --duration: 15s;
  --delay: -12s;
  --opacity: 0.72;
}

.floating-bg span:nth-child(18) {
  --size: 5.8rem;
  --left: 96%;
  --duration: 32s;
  --delay: -7s;
  --opacity: 0.5;
}

@keyframes float-bubble {
  0% {
    transform: translate3d(0, 0, 0) scale(0.92);
  }

  35% {
    transform: translate3d(1.8rem, -38vh, 0) scale(1);
  }

  70% {
    transform: translate3d(-1.3rem, -76vh, 0) scale(1.06);
  }

  100% {
    transform: translate3d(1rem, -118vh, 0) scale(0.98);
  }
}

@keyframes float-balloon {
  0% {
    transform: translate3d(0, 0, 0) rotate(-3deg);
  }

  35% {
    transform: translate3d(-1rem, -34vh, 0) rotate(4deg);
  }

  70% {
    transform: translate3d(1.3rem, -76vh, 0) rotate(-5deg);
  }

  100% {
    transform: translate3d(-0.8rem, -122vh, 0) rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-bg span,
  .floating-bg i {
    animation: none;
  }
}

a {
  color: inherit;
}

.site-header,
main,
.site-footer,
.lightbox {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 254, 250, 0.88);
  border-bottom: 1px solid rgba(234, 223, 212, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.site-nav a {
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--pink);
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 50%;
  background: var(--mint);
  padding: 0.7rem;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(2.5rem, 6vw, 5rem);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-copy {
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.76), 0 12px 24px rgba(255, 255, 255, 0.72);
}

.hero-photo-scatter {
  position: absolute;
  inset: -1.5rem -7vw -1rem;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}

.hero-scatter-photo {
  position: absolute;
  width: clamp(8rem, 15vw, 13rem);
  aspect-ratio: 4 / 3;
  padding: 0.45rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 34px rgba(119, 91, 103, 0.16);
  opacity: 0.42;
  transform: translate(-50%, -50%) rotate(var(--photo-rotate));
}

.hero-scatter-photo.is-portrait {
  width: clamp(6rem, 10vw, 8.5rem);
  aspect-ratio: 3 / 4;
}

.hero-scatter-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.45rem;
  filter: saturate(1.05) brightness(1.03);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: #d56fa3;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 3.1rem;
  line-height: 1.13;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.lead {
  width: min(100%, 42rem);
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.9;
  font-weight: 500;
}

.hero-actions,
.x-panel,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(119, 91, 103, 0.12);
}

.button.primary {
  background: var(--mint-deep);
  color: #173d2b;
  border-color: #63c796;
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.hero-visual {
  position: relative;
  min-height: 32rem;
}

.logo-stage {
  position: absolute;
  inset: 2.5rem 2rem 1.5rem;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 42% 58% 48% 52% / 54% 44% 56% 46%;
  background:
    linear-gradient(135deg, rgba(255, 221, 235, 0.72), rgba(201, 246, 223, 0.82)),
    var(--paper);
  box-shadow: var(--shadow);
}

.logo-stage::before,
.logo-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.75;
}

.logo-stage::before {
  width: 5.5rem;
  height: 5.5rem;
  left: -1.5rem;
  top: 3rem;
}

.logo-stage::after {
  width: 4.2rem;
  height: 4.2rem;
  right: 1rem;
  bottom: -1rem;
  background: var(--sky);
}

.logo-stage img {
  position: relative;
  z-index: 1;
  width: min(78%, 24rem);
  height: auto;
  filter: drop-shadow(0 14px 20px rgba(68, 59, 72, 0.14));
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-heading {
  width: min(100%, 42rem);
  margin-bottom: 2rem;
}

.section-heading p:last-child {
  color: var(--muted);
  line-height: 1.85;
  font-weight: 500;
}

.concept-grid,
.cast-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.concept-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.15rem;
}

.concept-photo {
  margin: 0;
  padding: 0.55rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(119, 91, 103, 0.16);
}

.concept-photo-welcome {
  transform: rotate(-1.6deg);
}

.concept-photo-outing {
  transform: rotate(1.4deg);
}

.concept-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.65rem;
  object-fit: cover;
}

.concept-grid article,
.cast-switch-card,
.info-panel,
.day-card,
.promise-list,
.x-panel,
.cast-profile-card {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(119, 91, 103, 0.1);
}

.concept-grid article,
.cast-switch-card {
  padding: 1.4rem;
}

.concept-grid article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.concept-grid article > :not(.concept-card-splash) {
  position: relative;
  z-index: 2;
}

.concept-card-splash {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  object-fit: contain;
  object-position: center;
  filter: brightness(1.06) saturate(1.04) drop-shadow(0 16px 22px rgba(119, 91, 103, 0.16));
  opacity: 0.42;
}

.concept-card-splash-left {
  top: 0.35rem;
  right: 1.65rem;
  width: min(7.1rem, 36%);
  transform: rotate(-4deg);
}

.concept-card-splash-center {
  top: -2.05rem;
  right: 0.15rem;
  width: min(9rem, 44%);
  filter: brightness(1.14) contrast(1.02) saturate(1.07) drop-shadow(0 16px 22px rgba(119, 91, 103, 0.16));
  opacity: 0.36;
}

.concept-card-splash-right {
  top: -3rem;
  right: -1rem;
  width: min(12rem, 54%);
  opacity: 0.34;
  transform: rotate(5deg);
}

.cast-switch-card {
  position: relative;
  display: block;
  width: 100%;
  border-color: var(--line);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.cast-switch-card::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 2px solid transparent;
  border-radius: 1.1rem;
  pointer-events: none;
}

.cast-switch-card.is-active {
  border-color: #68d49b;
  background:
    linear-gradient(135deg, rgba(201, 246, 223, 0.82), rgba(255, 255, 255, 0.92)),
    #fff;
  box-shadow: 0 18px 42px rgba(97, 188, 137, 0.2);
}

.cast-switch-card.is-active::after {
  border-color: rgba(104, 212, 155, 0.55);
}

.cast-switch-card.is-active h3::after {
  content: "表示中";
  display: inline-flex;
  margin-left: 0.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #75d8a5;
  color: #173d2b;
  font-size: 0.78rem;
  vertical-align: middle;
}

.cast-panel[hidden] {
  display: none;
}

.cast-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.cast-generation {
  margin-top: 1.5rem;
}

.cast-generation h3 {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  margin: 0;
  padding: 0.35rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #c46094;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(119, 91, 103, 0.08);
}

.cast-profile-card {
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  cursor: zoom-in;
}

.cast-profile-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #fff;
  transition: transform 220ms ease, filter 220ms ease;
}

.cast-profile-card:hover img {
  transform: scale(1.03);
  filter: saturate(1.06);
}

.cast-profile-card:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 4px;
}

.cast-profile-card figcaption {
  padding: 0.9rem 1rem 1rem;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.cast-section .cast-profile-card img {
  height: auto;
  aspect-ratio: auto;
}

.cast-section .cast-profile-card figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cast-select-section h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Yomogi", cursive;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0;
  line-height: 1.08;
}

.cast-query-panel,
.cast-result-summary {
  margin-bottom: 1rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(119, 91, 103, 0.1);
}

.cast-query-panel {
  display: grid;
  gap: 0.7rem;
}

.cast-query-panel p,
.cast-result-summary p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

.cast-query-panel code,
.cast-empty code {
  display: inline-block;
  max-width: 100%;
  padding: 0.25rem 0.45rem;
  overflow-wrap: anywhere;
  border-radius: 0.45rem;
  background: #fff7fb;
  color: #9f4f7e;
  font-weight: 800;
}

.cast-warning {
  color: #c46094 !important;
}

.cast-selected-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cast-selected-card figcaption {
  display: grid;
  gap: 0.25rem;
}

.cast-selected-card figcaption span {
  color: #c46094;
  font-size: 0.84rem;
}

.cast-tool-section h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Yomogi", cursive;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0;
  line-height: 1.08;
}

.cast-tool-output {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(119, 91, 103, 0.1);
}

.cast-tool-output label {
  color: #c46094;
  font-weight: 800;
}

.cast-url-row,
.cast-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cast-url-row input {
  flex: 1 1 24rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.cast-copy-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.cast-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cast-tool-card {
  display: grid;
  grid-template-columns: auto minmax(4.5rem, 6rem) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  min-height: 7rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(119, 91, 103, 0.1);
  cursor: pointer;
}

.cast-tool-card:has(input:checked) {
  border-color: #75d8a5;
  background: linear-gradient(135deg, rgba(201, 246, 223, 0.78), rgba(255, 255, 255, 0.92));
}

.cast-tool-card input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #6ed49c;
}

.cast-tool-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 0.9rem;
  background: #fff;
}

.cast-tool-name {
  display: grid;
  gap: 0.25rem;
  color: var(--ink);
  font-weight: 800;
}

.cast-tool-name small {
  color: #c46094;
  font-size: 0.82rem;
}

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

.previous-grid:empty {
  min-height: 9rem;
}

.previous-empty {
  margin: 1rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.gallery-item {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 1.5rem;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(119, 91, 103, 0.12);
  cursor: zoom-in;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 220ms ease, filter 220ms ease;
}

.gallery-item.is-portrait img {
  object-position: 50% 28%;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: saturate(1.06);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5rem 5.5rem;
  background: rgba(45, 37, 48, 0.78);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
  touch-action: pan-y;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-frame {
  position: relative;
  display: grid;
  gap: 0.75rem;
  width: min(100%, 78rem);
  margin: 0;
  touch-action: pan-y;
}

.lightbox-frame.is-portrait {
  width: min(100%, 42rem);
}

.lightbox-frame img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 10rem);
  object-fit: contain;
  border: 4px solid #fff;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: var(--shadow);
}

.lightbox-frame figcaption {
  color: #fff;
  text-align: center;
  font-weight: 700;
  line-height: 1.6;
}

.lightbox-download {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 3;
  text-decoration: none;
  cursor: pointer;
}

.lightbox-image-close {
  position: absolute;
  inset: 0 0 2.5rem;
  z-index: 2;
  display: block;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(255, 254, 250, 0.94);
  color: var(--ink);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.lightbox-close {
  top: 1.2rem;
  right: 1.2rem;
  width: 3rem;
  height: 3rem;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  width: 3.5rem;
  height: 3.5rem;
  transform: translateY(-50%);
  font-size: 2.4rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1.2rem;
}

.lightbox-next {
  right: 1.2rem;
}

.concept-grid p,
.cast-grid p,
.promise-list li,
.entry-copy p,
.day-card li,
.x-panel p {
  color: var(--muted);
  line-height: 1.8;
  font-weight: 500;
}

.icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--cream);
  color: #bf6697;
  font-family: "Yomogi", cursive;
  font-size: 1.6rem;
  font-weight: 700;
}

.event-layout,
.entry-section {
  display: grid;
  gap: 1rem;
}

.event-layout {
  grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
}

.entry-section {
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  align-items: stretch;
}

.event-poster {
  margin: 0;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(119, 91, 103, 0.1);
}

.event-poster img {
  display: block;
  width: 100%;
  border-radius: 1rem;
}

.event-poster figcaption {
  padding: 0.8rem 0.45rem 0.3rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.info-panel,
.day-card,
.promise-list,
.x-panel {
  padding: 1.5rem;
}

.info-panel {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.info-panel::after {
  content: "";
  position: absolute;
  right: 2.1rem;
  bottom: 1.05rem;
  width: min(9.8rem, 24%);
  aspect-ratio: 9 / 16;
  background: url("../images/misc/aruna.png") bottom right / contain no-repeat;
  opacity: 0.17;
  pointer-events: none;
}

dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

dt {
  color: #c46094;
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

.event-flow-item {
  position: relative;
  align-items: start;
  overflow: hidden;
}

.event-flow-item > * {
  position: relative;
  z-index: 1;
}

.event-flow-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-flow-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 700;
}

.event-flow-list span {
  color: #c46094;
  font-weight: 800;
  white-space: nowrap;
}

.day-card {
  position: relative;
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #fff9e6, #fffefa);
  overflow: visible;
}

.event-character {
  display: none;
}

.small-title {
  margin: 0 0 0.8rem;
  font-weight: 800;
  color: #c46094;
}

.day-card ol,
.promise-list ul {
  margin: 0;
  padding-left: 1.3rem;
}

.entry-section {
  align-items: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(201, 246, 223, 0.72), rgba(255, 221, 235, 0.72)),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.entry-section > * {
  position: relative;
  z-index: 1;
}

.entry-section .promise-list {
  margin-right: 0;
}

.entry-copy h2 {
  margin-bottom: 1rem;
}

.form-note {
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
}

.promise-list {
  background: rgba(255, 254, 250, 0.86);
}

.avatar {
  width: 5rem;
  height: 5rem;
  margin-bottom: 1rem;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 18px rgba(119, 91, 103, 0.12);
}

.avatar-mint {
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--mint) 19% 100%);
}

.avatar-peach {
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, #ffd2bd 19% 100%);
}

.x-panel {
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(18rem, 1fr);
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
  background: #fff;
}

.x-copy {
  display: grid;
  gap: 1rem;
}

.x-copy .button {
  justify-self: start;
}

.x-panel h3 {
  margin-bottom: 0.2rem;
}

.x-timeline {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.x-timeline.is-rendered {
  min-height: 32rem;
}

.x-timeline > .twitter-timeline {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.x-fallback {
  display: grid;
  gap: 1rem;
  min-height: 20rem;
  padding: clamp(1.4rem, 4vw, 2rem);
  place-content: center;
  background:
    linear-gradient(135deg, rgba(255, 221, 235, 0.68), rgba(201, 246, 223, 0.68)),
    #fff;
}

.x-fallback p {
  margin: 0;
}

.x-fallback .button {
  justify-self: start;
}

.x-timeline.is-rendered .x-fallback {
  display: none;
}

.x-timeline iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100% !important;
}

.site-footer {
  padding: 2.5rem 1rem 3rem;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}

.site-footer p {
  margin: 0.25rem 0;
}

@media (max-width: 980px) {
  .concept-photo-grid {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }

  .concept-photo {
    transform: none;
  }
}

@media (max-width: 820px) {
  body {
    max-width: 100%;
  }

  main {
    overflow-x: clip;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 0.8rem;
  }

  .hero,
  .event-layout,
  .entry-section,
  .x-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-photo-scatter {
    inset: 0;
    overflow: hidden;
    opacity: 0.82;
  }

  .hero-scatter-photo {
    width: clamp(4.75rem, 22vw, 7rem);
    opacity: 0.34;
  }

  .hero-visual {
    min-height: 25rem;
  }

  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .concept-grid,
  .cast-grid,
  .cast-profile-grid,
  .cast-selected-grid,
  .cast-tool-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .concept-card-splash {
    opacity: 0.24;
  }

  .concept-card-splash-left {
    top: 1.1rem;
    right: 1.7rem;
    width: min(7rem, 34vw);
  }

  .concept-card-splash-center {
    top: -0.15rem;
    right: 0.35rem;
    width: min(7.4rem, 36vw);
    opacity: 0.22;
  }

  .concept-card-splash-right {
    top: -0.55rem;
    right: -0.15rem;
    width: min(8.6rem, 40vw);
    opacity: 0.22;
  }

  .entry-section .promise-list {
    margin-right: 0;
  }

  .lightbox {
    padding: 4.75rem 1rem 5rem;
  }

  .lightbox-arrow {
    display: none;
  }

  .lightbox-download {
    right: auto;
    bottom: 5rem;
    left: 50%;
    width: max-content;
    transform: translateX(-50%);
    white-space: nowrap;
  }

}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 0.85rem;
  }

  .brand span {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  h1 span {
    white-space: normal;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-visual {
    min-height: 23rem;
  }

  .logo-stage {
    inset: 2rem 1rem 1rem;
  }

  h2 {
    font-size: 2rem;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .hero-actions .button,
  .entry-copy .button {
    width: 100%;
  }

}
