@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* =====================
   CSS Reset & Base
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.body-root {
  font-family: 'Roboto', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

/* =====================
   CSS Variables
   ===================== */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-400: #999;
  --gray-600: #555;
  --accent: #000000;
  --bar-h: 60px;
  --max-w: 1200px;
  --transition: 220ms ease;
  --grid-gap: 2rem;
}

/* =====================
   Scroll Margin for sections
   ===================== */
section[id] {
  scroll-margin-top: calc(var(--bar-h) + 8px);
}

/* =====================
   Site Wrap
   ===================== */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: var(--bar-h);
}

/* =====================
   Fullscreen Menu
   ===================== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #333;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.menu-brand {
  font-family: 'Newsreader', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.menu-close {
  background: none;
  border: 1px solid #fff;
  color: #fff;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition);
}

.menu-close:hover {
  background: #fff;
  color: #000;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.menu-link {
  display: block;
  font-family: 'Newsreader', serif;
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 600;
  padding: 0.8rem 0;
  border-bottom: 1px solid #222;
  color: #fff;
  letter-spacing: -0.01em;
  transition: color var(--transition), padding-left var(--transition);
  opacity: 0;
  transform: translateX(-12px);
}

.fullscreen-menu.is-open .menu-link {
  opacity: 1;
  transform: translateX(0);
}

.fullscreen-menu.is-open .menu-link:nth-child(1) { transition-delay: 60ms; }
.fullscreen-menu.is-open .menu-link:nth-child(2) { transition-delay: 90ms; }
.fullscreen-menu.is-open .menu-link:nth-child(3) { transition-delay: 120ms; }
.fullscreen-menu.is-open .menu-link:nth-child(4) { transition-delay: 150ms; }
.fullscreen-menu.is-open .menu-link:nth-child(5) { transition-delay: 180ms; }
.fullscreen-menu.is-open .menu-link:nth-child(6) { transition-delay: 210ms; }
.fullscreen-menu.is-open .menu-link:nth-child(7) { transition-delay: 240ms; }

.menu-link:hover {
  color: #ccc;
  padding-left: 0.5rem;
}

.menu-footer-line {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #222;
  font-size: 0.82rem;
  color: #666;
}

/* =====================
   Hero
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: #000;
  color: #fff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 8rem;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: right;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.8);
}

.hero-h1 {
  font-family: 'Newsreader', serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  color: #fff;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-left: auto;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 0.85rem 2.2rem;
  border: 2px solid #fff;
  transition: background var(--transition), color var(--transition);
  min-height: 44px;
}

.hero-cta:hover {
  background: transparent;
  color: #fff;
}

/* Slant bottom edge */
.hero-slash {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
}

/* =====================
   Main Wrap
   ===================== */
.main-wrap {
  flex: 1;
  background: #fff;
}

.content-article {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

/* =====================
   Content Layout (main + aside)
   ===================== */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--grid-gap);
  align-items: start;
}

/* =====================
   Page Content (injected HTML)
   ===================== */
.content-body {
  min-width: 0;
}

.page-content-section {
  /* pass-through; content styles below */
}

/* Styles for page.content injected HTML */
.page-content-section h2 {
  font-family: 'Newsreader', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-top: 3rem;
  margin-bottom: 0.4rem;
  border-left: 4px solid #000;
  padding-left: 0.75rem;
  letter-spacing: -0.02em;
}

.page-content-section h2:first-child {
  margin-top: 0;
}

.page-content-section p.subtitle,
.page-content-section p.subhead,
.page-content-section p.desc,
.page-content-section p.lead {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.page-content-section p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #111;
}

