/* ニコとモモの小さな冒険 — 手描き水彩と紙のホームページ */

:root {
  --paper: #f6f0e4;
  --paper-card: #fbf7ee;
  --paper-deep: #eadfc9;
  --paper-tint: #f2e8d5;
  --ink: #35281f;
  --ink-soft: #6a584a;
  --ink-faint: rgba(53, 40, 31, 0.14);
  --ink-line: rgba(53, 40, 31, 0.24);
  --meadow: #c2ce98;
  --meadow-soft: #e3e8cc;
  --mustard: #ebbd55;
  --mustard-soft: #f9ebc6;
  --rose: #e5969c;
  --rose-soft: #f7e1e2;
  --terracotta: #c9674b;
  --taupe: #b6a799;
  --sky: #8ec1d9;
  --sky-soft: #dfeff6;
  --line-talk: #7b9dc4;
  --line-dark: #1d1e22;
  --line-light: #f6f4ef;
  --shadow-ink: 4px 4px 0 rgba(53, 40, 31, 0.14);
  --shadow-lift: 6px 6px 0 rgba(53, 40, 31, 0.18);
  --font-round: "Hiragino Maru Gothic ProN", "YuMaruGo", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(53, 40, 31, 0.04) 1px, transparent 0),
    radial-gradient(rgba(195, 165, 128, 0.08) 1px, transparent 0);
  background-size: 28px 28px, 19px 19px;
  background-position: 0 0, 9px 11px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 240, 228, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--ink-line);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.has-cinema .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(251, 247, 238, 0.52) 0%, rgba(251, 247, 238, 0) 100%);
  backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, opacity 0.35s ease;
}

body.has-cinema .site-header.is-solid {
  background-image: none;
  background-color: rgba(248, 244, 234, 0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--ink-line);
}

body.has-cinema .site-header.is-night {
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(16, 22, 44, 0.62) 0%, rgba(16, 22, 44, 0) 100%);
  border-bottom-color: transparent;
  color: #f8f2e4;
}

body.has-cinema .site-header.is-night .brand-sub {
  color: rgba(248, 242, 228, 0.72);
  border-left-color: rgba(248, 242, 228, 0.25);
}

body.has-cinema .site-header.is-night .site-nav a:hover {
  background: rgba(255, 250, 235, 0.12);
  border-color: rgba(255, 250, 235, 0.26);
}

body.has-cinema .site-header.is-night .site-nav a.is-active {
  background: rgba(255, 246, 214, 0.14);
  border-color: rgba(255, 246, 214, 0.36);
  color: #fff8e6;
  box-shadow: none;
}

body.has-cinema .site-header:not(.is-solid) .site-nav a.is-active {
  background: rgba(251, 247, 238, 0.45);
  border-color: rgba(53, 40, 31, 0.2);
  box-shadow: none;
}

body.has-cinema .site-header.is-night .sound-btn {
  background: rgba(255, 250, 235, 0.1);
  border-color: rgba(255, 250, 235, 0.28);
  color: #f8f2e4;
}

body.has-cinema .site-header.is-night .sound-btn[aria-pressed="true"] {
  background: rgba(235, 189, 85, 0.26);
  border-color: rgba(235, 189, 85, 0.7);
  color: #fff8e6;
}

body.is-clean-cinema .site-header:not(:hover) {
  opacity: 0.12;
}

.sound-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
  width: 11px;
}

.sound-eq i {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.sound-eq i:nth-child(2) { height: 7px; }
.sound-eq i:nth-child(3) { height: 5px; }

.sound-btn[aria-pressed="true"] .sound-eq i {
  opacity: 1;
  animation: eqPulse 1.15s ease-in-out infinite;
}

.sound-btn[aria-pressed="true"] .sound-eq i:nth-child(2) {
  animation-delay: 0.25s;
}

.sound-btn[aria-pressed="true"] .sound-eq i:nth-child(3) {
  animation-delay: 0.52s;
}

@keyframes eqPulse {
  0%, 100% { height: 3px; }
  50% { height: 11px; }
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--paper-card);
  display: grid;
  place-items: center;
  box-shadow: 2px 2px 0 rgba(53, 40, 31, 0.16);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-mark {
  transform: rotate(-7deg) scale(1.06);
}

.brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-left: 8px;
  border-left: 1.5px solid var(--ink-line);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  font-family: var(--font-round);
  font-size: 0.92rem;
  padding: 6px 13px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.site-nav a:hover {
  background: var(--paper-card);
  border-color: var(--ink-line);
  transform: translateY(-1px);
}

.site-nav a.is-active {
  background: var(--mustard-soft);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 rgba(53, 40, 31, 0.14);
}

.sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 10px;
  border: 1.5px solid var(--ink-line);
  background: var(--paper-card);
  font-family: var(--font-round);
  font-size: 0.82rem;
  color: var(--ink-soft);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.sound-btn[aria-pressed="true"] {
  background: var(--meadow-soft);
  border-color: var(--ink);
  color: var(--ink);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  box-shadow: var(--shadow-ink);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s, background 0.18s;
}

.btn:hover {
  transform: translate(-1px, -2px);
  box-shadow: var(--shadow-lift);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(53, 40, 31, 0.18);
}

.btn-primary {
  background: var(--terracotta);
  color: #fffaf2;
}

.btn-primary:hover {
  background: #b8583c;
}

.btn-mustard {
  background: var(--mustard);
  color: var(--ink);
}

.btn-paper {
  background: var(--paper-card);
  color: var(--ink);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.86rem;
  border-radius: 10px;
}

/* ---------- Living Picture-Book Hero ---------- */

.hero-stage {
  position: relative;
  margin: 18px auto 0;
  max-width: 1180px;
  padding-inline: 24px;
}

.hero-frame {
  position: relative;
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper-card);
  box-shadow: 8px 8px 0 rgba(53, 40, 31, 0.14);
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  transition: background 0.5s ease;
}

.hero-frame[data-mood="sunset"] {
  background: #f6dec8;
}

.hero-frame[data-mood="glacier"] {
  background: #dcecf6;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.65s ease, transform 0.9s ease;
}

.hero-bg-img.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Gentle left wash so Japanese headline stays crisp while characters on right & bottom shine clearly */
.hero-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    96deg,
    rgba(251, 247, 238, 0.94) 0%,
    rgba(251, 247, 238, 0.86) 34%,
    rgba(251, 247, 238, 0.22) 52%,
    rgba(251, 247, 238, 0.02) 72%
  );
  pointer-events: none;
  transition: background 0.5s ease;
}

.hero-frame[data-mood="sunset"] .hero-wash {
  background: linear-gradient(
    98deg,
    rgba(252, 240, 224, 0.92) 0%,
    rgba(252, 240, 224, 0.8) 38%,
    rgba(252, 240, 224, 0.2) 62%,
    rgba(252, 240, 224, 0.03) 100%
  );
}

