/* =========================
   Base
========================= */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,500;1,400&family=Cormorant+Garamond:wght@400;500&family=Noto+Sans+JP:wght@400;500&family=Square+Peg&display=swap');
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: #F7F8FA;
  color: #222222;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
}


/* =========================
   FIXED SITE HEADER
========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 70px;

  padding: 0 42px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  z-index: 1000;

  background: rgba(247, 248, 250, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


/* SITE NAME */

.site-header-logo {
  display: flex;
  align-items: baseline;
  gap: 12px;

  color: #222;
  text-decoration: none;

  white-space: nowrap;
}

.site-header-logo span {
  font-family: "Bodoni Moda", serif;
  font-size: 17px;
  letter-spacing: -0.05em;
}

.site-header-logo small {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #777;
}


/* NAVIGATION */

.site-header-nav {
  position: absolute;
  left: 50vw;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header-nav a {
  position: relative;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;

  color: #222;
  text-decoration: none;

  white-space: nowrap;
}

.site-header-nav a::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: -7px;

  width: 0;
  height: 1px;

  background: #222;

  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.site-header-nav a:hover::after {
  width: 100%;
}

/* =========================
   SITE HEADER ICONS
========================= */

.site-header-icons {
  position: absolute;
  right: 42px;
  top: 50%;

  transform: translateY(-50%);

  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header-icons a {
  display: flex;
  align-items: center;
  justify-content: center;

  color: inherit;
  text-decoration: none;

  transition: opacity 0.25s ease;
}

.site-header-icons a:hover {
  opacity: 0.6;
}

.site-header-icons img {
  display: block;

  width: 18px;
  height: 18px;

  object-fit: contain;
}

.site-header-icons .icon-x {
  width: 12px;   /* ← Xだけこの数値を調整 */
  height: 12px;
}

.site-header-icons .icon-wavebox {
  width: 18px;   /* ← Waveboxだけこの数値を調整 */
  height: 18px;
}

/* =========================
   SIDE LABEL
========================= */

.side-label {
  position: fixed;

  top: 50%;
  right: 24px;

  z-index: 900;

  transform: translateY(-50%);

  writing-mode: vertical-rl;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 8px;
  letter-spacing: 0.22em;

  color: #777;
}

.side-label span {
  display: block;
}


/* =========================
   Hero
========================= */

.hero {
  min-height: 100svh;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 70px 24px;
}

.eyebrow {
  margin: 0 0 28px;
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  letter-spacing: 0.38em;
  font-weight: 400;
}

.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(64px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.description {
  margin: 30px 0 20px;
  font-family: "ryo-gothic-plusn", sans-serif;
  font-size: 10px;
  letter-spacing: 0.5em;
  line-height: 1.8;
}

/* =========================
   Common Page Header
========================= */

.page-label {
  margin: 0 0 24px;

  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  font-weight: 400;
  color: #777;
}

.page-description {
  font-family: "Noto Sans JP", serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #555;
}


/* =========================
   About
========================= */

.about {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  box-sizing: border-box;
}

.about-label {
  margin: 0 0 40px;
  font-family: "ryo-gothic-plusn", sans-serif;
  font-size: 10px;
  letter-spacing: 0.38em;
  font-weight: 400;
  color: #777;
}


/* =========================
   About title
========================= */

.about h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0.01em;
}


/* =========================
   About text
========================= */

.about > p:not(.about-label):not(.site-name):not(.unofficial) {
  max-width: 520px;
  margin: 42px auto 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  line-height: 2.25;
  letter-spacing: 0.02em;
}


/* =========================
   Site name
========================= */

.site-name {
  margin: 46px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.24em;
  font-weight: 400;
  color: #999;
}


/* =========================
   Unofficial
========================= */

.unofficial {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.28em;
  font-weight: 400;
  color: #999;
}


/* =========================
   MAIN NAVIGATION
========================= */

.main-navigation {
  margin-top: 60px;
  text-align: center;
}

.navigation-label {
  margin-bottom: 28px;
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: #777;
}

.navigation-links {
  display: flex;
  justify-content: center;
  gap: 42px;
}

.navigation-links a {
  position: relative;
  display: inline-block;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;

  color: #222;
  text-decoration: none;

  transition: transform 0.3s ease;
}

.navigation-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background: #222;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease;
}

.navigation-links a:hover::after {
    transform: scaleX(1);
}

.navigation-links a:hover {
  transform: translateY(-2px);
}

/* =========================
   TYPEWRITER HERO ANIMATION
========================= */

/* ---------- SR ONLY (スクリーンリーダー用) ---------- */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  margin: -1px;
  padding: 0;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  white-space: nowrap;

  border: 0;
}


/* ---------- CURSOR ---------- */

.typewriter-cursor {
  display: inline-block;

  width: 2px;
  height: 0.85em;

  margin-left: 4px;

  background: #222;

  vertical-align: -0.1em;

  animation: cursor-blink 0.9s steps(1) infinite;
}

@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

h1.typing-done .typewriter-cursor {
  animation: none;
  opacity: 0;

  transition: opacity 0.5s ease 0.8s;
}


/* ---------- FADE IN ITEMS ---------- */

/* JSが動かない場合は常に表示(保険) */

.fade-in-item {
  opacity: 1;
}

html.js-anim .fade-in-item {
  opacity: 0;
  transform: translateY(10px);

  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

html.js-anim .fade-in-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   SCROLL INDICATOR
========================= */

.hero {
  position: relative;
}

.scroll-indicator {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;

  width: fit-content;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-indicator span:first-child {
  font-family: "Cormorant Garamond", serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: #999;
}

.scroll-indicator-line {
  display: block;

  width: 1px;
  height: 40px;

  background: #ccc;

  animation: scroll-line 1.8s ease-in-out infinite;
}


/* ---------- ANIMATION ---------- */

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }
  40% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  60% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}


/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

  .scroll-indicator {
    bottom: 28px;

    gap: 10px;
  }

  .scroll-indicator span:first-child {
    font-size: 9px;
  }

  .scroll-indicator-line {
    height: 30px;
  }

}

/* =========================
   SCROLL SNAP
========================= */

html {
  scroll-snap-type: y mandatory;
}

.hero,
.site-guide,
.about {
  min-height: 100svh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* =========================
   WORLD PAGE
========================= */

.world-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 140px 40px 120px;
  text-align: left;

  position: relative;
}

.world-page > .page-label {
  margin: 0 0 24px;

  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  font-weight: 400;
  color: #777;
}

.world-page h1 {
  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 64px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #222;
}

.world-page .page-description {
  margin: 20px 0 0;

  font-family: "ryo-gothic-plusn", sans-serif;
  font-size: 10px;
  line-height: 2;
  letter-spacing: 0.5em;
  color: #555;
}


/* =========================
   WORLD LINKS
========================= */

.world-links {
  display: flex;
  flex-direction: column;
  gap: 18px;

  width: min(100%, 640px);
  margin: 60px auto 0;
}

.world-link {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;

  width: 100%;
  min-height: 96px;

  padding: 20px 24px;

  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;

  color: #222;
  text-decoration: none;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.world-link:hover {
  transform: translateY(-2px);
  border-color: #d8d8d8;
}


/* ---------- NUMBER ---------- */

.world-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #777;
}


/* ---------- TEXT ---------- */

.world-link-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.world-link-title {
  position: relative;

  display: inline-block;

  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  letter-spacing: 0.18em;
  line-height: 1.2;
}


/* hover時：中央から横線 */

.world-link-title::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -5px;

  width: 100%;
  height: 1px;

  background: currentColor;

  transform: scaleX(0);
  transform-origin: center;

  transition: transform 0.3s ease;
}

.world-link:hover .world-link-title::after {
  transform: scaleX(0);
}


/* ---------- JAPANESE LABEL ---------- */

.world-link-text small {
  margin-top: 7px;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #777;
}


/* ---------- ARROW ---------- */

.world-arrow {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  color: #777;

  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.world-link:hover .world-arrow {
  transform: translateX(4px);
  color: #222;
}


/* =========================
   WORLD MOBILE
========================= */

@media (max-width: 700px) {

  .world-page {
  width: auto;
  max-width: none;

  margin: 58px 0 0;
  padding: 85px 24px 90px;

  text-align: left;
}

  .world-page > .page-label {
    margin-bottom: 18px;
    font-size: 11px;
    letter-spacing: 0.32em;
  }

  .world-page h1 {
    font-size: 56px;
    line-height: 0.95;
    letter-spacing: 0.04em;
  }

  .world-page .page-description {
    margin-top: 20px;

    font-size: 9px;
    line-height: 2;
    letter-spacing: 0.09em;
  }


  /* ---------- LINKS ---------- */

  .world-links {
    width: 100%;
    margin-top: 55px;

    gap: 14px;
  }

  .world-link {
    grid-template-columns: 38px 1fr auto;

    min-height: 88px;

    padding: 18px 18px;

    border-radius: 7px;
  }

  .world-number {
    font-size: 13px;
  }

  .world-link-title {
    font-size: 20px;
    letter-spacing: 0.14em;
  }

  .world-link-text small {
    margin-top: 6px;
    font-size: 10px;
  }

  .world-arrow {
    font-size: 16px;
  }

}


/* =========================
   CHARACTER PAGE
========================= */

.character-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 140px 40px 120px;
  text-align: left;
}


/* ---------- PAGE HEADER ---------- */

.character-page > .page-label {
  margin: 0 0 24px;

  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  font-weight: 400;
  color: #777;
}

.character-page h1 {
  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 64px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #222;
}

.character-page .page-description {
  margin: 20px 0 0;

  font-family: "ryo-gothic-plusn", sans-serif;
  font-size: 10px;
  line-height: 2;
  letter-spacing: 0.5em;
  color: #555;
}


/* =========================
   DEPARTMENT BLOCK
========================= */

