/* ============================================================
   場所別害獣対策ページ CSS
   プレフィックス: .basho-
   既存クラス (.oum-case- / .lp-area-faq) は case-area.css / lp-area.css で定義済み

   レイアウト設計:
   - 通常セクション: <section.oum-case-section> > <div.u-inner.oum-case-section__inner>
     → u-inner が width:90% / max-width:1040px で中央寄せ（既存パターン準拠）
   - accent セクション: <section.oum-case-section.oum-case-section--accent> > 同上
     → .l-contents の max-width:1040px 内に収まる（全幅化しない）
   - hero: wp_head のインラインCSSで 100vw 全幅化
   - FAQ: .lp-area-faq が自身で padding + background を持つ自立セクション
   ============================================================ */

/* ---- テキスト強調アンダーライン ---- */
.basho-em {
    background-image: linear-gradient(transparent 60%, var(--accent, #ffec01) 60%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding: 0 2px;
    font-weight: 700;
}

/* ---- 場所ナビ（6箇所カードグリッド）---- */
.basho-location-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.basho-location-nav__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-white, #fff);
    border: 2px solid var(--border, #ddd);
    border-radius: 12px;
    padding: 24px 16px 20px;
    text-decoration: none;
    color: var(--text, #1a1a1a);
    text-align: center;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.basho-location-nav__card:hover {
    border-color: var(--primary, #f55c2b);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.basho-location-nav__card.is-current {
    border-color: var(--primary, #f55c2b);
    background: #fff5f2;
    box-shadow: 0 2px 12px rgba(245, 92, 43, 0.15);
    pointer-events: none;
}
.basho-location-nav__icon {
    display: block;
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 50%;
    overflow: hidden;
}
.basho-location-nav__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.basho-location-nav__icon-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #e8e0d8;
}
.basho-location-nav__name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary-dark, #481200);
}
.basho-location-nav__keywords {
    display: block;
    font-size: 12px;
    color: var(--text-sub, #555);
    line-height: 1.5;
}

/* ---- 画像プレースホルダー（画像未設定時の維持用） ---- */
.basho-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #e8e0d8;
    border-radius: 8px;
}
.basho-img-placeholder--16x9 {
    aspect-ratio: 16 / 9;
    border-radius: 0;
}

/* ---- CTA + 電話CTA帯の下余白 ---- */
.basho-cta-tel-wrap {
    padding-bottom: 48px;
}

/* ---- 警告セクション画像 ---- */
.basho-warning-img {
    text-align: center;
    margin-bottom: 24px;
}
.basho-warning-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ---- リスクカード内画像 ---- */
.basho-risk-card__img {
    margin: -28px -24px 16px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.basho-risk-card__img img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ---- 導入テキスト（画像なしの場合） ---- */
.basho-intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text, #1a1a1a);
}

/* ---- 導入セクション画像スタンプ（要注意マーク） ---- */
.basho-intro-img-wrap {
    position: relative;
}
.basho-intro-stamp {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff3b2e, #c80a00);
    color: #fff;
    transform: rotate(12deg);
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 5.5px #ea0b00,
        0 4px 14px rgba(234, 11, 0, 0.45);
    z-index: 1;
    gap: 3px;
}
.basho-intro-stamp__icon {
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}
.basho-intro-stamp__text {
    display: block;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

/* ---- リスクカード（警告・自己駆除の危険性） ---- */
.basho-risk-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.basho-risk-card {
    background: var(--bg-white, #fff);
    border-radius: 12px;
    padding: 28px 24px 24px;
    box-shadow: var(--shadow, 0 2px 12px rgba(0, 0, 0, 0.08));
    position: relative;
}
.basho-risk-card__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary, #f55c2b);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin: 0 auto 12px;
}
.basho-risk-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark, #481200);
    margin: 0 0 10px;
    line-height: 1.4;
}
.basho-risk-card__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text, #1a1a1a);
    margin: 0;
}

/* ---- ステップUI ---- */
.basho-steps {
    margin: 0;
}
.basho-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--border, #ddd);
}
.basho-step:last-child {
    border-bottom: none;
}
.basho-step__number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 80px;
    height: 36px;
    padding: 0 14px;
    border-radius: 20px;
    background: var(--primary, #f55c2b);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.basho-step__body {
    flex: 1;
}
.basho-step__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark, #481200);
    margin: 0 0 8px;
    line-height: 1.4;
}
.basho-step__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text, #1a1a1a);
    margin: 0;
}