.hero-frame[data-mood="glacier"] .hero-wash {
  background: linear-gradient(
    98deg,
    rgba(244, 250, 255, 0.92) 0%,
    rgba(244, 250, 255, 0.82) 38%,
    rgba(244, 250, 255, 0.22) 62%,
    rgba(244, 250, 255, 0.04) 100%
  );
}

#bubbleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  cursor: pointer;
}

.hero-copy {
  position: relative;
  z-index: 4;
  padding: 44px 36px 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  pointer-events: none;
}

.hero-copy a,
.hero-copy button,
.hero-copy .mood-bar {
  pointer-events: auto;
}

.mood-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mood-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: rgba(251, 247, 238, 0.9);
  font-family: var(--font-round);
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.16s, background 0.16s;
}

.mood-btn:hover {
  transform: translateY(-1px);
}

.mood-btn.is-active {
  background: var(--ink);
  color: #fbf7ee;
}

.hero-title {
  margin: 0;
  font-family: var(--font-round);
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.24;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.hero-lead {
  margin: 0;
  max-width: 430px;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: rgba(251, 247, 238, 0.9);
  border: 1.5px dashed var(--ink-line);
  border-radius: 10px;
  padding: 6px 12px;
  max-width: 100%;
  width: fit-content;
}

.bubble-score {
  font-family: var(--font-round);
  font-weight: 700;
  color: var(--terracotta);
}

/* Interactive floating sticker pals on hero right */
.hero-stage-right {
  position: relative;
  z-index: 4;
  min-height: 360px;
  pointer-events: none;
}

.hero-pal {
  position: absolute;
  border: 0;
  background: none;
  padding: 0;
  pointer-events: auto;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 6px 10px rgba(53, 40, 31, 0.16));
}

.hero-pal img {
  width: 112px;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.hero-pal-nico {
  right: 16%;
  top: 22px;
  animation: floatBob 4.2s ease-in-out infinite;
}

.hero-pal-momo {
  right: 3%;
  top: 118px;
  animation: floatBob 4.9s ease-in-out 0.6s infinite;
}

.hero-pal-dog {
  right: 14px;
  bottom: 14px;
  animation: floatBob 5.3s ease-in-out 1.2s infinite;
}

.hero-pal:hover {
  transform: scale(1.12) rotate(-4deg);
}

.hero-pal.is-popped {
  animation: stickerJump 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pal-bubble {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) scale(0.92);
  background: #fffdf8;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 4px 10px;
  font-family: var(--font-round);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 2px 2px 0 rgba(53, 40, 31, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.hero-pal:hover .pal-bubble,
.hero-pal.show-talk .pal-bubble {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

@keyframes floatBob {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(1.5deg); }
}

@keyframes stickerJump {
  0% { transform: scale(1) translateY(0); }
  35% { transform: scale(1.18, 0.88) translateY(4px); }
  65% { transform: scale(0.94, 1.14) translateY(-18px) rotate(-6deg); }
  100% { transform: scale(1) translateY(0); }
}

/* ---------- Animated Walking Parade Strip ---------- */

.parade-strip {
  position: relative;
  margin: 34px 0 12px;
  height: 112px;
  overflow: hidden;
  border-top: 1.5px dashed var(--ink-line);
  border-bottom: 1.5px dashed var(--ink-line);
  background:
    linear-gradient(180deg, rgba(246, 240, 228, 0) 0%, rgba(194, 206, 152, 0.28) 68%, rgba(194, 206, 152, 0.45) 100%);
}

.parade-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(53, 40, 31, 0.28) 0 10px,
    transparent 10px 22px
  );
}

.parade-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 12px;
}

.walker {
  position: absolute;
  bottom: 12px;
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.walker img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  animation: trotHop 0.72s ease-in-out infinite;
  filter: drop-shadow(0 3px 4px rgba(53, 40, 31, 0.14));
}

.walker[data-role="momo"] img {
  width: 70px;
  height: 70px;
  animation-duration: 0.62s;
}

.walker[data-role="dog"] img {
  width: 82px;
  height: 82px;
  animation-duration: 0.78s;
}

.walker.is-hop img {
  animation: stickerJump 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.walker-say {
  position: absolute;
  bottom: 84px;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 2px 8px;
  font-family: var(--font-round);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s, transform 0.18s;
  pointer-events: none;
}

.walker.show-say .walker-say,
.walker:hover .walker-say {
  opacity: 1;
  transform: translateY(0);
}

.parade-prop {
  position: absolute;
  bottom: 18px;
  width: 28px;
  height: 28px;
  opacity: 0.72;
  pointer-events: none;
  animation: floatBob 3.8s ease-in-out infinite;
}

@keyframes trotHop {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2.5deg); }
}

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

.section {
  padding: 58px 0;
}

.section-border {
  border-top: 1.5px solid var(--ink-faint);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-family: var(--font-round);
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
  line-height: 1.3;
}

.section-sub {
  margin: 8px 0 0;
  color: var(--ink-soft);
  max-width: 580px;
  font-size: 0.96rem;
}

/* ---------- Character Sketchbook Spread ---------- */

.cast-spread {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 32px;
  align-items: start;
}

.sketch-frame {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-ink);
}

.sketch-frame img {
  width: 100%;
  border-radius: 11px;
  border: 1px solid var(--ink-faint);
}

.sketch-caption {
  margin: 10px 4px 2px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.char-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.char-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 2px solid var(--ink-line);
  background: var(--paper-card);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 0.16s, background 0.16s, border-color 0.16s;
}

.char-tab img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.char-tab:hover {
  transform: translateY(-2px);
}

.char-tab.is-active {
  border-color: var(--ink);
  background: var(--mustard-soft);
  box-shadow: 3px 3px 0 rgba(53, 40, 31, 0.14);
}

.char-panel {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-ink);
}

.char-name {
  margin: 0 0 6px;
  font-family: var(--font-round);
  font-size: 1.45rem;
}

.char-role {
  margin: 0 0 14px;
  color: var(--terracotta);
  font-family: var(--font-round);
  font-size: 0.92rem;
  font-weight: 700;
}

.char-bio {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 0.96rem;
}

.char-traits {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0 0 20px;
  padding: 14px 0;
  border-top: 1.5px dashed var(--ink-line);
  border-bottom: 1.5px dashed var(--ink-line);
  font-size: 0.9rem;
}

.char-traits dt {
  font-family: var(--font-round);
  font-weight: 700;
  color: var(--ink-soft);
}

.char-traits dd {
  margin: 0;
}

.char-mini-stickers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mini-sticker-btn {
  border: 1.5px solid var(--ink-line);
  border-radius: 12px;
  background: var(--paper);
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.18s, background 0.18s;
}

.mini-sticker-btn:hover {
  transform: translateY(-4px) rotate(-2deg);
  border-color: var(--ink);
  background: #fffdf8;
}

.mini-sticker-btn img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.mini-sticker-btn span {
  font-size: 0.74rem;
  font-family: var(--font-round);
  color: var(--ink-soft);
}

/* ---------- Home Mini LINE Stamp Preview ---------- */

