/* =========================================================
   八咫くれは 公式サイト
   Theme: Auspicious Mirror / Serpent Eyes / Military Navy
   ========================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  --color-bg: #0b0e13;
  --color-bg-soft: #10151e;
  --color-panel: #151b25;
  --color-panel-light: #1b2330;
  --color-navy: #172038;
  --color-gold: #c2a56b;
  --color-gold-soft: #87744e;
  --color-green: #76a98c;
  --color-rose: #9f6570;
  --color-text: #eeeae3;
  --color-text-soft: #b8b9ba;
  --color-line: rgba(194, 165, 107, 0.28);
  --color-line-soft: rgba(238, 234, 227, 0.12);
  --shadow-large: 0 30px 80px rgba(0, 0, 0, 0.42);
  --shadow-small: 0 14px 36px rgba(0, 0, 0, 0.24);
  --radius-small: 4px;
  --radius-medium: 12px;
  --content-width: 1180px;
  --header-height: 82px;
  --font-serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  --font-sans: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

/* ---------- 2. Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-text);
  background:
    radial-gradient(circle at 10% 0%, rgba(23, 32, 56, 0.65), transparent 34rem),
    radial-gradient(circle at 92% 16%, rgba(118, 169, 140, 0.08), transparent 30rem),
    var(--color-bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  color: var(--color-bg);
  background: var(--color-green);
}

ruby rt {
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 0.28em;
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* ---------- 3. Accessibility ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  color: var(--color-bg);
  background: var(--color-text);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 4px;
}

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--color-line-soft);
  background: rgba(11, 14, 19, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--content-width));
  min-height: var(--header-height);
  margin: 0 auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 22px;
  place-items: center;
}

.site-logo-text {
  display: grid;
  line-height: 1.2;
}

.site-logo-text strong {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.site-logo-text small {
  margin-top: 5px;
  color: var(--color-text-soft);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.global-nav a {
  position: relative;
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  transition: color 0.2s ease;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.global-nav a:hover {
  color: var(--color-text);
}

.global-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: calc(var(--header-height) + 70px) 24px 80px;
  overflow: hidden;
  place-items: center;
}

.hero::before {
  position: absolute;
  top: 18%;
  left: 50%;
  width: min(72vw, 940px);
  aspect-ratio: 1;
  border: 1px solid rgba(194, 165, 107, 0.09);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.hero::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(88vw, 1250px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--color-line), transparent);
  transform: translateX(-50%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  width: min(100%, var(--content-width));
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.9fr);
  gap: clamp(50px, 8vw, 120px);
}

.hero-decoration {
  position: absolute;
  width: 320px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-soft));
  opacity: 0.5;
}

.hero-decoration-left {
  top: 27%;
  left: -130px;
  transform: rotate(-38deg);
}

.hero-decoration-right {
  right: -130px;
  bottom: 20%;
  transform: rotate(142deg);
}

.eyebrow,
.section-label,
.card-kicker,
.link-type {
  margin: 0;
  color: var(--color-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.hero-name {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.hero-name > span {
  display: block;
  margin-top: 18px;
  color: var(--color-text-soft);
  font-family: var(--font-sans);
  font-size: clamp(11px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: 0.42em;
}


.hero-description {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--color-text-soft);
  font-size: 15px;
}

.hero-description strong {
  color: var(--color-text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-width: 210px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--color-bg);
  background: var(--color-gold);
}

.button-primary:hover {
  background: #d2ba86;
}

.button-secondary {
  border-color: var(--color-line);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.02);
}

.button-secondary:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

.hero-meta {
  display: grid;
  max-width: 620px;
  margin: 56px 0 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--color-line-soft);
  border-bottom: 1px solid var(--color-line-soft);
}

.hero-meta div {
  padding: 18px 20px;
  border-right: 1px solid var(--color-line-soft);
}

.hero-meta div:last-child {
  border-right: 0;
}

.hero-meta dt,
.profile-data dt,
.credit-card dt {
  margin-bottom: 4px;
  color: var(--color-gold-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hero-meta dd,
.profile-data dd,
.credit-card dd {
  margin: 0;
  font-size: 13px;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 650px;
  place-items: center;
}

.mirror-emblem {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.mirror-ring {
  position: absolute;
  border-radius: 50%;
  inset: 0;
}

.mirror-ring-outer {
  border: 1px solid rgba(194, 165, 107, 0.44);
  box-shadow:
    0 0 80px rgba(194, 165, 107, 0.08),
    inset 0 0 80px rgba(194, 165, 107, 0.05);
}

.mirror-ring-outer::before,
.mirror-ring-outer::after {
  position: absolute;
  content: "";
  background: var(--color-gold);
}

.mirror-ring-outer::before {
  top: 50%;
  right: -18px;
  left: -18px;
  height: 1px;
  opacity: 0.22;
}

.mirror-ring-outer::after {
  top: -18px;
  bottom: -18px;
  left: 50%;
  width: 1px;
  opacity: 0.22;
}

.mirror-ring-inner {
  inset: 11%;
  border: 1px solid rgba(118, 169, 140, 0.22);
}

.snake-eye {
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: 50%;
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(118, 169, 140, 0.18) 15%,
    var(--color-green) 50%,
    rgba(118, 169, 140, 0.18) 85%,
    transparent
  );
  box-shadow: 0 0 26px rgba(118, 169, 140, 0.38);
  transform: translateX(-50%);
}

.character-image {
  position: relative;
  z-index: 2;
  width: min(90%, 470px);
  height: 610px;
}

.image-slot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background-color: rgba(10, 13, 18, 0.48);
  background-image:
    var(--slot-image),
    linear-gradient(135deg, rgba(194, 165, 107, 0.06), rgba(118, 169, 140, 0.04));
  background-repeat: no-repeat;
  background-position: center bottom, center;
  background-size: contain, cover;
  box-shadow: var(--shadow-large);
}

.image-slot::before {
  position: absolute;
  inset: 18px;
  content: "";
  pointer-events: none;
  border: 1px solid var(--color-line-soft);
}

.image-slot::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 58%;
  height: 58%;
  border: 1px solid rgba(194, 165, 107, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.image-slot-cover {
  background-position: center, center;
  background-size: cover, cover;
}

.image-slot-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  max-width: calc(100% - 28px);
  padding: 7px 9px;
  color: var(--color-text-soft);
  background: rgba(7, 9, 13, 0.78);
  font-size: 9px;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.character-hero-image {
  clip-path: polygon(8% 0, 92% 0, 100% 7%, 100% 93%, 92% 100%, 8% 100%, 0 93%, 0 7%);
  filter: drop-shadow(0 30px 38px rgba(0, 0, 0, 0.35));
}


.visual-caption {
  position: absolute;
  right: -58px;
  bottom: 74px;
  z-index: 3;
  margin: 0;
  color: var(--color-text-soft);
  font-size: 9px;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
}

.scroll-guide {
  position: absolute;
  bottom: 30px;
  left: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--color-text-soft);
  font-size: 8px;
  letter-spacing: 0.24em;
  transform: translateX(-50%);
}

.scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: var(--color-line-soft);
}

.scroll-line::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 60%;
  content: "";
  background: var(--color-gold);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    top: -70%;
  }
  100% {
    top: 120%;
  }
}

/* ---------- 6. Common Sections ---------- */
.section {
  position: relative;
  padding: 130px 24px;
}

