@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;900&family=Kaisei+Decol:wght@400;500;700&family=DM+Serif+Display&display=swap');

:root {
  --bg: #fdf6f1;
  --bg-soft: #fbeae0;
  --bg-mint: #eef7f3;
  --panel: rgba(255, 250, 246, 0.9);
  --panel-strong: rgba(255, 252, 249, 0.97);
  --line: rgba(225, 194, 188, 0.48);
  --text: #514243;
  --muted: #7d6969;
  --accent: #94cfc8;
  --accent-strong: #72b9ae;
  --blue-soft: #a7c9df;
  --pink: #f3a7b8;
  --pink-strong: #e88aa0;
  --snow: #fffdfb;
  --shadow: 0 20px 50px rgba(180, 120, 120, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --site-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Zen Maru Gothic", sans-serif;
  line-height: 1.85;
  letter-spacing: 0.03em;
  background:
    radial-gradient(circle at top left, rgba(243, 167, 184, 0.36), transparent 28%),
    radial-gradient(circle at top right, rgba(167, 201, 223, 0.28), transparent 22%),
    radial-gradient(circle at 50% 110%, rgba(148, 207, 200, 0.18), transparent 30%),
    linear-gradient(180deg, #fdf6f1 0%, #fffaf6 40%, #eef6f3 100%);
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.6;
}

body::before {
  width: 260px;
  height: 260px;
  top: 100px;
  right: -40px;
  background: rgba(255, 240, 245, 0.7);
}

body::after {
  width: 220px;
  height: 220px;
  bottom: 40px;
  left: -40px;
  background: rgba(236, 245, 243, 0.9);
}

a {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 32px), var(--site-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(253, 246, 241, 0.78);
  border-bottom: 1px solid rgba(225, 194, 188, 0.32);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  width: 240px;
  max-height: 82px;
  object-fit: contain;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(148, 207, 200, 0.95), rgba(243, 167, 184, 0.9));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(180, 120, 120, 0.18);
  font-size: 1.15rem;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-title {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  font-family: "Kaisei Decol", serif;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.8rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  box-shadow: var(--shadow);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid transparent;
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--pink-strong);
  border-color: rgba(225, 194, 188, 0.6);
  background: rgba(255, 255, 255, 0.92);
}

.page-main {
  padding: 32px 0 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    linear-gradient(145deg, rgba(255, 252, 249, 0.95), rgba(252, 242, 237, 0.92)),
    linear-gradient(135deg, rgba(167, 201, 223, 0.12), rgba(243, 167, 184, 0.14));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy,
.hero-media {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(243, 167, 184, 0.11);
  color: var(--pink-strong);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1,
.page-title,
.section-title {
  margin: 18px 0 12px;
  font-family: "Kaisei Decol", serif;
  letter-spacing: 0.04em;
}

.hero h1,
.page-title {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.15;
}

.section-title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.hero p.lead,
.page-lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button {
  color: #9c4e61;
  background: #ffe8ef;
  border-color: rgba(232, 138, 160, 0.46);
  box-shadow: 0 12px 24px rgba(232, 138, 160, 0.14);
}

.button-secondary {
  color: #3e7f89;
  background: #e9f7fa;
  border-color: rgba(114, 185, 174, 0.42);
  box-shadow: 0 12px 24px rgba(114, 185, 174, 0.12);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(180, 120, 120, 0.16);
}

.button:hover {
  background: #ffdbe6;
  border-color: rgba(232, 138, 160, 0.62);
}

.button-secondary:hover {
  background: #ddf3f7;
  border-color: rgba(114, 185, 174, 0.58);
}

.hero-media-card,
.panel,
.feature-card,
.character-card,
.comic-card,
.link-card,
.guideline-block {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-media-card {
  overflow: hidden;
  min-height: 460px;
}

.hero-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hero-overlay {
  position: absolute;
  inset: auto 18px 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 0.92rem;
}

.snow-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 0 0;
}

.snow-line span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(167, 201, 223, 0.5);
}

.snow-line span:nth-child(2n) {
  background: rgba(243, 167, 184, 0.52);
}

.section {
  margin-top: 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.section-copy {
  margin: 8px 0 0;
  color: var(--muted);
}

.panel {
  padding: 26px;
}

.story-preview,
.story-copy,
.stack-grid,
.page-copy {
  display: grid;
  gap: 14px;
}

.story-preview p,
.story-copy p,
.page-copy p {
  margin: 0;
}

.feature-grid,
.characters-grid,
.links-grid,
.comics-grid,
.two-column,
.character-hero {
  display: grid;
  gap: 18px;
}

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

.feature-card:first-child {
  grid-column: span 2;
}

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

.two-column {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}

.character-hero {
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
}

.feature-card,
.character-card,
.comic-card,
.link-card {
  overflow: hidden;
}

.feature-card,
.link-card {
  padding: 22px;
}

.feature-card h3,
.character-card h3,
.link-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.feature-card p,
.character-card p,
.link-card p,
.guideline-block p {
  margin: 0;
  color: var(--muted);
}

.small-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  letter-spacing: 0.2em;
  font-size: 0.76rem;
}

.feature-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(243, 167, 184, 0.16);
  color: var(--pink-strong);
  font-weight: 700;
  font-size: 0.8rem;
}

.character-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  align-items: start;
}

