/* ============================================================
   数字だけ Roboto にするフォント（0〜9 の文字にだけ適用）
   ============================================================ */
@font-face {
    font-family: "Roboto Num";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2) format("woff2");
    unicode-range: U+0030-0039;
}

/* ============================================================
   変数
   ============================================================ */
:root {
    --color_navy: #14749A;
    --color_blue: #2498C5;
    --color_blue_light: #e3f1fa;
    --color_orange: #F69200;
    --color_orange_dark: #AC6702;
    --color_price: #bf6262;
    /* サービスカラー（TOPのサービスカード・各サービスページのテーマカラーで共通） */
    --color_gold: #A97812;
    --color_asbestos: #B23D40;
    --color_water: #4A9DB2;
    --color_soil: #8B6B52;
    --color_environment: #5B9270;
    --color_footer: #143a5c;
    --color_bg: #f2f7fb;
    --color_text: #26313A;
    --color_border: #cfe6f4;
    --font_base: "Noto Sans JP", sans-serif;
    --font_en: "Roboto", "Noto Sans JP", sans-serif;
    /* 数字だけ Roboto・日本語は Noto Sans JP（見出しなど数字と日本語が混ざる所に使う） */
    --font_num: "Roboto Num", "Noto Sans JP", sans-serif;
    --inner: 1300px;
    --bg_hex: url(../images/bg-hex.png);
}


/* ============================================================
   ベース（親テーマに上乗せ）
   ============================================================ */
body,
body:lang(ja) {
    color: var(--color_text);
    font-family: var(--font_base);
    font-weight: 400;
}


.u-accent {
    color: var(--theme, var(--color_blue));
    font-weight: bold;
}

/* 子テーマで作るパーツ内だけリセット（親テーマの本文スタイルには影響させない） */
.p-front,
.p-cta,
.nk-footer-company {
    line-height: 1.9;
}

.p-front *,
.p-front *::before,
.p-front *::after,
.p-cta *,
.p-cta *::before,
.p-cta *::after {
    box-sizing: border-box;
}

.p-front :where(h1, h2, h3, h4, p, ul, ol),
.p-cta :where(h2, p) {
    margin: 0;
    padding: 0;
    color: inherit;
    line-height: 1.5;
}

.p-front :where(p),
.p-cta :where(p) {
    line-height: inherit;
}

.p-front :where(ul, ol) {
    list-style: none;
}

/* リンクの初期色をリセット（:where で詳細度を下げ、ボタン等の色指定が優先されるようにする） */
:where(.p-front, .p-cta, .nk-footer-company) a,
:where(.p-front, .p-cta, .nk-footer-company) a:hover {
    color: inherit;
    text-decoration: none;
}

.l-inner {
    width: min(var(--inner), calc(100% - 40px));
    margin: 0 auto;
}

/* TOPページはコンテンツ幅の制限を外して全幅で組む */
.home .site-header {
    margin-bottom: 0;
}

.home .site-content {
    max-width: none;
    padding: 0;
}

.home .content-area {
    margin-bottom: 0;
}

/* アイコン */
.icon {
    display: inline-block;
    flex-shrink: 0;
}

.icon-arrow {
    width: 25px;
    height: 25px;
}

.icon-arrow-plain {
    width: 1em;
    height: auto;
    aspect-ratio: 19 / 14;
}

.icon-tel {
    width: auto;
    height: 1em;
}

/* ボタン */
.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 230px;
    height: 64px;
    padding: 0 30px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform .2s, box-shadow .2s;
}

.c-btn:hover {
    transform: translate(2px, 3px);
}

.c-btn--orange {
    color: #fff;
    background: var(--color_orange);
    box-shadow: 4px 5px 0 var(--color_orange_dark);
}

.c-btn--orange:hover {
    color: #fff;
    box-shadow: 1px 1px 0 var(--color_orange_dark);
}

.c-btn--orange .icon-arrow {
    color: #fff;
}

.c-btn--orange .icon-arrow__mark {
    fill: var(--color_orange);
}

.c-btn--outline {
    color: var(--theme, var(--color_blue));
    background: #fff;
    border: 1px solid var(--theme, var(--color_blue));
    box-shadow: 4px 5px 0 var(--theme_dark, var(--color_navy));
}

.c-btn--outline:hover {
    color: var(--theme, var(--color_blue));
    box-shadow: 1px 1px 0 var(--theme_dark, var(--color_navy));
}

.c-btn--outline .icon-arrow {
    color: var(--theme, var(--color_blue));
}


.c-btn--lg {
    min-width: 0;
    height: 80px;
    padding: 0 40px;
    font-size: 20px;
    white-space: nowrap;
}

/* ボタン内の矢印：右端から15px */
.c-btn {
    position: relative;
}

.c-btn:has(> .icon-arrow) {
    padding-left: 35px;
    padding-right: 35px;
}

.c-btn>.icon-arrow {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
}

/* 大きいボタンは文字と矢印がくっつかないよう右側を広げる */
.c-btn--lg:has(> .icon-arrow) {
    padding-right: 52px;
}

/* 枠線1pxの分を引いて外側から15pxにそろえる */
.c-btn--outline>.icon-arrow {
    right: 14px;
}

/* 見出し */
.c-en {
    color: var(--theme, var(--color_blue));
    font-family: var(--font_en);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.c-heading {
    margin-bottom: 64px;
    text-align: center;
}

.c-heading__title {
    margin-top: 16px;
    font-size: 36px;
    line-height: 1.65;
}

.c-heading__lead {
    margin-top: 24px;
    font-size: 16px;
}


.p-sec:has(.p-table__wrap) .c-heading__lead {
    max-width: 721px;
    margin-right: auto;
    margin-left: auto;
}

/* 表があるセクションのリード文：スマホ（768px以下）では手動改行（<br>）を消す */
@media (max-width: 768px) {
    .p-sec:has(.p-table__wrap) .c-heading__lead br {
        display: none;
    }
}

@media (max-width: 768px) {
    .c-btn {
        min-width: 0;
        height: 56px;
        padding: 0 24px;
        font-size: 15px;
    }

    .c-btn--lg {
        width: 100%;
        height: 68px;
        font-size: 17px;
    }

    .c-heading {
        margin-bottom: 40px;
    }

    .c-heading__title {
        font-size: 24px;
        letter-spacing: 0.04em;
    }

    .c-heading__lead {
        text-align: left;
    }
}

/* ============================================================
   ヘッダー（親テーマ .main-header を調整）
   ============================================================ */
.site-header {
    border-bottom: 0;
}

.main-header-original {
    box-shadow: 0 2px 16px rgba(29, 63, 140, .06);
}

/* ヘッダーの上下の余白（高さ）：PC 24px／タブレット・スマホ 20px */
.main-header {
    padding-top: 24px;
    padding-bottom: 24px;
}

@media screen and (max-width: 979px) {
    .main-header {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

.main-header-content {
    max-width: calc(var(--inner) + 80px);
}

.site-title {
    font-size: 22px;
    letter-spacing: 0.04em;
}

.site-title a,
.site-title a:hover {
    color: var(--color_navy);
}

/* ロゴ：横幅で大きさを決める（デザインでは PC で約326px）。メニューに押されて縮まないようにする */
@media screen and (min-width: 980px) {
    .site-branding {
        flex-shrink: 0;
    }
}

.site-logo img {
    width: 326px;
    max-width: none;
    height: auto;
}

/* 980〜1279px：メニューと並べるため少し小さく */
@media screen and (min-width: 980px) and (max-width: 1279px) {
    .site-logo img {
        width: 260px;
    }
}

/* スマホ・タブレット（ハンバーガーメニュー時） */
@media screen and (max-width: 979px) {
    .site-logo img {
        width: min(240px, 60vw);
    }
}

/* タブレット（600〜979px）：ロゴを大きめに。親テーマの縮小（scale 0.85〜0.925）もかけない */
@media screen and (min-width: 600px) and (max-width: 979px) {
    .site-logo img {
        width: 300px;
        transform: none;
    }
}

/* 電話番号・ボタン（メニュー末尾に追加した項目） */
.menu-item-tel a {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-family: var(--font_en);
    font-weight: 600;
    white-space: nowrap;
}

.menu-item-tel .icon-tel {
    width: 15px;
    height: 18px;
}

.menu-item-contact a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 26px !important;
    border-radius: 999px;
    color: #fff !important;
    background: var(--color_orange);
    box-shadow: 3px 4px 0 var(--color_orange_dark);
    font-weight: 700;
    line-height: 46px;
    transition: transform .2s, box-shadow .2s;
}

.menu-item-contact a:hover {
    transform: translate(2px, 3px);
    box-shadow: 1px 1px 0 var(--color_orange_dark);
}

/* PC */
@media screen and (min-width: 980px) {
    .main-header-content {
        flex-wrap: nowrap;
    }

    .main-navigation {
        font-size: 14px;
    }

    .main-navigation ul.menu,
    .main-navigation div.menu>ul {
        display: flex;
        align-items: center;
        letter-spacing: normal;
    }

    .main-navigation a {
        padding-left: 18px;
        padding-right: 18px;
        font-weight: 700;
    }

    .main-navigation a:hover {
        color: var(--color_blue);
    }

    .main-navigation .menu-item-tel {
        margin-left: 14px;
    }

    .main-navigation .menu-item-tel a {
        font-size: 24px;
    }

    .main-navigation .menu-item-tel a:hover {
        color: inherit;
    }

    .main-navigation ul.menu>li.menu-item-contact>a {
        margin-left: 14px;
        padding-right: 26px !important;
    }
}

/* PC（980〜1279px）：ロゴとメニューが1行に収まるよう詰める
   電話番号は受話器アイコンだけにする（タップで発信できるのはそのまま） */
@media screen and (min-width: 980px) and (max-width: 1279px) {
    .main-navigation a {
        padding-left: 10px;
        padding-right: 10px;
    }

    .main-navigation .menu-item-tel {
        margin-left: 4px;
    }

    .main-navigation .menu-item-tel a {
        font-size: 0 !important;
        gap: 0;
    }

    .main-navigation .menu-item-tel .icon-tel {
        width: 18px;
        height: 22px;
    }

    .main-navigation ul.menu>li.menu-item-contact>a {
        margin-left: 6px;
        padding: 0 20px !important;
    }
}

/* スマホ：ドロワー内 */
/* 項目の仕切り線（電話番号・お問い合わせボタンの前後には付けない） */
.drawer-navigation .menu>li {
    border-bottom: 1px solid #e3e8ec;
}

.drawer-navigation .menu>li:first-child {
    border-top: 1px solid #e3e8ec;
}

/* 子メニューは薄い点線で区切る */
.drawer-navigation .sub-menu li {
    border-top: 1px dashed #e3e8ec;
}

.drawer-navigation .menu-item-tel,
.drawer-navigation .menu-item-contact {
    border-bottom: 0 !important;
}

.drawer-navigation .menu-item-tel a {
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    font-size: 24px;
}

.drawer-navigation .menu-item-contact a {
    box-sizing: border-box;
    width: 100%;
    margin-top: 8px;
}

/* ============================================================
   TOP：メインビジュアル
   ============================================================ */
.p-hero {
    position: relative;
    padding: 70px 0 80px;
    overflow: hidden;
}

/* KVの六角形装飾（左上・右下） */
.p-hero::before,
.p-hero::after {
    content: "";
    position: absolute;
    width: min(37vw, 880px);
    aspect-ratio: 1000 / 528;
    background: var(--theme_hex, var(--bg_hex)) no-repeat center / contain;
    mix-blend-mode: multiply;
    pointer-events: none;
    opacity: 0.76;

}

.p-hero::before {
    top: 0;
    left: 0;
}

.p-hero::after {
    right: 0;
    bottom: 0;
    transform: scale(-1, -1);
}

.p-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 49%;
    align-items: center;
    gap: 60px;
}

.p-hero__title {
    font-size: clamp(40px, 5.4vw, 76px);
    font-weight: bold;
    letter-spacing: 0.06em;
    line-height: 1.32;
    color: #26313A;
}

.p-hero__lead {
    max-width: 600px;
    margin-top: 36px;
    font-size: 15px;
    line-height: 2.2;
}

.p-hero__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 40px;
}