.stamp-home-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.stamp-tray {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stamp-tile {
  border: 1.5px solid var(--ink-line);
  border-radius: 14px;
  background: var(--paper-card);
  padding: 10px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.16s, box-shadow 0.16s;
}

.stamp-tile:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(53, 40, 31, 0.14);
}

.stamp-tile img {
  width: 96px;
  height: 86px;
  object-fit: contain;
}

.stamp-tile-label {
  font-family: var(--font-round);
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

.emoji-strip {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px dashed var(--ink-line);
  background: var(--paper-card);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.emoji-strip-title {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 0.86rem;
  margin-right: 4px;
}

.emoji-dot-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: var(--paper);
  padding: 4px;
  display: grid;
  place-items: center;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.16s;
}

.emoji-dot-btn:hover {
  transform: scale(1.16) rotate(-4deg);
  border-color: var(--ink);
}

.emoji-dot-btn img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* ---------- Interactive LINE Talk Box ---------- */

.talk-box {
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background: var(--line-talk);
  box-shadow: var(--shadow-ink);
  display: flex;
  flex-direction: column;
}

.talk-box[data-theme="light"] {
  background: var(--line-light);
}

.talk-box[data-theme="dark"] {
  background: var(--line-dark);
}

.talk-top {
  background: var(--paper-card);
  border-bottom: 2px solid var(--ink);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.talk-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 0.92rem;
}

.talk-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--mustard-soft);
  padding: 2px;
  object-fit: contain;
}

.theme-pills {
  display: inline-flex;
  gap: 4px;
}

.theme-pill {
  padding: 3px 9px;
  border-radius: 8px;
  border: 1.5px solid var(--ink-line);
  background: var(--paper);
  font-size: 0.76rem;
  font-family: var(--font-round);
}

.theme-pill.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffdf8;
}

.talk-messages {
  padding: 16px 14px;
  min-height: 290px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: msgPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.msg-row.is-me {
  justify-content: flex-end;
}

.msg-sender-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fffdf8;
  border: 1.5px solid rgba(53, 40, 31, 0.35);
  padding: 2px;
  flex-shrink: 0;
}

.msg-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  background: #ffffff;
  color: #24211e;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.msg-row.is-me .msg-bubble {
  background: #a9e682;
  color: #1f2b18;
}

.msg-bubble img.inline-emoji {
  display: inline-block;
  width: 28px;
  height: 28px;
  vertical-align: -7px;
  margin: 0 2px;
}

.msg-sticker {
  width: 132px;
  height: auto;
  display: block;
}

.msg-big-emoji {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.msg-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.84);
  flex-shrink: 0;
}

.talk-box[data-theme="light"] .msg-time {
  color: var(--ink-soft);
}

.talk-compose {
  background: var(--paper-card);
  border-top: 1.5px solid var(--ink-line);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.talk-draft {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--ink-line);
  background: #fffdf8;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.talk-draft img {
  width: 24px;
  height: 24px;
  display: inline-block;
}

@keyframes msgPop {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Story Scenes Strip ---------- */

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.story-card {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-ink);
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s;
}

.story-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: var(--shadow-lift);
}

.story-thumb {
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-deep);
}

.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.story-card:hover .story-thumb img {
  transform: scale(1.04);
}

.story-body {
  padding: 14px 16px 16px;
}

.story-title {
  margin: 0 0 6px;
  font-family: var(--font-round);
  font-size: 1.04rem;
}

.story-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---------- Feature Showcase Row ---------- */

.app-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
  padding: 28px;
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow-ink);
}

.app-row + .app-row {
  margin-top: 22px;
}

.app-row-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1.5px solid var(--ink-line);
}

.app-name {
  margin: 0;
  font-family: var(--font-round);
  font-size: 1.4rem;
}

.app-meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.app-shot {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--ink-faint);
  box-shadow: 0 12px 28px rgba(53, 40, 31, 0.14);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin: 24px 0 0;
  padding: 22px 0 0;
  border-top: 1.5px solid var(--ink-faint);
}

.spec-list dt {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 0.94rem;
  margin-bottom: 3px;
}

.spec-list dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Dedicated Stamps Page ---------- */

.page-banner {
  padding: 40px 0 28px;
  border-bottom: 1.5px dashed var(--ink-line);
}

.banner-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.banner-stickers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.banner-stickers img {
  width: 112px;
  height: auto;
  filter: drop-shadow(0 5px 8px rgba(53, 40, 31, 0.14));
  animation: floatBob 4.2s ease-in-out infinite;
}

.banner-stickers img:nth-child(2) {
  animation-delay: 0.6s;
}

.banner-stickers img:nth-child(3) {
  animation-delay: 1.1s;
}

.stamps-layout {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 28px;
  align-items: start;
  padding: 34px 0 64px;
}

.sticky-talk {
  position: sticky;
  top: 78px;
}

.pack-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pack-tab {
  padding: 10px 16px;
  border-radius: 12px;
  border: 2px solid var(--ink-line);
  background: var(--paper-card);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.pack-tab.is-active {
  background: var(--mustard-soft);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(53, 40, 31, 0.14);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: var(--paper-card);
  border: 1.5px solid var(--ink-line);
  border-radius: 14px;
}

.filter-pill {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-line);
  background: var(--paper);
  font-family: var(--font-round);
  font-size: 0.82rem;
}

.filter-pill.is-active {
  background: var(--ink);
  color: #fffdf8;
  border-color: var(--ink);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.catalog-grid.is-emoji {
  grid-template-columns: repeat(5, 1fr);
}

.catalog-item {
  border: 1.5px solid var(--ink-line);
  border-radius: 14px;
  background: var(--paper-card);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.16s, box-shadow 0.16s;
}

.catalog-item:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(53, 40, 31, 0.14);
}

.catalog-item.is-selected {
  border-color: var(--terracotta);
  background: #fff8f3;
}

.catalog-item .thumb-bg {
  width: 100%;
  aspect-ratio: 1.12 / 1;
  border-radius: 10px;
  background: rgba(123, 157, 196, 0.16);
  display: grid;
  place-items: center;
  padding: 6px;
}

.catalog-grid.is-emoji .thumb-bg {
  aspect-ratio: 1 / 1;
}

.catalog-item img {
  max-width: 100%;
  max-height: 98px;
  object-fit: contain;
}

.catalog-grid.is-emoji img {
  max-height: 66px;
}

.catalog-item-title {
  font-family: var(--font-round);
  font-size: 0.78rem;
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
}

.store-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  background: var(--paper-card);
  box-shadow: var(--shadow-ink);
}

.store-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-round);
  font-size: 1.05rem;
}

.store-card p {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.status-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--meadow-soft);
  font-family: var(--font-round);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(34, 25, 19, 0.76);
  display: none;
  place-items: center;
  padding: 24px;
}

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

.lightbox-box {
  background: var(--paper-card);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  max-width: 860px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-box img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: var(--paper);
}

.lightbox-foot {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1.5px solid var(--ink-faint);
}

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

.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--paper-tint);
  padding: 40px 0 36px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
}