.page-content-section h3 {
  font-family: 'Newsreader', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.page-content-section ul,
.page-content-section ol {
  margin: 0.8rem 0 1.2rem 1.5rem;
  list-style: disc;
}

.page-content-section li {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.35rem;
}

.page-content-section a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content-section a:hover {
  color: #444;
}

.page-content-section section {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
}

.page-content-section section:last-child {
  border-bottom: none;
}

/* =====================
   Aside
   ===================== */
.content-aside {
  position: sticky;
  top: calc(var(--bar-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.aside-block {
  border: 1px solid var(--gray-200);
  padding: 1.25rem;
  border-radius: 10px;
  border-bottom: 3px solid #000;
}

.aside-title,
.aside-notice-title {
  font-family: 'Newsreader', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.aside-block .subtitle {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aside-nav-list li {
  border-bottom: 1px solid var(--gray-200);
}

.aside-nav-list li:last-child {
  border-bottom: none;
}

.aside-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #000;
  transition: padding-left var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-link:hover {
  padding-left: 0.4rem;
  color: #444;
}

.aside-notice {
  background: #000;
  color: #fff;
  border-color: #000;
}

.aside-notice .aside-notice-title {
  color: #fff;
}

.aside-notice .subtitle {
  color: rgba(255,255,255,0.6);
}

.aside-notice-text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
}

.aside-stat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-num {
  font-family: 'Newsreader', serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--gray-600);
  line-height: 1.3;
}

/* =====================
   Footer
   ===================== */
.site-footer {
  background: #000;
  color: #fff;
  padding-bottom: var(--bar-h);
}

.footer-brand-section {
  padding: 3rem 2rem 1.5rem;
  border-bottom: 1px solid #222;
}

.footer-brand-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-brand-name {
  font-family: 'Newsreader', serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  color: #fff;
}

.footer-nav-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0;
  align-items: center;
}

.footer-nav-dl dt,
.footer-nav-dl dd {
  display: inline;
  margin: 0;
}

.footer-nav-dl dt::after {
  content: '';
}

.footer-nav-dl dd::before {
  content: '·';
  margin: 0 0.5rem;
  color: #555;
}

.footer-nav-dl a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.2rem 0;
}

.footer-nav-dl a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.8rem;
  color: #555;
  white-space: nowrap;
}

/* =====================
   Bottom Fixed Bar
   ===================== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bar-h);
  background: #fff;
  border-top: 2px solid #000;
  z-index: 500;
}

.bottom-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1rem;
}

.bottom-brand {
  font-family: 'Newsreader', serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.bottom-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1.5px solid #000;
  height: 40px;
  overflow: hidden;
}

.search-input {
  border: none;
  outline: none;
  padding: 0 0.75rem;
  font-size: 0.88rem;
  font-family: inherit;
  height: 100%;
  width: 160px;
  background: #fff;
  color: #000;
}

.search-input::placeholder {
  color: var(--gray-400);
}

.search-btn {
  border: none;
  background: #000;
  color: #fff;
  height: 100%;
  width: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.search-btn:hover {
  background: #333;
}

.hamburger-btn {
  width: 44px;
  height: 44px;
  background: #000;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  transition: background var(--transition);
}

.hamburger-btn:hover {
  background: #333;
}

.ham-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}

/* =====================
   Scroll Reveal Animation
   ===================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms ease, transform 400ms ease;
  }

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

  .stagger-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 350ms ease, transform 350ms ease;
  }

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

/* =====================
   Responsive: Tablet
   ===================== */
@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
  }

  .aside-stat {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-nav-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* =====================
   Responsive: Mobile
   ===================== */
@media (max-width: 600px) {
  .content-article {
    padding: 2rem 1rem 3rem;
  }

  .hero-content {
    padding: 0 1rem;
    text-align: right;
  }

  .search-input {
    width: 100px;
  }

  .bottom-bar-inner {
    padding: 0 1rem;
  }

  .bottom-brand {
    font-size: 0.9rem;
  }

  .menu-inner {
    padding: 1.5rem;
  }

  .footer-nav-dl {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .footer-nav-dl dd::before {
    content: '';
    margin: 0;
  }

  .footer-nav-dl dt,
  .footer-nav-dl dd {
    display: block;
    width: 100%;
  }

  .footer-nav-dl a {
    width: 100%;
  }

  .footer-brand-section {
    padding: 2rem 1rem 1rem;
  }

  .footer-nav-section {
    padding: 1rem;
  }

  .aside-stat {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-slash {
    height: 48px;
  }
}

/* =====================
   Reduced Motion
   ===================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

button[aria-expanded]{min-width:44px;min-height:44px}
