:root {
  color-scheme: light;
  --bg: #e6ebf2;
  --surface: #ffffff;
  --surface-main: #fbfdff;
  --surface-soft: #f8fafc;
  --ink: #071a3d;
  --ink-soft: #3f4d66;
  --muted: #728098;
  --line: #d5deea;
  --line-soft: #e7edf4;
  --navy: #06255e;
  --navy-deep: #041a43;
  --red: #c81e3a;
  --green: #138a54;
  --shadow: none;
  --hero-card-height: 266px;
  --theme-card-max-height: 920px;
  font-family: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
}

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

button {
  font: inherit;
}

.site-frame {
  display: grid;
  grid-template-columns: minmax(92px, 0.16fr) minmax(980px, 1320px) minmax(92px, 0.16fr);
  gap: 24px;
  width: 100%;
  min-height: 100vh;
  padding: 24px clamp(18px, 3vw, 44px) 44px;
}

.site-center {
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 74px;
  padding: 14px 26px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  box-shadow: none;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.brand__name {
  color: var(--ink);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0;
  white-space: nowrap;
}

.global-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(22px, 4vw, 54px);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 800;
}

.global-nav__link {
  position: relative;
  padding: 10px 0;
}

.global-nav__link--active {
  color: var(--navy);
}

.global-nav__link--active::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 3px;
  background: var(--navy);
  border-radius: 999px;
  content: "";
}

.first-visit-guide {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--navy);
  border-radius: 6px;
}

.first-visit-guide a {
  color: var(--navy);
  font-weight: 820;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.9fr);
  gap: 22px;
  padding: 22px 0 0;
}

.main-column,
.side-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  box-shadow: none;
  overflow: hidden;
}

.index-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  height: var(--hero-card-height);
  background: var(--surface);
  border-color: #c8d3e2;
  box-shadow: none;
}

.index-panel::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--navy);
  content: "";
}

.index-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 34px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.index-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 28px;
}

.index-value {
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0;
}

.index-return {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 820;
  line-height: 1;
}

.is-up {
  color: var(--red);
}

.is-down {
  color: var(--green);
}

.index-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin: 24px 0 0;
}

.index-meta div {
  display: grid;
  gap: 2px;
}

.index-meta dt,
.index-meta dd {
  margin: 0;
}

.index-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.index-meta dd {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 780;
}

.chart-card {
  display: grid;
  align-items: center;
  min-width: 0;
  padding: 24px 24px 24px 4px;
  background: rgba(255, 255, 255, 0.52);
}

#total-chart {
  width: 100%;
  height: 172px;
}

.theme-panel {
  padding: 18px 0 8px;
  min-height: var(--theme-card-max-height);
}

.theme-panel__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px 18px;
  border-bottom: 1px solid var(--line);
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
}

.range-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.range-tabs__button {
  min-width: 54px;
  min-height: 30px;
  padding: 4px 9px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: inherit;
  cursor: pointer;
  font-weight: 800;
}

.range-tabs__button--active {
  background: var(--navy);
  color: #ffffff;
}

.theme-ranking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 300px;
}

.theme-ranking-column {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  padding: 20px 24px 18px;
}

.theme-ranking-column + .theme-ranking-column {
  border-left: 1px solid var(--line);
}

.theme-ranking-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 820;
  line-height: 1.25;
}

.theme-list {
  display: grid;
  align-content: start;
}

.theme-row {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) 60px 78px;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.theme-row--header {
  min-height: 30px;
  padding: 0 0 6px;
  border-bottom-color: #c8d3e2;
  color: var(--muted);
}

.theme-row--header .theme-row__name,
.theme-row--header .theme-row__index,
.theme-row--header .theme-row__return {
  color: inherit;
  font-size: 12px;
  font-weight: 760;
}

.theme-row:last-child {
  border-bottom: 0;
}

.theme-ranking-column--up .theme-list .theme-row:nth-child(even) {
  background: #f9fafb;
}

.theme-ranking-column--down .theme-list .theme-row:nth-child(even) {
  background: #f9fafb;
}

.theme-row__name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.theme-row__index {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 760;
  text-align: right;
}