.department {
  --department-color: #777;

  width: 100%;
  margin-top: 60px;

  padding: 28px 30px 30px;

  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}


/* ---------- DEPARTMENT COLORS ---------- */

.department-headquarters {
  --department-color: #2384DE;
}

.department-dating {
  --department-color: #F17EB3;
}

.department-administrative {
  --department-color: #E0A82B;
}

.department-watchdog {
  --department-color: #BB3838;
}

.department-negotiation {
  --department-color: #9A22B3;
}

.department-st {
  --department-color: #74A450;
}


/* ---------- DEPARTMENT LABEL ---------- */

.department-label {
  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;

  color: var(--department-color);
}


/* ---------- DEPARTMENT JAPANESE NAME ---------- */

.department h2 {
  margin: 8px 0 0;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;

  color: var(--department-color);
}


/* =========================
   CHARACTER LIST
========================= */

.character-list {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  column-gap: 20px;
  row-gap: 24px;

  width: 100%;

  margin-top: 25px;
  padding-top: 25px;

  border-top: 1px solid #e5e5e5;
}


/* ---------- CHARACTER LINK ---------- */

.character-list a {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-width: 0;

  color: #222;
  text-decoration: none;

  transition: transform 0.2s ease;
}


/* ---------- JAPANESE NAME ---------- */

.character-list a span {
  position: relative;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.06em;

  color: #222;

  transition: color 0.2s ease;
}


/* ---------- ENGLISH NAME ---------- */

.character-list a small {
  margin-top: 5px;

  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.16em;

  color: #999;

  transition: color 0.2s ease;
}


/* =========================
   CHARACTER HOVER
========================= */

/* 日本語名 */

.character-list a span::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -4px;

  width: 100%;
  height: 1px;

  background: currentColor;

  transform: scaleX(0);
  transform-origin: center;

  transition: transform 0.3s ease;
}


/* hover時：キャラクターカラー */

.character-list a:hover span,
.character-list a:hover small {
  color: var(--character-color);
}


/* hover時：中央から横線 */

.character-list a:hover span::after {
  transform: scaleX(1);
}


/* =========================
   CHARACTER MOBILE
========================= */

@media (max-width: 700px) {

  .character-page {
    width: auto;
    max-width: none;

    margin: 58px 0 0;
    padding: 85px 24px 90px;

    text-align: left;
  }


  /* ---------- HEADER ---------- */

  .character-page > .page-label {
    margin-bottom: 20px;

    font-size: 11px;
    letter-spacing: 0.32em;
  }

  .character-page h1 {
    font-size: 44px;
    line-height: 0.95;
    letter-spacing: 0.08em;
  }

  .character-page .page-description {
    margin-top: 20px;
    margin-bottom: 55px;

    font-size: 9px;
    line-height: 2;
    letter-spacing: 0.09em;
  }


  /* ---------- DEPARTMENT ---------- */

  .department {
    margin-top: 24px;

    padding: 22px 20px 24px;

    border-radius: 7px;
  }

  .department-label {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .department h2 {
    margin-top: 8px;
    padding-top: 11px;

    font-size: 23px;
    letter-spacing: 0.06em;
  }


  /* ---------- CHARACTER LIST ---------- */

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

    column-gap: 16px;
    row-gap: 23px;

    margin-top: 23px;
  }

  .character-list a span {
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .character-list a small {
    margin-top: 4px;

    font-size: 10px;
    letter-spacing: 0.12em;
  }

}


/* =========================
   YOUTUBE
========================= */

.youtube-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin: 40px auto;
}

.youtube-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* =========================
   CHARACTER DETAIL PAGE
========================= */

.character-detail-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 40px;
}

.character-detail-page > .page-label {
  margin: 0 0 20px;
  text-align: center;
   
　font-family: "Cormorant Garamond", serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  font-weight: 400;
  color: #777;
}

.character-detail-page h1 {
  margin: 0;

  text-align: center;

  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.character-name-en {
  margin-top: 20px;

  text-align: center;

  font-family:  "Noto Sans JP", sans-serif;
  font-size: 10px;
  letter-spacing: 0.5em;
  color: #222;
}

.character-intro {
  max-width: 650px;
  margin: 55px auto 100px;

  text-align: center;
}

.character-intro blockquote {
  margin: 35px 0;

  font-size: 16px;
  line-height: 2;
}

.character-detail-page section {
  margin-top: 90px;
}

.character-detail-page h2 {
  margin-bottom: 40px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ddd;

  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.2em;
}

.character-detail-page h2::before {
  content: "●";
  color: var(--character-color);
  margin-right: 0.8em;
}


/* =========================
   PROFILE
========================= */

.profile-list {
  max-width: 700px;
  margin: 0 auto;
}

.profile-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 30px;

  padding: 18px 0;
  border-bottom: 1px solid #e5e5e5;
}

.profile-label {
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.12em;
  color: #888;
}

.profile-value {
  font-size: 14px;
  line-height: 1.8;
}


/* =========================
   RELATIONSHIP
========================= */

.relationship-section {
  margin-top: 70px;
}

.relationship-section h2 {
  margin: 0 0 32px;
}

.relationship-subtitle {
  margin: 0;
}

.relationship-subtitle h3,
.relationship-calling h3 {
  margin: 0 0 22px;

  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.relationship-calling {
  margin-top: 55px;
}


/* =========================
   呼び方 TABLE
========================= */

.calling-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;

  border-top: 1px solid #e5e5e5;
}

.calling-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;

  border-bottom: 1px solid #e5e5e5;
}

.calling-row > div {
  box-sizing: border-box;

  padding: 13px 16px;

  font-size: 12px;
  line-height: 1.7;
}

.calling-header {
  background: #fff;
}

.calling-header > div {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #888;
}

/* =========================================================
   RELATION SOURCE (- ROLL'N GROOVE 表記)
========================================================= */

.relation-source {
  font-size: 11px;

  color: #999;
  opacity: 0.7;
}

/* =========================
   SPECIAL / HOME VOICE
========================= */

.special-voice-section .profile-value,
.home-voice-section .profile-value {
  font-size: 12px;
  line-height: 1.8;
}


/* =========================
   SPECIAL VOICE → BIRTHDAY PAGE
========================= */

.character-detail-page .birthday-page {
  margin-top: -20px;
}

.birthday-page .birthday-year {
  margin: 28px 0 0;

  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #555;
}

.birthday-page .birthday-year:first-child {
  margin-top: 0;
}

.birthday-page .profile-value {
  font-size: 12px;
  line-height: 1.8;
}


/* =========================
   SUB SECTION TITLE
========================= */

.sub-section-title {
  margin: 24px 0 0;
  padding: 0 0 10px;

  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #555;
}


/* =========================
   PERSONAL DATA
========================= */

.personal-data {
  max-width: 700px;
  margin: 0 auto;
}

.data-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 30px;

  padding: 18px 0;
  border-bottom: 1px solid #ddd;
}

.data-label {
  font-size: 12px;
  color: #888;
}

.data-value {
  font-size: 14px;
  color: #222;
}

.background-value {
  font-size: 14px;
  line-height: 2;
  color: #222;
}

.color-code {
  display: inline-block;

  padding: 4px 10px;

  background-color: var(--character-color);
  color: #fff;

  font-size: 13px;
  letter-spacing: 0.05em;
}

.voice-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  font-size: 12px;

  color: var(--character-color);
  text-decoration: none;

  border-bottom: 1px solid currentColor;

  transition: opacity 0.2s ease;
}

.voice-link:hover {
  opacity: 0.6;
}

.voice-link::after {
  content: "";

  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
}

/* =========================
   SPIN
========================= */

.spin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;

  max-width: 1000px;
  margin: 0 auto;
}

.spin-card {
  box-sizing: border-box;
  width: 100%;

  padding: 24px 22px;

  border: 1px solid #e5e5e5;
  border-left: 3px solid var(--character-color);

  background: #fff;
}


/* SPIN HEADER */

.spin-card-header {
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e5e5;
}

.spin-card-header h3 {
  margin: 0 0 8px;

  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.spin-members {
  margin: 0 0 6px;
  font-size: 12px;
}

.spin-location {
  margin: 0;

  font-size: 10px;
  letter-spacing: 0.14em;
  color: #888;
}


/* SPIN BODY */

.spin-card-body {
  padding-top: 18px;
}

.spin-card-body p {
  margin: 0 0 12px;

  font-size: 12px;
  line-height: 1.8;
  color: #555;
}

.spin-card-body p:last-child {
  margin-bottom: 0;
}

.spin-card-body hr {
  margin: 22px 0;

  border: 0;
  border-top: 1px solid #e5e5e5;
}


/* SPIN SUBTITLE */

.spin-subtitle {
  margin: 0 0 10px !important;

  font-size: 11px !important;
  font-weight: 500;

  letter-spacing: 0.05em;
  color: #555 !important;
}

.spin-subtitle-group {
  margin-top: 28px !important;
}


/* 無言の圧：本文2列 */

.spin-pressure-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.spin-pressure-column {
  min-width: 0;
}


/* =========================
   PERSONAL SONG
========================= */

.personal-song-section {
  margin-top: 70px;
}

.personal-song-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;

  max-width: 1000px;
  margin: 0 auto;
}

.personal-song-card {
  min-width: 0;
}

.personal-song-card h3 {
  margin: 0 0 20px;

  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.personal-song-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.personal-song-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.personal-song-info {
  margin-top: 22px;
}

.personal-song-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 20px;

  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
}

.personal-song-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #888;
}

.personal-song-value {
  font-size: 12px;
  line-height: 1.8;
  color: #555;
}


/* =========================
   CARD
========================= */

.cards-section {
  margin-top: 100px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 28px;

  max-width: 1000px;
  margin: 0 auto;
}

.card-item {
  min-width: 0;
}


/* CARD RARITY */

