/* =================================
   single-case.css
   施工事例 シングルページ（single-case.php）
   SP モック：中央見出し・メイン＋サムネ4枚・本文・2列テーブル・関連見出し
================================= */

.single-case {
    background-color: #fff;
}

/* =================================
   事例詳細セクション
================================= */
.sc-case-detail {
    padding: 28px 15px 40px;
    background-color: #fff;
}

.sc-case-detail_inner {
    max-width: 920px;
    margin: 0 auto;
}

.sc-case-detail_page_ttl {
    font-family: 'Zen Maru Gothic', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: clamp(26px, 5vw, 26px);
    font-weight: 800;
    color: #2b3a6d;
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.35;
    letter-spacing: 0.15rem;
}

/* =================================
   ギャラリー
   SP: スワイプ / PC: メイン＋右サムネ
================================= */
.sc-case-detail_gallery {
    margin-bottom: 28px;
}

.sc-case-detail_gallery_main {
    min-width: 0;
}

.sc-case-detail_gallery_stage {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background-color: #e8e8e8;
}

.sc-case-detail_gallery_main_img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    vertical-align: middle;
}

.sc-case-detail_gallery_thumbs {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sc-case-detail_gallery_thumb {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 2px;
    overflow: hidden;
    background-color: #e0e0e0;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    color: inherit;
}

.sc-case-detail_gallery_thumb.is-active {
    border-color: #2b3a6d;
}

.sc-case-detail_gallery_thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
}

.sc-case-detail_gallery_pagination {
    position: static;
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.sc-case-detail_gallery_pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #c5c5c5;
    opacity: 1;
}

.sc-case-detail_gallery_pagination .swiper-pagination-bullet-active {
    background: #2b3a6d;
}

@media (max-width: 767px) {
    .sc-case-detail_gallery_stage {
        margin-bottom: 0;
    }
}

@media (min-width: 768px) {
    .sc-case-detail_gallery:not(.sc-case-detail_gallery--single) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 110px;
        gap: 10px;
        align-items: stretch;
    }

    .sc-case-detail_gallery_thumbs {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-height: 0;
        overflow-y: auto;
    }

    .sc-case-detail_gallery_thumbs li {
        flex: 1 1 0;
        min-height: 0;
    }

    .sc-case-detail_gallery_pagination {
        display: none;
    }
}

/* =================================
   本文ブロック（お客様名・施工方法・コメント）
================================= */
.sc-case-detail_body {
    margin-bottom: 15px;
}

.sc-case-detail_customer {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2b3a6d;
    margin: 0 0 10px;
    line-height: 1.45;
    letter-spacing: 0.05em;
}

.sc-case-detail_method {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
}

.sc-case-detail_comment {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
    margin: 0;
}

/* =================================
   概要テーブル
================================= */
.sc-case-detail_info {
    margin-bottom: 0;
}

.sc-case-detail_info_tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.sc-case-detail_info_tbl th,
.sc-case-detail_info_tbl td {
    padding: 13px 10px;
    border: 1px solid #d2d2d2;
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}

.sc-case-detail_info_tbl th {
    width: 34%;
    font-weight: 700;
    color: #1E1E1E;
}

.sc-case-detail_info_tbl td {
    color: #1E1E1E;
    word-break: break-word;
    padding: 13px 0 13px 20px;
}

/* =================================
   その他の施工事例
================================= */
.sc-related {
    background-color: #f5f5f5;
    padding: 36px 0 32px;
}

.sc-related_inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 15px;
}

.sc-related_ttl {
    font-family: 'Zen Maru Gothic', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: clamp(26px, 5vw, 26px);
    font-weight: 800;
    color: #2b3a6d;
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.35;
    letter-spacing: 0.15rem;
}

/* タブ */
.sc-related_tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    list-style: none;
    margin: 0 -15px 18px;
    padding: 0 0 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sc-related_tabs::-webkit-scrollbar {
    display: none;
}

.sc-related_tab {
    flex: 0 0 auto;
    min-width: 100px;
}

.sc-related_tab a,
.sc-related_tab span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background-color: #9a9a9a;
    border: 1px solid #c4c4c4;
    border-radius: 0;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.sc-related_tab:first-child a,
.sc-related_tab:first-child span {
    border-left-width: 1px;
}

.sc-related_tab a:hover {
    background-color: #2b3a6d;
    color: #fff;
}

.sc-related_tab__active span,
.sc-related_tab__active a {
    background-color: #2b3a6d;
    color: #fff;
}

/* カードグリッド */
.sc-related_list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sc-related_item_img {
    width: 100%;
    overflow: hidden;
    background-color: #ddd;
    margin-bottom: 8px;
    border-radius: 4px;
}

.sc-related_item_img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.sc-related_item_body {
    padding: 0;
}

.sc-related_item_title {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sc-related_item_type {
    margin: 0 0 8px;
    color: #2b3a6d;
    font-size: 12px;
    font-weight: 600;
}

.sc-related_item_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 32px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    font-size: 11px;
    font-weight: 400;
    color: #fff;
    background-color: #F57F96;
    text-decoration: none;
    border-radius: 2px;
    box-sizing: border-box;
}

.sc-related_item_btn i {
    font-size: 10px;
}

@media (max-width: 400px) {

    .sc-case-detail_inner,
    .sc-related_inner {
        max-width: 345px;
    }
}

@media (min-width: 600px) {
    .sc-case-detail {
        padding: 40px 5.4% 48px;
    }

    .sc-related_inner {
        padding: 0 5.4%;
    }

    .sc-related_tabs {
        margin-left: 0;
        margin-right: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sc-related_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 16px;
    }
}

@media (min-width: 768px) {
    .sc-case-detail_page_ttl {
        font-size: clamp(24px, 2.2vw, 30px);
        margin-bottom: 32px;
    }

    .sc-case-detail_method,
    .sc-case-detail_comment {
        font-size: 15px;
    }

    .sc-case-detail_info_tbl {
        font-size: 15px;
    }

    .sc-case-detail_info_tbl th {
        width: 28%;
    }

    .sc-related_list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sc-related_item_title {
        font-size: 14px;
    }
}