@charset "UTF-8";

/* ===================================================================
 *
 *  解体工事業者サイト 統合スタイルシート
 *
 *  1. 基本設定・汎用クラス
 *  2. 見出しスタイル
 *  3. 主要レイアウト・セクション
 *  4. コンポーネント
 *    4-1. アコーディオン
 *    4-2. 業者カード
 *    4-3. もっと見るボタン (新仕様)
 *    4-4. タブ・フィルタリング
 *    4-5. CTA (Call To Action)
 *    4-6. 早見表
 *    4-7. チェックポイント・フロー
 *    4-8. その他
 *  5. ページ固有スタイル
 *  6. 詳細ページ (single-kaitaikoujigyousya.php) 用スタイル
 *
 * =================================================================== */


/* ===================================================================
 *  1. 基本設定・汎用クラス
 * =================================================================== */

/* --- コンテンツ基本 --- */
.l-content {
    padding-top: 2em;
}

/* --- ページ更新日 --- */
.page-updated-date {
    text-align: right;
    margin-bottom: 1.5em;
    font-size: 0.7em;
    color: #999999;
}

/* --- サイドバー「情報の誤りを報告する」ボタン --- */
.report-btn {
    display: inline-block;
    width: 100%;
    padding: 10px;
    background-color: #6c757d;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    border-radius: 4px;
    transition: background-color 0.2s;
    box-sizing: border-box;
}
.report-btn:hover {
    background-color: #5a6268;
    color: #fff;
}
.report-btn .fa-flag {
    margin-right: 8px;
}

/* --- 「公式サイトを見る」リンク --- */
.website-link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: underline;
    font-size: 0.9em;
    font-weight: bold;
    color: #005a9c;
    transition: color 0.2s;
}
.website-link-with-icon:hover {
    color: #003d6b;
    text-decoration: none;
}
.website-link-with-icon .fas {
    font-size: 0.9em;
}

/* --- PRバッジ --- */
.pr-badge {
    display: inline-block;
    background-color: #f0f0f0;
    color: #555;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 8px;
    border: 1px solid #ddd;
}

/* --- 情報ボックス（業者なし表示など） --- */
.c-infoBox {
    border: 1px solid #bce0fd;
    background-color: #f7faff;
}
.c-infoBox__title {
    display: flex;
    align-items: center;
    gap: 0.8em;
    color: #0c5460;
    padding: 1.5em 2em 0.5em 2em;
    margin: 0 0 1em 0;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.c-infoBox__title::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.2rem;
    color: #2173bf;
    content: '\f05a'; /* iマーク */
}
.c-infoBox__body {
    background-color: #fff;
    padding: 1.5em 2em;
    line-height: 1.8;
}
.c-infoBox__footer {
    background-color: #f8f9fa;
    padding: 1.5em 2em;
    font-size: 0.9em;
    border-top: 1px solid #e9ecef;
}
.c-infoBox__footerTitle {
    font-weight: bold;
    margin-bottom: 0.8em;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

/* 「業者なし」等の汎用メッセージボックス */
.hayami-no-result-box,
.no-results-message,
.gyousya-no-result-box {
    text-align: center;
    padding: 2em;
    margin: 1.5em 0 2em 0;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #6c757d;
}
.hayami-no-result-box p,
.no-results-message p,
.gyousya-no-result-box p {
    margin: 0;
    line-height: 1.8;
}
.hayami-no-result-box .criteria-highlight {
    display: block;
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px dashed #ced4da;
    font-size: 0.9em;
    color: #495057;
}

/* --- チェックリスト --- */
.c-checklist {
    background: #fcfdfe;
    border: 1px solid #e5e7eb;
    padding: 1.5em 1.5em 1em 1.5em;
    margin: 1.5em 0;
    border-radius: 4px;
}
.c-checklist__list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.c-checklist__item {
    position: relative;
    padding-left: 1.8em;
    margin-bottom: 1em;
}
.c-checklist__item::before {
    content: '\f00c'; /* Font Awesome チェックマーク */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #2173bf;
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 1.1em;
}

/* --- 汎用ツールチップ --- */
.survey-tooltip {
    position: fixed;
    background-color: #222;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.survey-tooltip::after {
    content: '';
    position: absolute;
    top: var(--arrow-top, 100%);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #222;
}
.survey-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-4px);
}


/* ===================================================================
 *  2. 見出しスタイル
 * =================================================================== */
.post_content h1 {
    font-weight: 600;
    border: none;
    padding: 0.5em 0;
    margin-top: 1em;
    margin-bottom: 0.5em;
    align-items: center;
    gap: 0.6em;
}
.post_content h2.c-section-title {
    font-weight: 600;
    border: none;
    padding: 0.5em 0;
    margin-top: 2em;
    margin-bottom: 0;
    margin-left: 0;
    font-size: 28px;
}
.post_content h3.accordion-chousa {
    font-size: 18px;
    text-align: left;
    padding: 0;
}
.custom-survey-accordion .kaitaikoujigyousya-accordion-header h3.accordion-custom-title {
    padding: 0 !important;
}

@media screen and (max-width: 768px) {
    .post_content h1 {
        font-size: 22px;
        gap: 0.4em;
        padding: 0.4em 0;
        margin-top: 0.8em;
        margin-bottom: 0.4em;
    }
    .post_content h2.c-section-title {
        font-size: 20px;
        gap: 0.4em;
        padding: 0.4em 0;
        margin-top: 0.8em;
        margin-bottom: 1em;
    }
    .post_content h3.accordion-chousa {
        font-size: 15px;
        text-align: left;
        margin-bottom: 0.5em;
    }
}


/* ===================================================================
 *  3. 主要レイアウト・セクション
 * =================================================================== */

/* --- 料金相場セクション --- */
.price-market-rate-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2em;
    margin: 3em 0;
}
.price-market-rate-box .market-rate-description {
    text-align: center;
    margin: 0 auto 2em auto;
    max-width: 600px;
    line-height: 1.8;
    font-size: 0.95em;
    color: #333;
}
.price-market-rate-box .market-rate-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
    text-align: center;
}
.price-market-rate-box .market-rate-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5em 1em;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    width: calc(33.333% - 1em);
    box-sizing: border-box;
}
.price-market-rate-box h3.market-rate-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.8em 0;
    padding: 0 0 0.8em 0;
    border: none;
    position: relative;
}
.price-market-rate-box h3.market-rate-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #2273BF;
    border-radius: 2px;
}
.price-market-rate-box .market-rate-price {
    color: #d9534f;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1;
    margin-bottom: 0.8em;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.2em;
}
.price-market-rate-box .market-rate-price .price-value {
    font-size: 2.8em;
    font-weight: 800;
}
.price-market-rate-box .market-rate-note {
    font-size: 0.85em;
    color: #222222;
    margin: 0;
}
.price-market-rate-box .market-rate-footer-note {
    text-align: right;
    font-size: 0.8em;
    color: #888;
    margin: 2em 0 0 0;
}
.price-market-rate-box .market-rate-item.is-option {
    background-color: #fff;
    border: 1px dotted #ccc;
}
.price-market-rate-box .market-rate-item.is-option .market-rate-title::after {
    background-color: #6c757d;
}

