/* ==========================================================================
   sections/04-performance.css
   03. 業績推移 (Performance)
   - C-05 Section Heading (業績推移) → components.css
   - C-13 Performance KPI Band (緑帯 / 全幅) — べた塗りHTML/CSS
   - C-06 Green Pill Tag (ビジネスモデル) → components.css
   - C-14 Quote Block — 引用マーク ::before / ::after
   - C-15 Timeline Chart Card — placeholder.svg 仮置き
   - C-16 Dual Chart Cards — placeholder.svg 仮置き
   ========================================================================== */


.s-performance {
  width: 100%;
  background-color: var(--c-off-white);
  padding-bottom: var(--space-80);
}


/* =================================================================
   C-13 Performance KPI Band (緑帯 / 全幅 / べた塗り)
   - 上中央に白ピル「2026年3月期」（帯から上に飛び出す）
   - 4 KPI 横並び、間に白の縦罫線
   - 各 KPI: 白ラベル + 白大数値（900） + 白小単位（億）
   ================================================================= */
.c-perf-kpi {
  position: relative;
  width: 100%;
  background-color: var(--c-green-primary);
  padding-block: var(--space-64) var(--space-48);
  margin-top: var(--space-48);
  margin-bottom: var(--space-64);
}

/* 上中央の白ピル「2026年3月期」 */
.c-perf-kpi__pill {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  padding: 10px 32px;
  background-color: var(--c-white);
  color: var(--c-text);
  border-radius: 9999px;
  font-size: var(--fs-pill);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.c-perf-kpi__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  list-style: none;
  padding-inline: var(--container-pad);
}

.c-perf-kpi__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: var(--space-8);
}

/* 縦罫線（2番目以降の左側） */
.c-perf-kpi__item + .c-perf-kpi__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 70%;
  background-color: var(--c-white);
}

.c-perf-kpi__label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2vw;
  font-size: var(--fs-kpi-label);
  font-weight: 500;
  color: var(--c-white);
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin-bottom: var(--space-12);
}

.c-perf-kpi__value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--c-white);
  line-height: 1;
}

.c-perf-kpi__value strong {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.c-perf-kpi__value em {
  font-style: normal;
  font-size: 24px;
  font-weight: 700;
}

@media (max-width: 767px) {
  .c-perf-kpi {
    padding-block: var(--space-48) var(--space-32);
  }
  .c-perf-kpi__list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-24);
  }
  /* PC用の縦罫線を一旦リセット */
  .c-perf-kpi__item + .c-perf-kpi__item::before {
    display: none;
  }
  /* 2x2グリッド時は偶数番目（行内の2列目）の左側にだけ縦罫線 */
  .c-perf-kpi__item:nth-child(even)::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 70%;
    background-color: var(--c-white);
  }
  .c-perf-kpi__label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5vw;
    font-size: 12px;
  }
  .c-perf-kpi__value strong { font-size: 40px; }
  .c-perf-kpi__value em { font-size: 18px; }
}


/* =================================================================
   C-14 Quote Block
   - ベージュ色の大きな引用符 " / " を ::before / ::after で配置
   - 中央に黒の大見出し（太字）
   ================================================================= */
.c-quote {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  margin-block: var(--space-48) var(--space-32);
  padding: var(--space-32) var(--space-80);
}

/* 左上の開き引用符 " */
.c-quote::before {
  content: "\201C"; /* U+201C LEFT DOUBLE QUOTATION MARK */
  position: absolute;
  top: -32px;
  left: 0;
  font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", serif;
  font-size: 160px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-gray-border);
  pointer-events: none;
}

/* 右下の閉じ引用符 " */
.c-quote::after {
  content: "\201D"; /* U+201D RIGHT DOUBLE QUOTATION MARK */
  position: absolute;
  bottom: -80px;
  right: 0;
  font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", serif;
  font-size: 160px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-gray-border);
  pointer-events: none;
}

.c-quote__title {
  font-size: var(--fs-quote);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .c-quote {
    padding: var(--space-24) var(--space-48);
  }
  .c-quote::before {
    top: -20px;
    font-size: 100px;
  }
  .c-quote::after {
    bottom: -56px;
    font-size: 100px;
  }
}


/* =================================================================
   業績推移セクション リード文
   ================================================================= */
.s-performance__lead {
  font-size: var(--fs-body);
  line-height: 1.95;
  color: var(--c-text);
  text-align: center;
  margin-bottom: var(--space-64);
}

@media (max-width: 767px) {
  .s-performance__lead {
    text-align: left;
  }
  .s-performance__lead br {
    display: none;
  }
}


/* =================================================================
   C-15 Timeline Chart Card (画像差し替え予定: ast-perf-chart-long)
   - ベージュ系の大型コンテナ / radius-lg
   - 長期推移グラフ画像（仮置き: placeholder.svg）
   ================================================================= */
.s-performance__chart-timeline {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto var(--space-32);
  padding: var(--space-32);
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  border: var(--border-thin);
}

