/*!
 * v2.css - /v2/ プレビューサイト専用スタイル
 * Round 4 で layout 内 <style> ブロックおよび各ページのインラインスタイルを集約
 * Round 8: PC可読性向上（フォント・ウェイト・コントラスト全面強化）
 */

/* ===== Typography（PC可読性 大幅強化）=====
   注意：hero / 反転背景セクション（red bg, navy bg, image overlay）には
   color を適用しない。font-family / weight / line-height は安全。 */
body[class*="page-"] {
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
                 "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
                 "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif !important;
    font-size: 16.5px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.85;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 反転（白文字）背景の判定セレクタ。これらの中の typography は色を継承する */
body[class*="page-"] .v2-hero,
body[class*="page-"] .v2-hero *,
body[class*="page-"] section.home,
body[class*="page-"] section.home *,
body[class*="page-"] [style*="color:#fff"],
body[class*="page-"] [style*="color: #fff"],
body[class*="page-"] [style*="color:white"],
body[class*="page-"] [style*="background:#dc3545"],
body[class*="page-"] [style*="background: #dc3545"],
body[class*="page-"] [style*="background:#dc3545"] *,
body[class*="page-"] [style*="background: #dc3545"] *,
body[class*="page-"] .v2-cta-job-red,
body[class*="page-"] .v2-cta-job-red *,
body[class*="page-"] footer,
body[class*="page-"] footer * {
    color: inherit;
}

body[class*="page-"] p,
body[class*="page-"] li,
body[class*="page-"] dd,
body[class*="page-"] td,
body[class*="page-"] th {
    line-height: 1.85;
}
/* 通常背景の本文のみ濃い色（hero/反転セクション内は除外）*/
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) p,
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) li,
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) dd,
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) td,
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) th {
    color: #1a1a1a;
}

/* 見出しは黒寄りで font-weight 700 以上（hero / 反転背景内は inherit）*/
body[class*="page-"] h1,
body[class*="page-"] h2,
body[class*="page-"] h3,
body[class*="page-"] h4,
body[class*="page-"] h5,
body[class*="page-"] h6,
body[class*="page-"] [role="heading"],
body[class*="page-"] .display-1,
body[class*="page-"] .display-2,
body[class*="page-"] .display-3,
body[class*="page-"] .display-4,
body[class*="page-"] .display-5 {
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
}
/* 通常背景セクション内の見出しのみ濃い色 */
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) h1,
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) h2,
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) h3,
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) h4 {
    color: #111;
}
/* display系は重く */
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) .display-1,
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) .display-2,
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) .display-3,
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) .display-4,
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) .display-5 {
    font-weight: 900;
    color: #111;
}

/* lead テキストも読みやすく（hero以外）*/
body[class*="page-"] .lead {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.85;
}
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) .lead {
    color: #1a1a1a;
}

/* small は小さくしすぎない（Round 9: 5名レビュー反映、底上げ）*/
body[class*="page-"] .small,
body[class*="page-"] small {
    font-size: 14.5px;
    line-height: 1.7;
}
/* small.text-muted は色も濃く */
body[class*="page-"] .small.text-muted,
body[class*="page-"] small.text-muted {
    color: #2c3034 !important;
    font-size: 14.5px;
}

/* テーブル・dl の行間も本文と同じくゆったり（Round 9: 調達/求職者レビュー反映）*/
body[class*="page-"] table td,
body[class*="page-"] table th,
body[class*="page-"] .v2-fact-list dt,
body[class*="page-"] .v2-fact-list dd,
body[class*="page-"] dl dt,
body[class*="page-"] dl dd {
    line-height: 1.75;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}
body[class*="page-"] .v2-fact-list dd {
    color: #1a1a1a;
}

