/* =========================================================
   試作2：グループ（ホールディングス）下層ページの背景を TOP ⑦-B と同じ仕様にする
   【初版】初めて背景を入れた状態（白いパネル・光のベールを入れる前）
   ・FVの景色写真をページ全体の背景に固定（.page-bg）
   ・白い面は半透明（--veil：セクション／--veil-panel：カード・表など）
   ・紺の面（お問合せ帯・フッター・応募ボックス）も少し透かす
   make_site.py が body に .is-bgphoto と .page-bg を差し込み、このCSSを読み込む
   ========================================================= */
:root { --sun: 255, 222, 140; }
.is-bgphoto { --veil: .55; --veil-panel: .78; --veil-navy: .84; --ink: #1a2230; --muted: #475163; background: transparent; }

/* 固定背景（TOP ⑦-B と同じ写真・同じ光） */
.page-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: #cfe4f5; pointer-events: none; }
.page-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 46%; }
.page-bg .fv-glow {
  position: absolute; inset: 0; mix-blend-mode: screen;
  background: radial-gradient(38% 46% at 57% 50%, rgba(var(--sun), .55), rgba(var(--sun), 0) 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .page-bg .fv-glow { animation: glow 7s ease-in-out 2.4s infinite alternate both; }
}
@keyframes glow { from { opacity: .55; } to { opacity: 1; } }

/* ヘッダー：TOPと同じすりガラス */
/*   すりガラスは ::before に（ヘッダー本体に付けると、タブレット・スマホで開いたメニューがヘッダーの高さに閉じ込められるため） */
.is-bgphoto .site-header { background: transparent; }
.is-bgphoto .site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1); }
.is-bgphoto .topbar { background: rgba(19, 40, 74, var(--veil-navy)); }

/* 面：白はすべて半透明 */
.is-bgphoto .page-hero { background: rgba(255, 255, 255, var(--veil)); }
.is-bgphoto .page-hero-photo { background: transparent; }
.is-bgphoto main .section { background: rgba(255, 255, 255, var(--veil)); }
.is-bgphoto main .section.is-soft { background: rgba(255, 253, 244, calc(var(--veil) + .08)); }