@media screen and (max-width: 767px) {
    .price-market-rate-box {
        padding: 1.5em 1em;
    }
    .price-market-rate-box .market-rate-grid {
        gap: 1em;
    }
    .price-market-rate-box .market-rate-item {
        width: 100%;
    }
    .price-market-rate-box .market-rate-price .price-value {
        font-size: 2.5em;
    }
}

/* --- 業者一覧セクション（JS描画部分） --- */
.section-intro,
.section-intro-box {
    padding: 1.5em;
    margin-bottom: 2em;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
}
.section-intro p,
.section-intro-box p {
    margin: 0;
    line-height: 1.7;
}
.section-intro-box {
    border-left: 5px solid;
}
.section-intro-box p:first-child {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.section-intro-box.is-local {
    border-left-color: #28a745;
}
.section-intro-box.is-remote {
    border-left-color: #007bff;
}

/* AJAXローディング表示 */
.kaitaikoujigyousya-company-list {
    position: relative;
    transition: opacity 0.2s ease-in-out, min-height 0s 0.2s;
}
.kaitaikoujigyousya-company-list.is-loading {
    opacity: 0.5;
    min-height: 200px;
}
.kaitaikoujigyousya-company-list.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
    border: 5px solid rgba(33, 115, 191, 0.2);
    border-top-color: #2173bf;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 件数0の場合の表示制御 */
.kaitaikoujigyousya-section.is-empty .section-description,
.kaitaikoujigyousya-section.is-empty .section-content {
    display: none;
}
.kaitaikoujigyousya-section.is-empty .gyousya-no-result-box {
    display: block;
}
.gyousya-no-result-box {
    display: none; /* is-emptyクラスがないときは隠す */
}

/* --- 市区町村リスト（ライブ検索） --- */
.municipality-search-box-wrapper {
    position: relative;
    margin-bottom: 1.5em;
}
.municipality-search-box-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}
.municipality-search-input {
    width: 100%;
    padding: 0.8em 1em 0.8em 2.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

/* --- 市区町村リスト（階層表示） --- */
.gyousya-municipality-list {
    list-style: none;
    padding: 0;
    margin-top: 2em;
}
.gyousya-municipality-item {
    margin: 0;
    padding: 0;
}
.gyousya-municipality-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #2173bf;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}
.gyousya-municipality-link:hover {
    background-color: #2173bf;
    color: #fff;
    border-color: #2173bf;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.gyousya-municipality-count {
    font-size: 0.9em;
    font-weight: normal;
    color: #6c757d;
    white-space: nowrap;
    margin-left: 1em;
}
.gyousya-municipality-link:hover .gyousya-municipality-count {
    color: #fff;
}
.post_content > .gyousya-municipality-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    padding-left: 0;
}
.gyousya-municipality-item.has-children {
    grid-column: 1 / -1;
    margin-bottom: 15px;
}
.gyousya-municipality-list .children {
    list-style-type: none;
    margin-top: 15px;
    padding-left: 30px;
    border-left: 2px solid #e9e9e9;
    margin-left: 10px;
}
.gyousya-municipality-list .children .gyousya-municipality-item {
    margin-bottom: 10px;
}
.gyousya-municipality-list .children .gyousya-municipality-link {
    background-color: #fff;
    padding: 12px 18px;
}

@media (max-width: 600px) {
    .post_content > .gyousya-municipality-list {
        display: block;
    }
    .gyousya-municipality-item {
        margin-bottom: 12px;
    }
    .gyousya-municipality-list .children {
        padding-left: 20px;
    }
}

/* --- 市区町村リスト（グリッド表示） --- */
.gyousya-municipality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}
.gyousya-municipality-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #2173bf;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.gyousya-municipality-grid-item:hover {
    background-color: #2173bf;
    border-color: #2173bf;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .gyousya-municipality-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gyousya-municipality-grid-item {
        padding: 12px 8px;
        font-size: 14px;
    }
}


/* ===================================================================
 *  4. コンポーネント
 * =================================================================== */

/* -------------------------------------------------------------------
 *  4-1. アコーディオン
 * ------------------------------------------------------------------- */

/* --- 汎用アコーディオン --- */
.kaitaikoujigyousya-accordion {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}
.kaitaikoujigyousya-accordion-header {
    background: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}
.kaitaikoujigyousya-accordion-header:hover {
    background: #e9ecef;
}
.kaitaikoujigyousya-accordion-header::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}
.kaitaikoujigyousya-accordion-header.kaitaikoujigyousya-active::after {
    transform: rotate(180deg);
}
.kaitaikoujigyousya-accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}
.kaitaikoujigyousya-accordion-content.kaitaikoujigyousya-active {
    padding: 20px;
    max-height: 3000px;
}

/* --- クリーニング業者アーカイブ アコーディオン --- */
.kaitaikoujigyousya-accordion.archive-style {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.kaitaikoujigyousya-accordion__input {
    display: none;
}
.kaitaikoujigyousya-accordion__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}
.kaitaikoujigyousya-accordion__title:hover {
    color: #fff;
    background-color: #FFA500;
}
.kaitaikoujigyousya-accordion__input:checked + .kaitaikoujigyousya-accordion__title {
    background-color: #FFA500;
    color: #fff;
}
.kaitaikoujigyousya-accordion__content {
    display: none;
    padding: 0;
}
.kaitaikoujigyousya-accordion__input:checked + .kaitaikoujigyousya-accordion__title + .kaitaikoujigyousya-accordion__content {
    display: block;
    padding: 15px;
    background-color: #fff;
}
.kaitaikoujigyousya-region-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.kaitaikoujigyousya-region-list li {
    border-bottom: 1px solid #ddd;
}
.kaitaikoujigyousya-region-list li:last-child {
    border-bottom: none;
}
.kaitaikoujigyousya-region-list a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #1176d4;
    transition: color 0.3s, background-color 0.3s;
}
.kaitaikoujigyousya-region-list a:hover {
    background-color: #f7f7f7;
}
.kaitaikoujigyousya-accordion__icon {
    font-size: 18px;
    transition: transform 0.3s;
}
.kaitaikoujigyousya-accordion__input:checked + .kaitaikoujigyousya-accordion__title .kaitaikoujigyousya-accordion__icon {
    transform: rotate(45deg);
}


