/* ==========================================================================
   AETHERIA — World Charter & Manifesto (世界観ページ・世界憲章)
   Design Philosophy:
   - Quiet, classical library atmosphere (静かな図書館で、ある新しい国の憲章を読んだ体験)
   - Deep warm parchment backgrounds (#f8f7f4 / #faf9f7 / #f0efe9)
   - Elegant, classical typography (Cinzel, Cormorant Garamond, EB Garamond, Noto Serif JP)
   - Generous breathing room and contemplative reading rhythm
   - Gentle, subtle fade-ins (0.8s - 1.4s), strictly NO neon, NO pvp, NO gaming UI
   ========================================================================== */

:root {
  --bg-primary: #f8f7f4;
  --bg-secondary: #faf9f7;
  --bg-alt: #f0efe9;
  --bg-subtle: #eae8e1;

  --text-main: #2f3437;
  --text-muted: #5e6468;
  --text-dim: #8a8f94;

  --accent-gold: #9c7a3e;
  --accent-gold-soft: rgba(156, 122, 62, 0.12);
  --accent-gold-border: rgba(156, 122, 62, 0.35);

  --rule-color: rgba(47, 52, 55, 0.12);
  --rule-delicate: rgba(47, 52, 55, 0.07);

  --font-serif-en:
    "Cormorant Garamond", "EB Garamond", Garamond, "Georgia", serif;
  --font-display-en: "Cinzel", "Cormorant Garamond", serif;
  --font-serif-jp:
    "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", "HiraMinProN-W3",
    serif;

  --ease-thoughtful: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.charter-body {
  font-family: var(--font-serif-jp);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 2.1;
  letter-spacing: 0.04em;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Subtle reading progress bar at very top */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), #bba06b);
  z-index: 100;
  transition: width 0.1s linear;
  opacity: 0.8;
}

/* Minimalist ambient header */
.charter-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 40px;
  background: rgba(248, 247, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-delicate);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-emblem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-display-en);
  letter-spacing: 0.22em;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header-emblem:hover {
  color: var(--accent-gold);
}

.emblem-glyph {
  font-size: 11px;
  color: var(--accent-gold);
  line-height: 1;
}