.card-rarity {
  margin-bottom: 3px;

  font-size: 10px;
  letter-spacing: 0.12em;
  color: #888;
}


/* CARD LINK */

.card-link {
  display: block;

  color: inherit;
  text-decoration: none;
}

.card-link h3 {
  margin: 0 0 8px;

  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}


/* CARD IMAGE */

.card-image {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 120px;
  aspect-ratio: 1 / 1;

  overflow: hidden;

  background: #f3f3f3;

  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.card-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 50% 25%;
}


/* CARD HOVER */

.card-link:hover .card-image {
  opacity: 0.8;
}

.card-link:hover h3 {
  opacity: 0.7;
}


/* =========================
   CARD DETAIL PAGE
========================= */

.card-detail-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 150px 40px;
}

.card-detail-page > .page-label {
  margin-bottom: 35px;
  text-align: center;
}


/* CARD TITLE */

.card-detail-card {
  margin-top: 100px;
}

.card-detail-card h2 {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #ddd;

  font-size: 0;
  font-weight: 400;
  line-height: 1.8;
}

.card-detail-rarity,
.card-detail-character,
.card-detail-name {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #222;
}

.card-detail-rarity {
  margin-right: 14px;
}

.card-detail-name {
  margin-left: 14px;
}


/* =========================
   CARD DETAIL IMAGE
========================= */

.card-detail-image-section {
  display: flex;
  justify-content: center;

  margin-top: 15px;
}

.card-detail-image {
  width: 100%;
  max-width: 520px;
  margin: 0;
}

.card-detail-image img {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================
   CARD DETAIL SECTION
========================= */

.card-detail-section {
  margin-top: 75px;
}

.card-detail-section h2 {
  margin: 0 0 25px;
  padding-bottom: 12px;

  border-bottom: 1px solid #ddd;

  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
}

/* CARD PLACEHOLDER */

.card-detail-image.placeholder {
  width: 230px;
  aspect-ratio: 1 / 1;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f3f3f3;

  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #222;
}


/* =========================
   CARD SKILL
========================= */

.card-skill-item .profile-value {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-level {
  display: grid;

  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;

  line-height: 1.7;
}

.skill-level-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  letter-spacing: 0.08em;

  color: #888;
}


/* =========================
   CARD EVENT VIDEO
========================= */

.card-event-videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;

  max-width: 1000px;
  margin: 40px auto 0;
}

.card-event-video {
  position: relative;

  width: 280px;
  max-width: 280px;

  aspect-ratio: 16 / 9;

  margin: 40px 0 0;

  overflow: hidden;
  background: #f3f3f3;
}

.card-event-video iframe {
  display: block;

  width: 100%;
  height: 100%;

  border: none;
}


/* =========================
   PAGE BACK LINK
========================= */

.page-back-section {
  margin-top: 150px;
  text-align: center;
}

.page-back-link {
  position: relative;

  display: inline-flex;
  flex-direction: column;
  align-items: center;

  text-decoration: none;
}

.page-back-link span {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #111;
}

.page-back-link small {
  margin-top: 8px;

  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: #b8aeb0;
}

.page-back-link::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: -6px;

  width: 0;
  height: 1px;

  background: #111;

  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.page-back-link:hover::after {
  width: 100%;
}


/* =========================
   RESPONSIVE
========================= */


/* ---------- Tablet ---------- */

@media (min-width: 701px) and (max-width: 1199px) {

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

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

}


/* ---------- Mobile ---------- */

@media (max-width: 700px) {

  /* CHARACTER */

  .character-page,
  .character-detail-page,
  .card-detail-page {
    padding: 90px 24px;
  }

  @media (max-width: 700px) {

  .character-page h1 {
    font-size: 56px;
    line-height: 0.95;
    letter-spacing: 0.04em;
  }

}

  /* PROFILE */

  .profile-list {
    width: 100%;
    max-width: none;
  }

  .profile-item {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 18px;

    padding: 15px 0;
  }

  .profile-label {
    font-size: 11px;
  }

  .profile-value {
    font-size: 14px;
    line-height: 1.8;
  }

/* PERSONAL DATA */

.data-row {
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 18px;
}

.data-value {
  font-size: 14px;
  line-height: 1.8;
}

  /* BIRTHDAY */

  .birthday-page .birthday-year {
    margin-top: 24px;
    font-size: 11px;
  }

  .birthday-page .profile-value {
    font-size: 12px;
    line-height: 1.8;
  }


  /* RELATIONSHIP */

  .relationship-section {
    margin-top: 55px;
  }

  .relationship-calling {
    margin-top: 45px;
  }

  .calling-table {
    overflow-x: visible;
  }

  .calling-row {
    grid-template-columns: 1.3fr 0.85fr 0.85fr;
  }

  .calling-row > div {
    padding: 11px 8px;
    font-size: 11px;
  }

  .calling-header > div {
    font-size: 10px;
  }


  /* SPIN */

  .spin-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .spin-card {
    padding: 24px 22px;
  }

  .spin-pressure-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }


  /* PERSONAL SONG */

  .personal-song-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .personal-song-card h3 {
    font-size: 15px;
  }

  .personal-song-row {
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 15px;
  }


  /* CARD */

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .card-image {
    width: 100px;
    height: 100px;
  }


  /* CARD EVENT VIDEO */

  .card-event-videos {
    gap: 24px;
    margin-top: 30px;
  }

  .card-event-video {
    flex-basis: 100%;
    max-width: 100%;
  }

}


/* =========================
   EVENT VIDEO
========================= */

/* 動画全体 */
.card-event-video {
  position: relative;

  width: 100%;
  max-width: 550px;

  aspect-ratio: 16 / 9;

  margin: 40px 0 0;

  overflow: hidden;
  background: #f3f3f3;
}

/* YouTube iframe */
.card-event-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}


/* =========================
   EVENT VIDEO MOBILE
========================= */

@media (max-width: 700px) {

  .card-event-videos {
    gap: 24px;
    margin-top: 30px;
  }

  .card-event-video {
    flex-basis: 100%;
    max-width: 100%;
  }

}


/* =========================
   CARD DETAIL MOBILE
========================= */

@media (max-width: 700px) {

  .card-detail-page {
    padding: 80px 20px;
  }

  .card-detail-page > .page-label {
    margin-bottom: 28px;
  }

  .card-detail-title h1 {
    font-size: 34px;
    letter-spacing: 0.08em;
  }
   
   .card-detail-rarity,
   .card-detail-character,
   .card-detail-name {
    font-size: 16px;
  }

  .card-detail-image-section {
    margin-top: 15px;
  }

  .card-detail-image {
    width: 480px;
  }

  .card-detail-section {
    margin-top: 75px;
  }

  .card-detail-section h2 {
    margin-bottom: 30px;
  }

  .card-skill-item .profile-value {
    gap: 15px;
  }

  .skill-level {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }

  .card-event-video {
    margin-top: 30px;
  }

}

/* =========================
   CARD DETAIL PROFILE
========================= */

.card-detail-page .profile-item {
  padding: 13px 0;

  font-size: 14px;
}

.card-detail-page .profile-value {
  font-size: 13px;
  line-height: 1.7;
}

.card-detail-page .profile-label {
  font-size: 11px;
}


/* =========================
   X
========================= */

.card-x-section {
  margin-top: 75px;
}


/* =========================
   X POSTS
========================= */

.x-posts {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;

  width: 100%;
  margin-top: 30px;
}

.x-post {
  min-width: 0;
  width: 100%;
}

.x-post .twitter-tweet {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  margin: 0 !important;
}


/* =========================
   X POST MOBILE
========================= */

@media (max-width: 700px) {

  .x-posts {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .x-post {
    width: 100%;
  }

}


/* =========================
   CHARACTER EVENT
========================= */

.character-event-list {
  display: flex;
  flex-direction: column;
}

.character-event-link {
  display: inline-block;
  width: fit-content;
  padding: 8px 0;

  color: #222;
  text-decoration: none;

  font-size: 12px;
  letter-spacing: 0.06em;
}

.character-event-link:hover {
  opacity: 0.6;
}


/* =========================
   MEMO
========================= */

.memo-list {
  margin-top: 28px;
  max-width: 760px;
}

.memo-list p {
  margin: 0 0 12px;
  padding-left: 0;

  font-size: 11px;
  line-height: 2;

  color: #777;
}

.memo-list p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   CHARACTER LIST
========================================================= */

.character-list-section {
  margin-bottom: 80px;
}

.character-list-link {
  position: relative;

  display: block;
  width: fit-content;

  margin: 0 auto;
  padding-bottom: 8px;

  color: #222;
  text-decoration: none;
  text-align: center;
}

.character-list-link span {
  display: block;

  font-size: 14px;
  letter-spacing: 0.08em;
}

.character-list-link small {
  display: block;

  margin-top: 7px;

  font-family: "Cormorant Garamond", serif;
  font-size: 10px;
  letter-spacing: 0.18em;

  color: #888;
}

.character-list-link::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1px;

  background: #222;

  transform: scaleX(0);
  transform-origin: center;

  transition: transform 0.35s ease;
}

.character-list-link:hover::after {
  transform: scaleX(1);
}


/* =========================================================
   PAGE INDEX
========================================================= */