/* --- 全国業者一覧 アコーディオン --- */
.gyousya-region-accordion {
    margin-top: 1.5em;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}
.region-accordion-item {
    border-bottom: 1px solid #e0e0e0;
}
.region-accordion-item:last-child {
    border-bottom: none;
}
.region-accordion-title {
    font-size: 1.1em;
    font-weight: bold;
    padding: 1em 1.5em;
    cursor: pointer;
    position: relative;
    list-style: none;
    display: block;
}
.region-accordion-title::-webkit-details-marker {
    display: none;
}
.region-accordion-title::after {
    content: '▼';
    position: absolute;
    right: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    line-height: 1;
    color: #0073aa;
    transition: transform 0.2s ease-in-out;
}
.region-accordion-item[open] > .region-accordion-title::after {
    transform: translateY(-50%) rotate(180deg);
}
.region-accordion-content {
    padding: 0 1.5em 1.5em 1.5em;
    background-color: #f5f7fa;
    border-top: 1px solid #e0e0e0;
}
.region-accordion-content .gyousya-municipality-list {
    padding-top: 1em;
}

@media screen and (max-width: 767px) {
    .region-accordion-title {
        font-size: 1em;
        padding: 1em;
    }
    .region-accordion-title::after {
        right: 1em;
    }
    .region-accordion-content {
        padding: 0 1em 1em 1em;
    }
    .region-accordion-content .gyousya-municipality-list {
        padding-left: 0;
    }
}

/* --- Q&A専用アコーディオン --- */
.kaitaikoujigyousya-qa-accordion .kaitaikoujigyousya-accordion-header {
    position: relative;
    padding-left: 60px;
}
.kaitaikoujigyousya-qa-accordion .kaitaikoujigyousya-accordion-header::before {
    content: 'Q';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: #d9534f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}
.kaitaikoujigyousya-qa-accordion .kaitaikoujigyousya-accordion-content {
    position: relative;
    padding-left: 60px !important;
}
.kaitaikoujigyousya-qa-accordion .kaitaikoujigyousya-accordion-content::before {
    content: 'A';
    position: absolute;
    left: 20px;
    top: 20px;
    width: 32px;
    height: 32px;
    background-color: #2273BF;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.kaitaikoujigyousya-qa-accordion .kaitaikoujigyousya-accordion-content.kaitaikoujigyousya-active::before {
    opacity: 1;
}

@media (max-width: 600px) {
    .kaitaikoujigyousya-qa-accordion .kaitaikoujigyousya-accordion-header {
        padding-left: 50px;
    }
    .kaitaikoujigyousya-qa-accordion .kaitaikoujigyousya-accordion-content {
        padding-left: 50px !important;
    }
    .kaitaikoujigyousya-qa-accordion .kaitaikoujigyousya-accordion-header::before,
    .kaitaikoujigyousya-qa-accordion .kaitaikoujigyousya-accordion-content::before {
        left: 15px;
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* --- 業者カード内 詳細料金アコーディオン --- */
.kaitaikoujigyousya-price-accordion {
    margin-top: 30px;
    border: 2px solid #2273BF;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.kaitaikoujigyousya-price-accordion .kaitaikoujigyousya-accordion-header {
    background: #ffffff;
    border: none;
    color: #2273BF;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.kaitaikoujigyousya-price-accordion .kaitaikoujigyousya-accordion-header:hover {
    background-color: #f7faff;
}
.kaitaikoujigyousya-price-accordion .kaitaikoujigyousya-accordion-header.kaitaikoujigyousya-active {
    border-bottom: 2px solid #e9ecef;
}
.kaitaikoujigyousya-price-accordion .kaitaikoujigyousya-accordion-content {
    border: none;
    background: #ffffff;
}

/* --- 調査項目 統合アコーディオン --- */
.integrated-survey-accordion {
    margin-top: 3em;
    border-color: #e0e0e0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
.integrated-survey-accordion .kaitaikoujigyousya-accordion-header {
    flex-direction: column;
    align-items: center;
    gap: 1em;
    padding: 1.5em;
}
.integrated-survey-accordion .kaitaikoujigyousya-accordion-header:hover {
    background-color: #f1f3f5;
}
.integrated-survey-accordion .kaitaikoujigyousya-accordion-header::after {
    display: none !important;
}
.integrated-survey-accordion .header-main-text {
    font-size: 0.95em;
    line-height: 1.8;
    text-align: center;
    color: #333;
    width: 100%;
}
.integrated-survey-accordion .header-main-text strong {
    display: block;
    margin-bottom: 0.2em;
}
.header-main-text .survey-question {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    line-height: 1.6;
    margin: 0 0 0.8em 0;
}
.header-main-text .survey-answer {
    font-size: 0.95em;
    line-height: 1.8;
    color: #555;
    margin: 0;
}
.integrated-survey-accordion .accordion-chousa {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1em;
    font-weight: bold;
    color: #005A9C;
    margin: 0 !important;
    padding: 0 !important;
}
.integrated-survey-accordion .accordion-chousa::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}
.integrated-survey-accordion .kaitaikoujigyousya-accordion-header.kaitaikoujigyousya-active .accordion-chousa::after {
    transform: rotate(180deg);
}
.integrated-survey-accordion .kaitaikoujigyousya-accordion-content {
    padding: 0 !important;
    border-top: 1px solid #e9ecef;
}

/* --- 調査項目一覧 --- */
.survey-link-wrapper {
    margin: 2.5em auto;
    padding: 1.5em;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}
.survey-link-text {
    text-align: center;
    font-size: 0.95em;
    line-height: 1.8;
    margin: 0;
}
.custom-survey-accordion .survey-items-wrapper {
    padding: 24px 32px;
    background-color: #fff;
}
.survey-grid {
    display: block;
}
.survey-category {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: baseline;
    gap: 1.5em;
    padding-bottom: 1em;
    margin-bottom: 1em;
    border-bottom: 1px solid #e0e0e0;
}
.survey-grid .survey-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.survey-category__title {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    margin: 0;
    padding: 0;
    border: none;
    gap: 0.5em;
}
.survey-category__name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}
.survey-category__count {
    font-size: 14px;
    font-weight: 600;
    color: #888;
}
.survey-category__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.survey-category__items .item {
    font-size: 12px;
    color: #555;
    background-color: #f8f9fa;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    position: relative;
    cursor: help;
}
.survey-items-note {
    text-align: right;
    font-size: 12px;
    color: #888;
    margin: 24px 0 0 0;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
@media screen and (max-width: 767px) {
    .custom-survey-accordion .survey-items-wrapper {
        padding: 20px 16px;
    }
    .survey-category {
        display: block;
    }
    .survey-category__title {
        margin-bottom: 0.8em;
    }
}


/* -------------------------------------------------------------------
 *  4-2. 業者カード (最終修正版)
 * ------------------------------------------------------------------- */
.kaitaikoujigyousya-company-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    padding: 0;
    margin-bottom: 2em;
}
.kaitaikoujigyousya-company-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* カードヘッダー */
.kaitaikoujigyousya-company-card .card-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
}
.kaitaikoujigyousya-company-card .header-image {
    width: 160px;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    border-radius: 8px;
    background-color: #f0f2f5;
    overflow: hidden;
}
.kaitaikoujigyousya-company-card .header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kaitaikoujigyousya-company-card .header-image .icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #2173bf;
    background: linear-gradient(135deg, #f0f7ff, #d9edff);
}
.kaitaikoujigyousya-company-card .header-info {
    flex-grow: 1;
}
.kaitaikoujigyousya-company-card .header-info h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 12px 0;
    padding: 0;
    border: none;
}
.kaitaikoujigyousya-company-card .header-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.kaitaikoujigyousya-company-card .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #555;
    background-color: #f8f9fa;
    padding: 4px 10px;
    border-radius: 4px;
}
.kaitaikoujigyousya-company-card .meta-item i {
    color: #2173bf;
}