.theme-row__return {
  font-size: 20px;
  font-weight: 860;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.theme-empty {
  display: grid;
  min-height: 58px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.theme-ratio {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  min-height: 64px;
  padding-top: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
}

.theme-ratio__value {
  font-size: 32px;
  font-weight: 880;
  line-height: 1;
}

.theme-ratio__unit {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.theme-table__loading {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 760;
}

.article-card {
  padding: 22px;
}

.article-card--lead {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: var(--hero-card-height);
  padding-top: 28px;
  border-color: #c8d3e2;
  box-shadow: none;
}

.article-card--lead::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--navy);
  content: "";
}

.article-date {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.article-card h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 24px;
}

.article-card--lead h2,
.article-card--lead p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.article-card--lead h2 {
  -webkit-line-clamp: 2;
}

.article-card--lead p {
  -webkit-line-clamp: 3;
}

.article-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}

.article-card p,
.news-item p {
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 620;
}

.news-stack {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  height: var(--theme-card-max-height);
}

.news-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 22px;
}

.news-item + .news-item {
  border-top: 1px solid var(--line-soft);
}

.news-item h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.news-item p {
  margin-bottom: 0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  min-height: 36px;
  padding: 0 14px;
  background: var(--navy);
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 780;
}

.button-link[aria-disabled="true"] {
  cursor: default;
  opacity: 0.72;
}

.button-link[aria-disabled="true"] .status-label {
  margin-left: 7px;
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.chart-page {
  padding: 22px 0 0;
}

.chart-workspace {
  padding: 24px;
}

.chart-workspace__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.chart-workspace h1 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.2;
}

.chart-workspace__header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.chart-frequency {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.chart-frequency__button,
.chart-range__button,
.chart-selector__button {
  border: 0;
  border-radius: 4px;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 800;
}

.chart-range__button,
.chart-frequency__button {
  min-width: 58px;
  min-height: 32px;
  padding: 4px 10px;
  background: transparent;
  font-size: 14px;
}

.chart-frequency__button--active,
.chart-range__button--active,
.chart-selector__button--active {
  background: var(--navy);
  color: #ffffff;
}

.chart-indicators,
.chart-range,
.chart-selector {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.chart-indicators {
  padding-bottom: 14px;
}

.chart-range {
  padding-top: 14px;
  padding-bottom: 14px;
}

.chart-selector__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chart-indicators__items,
.chart-range__items,
.chart-selector__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  background: #f9fafb;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.chart-indicator__input {
  width: 58px;
  height: 28px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  text-align: right;
}

.chart-range-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 10px;
  background: #f9fafb;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.chart-range__input {
  width: 142px;
  height: 28px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
}

.chart-indicator span:first-child::before {
  display: inline-block;
  width: 18px;
  height: 3px;
  margin: 0 7px 3px 0;
  border-radius: 999px;
  content: "";
  vertical-align: middle;
}

.chart-indicator--ma1 span:first-child::before {
  background: #ff4ff3;
}

.chart-indicator--ma2 span:first-child::before {
  background: #00c96b;
}

.chart-indicator--ma3 span:first-child::before {
  background: #f7b500;
}

.chart-selector__button {
  min-height: 32px;
  padding: 5px 11px;
  background: #f9fafb;
  border: 1px solid var(--line-soft);
  font-size: 13px;
}

.chart-selector__button--active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.chart-main {
  position: relative;
  min-height: 560px;
  padding: 18px 0 0;
}

#index-chart {
  display: block;
  width: 100%;
  height: 560px;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  min-width: 154px;
  padding: 8px 10px;
  background: rgba(7, 26, 61, 0.92);
  border-radius: 4px;
  color: #ffffff;
  pointer-events: none;
}

.chart-tooltip[hidden] {
  display: none;
}

.chart-tooltip strong,
.chart-tooltip span {
  font-size: 12px;
  line-height: 1.35;
}

.chart-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.chart-stats div {
  padding: 13px 14px;
  background: var(--surface-soft);
}

.chart-stats div + div {
  border-left: 1px solid var(--line);
}

.chart-stats dt,
.chart-stats dd {
  margin: 0;
}

.chart-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.chart-stats dd {
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 840;
}

.theme-page {
  display: grid;
  gap: 18px;
  padding: 22px 0 0;
}

