/* =========================================================
   カノジョに猫耳は憑きモノです！ / 夜空と猫の特設ページ
   配色は --neko-*、キャラごとの色は character-* で調整できます。
   ========================================================= */
body.nekomimi-page {
  --neko-ink: #39324f;
  --neko-muted: #837c9b;
  --neko-paper: #f7f4ff;
  --neko-night: #292442;
  --neko-lilac: #c8b6f0;
  --neko-lilac-deep: #7760ad;
  --neko-pink: #f19cbe;
  --neko-mint: #a8dfd5;
  margin: 0;
  color: var(--neko-ink);
  background-color: var(--neko-paper);
  background-image: radial-gradient(#dcd3f4 1.2px, transparent 1.2px), radial-gradient(#f0d5e4 1px, transparent 1px);
  background-position: 0 0, 14px 14px;
  background-size: 28px 28px;
  font-family: "メイリオ", Meiryo, "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
.nekomimi-page *,
.nekomimi-page *::before,
.nekomimi-page *::after { box-sizing: border-box; }
.nekomimi-page img { max-width: 100%; }
.nekomimi-page a { color: inherit; }
.nekomimi-page .skip-link {
  position: absolute; z-index: 20; top: -60px; left: 12px; padding: 10px 14px;
  border: 2px solid var(--neko-night); border-radius: 12px; background: white; font-weight: 700;
}
.nekomimi-page .skip-link:focus { top: 12px; }
.nekomimi-page a:focus-visible { outline: 3px solid var(--neko-pink); outline-offset: 4px; }
.nekomimi-page .eyebrow { margin: 0 0 9px; color: var(--neko-lilac-deep); font-size: 9px; font-weight: 900; letter-spacing: .2em; }

/* Key visual */
.nekomimi-page .hero { overflow: hidden; border-bottom: 8px solid var(--neko-lilac); background: #dcd6ee; }
.nekomimi-page .hero img { display: block; width: 100%; height: auto; }
.nekomimi-page .title-under-hero {
  position: relative; width: fit-content; max-width: calc(100% - 32px); margin: 20px auto 0; padding: 6px 22px 9px;
  border: 2px solid white; border-radius: 999px; background: #fff; box-shadow: 0 5px 0 #d6c9ee, 0 8px 20px rgb(54 43 90 / 8%);
  text-align: center;
}
.nekomimi-page .title-under-hero::before { content: "✦"; position: absolute; left: -18px; top: -13px; color: #e8b6d2; font-size: 24px; }
.nekomimi-page .title-under-hero .eyebrow { margin: 0; font-size: 8px; }
.nekomimi-page .title-under-hero h1 {
  margin: 2px 0 0; color: #6d5b9d; font-size: clamp(19px, 2.5vw, 27px);
  font-weight: 900; line-height: 1.35; letter-spacing: .04em;
}
.nekomimi-page .title-under-hero > p:last-child { margin: 2px 0 0; color: var(--neko-muted); font-size: 10px; font-weight: 700; }

/* Story introduction */
.nekomimi-page .intro {
  position: relative; overflow: hidden; width: min(920px, calc(100% - 48px)); margin: 56px auto 68px; padding: 38px 28px 36px;
  border: 3px solid #fff; border-radius: 30px;
  background: radial-gradient(circle at 88% 12%, rgb(200 182 240 / 28%) 0 70px, transparent 72px), linear-gradient(135deg, #332c50, #554a76);
  box-shadow: 0 10px 0 #c7b6e7, 0 17px 34px rgb(50 39 80 / 14%); color: #fff; text-align: center;
}
.nekomimi-page .intro::before { content: "☾"; position: absolute; top: -16px; left: 25px; color: #f6d992; font-size: 55px; line-height: 1; transform: rotate(-18deg); }
.nekomimi-page .intro::after { content: "✧"; position: absolute; right: 25px; bottom: 8px; color: #f6c5dc; font-size: 31px; }
.nekomimi-page .intro .eyebrow { color: #d4c3f4; }
.nekomimi-page .intro h2 { margin: 0; font-size: clamp(24px, 4vw, 38px); font-weight: 900; line-height: 1.5; letter-spacing: .04em; }
.nekomimi-page .intro > p:not(.eyebrow) { margin: 15px auto 0; color: #f1edf8; font-size: 13px; font-weight: 600; line-height: 2.05; }
.nekomimi-page .text-link {
  display: inline-block; margin-top: 18px; padding: 8px 17px; border: 2px solid white; border-radius: 999px;
  background: #f1c1d7; box-shadow: 0 3px 0 #bb83a0; color: #503b5d; font-size: 11px; font-weight: 900; text-decoration: none;
}
.nekomimi-page .text-link span { margin-left: 8px; }

/* A two-column gallery, distinct from the other work's alternating profile rows */
.nekomimi-page .characters {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px;
  width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 64px;
}
.nekomimi-page .section-heading {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 0 0 2px;
  padding: 4px 5px 18px; border-bottom: 2px solid #d9cfee;
}
.nekomimi-page .section-heading .eyebrow { margin-bottom: 3px; color: #9079c1; }
.nekomimi-page .section-heading h2 { margin: 0; color: var(--neko-night); font-size: clamp(25px, 3vw, 36px); font-weight: 1000; letter-spacing: .04em; }
.nekomimi-page .section-note { margin: 0 0 4px; color: #877d9d; text-align: right; font-size: 10px; font-weight: 800; line-height: 1.8; }
.nekomimi-page .character {
  --accent: #d5c9ef; --accent-deep: #7560a5;
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 2px solid white; border-radius: 24px;
  background: #fff; box-shadow: 0 8px 0 var(--accent), 0 15px 32px rgb(50 39 80 / 8%);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nekomimi-page .character:hover { transform: translateY(-4px); box-shadow: 0 12px 0 var(--accent), 0 19px 35px rgb(50 39 80 / 12%); }
.nekomimi-page .character-rise { --accent: #b7e8ee; --accent-deep: #498f9e; }
.nekomimi-page .character-kaede { --accent: #bce7d2; --accent-deep: #4d8c6b; }
.nekomimi-page .character-kuroto { --accent: #d1cce6; --accent-deep: #70638f; }
.nekomimi-page .character-maya { --accent: #f3c0d7; --accent-deep: #ad5c7a; }
.nekomimi-page .character-art {
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; padding: 14px;
  background-color: var(--accent); background-image: radial-gradient(rgb(255 255 255 / 78%) 2px, transparent 2.5px); background-size: 22px 22px;
}
.nekomimi-page .character-art::before {
  content: ""; position: absolute; width: 84%; aspect-ratio: 1; border: 3px solid rgb(255 255 255 / 70%);
  border-radius: 50%; background: rgb(255 255 255 / 15%);
}
.nekomimi-page .character-art::after { content: "✧"; position: absolute; z-index: 1; top: 11px; left: 14px; color: white; font-size: 25px; text-shadow: 2px 2px 0 var(--accent-deep); }
.nekomimi-page .character-art img {
  position: absolute; z-index: 2; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px);
  object-fit: cover; object-position: center top; border-radius: 17px;
}
.nekomimi-page .character-copy { padding: 22px 24px 27px; text-align: center; }
.nekomimi-page .character-label {
  display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 42%, white); color: var(--accent-deep);
  font-size: 8px; font-weight: 900; letter-spacing: .13em;
}
.nekomimi-page .character-label span { display: inline-block; margin-left: 6px; }
.nekomimi-page .character-copy h3 { margin: 0; color: var(--neko-night); font-size: clamp(25px, 2.7vw, 34px); font-weight: 1000; line-height: 1.3; letter-spacing: .04em; }
.nekomimi-page .furigana { margin: 3px 0 0; color: #968dad; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.nekomimi-page .quote {
  position: relative; margin: 14px 0; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--accent) 74%, white);
  border-radius: 15px; background: #fcfaff; color: #635978; font-size: 11px; font-weight: 800; line-height: 1.8;
}
.nekomimi-page .quote::before { content: "“"; margin-right: 4px; color: var(--accent-deep); font: 900 19px/0 Georgia, serif; }
.nekomimi-page .profile { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; border: 0; }
.nekomimi-page .profile div {
  min-width: 76px; padding: 6px 9px; border: 1px solid white; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 23%, white); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent-deep) 26%, white);
}
.nekomimi-page .profile dt { color: #837997; font-size: 8px; font-weight: 800; letter-spacing: .05em; }
.nekomimi-page .profile dd { margin: 0; color: var(--neko-ink); font-size: 10px; font-weight: 900; }
.nekomimi-page .bio { margin: 14px 0 0; color: #6d667d; text-align: left; font-size: 11px; font-weight: 600; line-height: 1.95; }

/* Book information */
.nekomimi-page .book-note {
  display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); gap: clamp(22px, 5vw, 50px); align-items: center;
  width: min(920px, calc(100% - 48px)); margin: 6px auto 68px; padding: clamp(22px, 5vw, 40px);
  border: 2px solid white; border-radius: 27px; background: #eeebf8; box-shadow: 0 8px 0 #c9bee2;
}
.nekomimi-page .book-cover { width: 100%; max-width: 230px; margin: 0 auto; padding: 7px; border: 1px solid #e1d9ef; border-radius: 13px; background: white; box-shadow: 0 7px 20px rgb(43 36 67 / 16%); transform: rotate(-2deg); }
.nekomimi-page .book-cover img { display: block; width: 100%; height: auto; border-radius: 7px; }
.nekomimi-page .book-copy h2 { margin: 0; color: #6d5b9d; font-size: clamp(22px, 3.5vw, 32px); font-weight: 1000; line-height: 1.4; }
.nekomimi-page .book-copy > p:not(.eyebrow) { color: #625c71; font-size: 11px; font-weight: 700; line-height: 1.9; }
.nekomimi-page .book-copy .book-description { margin-top: 14px; font-weight: 500; }
.nekomimi-page .book-copy .book-note-small { margin-bottom: 0; color: #8d849d; font-size: 9px; }

/* Standalone page footer */
.nekomimi-page .site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px max(24px, calc((100vw - 1120px) / 2));
  border-top: 5px solid #fff; background: var(--neko-night); color: #e6def6; font-size: 10px; font-weight: 800; letter-spacing: .04em;
}
.nekomimi-page .site-footer p { margin: 0; }
.nekomimi-page .back-home { color: #d9c8f4; font-size: 9px; font-weight: 1000; letter-spacing: .12em; text-decoration: none; }

@media (max-width: 760px) {
  .nekomimi-page .title-under-hero { margin-top: 15px; padding: 5px 13px 7px; }
  .nekomimi-page .title-under-hero h1 { font-size: clamp(17px, 5vw, 23px); }
  .nekomimi-page .title-under-hero > p:last-child { font-size: 9px; }
  .nekomimi-page .intro { width: calc(100% - 32px); margin: 40px auto 50px; padding: 30px 17px; border-radius: 24px; }
  .nekomimi-page .intro > p:not(.eyebrow) { font-size: 11px; }
  .nekomimi-page .characters { grid-template-columns: 1fr; gap: 22px; width: calc(100% - 32px); padding-bottom: 44px; }
  .nekomimi-page .section-heading { align-items: start; gap: 10px; margin-bottom: 4px; padding: 4px 2px 14px; }
  .nekomimi-page .section-heading h2 { font-size: 23px; }
  .nekomimi-page .section-note { max-width: 100px; font-size: 9px; }
  .nekomimi-page .character-art { aspect-ratio: 1 / 1; }
  .nekomimi-page .character-copy { padding: 19px 17px 23px; }
  .nekomimi-page .character-copy h3 { font-size: 28px; }
  .nekomimi-page .quote { font-size: 11px; }
  .nekomimi-page .profile { gap: 6px; }
  .nekomimi-page .profile div { min-width: 0; flex: 1 1 28%; padding: 6px 7px; }
  .nekomimi-page .book-note { grid-template-columns: 1fr; width: calc(100% - 32px); gap: 20px; margin: 4px auto 48px; padding: 20px; }
  .nekomimi-page .book-cover { max-width: 190px; }
  .nekomimi-page .book-copy { text-align: center; }
  .nekomimi-page .book-copy > p:not(.eyebrow) { font-size: 10px; }
  .nekomimi-page .site-footer { flex-direction: column; justify-content: center; gap: 8px; padding: 18px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .nekomimi-page .character { transition: none; }
}
