:root {
  --bg-gradient: linear-gradient(135deg, #040b14 0%, #0b1e2f 100%);
  --surface-color: rgba(8, 18, 33, 0.72);
  --surface-strong: rgba(10, 26, 45, 0.9);
  --border-color: rgba(79, 216, 232, 0.32);
  --accent: #4fd8e8;
  --accent-strong: #60f6d3;
  --accent-warm: #ffae3d;
  --text-primary: #f5f9ff;
  --text-secondary: rgba(214, 226, 238, 0.8);
  --text-muted: rgba(214, 226, 238, 0.6);
  --success: #63f2b1;
  --danger: #ff6b6b;
  --shadow-elevated: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.25);
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Fira Code", "Source Code Pro", monospace;
  --max-width: 1200px;
  --transition-base: 220ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  color: var(--text-primary);
  overscroll-behavior: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover,
a:focus {
  color: var(--accent-strong);
  opacity: 0.9;
}

p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 1.2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(3, 12, 24, 0.78);
  border-bottom: 1px solid rgba(79, 216, 232, 0.2);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

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

.brand span:first-child {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand span:last-child {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.nav-links a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
  border-color: rgba(79, 216, 232, 0.35);
  color: var(--text-primary);
  background: rgba(79, 216, 232, 0.08);
}

.nav-toggle {
  display: none;
  background: rgba(79, 216, 232, 0.12);
  border: 1px solid rgba(79, 216, 232, 0.3);
  color: var(--accent);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.4rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.4rem;
  align-items: center;
  padding: 3.6rem 0;
}

.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(4, 8, 20, 0.05) 0%, rgba(4, 8, 20, 0.65) 100%);
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.hero-copy p.lead {
  font-size: 1.1rem;
  max-width: 40ch;
  color: var(--text-secondary);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 216, 232, 0.4);
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(79, 216, 232, 0.14);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.button.secondary {
  background: rgba(255, 174, 61, 0.12);
  border-color: rgba(255, 174, 61, 0.4);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(79, 216, 232, 0.25);
}

.section {
  margin-bottom: 4.2rem;
  padding: 2.2rem 2.4rem;
  border-radius: 28px;
  background: var(--surface-color);
  border: 1px solid rgba(79, 216, 232, 0.15);
  box-shadow: var(--shadow-elevated);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 2.4rem;
  margin-bottom: 4rem;
  align-items: start;
}

.content-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.content-main > .section {
  margin-bottom: 0;
}

.content-aside {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.widget {
  padding: 1.6rem;
  border-radius: 20px;
  background: rgba(5, 14, 26, 0.78);
  border: 1px solid rgba(79, 216, 232, 0.2);
  box-shadow: var(--shadow-soft);
}

.widget h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.widget p,
.widget li,
.widget a,
.widget small {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.toc-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
}

.toc-list a::before {
  content: "•";
  color: var(--accent);
  font-size: 0.8rem;
}

.related-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.related-links a {
  color: var(--text-secondary);
}

.related-links a:hover {
  color: var(--accent);
}

.ad-placeholder {
  border: 1px dashed rgba(255, 174, 61, 0.4);
  background: rgba(255, 174, 61, 0.08);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
  position: relative;
}

.section-header::after {
  content: "";
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

.grid {
  display: grid;
  gap: 1.6rem;
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: 1.6rem;
  border-radius: 20px;
  background: rgba(5, 14, 26, 0.78);
  border: 1px solid rgba(79, 216, 232, 0.18);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(210deg, rgba(79, 216, 232, 0.08), transparent 60%);
  pointer-events: none;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.metric .value {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--accent);
}

.metric .label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.highlight-box {
  background: rgba(255, 174, 61, 0.12);
  border: 1px solid rgba(255, 174, 61, 0.3);
  border-radius: 20px;
  padding: 1.6rem;
  color: var(--text-secondary);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table thead {
  background: rgba(79, 216, 232, 0.12);
}

.data-table th,
.data-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(79, 216, 232, 0.12);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(79, 216, 232, 0.16);
  color: var(--accent);
  border: 1px solid rgba(79, 216, 232, 0.35);
}

.timeline {
  position: relative;
  padding-left: 1.8rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.6rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(79, 216, 232, 0.2), rgba(79, 216, 232, 0.6));
}

.timeline-item {
  position: relative;
  margin-bottom: 1.8rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: -1.05rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 216, 232, 0.2);
}

.footer {
  padding: 2.4rem 2.4rem 3rem;
  background: rgba(3, 12, 24, 0.92);
  border-top: 1px solid rgba(79, 216, 232, 0.18);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.footer small {
  color: var(--text-muted);
}

.related-sites {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.related-sites a {
  color: var(--text-secondary);
}

.related-sites a:hover {
  color: var(--accent);
}

.news-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.news-card {
  padding: 1.4rem;
  border-radius: 18px;
  background: rgba(5, 14, 26, 0.78);
  border: 1px solid rgba(79, 216, 232, 0.14);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.news-card strong {
  color: var(--accent);
  font-size: 0.95rem;
}

.anchor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.anchor-grid a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  background: rgba(79, 216, 232, 0.12);
  color: var(--text-secondary);
  border: 1px solid rgba(79, 216, 232, 0.18);
}

.quote-box {
  border-left: 4px solid var(--accent);
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
}

.table-wrapper {
  overflow-x: auto;
  margin: 1.2rem 0;
  border-radius: 18px;
  border: 1px solid rgba(79, 216, 232, 0.16);
}

.kpi-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.kpi-pills span {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(79, 216, 232, 0.12);
  border: 1px solid rgba(79, 216, 232, 0.2);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sticky-nav {
  position: sticky;
  top: 5.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(5, 14, 26, 0.8);
  padding: 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(79, 216, 232, 0.12);
}

.sticky-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.sticky-nav a:hover,
.sticky-nav a:focus {
  color: var(--accent);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.hero-metrics .metric {
  background: rgba(5, 14, 26, 0.7);
  padding: 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(79, 216, 232, 0.16);
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.list-check li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-secondary);
}

.list-check li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 0.85rem;
}

.callout {
  padding: 1.6rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 174, 61, 0.35);
  background: rgba(255, 174, 61, 0.1);
  color: var(--text-secondary);
}

.flex {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.flex > * {
  flex: 1 1 280px;
}

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    inset: 0 auto auto 0;
    top: 68px;
    right: 24px;
    width: min(320px, 88vw);
    flex-direction: column;
    padding: 1.4rem;
    border-radius: 18px;
    background: rgba(3, 12, 24, 0.95);
    border: 1px solid rgba(79, 216, 232, 0.25);
    box-shadow: var(--shadow-elevated);
    transform: scale(0.92) translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
  }

  .nav-container {
    padding: 1rem 1.4rem;
  }

  main {
    padding: 0 1.4rem 3rem;
  }

  .section {
    padding: 1.8rem;
  }

  .content-layout {
    display: flex;
    flex-direction: column;
  }

  .content-aside {
    position: static;
    order: -1;
  }

  .content-main {
    order: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2.4rem 0;
  }

  .hero-copy h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

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

  .button {
    justify-content: center;
  }

  .section-header {
    margin-bottom: 1.2rem;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.anchor-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 216, 232, 0.25);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(79, 216, 232, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