.footer-col b {
  display: block;
  font-family: var(--font-round);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 3px 0;
}

.footer-col a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-faint);
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Responsive (Tablet & Mobile <= 860px) ---------- */

@media (max-width: 960px) {
  .stamps-layout {
    grid-template-columns: 1fr;
  }
  .sticky-talk {
    position: static;
    order: -1;
  }
}

/* Prevent grid items from overflowing narrow viewports */
.hero-frame > *,
.cast-spread > *,
.stamp-home-grid > *,
.stamps-layout > *,
.banner-grid > *,
.app-row > *,
.story-grid > *,
.story-bento > *,
.wallpaper-showcase > *,
.wallpaper-thumbs > *,
.footer-grid > * {
  min-width: 0;
}

@media (max-width: 860px) {
  .wrap,
  .hero-stage {
    padding-inline: 14px;
  }

  .header-inner {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand-sub {
    display: none;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 4px;
  }

  .site-nav a {
    font-size: 0.82rem;
    padding: 5px 8px;
  }

  .sound-btn {
    margin-left: auto;
    font-size: 0.76rem;
    padding: 4px 8px;
  }

  .hero-frame {
    grid-template-columns: 1fr;
    min-height: auto;
    box-shadow: 4px 4px 0 rgba(53, 40, 31, 0.14);
  }

  .hero-wash {
    background: linear-gradient(
      180deg,
      rgba(251, 247, 238, 0.93) 0%,
      rgba(251, 247, 238, 0.88) 54%,
      rgba(251, 247, 238, 0.16) 76%,
      rgba(251, 247, 238, 0.04) 100%
    );
  }

  .hero-copy {
    padding: 22px 16px 16px;
  }

  .hero-title {
    font-size: 1.72rem;
  }

  .hero-lead {
    font-size: 0.92rem;
  }

  .hero-actions .btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 10px 14px;
  }

  .hero-stage-right {
    min-height: 200px;
  }

  .hero-pal img {
    width: 78px;
  }

  .hero-pal-nico {
    right: auto;
    left: 12px;
    top: auto;
    bottom: 12px;
  }

  .hero-pal-momo {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: 12px;
    animation: none;
  }

  .hero-pal-dog {
    right: 12px;
    bottom: 12px;
  }

  .sketch-caption {
    flex-direction: column;
    gap: 2px;
  }

  .char-traits {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .char-traits dd {
    margin-bottom: 8px;
  }

  .cast-spread,
  .stamp-home-grid,
  .banner-grid,
  .app-row,
  .story-grid,
  .footer-grid,
  .spec-list {
    grid-template-columns: 1fr;
  }

  .stamp-tray,
  .char-mini-stickers {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .catalog-grid.is-emoji {
    grid-template-columns: repeat(4, 1fr);
  }

  .app-row {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pal,
  .walker img,
  .banner-stickers img,
  .parade-prop,
  .scroll-cue-arrow,
  .cinema-companion {
    animation: none !important;
  }
}

/* ============================================================
   Z軸ダイブ・シネマ（全6幕・引き算の没入画面）
   ============================================================ */

.manga-cinema {
  position: relative;
  height: 680vh;
  background: #161f3a;
}

.manga-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background: #161f3a;
}

.cinema-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  contain: layout style paint;
  background: transparent;
  will-change: opacity, transform;
}

/* Z軸ダイブ：手前の幕（小さい番号）ほど上、奥の幕（大きい番号）ほど下。
   手前の幕をくぐり抜けると、奥から次の世界が現れる。 */
.cinema-scene[data-scene="0"] { z-index: 6; }
.cinema-scene[data-scene="1"] { z-index: 5; }
.cinema-scene[data-scene="2"] { z-index: 4; }
.cinema-scene[data-scene="3"] { z-index: 3; }
.cinema-scene[data-scene="4"] { z-index: 2; }
.cinema-scene[data-scene="5"] { z-index: 1; }

.cinema-bg-wrap {
  position: absolute;
  inset: -12px;
  z-index: 0;
}

.cinema-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  backface-visibility: hidden;
}

/* 背景とキャラの2層。WebGL2 可の時は .cinema-gl が奥行き・Zダイブ・光を描画し箱は隠す */
.cinema-bg-wrap[data-depth-key] {
  container-type: size;
  overflow: hidden;
}

.cinema-stage-box {
  position: absolute;
  width: max(100cqw, 150cqh);
  height: max(100cqh, 66.6667cqw);
  left: calc((100cqw - max(100cqw, 150cqh)) * var(--obj-x, 0.5));
  top: calc((100cqh - max(100cqh, 66.6667cqw)) * var(--obj-y, 0.5));
  transform-origin: 50% 56%;
  backface-visibility: hidden;
}

.cinema-stage-box .cinema-bg {
  display: block;
  object-fit: fill;
}

.cinema-ch {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(53, 40, 31, 0.14));
  backface-visibility: hidden;
}

.cinema-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.cinema-bg-wrap.is-gl .cinema-stage-box {
  visibility: hidden;
}

/* 原画の彩度と空気感を一切濁らせない、ごく控えめな左上だけの空気ベール */
.cinema-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.scrim-meadow {
  background: radial-gradient(ellipse 46% 36% at 14% 16%, rgba(251, 247, 238, 0.58) 0%, rgba(251, 247, 238, 0) 100%);
}

.scrim-sky {
  background: radial-gradient(ellipse 46% 38% at 14% 18%, rgba(252, 248, 242, 0.62) 0%, rgba(252, 248, 242, 0) 100%);
}

.scrim-lagoon {
  background: radial-gradient(ellipse 46% 36% at 14% 16%, rgba(248, 250, 245, 0.56) 0%, rgba(248, 250, 245, 0) 100%);
}

.scrim-glacier {
  background: radial-gradient(ellipse 46% 36% at 14% 16%, rgba(242, 240, 250, 0.54) 0%, rgba(242, 240, 250, 0) 100%);
}

.scrim-sunset {
  background: radial-gradient(ellipse 46% 36% at 14% 16%, rgba(253, 236, 220, 0.54) 0%, rgba(253, 236, 220, 0) 100%);
}

.scrim-night {
  background: radial-gradient(ellipse 48% 40% at 15% 18%, rgba(14, 21, 44, 0.52) 0%, rgba(14, 21, 44, 0) 100%);
}

body.is-clean-cinema .cinema-scrim {
  opacity: 0;
}

.cinema-layer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  height: 100%;
  margin: 0 auto;
  padding: 86px 44px 92px;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

body.is-clean-cinema .cinema-layer {
  opacity: 0 !important;
  pointer-events: none !important;
}

.cinema-copy {
  position: relative;
  max-width: 560px;
  pointer-events: auto;
  will-change: transform;
}

.copy-hero {
  max-width: 560px;
}

.copy-night {
  max-width: 560px;
  color: #fdf7ea;
}

.chapter-eyebrow {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-round);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(53, 40, 31, 0.72);
}