/* カードボディ */
.kaitaikoujigyousya-company-card .card-body-grid {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.info-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    position: relative;
    padding: 2.2em 1.5em 1.5em;
}
.info-box-label {
    position: absolute;
    top: -12px;
    left: 20px;
    background-color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 2px solid white;
}
.info-box-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #222222;
}
.info-box-content p {
    margin: 0;
}
.comment-box { border-color: #d9534f; }
.comment-box .info-box-label { background-color: #d9534f; color: white; }
.feature-box { border-style: dashed; border-color: #d9534f; }
.feature-box .info-box-label { background-color: #d9534f; color: white; }
.feature-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 8px;
}
.feature-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.feature-checklist li i.fa-check {
    color: #d9534f;
}

/* カード内 企業紹介アコーディオン（グラデーション含む） */
.introduction-box {
    border-color: #17a2b8;
    padding-bottom: 40px;
}
.introduction-box .info-box-label {
    background-color: #17a2b8;
    color: white;
}
.introduction-box .intro-content-wrapper {
    max-height: 3.8em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease-in-out;
}
.introduction-box .intro-content-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2em;
    background: linear-gradient(to top, white 20%, transparent);
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}
.introduction-box.is-expanded .intro-content-wrapper {
    max-height: 500px;
}
.introduction-box.is-expanded .intro-content-wrapper::after {
    opacity: 0;
}
.intro-accordion-trigger-wrapper {
    position: absolute;
    bottom: 0;
    left: 1px;
    right: 1px;
    width: auto;
    text-align: center;
    padding: 8px 0;
    background: linear-gradient(to top, white 60%, rgba(255, 255, 255, 0));
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}
.intro-accordion-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    color: #2173bf;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
}
.intro-accordion-trigger i {
    transition: transform 0.3s ease;
}
.introduction-box.is-expanded .intro-accordion-trigger i {
    transform: rotate(180deg);
}

/* カードフッター (企業詳細アコーディオン) */
.kaitaikoujigyousya-company-card .card-accordion-footer {
    border-top: 1px solid #e9ecef;
}
.kaitaikoujigyousya-company-card .accordion-trigger {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 16px 24px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2173bf;
}
.kaitaikoujigyousya-company-card .accordion-trigger:hover {
    background-color: #f8f9fa;
}
.kaitaikoujigyousya-company-card .accordion-trigger i.fa-chevron-down {
    transition: transform 0.3s ease;
}
.kaitaikoujigyousya-company-card .accordion-trigger.active i.fa-chevron-down {
    transform: rotate(180deg);
}
.kaitaikoujigyousya-company-card .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.kaitaikoujigyousya-company-card .accordion-content-inner {
    padding: 24px;
}
.kaitaikoujigyousya-company-card .details-table,
.features-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-bottom: 24px;
}
.kaitaikoujigyousya-company-card .details-table th,
.kaitaikoujigyousya-company-card .details-table td,
.features-table th,
.features-table td {
    text-align: left;
    padding: 10px;
    border: 1px solid #e9ecef;
    vertical-align: top;
}
.kaitaikoujigyousya-company-card .details-table th,
.features-table th {
    background-color: #f8f9fa;
    width: 120px;
    font-weight: 600;
}
/* ★★★【修正点】詳細テーブル内のタグのスタイルを復元 ★★★ */
.kaitaikoujigyousya-company-card .details-table .tag-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.kaitaikoujigyousya-company-card .details-table .tag {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.features-table-wrapper {
    margin-top: 24px;
}
.features-table-wrapper h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 12px;
    padding: 0;
    border: none;
}
.features-table th {
    width: 180px;
}
.feature-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.feature-tag {
    font-size: 12px;
    color: #555;
    background-color: #f0f2f5;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: help;
}

/* カード内「特徴」セクション */
.kaitaikoujigyousya-features-section {
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #f0f0f0;
}
.kaitaikoujigyousya-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.kaitaikoujigyousya-feature-category h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f2f5;
}
.kaitaikoujigyousya-feature-category h4 i {
    color: #2173bf;
    font-size: 1rem;
}
.kaitaikoujigyousya-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.kaitaikoujigyousya-tag {
    background-color: #f7faff;
    color: #337ab7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #bce0fd;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
    margin: 0;
}
li.kaitaikoujigyousya-tag {
    margin: 4px;
}
.kaitaikoujigyousya-tag::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 6px;
    color: #31708f;
}
.no-features-info {
    text-align: center;
    color: #222222;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

/* カード内 料金表内訳 */
.price-breakdown {
    font-size: 0.7em;
    color: #555;
    text-align: left;
    line-height: 1.2;
}

/* カード内 許可番号アコーディオン */
.license-accordion .license-content {
    max-height: 4.5em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease-in-out;
}
.license-accordion.has-overflow .license-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2em;
    background: linear-gradient(to top, white 20%, transparent);
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
.license-accordion.is-open .license-content {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #aaa #f1f1f1;
}
.license-accordion.is-open .license-content::-webkit-scrollbar {
    display: block;
    width: 8px;
}
.license-accordion.is-open .license-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.license-accordion.is-open .license-content::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 4px;
}
.license-accordion.is-open .license-content::-webkit-scrollbar-thumb:hover {
    background: #888;
}
.license-accordion.is-open .license-content::after {
    opacity: 0;
}
.license-toggle-button {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    color: #0073aa;
    background-color: #f3f5f6;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
}
.license-toggle-button:hover {
    background-color: #f0f0f1;
    border-color: #8c8f94;
}

