:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #eef2ee;
  --ink: #17211b;
  --muted: #65736b;
  --line: #d8dfd8;
  --accent: #176b4d;
  --accent-dark: #0f4634;
  --gold: #b7791f;
  --blue: #246a9b;
  --warning-bg: #fff8e6;
  --warning-line: #ead69b;
  --tag-bg: #e8f2f8;
  --section-dark: #17211b;
  --shadow: 0 18px 44px rgba(24, 39, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
.button:focus-visible,
.nav a:focus-visible,
.column-list a:focus-visible {
  outline: 3px solid rgba(23, 107, 77, 0.45);
  outline-offset: 3px;
}

.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(245, 247, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 6px;
}

.nav {
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 6px;
}

.nav a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.section[id] {
  scroll-margin-top: 88px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(min(360px, 100%), 0.95fr);
  gap: 34px;
  align-items: center;
  min-height: calc(88vh - 64px);
  padding-top: 34px;
}

.hero-content h1 {
  margin: 12px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.trust-strip span {
  padding: 7px 10px;
  color: var(--accent-dark);
  background: rgba(23, 107, 77, 0.08);
  border: 1px solid rgba(23, 107, 77, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
}

.button.primary {
  color: #fff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button.secondary {
  color: var(--accent-dark);
  background: var(--surface);
}

.market-panel,
.stance-grid article,
.principle,
.stock-card,
.cta-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.market-panel {
  padding: 24px;
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-header span,
.label {
  color: var(--muted);
  font-size: 13px;
}

.panel-header strong {
  color: var(--accent-dark);
  font-size: 18px;
}

.theme-grid,
.map-flow {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.theme-grid div,
.map-node {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--surface-soft);
  border-radius: 6px;
}

.map-flow {
  position: relative;
}

.map-flow::before {
  position: absolute;
  top: 78px;
  bottom: 64px;
  left: 22px;
  width: 2px;
  content: "";
  background: linear-gradient(var(--accent), rgba(23, 107, 77, 0.08));
}

.map-node,
.map-branches,
.map-checks {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.map-node strong,
.map-node span,
.stock-card h3,
.stock-card p,
.stock-card dd {
  overflow-wrap: anywhere;
}

.primary-node {
  color: #fff;
  background: var(--accent-dark);
}

.primary-node span {
  color: rgba(255, 255, 255, 0.74);
}

.stock-node {
  border: 1px solid rgba(36, 106, 155, 0.22);
  background: #eef6f9;
}

.map-branches,
.map-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 44px;
}

.map-branches span,
.map-checks span {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.map-branches span {
  color: var(--blue);
  background: var(--tag-bg);
}

.map-checks span {
  color: #7b5418;
  background: var(--warning-bg);
  border: 1px solid var(--warning-line);
}

.notice {
  margin: 0;
  padding: 14px;
  color: #6b4f19;
  background: var(--warning-bg);
  border: 1px solid var(--warning-line);
  border-radius: 6px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2,
.cta-section h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.section-heading p:not(.eyebrow),
.cta-section p {
  margin: 0;
  color: var(--muted);
}

.stance-section {
  padding-top: 24px;
}

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

.stance-grid article {
  padding: 20px;
  min-width: 0;
}

.stance-grid span {
  color: var(--gold);
  font-weight: 800;
}

.stance-grid h2 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.stance-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.inline-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.principle {
  min-height: 210px;
  padding: 18px;
}

.principle span,
.steps span {
  color: var(--gold);
  font-weight: 800;
}

.principle h3,
.stock-card h3 {
  margin: 10px 0 8px;
  line-height: 1.3;
}

.principle p,
.stock-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.theme-section {
  padding-top: 34px;
}

.theme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-list span {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.stock-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 18px;
}

.stock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.stock-top strong {
  color: var(--accent-dark);
  font-size: 24px;
}

.stock-top span {
  padding: 3px 8px;
  color: var(--blue);
  background: var(--tag-bg);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.stock-card dl {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 18px;
}

.stock-card dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.stock-card dt {
  color: var(--muted);
  font-size: 12px;
}

.stock-card dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.framework-section {
  width: 100%;
  max-width: none;
  padding: 76px max(18px, calc((100% - 1120px) / 2));
  background: var(--section-dark);
  color: #fff;
}

.framework-section .section-heading p:not(.eyebrow) {
  color: #b8c5bd;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 188px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.steps strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 18px;
}

.steps p {
  margin: 0;
  color: #b8c5bd;
  font-size: 14px;
}

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

.checklist label {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.checklist label:has(input:checked) {
  background: #edf7f1;
  border-color: rgba(23, 107, 77, 0.36);
}

.checklist input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.columns {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.column-list {
  display: grid;
  gap: 10px;
}

.column-list a {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.cta-section {
  width: min(1120px, calc(100% - 36px));
  margin: 16px auto 72px;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.cta-section p {
  max-width: 680px;
  margin: 0 auto 24px;
}

.footer {
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: #e9eee9;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

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

.footer p {
  max-width: 1120px;
  margin: 0 auto;
}

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

  .principle-grid,
  .stance-grid,
  .stock-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .section {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    padding: 48px 0;
    overflow: visible;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-top: 34px;
  }

  .hero > * {
    width: 100%;
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.12;
    word-break: keep-all;
  }

  .lead {
    font-size: 17px;
  }

  .hero-content,
  .market-panel,
  .stance-grid article,
  .principle,
  .stock-card,
  .steps li,
  .checklist label,
  .cta-section,
  .theme-grid,
  .theme-grid div,
  .map-flow,
  .map-node,
  .stock-node {
    min-width: 0;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-panel {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    overflow: hidden;
  }

  .stance-grid article,
  .principle,
  .stock-card,
  .steps li,
  .checklist label {
    width: 100%;
    max-width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .map-node strong,
  .notice,
  .section-heading h2,
  .section-heading p:not(.eyebrow),
  .stance-grid h2,
  .stance-grid p,
  .stock-card p,
  .stock-card dd,
  .theme-list span,
  .checklist label,
  .cta-section h2,
  .cta-section p {
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: strict;
  }

  .notice {
    font-size: 12px;
    line-height: 1.7;
  }

  .trust-strip {
    gap: 6px;
  }

  .trust-strip span {
    border-radius: 6px;
  }

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

  .theme-list span {
    text-align: center;
  }

  .inline-heading {
    align-items: start;
    flex-direction: column;
  }

  .principle-grid,
  .stance-grid,
  .stock-grid,
  .steps,
  .checklist {
    grid-template-columns: 1fr;
  }

  .principle,
  .stock-card,
  .steps li {
    min-height: auto;
  }

  .framework-section {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 480px) {
  .hero-actions .button {
    width: 100%;
  }

  .map-branches,
  .map-checks {
    padding-left: 0;
  }

  .map-flow::before {
    display: none;
  }
}
