:root {
  --navy: #0d386b;
  --blue: #00b0ec;
  --light-blue: #9ed8f6;
  --teal: #1aa69a;
  --pale-blue: #f4f8fc;
  --text: #222222;
  --muted: #68727d;
  --line: #d9e0e7;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: YuGothic, "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  letter-spacing: 0;
}
.latin, time, .chart-host text, .data-details td { font-family: Montserrat, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 99px;
  padding: 0 max(24px, calc((100% - 1238px) / 2)) 0 clamp(24px, 2.2vw, 32px);
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid #f1f1f1;
}
.logo { display: flex; align-items: center; gap: 10px; width: auto; flex: 0 0 auto; }
.logo-mark { width: auto; height: 26.6865px; }
.logo-word { width: auto; height: 19.9314px; }
.global-nav { display: flex; align-items: stretch; gap: clamp(20px,2.7vw,40px); min-height: 99px; }
.global-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  border-radius: 10px 10px 0 0;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform .2s ease;
  content: "";
}
.global-nav a:hover::after, .global-nav a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid #dbe3ec; background: #fff; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--navy); }

.page-title {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(13, 56, 107, .96), rgba(13, 56, 107, .88)),
    linear-gradient(135deg, var(--navy), #185995 70%, var(--blue));
}
.page-title-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 58px;
  text-align: center;
}
.page-title-inner p {
  margin: 0 0 12px;
  color: var(--light-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}
.page-title h1 { margin: 0; font-size: 46px; line-height: 1.35; font-weight: 700; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(1238px, calc(100% - 48px));
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.breadcrumb a { transition: color .2s ease; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

.financial-content { width: min(1238px, calc(100% - 48px)); margin: 42px auto 112px; }
.financial-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 72px;
  border: 1px solid var(--navy);
}
.financial-switch a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 68px;
  padding: 12px 20px;
  color: var(--navy);
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
  transition: color .2s ease, background-color .2s ease;
}
.financial-switch a + a { border-left: 1px solid var(--navy); }
.financial-switch a:hover { color: var(--white); background: #185995; }
.financial-switch a[aria-current="page"] { color: var(--white); background: var(--navy); }

.financial-section > h2,
.usage-notes h2 {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
}
.financial-section > h2 { margin-bottom: 34px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.metric-panel {
  min-width: 0;
  padding: 28px 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(13, 56, 107, .07);
}
.metric-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; min-height: 72px; }
.metric-header h3 { margin: 3px 0 0; color: var(--navy); font-size: 21px; line-height: 1.55; font-weight: 700; }
.metric-latest { flex: 0 0 auto; display: grid; grid-template-columns: auto auto; justify-content: end; gap: 1px 8px; margin: 0; text-align: right; }
.metric-latest span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.metric-latest b { color: var(--muted); font-size: 11px; line-height: 1.4; font-weight: 700; }
.metric-latest strong { grid-column: 1 / 2; color: var(--navy); font-size: 25px; line-height: 1.25; font-weight: 700; }
.metric-latest small { align-self: end; padding-bottom: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.chart-meta { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 12px 0 2px; }
.chart-meta > p { margin: 0; color: var(--muted); font-size: 11px; white-space: nowrap; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px 12px; color: var(--muted); font-family: Montserrat, Arial, sans-serif; font-size: 10px; font-weight: 700; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 10px; height: 10px; background: var(--legend-color); }
.chart-host { width: 100%; aspect-ratio: 680 / 340; }
.chart-host svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-grid-line { stroke: #dfe5eb; stroke-width: 1; }
.chart-zero-line { stroke: #8d99a6; stroke-width: 1.2; }
.chart-axis-label { fill: #68727d; font-size: 12px; font-weight: 600; }
.chart-axis-label-y { font-size: 11px; }
.chart-bar { outline: none; transition: opacity .18s ease, filter .18s ease; }
.chart-bar:hover, .chart-bar:focus { opacity: .78; filter: brightness(1.08); }
.metric-note { min-height: 42px; margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.data-details { margin-top: 18px; border-top: 1px solid var(--line); }
.data-details summary {
  position: relative;
  padding: 16px 34px 0 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.data-details summary::-webkit-details-marker { display: none; }
.data-details summary::before,
.data-details summary::after { position: absolute; top: 23px; right: 4px; width: 12px; height: 2px; background: var(--navy); content: ""; }
.data-details summary::after { transform: rotate(90deg); transition: transform .2s ease; }
.data-details[open] summary::after { transform: rotate(0); }
.data-table-wrap { margin-top: 16px; overflow-x: auto; }
.data-details table { width: 100%; min-width: 430px; border-collapse: collapse; font-size: 12px; text-align: right; }
.data-details caption { margin-bottom: 8px; color: var(--muted); font-size: 11px; text-align: left; }
.data-details th, .data-details td { padding: 10px 9px; border: 1px solid var(--line); }
.data-details thead th { color: var(--white); background: var(--navy); font-weight: 700; }
.data-details thead th:not(:first-child) { font-family: Montserrat, Arial, sans-serif; }
.data-details tbody th { color: var(--navy); background: var(--pale-blue); font-family: Montserrat, Arial, sans-serif; }

/* E-IR Partsの出力配置に合わせた財務3ページ共通レイアウト */
[data-eir-layout="pronexus"] .financial-section > h2 { margin-bottom: 52px; }
[data-eir-layout="pronexus"] .metric-grid { gap: 88px 50px; }
[data-eir-layout="pronexus"] .metric-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
[data-eir-layout="pronexus"] .metric-header { min-height: 0; margin-bottom: 12px; }
[data-eir-layout="pronexus"] .metric-header h3 { margin: 0; }
[data-eir-layout="pronexus"] .chart-meta { justify-content: flex-end; margin: 0; }
[data-eir-layout="pronexus"] .chart-legend.qirContent_legend_list {
  justify-content: flex-start;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}
[data-eir-layout="pronexus"] .qirContent_legend_list_item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}
[data-eir-layout="pronexus"] .qirContent_legend_label_checkbox {
  width: 13px;
  height: 13px;
  margin: 0;
  appearance: auto !important;
  accent-color: var(--navy);
  cursor: pointer;
}
[data-eir-layout="pronexus"] .qirContent_legend_label_shape { width: 10px; height: 10px; }
[data-eir-layout="pronexus"] .chart-host text,
[data-eir-layout="pronexus"] .data-details table,
[data-eir-layout="pronexus"] .data-details th,
[data-eir-layout="pronexus"] .data-details td { font-family: Arial, Helvetica, sans-serif; }
[data-eir-layout="pronexus"] .data-details { margin-top: 14px; border-top: 0; }
[data-eir-layout="pronexus"] .data-table-wrap { margin-top: 0; }
[data-eir-layout="pronexus"] .metric-note { min-height: 0; margin: 14px 0 0; }

.quarter-notes { margin-top: 42px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.quarter-notes p { margin: 0; }
.usage-notes { margin-top: 76px; padding: 42px 44px; background: var(--pale-blue); border-top: 1px solid #d5e1ed; }
.usage-notes h2 { margin-bottom: 26px; }
.usage-notes ul { margin: 0 0 26px; padding: 0; list-style: none; }
.usage-notes li, .usage-notes p { margin: 0; color: #4f5964; font-size: 13px; line-height: 1.9; }
.usage-notes li { padding-left: 1em; text-indent: -1em; }
.usage-notes li::before { content: "・"; }
.usage-notes p + p { margin-top: 8px; }
.usage-notes a { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.usage-notes a:hover { color: var(--blue); }
.usage-notes a img { width: 12px; height: 12px; }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .global-nav { position: absolute; top: 99px; right: 0; left: 0; display: none; min-height: 0; padding: 10px 24px 24px; background: #fff; border-bottom: 1px solid var(--line); }
  .global-nav.open { display: grid; }
  .global-nav a { min-height: 42px; }
  .global-nav a::after { height: 2px; }
}

@media (max-width: 920px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-panel { padding-right: 34px; padding-left: 34px; }
  [data-eir-layout="pronexus"] .metric-grid { gap: 72px; }
  [data-eir-layout="pronexus"] .metric-panel { padding: 0; }
}

@media (max-width: 760px) {
  .site-header { min-height: 74px; }
  .logo { gap: 9px; }
  .logo-mark { height: 25px; }
  .logo-word { height: 18.7px; }
  .global-nav { top: 74px; }
  .page-title-inner { width: calc(100% - 40px); padding: 40px 0 44px; }
  .page-title-inner p { margin-bottom: 9px; font-size: 11px; }
  .page-title h1 { font-size: 34px; }
  .breadcrumb { width: calc(100% - 40px); margin-top: 18px; font-size: 12px; }
  .financial-content { width: calc(100% - 40px); margin-top: 32px; margin-bottom: 72px; }
  .financial-switch { grid-template-columns: 1fr; margin-bottom: 56px; }
  .financial-switch a { min-height: 54px; padding: 10px 14px; font-size: 14px; }
  .financial-switch a + a { border-top: 1px solid var(--navy); border-left: 0; }
  .financial-section > h2, .usage-notes h2 { font-size: 27px; }
  .financial-section > h2 { margin-bottom: 24px; }
  .metric-grid { gap: 22px; }
  .metric-panel { padding: 22px 16px 18px; }
  .metric-header { display: grid; gap: 8px; min-height: 0; }
  .metric-header h3 { margin: 0; font-size: 18px; }
  .metric-latest { justify-self: start; grid-template-columns: auto auto auto auto; justify-content: start; align-items: baseline; text-align: left; }
  .metric-latest strong { grid-column: auto; font-size: 22px; }
  .metric-latest small { padding-bottom: 0; }
  .chart-meta { align-items: flex-start; margin-top: 18px; }
  .chart-legend { gap: 4px 8px; }
  .chart-host { min-height: 210px; }
  .metric-note { min-height: 0; }
  .quarter-notes { margin-top: 34px; }
  .usage-notes { margin-top: 56px; padding: 30px 20px; }
  .usage-notes h2 { margin-bottom: 20px; }
  .usage-notes li, .usage-notes p { font-size: 12px; }
  [data-eir-layout="pronexus"] .chart-meta { margin-top: 0; }
  [data-eir-layout="pronexus"] .chart-legend.qirContent_legend_list { gap: 8px; }
}

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