/* ========================================
   関連施工事例セクション（新デザイン）
   Figmaデザイン準拠
   ======================================== */

.related-works-section {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 100%;
    padding-block: 60px;
    box-sizing: border-box;
    overflow: hidden;
}

/* タイトルラベル */
.related-works-section .property-data-title {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 40px;
    overflow: hidden;
}

.related-works-section .property-data-title-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    clip-path: inset(0);
}

.related-works-section .property-data-title-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    font-size: clamp(16px, calc(0.129vw + 15.52px), 18px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 2.16px;
    color: #fff;
    white-space: nowrap;
}

/* コンテンツエリア */
.related-works-content {
    display: flex;
    flex-direction: column;
    gap: 58px;
    align-items: flex-start;
    width: 100%;
    padding-inline-start: 220px;
    box-sizing: border-box;
}

/* Swiperスライダー */
.related-works-swiper {
    width: 100%;
    overflow: visible;
}

.related-works-swiper .swiper-wrapper {
    align-items: stretch;
}

.related-works-swiper .swiper-slide {
    width: 300px;
    height: auto;
}

/* 個別カード */
.related-works-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.related-works-card:hover {
    opacity: 0.8;
}

/* カード画像 */
.related-works-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 300 / 200;
    overflow: hidden;
    background-color: #d9d9d9;
}

.related-works-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.related-works-card-image.no-image {
    background-color: #e0e0e0;
}

.after-label {
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* カードコンテンツ */
.related-works-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 4px;
}

.related-works-card-shop {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #b5b5b5;
    margin: 0;
}

.related-works-card-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #4a4a4a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-works-card-desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #4a4a4a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 実績・満足度カード */

/* カード内Moreリンク */

/* ページネーションエリア */
.related-works-pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
    padding-inline: 24px;
    box-sizing: border-box;
}

/* スクロールバー */
.related-works-scrollbar {
    width: 100%;
}

.related-works-scrollbar-drag.swiper-scrollbar {
    position: relative;
    width: 100%;
    height: 7px;
    background-color: #f1f1f1;
    border-radius: 0;
}

.related-works-scrollbar-drag .swiper-scrollbar-drag {
    background-color: #616161;
    border-radius: 0;
    cursor: grab;
}

.related-works-scrollbar-drag .swiper-scrollbar-drag:active {
    cursor: grabbing;
}

/* Moreリンク（共通スタイルはlink-more.cssで定義） */
.related-works-more {
}

/* ========================================
   レスポンシブ対応
   ======================================== */

/* タブレット */
@media only screen and (max-width: 1280px) {
    .related-works-section {
        gap: 40px;
        padding-block: 40px;
    }
}

/* スマホ */
@media only screen and (max-width: 767px) {
    .related-works-section {
        gap: 30px;
        padding-block: 40px 30px;
    }

    .related-works-section .property-data-title {
        max-width: 262px;
    }

    .related-works-section .property-data-title-text {
        left: 16px;
        transform: translateY(-50%);
        letter-spacing: 1.92px;
    }

    .related-works-content {
        gap: 30px;
        padding-inline-start: 16px;
    }

    .related-works-card-image {
        aspect-ratio: 240 / 160;
    }

    .after-label {
        font-size: 18px;
        top: 6px;
        left: 6px;
    }

    .related-works-card-content {
        gap: 6px;
        padding: 8px 4px;
    }

    .related-works-card-shop {
        font-size: 12px;
    }

    .related-works-card-title {
        font-size: 15px;
    }

    .related-works-card-desc {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }

    .related-works-pagination-wrapper {
        padding-inline: 20px;
    }
}