.section-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 62px;
}

.section-number {
  margin: 2px 0 0;
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 20px;
}

.section-heading h2 {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ---------- 7. Profile ---------- */
.section-profile {
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(255, 255, 255, 0.025) 50%, transparent 50.05%),
    var(--color-bg-soft);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 42px;
}

.profile-card,
.profile-data,
.main-game-card,
.guideline-grid article,
.credit-card {
  border: 1px solid var(--color-line-soft);
  background: rgba(255, 255, 255, 0.022);
  box-shadow: var(--shadow-small);
}

.profile-introduction {
  position: relative;
  padding: clamp(34px, 5vw, 66px);
  overflow: hidden;
}

.profile-introduction::after {
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 240px;
  aspect-ratio: 1;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  content: "";
}

.profile-name-jp {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 0.1em;
}

.profile-name-en {
  margin: 8px 0 34px;
  color: var(--color-gold);
  font-size: 10px;
  letter-spacing: 0.26em;
}

.profile-introduction > p:not(.profile-name-jp, .profile-name-en, .profile-note) {
  max-width: 720px;
  color: var(--color-text-soft);
}

.profile-note {
  display: inline-block;
  margin: 26px 0 0;
  padding: 10px 14px;
  border-left: 2px solid var(--color-green);
  color: var(--color-text-soft);
  background: rgba(118, 169, 140, 0.07);
  font-size: 13px;
}