.p-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px;
    margin-top: 44px;
}

.p-hero__stats li {
    display: flex;
    flex-direction: column;
}

.p-hero__stat-num {
    color: var(--color_blue);
    font-family: var(--font_en);
    font-size: 28px;
    font-weight: bold;
    line-height: 1.3;
    white-space: nowrap;
}

.p-hero__stat-label {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
}

.p-hero__img {
    aspect-ratio: 640 / 474;
    border-radius: 16px;
    overflow: hidden;
}

.p-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 料金バナー */
.p-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
    margin: 84px auto 0;
    padding: 18px 36px;
    border-radius: 10px;
    color: #fff;
    background: var(--color_price);
    box-shadow: 0 10px 24px rgba(191, 98, 98, .25);
    transition: transform .2s, box-shadow .2s;
}

.p-price:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(191, 98, 98, .35);
}

.p-price__label {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.p-price__badge {
    padding: 2px 12px;
    border-radius: 999px;
    color: var(--color_price);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.p-price__amount {
    margin-left: 6px;
    font-family: var(--font_en);
    font-size: 65px;
    font-weight: 500;
    line-height: 1;
}

.p-price__unit {
    display: flex;
    flex-direction: column;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.p-price__unit small {
    font-size: 16px;
    font-weight: 400;
}

.p-price .icon-arrow {
    width: 32px;
    height: 32px;
    margin-left: 20px;
    color: #fff;
}

.p-price .icon-arrow__mark {
    fill: var(--color_price);
}

/* タブレット・スマホ（1199px以下）：画像を上にして縦に並べる */
@media (max-width: 1199px) {
    .p-hero {
        padding: 40px 0 56px;
    }

    .p-hero__inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    /* 画像は横長（16:9）に切り抜く。高さは最大480pxまで */
    .p-hero__img {
        order: -1;
        width: 100%;
        max-height: 480px;
        aspect-ratio: 16 / 9;
    }

    /* 本文は幅を決めない（PC の最大600pxを外して、横幅いっぱいに） */
    .p-hero__lead {
        max-width: none;
    }

    /* 実績 → CTAボタンの順に並べ替え */
    .p-hero__body {
        display: flex;
        flex-direction: column;
    }

    .p-hero__stats {
        order: 3;
    }

    .p-hero__btns {
        order: 4;
    }
}

/* スマホ（599px以下）：画像は少し縦長に */
@media (max-width: 599px) {
    .p-hero__img {
        max-height: none;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 768px) {
    .p-hero__lead {
        margin-top: 24px;
        font-size: 14px;
        line-height: 2;
    }

    .p-hero__btns {
        gap: 16px;
        margin-top: 28px;
    }

    .p-hero__btns .c-btn {
        flex: 1 1 200px;
    }

    .p-hero__stats {
        gap: 16px 32px;
        margin-top: 32px;
    }

    .p-hero__stat-num {
        font-size: 22px;
    }

    .p-price {
        flex-wrap: wrap;
        gap: 4px 10px;
        width: 100%;
        margin-top: 48px;
        padding: 18px 20px;
    }

    .p-price__label {
        font-size: 16px;
    }

    .p-price__badge {
        font-size: 12px;
    }

    .p-price__amount {
        font-size: 44px;
    }

    .p-price__unit {
        font-size: 17px;
    }

    .p-price .icon-arrow {
        width: 26px;
        height: 26px;
        margin-left: 6px;
    }
}

/* ============================================================
   TOP：選ばれる理由
   ============================================================ */
.p-why {
    padding: 85px 0 100px;
    background: var(--color_bg);
}

.p-why__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.p-why__item {
    position: relative;
    padding: 66px 40px 50px;
    border: 3px solid var(--color_border);
    background: #fff;
    text-align: center;
    border-radius: 8px;
}

.p-why__num {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    place-items: center;
    width: 51px;
    height: 51px;
    border-radius: 50%;
    color: #fff;
    background: var(--color_blue);
    font-family: var(--font_en);
    font-size: 37px;
    font-weight: 400;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.p-why__title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.p-why__text {
    margin-top: 28px;
    font-size: 15px;
    line-height: 2;
    text-align: left;
}

@media (max-width: 1024px) {
    .p-why__list {
        grid-template-columns: 1fr;
        gap: 48px;
        max-width: 640px;
        margin: 0 auto;
    }
}

/* タブレット（600〜1024px）：カードの幅を制限しない（横幅いっぱいにして改行を減らす） */
@media (min-width: 600px) and (max-width: 1024px) {
    .p-why__list {
        max-width: none;
    }
}

/* タブレット（600〜1199px・画像の下に文章が来るとき）：見出しの <br> で改行しない（1行で表示） */
@media (min-width: 600px) and (max-width: 1199px) {
    .p-hero__title br {
        display: none;
    }
}

@media (max-width: 768px) {
    .p-why {
        padding: 64px 0 72px;
    }

    .p-why__item {
        padding: 48px 24px 32px;
    }

    .p-why__title {
        font-size: 19px;
    }

    .p-why__text {
        margin-top: 18px;
    }
}

/* ============================================================
   TOP：サービス
   ============================================================ */
.p-service {
    padding: 100px 0 100px;
}

.p-service__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.p-service__item {
    --card-color: var(--color_blue);
    display: flex;
}

.p-service__card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 30px 30px 105px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 -5px 0 var(--card-color), 0 4px 20px rgba(29, 63, 140, .1);
    backface-visibility: hidden;
    transition: transform .2s, box-shadow .2s;
}

.p-service__card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 -5px 0 var(--card-color), 0 10px 28px rgba(29, 63, 140, .15);
}

.p-service__icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border: 1px solid var(--card-color);
    border-radius: 10px;
}

.p-service__icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.p-service__category {
    margin-top: 22px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: normal;
    color: #828282;
}


.p-service__title {
    margin-top: 10px;
    color: var(--card-color);
    font-size: 24px;
    font-weight: 700;
}

.p-service__text {
    margin-top: 20px;
    font-size: 15px;
    line-height: 2;
}

.p-service__more {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 155px;
    height: 55px;
    padding-bottom: 5px;
    border-radius: 10px 0 0 0;
    color: #fff;
    background: var(--card-color);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .p-service__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .p-service {
        padding: 64px 0 72px;
    }

    .p-service__list {
        grid-template-columns: 1fr;
    }

    .p-service__card {
        padding: 24px 24px 85px;
    }

    .p-service__title {
        font-size: 21px;
    }

    .p-service__more {
        width: 140px;
        height: 49px;
    }
}

/* ============================================================
   お問い合わせエリア
   ============================================================ */
.has-sidebar .site-content {
    flex-wrap: wrap;
}

.p-cta {
    position: relative;
    flex: 0 0 100vw;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 70px 0;
    overflow: hidden;
    background: var(--cta_section_bg, var(--color_blue_light));
}

.p-cta::before,
.p-cta::after {
    content: "";
    position: absolute;
    width: 530px;
    aspect-ratio: 1000 / 528;
    background: var(--theme_hex, var(--bg_hex)) no-repeat center / contain;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.p-cta::before {
    top: 0;
    left: 0;
}

.p-cta::after {
    right: 0;
    bottom: 0;
    transform: scale(-1, -1);
}

.p-cta__box {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 32px;
    padding: 50px 46px;
    border-radius: 4px;
    color: #fff;
    background: var(--cta_bg, var(--color_blue));
}

.p-cta__head {
    flex-shrink: 0;
}

/* ボタンは縮ませない（文字と矢印が重なるのを防ぐ） */
.p-cta__box>.c-btn {
    flex-shrink: 0;
}

.p-cta__head .c-en {
    color: #fff;
    font-size: 20px;
    font-weight: 400;
}

.p-cta__title {
    margin-top: 6px;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.p-cta__text {
    font-size: 16px;
    line-height: 2;
    font-weight: 300;
}

.p-cta__tel {
    text-align: center;
}

.p-cta__tel-label {
    font-size: 15px;
    font-weight: 700;
}

.p-cta__tel-num {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font_en);
    font-size: 44px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.p-cta__tel-num:hover {
    color: #fff;
}

.p-cta__tel-num .icon-tel {
    width: 27px;
    height: 33px;
}

@media (max-width: 1200px) {
    .p-cta__box {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .p-cta__head,
    .p-cta__text {
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    .p-cta {
        padding: 48px 0;
    }

    .p-cta__box {
        padding: 36px 20px;
    }

    .p-cta__title {
        font-size: 26px;
    }

    .p-cta__text {
        text-align: center;
    }

    .p-cta__tel {
        flex-basis: 100%;
    }

    .p-cta__tel-num {
        font-size: 32px;
    }

    .p-cta__tel-num .icon-tel {
        width: 20px;
        height: 24px;
    }
}

/* ============================================================
   フッター（親テーマ .site-bottom を調整）
   ============================================================ */
.site-bottom {
    padding: 70px 0 60px;
    border-top: 0;
    color: #fff;
    background: var(--color_footer);
}

.site-bottom-content {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "company menu"
        "company info";
    gap: 24px 40px;
    max-width: calc(var(--inner) + 80px);
}

.site-bottom-content::before,
.site-bottom-content::after {
    display: none;
}

.site-bottom-content {
    text-align: left;
}

.nk-footer-company {
    grid-area: company;
}

.footer-menu {
    grid-area: menu;
    line-height: 1.6;
}

.site-bottom .site-info {
    grid-area: info;
    align-self: end;
    float: none;
    margin: 0;
    text-align: right;
}

.footer-navigation {
    float: none;
}

.footer-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

.footer-navigation li {
    margin: 0;
}

/* 1段目は横に並べ、上端をそろえる（子ページがある項目は縦に長くなるため） */
.footer-navigation .menu {
    align-items: flex-start;
}

/* 2段目（子ページ）は親の下に縦に並べる */
.footer-navigation .sub-menu {
    display: grid;
    gap: 6px;
    margin: 8px 0 0 !important;
    padding: 0;
    font-size: 13px;
}

.footer-navigation .sub-menu a {
    position: relative;
    display: inline-block;
    padding-left: 14px;
    font-weight: 500;
    opacity: .85;
}

/* 子ページの頭の「-」 */
.footer-navigation .sub-menu a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 1px;
    background: currentColor;
}

.footer-navigation a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.footer-navigation a:hover {
    color: #fff;
    opacity: .7;
}

.nk-footer-company__logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

/* フッターのロゴ（images/logo-white.svg / .png）：横幅で大きさを決める。縦横比はそのまま */
.nk-footer-company__logo img {
    display: block;
    width: 326px;
    max-width: 100%;
    height: auto;
}

.nk-footer-company__address {
    margin-top: 28px;
    font-size: 15px;
    font-style: normal;
    line-height: 2;
    opacity: .75;
}

/* 住所欄の電話番号リンク：まわりの文字と同じ見た目（色が変わらないように） */
.nk-footer-company__address a {
    color: inherit !important;
    text-decoration: none !important;
}

/* iPhone などが電話番号・住所を自動でリンクにした場合も、まわりの文字と同じ見た目にする */
a[x-apple-data-detectors] {
    color: inherit !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    text-decoration: none !important;
}

.site-bottom .site-copyright {
    margin: 0;
    font-size: 12px;
    opacity: .6;
}

/* タブレット・スマホ（1024px以下）：会社情報 → メニュー → コピーライトの縦積み */
@media (max-width: 1024px) {
    .site-bottom-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "company"
            "menu"
            "info";
    }

    .site-bottom .site-info {
        text-align: left;
    }
}

@media (max-width: 781px) {
    .site-bottom {
        padding: 48px 0 32px;
    }

    .nk-footer-company__logo {
        font-size: 18px;
    }

    .nk-footer-company__logo img {
        width: 240px;
    }
}

/* ヘッダーナビ：ホバー時に各サービスの色にする（子メニューも親と同じ色） */
@media screen and (min-width: 980px) {
    #menu-main-navigation>.menu-item-55 {
        --nav_hover: var(--color_asbestos);
    }

    /* アスベスト分析 */
    #menu-main-navigation>.menu-item-53 {
        --nav_hover: var(--color_water);
    }

    /* 水質分析 */
    #menu-main-navigation>.menu-item-51 {
        --nav_hover: var(--color_environment);
    }

    /* 環境測定 */
    #menu-main-navigation>.menu-item-52 {
        --nav_hover: var(--color_soil);
    }

    /* 土壌分析 */

    /* 親：ホバー中・子メニューを開いている間も色を保つ */
    #menu-main-navigation>li:not(.menu-item-tel):hover>a,
    /* 子・孫 */
    #menu-main-navigation .sub-menu a:hover {
        color: var(--nav_hover, var(--color_blue));
    }
}