.s-performance__chart-timeline img {
  display: block;
  width: 100%;
  height: auto;
}


/* =================================================================
   C-16 Dual Chart Cards (画像差し替え予定: ast-perf-chart-rev / ast-perf-chart-net)
   - 同コンテナ内に2チャート横並び
   - SP: 縦積み
   ================================================================= */
.s-performance__chart-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
  max-width: 1120px;
  margin: 0 auto;
}

.s-performance__chart-dual-item {
  padding: var(--space-24);
  background-color: var(--c-white);
  border-radius: var(--radius-lg);
  border: var(--border-thin);
}

.s-performance__chart-caption {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  column-gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.s-performance__chart-caption-ja {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
}

.s-performance__chart-caption-en {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--c-gray-text);
}

.s-performance__chart-caption-note {
  justify-self: end;
  font-size: 11px;
  color: var(--c-gray-text);
  padding: 2px 8px;
  border: 1px solid var(--c-gray-border);
  border-radius: 4px;
}

.s-performance__chart-dual-item img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .s-performance__chart-dual {
    grid-template-columns: 1fr;
  }
  .s-performance__chart-caption {
    grid-template-columns: 1fr auto;
  }
  .s-performance__chart-caption-en {
    grid-column: 1 / 2;
  }
  .s-performance__chart-caption-note {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    align-self: start;
  }
}
/* ============================================================
   グラフ1：会社沿革グラフ用スタイル
   ============================================================ */
#graph1 {
  background: #fff;
  border-radius: var(--radius-card, 12px);
  padding: 24px 20px 20px;
  box-shadow: var(--shadow-card, 0 2px 8px rgba(0,0,0,0.06));
  max-width: 1120px;
  margin: 0 auto 40px auto;
}
#graph1 .inner { min-width: 1000px; width: 100%; }

/* フェーズ矢印ヘッダー */
.phase-header { display: flex; margin-bottom: 20px; }
.phase-arrow {
  flex: 1;
  background: #7fce43;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 26px 9px 14px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  min-height: 40px;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}
.phase-arrow:not(:first-child) {
  margin-left: -2px;
  padding-left: 26px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
}
.phase-arrow:last-child { flex: 0.55; background: #4da818; }

#graph1 .chart-svg { width: 100%; height: 560px; display: block; overflow: visible; }
/* ============================================================
   グラフ2・3：業績推移グラフ用スタイル
   ============================================================ */
#graph2-3 {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.perf-block {
  flex: 1 1 460px;
  min-width: 0;
  background: #fff;
  border-radius: var(--radius-card, 12px);
  padding: 20px 16px 16px;
  box-shadow: var(--shadow-card, 0 2px 8px rgba(0,0,0,0.06)); /* 既存変数があれば利用 */
}

.perf-block .block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2px;
}
.perf-block .block-title {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}
.perf-block .block-subtitle {
  font-size: 10px;
  font-weight: 700;
  color: #7fce43;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.perf-block .badge {
  font-size: 10px;
  color: #888;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 1px 6px;
}

/* 横スクロール共通 */
.scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.scroll-wrapper::-webkit-scrollbar { height: 4px; }
.scroll-wrapper::-webkit-scrollbar-track { background: #eee; border-radius: 2px; }
.scroll-wrapper::-webkit-scrollbar-thumb { background: #7fce43; border-radius: 2px; }

/* 凡例 */
.legend {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #555; }
.swatch { width: 22px; height: 11px; border-radius: 2px; }
.swatch-green { background: #7fce43; }
.swatch-gray  { background: #333; }
.swatch-line  { background: transparent; border: 2px solid #7fce43; height: 0; margin: 5px 0; border-radius: 0; }

.perf-block .svg-inner { min-width: 440px; width: 100%; }
.perf-block .chart-svg { width: 100%; height: 280px; display: block; overflow: visible; }

@media (max-width: 640px) {
  #graph2-3 { flex-direction: column; }
  .perf-block { flex: none; width: 100%; }
}

/* =================================================================
   リンク
   ================================================================= */
.p-cta {
  margin-top: 64px;
}
.p-cta__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
}
 
.p-cta__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--c-white);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing:.1em;
  transition: opacity var(--t-fast);
  background: #222;
  border-radius: 10px;
  line-height: 1;
  padding: 10px 30px;
}
 
.p-cta__link::after {
  content: '›';
  font-size: 30px;
  position: relative;
  bottom: 2px;
  color: #fff;
  font-weight: 700;
  margin-left: 5px;
}
 
.p-cta__link:hover {
  opacity: 0.7;
}
 
.p-cta__link:focus-visible {
  outline: 3px solid var(--c-yellow-accent);
  outline-offset: 4px;
  border-radius: 2px;
}
 
 
/* ===== SP ===== */
@media (max-width: 767px) {
  .p-cta__link {
    font-size: 14px;
  }
}