/* 画像・図解入り版（/visual/）専用。style.css の後に読み込む。
   生成元は scripts/build-visual-site.js。明示的な visual 公開ビルドでも使用する。
   参考にした型：コンサルティング会社のサイトで一般的な
   「写真で始まるページ」「写真を上に置いた事例カード」「本文の横に大きな写真」「枠に入れた図解」。
   画像は一般的なイメージで、実在のオフィス・支援先・取引先を示すものではない。 */

/* ===== 1. 検討用であることの表示 ===== */
.v-banner { padding: 13px 0; background: #143b51; color: #fff; font-size: 13px; line-height: 1.7; }
.v-banner .container { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; }
.v-banner strong { font-weight: 700; }
.v-banner span { color: #b9d7e3; }
.v-banner a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.v-banner__close { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; align-self: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: none; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.v-banner__close:hover { background: rgba(255,255,255,.16); }
.v-banner[hidden] { display: none; }

/* ===== 2. 写真の共通形：面で置き、下に注記 ===== */
.v-fig { margin: 0; }
.v-fig img { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--paper-2); object-position: center 44%; }
.v-fig__cap { margin-top: 12px; color: var(--ink-3); font-size: 12px; line-height: 1.8; }
.v-fig--lead { margin-bottom: clamp(34px, 3.6vw, 56px); }
.v-fig--intro img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ===== 3. 下層ページ：全幅の分割バンドで見出しを立てる ===== */
.v-head__band { position: relative; display: flex; align-items: center; min-height: clamp(200px, 21vw, 290px); overflow: hidden; background: #143b51; }
.v-head__band > img { position: absolute; top: 0; right: 0; width: 54%; height: 100%; object-fit: cover; }
.v-head__band::after { content: ""; position: absolute; top: 0; right: 0; width: 54%; height: 100%; background: linear-gradient(90deg, rgba(20,59,81,.94) 0%, rgba(20,59,81,.46) 40%, rgba(20,59,81,0) 70%); }
.v-head__band--plain { min-height: clamp(150px, 16vw, 210px); }
.v-head__band--plain::after { display: none; }
.v-head__band--plain .v-head__copy { max-width: 46rem; }
.v-head__inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(30px, 3.4vw, 54px); padding-inline: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))); }
.v-head__copy { display: flex; flex-direction: column; gap: 12px; max-width: min(30rem, 42%); }
.v-head__title { color: #fff; font-size: clamp(27px, 3.1vw, 44px); line-height: 1.4; letter-spacing: -.035em; }
.v-head__lead { color: #d7e8f0; font-size: 16px; line-height: 1.95; }
.v-head .crumb, .v-head .crumb a { color: #a8cad9; }
.v-head .crumb a:hover { color: #fff; }
.v-head .crumb a:focus-visible { outline-color: var(--paper); }

/* ===== 4. サービス区分の見出し：文字階層と余白 ===== */
.v-sechead { margin-bottom: clamp(30px, 3.2vw, 46px); }
.v-sechead + .svc, .v-case-nav + .case, .mem:first-child { border-top: 0; padding-top: 0; }
.v-sechead__n { color: var(--cerulean); font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.v-sechead .sec__head { margin: 6px 0 0; }
.v-sechead .sec__title { font-size: clamp(26px, 2.7vw, 36px); }
.v-sechead .sec__lead { margin-top: 14px; max-width: 48rem; }

/* ===== 5. セクションのリズム ===== */
.sec { padding: clamp(76px, 7.8vw, 120px) 0; }
.sec--breathe { padding: clamp(84px, 8.6vw, 132px) 0; }
.sec--tint, .home-services { background: var(--paper-2); }
.sec__head { margin-bottom: clamp(32px, 3.4vw, 52px); }
.sec__title { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.035em; line-height: 1.5; }
.sec__lead { font-size: 16.5px; line-height: 2; }
.lede { font-size: 16.5px; line-height: 2; }

/* ===== 6. トップ：本文の横に大きな写真 ===== */
.home-intro--split { grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); grid-template-areas: "head fig" "body fig"; gap: 34px 56px; align-items: start; }
.home-intro--split .home-intro__head { grid-area: head; }
.home-intro--split .home-intro__body { grid-area: body; }
.home-intro--split .v-fig { grid-area: fig; }
.home-intro--split .v-fig__cap { margin-top: 14px; }

/* ===== 7. トップ：4つの支援領域を2×2の図解に ===== */
.offerings--areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border-top: 0; }
.offerings--areas .offering { grid-template-columns: auto minmax(0, 1fr) 22px; gap: 8px 18px; padding: 30px 30px 32px; border: 1px solid var(--rule); border-radius: 18px; background: #fff; }
.offerings--areas .offering > div { grid-template-columns: 1fr; gap: 12px; }
.offerings--areas .offering__n { color: var(--cerulean); font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 2.3; }
.offerings--areas .offering__arrow { align-self: start; font-size: 20px; line-height: 1.7; }
.offerings--areas .offering:hover { border-color: var(--rule-2); background: var(--paper-2); }

/* ===== 8. トップ：支援の内容と成果を写真付きカードに ===== */
.proof { padding: clamp(72px, 7.6vw, 116px) 0; }
.proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.proof-case { display: flex; flex-direction: column; padding: 0 0 34px; border: 1px solid var(--rule); border-radius: 22px; background: #fff; overflow: hidden; }
.proof-case__fig { margin: 0; }
.proof-case__fig img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.proof-case__fig .v-fig__cap { padding: 12px 32px 0; }
.proof-case__meta { padding: 26px 32px 0; }
.proof-case h3 { padding: 0 32px; font-size: clamp(21px, 1.8vw, 25px); line-height: 1.6; }
.proof-case__summary { padding: 0 32px; }
.proof-case__summary { font-size: 16px; }
.proof-case__kpis { padding: 30px 32px 0; }
.proof-case__link { margin-top: 26px; padding: 0 32px; }

/* ===== 9. トップ：会社とチームについて ===== */
.index { display: grid; gap: 16px; border-top: 0; }
.index__item { grid-template-columns: 1fr 26px; padding: 28px 30px; border: 1px solid var(--rule); border-radius: 18px; background: #fff; }
.index__item:hover { border-color: var(--rule-2); background: var(--paper-2); }

/* ===== 10. 実績：写真を上に置いた2列のカード ===== */
.cases.v-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.v-cards .case { display: flex; flex-direction: column; padding: 0 0 32px; border: 1px solid var(--rule); border-top: 1px solid var(--rule); border-radius: 22px; background: #fff; overflow: hidden; }
.v-card__fig { margin: 0; }
.v-card__fig img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.v-card__fig .v-fig__cap { padding: 12px 32px 0; }
.v-cards .case__meta { padding: 26px 32px 0; }
.v-cards .case__t { padding: 0 32px; margin-bottom: 24px; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.62; letter-spacing: -.02em; }
.v-cards .case__grid { grid-template-columns: 1fr; gap: 22px; padding: 0 32px; }
.v-cards .case__outcome { padding: 24px 26px; border-radius: 16px; }
.v-cards .section-link { justify-content: flex-start; margin-top: 24px; padding: 0 32px; }

/* ===== 11. 実績詳細：本文への目次と相談入口 ===== */
.v-case-nav__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; }
.v-case-nav__head p { font-weight: 700; }
.v-case-nav__head .tlink { min-height: 44px; }
.v-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: clamp(32px, 3.4vw, 52px); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; background: #fff; }
.v-stage a { display: block; padding: 24px 26px 26px; height: 100%; }
.v-stage a:hover { background: var(--paper-2); }
.v-stage a:focus-visible { outline: 3px solid var(--cerulean); outline-offset: -4px; }
.v-case-nav ~ .case .case__h { scroll-margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--cerulean-d); }
.v-stage + .v-stage { border-left: 1px solid var(--rule); }
.v-stage strong { display: block; font-size: 18px; color: var(--cerulean-d); }
.v-stage__d { display: block; margin-top: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.9; }

/* ===== 12. 図解は枠に入れて、下に短い説明を置く ===== */
.v-panel { padding: 32px 34px; border: 1px solid var(--rule); border-radius: 20px; background: #fff; }
.v-panel + .v-panel { margin-top: 28px; }
.v-panel__cap { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--rule-2); color: var(--ink-3); font-size: 12.5px; line-height: 1.85; }
.v-panel__cap + .btn { margin-top: 24px; }
.row.row--flow { grid-template-columns: 1fr; gap: 18px; padding: 32px 34px 10px; border: 1px solid var(--rule); border-radius: 20px; background: #fff; }
.steps--flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; }
.steps--flow .step { position: relative; display: block; padding: 36px 22px 4px 0; border-bottom: 0; }
.steps--flow .step::before { content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 1px; background: var(--rule-2); }
.steps--flow .step::after { content: ""; position: absolute; top: 4px; left: 0; width: 13px; height: 13px; border: 2px solid var(--cerulean); border-radius: 50%; background: #fff; }
.steps--flow .step__n { display: block; color: var(--cerulean); font-size: 12px; font-weight: 700; }
.steps--flow .step__t { margin-top: 6px; font-size: 17px; }
.steps--flow .step__d { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.9; }

/* ===== 12b. 支援前後の図解 ===== */
.v-ba { display: grid; gap: 20px; }
.v-ba__row { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper-2); }
.v-ba__label { grid-column: 1 / -1; font-size: 16.5px; font-weight: 700; }
.v-ba__cell { margin: 0; }
.v-ba__cell img { display: block; width: 100%; height: auto; border-radius: 12px; }
.v-ba__cell figcaption { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.85; }
.v-ba__tag { display: inline-block; margin-right: 8px; padding: 1px 9px; border: 1px solid var(--rule-2); border-radius: 999px; color: var(--ink-3); font-size: 12px; line-height: 1.8; }
.v-ba__arw { color: var(--cerulean); font-size: 20px; text-align: center; }

/* ===== 12c. 実際にお渡しするものの画面イメージ ===== */
.v-fig--screen { margin-top: 24px; }
.v-fig--screen .v-fig__note { margin-top: 12px; color: var(--ink-3); font-size: 13px; line-height: 1.85; }

/* ===== 13. 会社情報などの行 ===== */
.rows { border-top: 1px solid var(--rule); }
.row { grid-template-columns: minmax(140px, .3fr) 1fr; gap: clamp(20px, 3vw, 44px); padding: 24px 0; }
.row--num { grid-template-columns: auto minmax(140px, 190px) 1fr; }
.row--stack { grid-template-columns: 1fr; gap: 10px; }

/* ===== 14. 強み：本文と枠の2列 ===== */
.spread__grid { gap: clamp(28px, 4vw, 56px); }
.spread__grid > :last-child { border-radius: 18px; padding: 32px; }
.spread__t { font-size: clamp(23px, 2.2vw, 30px); }
.method-map__roles.v-panel { padding: 30px 32px; }
.method-map__roles.v-panel .method-map__role { border-top: 0; }

/* ===== 15. 相談導線 ===== */
.cta { padding: clamp(64px, 7vw, 104px) 0; }

/* ===== 16. 画面幅に合わせた組み替え ===== */
@media (max-width: 1000px) {
  .v-head__band { min-height: 0; }
  .v-head__band > img { inset: 0; inline-size: 100%; block-size: 100%; aspect-ratio: auto; }
  .v-head__band::after { inset: 0; inline-size: 100%; block-size: 100%; background: linear-gradient(90deg, rgba(20,59,81,.97), rgba(20,59,81,.86) 65%, rgba(20,59,81,.72)); }
  .v-head__inner { padding-block: 26px 30px; }
  .v-head__copy { max-width: 46rem; }
  .home-intro--split { grid-template-columns: 1fr; grid-template-areas: "head" "fig" "body"; gap: 30px; }
  .steps--flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
  .steps--flow .step { padding-right: 0; }
  .steps--flow .step:nth-child(4)::before { display: none; }
}

@media (max-width: 820px) {
  .v-head__inner { padding: 22px 20px 26px; }
  .v-head__copy { max-width: none; gap: 10px; }
  .v-head__title { font-size: 25px; }
  .v-head__lead { font-size: 14.5px; line-height: 1.85; }
  .sec { padding: 54px 0; }
  .sec--breathe { padding: 60px 0; }
  .hero + .sec--breathe { padding-top: 36px; }
  .hero__lead, .sec__lead, .lede, .v-head__lead { text-wrap: pretty; }
  .sec__head { margin-bottom: 24px; }
  .sec__title, .home-intro__title, .proof__title { font-size: 23px; }
  .proof { padding: 36px 0; }
  .proof__head { gap: 8px; margin-bottom: 20px; }
  .proof-case h3 { font-size: 19px; }
  .proof-case__kpis strong { font-size: 28px; }
  .v-cards .case__t, .case__t { font-size: 18px; }
  .v-stage a { padding: 18px 20px; }
  .index__body h2, .index__body h3 { font-size: 19px; }
  .cta { padding: 50px 0; }
  .cta__t { font-size: 22px; }
  .offerings--areas, .proof__grid, .cases.v-cards { grid-template-columns: 1fr; }
  .row, .row--stack { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .row--num { grid-template-columns: auto 1fr; }
  .row--stack { gap: 10px; }
  .v-sechead { margin-bottom: 24px; }
  .v-sechead .sec__title { font-size: 22px; }
  .v-sechead .sec__lead { margin-top: 10px; }
  .v-fig img { border-radius: 14px; }
  .proof-case, .v-cards .case { border-radius: 18px; }
  .proof-case__meta, .proof-case h3, .proof-case__summary, .proof-case__kpis, .proof-case__link,
  .v-cards .case__meta, .v-cards .case__t, .v-cards .case__grid, .v-cards .section-link { padding-inline: 24px; }
  .v-panel { padding: 24px 22px; }
  .row.row--flow { padding: 24px 22px 8px; }
  .steps--flow { grid-template-columns: 1fr; }
  .steps--flow .step { padding: 0 0 24px 34px; }
  .steps--flow .step::before { top: 8px; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
  .steps--flow .step::after { top: 2px; left: 0; }
  .steps--flow .step:nth-child(4)::before { display: block; }
  .steps--flow .step:last-child { padding-bottom: 0; }
  .steps--flow .step:last-child::before { display: none; }
  .v-ba__row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 16px; }
  .v-ba__arw { text-align: center; transform: rotate(90deg); }
  .v-stages { grid-template-columns: 1fr; }
  .v-stage + .v-stage { border-left: 0; border-top: 1px solid var(--rule); }
  .method-map__roles.v-panel { padding: 22px 20px; }
  .index__item { padding: 24px 22px; }
  .spread__grid > :last-child { padding: 26px 22px; }
}

@media (max-width: 600px) {
  .v-head__lead { font-size: 16px; }
  .offerings--areas .offering { padding: 24px 20px; gap: 8px 12px; }
  .offerings--areas .offering__title { font-size: 20px; }
  .proof-case__meta, .proof-case h3, .proof-case__summary, .proof-case__kpis, .proof-case__link,
  .v-cards .case__meta, .v-cards .case__t, .v-cards .case__grid, .v-cards .section-link { padding-inline: 20px; }
  .row.row--flow, .v-panel { padding-inline: 18px; }
  .v-ba__row { padding: 16px 12px; }
  .v-cards .case__outcome { padding: 20px 18px; }
}
