:root {
  --ink: #18223a;
  --muted: #64708a;
  --paper: #fffaf0;
  --white: #fffdf8;
  --night: #1c2757;
  --blue: #4c8df6;
  --cyan: #8cd8ff;
  --gold: #f6c65b;
  --rose: #e878a3;
  --lavender: #8b7dde;
  --line: rgba(39, 52, 95, 0.15);
  --shadow: 0 24px 60px rgba(23, 32, 74, 0.16);
  color: var(--ink);
  background: #f7f4ff;
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(246, 198, 91, 0.23), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(140, 216, 255, 0.32), transparent 26rem),
    linear-gradient(180deg, #171e4a 0 650px, #f8f4ff 650px 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

p {
  line-height: 1.85;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--night);
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--cyan);
}

.site-header {
  position: fixed;
  left: 50%;
  top: 16px;
  z-index: 50;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 16px 40px rgba(12, 16, 44, 0.16);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--lavender) 54%, var(--gold));
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.global-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  font-size: 13px;
  font-weight: 900;
}

.global-nav a {
  flex: 0 0 auto;
  padding: 9px 10px;
  border-radius: 10px;
  color: #28334e;
}

.global-nav a:hover,
.global-nav a:focus-visible {
  background: rgba(76, 141, 246, 0.12);
  color: var(--blue);
  outline: none;
}

.hero-section {
  position: relative;
  min-height: min(820px, 100svh);
  overflow: hidden;
  background: var(--night);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 21, 57, 0.88) 0%, rgba(25, 31, 75, 0.7) 32%, rgba(25, 31, 75, 0.08) 70%),
    linear-gradient(180deg, rgba(12, 16, 44, 0.08), rgba(12, 16, 44, 0.46));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 176px 0 120px;
  color: white;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 720px;
  margin-top: 16px;
  color: white;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 16px 52px rgba(0, 0, 0, 0.36);
}

.hero-lead {
  max-width: 640px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--gold), #ffe9a0);
  color: #1f2545;
  box-shadow: 0 18px 36px rgba(246, 198, 91, 0.28);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  backdrop-filter: blur(12px);
}

.hero-card {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 44px;
  z-index: 3;
  width: min(330px, calc(100% - 48px));
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card span,
.gallery-card span,
.goods-grid span,
.character-cards span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.hero-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: -48px auto 0;
  position: relative;
  z-index: 4;
}

.intro-band article,
.section-block,
.about-section {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.intro-band article {
  padding: 22px;
}

.intro-band span {
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
}

.intro-band h2 {
  margin-top: 10px;
  font-size: 22px;
}

.intro-band p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.section-block {
  width: min(1180px, calc(100% - 32px));
  margin: 76px auto 0;
  padding: clamp(28px, 5vw, 54px);
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.about-section h2 {
  margin-top: 10px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.15;
}

.section-heading p:not(.eyebrow),
.about-section p {
  margin-top: 16px;
  color: var(--muted);
}

.character-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  margin-top: 34px;
}

.profile-panel {
  padding: 24px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(246, 198, 91, 0.26), transparent 15rem),
    linear-gradient(135deg, #222b60, #33418c);
  color: white;
}

.profile-panel dl,
.profile-panel div {
  display: grid;
  gap: 6px;
}

.profile-panel dl {
  margin: 0;
  gap: 18px;
}

.profile-panel dt {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-panel dd {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.character-cards,
.goods-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.character-cards article,
.world-card,
.gallery-card,
.goods-grid article,
.journal-list a {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.character-cards article {
  padding: 22px;
}

.character-cards h3,
.world-card h3,
.goods-grid h3 {
  margin-top: 10px;
  font-size: 21px;
}

.character-cards p,
.world-card p,
.goods-grid p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.world-section {
  background:
    linear-gradient(135deg, rgba(28, 39, 87, 0.96), rgba(39, 52, 112, 0.9)),
    var(--night);
  color: white;
}

.world-section h2,
.world-section .section-heading p {
  color: white;
}

.world-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-top: 34px;
}

.world-card {
  min-height: 190px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

.world-card.large {
  grid-row: span 3;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(246, 198, 91, 0.3), transparent 14rem),
    rgba(255, 255, 255, 0.1);
}

.world-card h3 {
  color: white;
}

.world-card p {
  color: rgba(255, 255, 255, 0.78);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 14px;
  margin-top: 34px;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card.featured {
  grid-row: span 2;
}

.gallery-card.featured img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.gallery-card.featured div,
.gradient-card {
  padding: 22px;
}

.gradient-card {
  min-height: 225px;
  background: linear-gradient(135deg, #eef4ff, #fffdf8);
}

.gradient-card.alt {
  background: linear-gradient(135deg, #f7f1ff, #fffdf8);
}

.gradient-card.warm {
  background: linear-gradient(135deg, #fff2d0, #fffdf8);
}

.gallery-card h3 {
  margin-top: 10px;
  font-size: 24px;
}

.gallery-card p {
  margin-top: 10px;
  color: var(--muted);
}

.journal-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.journal-list a {
  display: grid;
  grid-template-columns: 130px minmax(180px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.journal-list a:hover,
.journal-list a:focus-visible {
  border-color: rgba(76, 141, 246, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(23, 32, 74, 0.1);
  outline: none;
}

.journal-list time {
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
}

.journal-list strong {
  font-size: 18px;
}

.journal-list span {
  color: var(--muted);
}

.goods-grid {
  margin-top: 34px;
}

.goods-grid article {
  padding: 24px;
  background:
    radial-gradient(circle at 90% 12%, rgba(246, 198, 91, 0.25), transparent 10rem),
    var(--white);
}

.about-section {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 76px auto 0;
  padding: 36px;
}

.about-section > div {
  max-width: 760px;
}

.about-section .button-secondary,
.about-section .button-primary {
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 40px auto 0;
  padding: 36px 0 46px;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer strong {
  color: white;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-content {
    padding-top: 190px;
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -92px 16px 0 auto;
  }

  .intro-band,
  .character-layout,
  .world-grid,
  .gallery-grid,
  .about-section {
    grid-template-columns: 1fr;
  }

  .about-section {
    display: grid;
  }

  .character-cards,
  .goods-grid {
    grid-template-columns: 1fr;
  }

  .journal-list a {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    background: linear-gradient(180deg, #171e4a 0 760px, #f8f4ff 760px 100%);
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    border-radius: 14px;
  }

  .global-nav {
    width: 100%;
  }

  .hero-section {
    min-height: 820px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(16, 21, 57, 0.7) 0%, rgba(16, 21, 57, 0.92) 58%, rgba(16, 21, 57, 0.78) 100%);
  }

  .hero-content {
    padding-top: 200px;
  }

  .hero-content h1 {
    font-size: 46px;
  }

  .intro-band {
    margin-top: 24px;
  }

  .section-block,
  .about-section {
    margin-top: 34px;
    padding: 24px;
    border-radius: 18px;
  }
}