.theme-browser__header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.theme-browser h1 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.2;
}

.theme-browser__tabs {
  display: flex;
  gap: 8px;
  padding: 14px 24px 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.theme-browser__tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 13px;
  background: #f9fafb;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.theme-browser__tab--active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.theme-detail__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.theme-detail__title-block {
  min-width: 0;
}

.theme-detail__aside {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: min(100%, 420px);
}

.theme-detail__title-block h2 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
}

.theme-detail__full-name {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.theme-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 0;
  width: 100%;
  margin: 0;
  border-left: 1px solid var(--line);
}

.theme-metrics div {
  padding: 0 16px;
}

.theme-metrics div + div {
  border-left: 1px solid var(--line);
}

.theme-metrics dt,
.theme-metrics dd {
  margin: 0;
}

.theme-metrics dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.theme-metrics dd {
  margin-top: 4px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 840;
  white-space: nowrap;
}

.theme-detail__body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.theme-chart-section {
  min-width: 0;
  padding: 22px 24px 20px;
}

.theme-chart-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.theme-chart-section h3,
.theme-description h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.theme-period-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.theme-period-tabs__button {
  min-width: 48px;
  min-height: 28px;
  padding: 3px 8px;
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.theme-period-tabs__button--active {
  background: var(--navy);
  color: #ffffff;
}

.theme-chart-wrap {
  position: relative;
  height: 310px;
}

#theme-chart {
  display: block;
  width: 100%;
  height: 310px;
}

.theme-chart-tooltip {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  min-width: 132px;
  padding: 7px 9px;
  background: rgba(7, 26, 61, 0.93);
  border-radius: 4px;
  color: #ffffff;
  pointer-events: none;
}

.theme-chart-tooltip[hidden] {
  display: none;
}

.theme-chart-tooltip strong,
.theme-chart-tooltip span {
  font-size: 11px;
  line-height: 1.35;
}

.theme-description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.theme-description .section-kicker {
  margin-bottom: 7px;
}

.theme-description > p:not(.section-kicker) {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 620;
}

.constituents-panel__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.constituents-panel__header .section-kicker {
  margin-bottom: 5px;
}

.constituents-panel__header h2 {
  margin: 0;
  font-size: 24px;
}

.constituents-panel__count {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.constituents-table-wrap {
  overflow-x: auto;
}

.constituents-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.constituents-table th,
.constituents-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.constituents-table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.constituents-table td {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 660;
}

.constituents-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.constituents-table tbody tr:last-child td {
  border-bottom: 0;
}

.constituents-table__code {
  color: var(--ink) !important;
  font-feature-settings: "tnum";
  font-weight: 800 !important;
}

.detail-page {
  display: grid;
  gap: 18px;
  padding: 22px 0 0;
}

.detail-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: 32px;
  padding: 30px 32px;
  border-color: #c8d3e2;
}

.detail-intro__copy .section-kicker {
  margin-bottom: 7px;
}

.detail-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.2;
}

.detail-intro__copy > p:last-child {
  max-width: 660px;
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 620;
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.detail-summary div {
  padding: 15px 16px;
  background: var(--surface-soft);
}

.detail-summary div:nth-child(2n) {
  border-left: 1px solid var(--line);
}

.detail-summary div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.detail-summary dt,
.detail-summary dd {
  margin: 0;
}

.detail-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.detail-summary dd {
  margin-top: 3px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 840;
}

.detail-layout {
  display: grid;
  grid-template-columns: 166px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.detail-nav {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 4px;
  padding: 8px 0;
}

.detail-nav p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-nav a {
  padding: 6px 0 6px 11px;
  border-left: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 730;
}

.detail-nav a:hover {
  border-left-color: var(--navy);
  color: var(--navy);
}

.detail-content {
  min-width: 0;
}

.detail-section {
  padding: 30px 34px 32px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 28px;
}

.detail-section--last {
  border-bottom: 0;
}

.detail-section .section-kicker {
  margin-bottom: 7px;
}

.detail-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.3;
}

.detail-section > p {
  max-width: 820px;
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 610;
}

.detail-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-principles div {
  display: grid;
  gap: 7px;
  padding: 16px 18px 16px 0;
}

.detail-principles div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.detail-principles strong,
.detail-definition-list strong,
.operations-grid strong {
  color: var(--ink);
  font-size: 14px;
}

.detail-principles span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 610;
}

