@charset "UTF-8";

/* =========================================================
   Pinky Tails — editorial shoujo site / v6.1
   White paper, fine wine-red lines, restrained old gold.
   ========================================================= */

:root {
  --paper: #fffdf9;
  --paper-soft: #faf5f3;
  --paper-muted: #f3e9ec;
  --ink: #553b44;
  --ink-soft: #856c75;
  --rose: #8f405b;
  --rose-soft: #b36f85;
  --gold: #b6975e;
  --gold-text: #80632f;
  --blue: #728b94;
  --line: rgba(103, 65, 78, 0.17);
  --line-strong: rgba(103, 65, 78, 0.29);
  --page-max: 1540px;
  --neetsha-safe: 58px;
  --neetsha-mobile-menu-safe: 72px;
  --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", "BIZ UDPMincho", serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
}

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

html {
  min-width: 0;
  min-height: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #fffdfb 0%, #f7f0f1 61%, #e8dade 100%);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.84;
  font-feature-settings: "palt" 1, "pkna" 1;
}

@supports (overflow: clip) {
  body { overflow-x: clip; }
}

body.is-modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button,
input,
textarea { font: inherit; }
button { border: 0; }
button,
a { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

[hidden] { display: none !important; }


/* =========================================================
   Neetsha official side menu — always above Pinky Tails UI
   ========================================================= */

:root { --neetsha-official-menu-z: 2147483647; }

/*
  add_menu.js の生成DOMだけに data-neetsha-top-layer を付与する。
  サイト本体・プロフィールモーダルより必ず前面へ置き、
  新都社公式サイドメニューの開閉・リンク操作を遮らない。
*/
[data-neetsha-top-layer],
[data-neetsha-top-layer] * {
  z-index: var(--neetsha-official-menu-z) !important;
}

/* 公式メニューの見た目は保ち、文字と既知画像の読みやすさ・安定性だけを補う。 */
#st-trigger-effects .menu_button p {
  color: #4a4a4a !important;
}

#st-trigger-effects .menu_button img {
  width: 32px !important;
  height: 32px !important;
}

/* =========================================================
   Outer frame / Neetsha safe area
   ========================================================= */

.page {
  width: min(var(--page-max), 100%);
  margin: 0 auto;
  padding: 12px 7px 42px;
}

@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .page {
    width: min(var(--page-max), calc(100% - var(--neetsha-safe)));
    margin-right: 0;
    margin-left: max(var(--neetsha-safe), calc((100% - min(var(--page-max), calc(100% - var(--neetsha-safe)))) / 2 + var(--neetsha-safe) / 2));
  }
}

.neetsha-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  margin: 0 auto 9px;
}

.neetsha-header__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(270px, 27vw);
  height: 58px;
  padding: 5px 12px;
  border: 1px solid rgba(103, 65, 78, 0.11);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 0.86;
  transition: opacity 0.16s ease;
}

.neetsha-header__link:hover,
.neetsha-header__link:focus-visible { opacity: 1; }
.neetsha-header__link img { width: 100%; height: 100%; object-fit: contain; }

.site-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(103, 65, 78, 0.20);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 0 18px 45px rgba(62, 34, 44, 0.10);
}

.frame-rail--top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
  padding: 4px 30px;
  border-bottom: 1px solid rgba(182, 151, 94, 0.31);
  background: rgba(255, 253, 249, 0.94);
}

/* The title logo deliberately overlaps the upper author-credit rail. */
.frame-rail--top { position: relative; z-index: 3; }

.site-credit {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.site-credit__copyright { color: var(--gold-text); }

.site-header {
  position: relative;
  z-index: 6;
  height: 128px;
  margin: 0 32px;
  border-bottom: 1px solid var(--line);
}

.site-logo {
  position: absolute;
  z-index: 10;
  top: -42px;
  left: 0;
  display: block;
  width: min(550px, 47vw);
  height: 142px;
}

.site-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }

/* =========================================================
   Top page — one editorial title spread
   ========================================================= */

.top-shell .site-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-areas: "sidebar hero";
  grid-template-columns: 210px minmax(0, 1fr);
  margin: 0 32px;
  overflow: hidden;
  background: linear-gradient(132deg, #fffefb 0%, #fffdfa 43%, #f7ecef 100%);
}

.site-sidebar {
  position: relative;
  z-index: 6;
  grid-area: sidebar;
  min-width: 0;
  padding: 72px 18px 44px 12px;
  background: transparent;
}

.site-sidebar::after {
  position: absolute;
  top: 55px;
  right: 0;
  bottom: 48px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(182, 151, 94, 0.44) 16%, rgba(143, 64, 91, 0.23) 73%, transparent);
  content: "";
}

