:root {
  --ink: #172033;
  --muted: #657086;
  --line: #dfe5ee;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --blue: #0b5cab;
  --blue-dark: #073f78;
  --red: #b3202a;
  --gold: #c7933b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  min-height: calc(100vh - 67px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 78px);
  background:
    linear-gradient(120deg, rgba(245, 248, 251, 0.98), rgba(255, 255, 255, 0.86)),
    repeating-linear-gradient(90deg, rgba(11, 92, 171, 0.08) 0 1px, transparent 1px 72px);
}

.hero-copy,
.market-panel,
.section,
.site-header,
.site-footer {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
  word-break: normal;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #33415c;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.primary-btn {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  padding: 0 28px;
  color: #fff;
  background: var(--red);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(179, 32, 42, 0.18);
}

.primary-btn:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(11, 92, 171, 0.35);
  outline-offset: 3px;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
}

.disclosure {
  max-width: 680px;
  margin-top: 22px;
  color: #59657b;
  font-size: 14px;
}

.market-panel {
  width: min(100%, 560px);
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  box-shadow: 0 24px 54px rgba(23, 32, 51, 0.12);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.panel-top strong {
  color: var(--ink);
}

.chart {
  position: relative;
  height: 260px;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(transparent 24%, rgba(11, 92, 171, 0.1) 25%, transparent 26%),
    linear-gradient(transparent 49%, rgba(11, 92, 171, 0.1) 50%, transparent 51%),
    linear-gradient(transparent 74%, rgba(11, 92, 171, 0.1) 75%, transparent 76%),
    #f9fbfd;
  overflow: hidden;
}

.bar {
  position: absolute;
  bottom: 34px;
  width: 36px;
  border-radius: 6px 6px 0 0;
  background: var(--blue);
}

.b1 { left: 11%; height: 72px; }
.b2 { left: 27%; height: 128px; background: var(--gold); }
.b3 { left: 43%; height: 96px; }
.b4 { left: 59%; height: 154px; background: var(--red); }
.b5 { left: 75%; height: 188px; }

.line {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 98px;
  height: 74px;
  border-top: 6px solid var(--red);
  border-right: 6px solid var(--red);
  transform: skewY(-10deg);
  border-radius: 8px;
  opacity: 0.9;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.signal-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

.signal-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.signal-grid strong {
  display: block;
  font-size: 18px;
}

.section {
  padding: clamp(46px, 7vw, 82px) clamp(18px, 5vw, 78px);
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.theme-grid,
.risk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.theme-card,
.risk-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.theme-card p,
.risk-grid p,
.split p,
.cta-section p,
.legal-page p {
  margin: 0;
  color: var(--muted);
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  background: var(--soft);
}

.split p {
  margin-top: 18px;
  font-size: 18px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
}

.risk-section {
  background: #fff;
}

.cta-section {
  text-align: center;
  background: var(--blue-dark);
  color: #fff;
}

.cta-section .eyebrow,
.cta-section p {
  color: #d7e7f7;
}

.cta-section .primary-btn {
  margin-top: 24px;
  background: #fff;
  color: var(--blue-dark);
  box-shadow: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 78px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--blue);
  font-weight: 800;
}

.legal-page {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(38px, 7vw, 72px) 18px;
}

.legal-page h1 {
  font-size: clamp(34px, 6vw, 54px);
  margin-bottom: 20px;
}

.legal-page h2 {
  margin-top: 32px;
  font-size: 24px;
}

.company-list {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.company-list dt,
.company-list dd {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.company-list dt {
  background: var(--soft);
  font-weight: 800;
}

.company-list dd {
  color: var(--muted);
}

.notice {
  margin-top: 20px !important;
  padding: 16px;
  border-left: 4px solid var(--gold);
  background: #fff8ea;
}

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

  .site-header,
  .site-footer,
  .hero,
  .section {
    width: min(100vw, 390px);
    max-width: 100vw;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .theme-grid,
  .risk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-panel {
    justify-self: stretch;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
  }

  .nav {
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 30px 24px 46px;
  }

  h1 {
    font-size: 31px;
    line-height: 1.2;
    max-width: calc(100vw - 48px);
    word-break: break-all;
  }

  h2 {
    font-size: 25px;
    word-break: break-all;
  }

  .lead {
    max-width: calc(100vw - 48px);
    font-size: 16px;
    line-height: 1.75;
    word-break: break-all;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .primary-btn {
    width: 100%;
  }

  .market-panel {
    margin-top: 34px;
    padding: 14px;
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .panel-top,
  .signal-grid,
  .chart {
    width: 100%;
    max-width: 100%;
  }

  .panel-top {
    display: block;
  }

  .bar {
    width: 30px;
  }

  .b1 { left: 10%; }
  .b2 { left: 28%; }
  .b3 { left: 46%; }
  .b4 { left: 64%; }
  .b5 { left: 82%; }

  .chart {
    height: 210px;
  }

  .signal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .theme-grid,
  .risk-grid {
    grid-template-columns: 1fr;
  }

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

  .company-list dt {
    border-bottom: 0;
  }
}