.theme-definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.theme-definition-grid span {
  padding: 10px 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 690;
}

.theme-definition-grid span:nth-child(4n + 1),
.theme-definition-grid span:nth-child(4n + 2) {
  background: #f9fafb;
}

.detail-definition-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.detail-definition-list p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 610;
}

.calculation-flow {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.calculation-flow li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.calculation-flow li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  background: var(--navy);
  border-radius: 50%;
  color: #ffffff;
  font-size: 13px;
  font-weight: 820;
}

.calculation-flow strong {
  color: var(--ink);
  font-size: 15px;
}

.calculation-flow p {
  margin: 4px 0 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.calculation-flow code {
  display: inline-block;
  padding: 5px 8px;
  background: #f1f5f9;
  border-radius: 3px;
  color: #26426d;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.detail-checklist {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.detail-checklist li {
  position: relative;
  padding-left: 19px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 620;
}

.detail-checklist li::before {
  position: absolute;
  top: 0.65em;
  left: 2px;
  width: 7px;
  height: 7px;
  background: var(--navy);
  border-radius: 50%;
  content: "";
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 23px;
  border-top: 1px solid var(--line);
}

.operations-grid div {
  padding: 17px 18px 0 0;
}

.operations-grid div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.operations-grid p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 610;
}

.ad-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.ad-rail__inner {
  position: sticky;
  top: 30px;
  width: min(100%, 132px);
}

.ad-rail__inner img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #cfd9e6;
  border-radius: 6px;
}

@media (max-width: 1280px) {
  .site-frame {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }

  .ad-rail {
    display: none;
  }

  .site-center {
    width: min(100%, 1160px);
    margin: 0 auto;
  }
}