.page-index-button {
  position: fixed;
  right: 30px;
  bottom: 30px;

  z-index: 1101;

  width: 64px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #c8c8c8;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.92);
  color: #222;

  cursor: pointer;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.page-index-button:hover {
  transform: translateY(-2px);
}


/* =========================================================
   INDEX PANEL
========================================================= */

.page-index-panel {
  position: fixed;
  inset: 0;

  z-index: 1100;

  background: rgba(255, 255, 255, 0.97);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.page-index-panel.is-open {
  opacity: 1;
  visibility: visible;
}


/* =========================================================
   INDEX INNER
========================================================= */

.page-index-inner {
  width: min(520px, calc(100% - 48px));
  height: 100%;

  margin: 0 auto;

  display: flex;
  flex-direction: column;
  justify-content: center;

  text-align: center;
}


/* =========================================================
   INDEX HEADER
========================================================= */

.page-index-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 18px;

  border-bottom: 1px solid #ddd;

  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.2em;
}

.page-index-close {
  padding: 0;

  border: none;
  background: none;

  color: #222;

  font-size: 22px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;
}


/* =========================================================
   INDEX NAV
========================================================= */

.page-index-nav {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-top: 28px;
}

.page-index-nav a {
  position: relative;

  display: block;
  width: 100%;
  max-width: 420px;

  padding: 13px 0;

  border-bottom: 1px solid #eee;

  color: #111;
  text-decoration: none;
  text-align: center;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.page-index-nav a::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: -1px;

  width: 0;
  height: 1px;

  background: #222;

  transform: translateX(-50%);

  transition: width 0.25s ease;
}

.page-index-nav a:hover::after {
  width: 100%;
}


/* =========================================================
   SITE MENU
========================================================= */

/* ---------- MENU BUTTON ---------- */

.site-menu-button {
  display: none;

  position: fixed;
  top: 28px;
  left: 28px;

  z-index: 1001;

  border: none;
  background: transparent;

  padding: 0;

  color: #111;

  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  letter-spacing: 0.18em;

  cursor: pointer;
}

.site-menu-button span {
  position: relative;
}

.site-menu-button span::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: -6px;

  width: 0;
  height: 1px;

  background: #111;

  transform: translateX(-50%);

  transition: width 0.25s ease;
}

.site-menu-button:hover span::after {
  width: 100%;
}


/* ---------- PANEL ---------- */

.site-menu-panel {
  position: fixed;
  inset: 0;

  z-index: 1000;

  background: rgba(0, 0, 0, 0.08);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.site-menu-panel.is-open {
  opacity: 1;
  visibility: visible;
}


/* ---------- INNER ---------- */

.site-menu-inner {
  width: min(340px, 82vw);
  height: 100%;

  margin-left: auto;

  box-sizing: border-box;

  padding: 42px;

  background: rgba(255, 255, 255, 0.97);

  transform: translateX(100%);

  transition: transform 0.35s ease;

  display: flex;
  flex-direction: column;
}

.site-menu-panel.is-open .site-menu-inner {
  transform: translateX(0);
}


/* ---------- HEADER ---------- */

.site-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 18px;

  border-bottom: 1px solid #ddd;

  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.2em;
}

.site-menu-close {
  padding: 0;

  border: none;
  background: none;

  color: #111;

  font-size: 22px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;
}


/* ---------- NAV ---------- */

.site-menu-nav {
  display: flex;
  flex-direction: column;

  margin-top: 30px;
}

.site-menu-nav a {
  position: relative;

  display: block;

  padding: 14px 0;

  color: #111;
  text-decoration: none;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  letter-spacing: 0.16em;
}

.site-menu-nav a::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: 7px;

  width: 0;
  height: 1px;

  background: #111;

  transform: translateX(-50%);

  transition: width 0.25s ease;
}

.site-menu-nav a:hover::after {
  width: 100%;
}

/* =========================
   SITE MENU ICONS
========================= */

.site-menu-icons {
  display: flex;
  align-items: center;
  gap: 20px;

  margin-top: auto;
  padding-top: 30px;

  border-top: 1px solid #eee;
}

.site-menu-icons a {
  display: flex;
  align-items: center;
  justify-content: center;

  color: inherit;
  text-decoration: none;

  transition: opacity 0.25s ease;
}

.site-menu-icons a:hover {
  opacity: 0.6;
}

.site-menu-icons img {
  display: block;

  width: 20px;
  height: 20px;

  object-fit: contain;
}

.site-menu-icons .icon-x {
  width: 19px;   /* ← Xだけこの数値を調整 */
  height: 19px;
}

.site-menu-icons .icon-wavebox {
  width: 28px;   /* ← Waveboxだけこの数値を調整 */
  height: 28px;
}


/* =========================================================
   CONTACT LINKS
========================================================= */

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  margin-top: 32px;
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  color: #222;
  text-decoration: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.contact-links a:hover {
  opacity: 0.55;
  transform: translateY(-2px);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 27px;
  height: 27px;

  border: none;
  border-radius: 50%;

  background-color: #222;

  overflow: hidden;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  letter-spacing: 0.05em;
}

.contact-icon img {
  display: block;

  width: 55%;
  height: 55%;

  object-fit: contain;

  filter: brightness(0) invert(1);
}

.contact-icon-x img {
  width: 32%;
  height: 32%;
}


/* =========================================================
   SITE GUIDE
========================================================= */

.site-guide {
  max-width: 600px;

  margin: 0 auto;
  padding: 70px 24px;

  text-align: center;
}

.site-guide-label {
  margin: 0 0 35px;

  font-family: "ryo-gothic-plusn", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.38em;

  color: #999;
}

.site-guide-list {
  display: flex;
  flex-direction: column;

  gap: 24px;
}

.site-guide-item h3 {
  margin: 0 0 5px;

  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.site-guide-item p {
  margin: 0;

  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.04em;

  color: #777;
}

.section-divider {
  width: 100%;
  height: 1px;

  background: #e5e5e5;
}


/* =========================================================
   UPDATE LINK
========================================================= */

.update-link {
  margin-top: 36px;

  text-align: center;
}

.update-link a {
  position: relative;

  font-family: "Noto Sans JP", serif;
  font-size: 9px;
  letter-spacing: 0.25em;

  color: #777;
  text-decoration: none;
}

.update-link a::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: -5px;

  width: 0;
  height: 1px;

  background: #777;

  transform: translateX(-50%);

  transition: width 0.25s ease;
}

.update-link a:hover::after {
  width: 100%;
}


/* =========================================================
   UPDATE LOG (RECEIPT STYLE)
========================================================= */

.updates {
  max-width: 720px;

  margin: 0 auto;
  padding: 130px 24px 100px;

  box-sizing: border-box;

  text-align: center;
}

.updates-label {
  margin: 0 0 20px;

  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.38em;

  color: #777;
}

.updates h1 {
  margin: 0 0 16px;

  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.updates-description {
  margin: 0 0 60px;

  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.06em;

  color: #777;
}


/* ---------- RECEIPT BODY ---------- */

.receipt {
  position: relative;

  width: min(380px, 100%);

  margin: 0 auto;
  padding: 30px 26px 26px;

  background: #fff;

  box-shadow:
    0 2px 6px rgba(17, 17, 17, 0.04),
    0 24px 40px -26px rgba(17, 17, 17, 0.22);

  text-align: left;
}


/* ---------- TORN EDGE (上下ギザギザ) ---------- */

.receipt::before,
.receipt::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;

  height: 10px;

  background:
    linear-gradient(-45deg, transparent 7px, #fff 7px) 0 0,
    linear-gradient(45deg, transparent 7px, #fff 7px) 0 0;

  background-size: 14px 14px;
  background-repeat: repeat-x;
}

.receipt::before {
  top: -10px;
}

.receipt::after {
  bottom: -10px;
  transform: scaleY(-1);
}


/* ---------- RECEIPT HEADER ---------- */

.receipt-header {
  padding-bottom: 20px;

  border-bottom: 1px dashed rgba(34, 34, 34, 0.2);

  text-align: center;
}

.receipt-shop {
  margin: 0 0 6px;

  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.14em;

  color: #222;
}

.receipt-sub {
  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 10px;
  letter-spacing: 0.2em;

  color: #999;
}


/* ---------- RECEIPT LIST ---------- */

.receipt-list {
  margin-top: 22px;
}

.receipt-item {
  padding: 16px 0;

  border-bottom: 1px dashed rgba(34, 34, 34, 0.14);
}

.receipt-item:first-child {
  padding-top: 0;
}

.receipt-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}


/* ---------- DATE + LEADER + TITLE ---------- */

.receipt-row {
  display: flex;
  align-items: baseline;

  gap: 8px;
}

.receipt-row time {
  flex-shrink: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.08em;

  color: #999;
}

.receipt-leader {
  flex: 1;

  height: 1px;

  margin-bottom: 3px;

  background-image: linear-gradient(to right, rgba(34, 34, 34, 0.3) 33%, transparent 0%);
  background-position: bottom;
  background-size: 4px 1px;
  background-repeat: repeat-x;
}

.receipt-row h2 {
  flex-shrink: 0;

  margin: 0;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;

  color: #222;
}

.receipt-item p {
  margin: 8px 0 0;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.03em;

  color: #888;
}


/* ---------- RECEIPT FOOTER ---------- */

.receipt-footer {
  margin-top: 24px;
  padding-top: 18px;

  border-top: 1px dashed rgba(34, 34, 34, 0.2);

  text-align: center;
}

.receipt-count {
  margin: 0 0 14px;

  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  letter-spacing: 0.16em;

  color: #999;
}

.receipt-barcode {
  width: 100%;
  height: 24px;

  background-image: repeating-linear-gradient(
    to right,
    #222 0,
    #222 1px,
    transparent 1px,
    transparent 3px,
    #222 3px,
    #222 5px,
    transparent 5px,
    transparent 6px,
    #222 6px,
    #222 6.5px,
    transparent 6.5px,
    transparent 9px
  );

  opacity: 0.55;
}


/* ---------- BACK LINK ---------- */

.updates .back-link {
  display: inline-block;

  margin-top: 48px;

  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.16em;

  color: #999;
  text-decoration: none;
}

.updates .back-link:hover {
  color: #222;

  text-decoration: underline;
  text-underline-offset: 5px;
}


/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

  .updates {
    padding: 100px 20px 80px;
  }

  .updates h1 {
    font-size: 30px;
  }

  .updates-description {
    margin-bottom: 44px;

    font-size: 10px;
  }

  .receipt {
    padding: 26px 20px 22px;
  }

  .receipt-row {
    flex-wrap: wrap;
  }

  .receipt-leader {
    display: none;
  }

  .receipt-row time {
    font-size: 11px;
  }

  .receipt-row h2 {
    font-size: 11px;
  }

}