.header-tag {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.header-enter-link {
  font-family: var(--font-serif-jp);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

.header-enter-link:hover {
  color: var(--text-main);
  border-bottom-color: var(--accent-gold);
}

.header-enter-link span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.header-enter-link:hover span {
  transform: translateX(3px);
}

/* ==========================================================================
   Hero Section: min-height: 100vh, Full Atmosphere
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(240, 239, 233, 0.8) 0%,
    var(--bg-primary) 70%
  );
}

.hero-background-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ambient-glow {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(156, 122, 62, 0.05) 0%,
    transparent 70%
  );
  filter: blur(40px);
}

.ambient-circle {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(156, 122, 62, 0.09);
  pointer-events: none;
}

.ambient-lines {
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(47, 52, 55, 0.06) 50%,
    transparent 100%
  );
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-insignia {
  margin-bottom: 24px;
}

.charter-mark {
  font-family: var(--font-display-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent-gold);
  text-transform: uppercase;
  font-weight: 500;
  display: inline-block;
  padding: 6px 16px;
  border-top: 1px solid var(--accent-gold-border);
  border-bottom: 1px solid var(--accent-gold-border);
}

.hero-logo {
  font-family: var(--font-display-en);
  font-size: clamp(52px, 8vw, 86px);
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--text-main);
  margin-left: 0.28em; /* Offset for letter spacing centering */
  margin-bottom: 36px;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.hero-tagline {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 400;
  color: var(--text-main);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  line-height: 1.7;
}

.hero-subtagline {
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 2.1;
  max-width: 580px;
  margin-bottom: 70px;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.75;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background-color: var(--accent-gold);
  border-radius: 2px;
  animation: scrollWheel 2.2s infinite ease-in-out;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.3;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.scroll-text {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* ==========================================================================
   Main Charter Document Layout
   max-width: 900px, huge padding (120px top/bottom)
   ========================================================================== */
.charter-document {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

.charter-section {
  padding-top: 130px;
  padding-bottom: 130px;
  position: relative;
  /* Scroll fade animation state */
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.1s var(--ease-thoughtful),
    transform 1.1s var(--ease-thoughtful);
  will-change: opacity, transform;
}

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

/* Section 05 has warm tinted parchment background */
.charter-section-alt {
  background-color: var(--bg-alt);
  padding-left: 48px;
  padding-right: 48px;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  margin-top: 20px;
  margin-bottom: 20px;
}

.section-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.section-roman {
  font-family: var(--font-display-en);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--accent-gold);
  text-transform: uppercase;
  font-weight: 500;
}

.section-divider-line {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--rule-color), transparent);
}

.section-heading {
  font-family: var(--font-serif-jp);
  font-size: clamp(34px, 5.5vw, 54px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 50px;
}

.section-body {
  font-size: 16px;
  line-height: 2.1;
  color: var(--text-main);
}

.section-body p {
  margin-bottom: 32px;
  font-weight: 400;
}

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

.lead-paragraph {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #24282b;
}

.section-question {
  margin-top: 48px;
  padding: 30px 32px;
  background-color: rgba(240, 239, 233, 0.55);
  border-left: 2px solid var(--accent-gold);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 2.2;
}

/* Classical Chapter Ornament between sections */
.charter-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  color: var(--accent-gold);
  opacity: 0.45;
  user-select: none;
}

.ornament-leaf {
  font-size: 16px;
  transform: rotate(45deg);
}

/* Section 02 Specific Styling */
.parallel-lines {
  padding-left: 20px;
  border-left: 1px solid var(--rule-color);
  font-style: normal;
  color: var(--text-muted);
}

.highlight-callout {
  margin-top: 40px;
  margin-bottom: 24px !important;
  font-size: 19px;
  font-weight: 500;
  color: #1f2224;
  line-height: 2.2;
  letter-spacing: 0.06em;
}

.concluding-thought {
  color: var(--text-muted);
  font-size: 15px;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Section 03: Key Highlight Box
   「誰かを打ち負かしても報酬は得られません。」
   ========================================================================== */
.creed-highlight-box {
  margin: 56px 0;
  padding: 40px 44px;
  background-color: #faf9f7;
  border-left: 4px solid var(--accent-gold);
  border-top: 1px solid var(--rule-delicate);
  border-right: 1px solid var(--rule-delicate);
  border-bottom: 1px solid var(--rule-delicate);
  position: relative;
  box-shadow: 0 6px 24px rgba(47, 52, 55, 0.03);
}

.creed-mark {
  font-family: var(--font-display-en);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--accent-gold);
  margin-bottom: 14px;
  font-weight: 600;
}

.creed-text {
  font-size: clamp(20px, 2.8vw, 24px);
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.08em;
  line-height: 1.8;
  margin: 0 !important;
}

.creed-small {
  margin: 44px 0;
  padding: 30px 36px;
}

/* ==========================================================================
   Section 04: Monsters & Shadows Elements
   ========================================================================== */
.subsection-subheading {
  font-family: var(--font-serif-jp);
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-top: 54px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-delicate);
}

.subsection-subheading:first-of-type {
  margin-top: 0;
}

.emotions-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin: 36px 0;
  padding: 24px 28px;
  background-color: rgba(240, 239, 233, 0.45);
  border-radius: 4px;
  border: 1px dashed var(--rule-color);
}

.emotion-word {
  font-family: var(--font-serif-jp);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.emotion-sep {
  color: var(--accent-gold);
  opacity: 0.4;
  font-size: 12px;
}

.section-insight {
  font-size: 17px;
  line-height: 2.2;
  font-weight: 500;
  color: #24282b;
  padding: 24px 28px;
  background-color: #faf9f7;
  border-left: 2px solid var(--accent-gold);
  margin: 36px 0 !important;
}

.monster-danger-lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0 !important;
}

.statement-danger {
  background: radial-gradient(
    circle at center,
    rgba(156, 122, 62, 0.09) 0%,
    transparent 75%
  );
  margin: 36px 0 48px;
}

.statement-subcaption {
  font-family: var(--font-serif-jp);
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 14px;
}

/* ==========================================================================
   Section 05: Mechanisms & Centered Featured Statement
   「より良い答えに近づくこと。」
   ========================================================================== */