/* カード レスポンシブ対応 */
@media (max-width: 767px) {
    .kaitaikoujigyousya-company-card .card-header {
        padding: 16px;
        flex-direction: column;
        align-items: center;
    }
    .kaitaikoujigyousya-company-card .header-info {
        width: 100%;
        text-align: center;
        order: 1;
    }
    .kaitaikoujigyousya-company-card .header-image {
        width: 100%;
        max-width: 280px;
        order: 2;
    }
    .kaitaikoujigyousya-company-card .header-info h3 {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }
    .kaitaikoujigyousya-company-card .header-meta-info {
        justify-content: center;
        gap: 6px;
        flex-wrap: nowrap;
    }
    .kaitaikoujigyousya-company-card .meta-item {
        font-size: 0.75rem;
        padding: 3px 8px;
        gap: 4px;
        white-space: nowrap;
    }
    .kaitaikoujigyousya-company-card .meta-item i {
        display: none;
    }
    .kaitaikoujigyousya-company-card .meta-item:first-child i {
        display: block;
    }
    .kaitaikoujigyousya-company-card .card-body-grid {
        padding: 16px;
        gap: 16px;
        margin-top: 16px;
    }
    .info-box {
        padding: 2em 1em 1em;
    }
    .introduction-box {
        padding-bottom: 35px;
    }
    .feature-checklist {
        flex-direction: column;
        align-items: flex-start;
    }
    .features-table th {
        width: 120px;
    }
}


/* ===================================================================
 *  4-3. もっと見るボタン (新仕様)
 * =================================================================== */
.kaitaikoujigyousya-load-more-container {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

.kaitaikoujigyousya-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background-color: #d9534f;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.kaitaikoujigyousya-load-more-btn:hover {
    background-color: #c9302c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.kaitaikoujigyousya-load-more-btn i {
    margin-right: 10px;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

/* ローディング中のスタイル */
.kaitaikoujigyousya-load-more-btn.is-loading {
    pointer-events: none;
    background-color: #aaa;
}

.kaitaikoujigyousya-load-more-btn.is-loading i {
    margin-right: 10px;
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.kaitaikoujigyousya-load-more-btn.is-loading::before {
    content: '\f110'; /* Font Awesomeのスピナーアイコン */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    animation: spin 1s linear infinite;
}
.kaitaikoujigyousya-load-more-btn.is-loading i {
    display: none; /* 元のアイコンは非表示 */
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* -------------------------------------------------------------------
 *  4-4. タブ・フィルタリング
 * ------------------------------------------------------------------- */
.kaitaikoujigyousya-scroll-wrapper {
    position: relative;
    margin-bottom: 20px;
}
.kaitaikoujigyousya-tab-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 15px;
}
.kaitaikoujigyousya-tab-btn {
    white-space: nowrap;
    padding: 10px 20px;
    border: none;
    background-color: #f8f9fa;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.kaitaikoujigyousya-tab-btn:hover {
    background-color: #e9ecef;
    color: #333;
}
.kaitaikoujigyousya-tab-btn.kaitaikoujigyousya-active {
    background-color: #2173bf;
    color: white;
}
@media (max-width: 959px) {
    .kaitaikoujigyousya-scroll-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 15px;
        width: 60px;
        background: linear-gradient(to left, #fafafa 30%, rgba(250, 250, 250, 0));
        pointer-events: none;
    }
}
@media (hover: none) {
    .kaitaikoujigyousya-tab-nav::-webkit-scrollbar {
        display: none;
    }
}


/* -------------------------------------------------------------------
 *  4-5. CTA (Call To Action)
 * ------------------------------------------------------------------- */
.kaitaikoujigyousya-cta-box-single {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 1.5em auto;
    padding: 24px;
    overflow: hidden;
    max-width: 800px;
}
.kaitaikoujigyousya-cta-item {
    display: flex;
    align-items: flex-start;
}
.kaitaikoujigyousya-cta-figure {
    position: relative;
    flex-shrink: 0;
    margin-right: 20px;
    width: 100px;
}
.kaitaikoujigyousya-cta-figure img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
}
.kaitaikoujigyousya-cta-label {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #fff;
    background-color: #D9534F;
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
}
.kaitaikoujigyousya-cta-body {
    flex-grow: 1;
    min-width: 0;
}
.kaitaikoujigyousya-cta-head {
    margin-bottom: 15px;
}
.kaitaikoujigyousya-cta-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
}
.kaitaikoujigyousya-cta-position {
    font-size: 13px;
    font-weight: bold;
    color: #555;
    margin: 0 0 8px 0;
}
.kaitaikoujigyousya-cta-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 0.5em;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}
.kaitaikoujigyousya-cta-name-reading {
    font-size: 0.7em;
    font-weight: normal;
    color: #555;
}
.kaitaikoujigyousya-cta-description {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.kaitaikoujigyousya-cta-description p {
    margin: 0;
}
.kaitaikoujigyousya-cta-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
}
.kaitaikoujigyousya-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.kaitaikoujigyousya-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.kaitaikoujigyousya-cta-button i {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}
.kaitaikoujigyousya-cta-button.primary {
    background: linear-gradient(135deg, #D9534F 0%, #C9302C 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(217, 83, 79, 0.3);
}
.kaitaikoujigyousya-cta-button.primary:hover {
    box-shadow: 0 8px 25px rgba(217, 83, 79, 0.4);
}
.kaitaikoujigyousya-cta-button-text-wrapper {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    position: relative;
}
.kaitaikoujigyousya-cta-button-main-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}
.kaitaikoujigyousya-cta-button-sub-text {
    font-size: 14px;
    line-height: 1.3;
    margin-top: 4px;
    display: block;
    opacity: 0.9;
}
.kaitaikoujigyousya-cta-sns-list {
    list-style: none;
    padding-left: 0;
    margin: 16px 0 0 0;
    display: flex;
    gap: 16px;
}
.kaitaikoujigyousya-cta-sns-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #e5e7eb;
    border-radius: 50%;
    text-decoration: none;
    transition: opacity 0.2s;
}
.kaitaikoujigyousya-cta-sns-list a:hover {
    opacity: 0.7;
}
.kaitaikoujigyousya-cta-sns-icon {
    color: #4b5563;
    font-size: 18px;
}
.kaitaikoujigyousya-cta-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
    font-size: 14px;
    color: #4b5563;
    text-align: left;
}
.kaitaikoujigyousya-cta-footer-text {
    justify-content: center;
    gap: 8px;
    margin: 0;
}