.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(250, 238, 232, 0.95)),
    linear-gradient(135deg, rgba(167, 201, 223, 0.18), rgba(243, 167, 184, 0.14));
  border: 1px solid rgba(225, 194, 188, 0.28);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame.is-missing::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.character-meta {
  display: grid;
  gap: 10px;
}

.latin-name {
  color: var(--pink-strong);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: "DM Serif Display", serif;
}

.character-profile {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 2px;
}

.profile-item {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(225, 194, 188, 0.34);
  text-align: center;
}

.profile-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-value {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 2px 0 0;
}

.character-summary {
  white-space: pre-line;
}

.page-hero {
  padding: 24px 0 4px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.logo-lockup img {
  width: min(360px, 100%);
}

.guide-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.guide-list li + li {
  margin-top: 12px;
}

.guide-list li::marker {
  color: var(--pink-strong);
}

.guideline-block {
  padding: 28px;
}

.guideline-block h2,
.guideline-block h3 {
  margin: 0 0 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.quote-block {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(225, 194, 188, 0.75);
  text-align: center;
  color: var(--pink-strong);
  font-family: "Kaisei Decol", serif;
}

.creator-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  width: fit-content;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(225, 194, 188, 0.42);
  box-shadow: 0 12px 24px rgba(180, 120, 120, 0.08);
}

.creator-credit a {
  color: #3e7f89;
  font-weight: 800;
  text-decoration: none;
}

.creator-credit a:hover {
  color: var(--pink-strong);
}

.creator-role {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

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

.comic-card {
  background: var(--panel-strong);
}

.comic-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.comic-thumb-list.is-series {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comic-thumb-list.is-series .comic-body {
  grid-column: 1 / -1;
}

.comic-thumb {
  aspect-ratio: 5 / 7;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(249, 240, 235, 0.92));
  overflow: hidden;
}

.comic-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.comic-body {
  padding: 16px;
}

.comic-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

.comic-part {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--pink-strong);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(180, 120, 120, 0.16);
}

.comic-note,
.empty-state {
  color: var(--muted);
}

.empty-state {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px dashed rgba(225, 194, 188, 0.52);
}

.site-footer {
  padding: 30px 0 46px;
  color: var(--muted);
}

.footer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(225, 194, 188, 0.22);
  box-shadow: var(--shadow);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
}

.site-modal {
  position: fixed;
  inset: 0;
  background: rgba(32, 49, 59, 0.84);
  padding: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.site-modal.is-open {
  display: flex;
}

.modal-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 250, 246, 0.98);
}

.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
}

.modal-figure {
  margin: 8px 0 0;
}

.modal-figure img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.modal-caption {
  margin-top: 12px;
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 920px) {
  .hero,
  .feature-grid,
  .characters-grid,
  .comics-grid,
  .two-column,
  .character-hero {
    grid-template-columns: 1fr;
  }

  .feature-card:first-child {
    grid-column: auto;
  }

  .hero-media-card {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    align-items: flex-start;
  }

  .brand-logo {
    width: 174px;
    max-height: 60px;
  }

  .site-nav {
    width: 100%;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    padding-top: 10px;
    flex-direction: column;
  }

  .site-nav a {
    width: 100%;
    justify-content: center;
  }

  .character-card {
    grid-template-columns: 1fr;
  }

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

  .page-main {
    padding-top: 20px;
  }
}
