/* ========== Tokens ========== */
:root {
  /* ----------------------------------------
     タイトルロゴの微調整（基本はここだけ変更）
     ・scale … 大きさ（1=100%, 1.5=150%）
     ・shift-x … 左右（負で左、正で右／ロゴ幅に対する%）
     ・shift-y … 上下（負で上、正で下／ロゴ高さに対する%）
     ・left / top … 合成枠内の基準位置
     ・width / max-width … 基準サイズ（scale前）
     ---------------------------------------- */
  --hero-logo-scale: 1.5;
  --hero-logo-shift-x: -20.0%;
  --hero-logo-shift-y: -52%;
  --hero-logo-left: 0%;
  --hero-logo-top: 50%;
  --hero-logo-width: 48%;
  --hero-logo-max-width: 560px;

  --pink-50: #fff7fb;
  --pink-100: #ffe6f1;
  --pink-200: #ffc2dc;
  --pink-300: #ff8fc0;
  --pink-400: #ff5aa5;
  --pink-500: #ff2d8a;
  --cyan: #3ad7ff;
  --cyan-soft: #b8f0ff;
  --gold: #ffd24a;
  --vermilion: #ff4d4d;
  --ink: #2b1a28;
  --ink-soft: #5c4560;
  --paper: #fffafc;
  --line: rgba(255, 45, 138, 0.28);
  --radius: 16px;
  --font-pop: "Mochiy Pop One", "Kaisei Decol", sans-serif;
  --font-display: "Kaisei Decol", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --shadow-pop: 0 12px 28px rgba(255, 45, 138, 0.2);
  --max: 1120px;
  --header-h: 64px;
}

/* ========== Reset / Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.75;
  background:
    radial-gradient(ellipse 60% 45% at 8% 8%, rgba(255, 143, 192, 0.45), transparent 60%),
    radial-gradient(ellipse 55% 40% at 92% 12%, rgba(58, 215, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(255, 210, 74, 0.25), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--pink-50) 35%, #f3fbff 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--pink-500);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--vermilion);
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

/* 和風：青海波パターン（薄い） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cpath d='M0 40c10 0 20-10 20-20S10 0 0 0' fill='none' stroke='%23ff8fc0' stroke-width='1.5'/%3E%3Cpath d='M20 40c10 0 20-10 20-20S30 0 20 0' fill='none' stroke='%23ff8fc0' stroke-width='1.5'/%3E%3Cpath d='M40 40c10 0 20-10 20-20S50 0 40 0' fill='none' stroke='%23ff8fc0' stroke-width='1.5'/%3E%3Cpath d='M60 40c10 0 20-10 20-20S70 0 60 0' fill='none' stroke='%23ff8fc0' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 80px 40px;
}

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

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  height: auto;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 3px double var(--pink-300);
}

.site-brand {
  font-family: var(--font-pop);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  line-height: 1.35;
  color: var(--pink-500);
  text-decoration: none;
  letter-spacing: 0.02em;
  max-width: min(100%, 28em);
  background: linear-gradient(90deg, #ff2d8a, #ff6bb5 45%, #3ad7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(2px 2px 0 #fff) drop-shadow(3px 3px 0 rgba(255, 45, 138, 0.28));
}

.site-brand:hover {
  filter: drop-shadow(2px 2px 0 #fff) drop-shadow(3px 3px 0 rgba(255, 77, 77, 0.35));
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
}

.site-nav a {
  font-family: var(--font-pop);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #ff5aa5;
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  /* 基本は明るいピンク */
  background: #fff5fa;
  border: 2px solid #ffb3d4;
  border-radius: 999px;
  box-shadow: 2px 2px 0 #ffd6e8;
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #e0187a;
  /* 明るい地の上に、うっすら濃いピンクを重ねる */
  background:
    linear-gradient(rgba(201, 24, 106, 0.14), rgba(201, 24, 106, 0.14)),
    #fff5fa;
  border-color: #ff8fc0;
  transform: translateY(-2px);
  outline: none;
  box-shadow: 2px 3px 0 #ffc2dc;
}