/* =========================================================
   UPDATE LOG LINK
========================================================= */

.update-log-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;

  margin: 36px auto 20px;

  color: #555;
  text-decoration: none;
}

.update-log-link img {
  display: block;

  width: 16px;
  height: auto;

  opacity: 0.8;

  transition: opacity 0.2s ease;
}

.update-log-link span {
  margin-top: 8px;

  font-family: "Noto Sans JP", serif;
  font-size: 9px;
  letter-spacing: 0.22em;

  color: #555;

  opacity: 0;

  transform: translateY(-3px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.update-log-link:hover img {
  opacity: 1;
}

.update-log-link:hover span,
.update-log-link:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   CARD DETAIL IMAGE
========================================================= */

.card-detail-image:has(span) {
  display: flex;
  align-items: center;
  justify-content: center;

  aspect-ratio: 1 / 1;

  background: #f3f3f3;

  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  letter-spacing: 0.12em;
}

.card-detail-image:has(img) {
  background: transparent;
}


/* =========================================================
   MOBILE MENU
========================================================= */

@media (max-width: 600px) {

  /* ---------- MENU BUTTON ---------- */

  .site-menu-button {
    top: 18px;
    right: 18px;
    left: auto;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #c8c8c8;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.92);

    color: #222;

    font-family: "Noto Sans JP", serif;
    font-size: 10px;
    letter-spacing: 0.18em;

    transition:
      background 0.25s ease,
      color 0.25s ease,
      transform 0.25s ease;
  }

  .site-menu-button:hover {
    transform: translateY(-2px);
  }

  .site-menu-button span::after {
    display: none;
  }


  /* ---------- OPEN STATE ---------- */

  .site-menu-button.is-hidden {
    opacity: 0;
    pointer-events: none;
  }


  /* ---------- MOBILE MENU INNER ---------- */

  .site-menu-inner {
    width: min(340px, 82vw);

    padding: 42px;
  }

}


/* =========================================================
   MOBILE PAGE INDEX
========================================================= */

@media (max-width: 600px) {

  .page-index-button {
    right: 18px;
    bottom: 18px;

    width: 52px;
    height: 52px;
  }

  .page-index-inner {
    width: calc(100% - 48px);

    padding: 80px 0 60px;
  }

  .page-index-nav {
    margin-top: 22px;
  }

  .page-index-nav a {
    padding: 11px 0;
  }

}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 700px) {

  .navigation-links {
    display: grid;

    grid-template-columns:
      repeat(12, minmax(0, 1fr));

    column-gap: 8px;
    row-gap: 18px;

    width: 100%;
    max-width: 360px;

    margin: 0 auto;
  }

  .navigation-links a {
    font-size: 10px;
    letter-spacing: 0.12em;

    text-align: center;
  }

  /* 1段目：WORLD / CHARACTER / STORY */

  .navigation-links a:nth-child(1),
  .navigation-links a:nth-child(2),
  .navigation-links a:nth-child(3) {
    grid-column: span 4;
  }

  /* 2段目：EVENT / MUSIC / MEDIA / × stmy */

  .navigation-links a:nth-child(4),
  .navigation-links a:nth-child(5),
  .navigation-links a:nth-child(6),
  .navigation-links a:nth-child(7) {
    grid-column: span 3;
  }

     /* 3段目：× stmy */

  .navigation-links a:nth-child(8) {
    grid-column: span 12;
  }

}

/* =========================================================
   MOBILE SNAP SECTIONS (SITE GUIDE / ABOUT)
========================================================= */

@media (max-width: 700px) {

  /* ---------- SITE GUIDE ---------- */

  .site-guide {
    max-height: 100svh;
    overflow-y: auto;

    padding: 60px 24px;
  }

  .site-guide-label {
    margin-bottom: 20px;

    font-size: 10px;
  }

  .site-guide-list {
    gap: 14px;
  }

  .site-guide-item h3 {
    font-size: 12px;
  }

  .site-guide-item p {
    font-size: 9px;
    line-height: 1.6;
  }


  /* ---------- ABOUT ---------- */

  .about {
    padding: 70px 20px;
  }

  .about-label {
    margin-bottom: 18px;
  }

  .about > p:not(.about-label):not(.site-name):not(.unofficial) {
    margin-top: 22px;

    font-size: 11px;
    line-height: 1.8;
  }

  .contact-links {
    margin-top: 22px;
  }

  .site-name {
    margin-top: 26px;
  }

}

/* =========================================================
   STORY PAGE
========================================================= */

.story-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 140px 40px 140px;
  text-align: left;
}


/* =========================================================
   STORY INTRO
========================================================= */

.story-intro {
  margin: 0 0 70px;
}

.story-intro .page-label {
  margin: 0 0 24px;

  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.35em;

  color: #777;
}

.story-intro h1 {
  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 64px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.12em;

  color: #222;
}

.story-intro .page-description {
  margin: 20px 0 0;

  font-family: "ryo-gothic-plusn", sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.5em;

  color: #555;
}


/* =========================================================
   STORY SEARCH
========================================================= */

.story-search {
  width: 100%;

  padding: 34px 40px 42px;   /* 40px → 34px */

  box-sizing: border-box;

  background: #fff;

  border: 1px solid #e5e5e5;
  border-radius: 8px;
}


/* =========================================================
   STORY SEARCH GROUP
========================================================= */

.story-search-group {
  margin-top: 34px;
}

.story-search-group:first-of-type {
  margin-top: 0;
}


/* ---------- SEARCH LABEL ---------- */

.story-search-label {
  display: block;

  margin: 0 0 12px;

  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.25em;

  color: #777;
}


/* =========================================================
   STORY FILTER BUTTONS
========================================================= */

.story-filter-buttons {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;
}

.story-filter-buttons label {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 100px;
  height: 42px;

  padding: 0 20px;

  box-sizing: border-box;

  border: 1px solid #ddd;

  background: #fff;

  cursor: pointer;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.story-filter-buttons input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}

.story-filter-buttons span {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.14em;

  color: #666;

  transition: color 0.2s ease;
}


.story-type-buttons span {
  font-family: "Noto Sans JP", sans-serif;
}


.story-filter-buttons label:has(input:checked) {
  border-color: #222;
  background: #222;
}

.story-filter-buttons label:has(input:checked) span {
  color: #fff;
}

.story-filter-buttons label:hover {
  border-color: #aaa;
}


/* =========================================================
   STORY TITLE INPUT
========================================================= */

.story-search-input {
  display: block;

  width: 100%;
  height: 48px;

  padding: 0 16px;

  box-sizing: border-box;

  border: 1px solid #ddd;
  border-radius: 0;

  outline: none;

  background: #fff;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;

  color: #222;

  transition: border-color 0.2s ease;
}

.story-search-input::placeholder {
  color: #aaa;
}

.story-search-input:focus {
  border-color: #999;
}


/* =========================================================
   STORY CHARACTER SELECT
========================================================= */

.story-character-select {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 8px 10px;

  max-height: 230px;

  padding: 16px;

  overflow-y: auto;

  box-sizing: border-box;

  border: 1px solid #ddd;

  background: #fff;
}

.story-character-select label {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 34px;

  padding: 5px 8px;

  box-sizing: border-box;

  cursor: pointer;

  transition: background-color 0.2s ease;
}

.story-character-select label:hover {
  background: #f7f7f7;
}

.story-character-select input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}

.story-character-select span {
  position: relative;

  padding-left: 18px;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;

  color: #555;
}

.story-character-select span::before {
  content: "";

  position: absolute;
  left: 0;
  top: 50%;

  width: 10px;
  height: 10px;

  transform: translateY(-50%);

  border: 1px solid #ccc;

  box-sizing: border-box;

  background: #fff;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.story-character-select input:checked + span::before {
  border-color: #222;

  background: #222;
}

.story-character-select input:checked + span::after {
  content: "";

  position: absolute;
  left: 3px;
  top: 50%;

  width: 4px;
  height: 7px;

  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;

  transform:
    translateY(-65%)
    rotate(45deg);
}


/* =========================================================
   STORY SEARCH ACTION
========================================================= */

.story-search-action {
  display: flex;
  justify-content: center;

  gap: 26px;

  margin-top: 40px;
  padding-top: 28px;

  border-top: 1px solid #e5e5e5;
}

.story-search-button,
.story-reset-button {
  position: relative;

  padding: 0;

  border: none;
  background: none;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;

  color: #555;

  cursor: pointer;
}

.story-search-button::after,
.story-reset-button::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: -6px;

  width: 0;
  height: 1px;

  background: currentColor;

  transform: translateX(-50%);

  transition: width 0.25s ease;
}

.story-search-button:hover::after,
.story-reset-button:hover::after {
  width: 100%;
}


/* =========================================================
   STORY RESULTS
========================================================= */

.story-results {
  margin-top: 100px;
}

.story-results-header {
  margin-bottom: 30px;
}

.story-results-header .section-label {
  margin: 0 0 18px;

  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.35em;

  color: #777;
}

.story-results-header h2 {
  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.12em;

  color: #222;
}

#story-result-count {
  margin: 14px 0 0;

  font-family: "ryo-gothic-plusn", sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;

  color: #999;
}


/* =========================================================
   STORY LIST
========================================================= */

.story-list {
  display: flex;
  flex-direction: column;

  gap: 12px;

  margin-top: 28px;
}


/* =========================================================
   STORY ITEM
========================================================= */

