/* ============================================================
   TOP POLISH — KIBAN トップページ（2026-11-26）
   余白・文字の読みやすさ・スマホ幅のレイアウトの仕上げ。
   トップページ（index.html）だけで読み込む。構成・文言は変えない。
   先頭の :root body はページ内 <style> より優先させるため。
   ============================================================ */

/* ---------- 0. 文字の基本 ---------- */
:root body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
/* 見出しは約物を詰めて組む（明朝の大見出しで「」の空きが目立たないように） */
@media (min-width:601px){:root body :is(.sec-title,.hero-h1){font-feature-settings:"palt" 1}}
/* 小さすぎる灰色の文字は、読める濃さに */
:root body .news-badges,
:root body .team-note,
:root body .ccomp-note,
:root body .fv-cap{color:#5B6472}

/* ---------- 1. ヒーロー ---------- */
@media (min-width:601px){
  :root body .hv1 .hero-h1{letter-spacing:.02em}
  /* 見出しの下の横線と、続く文の間に余白をとる */
  :root body .hv1 .hero-h1::after{bottom:-28px}
  :root body .hv1 .hero-sub{margin-top:56px;line-height:1.75;color:var(--ink)}
  :root body .hv1 .hero-lead{font-size:15px;line-height:2;margin-top:18px;color:var(--fg-2)}
  :root body .hv1 .hero-cta{margin-top:36px}
  :root body .hv1 .hero-trust{margin-top:36px;padding-top:22px}
}

/* ---------- 2. 本文の読みやすさ（PC） ---------- */
@media (min-width:601px){
  :root body .sec-lead{font-size:15.5px;line-height:1.95}
  :root body .kbsv p{font-size:14.5px;line-height:1.95}
  :root body .spec-p-bio{font-size:14px;line-height:1.95}
  :root body .why-para{font-size:15px;line-height:2}
  :root body .sol-card p{font-size:14.5px;line-height:1.9}
  :root body .sol-bridge{font-size:clamp(18px,2vw,24px)}
  :root body .prob-note{font-size:14.5px;line-height:1.95}
  /* 理念：短い宣言なので大きく組む */
  :root body .philo-band{padding:136px 0 !important}
  :root body .philo-tag{font-size:clamp(28px,3vw,40px);line-height:1.4;letter-spacing:.01em;margin-top:22px}
  :root body .philo-sub{font-size:15px;line-height:2;margin-top:22px;max-width:520px}
  :root body .news-title{line-height:1.75}
  :root body .ccomp-row .cl,
  :root body .ccomp-row .cv{font-size:14px}
  :root body .ccomp-row{padding:13px 0}
}
/* NEWバッジは小さすぎない大きさに */
:root body .news-new{font-size:10px;letter-spacing:.08em;padding:2px 7px}

/* 研究所の帯：左右の端をほかのセクションの版面にそろえる */
@media (min-width:601px){:root body .lab-in{padding:0 32px}}

/* ---------- 3. 見出しと中身の間の余白 ---------- */
:root body #advisor .sec-head{margin-bottom:48px}
:root body #company .sec-head{margin-bottom:48px !important}

/* ---------- 4. スマホ幅 ---------- */
@media (max-width:600px){
  /* ヒーロー：見出し下の線と文が近すぎるので離す */
  :root body .hv1 .hero-h1::after{bottom:-18px}
  :root body .hv1 .hero-sub{margin-top:40px;font-size:16.5px;line-height:1.8;word-break:auto-phrase;text-wrap:balance}
  :root body .hv1 .hero-lead{font-size:14.5px;line-height:1.95}

  /* ニュース一覧：日付・区分を1行目に、題名を全幅で */
  :root body #news .news-list{margin-top:20px}
  :root body .news-link{grid-template-columns:auto 1fr !important;column-gap:10px;row-gap:10px;padding:20px 2px}
  :root body .news-link .news-date{grid-column:1;grid-row:1}
  :root body .news-link .news-cat{grid-column:2;grid-row:1;justify-self:end;width:auto;padding:3px 12px;font-size:11.5px}
  :root body .news-link .news-main{grid-column:1 / -1;grid-row:2}
  :root body .news-title{font-size:15px;line-height:1.75}

  /* 外部経営管理本部の領域一覧：区切り線を行頭に残さない */
  :root body .kbsv-idx{display:flex;flex-wrap:wrap;gap:8px}
  :root body .kbsv-idx span{font-size:13px;padding:6px 12px;border:1px solid rgba(255,255,255,.16);border-radius:999px;line-height:1.5}
  :root body .kbsv-idx span+span::before{display:none}

  /* なぜ今：5項目を1列の一覧に（2列だと最後の1つが余る） */
  :root body .why-grid{grid-template-columns:1fr !important;gap:0;margin-top:32px;border-top:1px solid var(--line)}
  :root body .why-cell{display:flex;align-items:center;gap:18px;padding:18px 4px;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0}
  :root body .why-cell::before{display:none}
  :root body .why-num{flex:0 0 2.4em;font-size:13px}
  :root body .why-num::after{display:none}
  :root body .why-ttl{margin:0;font-size:16px}
  :root body .why-ttl br{display:none}

  /* コスト比較：項目と金額がぶつからないように */
  :root body .ccomp-row{gap:14px}
  :root body .ccomp-row .cl{flex:1 1 auto;min-width:0}
  :root body .ccomp-row .cv{flex:0 0 auto;text-align:right}

  /* 会社概要：項目名を上、内容を下に */
  :root body .co-table,
  :root body .co-table tbody,
  :root body .co-table tr,
  :root body .co-table th,
  :root body .co-table td{display:block;width:auto}
  :root body .co-table th{padding:18px 0 4px;border-bottom:0;font-size:12px;color:var(--fg-3);letter-spacing:.08em}
  :root body .co-table td{padding:0 0 18px;font-size:15px}

  /* 理念：上下の空きを詰め、英文を大きく */
  :root body .philo-band{padding-top:72px !important;padding-bottom:72px !important}
  :root body .philo-tag{font-size:21px;line-height:1.5}

  /* 見出しと中身の間 */
  :root body #advisor .sec-head{margin-bottom:32px}
  :root body #company .sec-head{margin-bottom:32px !important}
}