/* ヘッダーナビ：表示中のページ（子ページを表示中はその親）をテーマカラーにする */
.main-navigation :is(.current-menu-item, .current-menu-ancestor, .current_page_item, .current_page_ancestor, .current-page-ancestor):not(.menu-item-tel, .menu-item-contact)>a,
.drawer-navigation :is(.current-menu-item, .current-menu-ancestor, .current_page_item, .current_page_ancestor, .current-page-ancestor):not(.menu-item-tel, .menu-item-contact)>a {
    color: var(--theme, var(--color_blue));
}

/* フッターナビ：表示中のページでも通常の文字色のまま（親テーマの色指定を打ち消す） */
.site-bottom .footer-navigation .menu-item>a {
    color: #fff;
}

/* Why us：見出しの高さを3カラムでそろえる */
.p-why__item {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 0;
}

.p-why__title {
    align-self: center;
    word-break: auto-phrase;
    /* 文節で折り返す（Chrome / Edge） */
    text-wrap: balance;
}

.p-why__title .u-accent {
    display: inline-block;
    /* 強調語の途中で改行しない */
}

@media (max-width: 1024px) {
    .p-why__item {
        grid-row: auto;
        grid-template-rows: auto;
    }
}

/* CTA：1201〜1440pxでは説明文を「お問い合わせ」の下に置く（横1列だと詰まってボタンが潰れるため） */
@media (min-width: 1201px) and (max-width: 1440px) {
    .p-cta__box {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-areas:
            "head tel btn"
            "text tel btn";
        align-items: end;
        column-gap: 32px;
        row-gap: 0;
    }

    .p-cta__head {
        grid-area: head;
    }

    .p-cta__text {
        grid-area: text;
        margin-top: 12px;
    }

    .p-cta__tel {
        grid-area: tel;
    }

    .p-cta__box>.c-btn {
        grid-area: btn;
    }
}

/* ============================================================
   下層：サービスページ（page-asbestos.php など。body に .nk-service が付く）
   ============================================================ */

/* テーマカラー（ページのテンプレートで決まる。inc/service.php）
   色は :root の --color_asbestos などを変えると、TOPのサービスカードと一緒に変わる。
   濃い色・薄い色・枠線色はテーマカラーから自動で作る。
   --theme_hex：KV・お問い合わせエリアの六角形装飾の画像（images/ に置いたファイル名を指定） */
.theme-asbestos {
    --theme: var(--color_asbestos);
    --theme_hex: url(../images/bg-hex-asbestos.png);
    --cta_bg: #C56265;
    /* お問い合わせエリアの箱の色 */
    --faq_a: #3f454a;
    /* よくある質問の「A」の色 */
}

.theme-water {
    --theme: var(--color_water);
    --theme_hex: url(../images/bg-hex-water.png);
    --cta_bg: #4A9DB2;
    /* お問い合わせエリアの箱の色 */
    --table_stripe: #EAEDEF;
    /* 表の1行おきの色 */
    --items_border: #79D1E8;
    /* 検査項目カードの枠線 */
    --faq_a: var(--color_orange);
    /* よくある質問の「A」の色 */
}

.theme-soil {
    --items_border: #BA885D;
    /* 検査プランのカードの枠線 */
    --theme: var(--color_soil);
    --theme_hex: url(../images/bg-hex-soil.png);
    --cta_bg: #8B6B52;
    /* お問い合わせエリアの箱の色 */
    --table_stripe: #EFECEA;
    /* 表の1行おきの色 */
    --faq_a: var(--color_orange);
    /* よくある質問の「A」の色 */
}

.theme-environment {
    --theme: var(--color_environment);
    --theme_hex: url(../images/bg-hex-environment.png);
    --cta_bg: #5B9270;
    /* お問い合わせエリアの箱の色 */
    --table_stripe: #ECEFEA;
    /* 表の1行おきの色 */
    --faq_a: var(--color_orange);
    /* よくある質問の「A」の色 */
}