.eyebrow-num {
  font-family: var(--font-serif);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.eyebrow-line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: rgba(53, 40, 31, 0.36);
}

.chapter-eyebrow.is-night {
  color: rgba(255, 246, 224, 0.78);
}

.chapter-eyebrow.is-night .eyebrow-num {
  color: #f9e4ad;
}

.chapter-eyebrow.is-night .eyebrow-line {
  background: rgba(255, 246, 224, 0.4);
}

.cinema-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.65rem, 2.75vw, 2.48rem);
  line-height: 1.34;
  letter-spacing: 0.04em;
  color: #2c2017;
  text-shadow: 0 2px 22px rgba(255, 252, 245, 0.88);
}

.is-night-scene .cinema-title {
  color: #fffaf0;
  text-shadow: 0 3px 26px rgba(8, 13, 30, 0.82);
}

.cinema-lead {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: clamp(0.86rem, 1vw, 0.94rem);
  line-height: 1.78;
  letter-spacing: 0.02em;
  color: rgba(48, 36, 27, 0.86);
  text-shadow: 0 1px 16px rgba(255, 252, 245, 0.92);
}

.is-night-scene .cinema-lead {
  color: rgba(255, 248, 234, 0.88);
  text-shadow: 0 2px 18px rgba(8, 13, 30, 0.86);
}

.cinema-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cinema-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(53, 40, 31, 0.24);
  background: rgba(255, 252, 246, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-round);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(45, 32, 22, 0.08);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.cinema-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 252, 246, 0.92);
  border-color: rgba(53, 40, 31, 0.45);
  box-shadow: 0 10px 26px rgba(45, 32, 22, 0.14);
}

.cinema-btn-primary {
  background: rgba(53, 40, 31, 0.86);
  border-color: rgba(53, 40, 31, 0.9);
  color: #fffaf0;
}

.cinema-btn-primary:hover {
  background: rgba(53, 40, 31, 0.98);
  color: #fffdf8;
}

.cinema-btn-warm {
  background: rgba(235, 189, 85, 0.9);
  border-color: rgba(255, 236, 176, 0.72);
  color: #2b2017;
}

.cinema-btn-warm:hover {
  background: rgba(242, 198, 98, 0.98);
}

.cinema-btn-night-ghost {
  background: rgba(255, 250, 238, 0.12);
  border-color: rgba(255, 246, 214, 0.36);
  color: #fff8ea;
}

.cinema-btn-night-ghost:hover {
  background: rgba(255, 250, 238, 0.22);
  border-color: rgba(255, 246, 214, 0.65);
}

/* 各幕の右下にそっと寄り添う「寄り道の原画」栞（絵を邪魔せず押せば拡大） */
.scene-aside-card {
  position: absolute;
  right: 40px;
  bottom: 84px;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 14px;
  border: 1px solid rgba(53, 40, 31, 0.16);
  background: rgba(255, 252, 246, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(40, 28, 18, 0.1);
  text-align: left;
  color: var(--ink);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.scene-aside-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 252, 246, 0.9);
  border-color: rgba(53, 40, 31, 0.34);
  box-shadow: 0 12px 30px rgba(40, 28, 18, 0.16);
}

.scene-aside-card img {
  width: 54px;
  height: 40px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(53, 40, 31, 0.16);
  flex-shrink: 0;
}

.scene-aside-card span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.scene-aside-card em {
  font-style: normal;
  font-family: var(--font-round);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: rgba(53, 40, 31, 0.62);
}

.scene-aside-card b {
  font-family: var(--font-round);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.scene-aside-card.is-night {
  background: rgba(20, 30, 58, 0.58);
  border-color: rgba(255, 246, 214, 0.22);
  color: #fff8ea;
}

.scene-aside-card.is-night:hover {
  background: rgba(24, 36, 68, 0.82);
  border-color: rgba(255, 246, 214, 0.45);
}

.scene-aside-card.is-night em {
  color: rgba(255, 246, 214, 0.68);
}

.scene-aside-card.is-night img {
  border-color: rgba(255, 246, 214, 0.3);
}

/* ---------- 空間粒子キャンバス・微細ビネット・スクロール案内・極細シネマバー ---------- */

#atmosphereCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

.cinema-vignette {
  position: absolute;
  inset: 0;
  z-index: 22;
  pointer-events: none;
  background: radial-gradient(ellipse 84% 78% at 50% 50%, rgba(255, 250, 240, 0) 64%, rgba(36, 26, 18, 0.16) 100%);
}

.scroll-cue {
  position: absolute;
  left: 44px;
  bottom: 24px;
  z-index: 38;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-round);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(45, 33, 24, 0.78);
  text-shadow: 0 1px 12px rgba(255, 252, 245, 0.94);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.is-clean-cinema .scroll-cue {
  opacity: 0 !important;
}

.scroll-cue-line {
  display: block;
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, rgba(53, 40, 31, 0.62), rgba(53, 40, 31, 0));
  animation: cueDrift 1.8s ease-in-out infinite;
}

@keyframes cueDrift {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(5px); opacity: 0.35; }
}

.cinema-dock {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 44;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.56);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(53, 40, 31, 0.15);
  box-shadow: 0 12px 32px rgba(34, 24, 18, 0.12);
  max-width: calc(100% - 20px);
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, opacity 0.4s ease;
}

body.is-clean-cinema .cinema-dock:not(:hover) {
  opacity: 0.24;
}

.cinema-dock.is-night {
  background: rgba(16, 24, 48, 0.56);
  border-color: rgba(255, 246, 214, 0.22);
  color: #fff6e2;
  box-shadow: 0 14px 36px rgba(4, 8, 22, 0.36);
}

.dock-chapters {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px 5px;
}

.dock-rail {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(53, 40, 31, 0.14);
  overflow: hidden;
}

.cinema-dock.is-night .dock-rail {
  background: rgba(255, 246, 214, 0.18);
}

.dock-rail-fill {
  height: 100%;
  width: 0%;
  background: var(--ink);
  border-radius: 999px;
  transition: background 0.35s ease;
}

.cinema-dock.is-night .dock-rail-fill {
  background: #f4d37e;
}

.dock-dot {
  border: 0;
  background: transparent;
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-round);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(53, 40, 31, 0.65);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.dock-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  transition: transform 0.22s ease, opacity 0.22s ease, background 0.22s ease;
}

.cinema-dock.is-night .dock-dot {
  color: rgba(255, 246, 224, 0.66);
}

.dock-dot em {
  font-style: normal;
}

.dock-dot:hover {
  background: rgba(53, 40, 31, 0.07);
  color: var(--ink);
}

.cinema-dock.is-night .dock-dot:hover {
  background: rgba(255, 246, 224, 0.1);
  color: #fffaf0;
}

.dock-dot.is-active {
  background: rgba(53, 40, 31, 0.88);
  color: #fffaf0;
}

.dock-dot.is-active .dock-pip {
  opacity: 1;
  transform: scale(1.25);
  background: #f4d37e;
}