.story-item {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1.6fr)
    auto;

  align-items: center;

  min-height: 110px;

  padding: 22px 26px;

  box-sizing: border-box;

  background: #fff;

  border: 1px solid #e5e5e5;
  border-radius: 8px;

  color: #222;
  text-decoration: none;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.story-item:hover {
  transform: translateY(-2px);

  border-color: #d5d5d5;
}


/* ---------- STORY TYPE ---------- */

.story-item-type {
  display: inline-block;

  margin-bottom: 8px;

  padding: 3px 10px;

  border: 1px solid rgba(34, 34, 34, 0.16);
  border-radius: 999px;

  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  letter-spacing: 0.14em;

  color: #555;

  white-space: nowrap;
}


/* ---------- STORY MAIN ---------- */

.story-item-main {
  min-width: 0;

  padding: 0 20px;
}

.story-item-main h3 {
  margin: 0;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.06em;

  color: #222;
}


/* ---------- SUMMARY ---------- */

.story-item-summary {
  margin: 14px 0 0;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.04em;

  color: #777;
}


/* ---------- EPISODE ---------- */

.story-item-episode {
  margin: 6px 0 0;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;

  letter-spacing: 0.12em;
  color: #999;
}


/* ---------- STORY INFO ---------- */

.story-item-info {
  padding-left: 20px;

  border-left: 1px solid #e8e8e8;
}

.story-item-info p {
  margin: 0;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.04em;

  color: #777;
}

.story-item-info p + p {
  margin-top: 5px;
}

.story-item-info span {
  display: inline-block;

  margin-right: 8px;

  font-family: "Cormorant Garamond", serif;
  font-size: 10px;
  letter-spacing: 0.12em;

  color: #999;
}


/* ---------- DETAIL LINK ---------- */

.story-item-link {
  position: relative;

  margin-left: 24px;

  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  letter-spacing: 0.16em;

  color: #555;
  text-decoration: none;

  white-space: nowrap;
}

.story-item-link::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: -6px;

  width: 0;
  height: 1px;

  background: currentColor;

  transform: translateX(-50%);

  transition: width 0.25s ease;
}

.story-item-link:hover::after {
  width: 100%;
}


/* =========================================================
   STORY TYPE COLORS
========================================================= */

.story-item-type[data-type="main"] {
  border-color: rgba(166, 88, 226, 0.4);
  color: #a658e2;
}

.story-item-type[data-type="personal"] {
  border-color: rgba(212, 123, 177, 0.4);
  color: #d47bb1;
}

.story-item-type[data-type="card"] {
  border-color: rgba(155, 207, 239, 0.5);
  color: #4a9dc4;
}

.story-item-type[data-type="event"] {
  border-color: rgba(228, 211, 133, 0.5);
  color: #b39a2e;
}

/* =========================================================
   STORY NO RESULT
========================================================= */

.story-no-result {
  margin: 40px 0 0;

  padding: 50px 20px;

  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;

  text-align: center;

  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.12em;

  color: #999;
}


/* =========================================================
   MOBILE HOME
========================================================= */

@media (max-width: 700px) {

  /* ---------- HERO ---------- */

  .hero {
    padding: 80px 20px;
  }

  .eyebrow {
    margin-bottom: 22px;

    font-size: 12px;
    letter-spacing: 0.3em;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 72px);

    letter-spacing: 0;
  }

  .description {
    margin-top: 30px;

    font-size: 8px;
    line-height: 1.8;
    letter-spacing: 0.5em;
  }


  /* ---------- MAIN NAVIGATION ---------- */

  .main-navigation {
    margin-top: 45px;
  }

  .navigation-label {
    margin-bottom: 22px;

    font-size: 8px;
  }


  /* ---------- ABOUT ---------- */

  .about {
    padding: 110px 20px 100px;
  }

  .about-label {
    margin-bottom: 26px;

    font-size: 10px;
  }

  .about h2 {
    font-size: clamp(32px, 9vw, 48px);
  }

  .about > p:not(.about-label):not(.site-name):not(.unofficial) {
    max-width: 440px;

    margin-top: 30px;

    font-size: 12px;
    line-height: 2;
  }

  .site-name {
    margin-top: 38px;

    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .unofficial {
    font-size: 11px;
    letter-spacing: 0.24em;
  }


  /* ---------- CONTACT ---------- */

  .contact-links {
    gap: 8px;

    margin-top: 28px;
  }

  .contact-icon {
    width: 36px;
    height: 36px;

    font-size: 15px;
  }


  /* ---------- FIXED HEADER ---------- */

  .site-header {
    height: 58px;

    padding: 0 18px;
  }

  .site-header-logo span {
  font-family: "Bodoni Moda", serif;
  font-size: 17px;
  letter-spacing: -0.05em;
  }

  .site-header-logo small {
    display: none;
  }

  .site-header-nav {
    display: none;
  }
   
   .site-header-icons {
    display: none;
  }

  .side-label {
    right: 10px;

    font-size: 7px;
  }

}


/* =========================================================
   STORY MOBILE
========================================================= */

@media (max-width: 700px) {

  /* ---------- PAGE ---------- */

  .story-page {
    width: auto;
    max-width: none;

    margin: 58px 0 0;

    padding: 85px 24px 90px;

    box-sizing: border-box;
  }


  /* ---------- INTRO ---------- */

  .story-intro {
    margin-bottom: 70px;
  }

  .story-intro .page-label {
    margin-bottom: 20px;

    font-size: 11px;
    letter-spacing: 0.32em;
  }

    .story-intro h1 {
    font-size: 56px;

    line-height: 0.95;
    letter-spacing: 0.04em;
  }

  .story-intro .page-description {
    margin-top: 20px;

    font-size: 9px;
    line-height: 2;
    letter-spacing: 0.2em;
  }


  /* ---------- SEARCH ---------- */

  .story-search {
    padding: 42px 20px 36px;

    border-radius: 8px;
  }

  .story-search-header {
    margin-bottom: 42px;
  }

  .story-search-header .section-label {
    margin-bottom: 17px;

    font-size: 11px;
  }

  .story-search-header h2 {
    font-size: 29px;
    letter-spacing: 0.1em;
  }


  /* ---------- GROUP ---------- */

  .story-search-group {
    margin-top: 32px;
  }

  .story-search-label {
    margin-bottom: 12px;

    font-size: 11px;
    letter-spacing: 0.22em;
  }


  /* ---------- TYPE ---------- */

  .story-filter-buttons {
    gap: 8px;
  }

  .story-filter-buttons label {
    min-width: 0;

    height: 42px;

    padding: 0 19px;
  }

  .story-filter-buttons span {
    font-size: 12px;
    letter-spacing: 0.12em;
  }


  /* ---------- TITLE ---------- */

  .story-search-input {
    height: 48px;

    padding: 0 14px;

    font-size: 12px;
  }


  /* ---------- CHARACTERS ---------- */

  .story-character-select {
    grid-template-columns: 1fr 1fr;

    max-height: 230px;

    padding: 12px;

    gap: 4px 8px;
  }

  .story-character-select label {
    min-height: 34px;

    padding: 4px 5px;
  }

  .story-character-select span {
    padding-left: 17px;

    font-size: 10px;
  }


  /* ---------- ACTION ---------- */

  .story-search-action {
    margin-top: 34px;

    padding-top: 25px;

    gap: 24px;
  }


  /* ---------- RESULTS ---------- */

  .story-results {
    margin-top: 75px;
  }

  .story-results-header {
    margin-bottom: 24px;
  }

  .story-results-header .section-label {
    margin-bottom: 17px;

    font-size: 11px;
  }

  .story-results-header h2 {
    font-size: 29px;
    letter-spacing: 0.1em;
  }

  #story-result-count {
    margin-top: 12px;

    font-size: 11px;
  }


  /* ---------- LIST ---------- */

  .story-list {
    gap: 10px;

    margin-top: 22px;
  }


  /* ---------- ITEM ---------- */

  .story-item {
    display: block;

    min-height: 0;

    padding: 20px;
  }

  .story-item-type {
    margin-bottom: 10px;

    font-size: 10px;
  }

  .story-item-main {
    padding: 0;
  }

  .story-item-main h3 {
    font-size: 14px;
  }

  .story-item-episode {
    margin-top: 6px;

    font-size: 11px;
  }

  .story-item-info {
    margin-top: 16px;

    padding: 14px 0 0;

    border-top: 1px solid #eee;
    border-left: none;
  }

  .story-item-info p {
    font-size: 9px;
  }

  .story-item-info span {
    font-size: 9px;
  }

  .story-item-link {
    display: inline-block;

    margin: 16px 0 0;

    font-size: 10px;
  }

}


/* =========================================
   STORY LIST
   タイトル欄が情報量に押しつぶされないようにする
========================================= */

.story-item {
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1.6fr)
    auto;
}

.story-item-main,
.story-item-info {
  min-width: 0;
}

.story-item-info {
  overflow-wrap: anywhere;
}

.story-item-info p {
  display: grid;

  grid-template-columns: 88px minmax(0, 1fr);

  margin: 0;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.04em;

  color: #777;

  overflow-wrap: anywhere;
}

.story-item-info p + p {
  margin-top: 5px;
}

.story-item-info span {
  display: block;

  margin-right: 8px;

  font-family: "Cormorant Garamond", serif;
  font-size: 10px;
  letter-spacing: 0.12em;

  color: #999;
}


/* =========================================
   STORY EPISODE
========================================= */

.story-item-episode {
  margin-top: 14px;
  padding-left: 0px;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;

  color: #444;
}


/* =========================================
   SUB FILTER BUTTONS
   VIEWPOINT / SUPERVISOR / WRITER
========================================= */

#story-supervisor-select label,
#story-writer-select label {
  min-width: auto;
  height: 28px;

  padding: 0 10px;

  border: 1px solid #ddd;
  border-radius: 999px;

  background: #fff;
}

#story-supervisor-select span,
#story-writer-select span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}


