@charset "UTF-8";

/* ===================================================================
 *  施工事例（sekoujirei）統合スタイルシート
 *
 *  1. 詳細ページ (single-sekoujirei.php)
 *  2. 一覧カード (archive / taxonomy 共通)
 *  3. エリア子ターム一覧
 *  4. 業者一覧への相互リンク
 *  5. 関連施工事例セクション（single）
 *  6. エリアナビゲーション（archive）
 *  7. ページ固有
 *
 * =================================================================== */


/* ===================================================================
 *  1. 詳細ページ (single-sekoujirei.php)
 * =================================================================== */

/* --- ページヘッダー（H1 + 更新日）--- */
/* single-kaitaikoujigyousya.php と同じ配置 */
.sekoujirei-page-header {
    margin-bottom: 15px;
}
.sekoujirei-page-header .c-postTitle__ttl {
    margin-bottom: 5px;
}

/* --- ヒーローエリア（画像 + テーブルの2カラム） --- */
/* 既存 kaitaikoujigyousya.css の .single-hero-area を参考 */
.sekoujirei-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;
}

/* ヒーロー：画像部分 */
.sekoujirei-hero-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;
}
.sekoujirei-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sekoujirei-hero-image .icon-fallback {
    font-size: 3rem;
    color: #ccc;
}

/* ヒーロー：情報テーブル部分 */
.sekoujirei-hero-info {
    width: 55%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- 建物情報テーブル --- */
/* 既存 .hero-table / .details-table スタイル準拠 */
.sekoujirei-info-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #e0e0e0;
}
.sekoujirei-info-table th,
.sekoujirei-info-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: middle;
    font-size: 0.95rem;
}
.sekoujirei-info-table th {
    background: #f2f4f5;
    width: 30%;
    font-weight: bold;
    color: #333;
}
.sekoujirei-info-table td {
    background: #fff;
}

/* 費用のハイライト表示 */
.sekoujirei-info-table .cost-highlight {
    font-weight: bold;
    font-size: 1.1em;
    color: #d9534f;
}

/* --- ページ更新日（業者一覧と同じスタイル） --- */
.page-updated-date {
    text-align: right;
    margin-bottom: 1.5em;
    font-size: 0.7em;
    color: #999999;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .sekoujirei-hero-area {
        flex-direction: column;
    }
    .sekoujirei-hero-image,
    .sekoujirei-hero-info {
        width: 100%;
    }
    .sekoujirei-info-table th {
        width: 30%;
        font-size: 0.85rem;
        padding: 10px;
    }
    .sekoujirei-info-table td {
        font-size: 0.9rem;
        padding: 10px;
    }
}


/* ===================================================================
 *  2. 一覧カード (archive / taxonomy 共通)
 * =================================================================== */

/* --- カードグリッド --- */
.sekoujirei-card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
    margin-top: 1.5em;
}

/* --- カード本体 --- */
/* 既存 .kaitaikoujigyousya-company-card のデザイン準拠 */
.sekoujirei-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease;
}
.sekoujirei-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* --- カード画像 --- */
.sekoujirei-card__thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.sekoujirei-card__nothumb {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #2173bf;
    background: linear-gradient(135deg, #f0f7ff, #d9edff);
}

/* --- カードボディ --- */
.sekoujirei-card__body {
    padding: 16px 20px;
}

/* --- カードタイトル --- */
/* SWELLの.post_content h2/h3デフォルトスタイル（背景色・パディング等）をリセット */
.sekoujirei-card__title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 12px 0;
    padding: 0;
    border: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: transparent;
    background-color: transparent;
    background-image: none;
}
/* .post_content内でのSWELL干渉を確実にリセット */
.post_content .sekoujirei-card h2,
.post_content .sekoujirei-card h3 {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #2c3e50 !important;
    padding: 0 !important;
    margin: 0 0 12px 0 !important;
    border: none !important;
    font-size: 1.1rem !important;
}