.cinema-dock.is-night .dock-dot.is-active {
  background: rgba(255, 246, 214, 0.22);
  color: #fffaf0;
}

.cinema-dock.is-night .dock-dot.is-active .dock-pip {
  background: #f4d37e;
}

.dock-arrow,
.dock-action {
  border: 1px solid rgba(53, 40, 31, 0.15);
  background: rgba(255, 253, 248, 0.56);
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 0.74rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dock-arrow:hover,
.dock-action:hover {
  background: rgba(255, 253, 248, 0.9);
  border-color: rgba(53, 40, 31, 0.32);
}

.dock-arrow {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 0.96rem;
  line-height: 1;
}

.dock-action {
  padding: 5px 10px;
  white-space: nowrap;
}

.dock-action[aria-pressed="true"] {
  background: rgba(53, 40, 31, 0.88);
  border-color: rgba(53, 40, 31, 0.9);
  color: #fffaf2;
}

.cinema-dock.is-night .dock-arrow,
.cinema-dock.is-night .dock-action {
  background: rgba(255, 250, 238, 0.1);
  border-color: rgba(255, 246, 214, 0.24);
  color: #fff8ea;
}

.cinema-dock.is-night .dock-arrow:hover,
.cinema-dock.is-night .dock-action:hover {
  background: rgba(255, 250, 238, 0.2);
}

.cinema-dock.is-night .dock-action[aria-pressed="true"] {
  background: rgba(244, 211, 126, 0.9);
  border-color: rgba(244, 211, 126, 0.95);
  color: #1f1912;
}

.dock-sep {
  width: 1px;
  height: 18px;
  background: rgba(53, 40, 31, 0.16);
  margin-inline: 2px;
}

.cinema-dock.is-night .dock-sep {
  background: rgba(255, 246, 214, 0.22);
}

/* ---------- 星空からアトリエへの波状地平線ブリッジ ---------- */

.atelier-bridge {
  position: relative;
  height: 76px;
  margin-top: -2px;
  background: var(--paper);
  overflow: hidden;
}

.atelier-bridge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bridge-night {
  fill: #161f3a;
}

/* ---------- シネマのレスポンシブ調整 ---------- */

@media (max-width: 1080px) {
  .dock-dot em {
    display: none;
  }
  .dock-dot {
    padding: 5px 8px;
  }
}

@media (max-width: 860px) {
  body.has-cinema .site-header .sound-btn {
    display: none;
  }

  .manga-cinema {
    height: 600svh;
  }

  .cinema-layer {
    width: 100%;
    max-width: 100%;
    padding: 86px 18px 80px;
  }

  .cinema-copy {
    max-width: 100%;
  }

  .cinema-title {
    font-size: clamp(1.38rem, 6vw, 1.88rem);
    margin-bottom: 6px;
  }

  .cinema-lead {
    font-size: 0.82rem;
    line-height: 1.62;
    margin-bottom: 12px;
  }

  .cinema-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .scene-aside-card {
    right: 14px;
    bottom: 66px;
    padding: 4px 10px 4px 4px;
    gap: 8px;
  }

  .scene-aside-card img {
    width: 44px;
    height: 32px;
  }

  .scene-aside-card b {
    font-size: 0.72rem;
  }

  .scroll-cue {
    display: none;
  }

  .cinema-dock {
    bottom: 12px;
    padding: 5px 7px;
    gap: 3px;
    max-width: calc(100% - 14px);
  }

  .dock-chapters {
    gap: 1px;
    padding: 0 2px 4px;
  }

  .dock-arrow {
    width: 24px;
    height: 24px;
    font-size: 0.86rem;
  }

  .dock-dot {
    padding: 5px 6px;
  }

  .dock-action {
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  .dock-skip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-line,
  .sound-btn[aria-pressed="true"] .sound-eq i {
    animation: none;
  }
}

/* ============================================================
   後半アトリエ：水彩風景壁紙・すりガラス原画カード・星空フッター
   前半の引き算シネマとトーンを合わせ、1つの絵本世界としてつなぐ
   ============================================================ */

.atelier-bridge {
  height: 86px;
  background: #edf0e3;
}

.bridge-mist {
  fill: #edf0e3;
}

/* 草原のおさんぽ道（水彩背景つき） */
.parade-strip.is-scenic-parade {
  margin: 0;
  height: 132px;
  border-top: 0;
  border-bottom: 0;
  background: #e8ecd9;
}

.parade-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.parade-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
  opacity: 0.56;
  filter: saturate(0.95);
}

.parade-hill {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(237, 240, 227, 0.92) 0%, rgba(237, 240, 227, 0.25) 38%, rgba(203, 214, 162, 0.32) 78%, rgba(246, 242, 230, 0.94) 100%);
}

.parade-strip.is-scenic-parade .parade-ground,
.parade-strip.is-scenic-parade .parade-prop,
.parade-strip.is-scenic-parade .parade-track {
  z-index: 2;
}

.parade-strip.is-scenic-parade .parade-ground {
  bottom: 16px;
  background: repeating-linear-gradient(
    90deg,
    rgba(62, 54, 38, 0.22) 0 12px,
    transparent 12px 26px
  );
}

/* 水彩壁紙セクション共通 */
.section-scenic {
  position: relative;
  overflow: hidden;
  padding: 84px 0;
  border-top: 0;
}

.scenic-backdrop {
  position: absolute;
  inset: -12px;
  z-index: 0;
  pointer-events: none;
}

.scenic-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  filter: saturate(0.96);
}

.scenic-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scenic-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scenic-content {
  position: relative;
  z-index: 2;
}

/* 各章の水彩ベールと光の設計 */
.scene-meadow {
  background: #f5f1e4;
}

.scene-meadow .scenic-backdrop img {
  object-position: center 60%;
  opacity: 0.48;
}

.scene-meadow .scenic-veil {
  background: linear-gradient(
    180deg,
    rgba(246, 242, 230, 0.94) 0%,
    rgba(249, 245, 235, 0.56) 24%,
    rgba(247, 244, 234, 0.48) 72%,
    rgba(239, 245, 249, 0.94) 100%
  );
}

.scene-meadow .scenic-glow {
  background:
    radial-gradient(ellipse 56% 42% at 14% 18%, rgba(255, 248, 214, 0.65) 0%, transparent 72%),
    radial-gradient(ellipse 46% 38% at 88% 82%, rgba(196, 212, 152, 0.32) 0%, transparent 72%);
}

.scene-sky {
  background: #eef4f8;
}

.scene-sky .scenic-backdrop img {
  object-position: center 46%;
  opacity: 0.50;
}

.scene-sky .scenic-veil {
  background: linear-gradient(
    180deg,
    rgba(239, 245, 249, 0.94) 0%,
    rgba(242, 247, 251, 0.52) 24%,
    rgba(244, 247, 250, 0.48) 74%,
    rgba(251, 242, 232, 0.94) 100%
  );
}

.scene-sky .scenic-glow {
  background:
    radial-gradient(ellipse 50% 42% at 84% 16%, rgba(255, 224, 228, 0.46) 0%, transparent 70%),
    radial-gradient(ellipse 52% 40% at 16% 84%, rgba(182, 218, 238, 0.36) 0%, transparent 72%);
}

