/* ============================================================
   rhythm.css  v1.4.0
   幅と背景に段階を付けて、同じ幅の白い箱が続く単調さを崩す。
   幅の段階: wide 1200 / mid 1040 / narrow 880
   style.css の後に読み込む上書き専用ファイル。
============================================================ */
:root{
  --w-wide:1200px;
  --w-mid:1040px;
  --w-narrow:880px;
}

/* 見出し下のリードは読みやすい幅に絞る */
.section-head p{max-width:720px;margin-left:auto;margin-right:auto}

/* ------------------------------------------------------------
   TOP: 解体完了までの流れ（濃紺の帯で調子を変える）
------------------------------------------------------------ */
.flow-band{background:var(--navy);padding:84px 0}
.flow-band .section-head h2{color:#fff}
.flow-band .section-head h2::after{background:var(--orange)}
.flow-band .section-head p{color:#fff}
.flow-band .flow-5{position:relative;gap:0}
.flow-band .flow-5::before{
  content:"";position:absolute;left:10%;right:10%;top:17px;height:2px;background:rgba(255,255,255,.35)
}
.flow-band .flow .fl{background:transparent;border:0;padding:0 14px;position:relative}
.flow-band .flow .fl .n{position:relative;z-index:1;box-shadow:0 0 0 6px var(--navy)}
.flow-band .flow .fl b{color:#fff;font-size:19px;margin-top:6px}
.flow-band .flow .fl p{color:#fff;font-size:16px;line-height:1.75}
.flow-band .cta-inline{margin-top:40px!important}

/* ------------------------------------------------------------
   TOP: 選ばれる理由（箱をやめて余白で区切る・中幅）
------------------------------------------------------------ */
#reasons{padding:120px 0}
#reasons .wrap{max-width:var(--w-mid)}
#reasons .section-head{margin-bottom:56px}
#reasons .why-block{
  background:transparent;border:0;box-shadow:none;border-radius:0;
  padding:0 0 56px;margin-bottom:56px;border-bottom:1px solid var(--line)
}
#reasons .why-head{gap:18px;margin-bottom:14px}
#reasons .why-n{
  width:auto;height:auto;border-radius:0;background:none;color:var(--orange);
  font-size:56px;line-height:1;letter-spacing:-.02em;font-weight:800
}
#reasons .why-head h3{font-size:30px}

/* 02 は左に説明・右に撮る3枚の左右レイアウト */
#reasons .why-block:nth-of-type(3){
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);column-gap:48px;
  grid-template-areas:"head flow" "lead flow" "note flow" "cta flow";
  align-items:start
}
#reasons .why-block:nth-of-type(3) .why-head{grid-area:head}
#reasons .why-block:nth-of-type(3) .why-lead{grid-area:lead}
#reasons .why-block:nth-of-type(3) .cta-note{grid-area:note;text-align:left;margin-top:0!important;color:var(--ink)}
#reasons .why-block:nth-of-type(3) .cta-inline{grid-area:cta;justify-content:flex-start;text-align:left}
#reasons .why-block:nth-of-type(3) .flow-3{
  grid-area:flow;grid-template-columns:1fr;gap:12px;align-self:center
}
#reasons .why-block:nth-of-type(3) .flow-3 .fl{
  display:grid;grid-template-columns:44px 1fr;column-gap:16px;text-align:left;
  background:var(--blue-soft);border:0;padding:18px 20px;align-items:center
}
#reasons .why-block:nth-of-type(3) .flow-3 .fl .n{grid-row:1 / span 2;margin:0;width:40px;height:40px}
#reasons .why-block:nth-of-type(3) .flow-3 .fl b{margin:0}
#reasons .why-block:nth-of-type(3) .flow-3 .fl p{color:var(--ink)}

/* 03 は薄い背景の面で受ける（ここだけ面を持たせて強弱を付ける） */
#reasons .why-block:nth-of-type(4){
  background:var(--bg-alt);border:0;border-radius:16px;padding:44px 44px 40px;margin-left:-44px;margin-right:-44px
}

/* 04・05 は小さめの2列カード */
#reasons .why-pair{gap:24px}
#reasons .why-pair .why-block{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:28px;margin:0;box-shadow:var(--shadow)
}
#reasons .why-mini .why-n{font-size:40px}
#reasons .why-mini .why-head h3{font-size:24px}
#reasons .why-mini .why-lead{font-size:18px}

