/* =================================
   single-case.css
   施工事例 シングルページ（single-case.php）
================================= */

/* =================================
   ページヘッダー
================================= */
.single-case .page-hero-section {
    background: repeating-conic-gradient(
        #ffc200 0deg 9deg,
        #ffc800 9deg 18deg
    );
    position: relative;
    overflow: hidden;
}

.single-case .page-hero-section_swiper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.single-case .page-hero-section_slide {
    position: relative;
    min-height: 500px;
    background-color: #f5c800;
    overflow: hidden;
}

.single-case .page-hero-section_slide_inner {
    position: relative;
    background-color: var(--color-white);
    padding: 0 0 20px;
}

.single-case .page-hero-section_slide_inner img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .single-case .page-hero-section_slide {
        min-height: 440px;
    }

    .single-case .page-hero-section_slide_inner {
        min-height: 440px;
        padding: 0;
    }
}

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

.sc-case-detail_inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* クライアント名見出し */
.sc-case-detail_client {
    text-align: center;
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 600;
}

.sc-case-detail_client_name {
    font-size: 34px;
    color: #222;
    margin: 0 0 4px;
    font-weight: 700;
    line-height: 1.25;
}

.sc-case-detail_client_label {
    display: block;
    font-size: 34px;
    font-weight: 900;
    color: #F7A80A;
    line-height: 1.2;
    margin-top: -20px;
}

/* =================================
   ギャラリー
================================= */
.sc-case-detail_gallery {
    margin-bottom: 32px;
}

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

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

.sc-case-detail_gallery_thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sc-case-detail_gallery_thumb {
    width: calc((100% - 24px) / 4);
    border-radius: 4px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.sc-case-detail_gallery_thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
}

/* =================================
   詳細情報テーブル
================================= */
.sc-case-detail_info {
    margin-bottom: 16px;
}

.sc-case-detail_info_ttl {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
    line-height: 1.4;
    border-bottom: none;
}

.sc-case-detail_info_cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.sc-case-detail_info_cat {
    font-size: 20px;
    font-weight: 400;
    color: #CB3D00;
    padding: 0;
    background: none;
    border-radius: 0;
    font-family: 'Noto Sans JP, sans-serif';
    margin-top: -10px;
}

.sc-case-detail_info_slash {
    color: #000;
}

.sc-case-detail_info_tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.sc-case-detail_info_tbl th,
.sc-case-detail_info_tbl td {
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: middle;
    line-height: 1.6;
}

.sc-case-detail_info_tbl th {
    width: 34%;
    font-weight: 700;
    color: #444;
    white-space: nowrap;
    text-align: center;
}

.sc-case-detail_info_tbl td {
    color: #333;
}

.sc-case-detail_info_tbl td.sc-case-detail_info_price {
    color: #CB3D00;
    font-weight: 500;
    font-size: 18px;
}

/* =================================
   その他の施工事例
================================= */
.sc-related {
    padding: 34px 0 24px;
}

.sc-related_inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.sc-related_ttl {
    font-size: 27px;
    font-weight: 700;
    color: #f5c800;
    text-align: center;
    margin: 0 0 18px;
    line-height: 1.2;
}

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

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

.sc-related_tab {
    flex: 0 0 130px;
}

.sc-related_tab a,
.sc-related_tab span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 8px 10px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background-color: #a3a3a3;
    border-top: 1px solid #d4d4d4;
    border-bottom: 1px solid #d4d4d4;
    border-right: 2px solid #e9e9e9;
    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: 2px solid #e9e9e9;
}

.sc-related_tab a:hover {
    background-color: #191a1f;
    color: #fff;
}

.sc-related_tab__active span {
    background-color: #191a1f;
    color: #fff;
}

.sc-related_tab__active a {
    background-color: #191a1f;
    color: #fff;
}

/* カードグリッド */
.sc-related_list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.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: 12px;
    font-weight: 700;
    color: #222;
    margin: 0 0 2px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sc-related_item_type {
    margin: 0 0 6px;
    color: #f5a700;
    font-size: 11px;
    font-weight: 700;
}

.sc-related_item_type .works-section_slash {
    color: var(--color-black, #000);
}

.sc-related_item_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 28px;
    border: 1px solid #8b8b8b;
    font-size: 13px;
    color: #222;
    background: #fff;
    text-decoration: none;
}

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

/* もっと見るボタン */
.sc-related_more {
    text-align: center;
}

.sc-related_more_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.sc-related_more_btn:hover {
    border-color: #ffc200;
    background-color: #fffbea;
}

/* =================================
   Responsive: タブレット以上
================================= */
@media (min-width: 600px) {
    .sc-case-detail_gallery_thumb {
        width: calc(20% - 6.4px);
    }

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

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

@media (min-width: 768px) {
    .sc-case-detail {
        padding: 56px 0;
    }

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

@media (min-width: 769px) {

    .single-case .page-hero-section {
        background: none !important;
    }

    .single-case .page-hero-section_swiper {
        max-width: 1280px;
        margin: 0 auto;
    }

    .single-case .page-hero-section_slide {
        min-height: auto;
        background: none;
    }

    .single-case .page-hero-section_slide_inner {
        background: #fff;
        padding: 40px;
        border-radius: 12px;
        max-width: 1280px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .single-case .page-hero-section_slide_inner img {
        width: 100%;
        max-width: 1500px;
        height: 700px;
        display: block;
        margin: 0 auto;
    }
}