/* --- カードメタ情報 --- */
/* 既存 .meta-item スタイル準拠 */
.sekoujirei-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.sekoujirei-card__meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #555;
    background-color: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
}
.sekoujirei-card__meta-item i {
    color: #2173bf;
    font-size: 0.85em;
}

/* --- 費用表示 --- */
/* 既存 .sp-price / .d9534f の赤系ハイライト準拠 */
.sekoujirei-card__cost {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}
.sekoujirei-card__cost .cost-label {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    font-weight: 600;
}
.sekoujirei-card__cost .cost-value {
    font-size: 1.15em;
    font-weight: bold;
    color: #d9534f;
}

/* --- 件数0の場合 --- */
/* 既存 .gyousya-no-result-box 準拠 */
.sekoujirei-no-results {
    text-align: center;
    padding: 2em;
    margin: 1.5em 0 2em 0;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #6c757d;
    line-height: 1.8;
}

/* レスポンシブ */
@media (max-width: 767px) {
    .sekoujirei-card-list {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
    .sekoujirei-card__thumb img,
    .sekoujirei-card__nothumb {
        height: 220px;
    }
    .sekoujirei-card__body {
        padding: 14px 16px;
    }
    .sekoujirei-card__meta-item {
        font-size: 0.78rem;
        padding: 2px 6px;
    }
}


/* ===================================================================
 *  3. エリア子ターム一覧
 * =================================================================== */

/* 既存 .gyousya-municipality-grid / .gyousya-municipality-grid-item 準拠 */
.sekoujirei-child-terms__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-bottom: 2em;
}
.sekoujirei-child-terms__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    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;
}
.sekoujirei-child-terms__item:hover {
    background-color: #2173bf;
    border-color: #2173bf;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.sekoujirei-child-terms__count {
    font-size: 0.9em;
    font-weight: normal;
    color: #6c757d;
    white-space: nowrap;
    margin-left: 1em;
}
.sekoujirei-child-terms__item:hover .sekoujirei-child-terms__count {
    color: #fff;
}

/* レスポンシブ */
@media (max-width: 767px) {
    .sekoujirei-child-terms__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .sekoujirei-child-terms__item {
        padding: 12px 8px;
        font-size: 14px;
    }
}


/* ===================================================================
 *  4. 業者一覧への相互リンク
 * =================================================================== */

/* 関連リンク横並び（業者一覧 + 親エリア施工事例） */
.sekoujirei-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    margin-top: 2.5em;
}

@media (max-width: 767px) {
    .sekoujirei-related-links {
        flex-direction: column;
        align-items: center;
    }
}

/* 既存 .parent-area-link（area-child-list.php）と統一感のあるデザイン */
.sekoujirei-area-link-wrapper {
    margin: 1.5em 0;
}

/* 通常リンク（親ターム戻りなど） */
.sekoujirei-area-link {
    display: inline-block;
    font-weight: bold;
    font-size: 1em;
    padding: 0.7em 1.2em;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}
.sekoujirei-area-link:hover {
    background: #e8e8e8;
    border-color: #ccc;
    color: #333;
}

/* CTAリンク（業者一覧への誘導） */
.sekoujirei-area-link--cta {
    background: #2173bf;
    border-color: #2173bf;
    color: #fff;
}
.sekoujirei-area-link--cta:hover {
    background: #1a5c9e;
    border-color: #1a5c9e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 115, 191, 0.3);
}


/* ===================================================================
 *  5. 関連施工事例セクション（single）
 * =================================================================== */

.sekoujirei-related {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 2px solid #e9ecef;
}

.sekoujirei-related__title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1em;
    padding: 0;
    border: none;
    background: transparent;
}

/* 関連施工事例のカードは2列（singleページは2カラムレイアウトのため） */
.sekoujirei-card-list--related {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
    margin-top: 1em;
}

@media (max-width: 767px) {
    .sekoujirei-card-list--related {
        grid-template-columns: 1fr;
    }
}