/* ------------------------------------------------------------
   TOP: オプションサービス（狭い幅・横長カード・白背景）
------------------------------------------------------------ */
.opt-sec{background:#fff;padding:96px 0}
.opt-sec .wrap{max-width:var(--w-narrow)}
.opt-sec .content-grid{grid-template-columns:1fr!important;gap:18px}
.opt-sec .pcard{display:grid;grid-template-columns:300px 1fr;align-items:center}
.opt-sec .pcard .thumb{aspect-ratio:auto;height:100%;min-height:190px}
.opt-sec .pcard .pbody{padding:26px 30px}
.opt-sec .pcard h3{font-size:23px;margin-bottom:10px}
.opt-sec .pcard p{font-size:17px;color:var(--ink)}

/* ------------------------------------------------------------
   TOP: 補助金診断（広い幅・写真を大きく・文字は写真の上）
------------------------------------------------------------ */
.hojo-sec{background:var(--bg-alt);padding:110px 0}
.hojo-sec .content-grid{gap:28px}
.hojo-sec .pcard{position:relative;border:0;border-radius:18px}
.hojo-sec .pcard .thumb{aspect-ratio:4/3}
.hojo-sec .pcard .pbody{
  position:absolute;left:0;right:0;bottom:0;padding:90px 30px 28px;
  background:linear-gradient(to top,rgba(12,28,54,.92) 0%,rgba(12,28,54,.82) 55%,rgba(12,28,54,0) 100%)
}
.hojo-sec .pcard h3{color:#fff;font-size:27px;justify-content:flex-start;gap:10px}
.hojo-sec .pcard h3 .chev{color:#fff}
.hojo-sec .pcard p{color:#fff;font-size:17px}

/* ------------------------------------------------------------
   下層ページ: 本文の幅を中幅にして、文章だけの段は枠を外す
------------------------------------------------------------ */
.content .wrap{max-width:var(--w-mid)}
.page-hero .wrap{max-width:var(--w-mid);padding-top:48px;padding-bottom:44px}
.page-hero h1{font-size:38px}

/* 表・フォーム・カードを含まない文章だけの段は、枠と影を外して余白で区切る */
.content .block:not(:has(table,form,.flow,.reasons-grid,.content-grid,.sim-result,.biz-card,.faq-item,.chips,.btn,[style])){
  background:transparent;border:0;box-shadow:none;border-radius:0;
  padding:8px 0 0;margin:56px 0;max-width:var(--w-narrow)
}
/* 表を持つ段は広めに見せる（中幅いっぱい） */
.content .block:has(table){padding:32px}
.content .block{margin-bottom:32px}

/* ------------------------------------------------------------
   レスポンシブ
------------------------------------------------------------ */
@media(max-width:1100px){
  #reasons .why-block:nth-of-type(4){margin-left:0;margin-right:0;padding:32px 24px}
}
@media(max-width:900px){
  #reasons .why-block:nth-of-type(3){display:block}
  #reasons .why-block:nth-of-type(3) .flow-3{margin:18px 0}
  #reasons .why-block:nth-of-type(3) .cta-note{text-align:center}
  #reasons .why-block:nth-of-type(3) .cta-inline{justify-content:center;text-align:center}
  .opt-sec .pcard{grid-template-columns:200px 1fr}
}
@media(max-width:1000px){
  .flow-band .flow-5::before{display:none}
  .flow-band .flow-5{gap:28px 0}
}
@media(max-width:760px){
  .flow-band{padding:64px 0}
  .flow-band .flow-5{display:grid;grid-template-columns:1fr;gap:22px;overflow:visible;margin:0;padding:0}
  .flow-band .flow-5 .fl{flex:none}
  .hojo-sec .content-grid{grid-template-columns:1fr!important;gap:18px}
  .flow-band .flow .fl{display:grid;grid-template-columns:40px 1fr;column-gap:14px;text-align:left;padding:0}
  .flow-band .flow .fl .n{grid-row:1 / span 2;margin:0}
  .flow-band .flow .fl b{margin-top:0}
  #reasons{padding:80px 0}
  #reasons .why-block{padding-bottom:40px;margin-bottom:40px}
  #reasons .why-n{font-size:44px}
  #reasons .why-head h3{font-size:24px}
  #reasons .why-block:nth-of-type(4){padding:26px 18px}
  .opt-sec{padding:72px 0}
  .opt-sec .pcard{grid-template-columns:1fr}
  .opt-sec .pcard .thumb{aspect-ratio:16/9;min-height:0}
  .opt-sec .pcard .pbody{padding:18px 18px 20px}
  .hojo-sec{padding:80px 0}
  .hojo-sec .pcard h3{font-size:22px}
  .hojo-sec .pcard .pbody{padding:70px 20px 20px}
  .page-hero .wrap{padding-top:30px;padding-bottom:28px}
  .page-hero h1{font-size:28px}
  .content .block:has(table){padding:20px 16px}
  .content .block:not(:has(table,form,.flow,.reasons-grid,.content-grid,.sim-result,.biz-card,.faq-item,.chips,.btn,[style])){margin:40px 0}
}