.mechanisms-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 36px;
}

.mechanism-badge {
  font-family: var(--font-display-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  padding: 6px 16px;
  border: 1px solid var(--rule-color);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  color: var(--text-muted);
}

.core-statement-container {
  margin: 64px 0;
  text-align: center;
  padding: 48px 24px;
  background: radial-gradient(
    circle at center,
    rgba(156, 122, 62, 0.06) 0%,
    transparent 75%
  );
  border-top: 1px solid var(--rule-delicate);
  border-bottom: 1px solid var(--rule-delicate);
}

.statement-caption {
  font-family: var(--font-display-en);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent-gold);
  margin-bottom: 16px;
  font-weight: 600;
}

.statement-featured {
  font-size: clamp(24px, 3.8vw, 34px);
  font-weight: 600;
  color: #1f2224;
  letter-spacing: 0.1em;
  line-height: 1.6;
  margin: 0 !important;
}

/* ==========================================================================
   Section 05: Transparency Note
   ========================================================================== */
.transparency-note {
  font-family: var(--font-display-en);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent-gold);
  margin-bottom: 24px;
  font-weight: 500;
}

/* ==========================================================================
   Section 06: Finale Section
   ========================================================================== */
.charter-final {
  padding-bottom: 160px;
}

.closing-creed-intro {
  font-size: 18px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 24px !important;
}

.closing-creed-highlight {
  margin: 36px 0 64px;
  padding: 36px 0;
  border-top: 1px solid var(--rule-color);
  border-bottom: 1px solid var(--rule-color);
}

.creed-line-sub {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text-muted);
  margin-bottom: 12px !important;
  letter-spacing: 0.08em;
}

.creed-line-main {
  font-size: clamp(26px, 3.8vw, 36px);
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.08em;
  line-height: 1.6;
  margin-bottom: 0 !important;
}

.manifesto-finale {
  margin: 72px 0 60px;
  padding: 50px 0;
  text-align: center;
}

.finale-verse {
  font-size: clamp(19px, 2.6vw, 25px);
  line-height: 2.2;
  letter-spacing: 0.12em;
  color: var(--text-main);
  font-weight: 400;
  margin-bottom: 12px !important;
}