/* ---- セクション見出しアイコン（POINT / 要注意） ---- */
.basho-section-icon {
    display: block;
    background: var(--primary, #f55c2b);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 4px;
    margin: 0 auto 6px;
    width: fit-content;
    letter-spacing: 0.1em;
    text-align: center;
}
.basho-section-icon--warning {
    background: #e63e1a;
}
.basho-section-icon--intro {
    background: #cc0100;
    margin: 0 0 6px;
}

/* ---- セクションサブタイトル（害獣がいるかも！ / そのままは絶対NG） ---- */
.basho-section-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: #cc0100;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}
.basho-section-subtitle--warning {
    color: #cc0100;
}

/* ---- 調査・解決セクション見出し ---- */
.basho-hero-heading {
    text-align: center;
    margin-bottom: 32px;
}
.basho-hero-heading__badge {
    display: inline-block;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary, #f55c2b);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    position: relative;
}
.basho-hero-heading__badge::before,
.basho-hero-heading__badge::after {
    content: '─';
    color: var(--primary, #f55c2b);
    margin: 0 6px;
    font-weight: 400;
}
.basho-hero-heading__title {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-dark, #481200);
    margin: 0;
    line-height: 1.5;
    display: inline;
    background-image: linear-gradient(transparent 60%, var(--accent, #ffec01) 60%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding: 0 4px;
}

/* ---- 侵入経路リスト ---- */
.basho-route-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.basho-route-list--centered {
    max-width: 700px;
    margin: 0 auto;
}
.basho-route-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text, #1a1a1a);
    border-bottom: 1px dashed var(--border, #ddd);
}
.basho-route-list li:last-child {
    border-bottom: none;
}
.basho-route-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary, #f55c2b);
}

/* ---- テーブルラッパー（SP横スクロール対応） ---- */
.basho-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ---- 害獣特定テーブル（PC版リッチデザイン） ---- */
table.basho-identify-table {
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}
table.basho-identify-table thead th {
    background: linear-gradient(135deg, var(--primary-dark, #481200) 0%, #6b2a0f 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 14px 20px;
    border: none;
    border-bottom: 3px solid var(--primary, #f55c2b);
    position: relative;
}
table.basho-identify-table thead th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}
table.basho-identify-table tbody tr {
    background: #fff;
    transition: background-color 0.2s;
}
table.basho-identify-table tbody tr:nth-child(even) {
    background: #faf8f5;
}
table.basho-identify-table tbody tr:hover {
    background: #fff5f2;
}
table.basho-identify-table th,
table.basho-identify-table td {
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid #ede8e3;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.7;
}
table.basho-identify-table tbody tr:last-child td {
    border-bottom: none;
}
table.basho-identify-table thead th:first-child {
    text-align: center;
    width: 170px;
    min-width: 170px;
}
table.basho-identify-table td.basho-identify-table__td-name {
    text-align: center;
    width: 170px;
    min-width: 170px;
    padding: 16px 12px;
    background: #faf8f5;
    border-right: 1px solid #ede8e3;
    color: var(--primary-dark, #481200);
}
.basho-identify-table__pest-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 8px;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.basho-identify-table__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--primary-dark, #481200);
    font-weight: 700;
    transition: opacity 0.2s;
}
.basho-identify-table__link:hover {
    opacity: 0.75;
}
.basho-identify-table__link strong {
    font-size: 14px;
    letter-spacing: 0.04em;
}

/* ---- SP専用改行 ---- */
.sp-br {
    display: none;
}

/* ---- 相談誘導セクション ---- */
.basho-consult {
    background: #fff;
    border-top: 4px solid var(--primary, #f55c2b);
    position: relative;
}
.basho-consult::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 16px solid var(--primary, #f55c2b);
}
.basho-consult__head-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}
.basho-consult__title {
    font-size: 35px;
    font-weight: 900;
    color: var(--primary-dark, #481200);
    line-height: 1.4;
    text-align: center;
    margin: 0;
    flex-shrink: 1;
}
.basho-consult__head-img {
    flex: 0 0 130px;
    max-width: 130px !important;
    width: 130px !important;
    height: auto !important;
    align-self: center;
}
.basho-consult__text {
    max-width: 800px;
    margin: 0 auto 32px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text, #1a1a1a);
    text-align: center;
}
.basho-consult__points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.basho-consult__point {
    background: #fef9f6;
    border: 1px solid #f0ddd4;
    border-radius: 12px;
    padding: 0 0 20px;
    text-align: center;
    overflow: hidden;
}
.basho-consult__point-img {
    margin: 16px 0;
    text-align: center;
}
.basho-consult__point-img img {
    width: 120px;
    height: 120px;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
}
.basho-consult__point-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary, #f55c2b);
    margin: 0 20px 10px;
    line-height: 1.4;
}
.basho-consult__point-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text, #1a1a1a);
    margin: 0 20px;
}

/* ---- 矢印コネクタ（調査→解決） ---- */
.basho-flow-arrow {
    display: flex;
    justify-content: center;
    padding: 0;
    background: transparent;
}
.basho-flow-arrow span {
    display: block;
    width: 0;
    height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 28px solid #ffebad;
}

/* ---- セクションリード文（investigation / solution） ---- */
.basho-section-lead {
    max-width: 800px;
    margin: -8px auto 28px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text, #1a1a1a);
    text-align: center;
}

/* ---- 侵入経路テキスト ---- */
.basho-investigation-text {
    max-width: 700px;
    margin: 0 auto 20px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text, #1a1a1a);
    text-align: center;
}
.basho-investigation-text--left {
    max-width: none;
    margin: 0 0 20px;
    text-align: left;
}

/* ---- 人物付きCTA (c-tel-cv01) bashoページ用修正 ---- */
/* 1040pxコンテナ内で元CSSのレイアウトをそのまま活用。幅制約は不要。 */

/* ---- FAQ: Aアイコン横並び ---- */
.lp-area-faq__a-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.lp-area-faq__a-txt {
    flex: 1;
}

/* ---- FAQ セクション内の見出し調整 ---- */
.lp-area-faq .oum-case-section__title {
    color: var(--primary-dark, #481200);
    font-size: 2.5rem;
}
.lp-area-faq .oum-case-section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary, #f55c2b);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* ============================================================
   レスポンシブ (SP: ~767px)
   ============================================================ */
@media (max-width: 767px) {
    /* SP専用改行を表示 */
    .sp-br {
        display: block;
    }

    /* 場所ナビ: 2列 */
    .basho-location-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .basho-location-nav__card {
        padding: 16px 10px 14px;
    }
    .basho-location-nav__icon {
        width: 72px;
        height: 72px;
        margin-bottom: 8px;
    }
    .basho-location-nav__name {
        font-size: 13px;
    }
    .basho-location-nav__keywords {
        font-size: 11px;
    }

    /* リスクカード: 1列 */
    .basho-risk-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .basho-risk-card {
        padding: 20px 18px;
    }
    .basho-risk-card__img {
        margin: -20px -18px 14px;
    }

    /* ステップ */
    .basho-step {
        flex-direction: column;
        gap: 10px;
        padding: 18px 0;
    }
    .basho-step__number {
        min-width: 70px;
        height: 30px;
        font-size: 12px;
    }
    .basho-step__title {
        font-size: 15px;
    }
    .basho-step__text {
        font-size: 13px;
    }

    /* 害獣特定テーブル: カード化 */
    table.basho-identify-table,
    table.basho-identify-table thead,
    table.basho-identify-table tbody,
    table.basho-identify-table tr,
    table.basho-identify-table th,
    table.basho-identify-table td {
        display: block;
        width: 100%;
    }
    table.basho-identify-table thead {
        display: none;
    }
    table.basho-identify-table tbody tr {
        background: #fff;
        border: 1px solid var(--border, #ddd);
        border-radius: 10px;
        margin-bottom: 14px;
        padding: 0;
        overflow: hidden;
    }
    table.basho-identify-table td {
        border: none;
        padding: 10px 16px;
        text-align: left;
        font-size: 13px;
    }
    table.basho-identify-table td.basho-identify-table__td-name {
        display: flex;
        align-items: center;
        gap: 14px;
        background: #f8f7f4;
        text-align: left;
        width: 100%;
        min-width: unset;
        padding: 12px 16px;
    }
    .basho-identify-table__pest-img {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
        margin: 0;
        border-radius: 6px;
    }
    .basho-identify-table__link {
        flex-direction: row;
        gap: 14px;
    }
    table.basho-identify-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 700;
        color: var(--primary, #f55c2b);
        margin-bottom: 4px;
    }
    table.basho-identify-table td.basho-identify-table__td-name::before {
        display: none;
    }

    /* 相談誘導セクション */
    .basho-consult__head-wrap {
        gap: 4px;
    }
    .basho-consult__title {
        font-size: 1.8rem;
    }
    .basho-consult__head-img {
        flex: 0 0 70px;
        max-width: 70px !important;
        width: 70px !important;
    }
    .basho-consult__text {
        font-size: 14px;
        text-align: left;
        margin-bottom: 24px;
    }
    .basho-consult__points {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .basho-consult__point {
        padding: 0 0 18px;
    }

    /* 矢印コネクタ */
    .basho-flow-arrow span {
        border-left-width: 18px;
        border-right-width: 18px;
        border-top-width: 22px;
    }

    /* セクションリード文 */
    .basho-section-lead {
        font-size: 14px;
        text-align: left;
    }

    /* FAQ見出しサイズ */
    .lp-area-faq .oum-case-section__title {
        font-size: 2rem;
    }

    /* 調査・解決見出し */
    .basho-hero-heading {
        margin-bottom: 24px;
    }
    .basho-hero-heading__badge {
        font-size: 14px;
    }
    .basho-hero-heading__title {
        font-size: 24px;
    }

    /* 侵入経路リスト */
    .basho-route-list li {
        font-size: 14px;
        padding-left: 24px;
    }

    /* 侵入経路テキスト */
    .basho-investigation-text {
        font-size: 14px;
        text-align: left;
    }

    /* 導入テキスト */
    .basho-intro-text {
        font-size: 14px;
    }

    /* 人物CTA SP: バナー・テキスト・メールボタン幅を抑えて中央寄せ */
    .c-tel-cv01__banner {
        max-width: 350px !important;
    }
    .c-tel-cv01__txt-area {
        max-width: 350px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .c-tel-cv01__btn {
        max-width: 350px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
