/* ============================================================
   TOP REDESIGN — KIBAN トップページ（2026-11-26）
   セクションの並びと文言はそのままに、組み方・配色・動きを作り直す。
   top-polish.css の後ろで読み込む。トップページだけで使う。
   ============================================================ */

:root{
  --rd-navy:#0B1B33;
  --rd-gold:#B8994A;
  --rd-gold-soft:#E7DCBC;
  --rd-ease:cubic-bezier(.22,.61,.36,1);
}

/* ---------- セクション番号（見出しの英字ラベルに 01 / 02 … を付ける） ---------- */
:root body main{counter-reset:rdsec}
:root body main .sec-head .eyebrow::before,
:root body main #solution .sec-kicker .eyebrow::before{
  counter-increment:rdsec;
  content:counter(rdsec,decimal-leading-zero);
  display:inline-block;margin-right:14px;padding-right:14px;
  border-right:1px solid currentColor;
  font-variant-numeric:tabular-nums;opacity:.9
}

/* ============================================================
   PC・タブレット（601px以上）
   ============================================================ */
@media (min-width:601px){

  /* ---------- 見出しの組み ---------- */
  :root body .sec{padding-top:128px;padding-bottom:128px}
  :root body .sec-title{font-size:clamp(28px,2.9vw,42px);line-height:1.38;letter-spacing:.015em;font-weight:700}
  :root body .sec-kicker{gap:12px;margin-bottom:26px}
  :root body .sec-kicker .rule{width:40px;height:1px}
  :root body .eyebrow{font-size:11.5px;letter-spacing:.28em}
  :root body .sec-lead{margin-top:22px}

  /* ---------- ヒーロー：左に言葉、右に写真の縦長パネル ---------- */
  :root body .hv1{min-height:min(92vh,880px);display:flex;align-items:center;padding:120px 0 96px;background:#fff}
  :root body .hv1 > .hero-in{width:100%}
  :root body .hv1-mark,
  :root body .hv1-vline,
  :root body .hv1-vtxt{display:none}
  :root body .hv1 .hero-h1::after{display:none}
  :root body .hv1 .hero-h1{font-size:clamp(44px,4.6vw,72px);line-height:1.3;letter-spacing:.01em}
  :root body .hv1 .hero-h1 .u{background:linear-gradient(transparent 74%,var(--rd-gold-soft) 74%)}
  :root body .hv1 .hero-kicker .bar{width:56px;height:1px;background:var(--rd-gold);margin-bottom:16px}
  :root body .hv1 .hero-kicker .t{font-size:14px;letter-spacing:.14em;color:var(--rd-navy)}
  :root body .hv1 .hero-sub{margin-top:40px;font-size:clamp(16px,1.35vw,19px)}
  :root body .hv1 .hero-trust{border-top:1px solid var(--line);max-width:640px}
}

/* 写真パネル（PC幅のみ） */
.hv2-photo{display:none}
@media (min-width:1200px){
  :root body .hv1{position:relative;overflow:hidden}
  :root body .hv1 .hero-text{max-width:calc(74vw - 190px)}
  :root body .hv2-photo{
    display:block;position:absolute;top:0;right:0;bottom:0;width:26vw;max-width:520px;
    background:var(--rd-navy);overflow:hidden;z-index:1
  }
  :root body .hv2-photo img{
    position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:46% 50%;
    filter:grayscale(.35) contrast(1.05) brightness(.92);
    animation:rdZoom 2.4s var(--rd-ease) both
  }
  :root body .hv2-photo::before{
    content:"";position:absolute;inset:0;z-index:1;
    background:linear-gradient(180deg,rgba(11,27,51,.25) 0%,rgba(11,27,51,.55) 60%,rgba(11,27,51,.88) 100%)
  }
  /* 金の細い枠線 */
  :root body .hv2-photo::after{
    content:"";position:absolute;left:28px;top:28px;right:28px;bottom:28px;z-index:2;
    border:1px solid rgba(231,220,188,.45);pointer-events:none
  }
  :root body .hv2-vtxt{
    position:absolute;right:46px;bottom:48px;z-index:3;writing-mode:vertical-rl;
    font-family:'Montserrat',sans-serif;font-weight:600;font-size:11px;letter-spacing:.42em;color:#F2EBD6
  }
}

/* ヒーローの登場の動き */
@media (prefers-reduced-motion:no-preference){
  :root body .hv1 .hero-kicker{animation:rdUp .9s var(--rd-ease) .05s both}
  :root body .hv1 .hero-h1{animation:rdReveal 1.2s var(--rd-ease) .15s both}
  :root body .hv1 .hero-sub{animation:rdUp .9s var(--rd-ease) .45s both}
  :root body .hv1 .hero-lead{animation:rdUp .9s var(--rd-ease) .55s both}
  :root body .hv1 .hero-cta{animation:rdUp .9s var(--rd-ease) .65s both}
  :root body .hv1 .hero-trust{animation:rdUp .9s var(--rd-ease) .75s both}
}
@keyframes rdUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes rdReveal{from{opacity:0;transform:translateY(28px);clip-path:inset(0 0 100% 0)}to{opacity:1;transform:none;clip-path:inset(0 0 -10% 0)}}
@keyframes rdZoom{from{transform:scale(1.12)}to{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){:root body .hv2-photo img{animation:none}}

/* ============================================================
   なぜ今：灰色の箱をやめ、大きな数字の柱で見せる
   ============================================================ */
@media (min-width:601px){
  :root body .why-grid{gap:0;margin-top:72px;border-top:1px solid var(--rd-navy)}
  :root body .why-cell{background:none;border:0;border-left:1px solid var(--line);border-radius:0;padding:30px 24px 14px;overflow:visible}
  :root body .why-cell:first-child{border-left:0;padding-left:0}
  :root body .why-cell::before{top:-1px;height:2px;background:var(--rd-gold)}
  :root body .why-cell:hover{transform:none;box-shadow:none;background:none}
  :root body .why-num{font-family:'Montserrat',sans-serif;font-size:46px;font-weight:500;letter-spacing:0;color:var(--rd-gold);line-height:1}
  :root body .why-num::after{display:none}
  :root body .why-ttl{margin-top:22px;font-size:17px;line-height:1.55;font-weight:700}
  :root body .why-foot{margin-top:56px}
}

/* ============================================================
   新着：日付を英字で大きめに、行の動き
   ============================================================ */
:root body .news-date{font-family:'Montserrat',sans-serif;font-weight:500;letter-spacing:.06em;color:var(--rd-navy)}
@media (min-width:601px){
  :root body .news-link{transition:background .35s var(--rd-ease),padding .35s var(--rd-ease)}
  :root body .news-link:hover{background:#F7F5EF;padding-left:18px;padding-right:18px}
  :root body .news-title{font-size:15.5px}
  :root body .news-arrow{transition:transform .35s var(--rd-ease)}
  :root body .news-link:hover .news-arrow{transform:translateX(6px)}
}

/* ============================================================
   サービス：カードの手ざわり
   ============================================================ */
:root body .kbsv{transition:transform .45s var(--rd-ease),box-shadow .45s var(--rd-ease),border-color .45s var(--rd-ease)}
@media (hover:hover){
  :root body .kbsv:hover{transform:translateY(-6px);box-shadow:0 24px 48px -20px rgba(11,27,51,.28);border-color:var(--rd-gold)}
}
@media (min-width:601px){
  :root body .kbsv-ttl{font-size:22px}
  :root body .kbsv-main{border-radius:4px}
  :root body .kbsv-main h3{font-size:clamp(26px,2.4vw,34px)}
}

/* ============================================================
   課題と解決：言葉を大きく
   ============================================================ */
@media (min-width:601px){
  :root body .prob-statement{font-size:clamp(34px,3.6vw,54px) !important;line-height:1.45 !important}
  :root body .sol-bridge{margin-top:88px}
  :root body .sol-row{margin-top:40px}
  :root body .sol-card{border-radius:4px}
}

/* ============================================================
   支援の全体像：青のグラデーションを紺に落ち着かせる
   ============================================================ */
:root body .svc-panel{background:linear-gradient(160deg,#0B1B33 0%,#12305C 70%,#1A4683 100%)}
:root body .svc-panel::before,:root body .svc-panel::after{opacity:.35}
:root body .svc-panel .svc-num{color:var(--rd-gold-soft)}
@media (min-width:601px){:root body #services .sec-head{margin-bottom:56px}}
@media (max-width:600px){:root body #services .sec-head{margin-bottom:32px}}

/* ============================================================
   なぜKIBANか：図と小見出しの色を紺・金に
   ============================================================ */
:root body .why-h{border-left:2px solid var(--rd-gold)}
:root body .venn-circle{mix-blend-mode:normal;background:transparent !important}
:root body .vc-a{border:1px solid rgba(11,27,51,.55) !important;background:rgba(11,27,51,.03) !important}
:root body .vc-b{border:1px solid rgba(184,153,74,.8) !important;background:rgba(184,153,74,.05) !important}
:root body .vc-c{border:1px solid rgba(11,27,51,.3) !important;background:rgba(11,27,51,.02) !important}
:root body .venn-core{background:var(--rd-navy);box-shadow:0 0 0 8px rgba(255,255,255,.9),0 0 0 9px rgba(184,153,74,.6)}

/* ============================================================
   カード類の角を会社案内に合わせて控えめに
   ============================================================ */
@media (min-width:601px){
  :root body :is(.adv-card,.spec-card,.ccomp-col,.kbsv,.prob-panel,.nlx,.svc-block){border-radius:4px}
}

/* ============================================================
   スマホ（600px以下）
   ============================================================ */
@media (max-width:600px){
  :root body .sec-title{font-size:24px;line-height:1.45;font-weight:700}
  :root body .sec-kicker .rule{width:32px;height:1px}
  :root body .eyebrow{font-size:11px;letter-spacing:.22em}

  /* ヒーロー：白地に金の細線で締める */
  :root body .hv1{background:#fff}
  :root body .hv1-mark{display:none}
  :root body .hv2-photo{display:block;position:relative;margin:44px 16px 0;height:210px;overflow:hidden;background:var(--rd-navy)}
  :root body .hv2-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%;filter:grayscale(.35) brightness(.9)}
  :root body .hv2-photo::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(11,27,51,.15),rgba(11,27,51,.7))}
  :root body .hv2-photo::after{content:"";position:absolute;inset:14px;z-index:2;border:1px solid rgba(231,220,188,.5)}
  :root body .hv2-vtxt{position:absolute;left:28px;bottom:26px;z-index:3;font-family:'Montserrat',sans-serif;font-weight:600;font-size:9px;letter-spacing:.26em;color:#F2EBD6;white-space:nowrap}
  :root body .hv1{padding-bottom:40px !important}
  :root body .hv1 .hero-kicker .bar{height:1px;width:44px;background:var(--rd-gold)}
  :root body .hv1 .hero-h1 .nb{background:linear-gradient(transparent 74%,var(--rd-gold-soft) 74%) no-repeat .5em 0 / calc(100% - 1em) 100%}

  /* なぜ今：番号を大きく */
  :root body .why-num{font-family:'Montserrat',sans-serif;font-size:26px;font-weight:500;color:var(--rd-gold);flex-basis:2em}
  :root body .why-grid{border-top-color:var(--rd-navy)}

  /* 課題と解決 */
  :root body .prob-statement{font-size:30px !important;line-height:1.5 !important}

  :root body :is(.adv-card,.spec-card,.ccomp-col,.kbsv,.prob-panel,.nlx){border-radius:6px}
}

/* ============================================================
   ファーストビュー v3：写真を全面に敷き、紺の上に白い言葉で組む
   （ヘッダーの帯の下から始める。上の写真パネル指定はここで上書き）
   ============================================================ */
:root body .hv1{position:relative;overflow:hidden;background:var(--rd-navy) !important;
  min-height:100vh;min-height:100svh;display:flex;align-items:center;
  padding:84px 0 112px !important;margin-top:0;border-top:70px solid #fff;box-sizing:border-box}
:root body .hv1 > .hero-in{width:100%;position:relative;z-index:3}
:root body .hv1 .hero-text{max-width:none !important}
:root body .hv1-mark,:root body .hv1-vline,:root body .hv1-vtxt{display:none !important}
:root body .hero-sep{display:none}

/* 写真：全面・ゆっくり寄る */
:root body .hv2-photo{display:block !important;position:absolute !important;inset:0 !important;width:auto !important;max-width:none !important;
  height:auto !important;margin:0 !important;z-index:1;background:var(--rd-navy);overflow:hidden}
:root body .hv2-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:62% 40%;
  filter:grayscale(.55) contrast(1.08) brightness(.85);transform-origin:70% 40%}
:root body .hv2-photo::before{content:"";position:absolute;inset:0;z-index:1;
  background:
    linear-gradient(90deg,rgba(11,27,51,.97) 0%,rgba(11,27,51,.9) 34%,rgba(11,27,51,.55) 62%,rgba(11,27,51,.25) 100%),
    linear-gradient(0deg,rgba(11,27,51,.85) 0%,rgba(11,27,51,0) 40%)}
:root body .hv2-photo::after{content:"";position:absolute;inset:auto;left:auto;top:40px;right:40px;bottom:40px;width:min(22vw,320px);z-index:2;
  border:1px solid rgba(231,220,188,.35);pointer-events:none}
:root body .hv2-vtxt{position:absolute !important;left:auto !important;right:64px !important;bottom:auto !important;top:50% !important;transform:translateY(-50%);
  writing-mode:vertical-rl;z-index:3;font-family:'Montserrat',sans-serif;font-weight:600;font-size:11px !important;letter-spacing:.46em !important;color:rgba(242,235,214,.85);white-space:nowrap}

/* 言葉 */
:root body .hv1 .hero-kicker .bar{background:var(--rd-gold) !important;width:56px;height:1px}
:root body .hv1 .hero-kicker .t{color:var(--rd-gold-soft) !important;font-size:14px;letter-spacing:.16em}
:root body .hv1 .hero-h1{color:#fff !important;font-size:clamp(44px,5.2vw,80px) !important;line-height:1.28 !important;letter-spacing:.01em;
  text-shadow:0 2px 30px rgba(0,0,0,.25)}
:root body .hv1 .hero-h1 .u,:root body .hv1 .hero-h1 .nb{background:none !important}
:root body .hv1 .hero-h1 .u{position:relative;display:inline-block}
:root body .hv1 .hero-h1 .u::after{content:"";position:absolute;left:.45em;right:1.55em;bottom:.02em;height:.1em;background:var(--rd-gold);
  transform-origin:left;animation:rdLine 1.1s var(--rd-ease) 1s both}
@keyframes rdLine{from{transform:scaleX(0)}to{transform:scaleX(1)}}
:root body .hv1 .hero-sub{color:#fff !important;margin-top:36px !important}
:root body .hv1 .hero-lead{color:rgba(225,232,242,.82) !important}
:root body .hv1 .hero-lead .kwd,:root body .hv1 .hero-lead .wm{color:#fff}

/* ボタン */
:root body .hv1 .btn-primary{background:#1F6FE0;box-shadow:0 10px 30px rgba(0,0,0,.28)}
:root body .hv1 .btn-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
:root body .hv1 .btn-outline:hover{background:#fff;color:var(--rd-navy)}

/* 安心材料の行 */
:root body .hv1 .hero-trust{border-top-color:rgba(255,255,255,.18) !important;max-width:680px}
:root body .hv1 .hero-trust div{color:rgba(255,255,255,.92)}
:root body .hv1 .hero-trust .ico{color:var(--rd-gold)}

/* 下へ促す線 */
:root body .hv1::after{content:"SCROLL";position:absolute;left:50%;bottom:0;z-index:3;transform:translateX(-50%);
  padding-bottom:64px;font-family:'Montserrat',sans-serif;font-size:10px;font-weight:600;letter-spacing:.32em;text-indent:.32em;color:rgba(242,235,214,.75);
  background:linear-gradient(var(--rd-gold),var(--rd-gold)) no-repeat 50% 100% / 1px 48px}
@media (prefers-reduced-motion:no-preference){
  :root body .hv2-photo img{animation:rdKen 14s ease-out both}
  :root body .hv1::after{animation:rdUp .9s var(--rd-ease) 1.2s both}
}
@keyframes rdKen{from{transform:scale(1.14)}to{transform:scale(1.02)}}

/* 幅ごとの調整 */
@media (max-width:1279px){
  :root body .hv2-photo::after{display:none}
  :root body .hv2-vtxt{right:40px !important}
}
@media (max-width:1000px){
  :root body .hv1{border-top-width:70px}
  :root body .hv2-photo::after,:root body .hv2-vtxt{display:none}
  :root body .hv2-photo::before{background:linear-gradient(180deg,rgba(11,27,51,.82) 0%,rgba(11,27,51,.9) 55%,rgba(11,27,51,.97) 100%)}
}
@media (max-width:600px){
  :root body .hv1{min-height:auto;border-top-width:56px;padding:72px 0 104px !important}
  :root body .hv2-photo img{object-position:60% 30%}
  :root body .hv1 .hero-h1{font-size:calc((100vw - 40px) / 11.2) !important;line-height:1.45 !important}
  :root body .hv1 .hero-h1 .u{display:inline;margin-left:-.5em}
  :root body .hv1 .hero-h1 .u::after{display:none}
  :root body .hv1 .hero-h1 .nb{background:linear-gradient(transparent 86%,var(--rd-gold) 86%,var(--rd-gold) 94%,transparent 94%) no-repeat .5em 0 / calc(100% - 1em) 100% !important}
  :root body .hv1 .hero-sub{margin-top:32px !important}
  :root body .hv1 .hero-trust div{font-size:13.5px}
  :root body .hv1::after{padding-bottom:44px;background-size:1px 32px}
}

/* ============================================================
   ファーストビュー v4：「基盤を組み上げる」立体の線画（canvas）
   assets/fv-structure.js が #kbFv に描く。写真は使わない。
   ============================================================ */
:root body .hv1{background:
   radial-gradient(70% 80% at 78% 62%,#173763 0%,rgba(23,55,99,0) 70%),
   linear-gradient(180deg,#0A1830 0%,#0B1B33 100%) !important}
:root body .hv4-cv{position:absolute;inset:0;z-index:1;display:block;pointer-events:none}
:root body .hv1 > .hero-in{z-index:3}
/* 文字の背後だけ少し暗くして、立体と重なっても読めるように */
:root body .hv1 .hero-text{position:relative}
:root body .hv1 .hero-text::before{content:"";position:absolute;left:-12vw;top:-10%;bottom:-10%;width:min(78vw,1050px);z-index:-1;pointer-events:none;
  background:radial-gradient(60% 55% at 35% 50%,rgba(10,24,48,.78) 0%,rgba(10,24,48,0) 100%)}
:root body .hv4-vtxt{position:absolute;right:40px;top:50%;transform:translateY(-50%);writing-mode:vertical-rl;z-index:3;
  font-family:'Montserrat',sans-serif;font-weight:600;font-size:10.5px;letter-spacing:.46em;color:rgba(242,235,214,.6);white-space:nowrap}
/* 見出し：一行ずつせり上がる */
@media (prefers-reduced-motion:no-preference){
  :root body .hv1 .hero-h1{animation:none !important}
  :root body .hv1 .hero-h1 > *{display:inline-block}
}
@media (max-width:1000px){:root body .hv4-vtxt{display:none}}
@media (max-width:600px){
  :root body .hv1{padding:64px 0 220px !important;background:
     radial-gradient(90% 40% at 60% 92%,#173763 0%,rgba(23,55,99,0) 70%),
     linear-gradient(180deg,#0A1830 0%,#0B1B33 100%) !important}
  :root body .hv1 .hero-text::before{display:none}
}
:root body .hv1 .hero-h1 .ln{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.12em;margin-bottom:-.12em}
:root body .hv1 .hero-h1 .ln-i{display:inline-block}
@media (prefers-reduced-motion:no-preference){
  :root body .hv1 .hero-h1 .ln-i{animation:rdLineUp 1.1s cubic-bezier(.16,1,.3,1) both}
  :root body .hv1 .hero-h1 .ln:nth-of-type(1) .ln-i{animation-delay:.25s}
  :root body .hv1 .hero-h1 .ln:nth-of-type(2) .ln-i{animation-delay:.42s}
}
@keyframes rdLineUp{from{transform:translateY(105%)}to{transform:none}}
@media (max-width:600px){:root body .hv1 .hero-h1 .ln{display:inline;overflow:visible}:root body .hv1 .hero-h1 .ln-i{display:inline;animation:rdUp .9s var(--rd-ease) .2s both}}
:root body .hv1 .hero-h1::after{display:none !important}
@media (max-width:600px){:root body .hv1{padding-bottom:340px !important}}
@media (max-width:600px){:root body .hv1{padding-bottom:400px !important}:root body .hv1::after{display:none}}

/* ============================================================
   ファーストビュー v5：ロゴマークが組み上がる（assets/fv-logo.js）
   .fvL-build＝紺地／.fvL-white＝白地・大きく裁ち落とし／.fvL-window＝白地・ロゴの形の窓に写真
   ============================================================ */
:root body .fvL{position:absolute;z-index:1;right:8vw;bottom:9%;height:74%;aspect-ratio:476/436;pointer-events:none;transform-style:preserve-3d;will-change:transform}
:root body .fvL-svg{display:block;width:100%;height:100%;overflow:visible}
:root body .fvL-p{transition:none;will-change:transform}
:root body .fvL-in{transform-box:fill-box;transform-origin:50% 100%;opacity:0;transform:translateY(70px)}
:root body .fvL-line{fill:none;stroke:#C4A65C;stroke-width:1.4;vector-effect:non-scaling-stroke;stroke-dasharray:1;stroke-dashoffset:1}
:root body .fvL-fill{opacity:0}
:root body .fvL-shine rect{transform-box:fill-box}
/* 組み上げ */
:root body .fvL-go .fvL-in{animation:fvRise 1.2s cubic-bezier(.16,1,.3,1) forwards}
:root body .fvL-go .fvL-line{animation:fvDraw .9s cubic-bezier(.65,0,.35,1) forwards,fvLineOut .8s ease 2.6s forwards}
:root body .fvL-go .fvL-fill{animation:fvFill .9s ease forwards}
:root body .fvL-go .fvL-base :is(.fvL-in,.fvL-line){animation-delay:.2s,.2s}
:root body .fvL-go .fvL-base .fvL-fill{animation-delay:.9s}
:root body .fvL-go .fvL-pillar :is(.fvL-in){animation-delay:.55s}
:root body .fvL-go .fvL-pillar .fvL-line{animation-delay:.55s,2.6s}
:root body .fvL-go .fvL-pillar .fvL-fill{animation-delay:1.15s}
:root body .fvL-go .fvL-b3 .fvL-in{animation-delay:.85s}
:root body .fvL-go .fvL-b3 .fvL-line{animation-delay:.85s,2.6s}
:root body .fvL-go .fvL-b3 .fvL-fill{animation-delay:1.4s}
:root body .fvL-go .fvL-b2 .fvL-in{animation-delay:1.0s}
:root body .fvL-go .fvL-b2 .fvL-line{animation-delay:1.0s,2.6s}
:root body .fvL-go .fvL-b2 .fvL-fill{animation-delay:1.55s}
:root body .fvL-go .fvL-b1 .fvL-in{animation-delay:1.15s}
:root body .fvL-go .fvL-b1 .fvL-line{animation-delay:1.15s,2.6s}
:root body .fvL-go .fvL-b1 .fvL-fill{animation-delay:1.7s}
:root body .fvL-go .fvL-shine rect{animation:fvShine 1.6s cubic-bezier(.65,0,.35,1) 2.5s both}
@keyframes fvRise{to{opacity:1;transform:none}}
@keyframes fvDraw{to{stroke-dashoffset:0}}
@keyframes fvLineOut{to{opacity:0}}
@keyframes fvFill{to{opacity:1}}
@keyframes fvShine{from{transform:skewX(-18deg) translateX(0)}to{transform:skewX(-18deg) translateX(820px)}}
@media (prefers-reduced-motion:reduce){
  :root body .fvL-in,:root body .fvL-fill{opacity:1 !important;transform:none !important;animation:none !important}
  :root body .fvL-line,:root body .fvL-shine{display:none}
}
/* 紺地：土台と柱は白（会社のロゴの濃色背景版と同じ配色） */
:root body .fvL-build .fvL{filter:drop-shadow(0 30px 60px rgba(0,0,0,.35))}
:root body .hv1.fvL-build::before{content:"";position:absolute;z-index:0;right:4vw;bottom:0;width:52vw;height:90%;pointer-events:none;
  background:radial-gradient(50% 50% at 55% 60%,rgba(34,120,230,.28) 0%,rgba(34,120,230,0) 70%)}

/* 白地の2案：文字の色を紺に戻す */
:root body .hv1:is(.fvL-white,.fvL-window){background:#fff !important}
:root body .hv1:is(.fvL-white,.fvL-window) .hero-text::before{display:none}
:root body .hv1:is(.fvL-white,.fvL-window) .hero-h1{color:var(--rd-navy) !important;text-shadow:none !important}
:root body .hv1:is(.fvL-white,.fvL-window) .hero-sub{color:var(--ink) !important}
:root body .hv1:is(.fvL-white,.fvL-window) .hero-lead{color:var(--fg-2) !important}
:root body .hv1:is(.fvL-white,.fvL-window) .hero-lead :is(.kwd,.wm){color:var(--ink)}
:root body .hv1:is(.fvL-white,.fvL-window) .hero-kicker .t{color:var(--rd-navy) !important}
:root body .hv1:is(.fvL-white,.fvL-window) .btn-outline{background:#fff;color:var(--blue-600);border-color:var(--blue-300)}
:root body .hv1:is(.fvL-white,.fvL-window) .hero-trust{border-top-color:var(--line) !important}
:root body .hv1:is(.fvL-white,.fvL-window) .hero-trust div{color:var(--fg-1)}
:root body .hv1:is(.fvL-white,.fvL-window)::after{color:var(--rd-gold)}
:root body .hv1:is(.fvL-white,.fvL-window) .hv4-vtxt{color:rgba(11,27,51,.5)}
:root body .hv1:is(.fvL-white,.fvL-window) .fvL-line{stroke:#0B1B33}
/* 白地・大きく裁ち落とし */
:root body .hv1.fvL-white .fvL{right:3vw;bottom:5%;height:96%}
:root body .hv1.fvL-white .hv4-vtxt{display:none}
/* 白地・窓 */
:root body .hv1.fvL-window .fvL{right:7vw;height:78%;bottom:8%}
:root body .hv1.fvL-window :is(.fvL-b1,.fvL-b2,.fvL-b3) .fvL-fill{mix-blend-mode:multiply;fill-opacity:.9}
:root body .hv1.fvL-window .fvL-win{opacity:0}
:root body .fvL-go.fvL-window .fvL-win{animation:fvFill 1.4s ease 1.9s forwards}
:root body .fvL-go.fvL-window :is(.fvL-base,.fvL-pillar) .fvL-fill{fill:#0B1B33}

/* 幅ごと */
@media (max-width:1199px){:root body .fvL{right:4vw;height:60%}}
@media (max-width:1000px){
  :root body .fvL{right:-8vw;height:56%;bottom:6%;opacity:.35}
  :root body .hv1.fvL-white .fvL,:root body .hv1.fvL-window .fvL{opacity:.18}
}
@media (max-width:600px){
  :root body .fvL{left:50%;right:auto;bottom:40px;height:300px;transform:translateX(-50%);opacity:1}
  :root body .hv1.fvL-white .fvL{left:50%;right:auto;bottom:40px;height:300px;transform:translateX(-50%);opacity:1}
  :root body .hv1.fvL-window .fvL{opacity:1}
  :root body .hv1.fvL-white{padding-bottom:400px !important}
}
@media (max-width:600px){
  :root body .hv1.fvL-window .fvL{left:50%;right:auto;bottom:40px;height:300px;transform:translateX(-50%)}
}
@media (min-width:601px) and (max-width:1000px){
  :root body .hv1.fvL-window .fvL{right:-8vw;height:56%;bottom:6%}
}
/* ロゴは土台の三角まで全体を見せ、左の文字に重ならない幅に収める */
@media (min-width:1001px){
  :root body .hv1 .fvL,
  :root body .hv1.fvL-white .fvL,
  :root body .hv1.fvL-window .fvL{height:auto !important;width:min(36vw,640px);right:max(4vw,calc(50% - 860px));bottom:auto;top:50%;margin-top:-2%;transform:translateY(-44%)}
}
:root body .hv1:is(.fvL-build,.fvL-white,.fvL-window) .hv4-vtxt{display:none}
/* 案B：タブレット幅はスマホと同じく、文字の下にロゴを全体で置く */
@media (min-width:601px) and (max-width:1000px){
  :root body .hv1.fvL-white{display:block;padding-bottom:470px !important}
  :root body .hv1.fvL-white .fvL{left:50%;right:auto;bottom:72px;height:340px;transform:translateX(-50%);opacity:1}
}
:root body .hero-sep{display:block !important}
:root body .hv1::after{left:0 !important;right:0;margin:0 auto;width:max-content;transform:none !important}
/* スマホ（〜1000px）はファーストビューの動きをなくし、最初から完成した形で見せる */
@media (max-width:1000px){
  :root body .hv1 :is(.hero-kicker,.hero-h1,.hero-h1 .ln-i,.hero-sub,.hero-lead,.hero-cta,.hero-trust){animation:none !important;opacity:1 !important;transform:none !important;clip-path:none !important}
  :root body .hv1 .hero-h1 .u::after{animation:none !important;transform:none !important}
  :root body .hv1::after{animation:none !important}
  :root body .fvL-in,:root body .fvL-fill{animation:none !important;opacity:1 !important;transform:none !important}
  :root body .fvL-line,:root body .fvL-shine{display:none}
}
/* PC：ファーストビューを画面の高さに収める（ノートPCの低い画面でも、相談ボタンと安心材料まで1画面に） */
@media (min-width:1001px){
  :root body .hv1{min-height:100vh;min-height:100svh;padding:clamp(28px,6vh,84px) 0 clamp(64px,10vh,112px) !important}
  :root body .hv1 .hero-kicker{margin-bottom:clamp(12px,2.2vh,22px)}
  :root body .hv1 .hero-kicker .bar{margin-bottom:clamp(8px,1.4vh,16px)}
  :root body .hv1 .hero-h1{font-size:clamp(38px,min(5.2vw,8.2vh),80px) !important}
  :root body .hv1 .hero-sub{margin-top:clamp(18px,3.4vh,36px) !important;font-size:clamp(15px,2.1vh,19px) !important;line-height:1.75}
  :root body .hv1 .hero-lead{margin-top:clamp(10px,1.8vh,18px) !important;font-size:clamp(13.5px,1.9vh,15px) !important;line-height:clamp(1.8,0.25vh + 1.6,2)}
  :root body .hv1 .hero-cta{margin-top:clamp(18px,3.4vh,36px) !important}
  :root body .hv1 .hero-trust{margin-top:clamp(16px,3.2vh,36px) !important;padding-top:clamp(12px,2vh,22px) !important}
  :root body .hv1 .fvL{width:min(36vw,640px,calc((100svh - 220px) * 476 / 436)) !important}
  :root body .hv1::after{padding-bottom:clamp(30px,6vh,64px);background-size:1px clamp(22px,4.4vh,48px)}
}
@media (min-width:1001px) and (max-height:740px){
  :root body .hv1{padding:clamp(18px,3.4vh,40px) 0 clamp(44px,7vh,64px) !important}
  :root body .hv1 .hero-kicker .bar{display:none}
  :root body .hv1 .hero-h1{font-size:clamp(34px,min(5vw,7.4vh),62px) !important;line-height:1.24 !important}
  :root body .hv1 .hero-sub{margin-top:clamp(14px,2.6vh,22px) !important;line-height:1.65}
  :root body .hv1 .hero-lead{line-height:1.75 !important}
  :root body .hv1 .hero-cta{margin-top:clamp(14px,2.6vh,22px) !important}
  :root body .hv1 .hero-cta .btn{padding-top:13px;padding-bottom:13px}
  :root body .hv1 .hero-trust{margin-top:clamp(12px,2.2vh,20px) !important;padding-top:12px !important}
  :root body .hv1::after{display:none}
}
/* ファーストビューの文言（2026-11-26改訂）：一行の宣言を明朝で */
:root body .hv1 .hero-sub{font-family:var(--font-mincho) !important;font-weight:600;color:var(--rd-navy) !important;letter-spacing:.04em}
@media (min-width:1001px){:root body .hv1 .hero-sub{font-size:clamp(20px,3vh,28px) !important;margin-top:clamp(22px,4vh,44px) !important}
  :root body .hv1 .hero-lead{font-size:clamp(14px,2vh,16px) !important;max-width:none}}
@media (max-width:1000px){:root body .hv1 .hero-sub{font-size:21px !important;margin-top:28px !important}
  :root body .hv1 .hero-lead{font-size:15px !important;line-height:1.9 !important}
  :root body .hv1 .hero-lead .nb{white-space:normal}}