@media (max-width: 600px) {
    .kaitaikoujigyousya-cta-item {
        flex-direction: column;
        align-items: center;
    }
    .kaitaikoujigyousya-cta-figure {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .kaitaikoujigyousya-cta-body {
        width: 100%;
        text-align: center;
    }
    .kaitaikoujigyousya-cta-title {
        font-size: 20px;
    }
    .kaitaikoujigyousya-cta-name {
        font-size: 16px;
        justify-content: center;
    }
    .kaitaikoujigyousya-cta-description {
        text-align: left;
        font-size: 15px;
    }
    .kaitaikoujigyousya-cta-sns-list {
        justify-content: center;
    }
    .kaitaikoujigyousya-cta-button-text-wrapper {
        text-align: center;
    }
    .kaitaikoujigyousya-cta-button {
        padding: 18px 20px;
    }
}


/* -------------------------------------------------------------------
 *  4-6. 早見表
 * ------------------------------------------------------------------- */
.wp-block-table tbody tr.is-airtakumi-row {
    background-color: #f0f7ff;
}
.wp-block-table tbody tr.is-airtakumi-row:hover {
    background-color: #e6f2ff;
}
.wp-block-table tbody tr.is-airtakumi-row th {
    border-left: 4px solid #005a9c;
    border-right: 1px solid #ddd;
}
.pickup-table {
    margin-top: 1.5em;
}
.pickup-appeal-points-list {
    padding-left: 20px;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.6;
}
.pickup-appeal-points-list li {
    padding-left: 0;
    margin-bottom: 4px;
}
.pickup-appeal-points-list li:last-child {
    margin-bottom: 0;
}
.pickup-appeal-points-list li strong {
    color: #005A9C;
}
.pickup-table-button-site {
    display: inline-block;
    padding: 0.7em 1.2em;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    background-color: #d9534f;
    color: #fff;
    transition: opacity 0.2s;
}
.pickup-table-button-site:hover {
    opacity: 0.8;
}

/* 早見表 選定基準 */
.criteria-list-for-disassembly {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}
.criteria-list-for-disassembly li {
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1.6;
    display: flex;
    align-items: center;
}
.criteria-list-for-disassembly li:not(:last-child) {
    margin-bottom: 0.5em;
}
.criteria-list-for-disassembly .criteria-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #005A9C;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 0.8em;
}
.criteria-note {
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px dashed #ddd;
    font-size: 0.85em;
}
.criteria-note:first-of-type {
    margin-top: 1.5em;
    padding-top: 1.5em;
}
.criteria-note p {
    margin: 0;
    line-height: 1.7;
}
.criteria-note p:first-child {
    font-weight: bold;
    color: #005A9C;
    margin-bottom: 0.3em;
}
.criteria-note i {
    margin-right: 0.3em;
}


/* -------------------------------------------------------------------
 *  4-7. チェックポイント・フロー
 * ------------------------------------------------------------------- */
.ac-point-card-wrapper {
    position: relative;
    margin-top: 2.5em;
    padding-left: 60px;
}
.ac-point-card-wrapper::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 15px;
    bottom: 15px;
    width: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    z-index: 0;
}
.ac-point-card {
    position: relative;
    background: none;
    border: none;
    box-shadow: none;
}
.ac-point-card:not(:last-child) {
    padding-bottom: 3.5em;
    margin-bottom: 0;
}
.ac-point-icon {
    position: absolute;
    left: -60px;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #005A9C;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 4px solid #fff;
    z-index: 1;
}
.ac-point-header-iconized {
    display: block;
    padding: 0;
    background: none;
    border: none;
    margin-bottom: 1em;
}
.ac-point-header-text {
    display: block;
}
.ac-point-number {
    color: #555;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 0.3em;
    display: block;
}
.ac-point-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 !important;
    line-height: 1.4;
    padding: 0 !important;
}
.no-underline::before,
.no-underline::after {
    display: none !important;
}
.ac-point-body {
    padding: 0;
}
.ac-point-body > p:not(.ac-point-caption) {
    margin-bottom: 1.5em;
}
.ac-point-image {
    margin-bottom: 1.5em;
}
.ac-point-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    border: 1px solid #eee;
}
.ac-point-caption {
    font-size: 0.85em;
    color: #555;
    margin: 0.8em 0 0 0;
    text-align: center;
    line-height: 1.5;
}
.ac-point-checklist-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5em;
    margin-top: 1.5em;
}
.ac-point-checklist-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin: 0 0 1em 0;
    padding: 0;
    border: none;
}
.ac-point-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ac-point-checklist li {
    display: flex;
    align-items: flex-start;
    line-height: 1.8;
    font-size: 1em;
}
.ac-point-checklist li:not(:last-child) {
    margin-bottom: 0.8em;
}
.ac-point-checklist i.fas {
    color: #005A9C;
    margin-right: 0.8em;
    margin-top: 0.3em;
    font-size: 1.2em;
}

@media screen and (max-width: 767px) {
    .ac-point-card-wrapper {
        padding-left: 0;
        margin-top: 1.5em;
    }
    .ac-point-card-wrapper::before {
        display: none;
    }
    .ac-point-card:not(:last-child) {
        margin-bottom: 0.5em;
    }
    .ac-point-header-iconized {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 1.2em;
    }
    .ac-point-icon {
        position: static;
        border: none;
        flex-shrink: 0;
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }
    .ac-point-title {
        font-size: 1.25rem;
    }
    .ac-point-body {
        padding: 0 5px;
    }
    .ac-point-checklist-box {
        padding: 1.2em;
    }
    .ac-point-checklist li {
        font-size: 0.95em;
    }
    .ac-point-checklist i.fas {
        margin-right: 0.6em;
    }
}