@media (max-width: 960px) {
  .site-header,
  .theme-panel__header,
  .chart-workspace__header,
  .theme-detail__head {
    align-items: stretch;
    flex-direction: column;
  }

  .content-grid,
  .index-panel {
    grid-template-columns: 1fr;
  }

  .index-panel,
  .article-card--lead {
    height: auto;
    min-height: var(--hero-card-height);
  }

  .theme-panel,
  .news-stack {
    height: auto;
    min-height: 0;
  }

  .news-stack {
    grid-template-rows: none;
  }

  .chart-card {
    padding: 0 28px 28px;
  }

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

  .chart-stats div + div {
    border-left: 0;
  }

  .theme-metrics {
    min-width: 0;
    border-left: 0;
  }

  .theme-detail__aside {
    justify-items: start;
    min-width: 0;
  }

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

  .theme-description {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-intro {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-nav {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 2px;
  }

  .detail-nav p {
    display: none;
  }

  .detail-nav a {
    flex: 0 0 auto;
    padding: 6px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
  }

  .detail-principles,
  .detail-definition-list,
  .operations-grid {
    grid-template-columns: 1fr;
  }

  .detail-principles div,
  .detail-principles div + div,
  .operations-grid div,
  .operations-grid div + div {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .detail-principles div:last-child,
  .operations-grid div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .site-frame {
    padding: 0;
  }

  .content-grid {
    padding: 16px;
  }

  .site-header {
    padding: 14px 16px;
  }

  .first-visit-guide {
    margin: 12px 16px 0;
  }

  .brand__name {
    white-space: normal;
  }

  .global-nav,
  .range-tabs,
  .chart-range__items,
  .chart-selector__items,
  .theme-browser__tabs {
    overflow-x: auto;
  }

  .chart-workspace {
    padding: 18px 14px;
  }

  #index-chart {
    height: 430px;
  }

  .theme-row {
    grid-template-columns: 1fr 72px 96px;
    gap: 10px;
    padding: 10px 14px;
  }

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

  .theme-ranking-column + .theme-ranking-column {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .theme-row__name {
    font-size: 16px;
  }

  .theme-row__return {
    font-size: 20px;
  }

  .theme-page {
    gap: 14px;
    padding: 16px;
  }

  .theme-browser__header,
  .theme-browser__tabs,
  .theme-detail__head,
  .theme-chart-section,
  .theme-description,
  .constituents-panel__header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .theme-browser h1 {
    font-size: 26px;
  }

  .theme-detail__title-block h2 {
    font-size: 28px;
  }

  .theme-metrics {
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
  }

  .theme-metrics div,
  .theme-metrics div + div {
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .theme-metrics dd {
    margin-top: 0;
    text-align: right;
  }

  .theme-chart-section__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .theme-chart-wrap,
  #theme-chart {
    height: 260px;
  }

  .detail-page {
    gap: 14px;
    padding: 16px;
  }

  .detail-intro {
    gap: 22px;
    padding: 24px 18px;
  }

  .detail-intro h1 {
    font-size: 29px;
  }

  .detail-summary div {
    padding: 12px;
  }

  .detail-section {
    padding: 25px 18px 27px;
  }

  .detail-section h2 {
    font-size: 22px;
  }

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

  .theme-definition-grid span:nth-child(4n + 1),
  .theme-definition-grid span:nth-child(4n + 2) {
    background: transparent;
  }

  .theme-definition-grid span:nth-child(odd) {
    background: #f9fafb;
  }

}

/* Shared KT Investment site shell */
.investment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 88px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

.investment-header + .site-header {
  margin-top: 14px;
}

.investment-brand-group,
.investment-brand {
  display: inline-flex;
  align-items: center;
}

.investment-brand-group {
  min-width: 0;
  gap: 13px;
}

.investment-brand {
  flex: 0 0 auto;
  gap: 9px;
  color: var(--ink);
  line-height: 1;
}

.investment-brand__logo {
  display: block;
  width: 220px;
  height: auto;
}

.investment-brand__mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 2px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.investment-brand__name {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.investment-brand__context {
  min-width: 0;
  padding-left: 13px;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.investment-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 30px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}

.investment-nav__link,
.investment-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  white-space: nowrap;
}

.investment-nav__link {
  color: var(--ink-soft);
}

.investment-nav__link:hover,
.investment-nav__link--active {
  color: var(--navy);
}

.investment-nav__link--active {
  font-weight: 600;
}

.status-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.investment-footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
}

.investment-footer__directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 48px;
  align-items: start;
  padding: 46px 26px 44px;
}

.investment-footer__column {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
}

.investment-footer__title {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}

.investment-footer__column a,
.investment-footer__column span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.investment-footer__column a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.investment-footer__column small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.investment-footer__meta {
  border-top: 1px solid var(--line-soft);
  background: var(--surface-soft);
}

.investment-footer__meta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 26px;
}

.investment-footer__disclaimer,
.investment-footer__copyright {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.investment-footer__copyright {
  white-space: nowrap;
}

.investment-footer__signature {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.investment-footer__by {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.page-menu {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 9px;
  padding: 12px 0;
}

.page-menu__title {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.page-menu__links {
  display: grid;
  gap: 4px;
}

.page-menu__link {
  padding: 6px 0 6px 11px;
  border-left: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}

.page-menu__link:hover,
.page-menu__link:focus-visible {
  border-left-color: var(--navy);
  color: var(--navy);
}

@media (max-width: 960px) {
  .investment-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .investment-nav {
    justify-content: flex-start;
  }

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

  .investment-footer__meta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .investment-footer__signature {
    justify-items: start;
  }

  .page-menu {
    position: static;
    gap: 8px;
    padding: 0;
  }

  .page-menu__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .page-menu__link {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
  }
}

@media (max-width: 640px) {
  .investment-header {
    padding: 14px 16px;
  }

  .investment-header + .site-header {
    margin-top: 12px;
  }

  .investment-brand-group {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .investment-brand__context {
    padding-left: 0;
    border-left: 0;
  }

  .investment-nav {
    gap: 6px 14px;
    font-size: 12px;
  }

  .investment-nav__link,
  .investment-nav__item {
    min-height: 30px;
  }

  .investment-brand__logo {
    width: 180px;
  }

  .status-label {
    padding: 1px 4px;
    font-size: 9px;
  }

  .investment-footer__directory {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 16px;
  }

  .investment-footer__meta-inner {
    padding: 15px 16px;
  }
}