/* ===================================================================
 *  6. エリアナビゲーション（archive）
 * =================================================================== */

.sekoujirei-area-nav {
    margin: 2em 0;
    padding: 1.5em;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.sekoujirei-area-nav__title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1em;
    padding: 0;
    border: none;
    background: transparent;
}
/* SWELLのh2スタイル干渉をリセット（セクションタイトル全般） */
.post_content .sekoujirei-related__title,
.post_content .sekoujirei-area-nav__title {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    padding: 0 !important;
    border: none !important;
}


/* ===================================================================
 *  7. 施工事例ピックアップ（業者一覧ページ内）
 * =================================================================== */

/* セクション全体 */
.sekoujirei-pickup {
    margin: 3em 0;
    padding: 1.5em 2em 2em;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
}

/* 見出し */
.sekoujirei-pickup__title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 0.8em 0;
    padding: 0 0 0.6em 0;
    border-bottom: none;
    background: transparent;
}
.sekoujirei-pickup__title i {
    color: #04374C;
    margin-right: 0.3em;
}
/* SWELLのh2スタイル干渉を完全リセット */
.post_content .sekoujirei-pickup__title,
.post_content h2.sekoujirei-pickup__title {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    padding: 0 0 0.6em 0 !important;
    margin: 0 0 0.8em 0 !important;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    color: #2c3e50 !important;
    font-size: 1.2rem !important;
    position: relative;
}
.post_content .sekoujirei-pickup__title::before,
.post_content .sekoujirei-pickup__title::after {
    content: none !important;
    display: none !important;
}

/* カードリスト */
.sekoujirei-pickup__list {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

/* 横型カード */
.sekoujirei-pickup__card {
    display: flex;
    gap: 1em;
    padding: 1em;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease;
}
.sekoujirei-pickup__card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: inherit;
}

/* サムネイル */
.sekoujirei-pickup__thumb {
    width: 120px;
    min-width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.sekoujirei-pickup__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sekoujirei-pickup__nothumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f7ff, #d9edff);
    color: #2173bf;
    font-size: 1.5rem;
}

/* テキスト部分 */
.sekoujirei-pickup__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* カードタイトル */
.sekoujirei-pickup__card-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 8px 0;
    padding: 0;
    border: none;
    background: transparent;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* SWELL干渉リセット */
.post_content .sekoujirei-pickup__card h3,
.post_content h3.sekoujirei-pickup__card-title {
    background: transparent !important;
    background-image: none !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 0 8px 0 !important;
    border: none !important;
    font-size: 0.95rem !important;
    color: #2c3e50 !important;
}

/* メタ情報 */
.sekoujirei-pickup__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.sekoujirei-pickup__meta-item {
    font-size: 0.8rem;
    color: #555;
    background: #f0f2f4;
    padding: 2px 8px;
    border-radius: 3px;
}
.sekoujirei-pickup__meta-item i {
    color: #2173bf;
    font-size: 0.8em;
    margin-right: 3px;
}
/* 費用は赤で目立たせる */
.sekoujirei-pickup__meta-item--cost {
    color: #d9534f;
    font-weight: bold;
    background: #fff5f5;
}

/* もっと見るリンク */
.sekoujirei-pickup__more {
    text-align: center;
    margin-top: 1.2em;
}

/* スマホ対応 */
@media (max-width: 767px) {
    .sekoujirei-pickup {
        padding: 1.2em 1em 1.5em;
    }
    .sekoujirei-pickup__thumb {
        width: 100px;
        min-width: 100px;
        height: 75px;
    }
    .sekoujirei-pickup__card-title {
        font-size: 0.88rem;
    }
    .sekoujirei-pickup__meta-item {
        font-size: 0.75rem;
    }
}


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

/* アーカイブ/タクソノミーの背景色（既存サイト準拠） */
#body_wrap.post-type-archive-sekoujirei,
#body_wrap.tax-areasj {
    background-color: #fff;
}