/* 数字・スペックの強調（Round 9: 求職者・調達レビュー反映）*/
body[class*="page-"] .v2-kpi-number,
body[class*="page-"] .display-5.font-weight-bold[style*="color:#dc3545"],
body[class*="page-"] .display-5.font-weight-bold[style*="color: #dc3545"] {
    font-weight: 900;
    letter-spacing: -0.01em;
}
/* 給与・期間など数字を含む dd は若干太く */
body[class*="page-"] .v2-fact-list dd strong,
body[class*="page-"] dl dd strong {
    color: #111;
    font-weight: 700;
}

/* font-weight-normal を上書きされすぎないように 500 に */
body[class*="page-"] .font-weight-normal {
    font-weight: 500 !important;
}

/* リンクのコントラスト強化（本文内のテキストリンクのみ）*/
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) p > a:not(.btn),
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) li > a:not(.btn) {
    color: #0a4ea8;
}
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) p > a:not(.btn):hover,
body[class*="page-"] section:not(.home):not(.v2-hero):not([style*="color:#fff"]):not([style*="background:#dc3545"]):not([style*="background: #dc3545"]) li > a:not(.btn):hover {
    color: #dc3545;
}

/* ボタンの可読性を絶対に確保（Bootstrap デフォルト保持＋強化）*/
body[class*="page-"] .btn-light {
    color: #212529 !important;
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    font-weight: 600 !important;
}
body[class*="page-"] .btn-light:hover,
body[class*="page-"] .btn-light:focus {
    color: #fff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}
body[class*="page-"] .btn-dark {
    color: #fff !important;
    background-color: #212529 !important;
    border-color: #212529 !important;
    font-weight: 600 !important;
}
body[class*="page-"] .btn-danger {
    color: #fff !important;
    font-weight: 600 !important;
}
body[class*="page-"] .btn-outline-dark {
    color: #212529 !important;
    border-color: #212529 !important;
    border-width: 1.5px !important;
    font-weight: 700 !important;
}
body[class*="page-"] .btn-outline-dark:hover {
    color: #fff !important;
    background-color: #212529 !important;
}
body[class*="page-"] .btn-outline-light {
    color: #fff !important;
    border-color: #fff !important;
    background-color: rgba(255, 255, 255, 0.10) !important;
    font-weight: 700 !important;
}
body[class*="page-"] .btn-outline-light:hover,
body[class*="page-"] .btn-outline-light:focus {
    color: #dc3545 !important;
    background-color: #fff !important;
    border-color: #fff !important;
}
/* btn-sm.btn-outline-dark も読みやすく */
body[class*="page-"] .btn-sm.btn-outline-dark {
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
    border-width: 2px !important;
}

/* table も読みやすく */
body[class*="page-"] table {
    color: #1a1a1a;
}

/* 長文ページの段落間 margin 拡大（Round 9: 求職者・シニアレビュー反映）*/
body[class*="page-"] p {
    margin-bottom: 1.15rem;
}
body[class*="page-"] p + p {
    margin-top: 0;
}
body[class*="page-"] section h2 + p,
body[class*="page-"] section h3 + p {
    margin-top: 0.5rem;
}

/* PC で 3-4 カラム並列のカラム幅が狭い時の対策 */
@media (min-width: 768px) and (max-width: 1199.98px) {
    body[class*="page-"] .col-md-4 p,
    body[class*="page-"] .col-md-3 p {
        font-size: 15.5px;
        line-height: 1.8;
    }
}

/* CTA 内本文の強化 */
body[class*="page-"] .v2-cta-recruit p,
body[class*="page-"] .v2-cta-job p,
body[class*="page-"] .v2-cta-contact p,
body[class*="page-"] [class*="cta"] .lead {
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.85;
}

/* リンク認識性の強化（pタグ内のa）— 下線を明示 */
body[class*="page-"] p a:not(.btn):not(.nav-link):not([class*="card"]) {
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

/* ===== Preview banner ===== */
.v2-preview-banner {
    background: #ffc107;
    color: #212529;
    text-align: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1080;
}
.v2-preview-banner a { color: #0a58ca; text-decoration: underline; }

/* ===== SP ヘッダ背景を白で統一（Round 16: container padding 復活 + 左端密着解消）===== */
@media (max-width: 991.98px) {
    body[class*="page-"] .menu-header {
        background-color: #ffffff !important;
        height: auto !important;
        min-height: 60px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        border-bottom: 1px solid #e9ecef;
    }
    /* styles.css の .menu-header > .container { padding: 0 } を上書き */
    body[class*="page-"] .menu-header > .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    body[class*="page-"] nav.navbar {
        background-color: transparent !important;
        padding: 0.5rem 0;
    }
    body[class*="page-"] .menu-header a:not(.navbar-brand) {
        color: #212529 !important;
    }
    body[class*="page-"] .menu-header a:not(.navbar-brand):hover,
    body[class*="page-"] .menu-header a:not(.navbar-brand):focus {
        color: #dc3545 !important;
    }
    body[class*="page-"] .navbar-toggler {
        border-color: #ced4da !important;
        background: #fff;
    }
    body[class*="page-"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0, 0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    /* ドロップダウンメニューを開いた時の背景も白に */
    body[class*="page-"] .navbar-collapse {
        background: #fff;
        padding: 0.5rem 1rem;
        border-top: 1px solid #e9ecef;
    }
    /* ブレッドクラムも左右に padding を確実に */
    body[class*="page-"] .v2-breadcrumb-wrap > .v2-breadcrumb,
    body[class*="page-"] .v2-breadcrumb > .container,
    body[class*="page-"] .v2-breadcrumb .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    body[class*="page-"] .v2-breadcrumb-list {
        padding-left: 0 !important;
    }
}

/* ===== Brand mark（Round 14: 元 K ロゴ + テキスト併記）===== */
body[class*="page-"] .v2-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none !important;
    padding: 0.25rem 0;
}
body[class*="page-"] .v2-brand-mark {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}
body[class*="page-"] .v2-brand-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}
body[class*="page-"] .v2-brand-jp {
    color: #111 !important;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}
body[class*="page-"] .v2-brand-en {
    color: #6c757d !important;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-top: 3px;
}
body[class*="page-"] .v2-brand:hover .v2-brand-jp {
    color: #dc3545 !important;
}
body[class*="page-"] .v2-brand:hover .v2-brand-mark {
    opacity: 0.85;
}
@media (max-width: 575.98px) {
    body[class*="page-"] .v2-brand-mark {
        width: 40px;
        height: 40px;
    }
    body[class*="page-"] .v2-brand-jp {
        font-size: 0.95rem;
    }
    body[class*="page-"] .v2-brand-en {
        font-size: 0.55rem;
    }
}

/* ===== Recruit nav CTA ===== */
.nav-recruit-cta {
    background: #dc3545;
    color: #fff !important;
    padding: 6px 16px !important;
    border-radius: 4px;
}
.nav-recruit-cta:hover { background: #b02a37; color: #fff !important; }

/* ===== Page header spacing ===== */
body:not(.page-index) section.page-header {
    min-height: auto !important;
    padding: 0 !important;
}
body:not(.page-index) section.page-header > .container.py-5.my-5,
body:not(.page-index) section.page-header > .container {
    padding-top: 1.25rem !important;
    padding-bottom: 1rem !important;
    margin-top: 4.5rem !important;
    margin-bottom: 0 !important;
}
body:not(.page-index) section.page-header + section {
    margin-top: 0.5rem !important;
    padding-top: 2rem !important;
}
body:not(.page-index) main > section.mt-5 { margin-top: 2rem !important; }
body:not(.page-index) main > section.pt-5 { padding-top: 2rem !important; }

/* ===== Fact list (dl grid) ===== */
.v2-fact-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem 1rem;
}
@media (min-width: 576px) {
    .v2-fact-list { grid-template-columns: max-content 1fr; }
}
.v2-fact-list dt { font-weight: 600; color: #212529; }
.v2-fact-list dd { margin-bottom: 0; color: #495057; }

/* ===== Step row (timeline) ===== */
.v2-step-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}
.v2-step-row:last-child { border-bottom: 0; }
.v2-step-time { flex: 0 0 5rem; font-weight: 600; color: #dc3545; }

/* ===== FAQ (dl style) ===== */
.v2-faq dt { font-weight: 700; margin-top: 1.25rem; }
.v2-faq dt::before { content: 'Q. '; color: #dc3545; }
.v2-faq dd { margin-left: 0; padding-left: 1.4rem; position: relative; color: #495057; }
.v2-faq dd::before { content: 'A. '; position: absolute; left: 0; color: #198754; font-weight: 700; }

/* ===== Accordion FAQ ===== */
.v2-accordion .card {
    border: 1px solid #e9ecef;
    border-radius: 0;
    margin-bottom: 8px;
}
.v2-accordion .card-header { background: #fff; padding: 0; border-bottom: 0; }
.v2-accordion .card-header button {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    border: 0;
    background: transparent;
    font-weight: 700;
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.v2-accordion .card-header button:hover { background: #f8f9fa; }
.v2-accordion .card-header button .v2-q-mark { color: #dc3545; margin-right: 0.5rem; }
.v2-accordion .card-header button .v2-toggle-icon::after {
    content: '＋';
    font-size: 1.2rem;
    color: #6c757d;
    transition: transform 0.2s;
}
.v2-accordion .card-header button[aria-expanded="true"] .v2-toggle-icon::after { content: '−'; }
.v2-accordion .card-body { padding: 0 1.25rem 1.25rem; color: #495057; }
.v2-accordion .v2-a-mark { color: #198754; font-weight: 700; margin-right: 0.5rem; }

/* ===== Accessibility: text-muted contrast（AAA級まで強化）===== */
body[class*="page-"] .text-muted { color: #3a3f44 !important; }
body[class*="page-"] .small.text-muted,
body[class*="page-"] small.text-muted { color: #2c3034 !important; }
/* red-label は赤すぎを抑え、太字に */
body[class*="page-"] .red-label { color: #b02030; font-weight: 900; }
body[class*="page-"] .primary-color { color: #b02030; }
/* alpha (lead-ish accent text) も読みやすく */
body[class*="page-"] .alpha { font-weight: 600; letter-spacing: 0.04em; }

/* ===== Focus visible ===== */
body[class*="page-"] a:focus-visible,
body[class*="page-"] button:focus-visible,
body[class*="page-"] [role="button"]:focus-visible,
body[class*="page-"] input:focus-visible,
body[class*="page-"] select:focus-visible,
body[class*="page-"] textarea:focus-visible {
    outline: 3px solid #ffc107 !important;
    outline-offset: 2px !important;
}

/* ===== Mobile tap targets ===== */
@media (max-width: 768px) {
    body[class*="page-"] .v2-accordion .card-header button { min-height: 48px; padding: 0.85rem 1rem; }
    body[class*="page-"] .navbar-toggler { min-width: 44px; min-height: 44px; }
    body[class*="page-"] .btn { min-height: 44px; }
}

/* ===== SP heading wrapping ===== */
@media (max-width: 575.98px) {
    body[class*="page-"] section.page-header .display-4 { font-size: 2rem; line-height: 1.2; word-break: keep-all; }
    body[class*="page-"] section.page-header .red-label { display: inline-block; max-width: 100%; }
}

/* ===== Cookie consent banner（Round 9: コンパクト化）===== */
.v2-cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    z-index: 1080;
    background: rgba(31, 41, 55, 0.97);
    color: #fff;
    padding: 14px 18px;
    font-size: 14px;
    display: none;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.v2-cookie-banner.show { display: block; }
.v2-cookie-banner .v2-cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}
.v2-cookie-banner a { color: #ffc107; text-decoration: underline; }
.v2-cookie-banner button {
    font-size: 13px;
    padding: 8px 14px;
    min-height: 44px;
}

/* ===== Blog list category badges（Round 12: 2色対比でカテゴリ識別）===== */
/* お知らせ = 赤系、BLOG = 濃紺系、施工実績 = グレー系 */
body.page-blog .bg-dark,
body.page-index .bg-dark {
    background-color: #fef2f2 !important;
    color: #b02030 !important;
    font-weight: 700 !important;
    border-radius: 2px;
}
body.page-blog .btn-info,
body.page-index .btn-info {
    background-color: #e0e7ff !important;
    border-color: #c7d2fe !important;
    color: #1e3a8a !important;
    font-weight: 700 !important;
    border-radius: 2px;
}
body.page-blog .btn-light:not(.btn-lg):not(.v2-recruit-banner *),
body.page-index .blog .btn-light:not(.btn-lg) {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    font-weight: 700 !important;
    border: 1px solid #ced4da !important;
}

/* ===== SP ヒーロー（Round 12: 呼吸を確保）===== */
@media (max-width: 575.98px) {
    body.page-index section.home.v2-hero {
        background-position: right center !important;
        min-height: 70vh !important;
    }
    body.page-index section.home.v2-hero .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
    body.page-index section.home.v2-hero .display-4 {
        font-size: 2rem !important;
        line-height: 1.3;
    }
    body.page-index section.home.v2-hero .display-5 {
        font-size: 1.2rem !important;
    }
    body.page-index section.home.v2-hero .lead {
        font-size: 0.95rem !important;
        line-height: 1.7;
    }
    /* recruit-banner を SP では下に押し出して呼吸を確保 */
    body.page-index .v2-recruit-banner {
        margin-top: 1rem !important;
        padding: 2.5rem 0 !important;
    }
}

/* ===== Sr-only ===== */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ===== Honeypot ===== */
.v2-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ===== Page title (h1降格された div の見た目維持) ===== */
.v2-page-title { /* visual = display-4; placeholder for future overrides */ }

/* ===== Section common card ===== */
.v2-card {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    background: #fff;
    height: 100%;
}
.v2-card-bordered-left {
    border-left: 4px solid #dc3545;
    padding-left: 1.25rem;
}

/* ===== KPI section（Round 13: 看板項目を強調する強弱）===== */
.v2-kpi-section {
    background: #f8f9fa;
    padding: 3rem 0;
}
.v2-kpi-section h2 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
}
.v2-kpi-number {
    font-size: 2.6rem;
    font-weight: 900;
    color: #b02030;
    line-height: 1;
    letter-spacing: -0.01em;
}
.v2-kpi-unit { font-size: 0.95rem; font-weight: 700; color: #495057; margin-left: 0.15em; }
.v2-kpi-section .small,
.v2-kpi-section small {
    color: #495057 !important;
    font-weight: 600;
}

/* index ページの「数字で見る広涼電設」section の強弱（看板2項目を大きく）*/
body.page-index section[style*="background:#f8f9fa"] .row.text-center .col-md:nth-child(1) .display-4,
body.page-index section[style*="background:#f8f9fa"] .row.text-center .col-md:nth-child(2) .display-4 {
    font-size: 4rem !important;
    color: #b02030 !important;
    line-height: 1;
}
body.page-index section[style*="background:#f8f9fa"] .row.text-center .col-md:nth-child(1) .display-4 span,
body.page-index section[style*="background:#f8f9fa"] .row.text-center .col-md:nth-child(2) .display-4 span {
    font-size: 1.2rem !important;
    color: #495057 !important;
    font-weight: 700;
}
body.page-index section[style*="background:#f8f9fa"] .row.text-center .col-md:nth-child(n+3) .display-4 {
    font-size: 2.2rem !important;
    color: #495057 !important;
}
body.page-index section[style*="background:#f8f9fa"] .row.text-center .col-md:nth-child(n+3) .display-4 span {
    font-size: 0.85rem !important;
    color: #6c757d !important;
}
body.page-index section[style*="background:#f8f9fa"] .row.text-center .text-muted {
    color: #495057 !important;
    font-weight: 600;
}

/* ===== TOC (Table of contents) ===== */
.v2-toc {
    background: #f8f9fa;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid #dc3545;
    margin-bottom: 2rem;
}
.v2-toc ol { margin-bottom: 0; }
.v2-toc a { color: #495057; text-decoration: none; }
.v2-toc a:hover { color: #dc3545; text-decoration: underline; }

/* ===== Hero (top page) ===== */
.v2-hero {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 70vh;
}
.v2-hero-content {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
    color: #fff;
}
.v2-hero-content .display-4,
.v2-hero-content .display-5 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.v2-hero-content p.lead { text-shadow: 0 1px 4px rgba(0,0,0,0.4); }

/* ===== Recruit banner (top page)（Round 11: ボリューム強化）===== */
.v2-recruit-banner {
    background: #dc3545;
    color: #fff;
    padding: 4rem 0;
    margin-top: 2rem !important;
    background-image: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}
.v2-recruit-banner p {
    font-size: 1.1rem;
}
.v2-recruit-banner .btn-light {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    border: 2px solid #fff !important;
    padding: 0.75rem 1.5rem !important;
}

/* ===== CTA hierarchy（Round 12: '仲間を募集'淡赤 → 白カードに格下げ）===== */
body[class*="page-"] .v2-cta-recruit {
    background: #fff !important;
    border: 1px solid #e9ecef;
    border-left: 4px solid #dc3545;
    padding: 2.5rem 0 !important;
    margin: 3rem auto !important;
    max-width: 1100px;
}
body[class*="page-"] .v2-cta-recruit h2,
body[class*="page-"] .v2-cta-recruit h3 {
    color: #111 !important;
}
body[class*="page-"] .v2-cta-job {
    background: #fff !important;
    border: 1px solid #e9ecef;
    border-left: 4px solid #dc3545;
    padding: 2.5rem 0 !important;
    margin: 3rem auto !important;
    max-width: 1100px;
}
/* 'ご相談・お見積もり' は濃紺で primary CTA に */
body[class*="page-"] .v2-cta-contact {
    background: #1f2937 !important;
    color: #fff !important;
    padding: 3rem 0 !important;
    margin-top: 3rem;
}
body[class*="page-"] .v2-cta-contact h2,
body[class*="page-"] .v2-cta-contact h3,
body[class*="page-"] .v2-cta-contact p {
    color: #fff !important;
}
body[class*="page-"] .v2-cta-contact .btn-light {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ===== CTA sections (Round 3 から継承) ===== */
.v2-cta-recruit { background: #f8f9fa; padding: 3rem 0; margin-top: 3rem; }
.v2-cta-job { background: #f8f9fa; padding: 3rem 0; margin-top: 3rem; }

/* ===== 3-step / number-led blocks ===== */
.v2-num-block .v2-num {
    font-size: 4rem;
    line-height: 1;
    color: #dc3545;
    font-weight: bold;
}

/* ===== Service detail specific ===== */
.v2-tech-card {
    padding: 1.25rem;
    border: 1px solid #e9ecef;
    height: 100%;
}
.v2-tech-card h3 {
    font-size: 1.05rem;
    color: #dc3545;
    font-weight: bold;
}
.v2-tech-card .body { color: #495057; font-size: 0.9rem; }

/* ===== Voice card ===== */
.v2-voice-card {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    background: #fff;
    height: 100%;
}
.v2-voice-img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}
.v2-voice-tagline { color: #dc3545; font-weight: bold; }

/* ===== Apply form phone CTA ===== */
.v2-phone-cta {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ===== Privacy / anti-social long content ===== */
.v2-legal-section h2 {
    font-size: 1.4rem;
    color: #dc3545;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

/* ===== Breadcrumb（Round 18: full-width gray bar 確実化）===== */
.v2-breadcrumb-wrap {
    background: #e9ecef !important;
    border-top: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
    margin-top: 88px;
    padding: 0.7rem 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    display: block;
    position: relative;
    z-index: 1;
}
.v2-breadcrumb {
    width: 100%;
    padding: 0;
    display: block;
}
.v2-breadcrumb .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}
.v2-breadcrumb-list {
    list-style: none;
    padding-left: 0 !important;
    padding-right: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    font-size: 14.5px;
    line-height: 1.6;
    color: #495057;
    min-width: 0;
}
.v2-breadcrumb-item:first-child a {
    margin-left: 0;
}
.v2-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.v2-breadcrumb-item a {
    color: #0a4ea8;
    text-decoration: none;
    font-weight: 500;
}
.v2-breadcrumb-item a:hover {
    color: #dc3545;
    text-decoration: underline;
}
.v2-breadcrumb-item [aria-current="page"] {
    color: #111;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50ch;
    white-space: nowrap;
}
.v2-breadcrumb-sep {
    color: #6c757d;
    flex-shrink: 0;
}
@media (max-width: 575.98px) {
    .v2-breadcrumb-wrap { margin-top: 72px; padding: 0.5rem 0; }
    .v2-breadcrumb-list { font-size: 13px; gap: 0.3rem 0.4rem; }
    .v2-breadcrumb-item { gap: 0.4rem; }
    .v2-breadcrumb-item [aria-current="page"] { max-width: 22ch; }
}

/* ===== Contact CTA section (different from cta-recruit) ===== */
.v2-cta-contact {
    background: #f8f9fa;
    padding: 3rem 0;
    margin-top: 3rem;
}

/* ===== Footer styling (Round 7) ===== */
body[class*="page-"] footer {
    background: #1f2937;
    color: #d1d5db;
    margin-top: 4rem;
}
body[class*="page-"] footer strong.alpha {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-block;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dc3545;
    margin-bottom: 0.5rem;
}
body[class*="page-"] footer ul li {
    margin-bottom: 0.4rem;
}
body[class*="page-"] footer ul li a,
body[class*="page-"] footer a {
    color: #f1f5f9 !important;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.85;
    transition: color 0.2s;
}
body[class*="page-"] footer ul li a:hover,
body[class*="page-"] footer a:hover {
    color: #ffc107 !important;
    text-decoration: underline;
}
body[class*="page-"] footer address,
body[class*="page-"] footer .mt-3,
body[class*="page-"] footer .mt-2 {
    color: #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.8;
}
body[class*="page-"] footer i.ri-center {
    color: #ffc107;
}
body[class*="page-"] footer .small.text-muted {
    color: #9ca3af !important;
    border-top-color: #374151 !important;
}
body[class*="page-"] footer .cp {
    background: #111827;
    color: #9ca3af;
    border-top: 1px solid #374151;
    margin-top: 0;
}
@media (max-width: 575.98px) {
    body[class*="page-"] footer .col-sm-3 {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #374151;
    }
    body[class*="page-"] footer .col-sm-3:last-child {
        border-bottom: 0;
    }
    body[class*="page-"] footer strong.alpha {
        font-size: 1rem;
    }
}

/* ===== Hero image on text-only pages (no hero) — fallback visual band ===== */
body[class*="page-"] section.page-header:empty {
    display: none;
}
body[class*="page-"] section.page-header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

/* ===== page-header editorial redesign（Round 12）=====
   赤板+白英字 → 白地+左赤ボーダー+黒英字でエディトリアル品位 */
body[class*="page-"]:not(.page-index) section.page-header .red-label,
body[class*="page-"]:not(.page-index) section.page-header .display-4.red-label,
body[class*="page-"]:not(.page-index) section.page-header .v2-page-title {
    background: transparent !important;
    color: #111 !important;
    padding: 0.25rem 0 0.25rem 1.25rem !important;
    border-left: 4px solid #dc3545;
    display: inline-block !important;
    font-family: "Noto Sans JP", "Helvetica Neue", "Arial", sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em;
    line-height: 1.2;
}
body[class*="page-"]:not(.page-index) section.page-header h2 {
    color: #495057 !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    margin-top: 0.75rem !important;
}