/* -------------------------------------------------------------------
 *  4-8. その他
 * ------------------------------------------------------------------- */

/* --- 業者様向けパートナー募集ボックス --- */
.gyousya-partner-appeal-box {
    display: flex;
    align-items: center;
    gap: 1.5em;
    background-color: #f0f7ff;
    border: 1px solid #bce0fd;
    border-left: 5px solid #007bff;
    padding: 1.5em;
    border-radius: 8px;
    margin-top: 2.5em;
}
.appeal-box-icon {
    flex-shrink: 0;
    font-size: 2.5em;
    color: #007bff;
}
.appeal-box-content {
    flex-grow: 1;
}
.appeal-box-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin: 0 0 0.5em 0;
}
.appeal-box-content p {
    font-size: 0.9em;
    line-height: 1.7;
    margin: 0;
    color: #555;
}
.appeal-box-action {
    flex-shrink: 0;
}
.appeal-box-action .c-button {
    white-space: nowrap;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
}
.appeal-box-action .c-button:hover {
    background-color: #0056b3;
    color: #fff;
}

@media (max-width: 767px) {
    .gyousya-partner-appeal-box {
        flex-direction: column;
        text-align: center;
        gap: 1em;
    }
    .appeal-box-action {
        width: 100%;
    }
    .appeal-box-action .c-button {
        display: block;
    }
}


/* ===================================================================
 *  5. ページ固有スタイル
 * =================================================================== */

/* --- エリア別業者一覧ページ(tax-area)の背景色 --- */
#body_wrap.tax-area,
#body_wrap.post-type-archive-kaitaikoujigyousya {
    background-color: #fff;
}


/* --- 費用相場テーブルのスタイル --- */

/* PC向けスタイル（基本） */
.hiyousouba {
  width: 100%;
  border-collapse: collapse; /* セルの境界線を重ねる */
  margin: 2em 0; /* テーブルの上下に余白を設ける */
  font-size: 16px;
  color: #333;
  border: 1px solid #ddd;
}

.hiyousouba th,
.hiyousouba td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd; /* 水平方向の罫線 */
}

/* テーブルヘッダー行のスタイル */
.hiyousouba tbody tr:first-child th {
  background-color: #f8f8f8; /* ヘッダーの背景色 */
  font-weight: bold;
  text-align: center;
  font-size: 0.9em;
  color: #555;
}

/* データ行の項目名（木造、鉄骨造など） */
.hiyousouba tbody th {
  font-weight: bold;
  background-color: #f8f8f8;
  width: 20%; /* 項目名の列幅を固定 */
}

/* データセル（金額）のスタイル */
.hiyousouba td {
  text-align: right; /* 金額は右揃えが見やすい */
}

.hiyousouba .sp-price {
  font-weight: bold;
  font-size: 1.1em;
  color: #d9534f; /* 目立たせるための色（サイトのテーマカラーに合わせて変更可） */
  white-space: nowrap; /* 金額が改行されないようにする */
}

.hiyousouba .unit {
  font-size: 0.8em;
  margin-left: 4px;
  color: #666;
  font-weight: normal;
}


/* --- スマートフォン向けレスポンシブ対応 --- */
/* 画面幅が768px以下の場合に適用 */
@media screen and (max-width: 768px) {
  
  .hiyousouba {
    border: none; /* テーブル全体の枠線を消す */
  }

  /* PC用のテーブルヘッダー行を非表示にする */
  .hiyousouba tbody tr:first-child {
    display: none;
  }

  /* テーブルの各要素をブロックレベル要素に変更して縦並びにする */
  .hiyousouba tr,
  .hiyousouba th,
  .hiyousouba td {
    display: block;
    width: 100%;
    box-sizing: border-box; /* paddingとborderをwidthに含める */
  }
  
  /* 行をカードのように見せる */
  .hiyousouba tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px; /* カードの角を少し丸める */
    overflow: hidden; /* 角丸を適用するため */
  }

  /* データ行の項目名（木造など）をカードのヘッダーのように見せる */
  .hiyousouba tbody th {
    text-align: center;
    background-color: #666; /* カードヘッダーの背景色 */
    color: #fff;
    border-bottom: 1px solid #ddd;
  }

  /* データセル */
  .hiyousouba td {
    text-align: right;
    padding-left: 50%; /* ラベルを表示するスペースを左側に確保 */
    position: relative; /* ::before疑似要素の基準位置とする */
    border-bottom: none; /* セルごとの罫線は不要 */
  }
  
  .hiyousouba td:not(:last-child) {
      border-bottom: 1px dashed #eee; /* データ間の区切り線 */
  }

  /* ::before疑似要素を使って、各データのラベル（項目名）を生成 */
  .hiyousouba td::before {
    content: attr(data-label); /* data-label属性の内容を表示 */
    position: absolute;
    left: 15px;
    width: calc(50% - 25px);
    padding-right: 10px;
    text-align: left;
    font-weight: bold;
    color: #555;
    font-size: 0.9em;
  }
  
  /* 1番目のデータセル（坪単価）にラベルを設定 */
  .hiyousouba td:nth-of-type(1)::before {
      content: "坪単価（実勢価格）";
  }

  /* 2番目のデータセル（変動幅）にラベルを設定 */
  .hiyousouba td:nth-of-type(2)::before {
      content: "現場状況による費用の変動幅";
  }

  .hiyousouba .sp-price {
    font-size: 1em; /* スマホでは少しフォントサイズを調整 */
  }
}

/* --- 費用相場データの出典元スタイル --- */
.hiyousouba-source {
  text-align: right; /* 右寄せにする */
  font-size: 12px;   /* 少し小さめの文字サイズ */
  color: #666;      /* やや薄めの文字色 */
  margin-top: 8px;   /* テーブルとの間に少し余白を設ける */
  margin-bottom: 2em; /* 次のセクションとの余白を確保 */
}

/* ==========================================
   地域特性アコーディオン（開閉・トグル対応版）
   ========================================== */

/* 1. 枠組み */
.city-characteristics-wrap {
    position: relative;
    overflow: hidden;
    transition: max-height 0.6s ease; /* 高さのアニメーション */
    margin-bottom: 2em;
}

/* 中身の余白調整（SWELL対策） */
.city-characteristics-wrap > h3 { margin-top: 2em; margin-bottom: 1.5em; }
.city-characteristics-wrap > p,
.city-characteristics-wrap > ul,
.city-characteristics-wrap > table,
.city-characteristics-wrap > div { margin-bottom: 1.5em; line-height: 1.8; }