.scene-sunset {
  background: #f9efe3;
}

.scene-sunset .scenic-backdrop img {
  object-position: center 54%;
  opacity: 0.46;
}

.scene-sunset .scenic-veil {
  background: linear-gradient(
    180deg,
    rgba(251, 242, 232, 0.94) 0%,
    rgba(252, 243, 232, 0.52) 24%,
    rgba(250, 238, 226, 0.48) 74%,
    rgba(241, 237, 246, 0.94) 100%
  );
}

.scene-sunset .scenic-glow {
  background:
    radial-gradient(ellipse 55% 44% at 78% 22%, rgba(255, 211, 154, 0.48) 0%, transparent 72%),
    radial-gradient(ellipse 46% 36% at 18% 82%, rgba(242, 182, 166, 0.30) 0%, transparent 72%);
}

.scene-twilight {
  background: #f0ecf5;
}

.scene-twilight .scenic-backdrop img {
  object-position: center 55%;
  opacity: 0.46;
}

.scene-twilight .scenic-veil {
  background: linear-gradient(
    180deg,
    rgba(241, 237, 246, 0.94) 0%,
    rgba(242, 238, 248, 0.52) 24%,
    rgba(233, 229, 242, 0.46) 76%,
    rgba(22, 29, 52, 0.22) 100%
  );
}

.scene-twilight .scenic-glow {
  background:
    radial-gradient(ellipse 54% 44% at 20% 24%, rgba(206, 226, 248, 0.48) 0%, transparent 70%),
    radial-gradient(ellipse 48% 40% at 86% 74%, rgba(235, 198, 224, 0.38) 0%, transparent 72%);
}

/* サブページ（stamps / world）の水彩バナー */
.page-banner.is-scenic-banner {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(53, 40, 31, 0.10);
  padding: 52px 0 42px;
}

.page-banner.is-scenic-banner .scenic-backdrop img {
  opacity: 0.46;
  object-position: center 48%;
}

.page-banner.is-scenic-banner .scenic-veil {
  background: linear-gradient(
    180deg,
    rgba(245, 248, 251, 0.72) 0%,
    rgba(246, 242, 232, 0.56) 60%,
    rgba(246, 240, 228, 0.96) 100%
  );
}

.page-banner.is-sunset-banner .scenic-veil {
  background: linear-gradient(
    180deg,
    rgba(252, 243, 232, 0.70) 0%,
    rgba(250, 241, 229, 0.56) 60%,
    rgba(246, 240, 228, 0.96) 100%
  );
}

/* 編集的な見出し・アイブロウ（前半シネマと統一） */
.section-eyebrow {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-family: var(--font-sans);
}

.section-eyebrow i {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(53, 40, 31, 0.34);
}

.section-title.is-serif,
.hero-title.is-serif,
.app-name.is-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-scenic .section-title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.section-scenic .section-sub {
  color: rgba(53, 40, 31, 0.78);
}

/* やわらかなボタン表現（後半アトリエ用） */
.btn.is-soft {
  border-width: 1.5px;
  border-color: rgba(53, 40, 31, 0.24);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(53, 40, 31, 0.10);
  backdrop-filter: blur(8px);
}

.btn.btn-paper.is-soft {
  background: rgba(255, 252, 246, 0.84);
}

.btn.btn-mustard.is-soft {
  background: rgba(235, 189, 85, 0.92);
  border-color: rgba(162, 118, 32, 0.35);
}

.btn.is-soft:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(53, 40, 31, 0.15);
}

/* なかまたち：マット額装＆すりガラス和紙パネル */
.sketch-frame.is-matted {
  background: rgba(255, 252, 246, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(53, 40, 31, 0.14);
  border-radius: 22px;
  padding: 16px 16px 14px;
  box-shadow:
    0 22px 48px rgba(53, 40, 31, 0.12),
    0 2px 6px rgba(53, 40, 31, 0.05);
}

.sketch-zoom-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 13px;
  overflow: hidden;
  cursor: zoom-in;
}

.sketch-zoom-btn img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 13px;
  border: 1px solid rgba(53, 40, 31, 0.08);
}

.sketch-zoom-btn:hover img {
  transform: scale(1.025);
}

.section-scenic .char-tab {
  border: 1.5px solid rgba(53, 40, 31, 0.14);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.76);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px rgba(53, 40, 31, 0.06);
}

.section-scenic .char-tab.is-active {
  border-color: rgba(180, 128, 42, 0.5);
  background: rgba(251, 236, 198, 0.94);
  box-shadow: 0 10px 22px rgba(176, 128, 46, 0.18);
}

.char-panel.is-vellum {
  position: relative;
  overflow: hidden;
  background: rgba(255, 252, 246, 0.86);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(53, 40, 31, 0.14);
  border-radius: 22px;
  padding: 26px 26px 24px;
  box-shadow:
    0 22px 48px rgba(53, 40, 31, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: background 0.35s ease;
}

.char-panel.is-vellum::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.75;
  transition: background 0.45s ease;
}

.char-panel.is-vellum[data-char-mood="nico"]::before {
  background: radial-gradient(circle at 92% 8%, rgba(194, 206, 152, 0.36) 0%, transparent 56%);
}

.char-panel.is-vellum[data-char-mood="momo"]::before {
  background: radial-gradient(circle at 92% 8%, rgba(235, 189, 85, 0.34) 0%, transparent 56%);
}

.char-panel.is-vellum[data-char-mood="dog"]::before {
  background: radial-gradient(circle at 92% 8%, rgba(229, 150, 156, 0.30) 0%, transparent 56%);
}

.char-panel.is-vellum > * {
  position: relative;
  z-index: 1;
}

.section-scenic .mini-sticker-btn {
  border: 1px solid rgba(53, 40, 31, 0.12);
  background: rgba(255, 253, 248, 0.82);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(53, 40, 31, 0.05);
}

.section-scenic .mini-sticker-btn:hover {
  border-color: rgba(53, 40, 31, 0.32);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(53, 40, 31, 0.10);
}

/* LINEスタンプセクション：空色すりガラスタイル＆柔らかいトーク枠 */
.section-scenic .stamp-tile {
  border: 1px solid rgba(53, 40, 31, 0.12);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.84);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(48, 66, 88, 0.08);
}

.section-scenic .stamp-tile:hover {
  border-color: rgba(53, 40, 31, 0.28);
  background: rgba(255, 254, 251, 0.96);
  box-shadow: 0 16px 32px rgba(48, 66, 88, 0.14);
}

.section-scenic .emoji-strip {
  border: 1px solid rgba(53, 40, 31, 0.12);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.80);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(48, 66, 88, 0.07);
}

.talk-box.is-soft-frame {
  border: 1.5px solid rgba(53, 40, 31, 0.18);
  border-radius: 22px;
  box-shadow: 0 24px 52px rgba(40, 62, 88, 0.16);
}