.site-nav a:active {
  color: #c9186a;
  background:
    linear-gradient(rgba(201, 24, 106, 0.2), rgba(201, 24, 106, 0.2)),
    #fff5fa;
  transform: translateY(0);
}

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

/* ========== Hero ========== */
.hero {
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse 55% 60% at 12% 20%, rgba(255, 158, 200, 0.5), transparent 60%),
    radial-gradient(ellipse 50% 55% at 88% 30%, rgba(130, 220, 255, 0.45), transparent 58%),
    radial-gradient(ellipse 45% 50% at 70% 85%, rgba(255, 220, 120, 0.4), transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #fff0f7 50%, #eef9ff 100%);
}

.hero-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  width: min(100% - 2rem, 1200px);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  box-sizing: border-box;
}

/* ロゴ＋ビジュアルを1枚のキービジュアルとして見せる */
.hero-composite {
  position: relative;
  width: 100%;
  aspect-ratio: 2400 / 1440;
  border-radius: clamp(12px, 2vw, 24px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 60% at 20% 50%, #fff7fb, transparent 70%),
    linear-gradient(120deg, #ffffff 0%, #ffeef7 40%, #eef9ff 100%);
  border: 3px solid #fff;
  box-shadow:
    0 0 0 2px var(--pink-200),
    0 16px 40px rgba(255, 45, 138, 0.16);
  animation: hero-in 1s ease-out both;
}

.hero-visual {
  position: absolute;
  inset: 0;
  margin: 0;
  display: block;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-title {
  position: absolute;
  left: var(--hero-logo-left);
  top: var(--hero-logo-top);
  z-index: 2;
  width: var(--hero-logo-width);
  max-width: var(--hero-logo-max-width);
  margin: 0;
  pointer-events: none;
  transform: translate(var(--hero-logo-shift-x), var(--hero-logo-shift-y)) scale(var(--hero-logo-scale));
  transform-origin: left center;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(255, 80, 160, 0.35));
  animation: logo-float 4.5s ease-in-out infinite;
}

.hero-meta {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  animation: copy-in 0.85s 0.12s ease-out both;
}

.hero-lead {
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  font-weight: 700;
  color: var(--ink);
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--pink-200);
  border-radius: 12px;
  border-left: 6px solid var(--pink-400);
  box-sizing: border-box;
  text-align: left;
}

.hero-date {
  font-family: var(--font-pop);
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  color: var(--ink);
  margin: 0;
  padding: 1.5rem 2.6rem;
  background: #fff;
  border: 3px solid var(--gold);
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--cyan-soft);
  line-height: 1.2;
}