.profile-note strong {
  color: var(--color-text);
}

.profile-data {
  margin: 0;
  padding: 14px 30px;
}

.profile-data div {
  display: grid;
  padding: 20px 0;
  grid-template-columns: 128px 1fr;
  border-bottom: 1px solid var(--color-line-soft);
}

.profile-data div:last-child {
  border-bottom: 0;
}


/* ---------- 8. Character Visual ---------- */
.section-character {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 24%, rgba(118, 169, 140, 0.08), transparent 28rem),
    radial-gradient(circle at 88% 70%, rgba(194, 165, 107, 0.07), transparent 30rem),
    var(--color-bg);
}

.section-character::before {
  position: absolute;
  top: 160px;
  right: -160px;
  width: 420px;
  aspect-ratio: 1;
  border: 1px solid rgba(194, 165, 107, 0.12);
  border-radius: 50%;
  content: "";
}

.character-lead {
  max-width: 760px;
  margin: -30px 0 54px 64px;
  color: var(--color-text-soft);
  font-size: 14px;
}

.outfit-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.outfit-card {
  display: grid;
  min-width: 0;
  border: 1px solid var(--color-line-soft);
  background: rgba(255, 255, 255, 0.018);
  box-shadow: var(--shadow-small);
  grid-template-rows: minmax(560px, 68vh) auto;
}

.outfit-image {
  width: 100%;
  min-height: 560px;
  border: 0;
  border-bottom: 1px solid var(--color-line-soft);
  box-shadow: none;
}

.outfit-copy {
  position: relative;
  padding: 30px 34px 34px;
}

