/* ============================================================
   TOP UNIFY — KIBAN トップページ全体の統一（2026-11-26）
   ファーストビュー（白地・明朝の見出し・紺・金・ロゴの青）に、
   全セクションの文字・色・形・余白・動きをそろえる。
   top-redesign.css の後ろで読み込む。文言と構成は変えない。
   ============================================================ */
:root{
  --u-navy:#0B1B33;
  --u-navy-2:#122640;
  --u-ink:#0E1726;
  --u-gold:#B8994A;
  --u-gold-2:#D9C58E;
  --u-gold-soft:#EFE6CC;
  --u-ivory:#F7F5F0;
  --u-line:#E4E1D8;
  --u-blue:#1F6FE0;
  --u-logo:linear-gradient(160deg,#22B2EC 0%,#1468D8 55%,#1A3F93 100%);
  --u-ease:cubic-bezier(.22,.61,.36,1);
}

/* ---------- 1. 文字：見出しはファーストビューと同じ明朝 ---------- */
:root body main .sec-title,
:root body main .prob-statement,
:root body main .sol-bridge,
:root body main .philo-tag,
:root body main .kibans-h,
:root body main .nlx-h,
:root body main .kbsv-main h3,
:root body main .svc-name,
:root body main .coo-c-nm,
:root body main #hikaku h2{
  font-family:var(--font-mincho) !important;font-weight:600 !important;letter-spacing:.03em;font-feature-settings:"palt" 1
}
:root body main .sec-title{color:var(--u-navy)}
:root body main .sec-navy .sec-title,:root body main .philo-band .sec-title{color:#fff}
@media (min-width:601px){
  :root body main .sec-title{font-size:clamp(30px,3.1vw,46px) !important;line-height:1.42 !important}
}
@media (max-width:600px){
  :root body main .sec-title{font-size:26px !important;line-height:1.5 !important}
}
:root body main .philo-tag{font-family:'Montserrat',sans-serif !important;font-weight:500 !important;letter-spacing:.01em}

/* 見出しの上のラベル：ロゴの柱の形（傾いた天面の平行四辺形）を小さな印に */
:root body main .sec-kicker{flex-direction:row !important;align-items:center !important;gap:14px !important}
:root body main .sec-kicker .rule{order:0 !important;width:12px !important;height:16px !important;border-radius:0 !important;
  background:var(--u-logo) !important;clip-path:polygon(0 22%,100% 0,100% 100%,0 100%)}
:root body main .eyebrow{color:var(--u-gold) !important}
:root body main .sec-navy .eyebrow,:root body main .philo-band .eyebrow,:root body main .lab-band .eyebrow{color:var(--u-gold-2) !important}
:root body main .sec-head .eyebrow::before,:root body main #solution .sec-kicker .eyebrow::before{border-right-color:rgba(184,153,74,.5)}

/* 小見出し（カード内など）はゴシックの太字で、色は紺に統一 */
:root body main :is(.why-h,.ccomp-h,.kbsv-ttl,.adv-nm-row .spec-p-nm,.spec-p-nm){color:var(--u-navy)}
:root body main .why-h{border-left:0 !important;padding-left:0 !important;display:flex;align-items:center;gap:12px}
:root body main .why-h::before{content:"";flex:0 0 auto;width:10px;height:14px;background:var(--u-logo);clip-path:polygon(0 22%,100% 0,100% 100%,0 100%)}

/* 本文の色：青系の補助色は使わず、紺・墨・金に */
:root body main :is(.svc-num,.why-num,.news-date,.kbsv-kick,.adv-role,.spec-role,.lab-k){color:var(--u-gold) !important}
:root body main .sec-navy :is(.svc-num,.kbsv-kick){color:var(--u-gold-2) !important}

/* ---------- 2. 背景：白とアイボリーの交互＋紺は要所だけ ---------- */
:root body main .sec-soft{background:var(--u-ivory) !important}
:root body main #advisor{background:#fff !important;border-color:var(--u-line) !important}
:root body main #team{background:var(--u-ivory) !important}
:root body main .sec-navy,
:root body main .philo-band{background-color:var(--u-navy) !important}
:root body main .lab-band{background:var(--u-navy-2) !important}
:root body footer.ft{background:var(--u-navy) !important}
/* 紺の面のロゴ透かしは、ファーストビューのロゴと競合するので消す */
:root body main .kmotif{display:none !important}
/* 区切り線の色を暖かいグレーに */
:root body main :is(.news-list,.news-item,.news-link,.why-grid,.why-cell,.ccomp-row,.co-table th,.co-table td){border-color:var(--u-line) !important}

/* ---------- 3. 形：角はほぼ四角、影は控えめ、境界は細い線 ---------- */
:root body main :is(.kbsv,.kbsv-main,.prob-panel,.sol-card,.svc,.adv-card,.spec,.kibans,.ccomp-col,.nlx,.nlx-mast,.ph,.cphoto,.fv-btn,.fv-frame,.jt-count){border-radius:2px !important}
:root body main :is(.kbsv,.sol-card,.svc,.adv-card,.spec,.ccomp-col){box-shadow:none !important;border:1px solid var(--u-line) !important}
:root body main #company :is(img,iframe,div[style*="border-radius"]){border-radius:2px !important}
:root body main .member-photo{border-radius:2px !important}
/* カードの上辺に、ホバーで金の線 */
:root body main :is(.kbsv,.sol-card,.svc,.adv-card,.spec){position:relative;transition:transform .5s var(--u-ease),border-color .5s var(--u-ease),box-shadow .5s var(--u-ease) !important}
:root body main :is(.kbsv,.sol-card,.svc,.adv-card,.spec)::after{content:"";position:absolute;left:-1px;right:-1px;top:-1px;height:2px;background:var(--u-gold);transform:scaleX(0);transform-origin:left;transition:transform .6s var(--u-ease);pointer-events:none}
@media (hover:hover){
  :root body main :is(.kbsv,.sol-card,.svc,.adv-card,.spec):hover{transform:translateY(-4px);box-shadow:0 22px 44px -24px rgba(11,27,51,.35) !important}
  :root body main :is(.kbsv,.sol-card,.svc,.adv-card,.spec):hover::after{transform:scaleX(1)}
}
/* 紺地の中の白カード */
:root body main .sec-navy .sol-card{border-color:transparent !important}

/* タグ・小さなラベル：丸いピルをやめて、細い枠の四角に */
:root body main :is(.prob-tag,.news-cat,.kibans-tag,.spec-tag,.adv-tag,.ach-tag,.kbsv-flag,.kbsv-tag .ja){border-radius:1px !important}
:root body main .news-cat{background:transparent !important;border:1px solid var(--u-line) !important;color:var(--u-navy) !important;font-weight:600}
:root body main .news-cat--media{border-color:var(--u-gold-2) !important;color:#7A6327 !important}

/* ---------- 4. ボタン：ファーストビューと同じ青と角 ---------- */
:root body main .btn{border-radius:2px !important;letter-spacing:.06em}
:root body main .btn-primary{background:var(--u-blue) !important;box-shadow:0 12px 28px -14px rgba(31,111,224,.7) !important}
:root body main .btn-primary:hover{background:#1559BC !important}
:root body main .btn-outline{border-color:rgba(11,27,51,.25) !important;color:var(--u-navy) !important;background:#fff !important}
:root body main .btn-outline:hover{border-color:var(--u-navy) !important}
:root body main .sec-navy .btn-outline{background:transparent !important;color:#fff !important;border-color:rgba(255,255,255,.45) !important}
:root body header .hd-cta .btn,:root body header .btn{border-radius:2px !important}
:root body header .btn-primary{background:var(--u-blue) !important}
:root body .kb-bar-btn{border-radius:2px !important;background:var(--u-blue) !important}
:root body main .nc-tab.is-on{color:var(--u-navy) !important;border-color:var(--u-gold) !important}
:root body main :is(.lnk,.news-more,.kbsv-go,.cc-more,.adv-link,.spec-link){color:var(--u-blue)}

/* ---------- 5. 各セクションの手直し ---------- */
/* サービス：外部経営管理本部の紺の面を、ロゴの青を細く効かせた紺に */
:root body main .kbsv-main{background:var(--u-navy) !important;position:relative;overflow:hidden}
:root body main .kbsv-main::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--u-logo)}
/* 支援の全体像：パネルを紺一色に */
:root body main .svc-panel{background:var(--u-navy) !important}
:root body main .svc-panel::after,:root body main .svc-panel::before{display:none !important}
/* 費用：右の列（KIBAN）を紺に */
:root body main .ccomp-col.kiban{background:var(--u-navy) !important}
/* 三つの円の図：中心をロゴの青に */
:root body main .venn-core{background:var(--u-logo) !important;box-shadow:0 0 0 8px rgba(255,255,255,.92),0 0 0 9px rgba(184,153,74,.6) !important}
/* KIBANS の帯 */
:root body main .kibans{background:var(--u-navy) !important;box-shadow:none !important}
/* 理念の帯：写真の上の紺を少し深く */
:root body main .philo-band .philo-sub{color:rgba(242,235,214,.86) !important}

/* ---------- 6. 余白のリズム（PC）：セクションの上下を一定に ---------- */
@media (min-width:601px){
  :root body main .sec{padding-top:136px !important;padding-bottom:136px !important}
  :root body main .sec-head{margin-bottom:64px}
  :root body main #lineup{padding-bottom:120px !important}
}
@media (max-width:600px){
  :root body main .sec{padding-top:72px !important;padding-bottom:72px !important}
}

/* ---------- 7. 出てくる動き：ファーストビューと同じ動き方に ---------- */
@media (prefers-reduced-motion:no-preference) and (min-width:1001px){
  :root body main .rv{transform:translateY(28px);transition:opacity 1s var(--u-ease),transform 1.1s cubic-bezier(.16,1,.3,1) !important}
  :root body main .rv.in{transform:none}
  :root body main .sec-head.rv .sec-title{clip-path:inset(0 0 100% 0);transition:clip-path 1.1s cubic-bezier(.16,1,.3,1) .1s}
  :root body main .sec-head.rv.in .sec-title{clip-path:inset(0 0 -10% 0)}
}

/* ---------- 8. フッター ---------- */
:root body footer.ft{border-top:4px solid transparent;border-image:var(--u-logo) 1}
/* 見出しの折り返しを文節で（PC） */
@media (min-width:601px){:root body main .sec-title{word-break:auto-phrase;text-wrap:balance}}
/* 紺地の強調色は金に（青の補助色をやめる） */
:root body main .sec-navy [style*="azure-300"]{color:var(--u-gold-2) !important}
:root body main .ccomp-col.kiban .cv,:root body main .ccomp-col.kiban .cv.good{color:var(--u-gold-2) !important}
:root body main .ccomp-col.kiban .ccomp-tag,:root body main .ccomp-col.kiban [class*="tag"]{color:var(--u-gold-2) !important}
:root body main .sec-navy .prob-side-label{color:var(--u-gold-2) !important}
:root body main .sec-navy .prob-side-label::before{background:var(--u-gold-2) !important}
:root body main .sol-ico{background:var(--u-ivory) !important;color:var(--u-navy) !important;border-radius:2px !important}
:root body main .svc-step-ico,:root body main [class*="-ico"]:not(.ico){border-radius:2px}

/* ---------- 9. 飾りの青を金・紺へ（リンクとボタンの青だけを残す） ---------- */
:root body main :is(.coo-c-role,.role,.yr,.ach-label,.kibans-eyebrow){color:var(--u-gold) !important}
:root body main :is(.coo-c-en){color:var(--fg-3) !important;font-family:'Montserrat',sans-serif}
:root body main :is(.mk){color:var(--u-gold-2) !important}
:root body main .dot{background:var(--u-gold) !important;box-shadow:0 0 0 4px var(--u-gold-soft) !important}
:root body main #founder .ico,:root body main #services .ico{color:var(--u-navy) !important}
:root body main #services .ico,:root body main #services [class*="step-ico"],:root body main .sol-ico{background:var(--u-ivory) !important;border:1px solid var(--u-line);border-radius:2px !important}
:root body main .why-foot .ar,:root body main .why-foot{color:var(--u-navy) !important}
:root body main .ccomp-total-v{color:var(--u-gold-2) !important}
:root body main .kibans .wm,:root body main .kibans-link{color:var(--u-gold-2) !important}
:root body main .kibans-tag{background:transparent !important;border:1px solid rgba(217,197,142,.45) !important;color:#F2EBD6 !important}
:root body main .newsletter a,:root body main #newsletter p a{color:var(--u-blue)}
/* 小さなチェック付きの実績タグ */
:root body main :is(.ach-tag,.track li,.ach li){border-radius:1px !important}

/* ---------- 10. スマホの手直し（2026-11-26 実機確認後） ---------- */
@media (max-width:1000px){
  /* ファーストビュー：ロゴを浮かせず、下の区切り線の上に「建てる」。右寄せで、土台の三角は全体を見せる */
  :root body .hv1.fvL-white{padding-bottom:260px !important}
  :root body .hv1.fvL-white .fvL{left:auto !important;right:20px !important;bottom:0 !important;top:auto !important;
    height:200px !important;width:auto !important;transform:none !important;margin:0 !important;opacity:1 !important}
  :root body .hv1.fvL-white .fvL-svg{transform:none !important}
}
@media (min-width:601px) and (max-width:1000px){
  :root body .hv1.fvL-white{padding-bottom:330px !important}
  :root body .hv1.fvL-white .fvL{right:40px !important;height:280px !important}
}
@media (max-width:760px){
  /* 比較推奨：表紙を中央に大きく、ボタンは全幅 */
  :root body #hikaku .wrap > a{max-width:none !important;width:min(78%,320px);justify-self:center;margin-top:8px;display:block}
  :root body #hikaku .wrap > a img{box-shadow:0 24px 48px -20px rgba(11,27,51,.35) !important}
  :root body #hikaku .btn{width:100%;justify-content:center}
  :root body #hikaku .lnk{margin:0 auto}
}
@media (max-width:1000px){:root body .hero-sep::after,:root body .hero-sep::before{display:none !important}}
@media (max-width:1000px){:root body .hero-sep i{display:none !important}}
@media (max-width:1000px){:root body .hv1::after{display:none !important}}

/* ---------- 11. スマホ・タブレット：ロゴを見出しの後ろに透かしで置く ---------- */
@media (max-width:1000px){
  :root body .hv1.fvL-white{padding-bottom:64px !important}
  :root body .hv1.fvL-white > .hero-in{position:relative;z-index:2}
  :root body .hv1.fvL-white .fvL{position:absolute !important;z-index:1 !important;
    top:var(--fvwm-top,112px) !important;bottom:auto !important;right:8px !important;left:auto !important;
    height:var(--fvwm-h,250px) !important;width:auto !important;opacity:.1 !important;transform:none !important;margin:0 !important}
  :root body .hero-sep i{display:block !important}
}
@media (min-width:601px) and (max-width:1000px){
  :root body .hv1.fvL-white{--fvwm-top:120px;--fvwm-h:360px}
  :root body .hv1.fvL-white .fvL{right:32px !important}
}
@media (min-width:601px) and (max-width:1000px){
  :root body .hv1.fvL-white{min-height:0 !important;padding-top:56px !important;padding-bottom:88px !important}
  :root body #hikaku .wrap{grid-template-columns:1fr !important}
  :root body #hikaku .wrap > a{max-width:none !important;width:min(60%,340px);justify-self:center;display:block}
  :root body #hikaku .sec-title br{display:none}
}

/* ---------- 12. 見出しの金のライン：ロゴの面と同じ角度で切った、濃い金から淡い金へ ---------- */
:root body .hv1 .hero-h1 .u::after{height:.075em !important;bottom:-.04em !important;left:.48em !important;right:1.62em !important;
  background:linear-gradient(90deg,#8C6F2A 0%,#C9A955 45%,#E8D59B 72%,rgba(232,213,155,0) 100%) !important;
  clip-path:polygon(.12em 0,100% 0,calc(100% - .12em) 100%,0 100%)}
@media (max-width:1000px){
  :root body .hv1 .hero-h1 .nb{background:none !important;position:relative}
  :root body .hv1 .hero-h1 .nb::after{content:"";position:absolute;left:.48em;right:.5em;bottom:-.02em;height:.09em;
    background:linear-gradient(90deg,#8C6F2A 0%,#C9A955 45%,#E8D59B 72%,rgba(232,213,155,0) 100%);
    clip-path:polygon(.12em 0,100% 0,calc(100% - .12em) 100%,0 100%)}
}

/* ---------- 13. 本文の太さと色：一段太く、少し濃く（スマホ・Windowsの游ゴシックで細く見えないように） ---------- */
:root{--fg-2:#2C384A}
:root body main :is(p,li,td,dd,.news-title,.why-para,.spec-p-bio,.sec-lead,.hero-lead,.kbsv p,.sol-card p,.prob-note){font-weight:500}
:root body main :is(.hero-lead,.sec-lead,.kbsv p,.sol-card p,.spec-p-bio,.why-para,.prob-note){color:var(--fg-2) !important}
:root body main .sec-navy :is(p,li){color:rgba(232,238,246,.9) !important}
:root body main .philo-band .philo-sub{color:rgba(242,235,214,.9) !important}
:root body main .sec-navy :is(.sol-card,.ccomp-col:not(.kiban)) :is(p,li){color:var(--fg-2) !important}
/* 白・アイボリー地の金の文字は、読めるように一段濃い金に（線や飾りは明るい金のまま） */
:root{--u-gold-text:#8A6D2C}
:root body main :is(.eyebrow,.why-num,.svc-num,.coo-c-role,.yr,.ach-label,.adv-role,.role,.kbsv-kick,.news-date){color:var(--u-gold-text) !important}
:root body main :is(.sec-navy,.philo-band,.lab-band,.kibans,.kbsv-main,.svc-panel) :is(.eyebrow,.svc-num,.kbsv-kick,.role){color:var(--u-gold-2) !important}
:root body .hv1 .hero-kicker .t{color:var(--u-navy) !important}
:root body .hv1 .hero-h1 .u::after{bottom:.06em !important}
:root body .hv1 .hero-h1 .ln{padding-bottom:.18em !important;margin-bottom:-.18em !important}
/* ファーストビューの説明文：PCは文ごとに改行、スマホは流す */
@media (max-width:1000px){:root body .hv1 .hero-lead .pc-br{display:none}}
:root body .hv1 .hero-lead{word-break:auto-phrase}
@media (max-width:1000px){:root body .hv1 .hero-lead{word-break:normal}}
/* 広い画面：Kマークを画面端ではなく本文の枠（1180px）の右端を基準に置く */
:root body .hv1.fvL-white .fvL{right:max(4vw,calc(50vw - 740px))}
@media (min-width:1500px){:root body .hv1.fvL-white .fvL{width:min(36vw,540px,calc((100svh - 220px) * 476 / 436)) !important}}