/* 2. 閉じている時（初期状態） */
.city-characteristics-wrap.is-closed {
    max-height: 400px; /* ★重要：heightではなくmax-heightを使う */
}

/* グラデーション（閉じている時のみ表示） */
.city-characteristics-wrap::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(253,253,253,1) 80%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s;
    opacity: 0; /* デフォルトは隠す */
    visibility: hidden;
}

/* 閉じている時だけグラデーションを出す */
.city-characteristics-wrap.is-closed::after {
    opacity: 1;
    visibility: visible;
}

/* 3. 開いている時 */
.city-characteristics-wrap.is-open {
    max-height: 5000px; /* 十分大きな値を指定して全表示させる */
}

/* 4. ボタンのデザイン */
.city-read-more-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 4em;
    padding: 15px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 3;
}
.city-read-more-btn:hover {
    background-color: #eee;
    transform: translateY(2px);
}
.city-read-more-btn i {
    margin-right: 8px;
    color: var(--color_main);
    transition: transform 0.3s;
}

/* 開いている時は矢印を回転 */
.city-read-more-btn.is-open i {
    transform: rotate(180deg);
}

/* ==========================================
   地域特性コンテンツ（都道府県・市区町村共通）
   読みやすさ調整用追加CSS
   ========================================== */

/* アコーディオン内の見出し（h3）のデザイン統一 */
.city-characteristics-wrap h3 {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 2.5em;
    margin-bottom: 1.2em;
    padding-bottom: 0.5em;
    line-height: 1.4;
}

/* アコーディオン内の段落（p）の余白と行間 */
.city-characteristics-wrap p {
    margin-bottom: 1.5em;
    line-height: 1.9; /* ゆったりめの行間 */
    text-align: justify; /* 両端揃えで見栄えを良くする */
}

/* 結論（太字pタグ）のデザイン */
.city-characteristics-wrap p strong {
    display: block; /* ブロック要素のように扱う */
    background: #f9f9f9; /* 薄い背景色 */
    padding: 1em;
    border-radius: 4px;
    margin-bottom: 2em;
    font-weight: bold;
}

/* リスト（ul/li）のデザイン */
.city-characteristics-wrap ul {
    list-style: none; /* デフォルトの点を消す */
    padding: 0;
    margin-bottom: 2em;
}

.city-characteristics-wrap li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 1em;
    line-height: 1.7;
}

/* リストのアイコン（チェックマーク風） */
.city-characteristics-wrap li::before {
    content: "✔"; /* またはアイコンフォント */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color_main, #333);
    font-weight: bold;
}

/* 強調部分（strong）の色 */
.city-characteristics-wrap li strong {
    color: #d32f2f; /* 赤系で強調 */
    background: linear-gradient(transparent 70%, #ffcccc 70%); /* 蛍光ペン風マーカー */
}

/* ===================================================================
 *  6. 詳細ページ (single-kaitaikoujigyousya.php) 用スタイル
 * =================================================================== */

/* ヘッダーエリアの2カラムレイアウト */
.single-hero-area {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 40px;
    align-items: stretch;
}

/* ヘッダー：画像部分 */
.hero-left-image {
    width: 45%;
    flex-shrink: 0;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 1px solid #eee;
}
.hero-left-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ヘッダー：情報テーブル部分 */
.hero-right-info {
    width: 55%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #e0e0e0;
}
.hero-table th, .hero-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: middle;
    font-size: 0.95rem;
}
.hero-table th {
    background: #f2f4f5;
    width: 30%;
    font-weight: bold;
    color: #333;
}
.hero-table td {
    background: #fff;
}
.hero-icon-fallback { font-size: 3rem; color: #ccc; }

/* スマホ対応 */
@media (max-width: 768px) {
    .single-hero-area { flex-direction: column; }
    .hero-left-image, .hero-right-info { width: 100%; }
    
    /* 詳細テーブルのレスポンシブ調整 */
    .details-table th, .features-table th { width: 30%; font-size: 0.85rem; padding: 10px; }
    .details-table td, .features-table td { font-size: 0.9rem; padding: 10px; }
}

/* 既存コンポーネントの調整（詳細ページ用） */
.single-gyousya-wrapper .info-box { box-shadow: none; margin-bottom: 2em; }

/* アコーディオン強制解除 */
.single-gyousya-wrapper .intro-content-wrapper,
.single-gyousya-wrapper .license-content { max-height: none !important; overflow: visible !important; }
.single-gyousya-wrapper .intro-content-wrapper::after,
.single-gyousya-wrapper .license-content::after { display: none !important; }
.single-gyousya-wrapper .intro-accordion-trigger-wrapper,
.single-gyousya-wrapper .license-toggle-button { display: none !important; }

/* Googleマップ */
.gyousya-map-section { margin: 0 0 3em 0; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.gyousya-map-section iframe { width: 100%; height: 350px; border: 0; display: block; }
.map-label { background: #f8f9fa; padding: 10px 15px; font-weight: bold; border-bottom: 1px solid #ddd; font-size: 1rem; }

/* 詳細テーブル・特徴テーブル（カード外用スタイル） */
.details-table, .features-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-bottom: 24px;
}
.details-table th, .details-table td,
.features-table th, .features-table td {
    border: 1px solid #e9ecef;
    padding: 12px 15px;
    text-align: left;
    vertical-align: top;
}
.details-table th, .features-table th {
    background-color: #f8f9fa;
    width: 25%;
    font-weight: 600;
    color: #333;
}

/* タグスタイル */
.tag-list-inline { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { background: #e9ecef; padding: 2px 8px; border-radius: 4px; font-size: 0.85em; }
.feature-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-tag { font-size: 12px; color: #555; background-color: #f0f2f5; padding: 4px 10px; border-radius: 4px; }


/* =========================================
 * 詳細ページ誘導ボタン（カード内）
 * ========================================= */
.card-main-action {
    margin-top: 1.5em;
    text-align: center;
}

.c-btn-detail-main {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #2173bf 0%, #1a5c99 100%);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(33, 115, 191, 0.3);
    transition: all 0.3s ease;
    font-size: 1.05em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.c-btn-detail-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(33, 115, 191, 0.4);
    background: linear-gradient(135deg, #2680d1 0%, #1e6ab0 100%);
    color: #fff;
}

/* タイトルリンク */
a.gyousya-title-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}
a.gyousya-title-link:hover {
    color: #2173bf;
    text-decoration: underline;
}

/* 画像リンク */
a.gyousya-img-link {
    display: block;
    width: 100%;
    height: 100%;
}