.side-nav__heading {
  margin: 0 0 22px 38px;
  color: var(--gold-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.25em;
}

.side-nav { display: grid; gap: 7px; }

.side-nav__item {
  position: relative;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 8px 6px 8px 8px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.16s ease;
}

.side-nav__item::after {
  position: absolute;
  right: 9px;
  bottom: 4px;
  left: 48px;
  height: 1px;
  background: rgba(143, 64, 91, 0.13);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.side-nav__item:hover,
.side-nav__item:focus-visible,
.side-nav__item.is-current { color: var(--rose); }

.side-nav__item:hover::after,
.side-nav__item:focus-visible::after,
.side-nav__item.is-current::after { transform: scaleX(1); }

.side-nav__number {
  align-self: start;
  padding-top: 6px;
  color: var(--gold-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.07em;
}

.side-nav__label strong,
.side-nav__label small { display: block; }

.side-nav__label strong {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.10em;
}

.side-nav__label small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 0.19em;
}

.side-nav__item--latest .side-nav__label small { color: var(--gold-text); }

/* Top page — latest update entry + direct entry to each published part of episode 01.
   The third main navigation item is intentionally a shortcut to the newest age update,
   while the part selector below remains the stable episode navigation. */
.story-part-jump {
  margin: 16px 7px 0 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(182, 151, 94, 0.30);
}

.story-part-jump__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  line-height: 1.2;
}

.story-part-jump__title strong {
  color: var(--rose);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.story-part-jump__title small {
  color: var(--gold-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.story-part-jump__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.story-part-jump__links a,
.story-part-jump__links > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 50px;
  padding: 7px 3px 6px;
  color: var(--ink-soft);
  border: 1px solid rgba(143, 64, 91, 0.18);
  background: rgba(255, 253, 249, 0.72);
  text-align: center;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.story-part-jump__links a:hover,
.story-part-jump__links a:focus-visible {
  color: var(--rose);
  border-color: rgba(143, 64, 91, 0.43);
  background: rgba(179, 111, 133, 0.08);
}

.story-part-jump__links > span.is-disabled {
  color: rgba(85, 59, 68, 0.34);
  border-color: rgba(103, 65, 78, 0.11);
  background: rgba(255, 253, 249, 0.42);
  cursor: default;
}

.story-part-jump__links > span.is-disabled small {
  color: rgba(128, 99, 47, 0.48);
}

.story-part-jump__links a > span,
.story-part-jump__links > span > span {
  font-family: var(--font-serif);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.story-part-jump__links a > small,
.story-part-jump__links > span > small {
  margin-top: 3px;
  color: var(--gold-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-stage {
  position: relative;
  grid-area: hero;
  min-width: 0;
  height: 620px;
  overflow: hidden;
}

.section-rings {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.section-rings svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.section-rings circle {
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.section-rings__outer { stroke: rgba(182, 151, 94, 0.28); }
.section-rings__inner { stroke: rgba(143, 64, 91, 0.12); }

.section-rings--hero {
  left: 68%;
  top: 50%;
  width: min(620px, 72%);
  transform: translate(-50%, -50%);
}

.hero-stage__caption {
  position: absolute;
  z-index: 1;
  top: 48px;
  left: 34px;
  margin: 0;
  color: rgba(143, 64, 91, 0.32);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.25em;
}

.hero-stage__visual { position: absolute; inset: 0; overflow: hidden; }

.hero-stage__image {
  position: absolute;
  z-index: 2;
  left: 57%;
  bottom: -38px;
  display: block;
  width: auto;
  height: calc(100% + 55px);
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  transform-origin: center bottom;
  user-select: none;
}

/* =========================================================
   Comment / author message area
   ========================================================= */

.frame-rail--bottom {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, auto) minmax(180px, 1fr) auto auto auto;
  align-items: center;
  gap: 9px;
  min-height: 57px;
  padding: 7px 18px 8px;
  border-top: 1px solid rgba(182, 151, 94, 0.34);
  background: #fffdf9;
}

.comment-form__lead { min-width: 0; line-height: 1.25; }
.comment-form__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--gold-text);
  font-size: 10px;
  letter-spacing: 0.19em;
}

.comment-form__message {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-form__input {
  width: 100%;
  min-width: 0;
  height: 31px;
  padding: 4px 9px;
  color: var(--ink);
  border: 1px solid rgba(103, 65, 78, 0.26);
  border-radius: 1px;
  outline: 0;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
}

.comment-form__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(182, 151, 94, 0.15);
}

.comment-form__sage {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}

.comment-form__sage input { width: 13px; height: 13px; margin: 0; accent-color: var(--rose); }

.comment-form__submit {
  min-height: 31px;
  padding: 3px 15px;
  color: #fff;
  border: 1px solid var(--rose);
  border-radius: 1px;
  background: var(--rose);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  white-space: nowrap;
  cursor: pointer;
}

.comment-form__submit:hover,
.comment-form__submit:focus-visible { background: #79364d; }

.comment-form__list {
  color: var(--rose);
  font-family: var(--font-sans);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.comment-form__list:hover,
.comment-form__list:focus-visible { text-decoration: underline; }

/* =========================================================
   Character page — character-book spread
   ========================================================= */

.character-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 900px;
  background: var(--paper);
}

.character-sidebar {
  position: relative;
  z-index: 5;
  padding: 48px 20px 34px;
  border-right: 1px solid rgba(182, 151, 94, 0.29);
  background: linear-gradient(180deg, #fbf5f4 0%, #fffdf9 72%);
}

.sidebar-heading { margin: 0 0 25px; color: var(--rose); }
.sidebar-heading span { display: block; font-size: 1.38rem; font-weight: 500; letter-spacing: 0.12em; }
.sidebar-heading small { display: block; margin-top: 3px; color: var(--gold-text); font-family: Georgia, "Times New Roman", serif; font-size: 0.65rem; letter-spacing: 0.24em; }

.character-list { display: grid; gap: 2px; }
.character-selector {
  --character-accent: var(--rose);
  position: relative;
  display: grid;
  grid-template-columns: 23px 11px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 66px;
  padding: 9px 6px 9px 7px;
  border-left: 1px solid transparent;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.character-selector::after {
  position: absolute;
  right: 5px;
  bottom: 4px;
  left: 49px;
  height: 1px;
  background: rgba(143, 64, 91, 0.10);
  content: "";
}

.character-selector.is-active { border-left-color: var(--character-accent); color: var(--character-accent); }
.character-selector.is-locked { color: rgba(85, 59, 68, 0.35); cursor: default; }
.selector-index { color: var(--gold-text); font-family: Georgia, "Times New Roman", serif; font-size: 9px; }
.selector-mark { color: var(--character-accent); font-size: 0.58rem; }
.selector-label strong,
.selector-label small { display: block; }
.selector-label strong { font-size: 1rem; font-weight: 500; letter-spacing: 0.10em; }
.selector-label small { margin-top: 2px; color: var(--ink-soft); font-family: Georgia, "Times New Roman", serif; font-size: 0.55rem; letter-spacing: 0.12em; }

.side-site-nav {
  display: grid;
  gap: 2px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.side-site-nav a {
  position: relative;
  padding: 7px 7px 7px 18px;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-decoration: none;
}

.side-site-nav a::before { position: absolute; top: 50%; left: 2px; color: var(--gold-text); content: "◇"; font-size: 0.48rem; transform: translateY(-50%); }
.side-site-nav a.is-current { color: var(--rose); }
.side-site-nav a.is-current::before { content: "◆"; }

.character-stage {
  position: relative;
  min-width: 0;
  height: 900px;
  min-height: 900px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(136deg, #fffefb 0%, #fffdf9 46%, #f7ebee 100%);
}

/* Character page — a single broken halo, not the top page's double-ring motif. */
.character-halo {
  position: absolute;
  z-index: 1;
  top: 74px;
  left: 45%;
  width: min(720px, 78%);
  transform: translateX(-50%);
  pointer-events: none;
}

.character-halo svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.character-halo__main,
.character-halo__accent {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.character-halo__main {
  stroke: rgba(182, 151, 94, 0.32);
  stroke-width: 1;
}

.character-halo__accent {
  stroke: rgba(143, 64, 91, 0.16);
  stroke-width: 1;
}

.character-halo__mark {
  fill: rgba(182, 151, 94, 0.48);
}

.character-stage__index {
  position: absolute;
  z-index: 4;
  top: 39px;
  left: 34px;
  margin: 0;
  color: rgba(143, 64, 91, 0.30);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.25em;
}

.stage-title {
  position: absolute;
  z-index: 7;
  top: 29px;
  right: 40px;
  color: var(--rose);
  text-align: right;
}
.stage-title span { display: block; font-size: clamp(1.55rem, 2.2vw, 2.35rem); letter-spacing: 0.15em; }
.stage-title small { display: block; color: var(--gold-text); font-family: Georgia, "Times New Roman", serif; font-size: 0.62rem; letter-spacing: 0.23em; }

.character-standing-image {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--character-x, 50%);
  display: block;
  width: auto;
  height: 100%;
  max-width: var(--character-width, 88%);
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  transform-origin: center bottom;
}

.character-name-vertical {
  position: absolute;
  z-index: 7;
  top: 29%;
  right: clamp(23px, 4vw, 68px);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--rose);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.name-ja { font-size: clamp(1.65rem, 2.5vw, 2.5rem); letter-spacing: 0.16em; }
.name-en { color: var(--gold-text); font-family: Georgia, "Times New Roman", serif; font-size: 0.58rem; letter-spacing: 0.22em; }

.profile-open-button {
  position: absolute;
  z-index: 8;
  right: 35px;
  bottom: 27px;
  min-width: 130px;
  padding: 9px 15px 8px;
  color: var(--rose);
  border: 1px solid rgba(143, 64, 91, 0.34);
  border-radius: 1px;
  background: rgba(255, 253, 249, 0.86);
  cursor: pointer;
}
.profile-open-button span,
.profile-open-button small { display: block; }
.profile-open-button span { font-family: Georgia, "Times New Roman", serif; font-size: 0.83rem; letter-spacing: 0.16em; }
.profile-open-button small { margin-top: 1px; color: var(--ink-soft); font-size: 0.58rem; letter-spacing: 0.12em; }
.profile-open-button:hover,
.profile-open-button:focus-visible { color: #fff; background: var(--rose); }
.profile-open-button:hover small,
.profile-open-button:focus-visible small { color: rgba(255, 255, 255, 0.78); }

/* =========================================================
   Character profile modal — 32/68 editorial spread
   ========================================================= */

.character-modal {
  --modal-safe-left: 0px;
  --modal-safe-right: 0px;
  position: fixed;
  z-index: 1000;
  top: 0;
  right: var(--modal-safe-right);
  bottom: 0;
  left: var(--modal-safe-left);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.character-modal.is-visible { opacity: 1; }

.modal-backdrop { position: absolute; inset: 0; background: rgba(71, 43, 52, 0.54); cursor: pointer; }

.profile-card {
  position: relative;
  z-index: 2;
  width: min(1450px, 98%);
  height: min(900px, calc(100vh - 40px));
  height: min(900px, calc(100dvh - 40px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  border: 1px solid rgba(103, 65, 78, 0.41);
  background: #fffdf9;
  box-shadow: 0 22px 60px rgba(44, 23, 31, 0.28);
}

.profile-card::before {
  position: absolute;
  z-index: 3;
  inset: 9px;
  border: 1px solid rgba(182, 151, 94, 0.22);
  content: "";
  pointer-events: none;
}

.profile-close {
  position: absolute;
  z-index: 20;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--rose);
  border: 1px solid rgba(143, 64, 91, 0.29);
  border-radius: 0;
  background: rgba(255, 253, 249, 0.92);
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 300;
  cursor: pointer;
}
.profile-close:hover,
.profile-close:focus-visible { color: #fff; background: var(--rose); }

.profile-main { position: relative; z-index: 2; height: 100%; overflow-y: auto; padding: 31px 36px 25px; }

.profile-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  padding: 0 62px 16px 3px;
  border-bottom: 1px solid rgba(103, 65, 78, 0.27);
}

.profile-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--gold-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
}
.profile-heading h1 { margin: 0; color: var(--rose); font-size: clamp(2.5rem, 4.1vw, 4rem); font-weight: 500; line-height: 1.2; letter-spacing: 0.16em; }
.profile-heading__copy > p { margin: 5px 0 0; color: var(--ink-soft); font-family: Georgia, "Times New Roman", serif; font-size: 0.66rem; letter-spacing: 0.31em; }

.profile-tabs { display: flex; align-items: flex-end; gap: 23px; }
.profile-tab {
  position: relative;
  min-width: 105px;
  padding: 6px 3px 8px;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(103, 65, 78, 0.24);
  background: transparent;
  font-size: 0.87rem;
  letter-spacing: 0.08em;
  text-align: left;
  cursor: pointer;
}
.profile-tab > span { margin-right: 7px; color: var(--gold-text); font-family: Georgia, "Times New Roman", serif; font-size: 0.67rem; }
.profile-tab small { display: block; margin-top: 1px; padding-left: 24px; font-family: Georgia, "Times New Roman", serif; font-size: 0.48rem; letter-spacing: 0.20em; }
.profile-tab.is-active { color: var(--rose); border-bottom-color: var(--rose); }
.profile-tab.is-active::after { position: absolute; right: 0; bottom: -2px; left: 0; height: 1px; background: var(--gold); content: ""; }

.profile-body {
  display: grid;
  grid-template-columns: minmax(285px, 0.64fr) minmax(600px, 1.36fr);
  align-items: stretch;
  gap: 30px;
  min-height: calc(100% - 124px);
  padding-top: 17px;
}

.profile-copy {
  position: relative;
  z-index: 3;
  align-self: start;
  padding: 19px 4px 22px 5px;
  font-size: 1.04rem;
  line-height: 2.06;
}
.profile-copy::before { position: absolute; top: 0; left: 5px; width: 46px; height: 1px; background: var(--gold); content: ""; }
.profile-copy p { margin: 0 0 1.12em; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 1.5em !important; color: var(--rose); font-size: 0.9rem; letter-spacing: 0.06em; }
.profile-meta span + span::before { margin: 0 0.8em; color: var(--gold-text); content: "／"; }

.profile-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  min-height: 700px;
  overflow: hidden;
  background: transparent;
}
.profile-visual img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: min(795px, calc(100vh - 105px));
  height: min(795px, calc(100dvh - 105px));
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.profile-unknown { position: relative; z-index: 2; display: grid; place-items: center; width: min(430px, 76%); aspect-ratio: 0.72; color: rgba(143, 64, 91, 0.27); border: 1px solid rgba(143, 64, 91, 0.16); font-size: clamp(3rem, 9vw, 7rem); }

/* =========================================================
   Story page — neutral reading surface
   ========================================================= */

.story-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  height: auto;
  min-height: 116px;
  padding-bottom: 9px;
}
.story-header .story-logo {
  position: absolute;
  top: -42px;
  left: 0;
  align-self: auto;
  width: min(550px, 47vw);
  height: 142px;
}
.story-heading {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  align-self: end;
  margin: 0 1px 10px 0;
  color: var(--rose);
  text-align: right;
  white-space: nowrap;
}
.story-heading small { display: block; margin-bottom: 2px; color: var(--gold-text); font-family: Georgia, "Times New Roman", serif; font-size: 0.62rem; font-weight: 400; line-height: 1.35; letter-spacing: 0.26em; }
.story-heading span { display: block; margin: 0; font-size: clamp(1.5rem, 2vw, 2.05rem); font-weight: 500; line-height: 1.25; letter-spacing: 0.17em; }

.story-navigation {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  margin: 0 32px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.74), rgba(255, 253, 249, 0));
}
.story-navigation a,
.story-navigation > span { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 49px; padding: 0 22px; color: #74505d; font-family: var(--font-sans); font-size: 14.5px; letter-spacing: 0.07em; text-decoration: none; }
.story-navigation small { color: var(--ink-soft); font-family: Georgia, "Times New Roman", serif; font-size: 0.5rem; letter-spacing: 0.15em; }
.story-navigation a + a::before,
.story-navigation a + span::before,
.story-navigation span + a::before { position: absolute; left: 0; width: 1px; height: 16px; background: var(--line); content: ""; }
.story-navigation a:hover,
.story-navigation a:focus-visible { color: var(--rose); }
.story-navigation .is-current { color: var(--rose); font-weight: 700; }
.story-navigation .is-current::after { position: absolute; right: 21px; bottom: 5px; left: 21px; height: 1px; background: var(--gold); content: ""; }

.comic-area { position: relative; z-index: 2; padding: 31px 18px 20px; border-top: 1px solid rgba(182, 151, 94, 0.10); background: #fdfcf9; }
.story-file-index {
  width: min(900px, 100%);
  margin: 0 auto 10px;
  padding-left: 3px;
  color: rgba(143, 64, 91, 0.32);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.25em;
  text-align: left;
}
.story-file-index span,
.story-file-index small { display: block; }
.story-file-index small {
  color: rgba(182, 151, 94, 0.72);
  font-size: 0.82em;
  letter-spacing: 0.23em;
}
.episode-pager { display: flex; align-items: center; justify-content: center; gap: 38px; width: min(900px, 100%); margin: 0 auto 24px; }
.episode-pager--bottom { margin-top: 24px; margin-bottom: 7px; }
.episode-pager a,
.episode-pager > span { min-width: 112px; min-height: 35px; padding: 5px 8px; border-bottom: 1px solid rgba(143, 64, 91, 0.32); color: var(--rose); background: transparent; font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.09em; text-align: center; text-decoration: none; }
.episode-pager a span:first-child { margin-right: 8px; color: var(--gold-text); }
.episode-pager .is-disabled span:last-child { margin-left: 8px; color: rgba(182, 151, 94, 0.45); }
.episode-pager a:hover,
.episode-pager a:focus-visible { border-bottom-color: var(--gold); }
.episode-pager .is-disabled { border-bottom-color: rgba(103, 65, 78, 0.11); color: rgba(85, 59, 68, 0.34); }
.comic-pages {
  width: min(900px, 100%);
  margin: 0 auto;
  background: #eee8e9;
}
.comic-page { display: block; width: 100%; height: auto; margin: 0 auto; background: #fff; }
.comic-page + .comic-page { margin-top: 16px; }
.comic-loader { display: none; }

/* A-part end eyecatch: appears after 030.jpg and before the B-part pager. */
.story-eyecatch {
  width: min(900px, 100%);
  margin: 42px auto 8px;
  padding: 31px clamp(10px, 3vw, 32px) 25px;
  border-top: 1px solid rgba(182, 151, 94, 0.34);
  border-bottom: 1px solid rgba(143, 64, 91, 0.18);
  background: linear-gradient(180deg, #fffdf9 0%, #fbf4f5 100%);
  text-align: center;
}
.story-eyecatch__rule {
  width: 58px;
  height: 1px;
  margin: 0 auto 12px;
  background: var(--gold);
}
.story-eyecatch__kicker {
  margin: 0 0 16px;
  color: var(--gold-text);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.22em;
}
.story-eyecatch__media {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 0;
  background: #171215;
  aspect-ratio: 16 / 9;
}
/*
   Draw the frame above the video so all four edges stay visually identical.
   The video is shifted upward by 2px to hide a dark top-edge line that can
   otherwise appear thicker than the left/right/bottom frame in Safari.
*/
.story-eyecatch__media::before {
  position: absolute;
  z-index: 5;
  inset: 0;
  border: 1px solid rgba(103, 65, 78, 0.34);
  content: "";
  pointer-events: none;
}
.story-eyecatch__video {
  position: absolute;
  z-index: 1;
  top: -2px;
  right: 0;
  left: 0;
  display: block;
  width: 100%;
  height: calc(100% + 2px);
  object-fit: cover;
  background: #171215;
}
.story-eyecatch__play {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 0;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, rgba(23, 18, 21, 0.25), rgba(23, 18, 21, 0.56));
  cursor: pointer;
}
.story-eyecatch__play > span { font-family: Arial, sans-serif; font-size: 2rem; line-height: 1; }
.story-eyecatch__play small { font-family: var(--font-serif); font-size: 0.64rem; letter-spacing: 0.18em; }
.story-eyecatch__media.is-playing .story-eyecatch__play { display: none; }
.story-eyecatch__media.is-unavailable::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.72);
  background: #171215;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  content: "アイキャッチ";
  pointer-events: none;
}
.story-eyecatch__part {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 0.64rem;
  line-height: 1.6;
  letter-spacing: 0.12em;
}

@supports not (aspect-ratio: 1 / 1) {
  .story-eyecatch__media {
    height: 0;
    padding-top: 56.25%;
  }
}

/* =========================================================
   Medium screens
   ========================================================= */

@media (max-width: 1100px) {
  .neetsha-header__link { width: min(232px, 30vw); height: 54px; }
  .site-header,
  .top-shell .site-body,
  .story-navigation { margin-right: 22px; margin-left: 22px; }
  .site-logo { width: min(500px, 52vw); }
  .story-header .story-logo { width: min(500px, 54vw); height: 112px; }
  .top-shell .site-body { grid-template-columns: 186px minmax(0, 1fr); }
  .site-sidebar { padding-right: 14px; padding-left: 8px; }
  .hero-stage { height: 600px; }
  .section-rings--hero { left: 67%; width: min(560px, 76%); }
  .character-halo { top: 72px; left: 44%; width: min(670px, 78%); }
  .hero-stage__image { left: 56%; bottom: -34px; height: calc(100% + 50px); }
  .frame-rail--bottom { grid-template-columns: minmax(235px, auto) minmax(130px, 1fr) auto auto auto; }

  .character-layout { grid-template-columns: 204px minmax(0, 1fr); min-height: 850px; }
  .character-stage { height: 850px; min-height: 850px; }
  .character-sidebar { padding-right: 15px; padding-left: 15px; }
  .profile-card { width: 98%; }
  .profile-body { grid-template-columns: minmax(270px, 0.62fr) minmax(430px, 1.38fr); gap: 22px; }
  .profile-copy { font-size: 0.98rem; }
}

/* =========================================================
   Phones and narrow tablets
   ========================================================= */

@media (max-width: 760px) {
  html { scroll-behavior: auto; }
  body { background: #f5edef; font-size: 16px; }
  .page {
    width: 100%;
    margin: 0;
    padding: max(7px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  }

  .neetsha-header {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    min-height: 44px;
    margin-bottom: 7px;
    padding-left: max(var(--neetsha-mobile-menu-safe), env(safe-area-inset-left));
  }
  .neetsha-header__link { width: 100%; min-width: 0; height: 44px; padding: 4px 7px; border-radius: 2px; opacity: 0.88; }
  .site-shell { border-radius: 3px; box-shadow: 0 8px 22px rgba(69, 39, 49, 0.08); }
  .frame-rail--top { min-height: 35px; padding: 4px 9px 4px max(76px, calc(env(safe-area-inset-left) + 70px)); }
  .site-credit { flex-direction: column; align-items: flex-end; gap: 0; width: 100%; font-size: 10px; line-height: 1.2; text-align: right; }
  .site-credit__copyright { display: none; }
  .site-header { height: 104px; margin-right: 13px; margin-left: 13px; }
  .site-logo { top: -36px; width: min(318px, 82vw); height: 108px; }

  .top-shell .site-body { grid-template-areas: "sidebar" "hero"; grid-template-columns: 1fr; margin-right: 13px; margin-left: 13px; }
  .site-sidebar { padding: 7px 0 10px; }
  .site-sidebar::after,
  .side-nav__heading { display: none; }
  .side-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .side-nav__item { display: flex; justify-content: center; min-height: 43px; padding: 5px 3px; border-bottom: 1px solid transparent; font-family: var(--font-sans); text-align: center; }
  .side-nav__item::after { right: 22%; bottom: 2px; left: 22%; }
  .side-nav__number,
  .side-nav__label small { display: none; }
  .side-nav__label strong { font-size: 12px; letter-spacing: 0.07em; }
  .side-nav__item--latest .side-nav__label strong::after {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 0 7px 4px;
    border-radius: 50%;
    background: var(--gold);
    content: "";
  }
  .story-part-jump {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 5px 6px 0;
    padding: 8px 2px 0;
  }
  .story-part-jump__title { margin: 0; }
  .story-part-jump__title strong { font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.08em; white-space: nowrap; }
  .story-part-jump__title small { display: none; }
  .story-part-jump__links { gap: 4px; }
  .story-part-jump__links a,
  .story-part-jump__links > span { min-height: 34px; padding: 4px 2px 3px; }
  .story-part-jump__links a > span,
  .story-part-jump__links > span > span { font-size: 8px; }
  .story-part-jump__links a > small,
  .story-part-jump__links > span > small { margin-top: 2px; font-size: 6.5px; }
  .hero-stage { height: clamp(438px, 116vw, 510px); }
  .hero-stage__caption { top: 25px; left: 17px; font-size: 8px; }
  .section-rings--hero { left: 66%; top: 45%; width: min(420px, 82%); }
  .character-halo { top: 72px; left: 43%; width: min(560px, 91%); }
  .hero-stage__image { left: 52%; bottom: -30px; height: calc(100% + 42px); }

  .frame-rail--bottom {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "lead lead lead" "input submit list";
    gap: 5px 7px;
    min-height: 70px;
    padding: 7px 8px 8px;
  }
  .comment-form__lead { grid-area: lead; }
  .comment-form__eyebrow { margin-bottom: 1px; font-size: 9px; }
  .comment-form__message { font-size: 10px; }
  .comment-form__input { grid-area: input; height: 27px; font-size: 13px; }
  .comment-form__sage { position: absolute; top: 9px; right: 56px; font-size: 10px; }
  .comment-form__submit { grid-area: submit; min-height: 27px; padding: 3px 8px; font-size: 11px; }
  .comment-form__list { grid-area: list; font-size: 11px; }

  .character-layout { display: block; min-height: 0; }
  .character-sidebar { padding: 16px 13px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-heading { margin-bottom: 11px; }
  .sidebar-heading span { font-size: 1.08rem; }
  .sidebar-heading small { font-size: 0.57rem; }
  .character-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .character-selector { display: flex; justify-content: center; min-height: 46px; padding: 6px 4px; border-left: 0; border-bottom: 1px solid transparent; text-align: center; }
  .character-selector::after,
  .selector-index,
  .selector-mark,
  .selector-label small { display: none; }
  .character-selector.is-active { border-bottom: 2px solid var(--character-accent); }
  .selector-label strong { font-size: 0.76rem; }
  .side-site-nav { display: flex; justify-content: center; gap: 3px; margin-top: 10px; padding-top: 9px; }
  .side-site-nav a { padding: 5px 9px; font-size: 0.72rem; }
  .side-site-nav a::before { display: none; }

  .character-stage { height: clamp(650px, 169vw, 760px); min-height: 0; }
  .character-stage__index { top: 25px; left: 18px; font-size: 8px; }
  .stage-title { top: 21px; right: 18px; }
  .stage-title span { font-size: 1.24rem; }
  .stage-title small { font-size: 0.53rem; }
  .character-standing-image { max-width: 100%; }
  .character-name-vertical { right: 14px; }
  .name-ja { font-size: 1.3rem; }
  .profile-open-button { right: 16px; bottom: 17px; min-width: 111px; padding: 7px 10px; }

  .character-modal { right: 0; left: 0; padding: 7px; }
  .profile-card { width: min(720px, 100%); height: min(930px, calc(100vh - 14px)); height: min(930px, calc(100dvh - 14px)); max-height: calc(100vh - 14px); max-height: calc(100dvh - 14px); box-shadow: 0 15px 40px rgba(45, 22, 31, 0.24); }
  .profile-card::before { inset: 6px; }
  .profile-close { top: 11px; right: 11px; width: 40px; height: 40px; }
  .profile-main { padding: 22px 17px 17px; }
  .profile-heading { display: block; padding: 0 51px 12px 1px; }
  .profile-kicker { font-size: 0.52rem; }
  .profile-heading h1 { font-size: 2rem; }
  .profile-heading__copy > p { font-size: 0.57rem; }
  .profile-tabs { gap: 14px; margin-top: 14px; }
  .profile-tab { min-width: 94px; font-size: 0.79rem; }
  .profile-body { grid-template-columns: 1fr; gap: 8px; min-height: 0; padding-top: 8px; }
  .profile-visual { grid-row: 1; min-height: 450px; }
  .profile-visual img { height: min(610px, 62vh); height: min(610px, 62dvh); }
  .profile-copy { grid-row: 2; padding-top: 16px; font-size: 0.96rem; line-height: 1.96; }
  .profile-meta { font-size: 0.83rem; }

  .story-header {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 0;
    height: auto;
    min-height: 112px;
    padding: 78px 0 11px;
  }
  .story-header .story-logo {
    position: absolute;
    top: -36px;
    left: 0;
    justify-self: auto;
    width: min(318px, 86vw);
    height: 108px;
  }
  .story-heading {
    flex-direction: row;
    align-items: baseline;
    justify-self: start;
    gap: 11px;
    margin: 0 0 0 10px;
    text-align: left;
    white-space: normal;
  }
  .story-heading span { order: 1; font-size: 1.24rem; line-height: 1.3; letter-spacing: 0.15em; }
  .story-heading small { order: 2; margin: 0; font-size: 0.54rem; line-height: 1; letter-spacing: 0.22em; }
  .story-navigation { min-height: 48px; margin-right: 13px; margin-left: 13px; }
  .story-navigation a,
  .story-navigation > span { min-height: 48px; padding-right: 13px; padding-left: 13px; font-size: 12px; }
  .story-navigation small { display: none; }
  .story-navigation .is-current::after { right: 11px; left: 11px; }
  .comic-area { padding: 19px 7px 11px; }
  .story-file-index { margin-bottom: 8px; padding-left: 4px; font-size: 8px; line-height: 1.55; }
  .comic-page + .comic-page { margin-top: 12px; }
  .episode-pager { gap: 20px; margin-bottom: 15px; }
  .episode-pager--bottom { margin-top: 16px; margin-bottom: 4px; }
  .story-eyecatch { margin-top: 27px; padding: 22px 6px 18px; }
  .story-eyecatch__kicker { margin-bottom: 14px; font-size: 0.72rem; }
  .story-eyecatch__part { margin-top: 12px; font-size: 0.56rem; letter-spacing: 0.12em; }
  .episode-pager a,
  .episode-pager > span { min-width: 90px; min-height: 33px; font-size: 12px; }
}

@media (max-width: 430px) {
  :root { --neetsha-mobile-menu-safe: 70px; }
  .neetsha-header { gap: 6px; }
  .neetsha-header__link { height: 43px; padding-right: 5px; padding-left: 5px; }
  .site-header { height: 97px; margin-right: 10px; margin-left: 10px; }
  .site-logo { top: -34px; width: min(282px, 80vw); height: 102px; }
  .top-shell .site-body,
  .story-navigation { margin-right: 10px; margin-left: 10px; }
  .story-header { height: auto; min-height: 108px; margin-right: 10px; margin-left: 10px; padding: 76px 0 10px; }
  .story-header .story-logo { top: -34px; width: min(292px, 84vw); height: 102px; }
  .story-heading { margin-left: 8px; }
  .story-heading span { font-size: 1.18rem; }
  .story-navigation a,
  .story-navigation > span { padding-right: 11px; padding-left: 11px; font-size: 11.5px; }
  .hero-stage { height: clamp(416px, 118vw, 478px); }
  .section-rings--hero { left: 65%; top: 44%; width: 84%; }
  .character-halo { top: 70px; left: 43%; width: 94%; }
  .section-rings--character { left: 42%; top: 33%; width: 82%; }
  .hero-stage__image { left: 51%; bottom: -27px; height: calc(100% + 38px); }
  .character-stage { height: clamp(620px, 174vw, 710px); }
  .profile-main { padding-right: 14px; padding-left: 14px; }
  .profile-visual { min-height: 420px; }
}

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