.hero-date time {
  color: var(--pink-500);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.hero-actions .btn {
  max-width: 100%;
  padding: 1.5rem 2.6rem;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  border-radius: 16px;
  border-width: 3px;
}

.wa-cloud--hero {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 48px;
  z-index: 3;
  background:
    radial-gradient(ellipse 40px 28px at 10% 100%, #fff 70%, transparent 71%),
    radial-gradient(ellipse 55px 34px at 28% 100%, #fff 70%, transparent 71%),
    radial-gradient(ellipse 48px 30px at 48% 100%, #fff 70%, transparent 71%),
    radial-gradient(ellipse 60px 36px at 70% 100%, #fff 70%, transparent 71%),
    radial-gradient(ellipse 50px 32px at 90% 100%, #fff 70%, transparent 71%),
    linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
  pointer-events: none;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  font-family: var(--font-pop);
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #ff6bb5, var(--pink-500) 50%, #ff4d9a);
  border-color: #fff;
  box-shadow:
    0 4px 0 #c9186a,
    var(--shadow-pop);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  animation: pulse-soft 2.8s ease-in-out infinite;
}

.btn--primary:hover {
  color: #fff;
}

.btn--ghost {
  color: var(--pink-500);
  background: #fff;
  border-color: var(--pink-300);
  box-shadow: 0 3px 0 var(--pink-200);
}

.btn--ghost:hover {
  color: var(--vermilion);
  border-color: var(--vermilion);
}

.btn--large {
  padding: 1.05rem 2.1rem;
  font-size: 1.1rem;
}

/* ========== Sections common ========== */
.section {
  padding: clamp(3.2rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-pop);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 0.35rem;
  text-shadow: 1px 1px 0 #fff;
}

.section-title {
  font-family: var(--font-pop);
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  color: var(--pink-500);
  display: inline-block;
  margin-bottom: 0.55rem;
  padding-bottom: 0.4rem;
  background: linear-gradient(90deg, var(--pink-500), #ff7ad0 40%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(2px 2px 0 #fff) drop-shadow(3px 3px 0 rgba(255, 45, 138, 0.25));
  border-bottom: 4px double var(--gold);
}

.section-lead {
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0.9rem 0 1.6rem;
  max-width: 40em;
}

.section-hint {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pink-500);
  background: var(--pink-100);
  border-radius: 999px;
  border: 1px solid var(--pink-200);
}

/* 和風額縁 */
.wa-frame {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid var(--pink-300);
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 4px #fff,
    inset 0 0 0 7px var(--gold),
    var(--shadow-pop);
}

/* ========== PV ========== */
.pv {
  background: linear-gradient(180deg, #fff, #fff5fa 50%, #eef9ff);
}

.pv-player {
  padding: 0.85rem;
  max-width: 920px;
  margin: 0 auto;
}

.pv-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
  background: #1a1220;
  object-fit: contain;
}

.pv-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

.pv-note code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  color: var(--pink-500);
  background: var(--pink-50);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

/* ========== Story ========== */
.story {
  background:
    linear-gradient(180deg, #fff, #fff5fa 60%, #eef9ff);
}

.story-body {
  padding: 1.4rem 1.5rem;
  max-width: min(100%, 1040px);
  width: 100%;
}

.story-body p + p {
  margin-top: 1rem;
}

/* ========== Characters ========== */
.characters {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 210, 74, 0.2), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(58, 215, 255, 0.18), transparent 42%),
    linear-gradient(180deg, #fff7fb, #fff);
}

.chara-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.chara-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: #fff;
  border: 3px solid var(--pink-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 4px 4px 0 rgba(255, 143, 192, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.chara-card:hover,
.chara-card:focus-visible {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 6px 8px 0 rgba(255, 45, 138, 0.28);
  border-color: var(--pink-400);
  outline: none;
}

.chara-card:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.chara-card--lead {
  border-color: var(--pink-400);
  background: linear-gradient(180deg, #fff, var(--pink-50));
}

.chara-card__thumb {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  background:
    radial-gradient(circle at 50% 40%, #fff 0%, transparent 55%),
    linear-gradient(160deg, var(--pink-100), var(--cyan-soft) 55%, #ffe9a8);
  border-bottom: 3px dashed var(--pink-200);
}

.chara-card__thumb img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(43, 26, 40, 0.18));
  transform-origin: center bottom;
  will-change: transform;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .chara-card:hover .chara-card__thumb img,
  .chara-card:focus-visible .chara-card__thumb img {
    animation: sd-wiggle 0.55s ease-in-out 1;
  }
}

.chara-card__body {
  padding: 0.85rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.chara-card__role {
  font-family: var(--font-pop);
  font-size: 0.72rem;
  color: #fff;
  align-self: flex-start;
  padding: 0.15rem 0.55rem;
  background: linear-gradient(90deg, var(--gold), #ffb347);
  border-radius: 999px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.chara-card--lead .chara-card__role {
  background: linear-gradient(90deg, var(--pink-500), #ff7ad0);
}

.chara-card__name {
  font-family: var(--font-pop);
  font-size: 1.15rem;
  color: var(--pink-500);
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 var(--pink-100);
  line-height: 1.35;
}

.chara-card__name ruby {
  ruby-align: center;
}

.chara-card__name rt {
  font-family: var(--font-body);
  font-size: 0.48em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--pink-500);
  text-shadow: none;
}

/* ========== Character modal ========== */
.chara-modal {
  padding: 0;
  border: none;
  background: transparent;
  max-width: min(920px, 94vw);
  width: 100%;
}

.chara-modal::backdrop {
  background: rgba(43, 26, 40, 0.72);
  backdrop-filter: blur(4px);
}

.chara-modal__panel {
  background: #fff;
  border: 3px solid var(--pink-300);
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 4px #fff,
    inset 0 0 0 7px var(--gold),
    0 20px 50px rgba(43, 26, 40, 0.35);
  overflow: hidden;
}

.chara-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(90deg, var(--pink-100), #eef9ff);
  border-bottom: 3px double var(--pink-300);
}

.chara-modal__title {
  font-family: var(--font-pop);
  font-size: 1.25rem;
  color: var(--pink-500);
  text-shadow: 1px 1px 0 #fff;
}

.chara-modal__close {
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid var(--pink-300);
  border-radius: 50%;
  background: #fff;
  color: var(--pink-500);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.chara-modal__close:hover {
  background: var(--pink-500);
  color: #fff;
}

.chara-modal__body {
  position: relative;
  padding: 1rem 3.4rem;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, #fff 0%, transparent 50%),
    linear-gradient(160deg, var(--pink-50), #eef9ff);
  max-height: min(78vh, 820px);
  overflow: auto;
}

.chara-modal__img {
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 760px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(43, 26, 40, 0.25));
}

.chara-modal__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.65rem;
  height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid var(--pink-300);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--pink-500);
  box-shadow: 0 6px 16px rgba(255, 45, 138, 0.18);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.chara-modal__nav::before {
  content: "";
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  box-sizing: border-box;
}

.chara-modal__nav:hover {
  background: var(--pink-500);
  color: #fff;
}

.chara-modal__nav:active {
  transform: translateY(-50%) scale(0.94);
}

.chara-modal__nav--prev {
  left: 0.55rem;
}

.chara-modal__nav--prev::before {
  transform: translateX(0.12rem) rotate(-135deg);
}

.chara-modal__nav--next {
  right: 0.55rem;
}

.chara-modal__nav--next::before {
  transform: translateX(-0.12rem) rotate(45deg);
}

/* ========== Specs ========== */
.specs {
  background:
    linear-gradient(180deg, #fff5fa, #ffe4f0 70%, #ffd6ea);
}

.specs-table-wrap {
  overflow-x: auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.specs-table th,
.specs-table td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 2px dashed var(--pink-200);
}

.specs-table td {
  font-weight: 400;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table th {
  width: 8.5rem;
  white-space: nowrap;
  font-family: var(--font-pop);
  font-size: 0.9rem;
  color: var(--pink-500);
  background: rgba(255, 230, 241, 0.8);
}

.specs-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

/* ========== Footer ========== */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1.25rem 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, #5b2a48, #2b1a28);
  color: #ffe9f3;
}

.wa-seigaiha {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cpath d='M0 40c10 0 20-10 20-20S10 0 0 0M20 40c10 0 20-10 20-20S30 0 20 0M40 40c10 0 20-10 20-20S50 0 40 0M60 40c10 0 20-10 20-20S70 0 60 0' fill='none' stroke='%23ffc2dc' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 80px 40px;
}

.site-footer__title {
  position: relative;
  font-family: var(--font-pop);
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 90, 165, 0.55);
}

.site-footer__copy {
  position: relative;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ========== Motion ========== */
@keyframes hero-in {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes copy-in {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 4px 0 #c9186a, 0 10px 28px rgba(255, 45, 138, 0.2); }
  50% { box-shadow: 0 4px 0 #c9186a, 0 14px 34px rgba(255, 45, 138, 0.38); }
}

@keyframes sd-wiggle {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20% { transform: translateX(-5px) rotate(-2.2deg); }
  40% { transform: translateX(5px) rotate(2.2deg); }
  60% { transform: translateX(-4px) rotate(-1.6deg); }
  80% { transform: translateX(4px) rotate(1.6deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual,
  .hero-meta,
  .hero-logo,
  .btn--primary,
  .chara-card,
  .chara-card__thumb img,
  .chara-modal__nav {
    animation: none;
    transition: none;
  }
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .chara-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
  }

  :root {
    --hero-logo-width: 50%;
    --hero-logo-max-width: 480px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: auto;
  }

  body {
    background-attachment: scroll;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
  }

  .site-brand {
    font-size: clamp(1.05rem, 4.5vw, 1.35rem);
    max-width: 100%;
  }

  .site-nav {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 0.5rem 0.9rem;
    font-size: clamp(0.95rem, 3.8vw, 1.1rem);
    color: #ff5aa5;
    background: #fff5fa;
    border: 2px solid #ffb3d4;
    border-radius: 999px;
    box-shadow: 2px 2px 0 #ffd6e8;
    white-space: nowrap;
  }

  .hero-stage {
    width: min(100% - 1.5rem, 1200px);
    padding-top: 0.85rem;
    padding-bottom: 2.5rem;
  }

  /* スマホでも1枚のキービジュアルとして維持 */
  .hero-composite {
    aspect-ratio: 16 / 10;
  }

  .hero-visual img {
    object-position: 68% center;
  }

  :root {
    --hero-logo-width: 58%;
    --hero-logo-max-width: 280px;
    --hero-logo-shift-y: -48%;
  }

  .hero-meta {
    max-width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 0;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .section-title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .section-hint {
    display: block;
    margin: 0.55rem 0 0;
  }

  .story-body {
    padding: 1.1rem 1rem;
  }

  .chara-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .chara-card__name {
    font-size: 1rem;
  }

  .chara-card__thumb {
    padding: 0.5rem;
  }

  .wa-cloud--hero {
    height: 32px;
  }

  .chara-modal {
    max-width: calc(100vw - 1.25rem);
    margin: auto;
  }

  .chara-modal__body {
    padding: 0.75rem 2.7rem;
    max-height: min(70vh, 640px);
  }

  .chara-modal__img {
    max-height: min(62vh, 560px);
  }

  .chara-modal__nav {
    width: 2.35rem;
    height: 2.35rem;
  }

  .chara-modal__nav::before {
    width: 0.48rem;
    height: 0.48rem;
  }

  .chara-modal__nav--prev {
    left: 0.3rem;
  }

  .chara-modal__nav--next {
    right: 0.3rem;
  }

  .specs-table th,
  .specs-table td {
    padding: 0.8rem 0.85rem;
  }

  .specs-table th {
    width: 6.5rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .hero-stage {
    width: min(100% - 1rem, 1200px);
  }

  .hero-composite {
    aspect-ratio: 5 / 4;
  }

  .hero-visual img {
    object-position: 78% center;
  }

  :root {
    --hero-logo-width: 62%;
    --hero-logo-max-width: 240px;
    --hero-logo-top: 46%;
    --hero-logo-shift-y: -48%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .btn {
    width: 100%;
    flex: none;
  }

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

  .specs-cta .btn--large {
    width: 100%;
  }

  .specs-table,
  .specs-table tbody,
  .specs-table tr,
  .specs-table th,
  .specs-table td {
    display: block;
    width: 100%;
  }

  .specs-table th {
    width: 100%;
    border-bottom: none;
    padding-bottom: 0.15rem;
  }

  .specs-table td {
    padding-top: 0.15rem;
    padding-bottom: 0.75rem;
  }

  .specs-table tr {
    padding: 0.55rem 0;
    border-bottom: 2px dashed var(--pink-200);
  }

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

  .site-footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  }
}