.visual-index,
.point-number {
  display: block;
  color: var(--color-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.outfit-copy h3 {
  margin: 7px 0 0;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.outfit-copy p {
  margin: 14px 0 0;
  color: var(--color-text-soft);
  font-size: 13px;
}

.favorite-details {
  margin-top: 110px;
}

.subsection-heading {
  display: grid;
  margin-bottom: 34px;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 20px;
}

.subsection-heading p {
  margin: 0 0 8px;
  color: var(--color-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  grid-column: 1 / -1;
}

.subsection-heading h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.subsection-heading span {
  justify-self: end;
  margin-bottom: 6px;
  color: var(--color-text-soft);
  font-size: 11px;
}

.favorite-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.favorite-card {
  min-width: 0;
  border: 1px solid var(--color-line-soft);
  background: var(--color-panel);
  box-shadow: var(--shadow-small);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.favorite-card:hover {
  border-color: var(--color-line);
  transform: translateY(-5px);
}

.favorite-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-bottom: 1px solid var(--color-line-soft);
  box-shadow: none;
}

.favorite-copy {
  padding: 25px 26px 29px;
}

.favorite-copy h4 {
  margin: 7px 0 0;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
}

.favorite-copy p {
  margin: 13px 0 0;
  color: var(--color-text-soft);
  font-size: 13px;
}

/* ---------- 9. Stream ---------- */

.section-stream {
  overflow: hidden;
}

.section-stream::before {
  position: absolute;
  top: 90px;
  right: -180px;
  width: 480px;
  aspect-ratio: 1;
  border: 1px solid rgba(118, 169, 140, 0.12);
  border-radius: 50%;
  content: "";
}

.stream-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
}

.main-game-card {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: clamp(34px, 5vw, 58px);
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background:
    linear-gradient(to top, rgba(10, 13, 18, 0.94), rgba(10, 13, 18, 0.26)),
    radial-gradient(circle at 50% 10%, rgba(118, 169, 140, 0.18), transparent 52%),
    var(--color-panel);
}

.main-game-card::before {
  position: absolute;
  top: 34px;
  right: 34px;
  width: 110px;
  height: 110px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  content: "";
}

.main-game-card h3 {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.3;
}

.main-game-card p:not(.card-kicker) {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--color-text-soft);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.game-list article {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--color-line-soft);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.024), transparent),
    var(--color-panel);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.game-list article:hover {
  border-color: var(--color-line);
  background: var(--color-panel-light);
  transform: translateY(-4px);
}

.game-index {
  color: var(--color-gold-soft);
  font-family: var(--font-serif);
  font-size: 14px;
}

.game-list h3 {
  margin: 74px 0 0;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.game-list p {
  margin: 6px 0 0;
  color: var(--color-text-soft);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ---------- 10. Guideline ---------- */
.section-guideline {
  border-top: 1px solid var(--color-line-soft);
  border-bottom: 1px solid var(--color-line-soft);
  background: var(--color-bg-soft);
}

.guideline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guideline-grid article {
  position: relative;
  min-height: 270px;
  padding: 34px;
}

.guideline-grid article::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 2px;
  content: "";
  background: var(--color-green);
}

.guideline-grid h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}

.guideline-grid p {
  margin: 24px 0 0;
  color: var(--color-text-soft);
  font-size: 14px;
}

.guideline-caution {
  margin: 24px 0 0;
  color: var(--color-rose);
  font-size: 12px;
}

/* ---------- 11. Links ---------- */
.link-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.link-cards a {
  position: relative;
  display: flex;
  min-height: 190px;
  padding: 28px;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--color-line-soft);
  background: var(--color-panel);
  overflow: hidden;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.link-cards a::before {
  position: absolute;
  top: -100%;
  left: -30%;
  width: 44%;
  height: 280%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: rotate(20deg);
  transition: left 0.55s ease;
}

.link-cards a:hover {
  border-color: var(--color-gold);
  transform: translateY(-5px);
}

.link-cards a:hover::before {
  left: 120%;
}

.link-cards strong {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
}

.link-arrow {
  position: absolute;
  top: 24px;
  right: 26px;
  color: var(--color-gold);
  font-size: 22px;
}

/* ---------- 12. Credit ---------- */
.section-credit {
  background:
    linear-gradient(135deg, rgba(23, 32, 56, 0.35), transparent 50%),
    var(--color-bg-soft);
}

.credit-card {
  display: grid;
  padding: clamp(30px, 5vw, 54px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  gap: 50px;
}

.credit-card dl {
  margin: 0;
}

.credit-card dl div {
  display: grid;
  padding: 14px 0;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--color-line-soft);
}

.credit-card dl div:first-child {
  padding-top: 0;
}

.credit-card p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 13px;
}

/* ---------- 13. Footer ---------- */
.site-footer {
  padding: 42px 24px;
  border-top: 1px solid var(--color-line-soft);
  background: #080a0e;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.footer-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.12em;
}

.footer-reading,
.copyright {
  margin: 4px 0 0;
  color: var(--color-text-soft);
  font-size: 9px;
  letter-spacing: 0.16em;
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 980px) {
  :root {
    --header-height: 74px;
  }

  .global-nav {
    gap: 16px;
  }

  .global-nav a {
    font-size: 9px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 90px);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .hero-copy {
    max-width: 740px;
  }

  .hero-visual {
    min-height: 650px;
  }

  .mirror-emblem {
    width: min(72vw, 520px);
  }

  .character-image {
    width: min(78vw, 470px);
  }

  .visual-caption {
    right: 8%;
  }

  .profile-grid,
  .stream-layout,
  .credit-card {
    grid-template-columns: 1fr;
  }

  .outfit-card {
    grid-template-rows: minmax(520px, 64vh) auto;
  }

  .favorite-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .favorite-card:last-child {
    grid-column: 1 / -1;
  }

  .main-game-card {
    min-height: 480px;
  }

  .guideline-grid {
    grid-template-columns: 1fr;
  }

  .guideline-grid article {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .site-logo-mark {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }

  .site-logo-text strong {
    font-size: 14px;
  }

  .global-nav {
    display: none;
  }

  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-name {
    font-size: clamp(44px, 14vw, 72px);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-meta div {
    display: grid;
    grid-template-columns: 110px 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--color-line-soft);
  }

  .hero-meta div:last-child {
    border-bottom: 0;
  }

  .hero-visual {
    min-height: 560px;
  }

  .character-image {
    height: 520px;
  }

  .character-lead {
    margin: -18px 0 40px;
  }

  .outfit-gallery,
  .favorite-grid {
    grid-template-columns: 1fr;
  }

  .outfit-card {
    grid-template-rows: auto auto;
  }

  .outfit-image {
    min-height: 520px;
  }

  .favorite-card:last-child {
    grid-column: auto;
  }

  .subsection-heading {
    display: block;
  }

  .subsection-heading span {
    display: block;
    margin-top: 8px;
  }

  .scroll-guide {
    display: none;
  }

  .section {
    padding: 92px 18px;
  }

  .section-heading {
    gap: 16px;
    margin-bottom: 42px;
  }

  .profile-introduction {
    padding: 28px;
  }

  .profile-data {
    padding: 8px 22px;
  }

  .profile-data div {
    grid-template-columns: 100px 1fr;
  }

  .game-list {
    grid-template-columns: 1fr;
  }

  .game-list article {
    min-height: 180px;
  }

  .game-list h3 {
    margin-top: 42px;
  }

  .link-cards {
    grid-template-columns: 1fr;
  }

  .link-cards a {
    min-height: 150px;
  }

  .credit-card {
    padding: 28px;
    gap: 36px;
  }

  .credit-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    display: grid;
    gap: 28px;
  }
}

