:root {
  color-scheme: light;
  --bg: #f5efe4;
  --bg-strong: #fbf7ef;
  --surface: rgba(255, 250, 244, 0.82);
  --surface-strong: rgba(255, 251, 247, 0.94);
  --surface-soft: rgba(237, 228, 215, 0.7);
  --ink: #172022;
  --muted: #5b655d;
  --gold: #b88a2f;
  --gold-soft: #dfc98d;
  --accent: #8a5a38;
  --accent-soft: rgba(138, 90, 56, 0.14);
  --line: rgba(23, 32, 34, 0.12);
  --line-strong: rgba(23, 32, 34, 0.2);
  --shadow: 0 20px 60px rgba(23, 32, 34, 0.08);
  --shadow-soft: 0 12px 30px rgba(23, 32, 34, 0.05);
  --radius-xl: 2rem;
  --radius-lg: 1.5rem;
  --radius-md: 1.15rem;
  --font-display: "Noto Serif JP", serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(184, 138, 47, 0.11), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(32, 79, 79, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(245, 239, 228, 0.94)),
    var(--bg);
  font-family: var(--font-body);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(23, 32, 34, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 34, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
}

body::after {
  z-index: -3;
  background:
    radial-gradient(circle at 18% 16%, rgba(195, 107, 75, 0.08), transparent 16rem),
    radial-gradient(circle at 84% 24%, rgba(184, 138, 47, 0.08), transparent 18rem),
    radial-gradient(circle at 68% 70%, rgba(32, 79, 79, 0.06), transparent 20rem);
}

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

a {
  color: inherit;
}

a,
button,
summary {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(32, 79, 79, 0.45);
  outline-offset: 4px;
}

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

p {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 60;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg-strong);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  width: min(var(--max-width), calc(100% - 1.5rem));
  margin: 0 auto;
  padding-bottom: 2rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 1rem;
}

.topbar-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 247, 239, 0.84);
  box-shadow: 0 18px 60px rgba(23, 32, 34, 0.06);
  backdrop-filter: blur(14px);
}