/* カード・表・写真枠など文字がまとまる所は濃いめの白＋ぼかし */
.is-bgphoto .tree-node, .is-bgphoto .section.is-soft .tree-node,
.is-bgphoto .table, .is-bgphoto .privacy-box, .is-bgphoto .message .ph,
.is-bgphoto .news-card, .is-bgphoto .article, .is-bgphoto .policy,
.is-bgphoto .f-field input, .is-bgphoto .f-field select, .is-bgphoto .f-field textarea {
  background: rgba(255, 255, 255, var(--veil-panel));
}
.is-bgphoto .news-card, .is-bgphoto .article, .is-bgphoto .policy { padding-inline: clamp(16px, 2.4vw, 32px); }
.is-bgphoto .tree-node.is-me, .is-bgphoto .section.is-soft .tree-node.is-me { background: color-mix(in srgb, var(--c) 9%, rgba(255, 255, 255, var(--veil-panel))); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .is-bgphoto .tree-node, .is-bgphoto .table, .is-bgphoto .news-card, .is-bgphoto .article, .is-bgphoto .policy, .is-bgphoto .privacy-box {
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
}

/* 紺の面：色は残して少しだけ透かす */
.is-bgphoto .cta { background: rgba(19, 40, 74, var(--veil-navy)); }
.is-bgphoto .site-footer { background: rgba(15, 31, 58, calc(var(--veil-navy) + .06)); }
.is-bgphoto .apply-box { background: rgba(19, 40, 74, var(--veil-navy)); }

/* 透けた白い面の上の文字：TOPと同じく白いぼかしで読みやすく */
.is-bgphoto .page-hero-head, .is-bgphoto .breadcrumb, .is-bgphoto main .section {
  text-shadow: 0 0 2px rgba(255,255,255,.95), 0 0 10px rgba(255,255,255,.85), 0 0 22px rgba(255,255,255,.6);
}
.is-bgphoto .btn, .is-bgphoto .apply-box, .is-bgphoto .tree-root, .is-bgphoto .pager .is-current,
.is-bgphoto .article-nav .to-list, .is-bgphoto .banner, .is-bgphoto .req, .is-bgphoto .opt, .is-bgphoto .tree-me { text-shadow: none; }

@media (max-width: 760px) {
  .is-bgphoto .page-bg img { object-position: 57% 50%; }
  .is-bgphoto { --veil: .62; }
}

/* 企業理念：本文も中央揃え */
.is-bgphoto .philosophy > p { text-align: center; }

/* =========================================================
   企業理念まわりの視認性（2026-11-24）
   景色とのつながりは保ったまま：箱は作らず、線・文字を太く濃く、
   各項目の後ろにだけ白い光（ふちが消えるぼかし）を敷く
   ========================================================= */
/* 本文 */
.is-bgphoto .philosophy > p { color: #1a2433; font-weight: 500; }
.is-bgphoto .philosophy .big { color: #0f2342; font-weight: 700; }

/* 3つの価値（Grace / Ray / Star）：線を太く・濃く */
.is-bgphoto .values { border-top: 2px solid rgba(19, 40, 74, .55); border-bottom: 2px solid rgba(19, 40, 74, .55); }
.is-bgphoto .value { position: relative; isolation: isolate; }
.is-bgphoto .value + .value { border-left: 2px solid rgba(19, 40, 74, .28); }
/* 項目の後ろの白い光：ふちは透明に消えるので景色と一体のまま */
.is-bgphoto .value::before {
  content: ""; position: absolute; inset: -10px -20px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .8), rgba(255, 255, 255, .55) 55%, rgba(255, 255, 255, 0));
}
.is-bgphoto .value-no { color: #13284a; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.is-bgphoto .value-no::before { content: ""; width: 18px; height: 3px; background: #f8f058; box-shadow: 0 0 0 1px rgba(160, 168, 168, .35); }
.is-bgphoto .value b { color: #0f2342; font-weight: 700; font-size: 24px; }
.is-bgphoto .value p { color: #1a2433; font-weight: 500; font-size: 15px; }

/* 式（Grace ＋ Ray ＋ Star ＝ GREYSTAR） */
.is-bgphoto .philosophy > .phil-formula { color: #2a3546; font-weight: 500; }
.is-bgphoto .phil-formula strong { color: #0f2342; font-weight: 700; }

@media (max-width: 760px) {
  .is-bgphoto .value + .value { border-left: 0; border-top: 2px solid rgba(19, 40, 74, .28); }
  .is-bgphoto .value::before { inset: -6px -10px; }
}

/* =========================================================
   全ページの視認性（企業理念と同じ考え方を全体へ）2026-11-24
   ・箱は作らない：文字のまとまりの後ろにだけ「ふちが消える白い光」
   ・線は太く・濃く、文字は太く・濃く
   ・小見出しの頭にGRSロゴの黄色の短い線（企業理念の 01 — Grace と統一）
   ========================================================= */
.is-bgphoto { --line: rgba(19, 40, 74, .26); }

/* 文字：見出しは濃紺・太め、本文は濃く・やや太め */
.is-bgphoto main h1, .is-bgphoto main h2, .is-bgphoto main h3 { color: #0f2342; font-weight: 700; }
.is-bgphoto main p, .is-bgphoto main li, .is-bgphoto main dd, .is-bgphoto main td,
.is-bgphoto .sec-head p, .is-bgphoto .strength p, .is-bgphoto .tree-desc, .is-bgphoto .network-stats span,
.is-bgphoto .company-row dl, .is-bgphoto .news-card p, .is-bgphoto .history p { color: #1a2433; font-weight: 500; }
.is-bgphoto main th, .is-bgphoto .company-row dt, .is-bgphoto .f-label { color: #0f2342; font-weight: 700; }
.is-bgphoto .news-card time, .is-bgphoto .article-head time, .is-bgphoto .tree-en, .is-bgphoto .breadcrumb, .is-bgphoto .breadcrumb a { color: #2f3a4b; font-weight: 500; }
.is-bgphoto .network-stats b, .is-bgphoto .flow-step b, .is-bgphoto .history .year, .is-bgphoto .strength .no { font-weight: 400; }
.is-bgphoto .form-steps li { color: #5a6577; }
.is-bgphoto .form-steps li.is-active { color: #0f2342; }

/* 小見出し（eyebrow）：濃く・太く、頭は黄色の短い線 */
.is-bgphoto .eyebrow { color: #13284a; font-weight: 600; }
.is-bgphoto .eyebrow::before, body.is-bgphoto:not([class*="t-"]) .eyebrow::before {
  width: 18px; height: 3px; background: #f8f058; box-shadow: 0 0 0 1px rgba(160, 168, 168, .35);
}
.is-bgphoto .cta .eyebrow { color: rgba(255, 255, 255, .85); }

/* 線：太く・濃く */
.is-bgphoto .table { border-top: 2px solid #13284a; }
.is-bgphoto .history li { border-top: 2px solid var(--line); }
.is-bgphoto .history li:last-child { border-bottom: 2px solid var(--line); }
.is-bgphoto .news-cards { border-top: 2px solid rgba(19, 40, 74, .5); }
.is-bgphoto .news-card { border-bottom: 2px solid var(--line); }
.is-bgphoto .job { border-bottom: 2px solid var(--line); }
.is-bgphoto .article-head { border-bottom: 2px solid #13284a; }
.is-bgphoto .article-nav { border-top: 2px solid var(--line); }
.is-bgphoto .page-hero:not(.has-photo) { border-bottom: 2px solid var(--line); }
.is-bgphoto .tree-node { border-width: 1.5px; border-top-width: 4px; }
.is-bgphoto .tree-curves path { stroke: #5d6a7d; stroke-width: 1.6; }
.is-bgphoto .biz-card .num::after, .is-bgphoto .network .tag::before { height: 2px; }

/* 文字のまとまりの後ろの白い光：白い面を四辺でぼかして消す（四角に見えない） */
.is-bgphoto .sec-head, .is-bgphoto .page-hero-head h1,
.is-bgphoto .biz-card, .is-bgphoto .strength, .is-bgphoto .flow-item > :not(.ph),
.is-bgphoto .network > :last-child, .is-bgphoto .network-stats,
.is-bgphoto .company-row > :not(.ph), .is-bgphoto .message > :not(.ph),
.is-bgphoto .message-block, .is-bgphoto .job, .is-bgphoto .history, .is-bgphoto .access > div,
.is-bgphoto .form-intro, .is-bgphoto .form-steps, .is-bgphoto .f-row, .is-bgphoto .agree {
  position: relative; isolation: isolate;
}
.is-bgphoto .sec-head::before, .is-bgphoto .page-hero-head h1::before,
.is-bgphoto .biz-card::before, .is-bgphoto .strength::before, .is-bgphoto .flow-item > :not(.ph)::before,
.is-bgphoto .network > :last-child::before,
.is-bgphoto .company-row > :not(.ph)::before, .is-bgphoto .message > :not(.ph)::before,
.is-bgphoto .message-block::before, .is-bgphoto .job::before, .is-bgphoto .history::before, .is-bgphoto .access > div::before,
.is-bgphoto .form-intro::before, .is-bgphoto .f-row::before {
  content: ""; position: absolute; inset: -28px -36px; z-index: -1; pointer-events: none;
  background: rgba(255, 255, 255, .62);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent), linear-gradient(transparent, #000 28px, #000 calc(100% - 28px), transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent), linear-gradient(transparent, #000 28px, #000 calc(100% - 28px), transparent);
          mask-composite: intersect;
}
.is-bgphoto .f-row::before { inset: -6px -36px; }
.is-bgphoto .page-hero-head h1::before { inset: -18px -40px; }

@media (max-width: 760px) {
  .is-bgphoto .sec-head::before, .is-bgphoto .page-hero-head h1::before,
  .is-bgphoto .biz-card::before, .is-bgphoto .strength::before, .is-bgphoto .flow-item > :not(.ph)::before,
  .is-bgphoto .network > :last-child::before,
  .is-bgphoto .company-row > :not(.ph)::before, .is-bgphoto .message > :not(.ph)::before,
  .is-bgphoto .message-block::before, .is-bgphoto .job::before, .is-bgphoto .history::before, .is-bgphoto .access > div::before,
  .is-bgphoto .form-intro::before, .is-bgphoto .f-row::before { inset: -16px -14px; }
}

/* お知らせ・記事・プライバシーポリシー：白い箱をやめ、ほかと同じ「ふちが消える白い光」に */
.is-bgphoto .news-card, .is-bgphoto .article, .is-bgphoto .policy {
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; position: relative; isolation: isolate;
}
.is-bgphoto .news-card::before, .is-bgphoto .article::before, .is-bgphoto .policy::before {
  content: ""; position: absolute; inset: -4px -24px; z-index: -1; pointer-events: none;
  background: rgba(255, 255, 255, .66);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent), linear-gradient(transparent, #000 24px, #000 calc(100% - 24px), transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent), linear-gradient(transparent, #000 24px, #000 calc(100% - 24px), transparent);
          mask-composite: intersect;
}
.is-bgphoto .article::before, .is-bgphoto .policy::before { inset: -40px -48px; }

/* 白い光が画面の外へはみ出しても横スクロールにならないように */
.is-bgphoto main { overflow-x: hidden; overflow-x: clip; }

/* 白い光は「STEPの流れ」「お知らせ（一覧・記事）」と企業理念の3項目だけに絞る（全部にあると不自然なため）
   セクション見出し・ページ見出し・事業カード・強み・グループ会社・代表メッセージ・求人・沿革・アクセス・フォーム・プライバシーポリシーは光なし */
.is-bgphoto .sec-head::before, .is-bgphoto .page-hero-head h1::before,
.is-bgphoto .biz-card::before, .is-bgphoto .strength::before,
.is-bgphoto .network > :last-child::before,
.is-bgphoto .company-row > :not(.ph)::before, .is-bgphoto .message > :not(.ph)::before,
.is-bgphoto .message-block::before, .is-bgphoto .job::before, .is-bgphoto .history::before, .is-bgphoto .access > div::before,
.is-bgphoto .form-intro::before, .is-bgphoto .f-row::before, .is-bgphoto .policy::before { display: none; }

/* 白い光を追加：事業内容（日本地図・5つの強み・GROUP BUSINESSの4つ）、会社概要（沿革の3つ） */
.is-bgphoto .network > :first-child, .is-bgphoto .history li { position: relative; isolation: isolate; }
.is-bgphoto .biz-card::before, .is-bgphoto .strength::before { display: block; }
.is-bgphoto .network > :first-child::before, .is-bgphoto .history li::before {
  content: ""; position: absolute; inset: -28px -36px; z-index: -1; pointer-events: none;
  background: rgba(255, 255, 255, .62);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent), linear-gradient(transparent, #000 28px, #000 calc(100% - 28px), transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent), linear-gradient(transparent, #000 28px, #000 calc(100% - 28px), transparent);
          mask-composite: intersect;
}
.is-bgphoto .history li::before { inset: 4px -36px; }
@media (max-width: 760px) {
  .is-bgphoto .network > :first-child::before { inset: -16px -14px; }
  .is-bgphoto .history li::before { inset: 4px -14px; }
}

/* 紺の面の上の文字は白に戻す（採用情報・協力会社募集の「一緒に、未来をつくりませんか？」、グループ図の親会社） */
.is-bgphoto .apply-box h2, .is-bgphoto .apply-box h3 { color: #fff; }
.is-bgphoto .apply-box p { color: rgba(255, 255, 255, .92); opacity: 1; font-weight: 500; }
.is-bgphoto .tree-root b { color: #fff; }
.is-bgphoto .tree-root .tree-en, .is-bgphoto .tree-root .tree-desc { color: rgba(255, 255, 255, .82); }
.is-bgphoto .banner h2, .is-bgphoto .banner h3, .is-bgphoto .banner p { color: #fff; }

/* =========================================================
   グループ4社のサイト（2026-11-24）：ホールディングスと同じ基準で背景を入れる
   01 グレイスター＝初夏の草原／02 エナジー＝春の花と朝日／03 ランド＝紅葉と渓流／04 ベース＝雪原と朝日
   ・背景の扱い（固定・半透明の白 55%・すりガラスのヘッダー・紺の帯の透け）はホールディングスと同じ
   ・太陽のまわりの光（明滅）は各写真の太陽の位置に合わせる
   ・小見出しの頭の短い線は各社のロゴのくさびの色（ホールディングスの黄色と同じ考え方）
   ・白い光は同じ基準：事業（サービス）・特長（強み）・日本地図・お知らせ・施工事例の項目だけ
   ========================================================= */
body.t-greystar .page-bg img { object-position: 70% 50%; }
body.t-energy   .page-bg img { object-position: 33% 45%; }
body.t-land     .page-bg img { object-position: 40% 35%; }
body.t-base     .page-bg img { object-position: 42% 42%; }
body.t-greystar .page-bg .fv-glow { background: radial-gradient(30% 40% at 71% 48%, rgba(var(--sun), .5), rgba(var(--sun), 0) 70%); }
body.t-energy   .page-bg .fv-glow { background: radial-gradient(30% 40% at 33% 44%, rgba(var(--sun), .5), rgba(var(--sun), 0) 70%); }
body.t-land     .page-bg .fv-glow { background: radial-gradient(30% 40% at 40% 24%, rgba(var(--sun), .45), rgba(var(--sun), 0) 70%); }
body.t-base     .page-bg .fv-glow { background: radial-gradient(30% 40% at 42% 40%, rgba(var(--sun), .45), rgba(var(--sun), 0) 70%); }
@media (max-width: 760px) {
  body.t-greystar .page-bg img { object-position: 70% 50%; }
  body.t-energy   .page-bg img { object-position: 33% 50%; }
  body.t-land     .page-bg img { object-position: 40% 40%; }
  body.t-base     .page-bg img { object-position: 42% 45%; }
}

/* 小見出しの短い線：各社のくさびの色 */
body.is-bgphoto[class*="t-"] .eyebrow::before { background: var(--theme); box-shadow: none; }
body.is-bgphoto[class*="t-"] .cta .eyebrow::before { background: rgba(255, 255, 255, .7); }
body.is-bgphoto[class*="t-"] .banner .eyebrow::before { background: #fff; }

/* 数字（特長の 01 など）は細すぎないように */
.is-bgphoto .feature .no { font-weight: 400; }
.is-bgphoto .work time { color: #2f3a4b; font-weight: 500; }
.is-bgphoto .news-list li { border-bottom: 2px solid var(--line); }
.is-bgphoto .news-list { border-top: 2px solid rgba(19, 40, 74, .5); }

/* 白い光（ふちが消える白い面）：事業カード・事業の詳細・特長・お知らせ一覧・施工事例 */
.is-bgphoto .svc-card, .is-bgphoto .svc-row > :not(.ph), .is-bgphoto .feature, .is-bgphoto .news-list, .is-bgphoto .work {
  position: relative; isolation: isolate;
}
.is-bgphoto .svc-card::before, .is-bgphoto .svc-row > :not(.ph)::before, .is-bgphoto .feature::before,
.is-bgphoto .news-list::before, .is-bgphoto .work::before {
  content: ""; position: absolute; inset: -28px -36px; z-index: -1; pointer-events: none;
  background: rgba(255, 255, 255, .62);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent), linear-gradient(transparent, #000 28px, #000 calc(100% - 28px), transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent), linear-gradient(transparent, #000 28px, #000 calc(100% - 28px), transparent);
          mask-composite: intersect;
}
.is-bgphoto .work::before, .is-bgphoto .svc-card::before { inset: -18px -20px; }
@media (max-width: 760px) {
  .is-bgphoto .svc-card::before, .is-bgphoto .svc-row > :not(.ph)::before, .is-bgphoto .feature::before,
  .is-bgphoto .news-list::before, .is-bgphoto .work::before { inset: -16px -14px; }
}

/* 各社TOPのメインビジュアル（写真の上）の文字は白のまま */
.is-bgphoto .hero h1, .is-bgphoto .hero h2, .is-bgphoto .hero p, .is-bgphoto .hero .hero-eyebrow, .is-bgphoto .hero li { color: #fff; }
.is-bgphoto .hero p { font-weight: 400; }
.is-bgphoto .hero, .is-bgphoto .banner, .is-bgphoto .apply-box, .is-bgphoto .tree-root { text-shadow: none; }

/* =========================================================
   グループ4社TOPのFV（2026-11-25）：背景の景色と一体に
   ・FV全体に季節の景色をそのまま見せる（紺のかぶせ・全面写真をやめる）
   ・現場写真は右側に置き、左と下のふちを景色へ溶かす（四角く見せない）
   ・文字は濃紺。左側だけ朝の光のような白いかすみを敷いて読みやすく（TOP⑦-Bと同じ考え方）
   ・FVの下端に境目を作らず、そのまま下のセクションへつなぐ
   ========================================================= */
.is-bgphoto .hero.is-company { background: transparent; color: #0f2342; isolation: isolate; min-height: min(84svh, 840px); }
/* 左側の白いかすみ（文字のための光） */
.is-bgphoto .hero.is-company::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .55) 34%, rgba(255, 255, 255, .12) 62%, rgba(255, 255, 255, 0) 80%),
    linear-gradient(to top, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 30%);
}
/* 現場写真：右側に。ふちは景色へ溶ける */
.is-bgphoto .hero.is-company .hero-bg {
  inset: 10% 0 8% auto; width: 52%; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(transparent 0%, #000 14%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(transparent 0%, #000 14%, #000 80%, transparent 100%);
          mask-composite: intersect;
}
.is-bgphoto .hero.is-company .hero-bg::after { display: none; }
.is-bgphoto .hero.is-company .hero-bg img { filter: saturate(.95) brightness(1.04); }
/* 文字 */
.is-bgphoto .hero.is-company h1, .is-bgphoto .hero.is-company .hero-eyebrow { color: #0f2342; }
.is-bgphoto .hero.is-company .hero-eyebrow { opacity: 1; font-weight: 600; }
.is-bgphoto .hero.is-company .hero-eyebrow::before { width: 32px; height: 3px; background: var(--theme); }
.is-bgphoto .hero.is-company h1 { font-weight: 700; }
.is-bgphoto .hero.is-company .hero-lead { color: #1a2433; opacity: 1; font-weight: 500; }
.is-bgphoto .hero.is-company .hero-copy { text-shadow: 0 0 2px rgba(255,255,255,.95), 0 0 10px rgba(255,255,255,.85), 0 0 22px rgba(255,255,255,.6); }
.is-bgphoto .hero.is-company .link-arrow.is-white { color: #0f2342; font-weight: 700; }
.is-bgphoto .hero.is-company .link-arrow.is-white::after { background: var(--theme); }

/* 文字は左半分に収め、写真と重ならないように */
@media (min-width: 761px) {
  .is-bgphoto .hero.is-company .hero-copy { max-width: min(640px, 48%); }
}
@media (max-width: 760px) {
  .is-bgphoto .hero.is-company { min-height: auto; justify-content: flex-start; }
  /* スマホ：写真は上に。下のふちを景色へ溶かし、その下に文字 */
  .is-bgphoto .hero.is-company .hero-bg {
    position: relative; inset: auto; width: 100%; height: 42svh; min-height: 240px;
    -webkit-mask-image: linear-gradient(#000 0%, #000 62%, transparent 100%); -webkit-mask-composite: source-over;
            mask-image: linear-gradient(#000 0%, #000 62%, transparent 100%); mask-composite: add;
  }
  .is-bgphoto .hero.is-company .hero-body { padding-top: 0; margin-top: -40px; }
  .is-bgphoto .hero.is-company::after {
    background: linear-gradient(rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .62) 50%, rgba(255, 255, 255, .62) 100%);
  }
}

/* =========================================================
   タブレット（2026-11-30）
   ・961〜1180px：ロゴ・メニュー6つ・お問合せが1行に収まるよう間隔を詰める（はみ出し防止）
   ・960px以下で開くメニュー：画面の下まで広げ、ヘッダーのすぐ下から表示
   ========================================================= */
@media (min-width: 961px) and (max-width: 1180px) {
  .site-header .wrap { gap: 16px; }
  .gnav { gap: 18px; }
  .gnav ul { gap: 13px; }
  .gnav li a { font-size: 13.5px; letter-spacing: .02em; }
  .btn-contact { padding: 12px 16px; }
  .logo-text .en { font-size: 15px; letter-spacing: .12em; }
}
@media (max-width: 960px) {
  /* 上の帯（32px）がある時もない時も画面内に収まる高さ。帯がスクロールで消えた時の下の隙間は影で埋める */
  .is-bgphoto .gnav { position: absolute; top: 100%; bottom: auto; inset-inline: 0; height: calc(100svh - 116px);
    background: rgba(255, 255, 255, .97); box-shadow: 0 40px 0 0 rgba(255, 255, 255, .97); }
}