.finale-signoff {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.finale-name {
  font-family: var(--font-display-en);
  font-size: clamp(32px, 4.5vw, 44px);
  letter-spacing: 0.32em;
  margin-left: 0.32em;
  color: var(--text-main);
  font-weight: 500;
}

.finale-seal {
  font-size: 14px;
  color: var(--accent-gold);
}

.charter-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.btn-charter-enter {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 36px;
  border: 1px solid var(--accent-gold-border);
  background-color: var(--bg-secondary);
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.12em;
  border-radius: 2px;
  transition: all 0.4s var(--ease-thoughtful);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.btn-charter-enter:hover {
  background-color: var(--bg-alt);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(156, 122, 62, 0.08);
}

.btn-charter-enter .arrow {
  transition: transform 0.3s ease;
  color: var(--accent-gold);
}

.btn-charter-enter:hover .arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Quiet Classical Footer
   ========================================================================== */
.charter-footer {
  border-top: 1px solid var(--rule-color);
  background-color: var(--bg-secondary);
  padding: 60px 24px;
  text-align: center;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
}

.footer-crest {
  font-family: var(--font-display-en);
  font-size: 14px;
  letter-spacing: 0.3em;
  margin-left: 0.3em;
  color: var(--text-main);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-motto {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.footer-meta {
  font-family: var(--font-serif-en);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-meta .separator {
  color: var(--rule-color);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
/* --- Tablet / small desktop --- */
@media (max-width: 768px) {
  .charter-header {
    padding: 14px 16px;
  }

  .header-tag {
    display: none;
  }

  .header-nav-actions {
    gap: 10px;
  }

  .header-guide-link {
    font-size: 11px;
    padding: 4px 10px;
  }

  .header-enter-link {
    font-size: 11px;
  }

  .charter-document {
    padding: 0 18px;
  }

  .charter-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .charter-section-alt {
    padding-left: 20px;
    padding-right: 20px;
  }

  .heading-break {
    display: none;
  }

  .mobile-break {
    display: inline;
  }

  .creed-highlight-box {
    padding: 24px 20px;
    margin: 36px 0;
  }

  .creed-small {
    padding: 22px 18px;
    margin: 32px 0;
  }

  .core-statement-container {
    padding: 32px 14px;
    margin: 44px 0;
  }

  .section-question {
    padding: 22px 20px;
    margin-top: 36px;
  }

  .section-insight {
    padding: 20px 18px;
  }

  .emotions-cloud {
    padding: 18px 16px;
    gap: 6px 10px;
  }

  .hero-section {
    padding: 120px 18px 60px;
  }

  .hero-subtagline {
    margin-bottom: 48px;
  }

  .hero-guide-wrapper {
    margin-bottom: 36px;
  }

  .hero-guide-button {
    padding: 14px 30px;
    font-size: 15px;
  }

  .charter-controls {
    padding-top: 80px;
    padding-bottom: 90px;
  }

  .controls-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 36px;
  }

  .control-card {
    padding: 22px 18px;
  }

  .closing-creed-highlight {
    margin: 28px 0 48px;
    padding: 28px 0;
  }

  .manifesto-finale {
    margin: 48px 0 40px;
    padding: 36px 0;
  }

  .charter-final {
    padding-bottom: 100px;
  }

  .charter-footer {
    padding: 40px 18px;
  }
}

/* --- Portrait smartphone (<= 480px) --- */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .charter-header {
    padding: 12px 14px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-emblem {
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .header-nav-actions {
    gap: 8px;
  }

  .header-guide-link {
    font-size: 10px;
    padding: 3px 8px;
  }

  .header-enter-link {
    font-size: 10px;
  }

  .charter-document {
    padding: 0 14px;
  }

  .charter-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .charter-section-alt {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-meta {
    gap: 12px;
    margin-bottom: 20px;
  }

  .section-roman {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .section-heading {
    font-size: clamp(26px, 7vw, 36px);
    margin-bottom: 32px;
  }

  .section-body {
    font-size: 15px;
    line-height: 2;
  }

  .section-body p {
    margin-bottom: 24px;
  }

  .lead-paragraph {
    font-size: 16px;
  }

  .section-question {
    font-size: 15px;
    padding: 18px 16px;
    margin-top: 28px;
  }

  .highlight-callout {
    font-size: 17px;
    margin-top: 28px;
  }

  .subsection-subheading {
    font-size: clamp(18px, 4.5vw, 22px);
    margin-top: 36px;
    margin-bottom: 18px;
    padding-bottom: 10px;
  }

  .creed-highlight-box {
    padding: 20px 16px;
    margin: 28px 0;
  }

  .creed-text {
    font-size: clamp(17px, 4.5vw, 21px);
  }

  .creed-small {
    padding: 18px 14px;
    margin: 24px 0;
  }

  .statement-featured {
    font-size: clamp(20px, 5.5vw, 28px);
  }

  .core-statement-container {
    padding: 28px 12px;
    margin: 36px 0;
  }

  .section-insight {
    font-size: 15px;
    padding: 18px 14px;
  }

  .mechanisms-badge-row {
    gap: 8px;
  }

  .mechanism-badge {
    font-size: 10px;
    padding: 4px 10px;
  }

  .closing-creed-intro {
    font-size: 16px;
  }

  .creed-line-sub {
    font-size: clamp(16px, 4vw, 19px);
  }

  .creed-line-main {
    font-size: clamp(22px, 5.5vw, 30px);
  }

  .finale-verse {
    font-size: clamp(17px, 4.5vw, 22px);
  }

  .finale-name {
    font-size: clamp(24px, 5.5vw, 34px);
    letter-spacing: 0.22em;
    margin-left: 0.22em;
  }

  .btn-charter-enter {
    padding: 14px 24px;
    font-size: 14px;
  }

  .charter-controls {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .controls-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }

  .control-card {
    padding: 18px 14px;
  }

  .control-card-title {
    font-size: 15.5px;
  }

  .control-card-desc {
    font-size: 12.5px;
  }

  .control-list li {
    font-size: 12.5px;
    line-height: 1.75;
  }

  kbd {
    font-size: 10.5px;
    padding: 1px 5px;
  }

  .charter-footer {
    padding: 32px 14px;
  }

  .footer-crest {
    font-size: 12px;
    letter-spacing: 0.22em;
    margin-left: 0.22em;
  }

  .footer-motto {
    font-size: 12px;
  }

  .footer-meta {
    font-size: 11px;
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* --- Very narrow / small portrait phone (<= 380px) --- */
@media (max-width: 380px) {
  .hero-logo {
    font-size: clamp(36px, 10vw, 52px);
    letter-spacing: 0.18em;
    margin-left: 0.18em;
  }

  .hero-tagline {
    font-size: clamp(18px, 5vw, 22px);
  }

  .hero-subtagline {
    font-size: clamp(13px, 3.5vw, 16px);
  }

  .charter-mark {
    font-size: 9px;
    letter-spacing: 0.2em;
    padding: 5px 10px;
  }

  .hero-guide-button {
    padding: 12px 22px;
    font-size: 14px;
    gap: 10px;
  }

  .section-heading {
    font-size: clamp(22px, 7.5vw, 30px);
  }

  .header-emblem {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .header-guide-link {
    font-size: 9px;
    padding: 3px 7px;
  }

  .header-enter-link {
    font-size: 9px;
  }
}

/* --- Landscape phone (short viewport height) --- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 80px 24px 40px;
  }

  .hero-logo {
    font-size: clamp(36px, 6vw, 56px);
    margin-bottom: 20px;
  }

  .hero-subtagline {
    margin-bottom: 32px;
  }

  .hero-guide-wrapper {
    margin-bottom: 24px;
  }

  .scroll-indicator {
    display: none;
  }

  .charter-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

@media (min-width: 769px) {
  .mobile-break {
    display: none;
  }
}

/* ==========================================================================
   Header Guide Link & Hero Guide Prominent Button
   ========================================================================== */
.header-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-guide-link {
  font-family: var(--font-serif-jp);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  text-decoration: none;
  border: 1px solid var(--accent-gold-border);
  background: var(--accent-gold-soft);
  padding: 5px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.header-guide-link:hover {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

.hero-guide-wrapper {
  margin-top: 10px;
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.hero-guide-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 42px;
  background: linear-gradient(135deg, #a68444 0%, #876527 100%);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-serif-jp);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.14em;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 10px 32px rgba(156, 122, 62, 0.36),
    0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.35s var(--ease-thoughtful);
  cursor: pointer;
}

.hero-guide-button:hover {
  background: linear-gradient(135deg, #b8934d 0%, #96712e 100%);
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 16px 44px rgba(156, 122, 62, 0.48),
    0 4px 12px rgba(0, 0, 0, 0.12);
  color: #ffffff;
}

.hero-guide-button .guide-btn-icon {
  font-size: 16px;
  color: #ffe6a3;
  animation: pulse-glow 2.5s infinite ease-in-out;
}

.hero-guide-button .guide-btn-arrow {
  display: inline-block;
  font-size: 16px;
  color: #ffe6a3;
  transition: transform 0.3s ease;
}

.hero-guide-button:hover .guide-btn-arrow {
  transform: translateY(4px);
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

/* ==========================================================================
   Section 08: Controls & World Guide
   ========================================================================== */
.charter-controls {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--rule-color);
  padding-top: 110px;
  padding-bottom: 120px;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 26px;
  margin-top: 52px;
}

.control-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--rule-color);
  border-radius: 6px;
  padding: 30px 26px;
  transition: all 0.3s var(--ease-thoughtful);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.control-card:hover {
  border-color: var(--accent-gold-border);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(156, 122, 62, 0.09);
}

.control-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-delicate);
}

.control-card-icon {
  font-size: 26px;
  line-height: 1;
}

.control-card-title {
  font-family: var(--font-serif-jp);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.05em;
  margin: 0;
}

.control-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

.control-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.control-list li {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-main);
  position: relative;
  padding-left: 14px;
}

.control-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: var(--accent-gold);
}

.control-list strong {
  color: var(--accent-gold);
  font-weight: 600;
}

kbd {
  display: inline-block;
  padding: 2px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-alt);
  border: 1px solid rgba(47, 52, 55, 0.22);
  border-bottom-width: 2px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin: 0 3px;
  vertical-align: baseline;
}