/* ---------- SUB FILTER HOVER ---------- */

#story-supervisor-select label:hover,
#story-writer-select label:hover {
  border-color: #aaa;
}


/* ---------- SUB FILTER CHECKED ---------- */

#story-supervisor-select label:has(input:checked),
#story-writer-select label:has(input:checked) {
  border-color: #222;
  background: #222;
}

#story-supervisor-select label:has(input:checked) span,
#story-writer-select label:has(input:checked) span {
  color: #fff;
}

/* =========================================================
   OKOGE CURSOR
========================================================= */

body {
  cursor: url("images/okoge_cursor_32x32.png") 2 2, auto;
}

a,
button,
select,
input[type="button"],
input[type="submit"] {
  cursor: url("images/okoge_cursor_32x32.png") 2 2, pointer;
}

/* =========================================================
   REFINED BOX STYLE
========================================================= */

.world-link,
.spin-card,
.story-search,
.story-item {
  border: 1px solid rgba(34, 34, 34, 0.05);

  box-shadow:
    0 1px 2px rgba(17, 17, 17, 0.02),
    0 14px 28px -20px rgba(17, 17, 17, 0.14);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.world-link:hover,
.story-item:hover {
  transform: translateY(-3px);

  box-shadow:
    0 2px 4px rgba(17, 17, 17, 0.03),
    0 20px 36px -18px rgba(17, 17, 17, 0.18);
}

/* SPINカードの色帯を復元 */
.spin-card {
  border-left: 3px solid var(--character-color);
}


/* ---------- DEPARTMENT ---------- */

.department {
  border: 1px solid rgba(34, 34, 34, 0.05);
  border-left: 3px solid var(--department-color);

  box-shadow:
    0 1px 2px rgba(17, 17, 17, 0.02),
    0 14px 28px -20px rgba(17, 17, 17, 0.14);
}

/* 部署カラーを section 自身にも継承させる */
.department:has(.department-headquarters) { --department-color: #2384DE; }
.department:has(.department-dating) { --department-color: #F17EB3; }
.department:has(.department-administrative) { --department-color: #E0A82B; }
.department:has(.department-watchdog) { --department-color: #BB3838; }
.department:has(.department-negotiation) { --department-color: #9A22B3; }
.department:has(.department-st) { --department-color: #74A450; }

/* =========================================================
   REFINED STORY SEARCH CONTROLS
========================================================= */

/* ---------- FILTER BUTTONS (STORY TYPE) ---------- */

.story-filter-buttons label {
  min-width: 0;
  height: 38px;

  padding: 0 22px;

  border: 1px solid rgba(34, 34, 34, 0.14);
  border-radius: 999px;

  background: transparent;
}

.story-filter-buttons span {
  letter-spacing: 0.18em;
  color: #555;
}

.story-filter-buttons label:hover {
  border-color: rgba(34, 34, 34, 0.32);
}

.story-filter-buttons label:has(input:checked) {
  border-color: #222;
  background: #222;
}

.story-filter-buttons label:has(input:checked) span {
  color: #fff;
}


/* ---------- CHARACTER SELECT CONTAINER ---------- */

.story-character-select {
  border: none;
  background: transparent;

  padding: 0;
}


/* ---------- CHARACTER SELECT ITEMS ---------- */

.story-character-select label {
  padding: 6px 8px;
}

.story-character-select span {
  padding-left: 20px;

  color: #777;

  transition: color 0.2s ease;
}

.story-character-select label:hover span {
  color: #222;
}


/* ---------- CUSTOM DOT (四角→丸に変更) ---------- */

.story-character-select span::before {
  width: 7px;
  height: 7px;

  border-radius: 50%;
  border: 1px solid rgba(34, 34, 34, 0.28);

  background: transparent;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.story-character-select input:checked + span::before {
  border-color: #222;
  background: #222;
}

/* チェックマーク(✓)は丸ドットでは不要なため非表示に */
.story-character-select input:checked + span::after {
  content: none;
}

.story-character-select input:checked + span {
  color: #222;
  font-weight: 500;
}

/* =========================================================
   REFINED STORY RESULTS
========================================================= */

/* ---------- RESULT COUNT ---------- */

#story-result-count {
  color: #777;
}


/* ---------- STORY TYPE (ラベル化) ---------- */

.story-item-type {
  display: inline-block;

  padding: 3px 10px;

  border: 1px solid rgba(34, 34, 34, 0.16);
  border-radius: 999px;

  color: #555;
  letter-spacing: 0.14em;
}


/* ---------- INFO: 縦棒 → 淡い区切りに ---------- */

.story-item-info {
  border-left: none;
  padding-left: 24px;
}

.story-item-info p {
  grid-template-columns: 92px minmax(0, 1fr);

  color: #888;
}

.story-item-info span {
  color: #aaa;
}

/* =========================================================
   COMPACT DEPARTMENT HEADER
========================================================= */

.department {
  margin-top: 32px;

  padding: 22px 26px 24px;
}

.department-label {
  margin: 0;

  font-size: 10px;
  letter-spacing: 0.24em;
}

.department h2 {
  margin: 6px 0 0;

  font-size: 16px;
  letter-spacing: 0.1em;
}

.character-list {
  margin-top: 16px;
  padding-top: 16px;
}

/* =========================================================
   DEPARTMENT LABEL AS FLOATING TAG
========================================================= */

.department {
  position: relative;

  margin-top: 28px;

  padding: 26px 26px 24px;
}

.department-label {
  position: absolute;
  top: -11px;
  left: 30px;

  margin: 0;
  padding: 3px 12px;

  display: inline-block;

  background: #F7F8FA;
  border: 1px solid var(--department-color);
  border-radius: 999px;

  font-family: "Cormorant Garamond", serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;

  color: var(--department-color);
}

.department h2 {
  margin: 0;
}

/* =========================================================
   COMMON SPACING: description → first block
========================================================= */

.world-page .page-description,
.character-page .page-description,
.story-intro .page-description {
  margin-bottom: 60px;
}

.world-links {
  margin-top: 0;
}

.department:first-of-type {
  margin-top: 0;
}

.story-search {
  margin-top: 0;
}

.story-intro {
  margin-bottom: 0;
}

@media (max-width: 700px) {

  .world-page .page-description,
  .character-page .page-description,
  .story-intro .page-description {
    margin-bottom: 40px;
  }

  .world-links {
    margin-top: 0;
  }

  .department:first-of-type {
    margin-top: 0;
  }

  .story-search {
    margin-top: 0;
  }

}

/* =========================================================
   EXTERNAL LINK
========================================================= */

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  color: #222;
  text-decoration: none;

  border-bottom: 1px solid rgba(34, 34, 34, 0.3);

  transition: opacity 0.2s ease;
}

.external-link:hover {
  opacity: 0.6;
}

.external-link-icon {
  display: inline-block;

  width: 11px;
  height: 11px;

  object-fit: contain;

  opacity: 0.7;
}

/* =========================================================
   CARD SEARCH RESULTS
========================================================= */

.card-search-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 28px;

  margin-top: 28px;
}

.card-search-item {
  --character-color: #777;

  display: flex;
  flex-direction: column;

  background: #fff;

  border: 1px solid rgba(34, 34, 34, 0.05);
  border-top: 3px solid var(--character-color);
  border-radius: 8px;

  overflow: hidden;

  color: #222;
  text-decoration: none;

  box-shadow:
    0 1px 2px rgba(17, 17, 17, 0.02),
    0 14px 28px -20px rgba(17, 17, 17, 0.14);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card-search-item:hover {
  transform: translateY(-3px);

  box-shadow:
    0 2px 4px rgba(17, 17, 17, 0.03),
    0 20px 36px -18px rgba(17, 17, 17, 0.18);
}


/* ---------- IMAGE ---------- */

.card-search-image {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  aspect-ratio: 1 / 1;

  overflow: hidden;

  background: #f3f3f3;

  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #999;
}

.card-search-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 50% 25%;
}


/* ---------- INFO ---------- */

.card-search-info {
  padding: 16px 18px 20px;
}

.card-search-rarity {
  margin: 0 0 4px;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;

  color: var(--character-color);
}

.card-search-title {
  margin: 0 0 8px;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;

  color: #222;
}

.card-search-meta {
  margin: 0;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.04em;

  color: #888;
}


/* ---------- RESULT COUNT ---------- */

#card-result-count {
  margin: 14px 0 0;

  font-family: "ryo-gothic-plusn", sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;

  color: #777;
}


/* ---------- SEARCH ACTION BUTTONS ---------- */

#card-search-button,
#card-reset-button {
  position: relative;

  padding: 0;

  border: none;
  background: none;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;

  color: #555;

  cursor: pointer;
}

#card-search-button::after,
#card-reset-button::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: -6px;

  width: 0;
  height: 1px;

  background: currentColor;

  transform: translateX(-50%);

  transition: width 0.25s ease;
}

#card-search-button:hover::after,
#card-reset-button:hover::after {
  width: 100%;
}


/* ---------- MOBILE ---------- */

@media (max-width: 900px) {

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

    gap: 20px;
  }

}

@media (max-width: 560px) {

  .card-search-grid {
    grid-template-columns: 1fr;
  }

}

/* =========================================================
   COMPACT FILTER BUTTONS
   (RARITY / ATTRIBUTE / LEADER SKILL / AUTO SKILL / SP SKILL)
========================================================= */

#card-rarity-select label,
#card-attribute-select label,
#card-leader-skill-select label,
#card-auto-skill-select label,
#card-sp-skill-select label {
  min-width: auto;
  height: 28px;

  padding: 0 10px;

  border: 1px solid #ddd;
  border-radius: 999px;

  background: #fff;
}

#card-rarity-select span,
#card-attribute-select span,
#card-leader-skill-select span,
#card-auto-skill-select span,
#card-sp-skill-select span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