.talk-box.is-soft-frame .talk-top {
  background: rgba(255, 252, 246, 0.94);
  border-bottom: 1px solid rgba(53, 40, 31, 0.12);
}

.talk-box.is-soft-frame .talk-compose {
  background: rgba(255, 252, 246, 0.94);
  border-top: 1px solid rgba(53, 40, 31, 0.12);
}

/* ものがたり：編集的ベントーグリッド（上段2枚大判＋下段3枚） */
.story-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.story-bento .story-card {
  grid-column: span 2;
  background: rgba(255, 252, 247, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(53, 40, 31, 0.14);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(84, 52, 34, 0.10);
}

.story-bento .story-card.is-featured {
  grid-column: span 3;
}

.story-bento .story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 52px rgba(84, 52, 34, 0.16);
}

.story-bento .story-thumb {
  border-bottom: 1px solid rgba(53, 40, 31, 0.08);
  aspect-ratio: 16 / 10;
}

.story-bento .story-card.is-featured .story-thumb {
  aspect-ratio: 16 / 9.4;
}

.story-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(235, 189, 85, 0.26);
  color: #7c541c;
  font-family: var(--font-round);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.app-row.is-vellum-row {
  background: rgba(255, 252, 246, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(53, 40, 31, 0.14);
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(53, 40, 31, 0.11);
}

/* 旅の風景・壁紙ギャラリー（ライブ切替パノラマ窓） */
.wallpaper-showcase {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wallpaper-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.8;
  min-height: 360px;
  max-height: 540px;
  border-radius: 24px;
  overflow: hidden;
  background: #202438;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 28px 64px rgba(34, 28, 52, 0.22),
    0 4px 12px rgba(34, 28, 52, 0.08);
}

.wallpaper-stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transition: opacity 0.28s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.wallpaper-stage-img.is-fading {
  opacity: 0.25;
  transform: scale(1.02);
}

.wallpaper-stage-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(22, 26, 44, 0.04) 0%,
    rgba(22, 26, 44, 0.06) 44%,
    rgba(18, 22, 38, 0.72) 100%
  );
}

.wallpaper-stage-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: #fbf7ee;
}

.wallpaper-badge {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(255, 240, 200, 0.86);
}

.wallpaper-stage-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(1.32rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fffdf8;
  text-shadow: 0 2px 16px rgba(10, 14, 28, 0.45);
}

.wallpaper-stage-desc {
  margin: 0;
  max-width: 520px;
  font-size: 0.9rem;
  line-height: 1.68;
  color: rgba(251, 247, 238, 0.88);
}

.wallpaper-stage-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wallpaper-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.wallpaper-thumb {
  border: 1.5px solid rgba(53, 40, 31, 0.14);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.84);
  backdrop-filter: blur(10px);
  padding: 6px 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(40, 34, 62, 0.08);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, box-shadow 0.2s;
}

.wallpaper-thumb:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 40, 31, 0.34);
  box-shadow: 0 14px 26px rgba(40, 34, 62, 0.14);
}

.wallpaper-thumb.is-active {
  border-color: #c9863a;
  background: rgba(255, 251, 240, 0.98);
  box-shadow: 0 12px 26px rgba(196, 134, 58, 0.22);
}

.wallpaper-thumb-pic {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-deep);
}

.wallpaper-thumb-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.wallpaper-thumb:hover .wallpaper-thumb-pic img {
  transform: scale(1.06);
}

.wallpaper-thumb-name {
  font-family: var(--font-round);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

/* ライトボックスアクション */
.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* 星空キャンプの水彩フッター */
.site-footer.is-starry {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  border-top: 0;
  padding: 58px 0 40px;
  background: #141a31;
  color: #f4eee2;
}

.footer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.footer-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  opacity: 0.42;
}

.footer-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 52% at 50% 108%, rgba(235, 166, 82, 0.26) 0%, transparent 70%),
    linear-gradient(180deg, rgba(18, 24, 46, 0.76) 0%, rgba(14, 19, 38, 0.92) 100%);
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-grid.is-three {
  grid-template-columns: 1.65fr 1fr 1fr;
}

.brand.is-light {
  color: #fffaf0;
}

.brand.is-light .brand-mark {
  border-color: rgba(255, 248, 232, 0.45);
  background: rgba(255, 250, 240, 0.92);
}

.footer-lead {
  margin: 8px 0 0;
  max-width: 380px;
  font-size: 0.86rem;
  line-height: 1.75;
  color: rgba(244, 238, 226, 0.78);
}

.site-footer.is-starry .footer-col b {
  color: #fce9c4;
}

.site-footer.is-starry .footer-col a {
  color: rgba(244, 238, 226, 0.8);
}

.site-footer.is-starry .footer-col a:hover {
  color: #fffdf8;
}

.site-footer.is-starry .footer-copy {
  border-top-color: rgba(255, 248, 232, 0.16);
  color: rgba(244, 238, 226, 0.68);
}

.site-footer.is-starry .footer-copy a {
  color: rgba(255, 246, 224, 0.86);
  text-decoration: none;
}

.site-footer.is-starry .footer-copy a:hover {
  text-decoration: underline;
}

/* 後半アトリエのレスポンシブ調整 */
@media (max-width: 960px) {
  .wallpaper-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .section-scenic {
    padding: 56px 0;
  }

  .story-bento {
    grid-template-columns: 1fr;
  }

  .story-bento .story-card,
  .story-bento .story-card.is-featured {
    grid-column: span 1;
  }

  .wallpaper-stage {
    aspect-ratio: 4 / 3.4;
    min-height: 300px;
  }

  .wallpaper-stage-overlay {
    padding: 18px 16px;
    gap: 12px;
  }

  .wallpaper-thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .footer-grid.is-three {
    grid-template-columns: 1fr;
  }

  .lightbox-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .talk-compose {
    flex-wrap: wrap;
  }

  .talk-compose .btn {
    flex-shrink: 0;
  }
}

.btn.btn-primary.is-soft {
  background: var(--terracotta);
  border-color: rgba(124, 46, 28, 0.34);
  color: #fffaf2;
}

.btn.btn-primary.is-soft:hover {
  background: #b8583c;
}

.btn.is-disabled {
  background: var(--paper-deep);
  border-color: var(--ink-line);
  color: var(--ink-soft);
  box-shadow: none;
  pointer-events: none;
  cursor: default;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mini-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(235, 189, 85, 0.28);
  border: 1px solid rgba(180, 128, 42, 0.32);
  color: #7c541c;
  font-family: var(--font-round);
  font-size: 0.72rem;
  font-weight: 700;
}

.banner-status-note {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.status-tag.is-live {
  background: var(--meadow-soft);
  border-color: rgba(84, 110, 56, 0.45);
  color: #2f4620;
}

.status-tag.is-pending {
  background: var(--mustard-soft);
  border-color: rgba(176, 128, 42, 0.45);
  color: #704b14;
}

body.is-atelier-preview .site-header {
  position: sticky;
  transition: none;
}