@media (max-width: 420px) {
  .hero-name {
    letter-spacing: 0.02em;
  }

  .hero-visual {
    min-height: 490px;
  }

  .character-image {
    width: 92vw;
    height: 470px;
  }

  .outfit-image {
    min-height: 440px;
  }

  .outfit-copy,
  .favorite-copy {
    padding-right: 22px;
    padding-left: 22px;
  }

  .visual-caption {
    display: none;
  }

  .section-heading h2 {
    font-size: 36px;
  }
}

/* ---------- 15. Motion Preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   16. Mobile layout polish
   Keeps the desktop design while making phones fully usable.
   ========================================================= */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.profile-data dd,
.credit-card dd,
.credit-card a,
.game-list h3,
.link-cards strong {
  overflow-wrap: anywhere;
}

@media (hover: none) {
  .button:hover,
  .game-list article:hover,
  .favorite-card:hover,
  .link-cards a:hover {
    transform: none;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 116px;
  }

  html {
    scroll-padding-top: calc(var(--header-height) + 12px);
  }

  body {
    font-size: 15px;
    line-height: 1.75;
  }

  .site-header {
    min-height: var(--header-height);
  }

  .header-inner {
    display: grid;
    width: 100%;
    min-height: var(--header-height);
    padding: 10px 16px 8px;
    align-content: center;
    justify-content: stretch;
    gap: 8px;
  }

  .site-logo {
    width: fit-content;
    gap: 10px;
  }

  .site-logo-mark {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .site-logo-text strong {
    font-size: 14px;
  }

  .site-logo-text small {
    margin-top: 3px;
    font-size: 8px;
    letter-spacing: 0.2em;
  }

  .global-nav {
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .global-nav::-webkit-scrollbar {
    display: none;
  }

  .global-nav a {
    display: inline-flex;
    min-height: 32px;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-left: 1px solid var(--color-line-soft);
    font-size: 8.5px;
    letter-spacing: 0.11em;
    white-space: nowrap;
  }

  .global-nav a:first-child {
    border-left: 0;
  }

  .global-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 38px) 16px 72px;
    place-items: stretch;
  }

  .hero-inner {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero-copy {
    min-width: 0;
  }

  .eyebrow,
  .section-label,
  .card-kicker,
  .link-type {
    font-size: 8.5px;
    letter-spacing: 0.21em;
  }

  .hero-name {
    margin-top: 14px;
    font-size: clamp(40px, 12.5vw, 60px);
    line-height: 1.12;
    letter-spacing: 0.035em;
    white-space: nowrap;
  }

  .hero-name > span {
    margin-top: 12px;
    font-size: 10px;
    letter-spacing: 0.28em;
    white-space: normal;
  }

  .hero-description {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.85;
  }

  .hero-actions {
    display: grid;
    margin-top: 28px;
    gap: 10px;
  }

  .button {
    width: 100%;
    min-width: 0;
    min-height: 50px;
  }

  .hero-meta {
    width: 100%;
    margin-top: 34px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-meta div {
    display: block;
    min-width: 0;
    padding: 13px 7px;
    border-right: 1px solid var(--color-line-soft);
    border-bottom: 0;
    text-align: center;
  }

  .hero-meta div:last-child {
    border-right: 0;
  }

  .hero-meta dt {
    min-height: 2.5em;
    margin-bottom: 4px;
    font-size: 7px;
    line-height: 1.25;
    letter-spacing: 0.08em;
  }

  .hero-meta dd {
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .hero-visual {
    width: 100%;
    min-height: 0;
    margin: 0 auto;
  }

  .character-image {
    width: min(100%, 430px);
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .mirror-emblem {
    width: min(88vw, 430px);
  }

  .image-slot::before {
    inset: 10px;
  }

  .image-slot-label,
  .visual-caption,
  .scroll-guide {
    display: none;
  }

  .section {
    padding: 78px 16px;
  }

  .section-heading {
    max-width: 100%;
    margin-bottom: 34px;
    gap: 12px;
  }

  .section-number {
    flex: 0 0 auto;
    margin-top: 0;
    font-size: 16px;
  }

  .section-heading > div {
    min-width: 0;
  }

  .section-heading h2 {
    max-width: 100%;
    font-size: clamp(28px, 9vw, 42px);
    line-height: 1.1;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
  }

  .profile-grid,
  .stream-layout,
  .credit-card {
    gap: 16px;
  }

  .profile-introduction {
    padding: 26px 21px;
  }

  .profile-name-jp {
    font-size: clamp(30px, 10vw, 40px);
    letter-spacing: 0.06em;
  }

  .profile-name-en {
    margin-bottom: 26px;
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .profile-introduction > p:not(.profile-name-jp, .profile-name-en, .profile-note) {
    font-size: 14px;
  }

  .profile-note {
    width: 100%;
    margin-top: 20px;
    font-size: 12px;
  }

  .profile-data {
    padding: 5px 18px;
  }

  .profile-data div {
    min-width: 0;
    padding: 15px 0;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
  }

  .profile-data dt {
    font-size: 8px;
    letter-spacing: 0.13em;
  }

  .profile-data dd {
    min-width: 0;
    font-size: 12px;
  }

  .character-lead {
    margin: -10px 0 30px;
    font-size: 13px;
  }

  .outfit-gallery,
  .favorite-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .outfit-card {
    grid-template-rows: auto auto;
  }

  .outfit-image {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .outfit-copy {
    padding: 24px 21px 27px;
  }

  .outfit-copy h3 {
    font-size: 26px;
  }

  .outfit-copy p,
  .favorite-copy p {
    font-size: 12.5px;
  }

  .favorite-details {
    margin-top: 64px;
  }

  .subsection-heading {
    display: block;
    margin-bottom: 24px;
  }

  .subsection-heading h3 {
    font-size: 30px;
  }

  .subsection-heading span {
    display: block;
    margin-top: 7px;
    font-size: 10px;
  }

  .favorite-card:last-child {
    grid-column: auto;
  }

  .favorite-copy {
    padding: 22px 21px 25px;
  }

  .favorite-copy h4 {
    font-size: 21px;
  }

  .main-game-card {
    min-height: 360px;
    padding: 27px 22px;
  }

  .main-game-card::before {
    top: 24px;
    right: 24px;
    width: 82px;
    height: 82px;
  }

  .main-game-card h3 {
    font-size: clamp(28px, 9vw, 38px);
    overflow-wrap: anywhere;
  }

  .main-game-card p:not(.card-kicker) {
    font-size: 13px;
  }

  .game-list {
    gap: 12px;
  }

  .game-list article {
    min-height: 145px;
    padding: 22px;
  }

  .game-list h3 {
    margin-top: 32px;
    font-size: 20px;
  }

  .guideline-grid,
  .link-cards {
    gap: 12px;
  }

  .guideline-grid article {
    min-height: 0;
    padding: 25px 22px;
  }

  .guideline-grid h3 {
    font-size: 20px;
  }

  .guideline-grid p {
    margin-top: 17px;
    font-size: 13px;
  }

  .link-cards a {
    min-height: 124px;
    padding: 22px;
  }

  .link-cards strong {
    font-size: 24px;
  }

  .credit-card {
    padding: 24px 21px;
  }

  .credit-card dl div {
    display: grid;
    padding: 13px 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .credit-card dt {
    font-size: 8px;
  }

  .credit-card dd,
  .credit-card a {
    font-size: 12px;
    line-height: 1.65;
  }

  .credit-card p {
    font-size: 11.5px;
  }

  .site-footer {
    padding: 34px 16px calc(34px + env(safe-area-inset-bottom));
  }

  .footer-inner {
    display: grid;
    align-items: start;
    gap: 20px;
  }

  .copyright {
    line-height: 1.6;
  }
}

@media (max-width: 420px) {
  :root {
    --header-height: 110px;
  }

  .header-inner {
    padding-right: 12px;
    padding-left: 12px;
  }

  .global-nav a {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 7.8px;
  }

  .hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-name {
    font-size: clamp(38px, 12vw, 50px);
  }

  .hero-description {
    font-size: 13.5px;
  }

  .hero-meta div {
    padding-right: 4px;
    padding-left: 4px;
  }

  .hero-meta dt {
    font-size: 6.5px;
  }

  .hero-meta dd {
    font-size: 10.5px;
  }

  .section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .section-heading h2 {
    font-size: clamp(27px, 8.7vw, 35px);
    letter-spacing: 0.025em;
  }

  .profile-data div {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .character-image {
    width: 100%;
    aspect-ratio: 3 / 4;
  }

  .outfit-image {
    aspect-ratio: 4 / 5;
  }

  .outfit-copy,
  .favorite-copy {
    padding-right: 19px;
    padding-left: 19px;
  }

  .link-arrow {
    top: 19px;
    right: 20px;
  }
}

/* =========================================================
   6-image layout overrides
   character-half / two full-body images / three detail images
   Keep this block at the very end of style.css.
   ========================================================= */

/* Shared behavior: prevent accidental selection/drag/long-press save UI. */
.image-slot,
.image-slot * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* The first-view image is a bust/half-body portrait. */
.character-image {
  width: min(92%, 500px);
  height: auto;
  aspect-ratio: 4 / 5;
}

.character-half-image {
  background-position: center bottom, center;
  background-size: auto 98%, cover;
}

/* Full-body outfit images: no cropping, aligned to the bottom. */
.outfit-card {
  grid-template-rows: auto auto;
}

.outfit-image {
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 5;
}

.outfit-full-image {
  background-position: center bottom, center;
  background-size: auto 96%, cover;
}

/* Detail images: fill the 4:3 card; keep the important point near center. */
.favorite-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-position: center, center;
  background-size: cover, cover;
}

/* The extra circle is useful on the hero but distracts on the gallery. */
.outfit-image::after,
.favorite-image::after {
  display: none;
}

/* Prevent image cards from stretching differently due to text length. */
.outfit-gallery,
.favorite-grid {
  align-items: stretch;
}

.outfit-card,
.favorite-card {
  height: 100%;
}

.outfit-copy,
.favorite-copy {
  min-width: 0;
}

@media (max-width: 980px) {
  .character-image {
    width: min(82vw, 470px);
    aspect-ratio: 4 / 5;
  }

  .outfit-image {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 820px) {
  .hero-visual {
    min-height: 0;
  }

  .character-image {
    width: min(100%, 430px);
    aspect-ratio: 4 / 5;
  }

  .character-half-image {
    background-size: auto 97%, cover;
  }

  .outfit-image {
    aspect-ratio: 4 / 5;
  }

  .outfit-full-image {
    background-size: auto 95%, cover;
  }

  .favorite-image {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 420px) {
  .character-image {
    width: 100%;
    aspect-ratio: 4 / 5;
  }

  .character-half-image {
    background-size: auto 96%, cover;
  }

  .outfit-image {
    aspect-ratio: 4 / 5;
  }

  .image-slot::before {
    inset: 8px;
  }
  
  @media (max-width: 980px) {
    .link-cards {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}