#card-rarity-select label:hover,
#card-attribute-select label:hover,
#card-leader-skill-select label:hover,
#card-auto-skill-select label:hover,
#card-sp-skill-select label:hover {
  border-color: #aaa;
}

#card-rarity-select label:has(input:checked),
#card-attribute-select label:has(input:checked),
#card-leader-skill-select label:has(input:checked),
#card-auto-skill-select label:has(input:checked),
#card-sp-skill-select label:has(input:checked) {
  border-color: #222;
  background: #222;
}

#card-rarity-select label:has(input:checked) span,
#card-attribute-select label:has(input:checked) span,
#card-leader-skill-select label:has(input:checked) span,
#card-auto-skill-select label:has(input:checked) span,
#card-sp-skill-select label:has(input:checked) span {
  color: #fff;
}

/* =========================================================
   EVENT SEARCH RESULTS
========================================================= */

.event-search-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 28px;

  margin-top: 28px;
}

.event-search-item {
  display: flex;
  flex-direction: column;

  background: #fff;

  border: 1px solid rgba(34, 34, 34, 0.05);
  border-radius: 8px;

  overflow: hidden;

  color: #222;
  text-decoration: none;

  box-shadow:
    0 1px 2px rgba(17, 17, 17, 0.02),
    0 14px 28px -20px rgba(17, 17, 17, 0.14);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.event-search-item:hover {
  transform: translateY(-3px);

  box-shadow:
    0 2px 4px rgba(17, 17, 17, 0.03),
    0 20px 36px -18px rgba(17, 17, 17, 0.18);
}


/* ---------- BANNER IMAGE ---------- */

.event-search-image {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  aspect-ratio: 468 / 126;

  overflow: hidden;

  background: #f3f3f3;

  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #999;
}

.event-search-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: 50% 50%;
}


/* ---------- INFO ---------- */

.event-search-info {
  padding: 16px 18px 20px;
}

.event-search-genre {
  margin: 0 0 4px;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;

  color: #777;
}

.event-search-title {
  margin: 0 0 8px;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;

  color: #222;
}

.event-search-meta {
  margin: 0;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.04em;

  color: #888;
}


/* ---------- RESULT COUNT ---------- */

#event-result-count {
  margin: 14px 0 0;

  font-family: "ryo-gothic-plusn", sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;

  color: #777;
}


/* ---------- SEARCH ACTION BUTTONS ---------- */

#event-search-button,
#event-reset-button {
  position: relative;

  padding: 0;

  border: none;
  background: none;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;

  color: #555;

  cursor: pointer;
}

#event-search-button::after,
#event-reset-button::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: -6px;

  width: 0;
  height: 1px;

  background: currentColor;

  transform: translateX(-50%);

  transition: width 0.25s ease;
}

#event-search-button:hover::after,
#event-reset-button:hover::after {
  width: 100%;
}


/* ---------- COMPACT FILTER BUTTONS (YEAR / GENRE / EVENT TYPE) ---------- */

#event-year-select label,
#event-genre-select label,
#event-type-select label {
  min-width: auto;
  height: 28px;

  padding: 0 10px;

  border: 1px solid #ddd;
  border-radius: 999px;

  background: #fff;
}

#event-year-select span,
#event-genre-select span,
#event-type-select span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

#event-year-select label:hover,
#event-genre-select label:hover,
#event-type-select label:hover {
  border-color: #aaa;
}

#event-year-select label:has(input:checked),
#event-genre-select label:has(input:checked),
#event-type-select label:has(input:checked) {
  border-color: #222;
  background: #222;
}

#event-year-select label:has(input:checked) span,
#event-genre-select label:has(input:checked) span,
#event-type-select label:has(input:checked) span {
  color: #fff;
}


/* ---------- MOBILE ---------- */

@media (max-width: 900px) {

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

    gap: 20px;
  }

}

@media (max-width: 560px) {

  .event-search-grid {
    grid-template-columns: 1fr;
  }

}

/* =========================================================
   EVENT GENRE TAGS (検索結果カード内)
========================================================= */

.event-search-genre {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-search-genre-tag {
  display: inline-block;

  padding: 2px 9px;

  border: 1px solid rgba(34, 34, 34, 0.16);
  border-radius: 999px;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;

  color: #555;
}

/* =========================================================
   TIMELINE PAGE
========================================================= */

.timeline-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 40px 140px;
  text-align: left;
}


/* ---------- INTRO ---------- */

.timeline-intro {
  margin: 0 0 60px;
}

.timeline-intro .page-label {
  margin: 0 0 24px;

  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.35em;

  color: #777;
}

.timeline-intro h1 {
  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 64px;
  font-weight: 400;
  letter-spacing: 0.12em;

  color: #222;
}

.timeline-intro .page-description {
  margin: 20px 0 0;

  font-family: "ryo-gothic-plusn", sans-serif;
  font-size: 10px;
  line-height: 2;
  letter-spacing: 0.09em;

  color: #555;
}


/* ---------- YEAR BLOCK ---------- */

.timeline-year {
  margin-top: 80px;
}

.timeline-year:first-of-type {
  margin-top: 0;
}

.timeline-year-header {
  display: flex;
  align-items: baseline;
  gap: 16px;

  padding-bottom: 18px;

  border-bottom: 2px solid #222;
}

.timeline-year-number {
  font-family: "ryo-gothic-plusn", sans-serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.04em;

  color: #222;
}

.timeline-year-label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;

  color: #999;
}


/* ---------- BODY: 2 COLUMN LAYOUT ---------- */

.timeline-body {
  display: grid;

  grid-template-columns: minmax(0, 1fr) 280px;

  gap: 48px;

  margin-top: 40px;
}


/* ---------- CONFIRMED TIMELINE (LEFT) ---------- */

.timeline-main {
  position: relative;

  padding-left: 26px;
}

.timeline-main::before {
  content: "";

  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 4px;

  width: 1px;

  background: #ddd;
}

.timeline-entry {
  position: relative;

  margin-bottom: 40px;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-entry::before {
  content: "";

  position: absolute;
  top: 6px;
  left: -26px;

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: #222;
}

.timeline-entry-time {
  display: flex;
  align-items: baseline;
  gap: 6px;

  margin-bottom: 12px;
}

.timeline-entry-month {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.06em;

  color: #222;
}

.timeline-entry-unit {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;

  color: #999;
}


/* ---------- CONFIRMED CARD ---------- */

.timeline-card {
  background: #fff;

  border: 1px solid rgba(34, 34, 34, 0.05);
  border-radius: 8px;

  overflow: hidden;

  box-shadow:
    0 1px 2px rgba(17, 17, 17, 0.02),
    0 14px 28px -20px rgba(17, 17, 17, 0.14);
}

.timeline-card-image {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #f3f3f3;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #999;
}

.timeline-card-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.timeline-card-body {
  padding: 16px 18px 18px;
}

.timeline-card-title {
  margin: 0 0 6px;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;

  color: #222;
}

.timeline-card-text {
  margin: 0;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.03em;

  color: #777;
}


/* ---------- UNCONFIRMED SIDEBAR (RIGHT) ---------- */

.timeline-unconfirmed-label {
  margin: 0 0 20px;

  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  letter-spacing: 0.3em;

  color: #999;
}

.timeline-unconfirmed-list {
  display: flex;
  flex-direction: column;

  gap: 18px;
}

.timeline-note {
  position: relative;

  padding: 16px 16px 16px 34px;

  border: 1px dashed rgba(34, 34, 34, 0.25);
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.5);
}

.timeline-note::before {
  content: "!";

  position: absolute;
  top: 14px;
  left: 12px;

  width: 16px;
  height: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(34, 34, 34, 0.3);
  border-radius: 50%;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;

  color: #999;
}

.timeline-note-time {
  margin: 0 0 6px;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;

  color: #999;
}

.timeline-note-text {
  margin: 0;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.03em;

  color: #666;
}


/* ---------- MOBILE ---------- */

@media (max-width: 900px) {

  .timeline-body {
    grid-template-columns: 1fr;
  }

  .timeline-unconfirmed {
    margin-top: 0;
  }

  .timeline-unconfirmed-label {
    margin-top: 5px;
  }

}

@media (max-width: 700px) {

  .timeline-page {
    padding: 90px 20px 90px;
  }

  .timeline-intro h1 {
    font-size: 44px;
  }

  .timeline-intro .page-description {
    font-size: 9px;
  }

  .timeline-year-number {
    font-size: 28px;
  }

  .timeline-entry-month {
    font-size: 18px;
  }

}

/* =========================================================
   MARKER HIGHLIGHT
========================================================= */

.marker-highlight {
  background-image: linear-gradient(
    to top,
    rgba(224, 224, 130, 0.55) 0%,
    rgba(224, 224, 130, 0.55) 120%,
    transparent 120%
  );

  background-repeat: no-repeat;

  padding: 0 2px;
}

/* =========================================================
   TITLE (称号一覧)
========================================================= */

.title-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 24px;

  max-width: 1000px;
  margin: 0 auto;
}

.title-card {
  box-sizing: border-box;
  width: 100%;

  padding: 6px 6px 6px 14px;

  border: 1px solid #e5e5e5;
  border-left: 3px solid var(--character-color);
  border-radius: 10px;

  background: #fff;
}


/* ---------- HEADER ---------- */

.title-card-header h3 {
  margin: 0;

  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.title-card-event {
  margin: 0;

  font-size: 8px;
  letter-spacing: 0.05em;

  color: #999;
}


/* ---------- BODY ---------- */

.title-card-body {
  margin-top: 3px;
}

.title-card-condition {
  margin: 0;

  font-size: 9px;
  line-height: 1.8;
  color: #999;
}

.title-card-condition-label {
  display: block;

  margin-bottom: 0px;

  font-size: 10px;
  letter-spacing: 0.1em;

  color: #555;
}


/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

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

    gap: 16px;
  }

}