.theme-asbestos,
.theme-water,
.theme-soil,
.theme-environment {
    --theme_dark: color-mix(in srgb, var(--theme) 72%, #000);
    --theme_light: color-mix(in srgb, var(--theme) 6%, #fff);
    --theme_border: color-mix(in srgb, var(--theme) 25%, #fff);
}

/* お問い合わせエリア：背景は白（六角形の装飾だけ表示） */
.nk-service {
    --cta_section_bg: #fff;
}

/* 親テーマのページタイトル帯（jumbotron）を出さない */
.nk-service .jumbotron {
    display: none;
}

/* 親テーマの余白・幅制限を外す（TOPページと同じ） */
.nk-service .site-header {
    margin-bottom: 0;
}

.nk-service .site-content {
    max-width: none;
    padding: 0;
}

.nk-service .content-area {
    margin-bottom: 0;
}

/* テーマカラーのボタン */
.c-btn--theme {
    min-width: 510px;
    border-radius: 6px;
    color: #fff;
    background: var(--theme, var(--color_blue));
    box-shadow: 3px 4px 0 var(--theme_dark, var(--color_navy));
    font-size: 21px;
    font-weight: 500;

}

.c-btn--theme:hover {
    color: #fff;
    box-shadow: 1px 1px 0 var(--theme_dark, var(--color_navy));
}

.c-btn--theme .icon-arrow {
    color: #fff;
}

.c-btn--theme .icon-arrow__mark {
    fill: var(--theme, var(--color_blue));
}

/* チェックリスト */
.c-checklist {
    display: grid;
    gap: 8px;
    margin-top: 20px !important;
}

.c-checklist li {
    position: relative;
    padding-left: 30px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.7;
}

.c-checklist li::before {
    content: "";
    position: absolute;
    top: .3em;
    left: 0;
    width: 20px;
    height: 20px;
    /* 線の丸＋チェック（形は SVG、色は --color_gold で指定） */
    background: var(--color_gold);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10.6' stroke-width='1.8'/%3E%3Cpath d='M7.4 12.4l3.2 3.2 6-6.6' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10.6' stroke-width='1.8'/%3E%3Cpath d='M7.4 12.4l3.2 3.2 6-6.6' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat center / contain;
}

.c-checklist .u-accent {
    color: var(--color_gold);
    font-weight: 500;
}

/* ---------- KV ---------- */
/* .nk-service .p-hero__body {
    padding-top: 110px;
} */

.p-hero--sub {
    padding-bottom: 110px;
}

@media (max-width: 1199px) {
    .p-hero--sub {
        padding-bottom: 56px;
    }
}

.p-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px !important;
}

.p-hero__badges li {
    padding: 4px 18px;
    border-radius: 999px;
    color: #fff;
    background: var(--theme, var(--color_blue));
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.p-hero--sub .p-hero__title {
    display: flex;
    flex-direction: column;
    font-size: clamp(30px, 3.9vw, 56px);
    /* 日本語：56px */
    letter-spacing: 0.04em;
}

/* 英数字：66px（日本語56pxに対する比率なので、画面幅に合わせて一緒に縮む） */
.p-hero--sub .p-hero__title .u-en {
    font-family: var(--font_en);
    font-size: calc(66em / 56);
    line-height: 1;
	    letter-spacing: -4%;
    margin-right: 8px;
}

.p-hero__price small {
    font-size: .6em;
}

.p-hero__name {
    color: var(--theme, var(--color_blue));
}


@media (max-width: 781px) {
    .nk-service .p-hero__body {
        padding-top: 0;
    }
}

/* ---------- セクション共通 ---------- */
.p-sec {
    padding: 80px 0;
}

.p-sec.is-bg {
    background: var(--theme_light, var(--color_bg));
}

.p-sec__btn {
    margin-top: 56px;
    text-align: center;
}

.p-sec__btn .c-btn {
    font-size: 21px;
}

/* ---------- 料金プラン ---------- */
/* 料金プランの色
   ・カード背景／枠線、人気プランの背景／枠線 … ページごとにカラーコードで指定（料金プランの最後）
   ・赤の部分（ラベル・金額・内容の文字・アイコンの丸）… ページのテーマカラーで自動
   ・納期ラベル・区切りの破線 … 全ページ共通（ここで指定） */
.p-plan {
    /* ページごとの指定がないときの初期値 */
    --plan_card_bg: #fff;
    --plan_card_border: var(--theme_border, var(--color_border));
    --plan_popular_bg: var(--theme_light, var(--color_bg));
    --plan_popular_border: var(--theme, var(--color_blue));
    /* 全ページ共通 */
    --plan_note_bg: #ffe6b7;
    /* 納期ラベル：背景 */
    --plan_note_text: #503400;
    /* 納期ラベル：文字 */
    --plan_feature_line: #bd54565b;
    /* 内容：区切りの破線 */

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.p-plan__item {
    position: relative;
    padding: 48px 32px 40px;
    border: 1px solid #E4A1A2;
    border-radius: 8px;
    background: var(--plan_card_bg);
    text-align: center;
}

.p-plan__item.is-popular {
    border: 2px solid var(--plan_popular_border);
    background: var(--plan_popular_bg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.p-plan__flag {
    position: absolute;
    top: 0;
    left: 50%;
    padding: 4px 22px;
    border-radius: 999px;
    color: #fff;
    background: var(--theme, var(--color_blue));
    box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}

.p-plan__name {
    font-size: 24px;
    font-weight: 700;
}

.p-plan__sub {
    margin-top: 10px !important;
    font-size: 14px;
}

.p-plan__price {
    margin-top: 20px !important;
    color: var(--theme, var(--color_blue));
    font-family: var(--font_en);
    font-size: clamp(44px, 4.3vw, 62px);
    font-weight: 500;
    letter-spacing: -4%;
    line-height: 1.1 !important;
    white-space: nowrap;
}

.p-plan__price small {
    font-family: var(--font_base);
    font-size: 24px;
    font-weight: 800;
    padding-left: 5px;
}

.p-plan__note {
    display: inline-block;
    margin-top: 16px !important;
    padding: 3px 18px;
    border-radius: 999px;
    background: var(--plan_note_bg);
    font-size: 15px;
    font-weight: 500;
    color: var(--plan_note_text);
}

/* 内容：ブロックごと中央に置き、行の間を破線で区切る */
.p-plan__features {
    display: grid;
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
    margin-top: 24px !important;
    text-align: left;
}

.p-plan__features li {
    position: relative;
    padding: 14px 24px 14px 55px;
    border-bottom: 2px dashed var(--plan_feature_line);
    color: var(--theme, var(--color_blue));
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;

}

.p-plan__features li:last-child {
    border-bottom: 0;
}

/* アイコン（未設定の行はチェックマーク） */
.p-plan__features li::before,
.p-plan__icon {
    position: absolute;
    top: 50%;
    left: 4px;
    width: 35px;
    height: 35px;
    border: 1px solid var(--theme, var(--color_blue));
    border-radius: 50%;
    background-color: #fff;
    transform: translateY(-50%);
}

.p-plan__features li::before {
    content: "";
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23999' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 13px;
}

.p-plan__features li.has-icon::before {
    content: none;
}

.p-plan__icon {
    display: grid;
    place-items: center;
}

.p-plan__icon img {
    width: 22px;
    height: 18px;
    object-fit: contain;
}

/* ===== 料金プランの色（ページ＝テーマカラーごとにカラーコードで指定） ===== */
/* アスベスト */
.theme-asbestos .p-plan {
    --plan_card_bg: #fffbfb;
    /* カード背景 */
    --plan_card_border: #E4A1A2;
    /* カード枠線 */
    --plan_popular_bg: #fffbfb;
    /* 人気プラン：背景 */
    --plan_popular_border: #e4a1a2;
    /* 人気プラン：枠線 */
}

/* 水質 */
.theme-water .p-plan {
    --plan_card_bg: #fbfdfd;
    /* カード背景 */
    --plan_card_border: #dbebf0;
    /* カード枠線 */
    --plan_popular_bg: #f4f9fa;
    /* 人気プラン：背景 */
    --plan_popular_border: #aed3dc;
    /* 人気プラン：枠線 */
}

/* 土壌 */
.theme-soil .p-plan {
    --plan_card_bg: #fdfcfc;
    /* カード背景 */
    --plan_card_border: #e8e1dc;
    /* カード枠線 */
    --plan_popular_bg: #f8f6f5;
    /* 人気プラン：背景 */
    --plan_popular_border: #cbbcb1;
    /* 人気プラン：枠線 */
}

/* 環境測定 */
.theme-environment .p-plan {
    --plan_card_bg: #fcfdfc;
    /* カード背景 */
    --plan_card_border: #dee9e2;
    /* カード枠線 */
    --plan_popular_bg: #f5f8f6;
    /* 人気プラン：背景 */
    --plan_popular_border: #b5cebf;
    /* 人気プラン：枠線 */
}

/* ---------- テキスト＋画像 ---------- */
.p-textimg {
    display: grid;
    grid-template-columns: 1fr 45%;
    align-items: center;
    gap: 60px;
}

.p-textimg.is-noimg {
    grid-template-columns: 1fr;
}

.p-textimg__title {
    margin-top: 8px !important;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.p-textimg__text {
    margin-top: 28px;
    font-size: 15px;
    line-height: 2.1;
}

.p-textimg__text p+p {
    margin-top: 1.2em;
}

.p-textimg__img img,
.p-features__img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ---------- 番号付きカード ---------- */
.p-numbered {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.p-numbered__item {
    position: relative;
    margin-top: 26px;
    padding: 56px 24px 40px;
    border: 2px solid color-mix(in srgb, var(--theme, var(--color_blue)) 65%, #fff);
    border-radius: 6px;
    background: #fff;
    text-align: center;
}

.p-numbered__num {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff;
    background: var(--theme, var(--color_blue));
    font-family: var(--font_en);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.p-numbered__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.7 !important;
}

/* 強調色はテーマカラーではなく金色 */
.p-numbered__title .u-accent {
    color: #A97812;
}

.p-numbered__text {
    margin-top: 24px !important;
    font-size: 15px;
    text-align: start;
    line-height: 2;
}

/* 単語（文節）の途中で折り返さない（Chrome / Edge。他のブラウザでは通常の折り返し） */
.p-numbered__title {
    word-break: auto-phrase;
    text-wrap: pretty;
}

/* ---------- カード（2列） ---------- */
.p-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 18px;
}

.p-cards__item {
    padding: 28px 28px 32px;
    border: 1px solid color-mix(in srgb, var(--theme, var(--color_blue)) 33%, #fff);
    border-left: 4px solid var(--theme, var(--color_blue));
    border-radius: 12px;
    background: #fff;
}

.p-cards__title {
    color: var(--theme, var(--color_blue));
    font-size: 24px;
    font-weight: 700;
}

.p-cards__text {
    margin-top: 20px !important;
    font-size: 15px;
    line-height: 2;
}

/* ---------- 特徴（左右交互） ---------- */
.p-features {
    display: grid;
    gap: 64px;
    padding: 64px 70px;
    border-radius: 8px;
    background: #fff;
}

.p-features__item {
    display: grid;
    grid-template-columns: 1fr 50%;
    align-items: center;
    gap: 56px;
}

.p-features__item:nth-child(even) .p-features__body {
    order: 2;
}

.p-features__num {
    color: var(--theme, var(--color_blue));
    font-family: var(--font_en);
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
}

.p-features__title {
    margin-top: 12px !important;
    color: var(--theme, var(--color_blue));
    font-size: 24px;
    font-weight: 700;
}

.p-features__text {
    margin-top: 16px !important;
    font-size: 15px;
    line-height: 2;
}

/* ---------- 利用の流れ ---------- */
.p-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 40px 0 !important;
    border-radius: 12px;
    background: #efefef;
}

.p-flow__item {
    position: relative;
    /* 左右の余白：列の幅の約20%（デザインの1300px幅で64px）。画面が狭いと一緒に小さくなる */
    padding: 0 clamp(24px, 19.7%, 64px);
    text-align: center;
}

/* ステップの区切り：白い縦線＋中央の「＞」 */
.p-flow__item+.p-flow__item::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: #fff;
}

.p-flow__item+.p-flow__item::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -6px;
    width: 14px;
    height: 14px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    background: #efefef;
    transform: translateY(-50%) rotate(45deg);
    /* ひし形の背景で縦線を隠し、右上2辺の白線で「＞」に見せる */
}

.p-flow__step {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    padding: 2px 16px;
    border-radius: 999px;
    color: var(--color_gold);
    background: #fff;
    font-family: var(--font_en);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.p-flow__step-num {
    font-size: 20px;
}

.p-flow__title {
    margin-top: 30px !important;
    color: var(--theme, var(--color_blue));
    font-size: 24px;
    font-weight: 700;
    /* 単語の途中で折り返さない（例：「結果報告・／改善アドバイス」）。好きな位置で改行したいときは見出しに <br> と入力 */
    word-break: auto-phrase;
}

.p-flow__text {
    margin-top: 15px !important;
    font-size: 13px;
    line-height: 2;
    text-wrap: pretty;
    text-align: left;
}

.p-flow__link {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 999px;
    color: #fff !important;
    background: var(--color_orange);
    box-shadow: 3px 4px 0 var(--color_orange_dark);
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s;
}

.p-flow__link:hover {
    transform: translate(2px, 3px);
    box-shadow: 1px 1px 0 var(--color_orange_dark);
}

/* ---------- よくある質問 ---------- */
.p-faq {
    display: grid;
    gap: 14px;
    max-width: 1000px;
    margin: 0 auto;
}

.p-faq__item {
    border: 1px solid color-mix(in srgb, var(--theme, var(--color_blue)) 60%, #fff);
    border-radius: 6px;
    background: #fff;
}

.p-faq__q {
    position: relative;
    display: block;
    padding: 20px 72px 20px 64px;
    color: var(--theme, var(--color_blue));
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
}

.p-faq__q::-webkit-details-marker {
    display: none;
}

.p-faq__q::before,
.p-faq__a::before {
    position: absolute;
    left: 24px;
    font-family: var(--font_en);
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
}

.p-faq__q::before {
    content: "Q";
    top: 20px;
    color: var(--theme, var(--color_blue));
}

/* 開閉の＋／−（2本の線で描く。開いているときは横線だけ） */
.p-faq__q::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 28px;
    width: 16px;
    height: 16px;
    background:
        linear-gradient(var(--theme, var(--color_blue)), var(--theme, var(--color_blue))) center / 100% 2px no-repeat,
        linear-gradient(var(--theme, var(--color_blue)), var(--theme, var(--color_blue))) center / 2px 100% no-repeat;
    transform: translateY(-50%);
}

.p-faq__item[open] .p-faq__q::after {
    background:
        linear-gradient(var(--theme, var(--color_blue)), var(--theme, var(--color_blue))) center / 100% 2px no-repeat;
}

/* 回答：区切り線は項目の幅いっぱい */
.p-faq__a {
    position: relative;
    padding: 22px 72px 26px 64px;
    border-top: 1px solid color-mix(in srgb, var(--theme, var(--color_blue)) 33%, #fff);
}

.p-faq__a::before {
    content: "A";
    top: 24px;
    /* 色はテーマカラーごとに --faq_a で指定（.theme-asbestos など） */
    color: var(--faq_a, #3f454a);
}

.p-faq__text {
    font-size: 16px;
    line-height: 1.9 !important;
}

/* 「※」で始まる行 */
.p-faq__note {
    margin-top: 8px !important;
    font-size: 13px;
    line-height: 1.9 !important;
}

/* お問い合わせボタン上の吹き出し（サービスページのみ） */
.p-cta__balloon {
    position: absolute;
    z-index: 1;
    bottom: calc(100% - 8px);
    left: 50%;
    padding: 2px 16px;
    border: 1px solid var(--color_orange);
    border-radius: 999px;
    color: #cc7900;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
    transform: translateX(-50%);
}

/* しっぽ（オレンジの三角の上に白い三角を重ねて枠線つきにする） */
.p-cta__balloon::before,
.p-cta__balloon::after {
    content: "";
    position: absolute;
    left: 50%;
    border-style: solid;
    border-color: transparent;
    transform: translateX(-50%);
}

.p-cta__balloon::before {
    top: 100%;
    border-width: 7px 6px 0;
    border-top-color: var(--color_orange);
}

.p-cta__balloon::after {
    top: calc(100% - 1px);
    border-width: 6px 5px 0;
    border-top-color: #fff;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {

    .p-plan,
    .p-numbered {
        grid-template-columns: repeat(2, 1fr);
    }

    .p-plan {
        gap: 32px 20px;
    }

    .p-textimg,
    .p-features__item {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .p-features__item:nth-child(even) .p-features__body {
        order: 0;
    }

    .p-features {
        padding: 48px 32px;
    }

    /* 利用の流れ：1024px以下は縦1列（ステップの間は横線＋下向きの「∨」） */
    .p-flow {
        grid-template-columns: 1fr;
        padding: 32px 24px !important;
        row-gap: 0;
    }

    .p-flow__item {
        padding: 0;
    }

    .p-flow__item+.p-flow__item {
        margin-top: 32px;
        padding-top: 32px;
    }

    .p-flow__item+.p-flow__item::before {
        content: "";
        top: 0;
        right: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: 2px;
    }

    .p-flow__item+.p-flow__item::after {
        content: "";
        top: -6px;
        left: 50%;
        transform: translateX(-50%) rotate(135deg);
    }
}

@media (max-width: 768px) {
    .p-sec {
        padding: 64px 0;
    }

    .p-hero--sub {
        padding: 40px 0 56px;
    }

    .c-btn--theme {
        min-width: 0;
        width: 100%;
    }

    .p-plan,
    .p-numbered,
    .p-cards {
        grid-template-columns: 1fr;
    }

    .p-plan__price {
        font-size: 48px;
    }

    .p-plan__price small {
        font-size: 20px;
    }

    .p-plan__note,
    .p-plan__features {
        width: 80%;
    }

    .p-textimg__title {
        font-size: 24px;
    }

    .p-features {
        gap: 48px;
        padding: 32px 20px;
    }

    .p-features__title {
        font-size: 20px;
    }

    .p-faq__q {
        padding: 16px 48px 16px 48px;
        font-size: 15px;
    }

    .p-faq__q::before,
    .p-faq__a::before {
        left: 16px;
        font-size: 22px;
    }

    .p-faq__q::before {
        top: 16px;
    }

    .p-faq__q::after {
        right: 16px;
        width: 14px;
        height: 14px;
    }

    .p-faq__a {
        padding: 18px 20px 20px 48px;
    }

    .p-faq__a::before {
        top: 20px;
    }

    .p-faq__text {
        font-size: 15px;
    }
}

/* ============================================================
   下層：追加パーツ（検査項目カード・お悩み・リンクボタン・タグ・囲みボックス・表・シンプルKV）
   ============================================================ */

/* 同じ背景のセクションが続くときは上の余白を詰める（1つのセクションのように見せる） */
.p-sec:not(.is-bg)+.p-sec:not(.is-bg),
.p-sec.is-bg+.p-sec.is-bg {
    padding-top: 0;
}

/* ページ内リンクで飛んだとき、追従ヘッダーに隠れないようにする */
.p-sec[id] {
    scroll-margin-top: 80px;
}

/* 見出し上のラベル（例：労働安全衛生法対応） */
.c-heading__badge {
    display: inline-block;
    margin-bottom: 4px !important;
    padding: 2px 18px;
    border-radius: 999px;
    color: #fff;
    background: var(--theme, var(--color_blue));
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

/* 横幅を少し狭くするパーツ（囲みボックス・表・丸ボタン） */
.p-notes,
.p-table:not(.is-split),
.p-table__note,
.p-tiles:not(:has(.has-img)) {
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

/* 共通：リスト・注記（囲みボックスの本文で使用） */
.c-list li {
    position: relative;
    padding-left: 1.5em;
    font-weight: 700;
}

.c-list--reject li::before {
    position: absolute;
    left: 0;
    color: var(--theme, var(--color_blue));
}

.c-list--reject li::before {
    content: "✕";
}

.c-note {
    font-size: 12px;
}

/* ---------- シンプルKV（パンくず＋タイトル） ---------- */
.p-pagehead {
    position: relative;
    padding: 34px 0 84px;
    border-bottom: 1px solid #e5e8ea;
    overflow: hidden;
}

.p-pagehead::before,
.p-pagehead::after {
    content: "";
    position: absolute;
    top: 0;
    width: min(30vw, 440px);
    aspect-ratio: 1000 / 528;
    background: var(--theme_hex, var(--bg_hex)) no-repeat center / contain;
    mix-blend-mode: multiply;
    opacity: .76;
    pointer-events: none;
}

.p-pagehead::before {
    left: 0;
}

.p-pagehead::after {
    right: 0;
    transform: scale(-1, 1);
}

.p-pagehead .l-inner {
    position: relative;
    z-index: 1;
}

.p-pagehead__crumbs {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
}

.p-pagehead__crumbs li+li::before {
    content: "/";
    margin: 0 8px;
}

.p-pagehead__crumbs a:hover {
    color: var(--theme, var(--color_blue));
}

.p-pagehead__title {
    margin-top: 20px !important;
    color: var(--theme, var(--color_blue));
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 700;
    letter-spacing: .04em;
}

/* ---------- 検査項目カード（3列） ---------- */
.p-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
}

/* 名前は上、説明文は下にそろえ、項目数はその間の真ん中に置く（デザインどおり） */
.p-items__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 231px;
    padding: 24px 20px 27px;
    /* 枠線の色はテーマごとに --items_border で指定できる（未指定ならテーマカラーから自動） */
    border: 1px solid var(--items_border, color-mix(in srgb, var(--theme, var(--color_blue)) 45%, #fff));
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.p-items__name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5 !important;
}

.p-items__count {
    margin-top: auto !important;
    padding-top: 6px;
    color: var(--theme, var(--color_blue));
    font-size: 18px;
    font-weight: 700;
    line-height: 1 !important;
}

/* 1行の高さ（2行のときの行の間隔）：大きい数字と小さい「項目」が混ざっても 53px に固定 */
.p-items__count .u-line {
    display: block;
    height: 53px;
    line-height: 1;
    text-align: end;
}

.p-items__count .u-big {
    padding: 0 3px;
    font-family: var(--font_en);
    font-size: 50px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -4%;
}

/* 数字がない行（例：PFOS・PFOA）は少し小さく */

.p-items__note {
    color: #535353;
    font-size: 14px;
}

.p-items__price {
    margin-top: 8px !important;
    color: #d4873a;
    font-family: var(--font_en);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.4 !important;
}

.p-items__price small {
    font-family: var(--font_base);
    font-size: 16px;
}

/* 説明文はカードの下にそろえる */
.p-items__text {
    margin-top: auto !important;
    padding-top: 8px;
    font-size: 14px;
}

/* ボタンはカードの一番下にそろえる */
.p-items__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 264px);
    height: 46px;
    margin-top: auto;
    padding: 0 44px;
    border-radius: 999px;
    color: #fff !important;
    background: var(--theme, var(--color_blue));
    font-size: 16px;
    font-weight: 700;
    transition: opacity .2s;
}

/* ボタンの上は最低20pxあける */
.p-items__item:has(> .p-items__btn)> :nth-last-child(2) {
    margin-bottom: 20px !important;
}

/* 金額と「詳しく見る」があるカード（土壌分析の検査プラン）：上から順に並べ、ボタンは一番下（デザインどおり） */
.p-items__item:has(> .p-items__btn) {
    min-height: 0;
    padding: 28px 20px 24px;
}

.p-items__item:has(> .p-items__btn) .p-items__name {
    font-size: 20px;
}

.p-items__item:has(> .p-items__btn) .p-items__count {
    margin-top: 19px !important;
    padding-top: 0;
}

.p-items__item:has(> .p-items__btn) .p-items__note {
    margin-top: 3px !important;
}

.p-items__btn:hover {
    opacity: .8;
}

.p-items__btn .icon-arrow,
.p-tiles__item .icon-arrow {
    position: absolute;
    top: 50%;
    right: 14px;
    color: #fff;
    transform: translateY(-50%);
}

.p-items__btn .icon-arrow__mark,
.p-tiles__item .icon-arrow__mark {
    fill: var(--theme, var(--color_blue));
}

/* ---------- お悩みリスト ---------- */
/* 1枚の幅は最低でも4列分（文字が長いものは広がる）。行は中央ぞろえ */
.p-checks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 11px;
}

.p-checks__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: calc((100% - 33px) / 4);
    min-height: 67px;
    padding: 10px 18px;
    border: 1px solid var(--theme, var(--color_blue));
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

/* チェックマーク：文字のすぐ左（文字と一緒に中央に置く） */
.p-checks__text {
    position: relative;
    padding-left: 26px;
    color: var(--theme, var(--color_blue));
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

/* チェックの画像：images/icon-check.png（36×30px を半分の大きさで表示） */
.p-checks__text::before {
    content: "";
    position: absolute;
    top: .75em;
    left: 0;
    width: 18px;
    height: 15px;
    background: url(../images/icon-check.png) no-repeat center / contain;
    transform: translateY(-50%);
}

.p-checks__sub {
    font-size: 13px;
    line-height: 1.5;
    color: #535353;
}

@media (max-width: 768px) {
	.p-checks__sub {    padding-left: 26px;}
}

/* ---------- リンクボタン（画像タイル／丸ボタン） ---------- */
.p-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.p-tiles__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff !important;
    font-weight: 700;
    text-align: center;
    transition: box-shadow .2s, opacity .2s;
}

/* 画像あり：写真の上に文字 */
.p-tiles__item.has-img {
    aspect-ratio: 310 / 162;
    padding: 12px 16px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--theme, var(--color_blue));
    font-size: clamp(20px, 1.9vw, 30px);
    line-height: 1.3;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.p-tiles__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.p-tiles__item.has-img::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: rgba(20, 30, 40, .35);
}

.p-tiles__item.has-img::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    /* ホバー時のテーマカラーの枠線（太さ） */
    border: 5px solid transparent;
    border-radius: inherit;
    transition: border-color .2s;
}

.p-tiles__label {
    position: relative;
    z-index: 2;
}

.p-tiles__item.has-img .icon-arrow {
    z-index: 2;
    top: auto;
    bottom: 10px;
    right: 10px;
    transform: none;
}

/* ページ内へ移動する写真ボタンの矢印（画像：images/icon-arrow-down-white.png） */
.p-tiles__arrow {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 10px;
    width: 24px;
    height: 24px;
}

a.p-tiles__item.has-img:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
}

a.p-tiles__item.has-img:hover::after {
    border-color: var(--theme, var(--color_blue));
}

a.p-tiles__item.has-img:hover .p-tiles__img {
    transform: scale(1.04);
}

/* 画像なし：テーマカラーの丸ボタン */
.p-tiles__item:not(.has-img) {
    min-height: 64px;
    padding: 8px 48px;
    border-radius: 999px;
    background: var(--theme, var(--color_blue));
    font-size: 18px;
    line-height: 1.4;
}

a.p-tiles__item:not(.has-img):hover {
    opacity: .8;
}

/* ---------- タグ（対応エリアなど） ---------- */
.p-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.p-badges li {
    min-width: 184px;
    padding: 6px 32px;
    border-radius: 999px;
    color: #fff;
    background: var(--theme, var(--color_blue));
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}

.p-badges__note {
    margin-top: 24px !important;
    font-size: 13px;
    text-align: center;
}

/* ---------- 囲みボックス ---------- */
.p-notes {
    display: grid;
    gap: 20px;
}

.p-notes__box {
    padding: 32px 40px;
    border: 1px solid color-mix(in srgb, var(--theme, var(--color_blue)) 40%, #fff);
    border-radius: 12px;
    background: #fff;
}

.p-notes__box.is-plain {
    border-color: #b9c9ad;
}

.p-notes__box.is-gray {
    border-color: #bcbcbc;
    background: #F5F4F2;
}

.p-notes__box.is-warning {
    border-left: 6px solid var(--theme, var(--color_blue));
}

/* 1つのボックスに段落が複数あるとき */
.p-notes__block+.p-notes__block {
    margin-top: 28px;
}

.p-notes__title {
    color: var(--theme, var(--color_blue));
    font-size: 22px;
    font-weight: 700;
}

.p-notes__box.is-warning .p-notes__title::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 6px;
    vertical-align: -.1em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 3 2 21h20z'/%3E%3Cpath d='M12 10v5M12 18v.01'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 3 2 21h20z'/%3E%3Cpath d='M12 10v5M12 18v.01'/%3E%3C/svg%3E") no-repeat center / contain;
}

.p-notes__rows {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 18px 0 0 !important;
    font-size: 15px;
    line-height: 1.8;
}

.p-notes__rows div {
    display: contents;
}

.p-notes__rows dt {
    font-weight: 700;
    margin: 0;
}

.p-notes__rows dt::after {
    content: "：";
    float: right;
    margin-left: 8px;
}

.p-notes__rows dd {
    margin: 0;
}

.p-notes__text {
    margin-top: 18px;
    font-size: 16px;
    line-height: 2;
}


.p-notes__title+.p-notes__text {
    margin-top: 14px;
}

.p-notes__text>*+* {
    margin-top: 12px !important;
}

/* 普通の文章は1行ずつ続けて表示（リスト・注記の前後だけ間をあける） */
.p-notes__text>p+p {
    margin-top: 0 !important;
}

.p-notes__text>p+p.c-note {
    margin-top: 8px !important;
}

.p-notes__text .c-list li {
    line-height: 1.9;
}

/* ---------- 表 ---------- */
.p-table-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 1000px;
    margin: 0 auto 18px;
}

.p-table-info__item {
    padding: 22px 28px;
    border: 1px solid #d5d8da;
    border-radius: 12px;
    background: #fff;
}

.p-table-info__label {
    color: var(--theme, var(--color_blue));
    font-size: 22px;
    font-weight: 700;
}

.p-table-info__text {
    margin-top: 8px !important;
    font-size: 14px;
}

.p-table.is-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 8px;
}

.p-table__wrap {
    border: 1px solid color-mix(in srgb, var(--theme, var(--color_blue)) 60%, #fff);
    border-radius: 12px;
    overflow: hidden;
}

.p-table__table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    background: #fff;
    font-size: 15px;
    line-height: 1.8;
}

.p-table__table th,
.p-table__table td {
    padding: 16px 24px;
    border: 0;
    text-align: left;
    vertical-align: middle;
}

.p-table__table th {
    color: #fff;
    background: var(--theme, var(--color_blue));
    font-weight: 500;
}

.p-table__table td {
    border-top: 1px solid color-mix(in srgb, var(--theme, var(--color_blue)) 35%, #fff);
}

/* 縞の色はテーマごとに --table_stripe で指定（.theme-environment など）。未指定ならテーマカラーから自動 */
.p-table__table tbody tr:nth-child(even) td {
    background: var(--table_stripe, color-mix(in srgb, var(--theme, var(--color_blue)) 6%, #f1f1f1));
}

.p-table__table .p-table__no {
    width: 4.5em;
    padding-right: 0;
    text-align: center;
}

.p-table.is-col2 .p-table__table :is(th, td):nth-last-child(2) {
    width: 35%;
}

.p-table.is-col3 .p-table__table :is(th, td):nth-last-child(-n+2) {
    width: 20%;
}

.p-table.is-split.is-col2 .p-table__table :is(th, td):nth-last-child(2) {
    width: auto;
}

.p-table.is-split.is-col2 .p-table__table :is(th, td):last-child {
    width: 38%;
}

.p-table__note {
    margin-top: 10px !important;
    font-size: 12px;
}

/* ---------- 利用の流れ：追加分 ---------- */
/* 背景色ありのセクションでは白い箱にする */
.p-sec.is-bg .p-flow.is-box {
    background: #fff;
}

.p-sec.is-bg .p-flow.is-box .p-flow__item+.p-flow__item::before {
    background: #ececec;
}

.p-sec.is-bg .p-flow.is-box .p-flow__item+.p-flow__item::after {
    border-color: #ececec;
    background: #fff;
}

.p-sec.is-bg .p-flow.is-box .p-flow__step {
    background: #f2f2f2;
}

/* 各ステップの「STEP・見出し・本文・ボタン」の高さを横でそろえる
   （見出しが2行のステップがあっても、本文の書き出し位置が同じになる） */
.p-flow.is-box {
    row-gap: 0;
}

.p-flow.is-box .p-flow__item {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
}

.p-flow.is-box .p-flow__step {
    grid-row: 1;
    justify-self: center;
}

.p-flow.is-box .p-flow__title {
    grid-row: 2;
}

.p-flow.is-box .p-flow__text {
    grid-row: 3;
}

.p-flow.is-box .p-flow__link {
    grid-row: 4;
    justify-self: center;
    align-self: start;
    margin-top: 20px;
}

/* 5ステップ以上は4つごとに別の箱（template-parts/service/flow.php）。
   下の箱はステップの数ぶんの幅（1つなら1列分）で左にそろえる。--cols はその箱のステップ数 */
@media (min-width: 1200px) {
    .p-flow.is-box {
        grid-template-columns: repeat(var(--cols, 4), 1fr);
        width: calc(100% * var(--cols, 4) / 4);
    }

    /* 見出しは本文より少し広く使う（左右の余白に24pxずつはみ出す。デザインどおり） */
    .p-flow.is-box .p-flow__title {
        margin-right: -24px;
        margin-left: -24px;
    }
}

/* 縦1列のとき（1199px以下）：本文は左ぞろえのまま、幅を抑えて中央に置く */
@media (max-width: 1199px) {
    .p-flow.is-box .p-flow__text {
        width: 100%;
        max-width: 560px;
        margin-right: auto;
        margin-left: auto;
    }
}

/* 1025〜1199px：4列だと本文の幅が狭くなりすぎるので、1024px以下と同じく縦1列にする */
@media (min-width: 1025px) and (max-width: 1199px) {
    .p-flow.is-box {
        grid-template-columns: 1fr;
        padding: 32px 24px !important;
    }

    .p-flow.is-box .p-flow__item {
        padding: 0;
    }

    .p-flow.is-box .p-flow__item+.p-flow__item {
        margin-top: 32px;
        padding-top: 32px;
    }

    .p-flow.is-box .p-flow__item+.p-flow__item::before {
        top: 0;
        right: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: 2px;
    }

    .p-flow.is-box .p-flow__item+.p-flow__item::after {
        top: -6px;
        left: 50%;
        transform: translateX(-50%) rotate(135deg);
    }
}

.p-flow.is-box+.p-flow.is-box {
    margin-top: 16px;
}

/* 縦1列のとき（1199px以下）：5つ目以降の箱を上の箱の続きとしてつなげる（間の線と「∨」も同じ） */
@media (max-width: 1199px) {
    .p-flow.is-box:has(+ .p-flow.is-box) {
        padding-bottom: 0 !important;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .p-flow.is-box+.p-flow.is-box {
        margin-top: 0;
        padding-top: 0 !important;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .p-flow.is-box+.p-flow.is-box .p-flow__item:first-child {
        margin-top: 32px;
        padding-top: 32px;
    }

    .p-flow.is-box+.p-flow.is-box .p-flow__item:first-child::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 2px;
        background: #fff;
    }

    .p-flow.is-box+.p-flow.is-box .p-flow__item:first-child::after {
        content: "";
        position: absolute;
        top: -6px;
        left: 50%;
        width: 14px;
        height: 14px;
        border-top: 2px solid #fff;
        border-right: 2px solid #fff;
        background: #efefef;
        transform: translateX(-50%) rotate(135deg);
    }

    /* 背景色ありのセクション（白い箱）のときの線の色 */
    .p-sec.is-bg .p-flow.is-box+.p-flow.is-box .p-flow__item:first-child::before {
        background: #ececec;
    }

    .p-sec.is-bg .p-flow.is-box+.p-flow.is-box .p-flow__item:first-child::after {
        border-color: #ececec;
        background: #fff;
    }
}

/* カード型（番号つき・矢印でつなぐ） */
.p-flow.is-card {
    display: flex;
    justify-content: center;
    gap: 86px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 !important;
    background: none;
}

.p-flow.is-card .p-flow__item {
    flex: 1;
    max-width: 516px;
    padding: 29px 32px 35px;
    border: 1px solid color-mix(in srgb, var(--theme, var(--color_blue)) 70%, #fff);
    border-radius: 6px;
    background: #fff;
}

.p-flow.is-card .p-flow__item+.p-flow__item::before {
    content: none;
}

/* カードの間の「→」 */
.p-flow.is-card .p-flow__item+.p-flow__item::after {
    content: "";
    top: 50%;
    left: -57px;
    /* カードの間（86px）の真ん中 */
    width: 28px;
    height: 20px;
    border: 0;
    background: var(--theme, var(--color_blue));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h18M13 1.5 20 8l-7 6.5'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h18M13 1.5 20 8l-7 6.5'/%3E%3C/svg%3E") no-repeat center / contain;
    transform: translateY(-50%);
}

.p-flow__num {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background: var(--theme, var(--color_blue));
    font-family: var(--font_en);
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
}

.p-flow.is-card .p-flow__title {
    margin-top: 36px !important;
    font-size: 24px;
}

/* 本文はカードより狭い幅（約320px）で中央に。各行も中央ぞろえ（デザインどおり） */
.p-flow.is-card .p-flow__text {
    max-width: 320px;
    margin: 30px auto 0 !important;
    font-size: 15px;
    line-height: 2;
    text-align: center;
}

/* ダウンロードボタン */
.p-downloads {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 58px;
    margin-top: 61px !important;
}

.c-btn--file {
    width: 480px;
    min-width: 0;
    height: 70px;
    padding: 0 60px 0 40px !important;
    border-radius: 999px;
    font-size: 20px;
    /* 影：デザインに合わせて深めに */
    box-shadow: 7px 8px 0 color-mix(in srgb, var(--theme, var(--color_blue)) 58%, #000);
}

.c-btn--file:hover {
    box-shadow: 2px 2px 0 color-mix(in srgb, var(--theme, var(--color_blue)) 58%, #000);
}

.c-btn--file>.icon-arrow {
    width: 26px;
    height: 26px;
    right: 22px;
}

/* PDF・Excel のアイコン画像（images/icon-pdf.png・icon-excel.png）／それ以外は書類の SVG */
.c-btn--file .icon-file {
    width: 21px;
    height: auto;
    aspect-ratio: 44 / 56;
}

/* ---------- 追加パーツのレスポンシブ ---------- */
@media (max-width: 1024px) {
    .p-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .p-tiles {
        grid-template-columns: repeat(2, 1fr);
    }

    .p-table.is-split {
        grid-template-columns: 1fr;
    }

    .p-flow.is-card {
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }

    .p-flow.is-card .p-flow__item {
        width: 100%;
        margin: 0;
        padding: 28px 24px 32px;
    }

    .p-flow.is-card .p-flow__item+.p-flow__item::after {
        top: -32px;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }
}

@media (max-width: 768px) {
    .c-heading__badge {
        font-size: 13px;
    }

    .p-pagehead {
        padding: 16px 0 28px;
    }

    .p-items {
        grid-template-columns: 1fr;
    }

    .p-checks {
        flex-direction: column;
        gap: 10px;
    }

    .p-checks__item {
        min-width: 0;
        min-height: 60px;
        padding: 10px 16px;
		text-align: start;
		align-items: start;
    }

    .p-checks__text {
        font-size: 16px;
    }

    .p-tiles__item:not(.has-img) {
        min-height: 54px;
        padding: 6px 40px;
        font-size: 15px;
    }

    .p-badges li {
        min-width: 0;
        padding: 4px 24px;
        font-size: 18px;
    }

    .p-notes__box {
        padding: 24px 20px;
    }

    .p-notes__title {
        font-size: 18px;
    }

    .p-notes__rows {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .p-notes__rows dt::after {
        content: none;
    }

    .p-notes__rows dd {
        margin-bottom: 8px;
    }

    .p-table-info {
        grid-template-columns: 1fr;
    }

    .p-table-info__label {
        font-size: 18px;
    }

    /* 表は横スクロール */
    .p-table__wrap {
        overflow-x: auto;
    }

    .p-table__table {
        min-width: 520px;
        font-size: 13px;
    }

    .p-table__table th,
    .p-table__table td {
        padding: 12px 14px;
    }

    /* ダウンロードボタンは縦に並べて同じ幅（画面幅いっぱい） */
    .p-downloads {
        flex-direction: column;
        align-items: stretch;
        margin-top: 40px !important;
    }

    .c-btn--file {
        width: 100%;
        height: 60px;
        padding: 0 52px 0 24px !important;
        font-size: 16px;
    }
}

/* ============================================================
   お問い合わせページ（page-contact.php）＋ Contact Form 7
   フォームの HTML は wp/cf7-import/form.txt
   ============================================================ */
.p-contact {
    padding-top: 64px;
}

.p-contact__tel,
.p-contact__body {
    max-width: 880px;
    margin-right: auto;
    margin-left: auto;
}

/* 電話のご案内 */
.p-contact__tel {
    margin-bottom: 56px;
    padding: 28px 24px;
    border-radius: 12px;
    background: var(--color_bg);
    text-align: center;
}

.p-contact__tel-label {
    font-size: 15px;
    font-weight: 700;
}

.p-contact__tel-num {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--color_navy) !important;
    font-family: var(--font_en);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.p-contact__tel-num .icon-tel {
    width: 22px;
    height: 27px;
}

.p-contact__tel-note {
    margin-top: 4px !important;
    font-size: 13px;
}

/* 本文（フォームの上の説明文） */
.p-contact__body>p {
    margin-bottom: 32px !important;
    font-size: 15px;
    line-height: 2;
}

/* ---------- フォーム ---------- */
.c-form__row {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: start;
    gap: 12px 32px;
    padding: 24px 0;
    border-top: 1px solid #dfe6ea;
}

/* 最後の項目の下にも線 */
.c-form__row:not(:has(~ .c-form__row)) {
    border-bottom: 1px solid #dfe6ea;
}

.c-form__label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

/* 必須・任意のラベル */
.c-form__badge {
    flex-shrink: 0;
    padding: 2px 10px;
    border-radius: 3px;
    color: #fff;
    background: #8a949b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}

.c-form__badge.is-required {
    background: #d0453a;
}

/* 入力欄 */
.c-form .wpcf7-form-control-wrap {
    display: block;
}

.c-form input[type="text"],
.c-form input[type="email"],
.c-form input[type="tel"],
.c-form select,
.c-form textarea {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #cfd8de;
    border-radius: 6px;
    color: var(--color_text);
    background-color: #fff;
    font-family: inherit;
    font-size: 16px;
    /* 16px 未満だと iPhone で入力時に画面が拡大される */
    line-height: 1.6;
    transition: border-color .2s, box-shadow .2s;
}

.c-form textarea {
    min-height: 220px;
    resize: vertical;
}

/* セレクト：右端に「∨」 */
.c-form select {
    padding-right: 44px;
    -webkit-appearance: none;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2326313A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
    cursor: pointer;
}

.c-form ::placeholder {
    color: #a3adb4;
}

.c-form input:focus,
.c-form select:focus,
.c-form textarea:focus {
    border-color: var(--color_blue);
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color_blue) 20%, transparent);
}

/* 入力エラー */
.c-form .wpcf7-not-valid {
    border-color: #d0453a;
    background-color: #fff8f7;
}

.c-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    color: #d0453a;
    font-size: 13px;
    font-weight: 700;
}

/* 同意のチェック */
.c-form__agree {
    margin-top: 40px;
    text-align: center;
}

.c-form__agree .wpcf7-list-item {
    margin: 0;
}

.c-form__agree label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    cursor: pointer;
}

.c-form__agree input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--color_blue);
}

.c-form__agree a {
    color: var(--color_blue) !important;
    text-decoration: underline !important;
}

/* 送信ボタン（オレンジのボタンと同じ見た目） */
.c-form__submit {
    position: relative;
    margin-top: 32px;
    text-align: center;
}

.c-form .wpcf7-submit {
    min-width: 300px;
    height: 64px;
    padding: 0 40px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--color_orange);
    box-shadow: 4px 5px 0 var(--color_orange_dark);
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.c-form .wpcf7-submit:hover {
    transform: translate(2px, 3px);
    box-shadow: 1px 1px 0 var(--color_orange_dark);
}

/* 同意にチェックが入るまでは押せない（Contact Form 7 の標準動作） */
.c-form .wpcf7-submit:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: 4px 5px 0 var(--color_orange_dark);
}

/* 送信中のくるくる：ボタンの右に置く（ボタンの位置がずれないように） */
.c-form__submit .wpcf7-spinner {
    position: absolute;
    top: 50%;
    margin: -12px 0 0 16px;
}

/* 送信後のメッセージ */
.p-contact .wpcf7-response-output {
    margin: 32px 0 0 !important;
    padding: 16px 20px !important;
    border: 2px solid #8a949b !important;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

/* 送信成功のメッセージは出さない（すぐ完了ページへ移動するため。一瞬見えるのを防ぐ）
   送信前・送信中も、メッセージがないので空の枠を出さない */
.p-contact .wpcf7 form:is(.init, .submitting, .resetting, .sent) .wpcf7-response-output {
    display: none !important;
}

.p-contact .wpcf7 form.invalid .wpcf7-response-output,
.p-contact .wpcf7 form.unaccepted .wpcf7-response-output,
.p-contact .wpcf7 form.failed .wpcf7-response-output,
.p-contact .wpcf7 form.spam .wpcf7-response-output {
    border-color: #d0453a !important;
    color: #b8392f;
    background: #fff8f7;
}

@media (max-width: 768px) {
    .p-contact {
        padding-top: 40px;
    }

    .p-contact__tel {
        margin-bottom: 40px;
    }

    .p-contact__tel-num {
        font-size: 28px;
    }

    .c-form__row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px 0;
    }

    .c-form__label {
        padding-top: 0;
    }

    .c-form .wpcf7-submit {
        width: 100%;
        min-width: 0;
    }
}

/* 郵便番号（〒＋短い入力欄＋注記） */
.c-form__field--zip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.c-form__zip-mark {
    font-size: 16px;
    font-weight: 700;
}

.c-form__field--zip .wpcf7-form-control-wrap {
    width: 200px;
}

.c-form__note {
    color: #6b767d;
    font-size: 13px;
}

/* 個人情報の取り扱い（同意チェックの上の枠） */
.c-form__policy {
    margin-top: 40px;
}

.c-form__policy-title {
    font-size: 15px;
    font-weight: 700;
}

.c-form__policy-body {
    max-height: 200px;
    margin-top: 10px;
    padding: 20px 24px;
    overflow-y: auto;
    border: 1px solid #dfe6ea;
    border-radius: 8px;
    background: var(--color_bg);
    font-size: 14px;
    line-height: 1.9;
}

.c-form__policy+.c-form__agree {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .c-form__field--zip .wpcf7-form-control-wrap {
        width: 160px;
    }

    .c-form__note {
        flex-basis: 100%;
    }

    .c-form__policy-body {
        padding: 16px;
    }
}

/* ---------- 確認画面・完了画面（js/contact.js / page-thanks.php） ---------- */
/* 表示する画面の切り替え（.c-form の data-step） */
.c-form__confirm {
    display: none;
}

.c-form[data-step="confirm"] .c-form__input {
    display: none;
}

.c-form[data-step="confirm"] .c-form__confirm {
    display: block;
}

/* 入力 → 確認 → 完了 */
.c-form__steps {
    display: flex;
    justify-content: center;
    margin: 0 auto 48px !important;
    max-width: 560px;
    counter-reset: step;
}

.c-form__step {
    position: relative;
    flex: 1;
    padding-top: 44px;
    color: #a3adb4;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    counter-increment: step;
}

/* 番号の丸 */
.c-form__step::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: #cfd8de;
    font-family: var(--font_en);
    font-size: 16px;
    transform: translateX(-50%);
}

/* 丸どうしをつなぐ線 */
.c-form__step+.c-form__step::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: #dfe6ea;
}

/* 今の画面（入力中は1つ目、確認中は2つ目、完了ページは3つ目まで）を青に */
.c-form[data-step="input"] .c-form__step.is-input,
.c-form[data-step="confirm"] .c-form__step:is(.is-input, .is-confirm),
.c-form__steps.is-done .c-form__step {
    color: var(--color_blue);
}

.c-form[data-step="input"] .c-form__step.is-input::before,
.c-form[data-step="confirm"] .c-form__step:is(.is-input, .is-confirm)::before,
.c-form__steps.is-done .c-form__step::before,
.c-form[data-step="confirm"] .c-form__step.is-confirm::after,
.c-form__steps.is-done .c-form__step::after {
    background: var(--color_blue);
}

/* 確認画面の一覧 */
.c-form__confirm-lead {
    margin-bottom: 24px !important;
    font-size: 15px;
    text-align: center;
}

.c-form__confirm-list {
    display: grid;
    grid-template-columns: 240px 1fr;
    margin: 0 !important;
    border-top: 1px solid #dfe6ea;
}

.c-form__confirm-list dt,
.c-form__confirm-list dd {
    margin: 0;
    padding: 20px 0;
    border-bottom: 1px solid #dfe6ea;
    font-size: 15px;
    line-height: 1.8;
}

.c-form__confirm-list dt {
    font-weight: 700;
}

.c-form__confirm-list dd {
    padding-left: 32px;
    white-space: pre-wrap;
    /* 改行をそのまま表示 */
    overflow-wrap: anywhere;
}

.c-form__confirm-list dd.is-empty {
    color: #a3adb4;
}

/* ボタンの並び（確認する／戻る＋送信する） */
.c-form__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 32px;
    margin-top: 40px;
}

.c-form__buttons .c-form__submit {
    margin-top: 0;
}

.c-form__btn {
    min-width: 300px;
    height: 64px;
    padding: 0 40px;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.c-form__btn:hover {
    transform: translate(2px, 3px);
}

/* 確認する：オレンジ */
.c-form__btn--next {
    color: #fff;
    background: var(--color_orange);
    box-shadow: 4px 5px 0 var(--color_orange_dark);
}

.c-form__btn--next:hover {
    box-shadow: 1px 1px 0 var(--color_orange_dark);
}

/* 戻る：白に枠線 */
.c-form__btn--back {
    min-width: 200px;
    border: 1px solid #b7c2c9;
    color: var(--color_text);
    background: #fff;
    box-shadow: 4px 5px 0 #cfd8de;
}

.c-form__btn--back:hover {
    box-shadow: 1px 1px 0 #cfd8de;
}

/* マウスを乗せた時・押した時も色は変えない
   （親テーマが button / input[type="submit"] の hover・focus を灰色 #555 にしているので打ち消す） */
.c-form button.c-form__btn--next,
.c-form button.c-form__btn--next:is(:hover, :focus, :active),
.c-form input.wpcf7-submit,
.c-form input.wpcf7-submit:is(:hover, :focus, :active) {
    color: #fff;
    background-color: var(--color_orange);
}

.c-form button.c-form__btn--back,
.c-form button.c-form__btn--back:is(:hover, :focus, :active) {
    color: var(--color_text);
    background-color: #fff;
}

/* キーボード操作のときだけ枠線で位置を示す */
.c-form :is(button.c-form__btn, input.wpcf7-submit):focus {
    outline: 0;
}

.c-form :is(button.c-form__btn, input.wpcf7-submit):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color_blue) 60%, transparent);
    outline-offset: 3px;
}

/* 同意チェックのエラー表示 */
.c-form__agree .c-form__error {
    margin-top: 8px;
}

/* ---------- 完了ページ ---------- */
.p-thanks__body {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.p-thanks__title {
    color: var(--color_navy);
    font-size: 28px;
    font-weight: 700;
}

.p-thanks__body>p {
    margin-top: 24px !important;
    font-size: 15px;
    line-height: 2;
}

.p-thanks__tel {
    display: inline-block;
    margin-top: 40px;
    padding: 20px 40px;
    border-radius: 12px;
    background: var(--color_bg);
}

@media (max-width: 768px) {
    .c-form__steps {
        margin-bottom: 32px !important;
    }

    .c-form__confirm-list {
        grid-template-columns: 1fr;
    }

    .c-form__confirm-list dt {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .c-form__confirm-list dd {
        padding: 6px 0 16px;
    }

    .c-form__buttons {
        flex-direction: column-reverse;
        gap: 16px;
    }

    .c-form__btn,
    .c-form__buttons .c-form__submit {
        width: 100%;
        min-width: 0;
    }

    .p-thanks__title {
        font-size: 22px;
    }

    .p-thanks__body>p {
        text-align: left;
    }

    .p-thanks__tel {
        padding: 20px;
    }
}

/* ============================================================
   スマホ（768px以下）：PCで大きい文字・ボタンを小さくする
   （PC の指定はそれぞれのパーツのところ。ここはスマホ用の上書きだけ）
   ============================================================ */
@media (max-width: 768px) {

    /* 英字見出し（Plan・Flow など）*/
    .c-en,
    .p-cta__head .c-en {
        font-size: 16px;
    }

    /* ボタン */
    .c-btn--theme,
    .p-sec__btn .c-btn {
        font-size: 16px;
    }

    .c-form__btn,
    .c-form .wpcf7-submit {
        height: 56px;
        font-size: 16px;
    }

    /* カード・見出し */
    .p-cards__title,
    .p-numbered__title,
    .p-plan__name {
        font-size: 19px;
    }

    .p-numbered__num {
        font-size: 24px;
    }

    .p-features__num {
        font-size: 32px;
    }

    .p-why__num {
        font-size: 30px;
    }

    /* 検査項目カード */
    .p-items__name {
        font-size: 20px;
    }

    .p-items__item:has(> .p-items__btn) .p-items__name {
        font-size: 18px;
    }

    .p-items__count .u-big {
        font-size: 42px;
    }


    .p-items__count .u-line {
        height: 46px;
    }

    .p-items__price {
        font-size: 28px;
    }

    /* 利用の流れ */
    .p-flow__title,
    .p-flow.is-card .p-flow__title {
        font-size: 20px;
    }

    .p-flow__step-num {
        font-size: 18px;
    }

    .p-flow__num {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    /* ロゴ画像がないときのサイト名 */
    .site-title {
        font-size: 18px;
    }
}

/* ---------- スマホ表示の調整 ---------- */
@media (max-width: 768px) {
    /* 利用の流れ：見出し下のリード文を中央寄せ */
    .p-sec:has(.p-flow) .c-heading__lead {
        text-align: center;
    }

    /* 利用の流れ：各ステップの説明文は左ぞろえ（4ページ共通）。
       行の長さがそろうよう、PCの text-wrap: pretty は解除して行末まで詰める */
    .p-flow__text,
    .p-flow.is-card .p-flow__text {
        text-align: left;
        text-wrap: wrap;
    }

    /* 分析依頼書のダウンロードボタン：文字が折り返さないように調整 */
    .c-btn--file {
        height: auto;
        min-height: 64px;
        gap: 10px;
        padding: 12px 48px 12px 20px !important;
        font-size: clamp(13px, 4vw, 16px);
        line-height: 1.4;
        white-space: nowrap;
    }

    .c-btn--file>.icon-arrow {
        width: 22px;
        height: 22px;
        right: 14px;
    }

    /* 対応エリア：2カラム */
    .p-badges {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .p-badges li {
        padding: 4px 12px;
    }

    /* 水質分析「お客様の水質検査に関するお悩みにお応えします」の見出しを小さく */
    .p-sec:has(.p-checks) .c-heading__title {
        font-size: 19px;
        text-wrap: balance;
    }

    /* 土壌分析の検査プラン詳細の見出し：全角スペースの位置で改行する */
    [id^="test"] .c-heading__title {
        word-break: keep-all;
        overflow-wrap: anywhere;
    }
}

/* ---------- ヘッダーのロゴサイズ（タブレット・スマホで少し大きく） ---------- */
@media screen and (max-width: 979px) {
    .site-logo img {
        width: min(300px, 78vw);
    }
}

@media screen and (min-width: 600px) and (max-width: 979px) {
    .site-logo img {
        width: 340px;
    }
}

/* ---------- ヘッダーの電話アイコン（980〜1279px）：丸い枠で囲む ---------- */
@media screen and (min-width: 980px) and (max-width: 1279px) {
    .main-navigation .menu-item-tel a {
        box-sizing: border-box;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin-right: 6px;
        /* お問い合わせボタンと高さの中心をそろえる */
        position: relative;
        top: 4px;
        padding: 0 !important;
        border: 2px solid currentColor;
        border-radius: 50%;
        transition: background-color 0.2s;
    }

    .main-navigation .menu-item-tel a:hover {
        background-color: rgba(38, 49, 58, 0.06);
    }
}

/* ---------- ヘッダー：ロゴと電話番号の縦位置をナビにそろえる ---------- */
/* ロゴ画像を行の高さの影響を受けないブロックにして、ヘッダーの中央に置く */
.site-branding {
    align-self: center;
}

.site-logo,
.site-logo a {
    line-height: 0;
}

.site-logo a,
.site-logo img {
    display: block;
}

/* 電話番号（1280px以上）：数字が少し上に見えるので下げる */
@media screen and (min-width: 1280px) {
    .main-navigation .menu-item-tel a {
        position: relative;
        top: 3px;
    }
}

/* ---------- スクロール時のヘッダー（タブレット・スマホ）：ロゴを一番上の時と同じ大きさにする ---------- */
@media screen and (max-width: 979px) {
    .main-header-clone .site-logo {
        transform: none;
    }
}

/* ---------- KVの背景の六角形（擬似要素）：スマホで大きく ---------- */
@media (max-width: 768px) {
    .p-hero::before,
    .p-hero::after {
        width: 80vw;
    }
}

/* ---------- CONTACTの背景の六角形（擬似要素）：KVと同じ大きさにそろえる ---------- */
.p-cta::before,
.p-cta::after {
    width: min(37vw, 880px);
}

@media (max-width: 768px) {
    .p-cta::before,
    .p-cta::after {
        width: 80vw;
    }
}

/* ---------- KVの実績（3つ）：スマホでも1列に収める（画面幅に合わせて文字サイズを可変） ---------- */
@media (max-width: 768px) {
    .p-hero__stats {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0 3vw;
    }

    .p-hero__stats>li {
        flex: 0 1 auto;
        min-width: 0;
    }

    .p-hero__stat-num {
        font-size: min(4.3vw, 22px);
        white-space: nowrap;
    }

    .p-hero__stat-label {
        font-size: min(3.2vw, 14px);
        white-space: nowrap;
    }
}

/* ---------- KVのアスベスト定性分析の価格ボックス：スマホでもPCと同じく矢印を右端に置く ---------- */
@media (max-width: 768px) {
    a.p-price {
        position: relative;
        padding-left: 44px;
        padding-right: 44px;
    }

    a.p-price>.icon-arrow {
        position: absolute;
        top: 50%;
        right: 12px;
        width: 24px;
        height: 24px;
        margin: 0;
        transform: translateY(-50%);
    }
}

/* 360px未満は左の余白を詰めて、文字の折り返しを増やさない */
@media (max-width: 359px) {
    a.p-price {
        padding-left: 20px;
    }
}

/* ---------- タブレット・スマホ（979px以下）：CTAボタンを強調（幅を狭く・高さを高く） ---------- */
/* 対象：KVの「お問い合わせ」「サービスを見る」、CONTACTの「お問い合わせフォーム」 */
@media (max-width: 979px) {
    /* KVのボタン：2つ並べられる幅では横並び、入らない幅では縦並び（下の「KVのCTAボタン」で設定） */

    /* CONTACT：電話番号を1行使い、ボタンをその下の中央に置く */
    .p-cta__tel {
        flex: 0 0 100%;
    }

    .p-hero__btns .c-btn,
    .p-cta__box .c-btn--lg {
        flex: none;
        width: min(84%, 320px);
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .p-hero__btns .c-btn {
        height: 64px;
    }

    .p-cta__box .c-btn--lg {
        height: 76px;
    }
}

/* ---------- ハンバーガーメニューの「お問い合わせ」ボタン：高さを出して強調 ---------- */
.drawer-navigation .menu-item-contact a {
    height: 60px;
    line-height: 60px;
}

/* ---------- 下層KVのバッジ：少し小さく ---------- */
.p-hero__badges li {
    /* 文字が下がって見えないよう、上を1px詰めて下を1px広げる（高さは28pxのまま） */
    padding: 2px 14px 4px;
    font-size: 13px;
    line-height: 22px;
}

/* ---------- 選ばれる理由のチェック項目：文字を少し小さく ---------- */
.p-features__body .c-checklist li {
    font-size: 15px;
}

/* ---------- スマホ（768px以下）：中央ぞろえの追加 ---------- */
@media (max-width: 768px) {
    /* 料金プラン・検査プランの概要文（見出し下のリード文） */
    .p-sec:has(.p-plan, .p-items) .c-heading__lead {
        text-align: center;
    }

}

/* ---------- タブレット・スマホ（979px以下）：CONTACTの電話番号と「お問い合わせフォーム」ボタンの間を広げる ---------- */
@media (max-width: 979px) {
    .p-cta__box .c-btn--lg {
        margin-top: 16px;
    }
}

/* ---------- ページヘッダー右側の六角形：KV・CONTACTと同じく右下に置いて上下左右反転 ---------- */
.p-pagehead::after {
    top: auto;
    bottom: 0;
    transform: scale(-1, -1);
}

/* ---------- 分析依頼「お申込みの流れ」の↓矢印：縦並び時に上下の余白をそろえる ---------- */
/* カードの間は48px。矢印（回転後の高さ28px）の中心を間の真ん中（-24px）に置く */
@media (max-width: 1024px) {
    .p-flow.is-card .p-flow__item+.p-flow__item::after {
        top: -34px;
    }
}

/* ---------- 分析依頼書のダウンロードボタン：アイコンと文字を左（頭）ぞろえにして、2つのボタンで位置をそろえる ---------- */
.c-btn--file {
    justify-content: flex-start;
}

/* ---------- 分析依頼書のダウンロードボタン：スマホ・タブレットで横に広がりすぎないようにする ---------- */
@media (max-width: 768px) {
    /* 幅は最大360pxにして中央に置く */
    .p-downloads>li {
        display: flex;
        justify-content: center;
    }

    .c-btn--file {
        width: 100%;
        max-width: 380px;
    }
}

/* スマホ（480px以下）：文字と余白を少し小さくして、画面からはみ出さないようにする */
@media (max-width: 480px) {
    .c-btn--file {
        gap: 8px;
        padding: 12px 40px 12px 16px !important;
        font-size: clamp(12px, 3.6vw, 15px);
    }

    .c-btn--file>.icon-arrow {
        right: 12px;
        width: 20px;
        height: 20px;
    }
}

/* 360px未満：1行に収まらないときは折り返す */
@media (max-width: 359px) {
    .c-btn--file {
        min-width: 0;
        white-space: normal;
    }
}

/* ---------- 注意書きボックス（p-notes）内の文章を15pxに統一 ---------- */
/* 分析依頼（検体の送付先・ご依頼をお受けできない試料 など）、用途別 水質検査・環境測定の「ご利用にあたって」 */
.p-notes__text,
.p-notes__text p,
.p-notes__text li {
    font-size: 15px;
}

/* ---------- 対応エリア：文章とエリアのタグ（愛知県 など）の間を60pxにする ---------- */
.c-heading:has(+ .p-badges) {
    margin-bottom: 60px;
}

/* スマホ（768px以下）は40px */
@media (max-width: 768px) {
    .c-heading:has(+ .p-badges) {
        margin-bottom: 40px;
    }
}

/* ---------- PC（980px以上）：検査項目・お悩みの見出しの改行をなくす ---------- */
/* 水質分析「検査項目」の説明文（土壌分析「検査プラン」も同じ作り）、「お客様の水質検査に関するお悩みにお応えします」 */
@media screen and (min-width: 980px) {
    .p-sec:has(.p-items) .c-heading__lead br,
    .p-sec:has(.p-checks) .c-heading__title br {
        display: none;
    }
}

/* ---------- 見出しの上の余分な余白をなくす ---------- */
/* 英字ラベル（c-en）などが上にない見出しは、margin-top: 16px がそのまま余白になっていたので 0 にする */
.c-heading__title:first-child {
    margin-top: 0;
}

/* ---------- ページ内リンクのボタン（用途別 水質検査）：文字が下がって見えるので1px上げて上下中央にする ---------- */
.p-tiles__label {
    position: relative;
    top: -1px;
}

/* ---------- スマホ（768px以下）：料金プランの項目（定性分析・郵送・持ち込み対応 など）を折り返さない ---------- */
@media (max-width: 768px) {
    /* 幅は最低80%のまま、文字が長いときは文字に合わせて広げる */
    .p-plan__features {
        width: fit-content;
        min-width: 80%;
        max-width: 100%;
    }

    .p-plan__features>li {
        padding-right: 0;
        white-space: nowrap;
    }
}

/* ---------- 用途別 水質検査の検査項目の表：「料金（税込）」「検査日数」の列は折り返さない ---------- */
.page-template-page-water-usage .p-table__table :is(th, td):not(:first-child) {
    white-space: nowrap;
}

/* ---------- KVのアスベスト定性分析バナー：背景の六角形（擬似要素）が上に重なって色が透けないようにする ---------- */
.p-price {
    position: relative;
    z-index: 1;
}

/* ---------- 分析依頼書のダウンロードボタンの左の余白を32pxにする（PC・タブレット・スマホ共通） ---------- */
.c-btn--file {
    padding-left: 32px !important;
}

/* ---------- KVのCTAボタン（お問い合わせ・サービスを見る）：横に並べられる幅では横並び、入らない幅では縦並び ---------- */
/* 979px以下。2つは同じ幅（最大320px・画面の84%まで）。1つあたり260px確保できないときは自動で縦に折り返す */
@media (max-width: 979px) {
    .p-hero__btns {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
    }

    .p-hero__btns .c-btn {
        box-sizing: border-box;
        flex: 1 1 200px;
        width: auto;
        min-width: min(260px, 84%);
        max-width: min(84%, 320px);
        margin-left: 0;
        margin-right: 0;
    }
}

/* ---------- 利用の流れ：タブレット（769〜1199px、ステップが縦に並ぶ幅）はステップ説明文を中央ぞろえ ---------- */
/* スマホ（768px以下）は左ぞろえのまま */
@media (min-width: 769px) and (max-width: 1199px) {
    .p-flow__text {
        text-align: center;
    }
}


/* 利用の流れ：ステップ内のダウンロードボタン（分析依頼書ページと同じ形を小さめに） */
.c-btn--file.p-flow__file {
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 52px;
    margin-top: 20px;
    padding: 10px 32px 10px 24px !important;
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 4px 5px 0 color-mix(in srgb, var(--theme, var(--color_blue)) 58%, #000);
}
.p-flow.is-box .p-flow__file {
    grid-row: 4;
    justify-self: center;
    align-self: start;
}