.topbar.is-scrolled .topbar-frame {
  border-color: var(--line-strong);
  background: rgba(251, 247, 239, 0.94);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.brand-copy {
  min-width: 0;
}

.brand-name,
.footer-title {
  margin-bottom: 0.18rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand-tag {
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav a,
.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.header-link:hover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  transform: translateY(-1px);
}

.header-link {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  margin: 0.16rem auto;
  border-radius: 999px;
  background: currentColor;
}

.section {
  border-inline: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 1.5rem;
  padding: 2rem 1.25rem 2.5rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.5rem 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.badge,
.card-kicker,
.poster-label,
.metric-label,
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
}

.badge-primary {
  border-color: rgba(32, 79, 79, 0.24);
  background: rgba(32, 79, 79, 0.08);
  color: #204f4f;
}

.eyebrow,
.card-kicker,
.metric-label,
.poster-label {
  color: var(--muted);
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

h1 {
  max-width: 8em;
  margin-bottom: 0;
  font-size: clamp(3.8rem, 11vw, 7.2rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.5rem;
  line-height: 1.15;
}

.hero-dek,
.section-heading p,
.metric-copy,
.poster-note p,
.info-card p,
.reward-card p,
.step-card p,
.source-card p,
.faq-list p,
.footer-copy,
.comparison-table > div > * {
  line-height: 1.8;
}

.hero-dek {
  max-width: 42rem;
  margin-bottom: 0;
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #c39535, #a27227);
  color: #fff8eb;
  box-shadow: 0 16px 32px rgba(184, 138, 47, 0.2);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric-tab,
.poster-card,
.info-card,
.reward-card,
.comparison-card,
.step-card,
.source-card,
.faq-list details,
.footer-frame {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-tab {
  min-height: 100%;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.metric-value {
  margin: 0.75rem 0 0.45rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.15;
}

.metric-copy {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.hero-card {
  display: flex;
  align-items: stretch;
}

.poster-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
}

.poster-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.poster-stage {
  position: relative;
  min-height: 26rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-xl) - 0.3rem);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 247, 223, 0.9), transparent 28%),
    linear-gradient(180deg, #ede2cc 0%, #d9c8aa 68%, #cfbb95 100%);
}

.poster-sun {
  position: absolute;
  inset: 1.4rem auto auto 50%;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    repeating-conic-gradient(from -6deg, rgba(184, 138, 47, 0.18) 0deg 4deg, transparent 4deg 14deg),
    radial-gradient(circle, rgba(255, 247, 223, 0.7), transparent 70%);
  opacity: 0.9;
}

.orbit {
  position: absolute;
  border: 3px solid rgba(184, 138, 47, 0.9);
  border-radius: 50%;
}

.orbit-a {
  top: 4rem;
  left: 3rem;
  width: 2.75rem;
  height: 2.75rem;
}

.orbit-b {
  top: 5.4rem;
  right: 2.6rem;
  width: 2.6rem;
  height: 2.6rem;
}

.orbit-c {
  right: 3.7rem;
  bottom: 3.5rem;
  width: 3rem;
  height: 3rem;
}

.tower {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  width: min(15rem, 68vw);
  height: 19rem;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 36px rgba(23, 32, 34, 0.16));
}

.tower::before {
  content: "";
  position: absolute;
  inset: 0 1.95rem;
  clip-path: polygon(50% 0, 95% 100%, 5% 100%);
  background: linear-gradient(160deg, #fff5c8, #c38e2f 48%, #87501c 100%);
}

.tower::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.5rem;
  width: 4.8rem;
  height: 4.8rem;
  border: 3px solid rgba(63, 37, 14, 0.55);
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 34% 42%, #3b2210 0 0.28rem, transparent 0.29rem),
    radial-gradient(circle at 66% 42%, #3b2210 0 0.28rem, transparent 0.29rem),
    linear-gradient(180deg, rgba(255, 249, 229, 0.88), rgba(255, 230, 158, 0.96));
}

.cat-ear {
  position: absolute;
  top: -0.55rem;
  width: 3.2rem;
  height: 3.2rem;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #fff0b0;
}

.cat-ear.left {
  left: 2.8rem;
  transform: rotate(-16deg);
}

.cat-ear.right {
  right: 2.8rem;
  transform: rotate(16deg);
}

.floor {
  position: absolute;
  left: 50%;
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(84, 48, 17, 0.86);
  transform: translateX(-50%);
}

.floor-1 {
  top: 4.6rem;
  width: 6.2rem;
}

.floor-2 {
  top: 8.2rem;
  width: 8rem;
}

.floor-3 {
  top: 11.8rem;
  width: 9.9rem;
}

.floor-4 {
  top: 15.4rem;
  width: 11.8rem;
}

.floor-5 {
  top: 18.95rem;
  width: 13.8rem;
}

.tower-face {
  position: absolute;
  left: 50%;
  top: 8.8rem;
  display: grid;
  place-items: center;
  width: 4.45rem;
  height: 4.45rem;
  border: 2px solid rgba(63, 37, 14, 0.52);
  border-radius: 50%;
  background: rgba(255, 252, 242, 0.72);
  color: #3b2210;
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 500;
  transform: translateX(-50%);
}

.poster-notes {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.poster-note {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.66);
}

.poster-note h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.poster-note p:last-child {
  margin-bottom: 0;
}

.editorial-section {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: 1.75rem;
  padding: 2rem 1.25rem;
}

.section-heading {
  max-width: 32rem;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.editorial-body {
  min-width: 0;
}

.overview-grid,
.step-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.reward-card,
.source-card {
  min-height: 100%;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
}

.info-card {
  background: rgba(250, 245, 236, 0.75);
}

.reward-stack {
  display: grid;
  gap: 1rem;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.reward-card {
  background: rgba(255, 251, 246, 0.82);
}

.reward-icon {
  display: inline-grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(184, 138, 47, 0.36);
  border-radius: 1rem;
  background: rgba(184, 138, 47, 0.1);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
}

.comparison-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 246, 0.86);
}

.comparison-header {
  margin-bottom: 0.9rem;
}

.comparison-header h3 {
  margin-bottom: 0;
}

.comparison-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
}

.comparison-table > div {
  display: grid;
  grid-template-columns: 0.72fr 1.14fr 1.14fr;
}

.comparison-table > div > * {
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.comparison-table > div:first-child > * {
  background: rgba(32, 79, 79, 0.08);
  color: var(--ink);
}

.comparison-table > div > *:last-child {
  border-right: 0;
}

.comparison-table > div:last-child > * {
  border-bottom: 0;
}

.step-card {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 244, 0.76);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.source-card {
  text-decoration: none;
}

.source-card:hover {
  border-color: rgba(32, 79, 79, 0.3);
  background: var(--bg-strong);
  transform: translateY(-2px);
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-list details {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 244, 0.82);
}

.faq-list details[open] {
  background: rgba(255, 255, 255, 0.92);
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin-bottom: 0;
  margin-top: 0.85rem;
}

.footer {
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1.2rem 2rem;
  align-items: start;
  padding: 1.35rem 1.25rem;
  border-radius: 0;
  box-shadow: none;
  background: rgba(251, 247, 239, 0.62);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-brand img {
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.footer-copy {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.tiny {
  grid-column: 1 / -1;
  margin-bottom: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 480ms ease,
    transform 480ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .editorial-section {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .poster-notes,
  .overview-grid,
  .reward-grid,
  .step-grid,
  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(var(--max-width), calc(100% - 1rem));
  }

  .topbar-frame {
    border-radius: 1.5rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(251, 247, 239, 0.97);
    box-shadow: var(--shadow);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav a,
  .header-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding-top: 0.75rem;
  }

  .topbar-frame {
    padding: 0.7rem 0.8rem;
  }

  .section {
    border-inline: 0;
  }

  .footer {
    border-inline: 0;
  }

  .hero,
  .editorial-section,
  .footer-frame {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.9rem);
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
  }

  .metric-grid,
  .poster-notes,
  .overview-grid,
  .reward-grid,
  .step-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .editorial-section {
    gap: 1.2rem;
    padding-top: 1.6rem;
    padding-bottom: 1.9rem;
  }

  .poster-card,
  .metric-tab,
  .info-card,
  .reward-card,
  .comparison-card,
  .step-card,
  .source-card,
  .faq-list details {
    border-radius: 1.25rem;
  }

  .poster-stage {
    min-height: 22rem;
  }

  .tower {
    height: 16rem;
    width: min(13rem, 70vw);
  }

  .cat-ear.left {
    left: 2.3rem;
  }

  .cat-ear.right {
    right: 2.3rem;
  }

  .floor-1 {
    top: 3.8rem;
  }

  .floor-2 {
    top: 6.9rem;
  }

  .floor-3 {
    top: 10rem;
  }

  .floor-4 {
    top: 13.1rem;
  }

  .floor-5 {
    top: 16.15rem;
    width: 12.3rem;
  }

  .tower-face {
    top: 7.6rem;
  }

  .comparison-table > div,
  .step-card,
  .footer-frame {
    grid-template-columns: 1fr;
  }

  .comparison-table > div {
    border-bottom: 0.4rem solid rgba(23, 32, 34, 0.05);
  }

  .comparison-table > div > * {
    border-right: 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
