/* Scoped Variables for this page */
        :root {
            --wd-spacing-y: 80px;
            --wd-text-color: #333;
            --wd-accent-color: #C5A065;
            --wd-bg-card: #ffffff;
            --wd-border-color: #eee;
            --wd-font-heading: 'Noto Sans JP', sans-serif;
        }

        /* Override/Reset specific to this page container */
        body {
            background-color: #f8f9fa;
            color: var(--wd-text-color);
        }

        main {
            padding-top: 0;
            padding-bottom: 80px;
        }

        .work-detail-container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* 1) Header & Title Section */
        .work-detail-header {
            text-align: center;
            margin-bottom: 56px;
            padding-top: 20px;
            opacity: 0;
            animation: fadeIn 0.8s ease forwards;
        }

        .work-detail-title {
            font-family: var(--wd-font-heading);
            font-size: 2rem;
            font-weight: 700;
            line-height: 1.4;
            color: #111;
            margin: 0 0 20px 0;
            letter-spacing: 0.05em;
        }

        .work-detail-tags {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 12px;
        }

        .work-detail-tag {
            display: inline-block;
            padding: 6px 18px;
            background-color: #111;
            color: #fff;
            font-size: 0.85rem;
            font-weight: 500;
            border-radius: 99px;
            letter-spacing: 0.05em;
        }

        /* 2) Slider/Image Section */
        .work-detail-slider-section {
            width: 100%;
            margin-bottom: 80px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
            border-radius: 20px;
            overflow: hidden;
            background-color: #000;
            opacity: 0;
            animation: fadeIn 0.8s ease 0.2s forwards;
            position: relative;
        }

        .slider-container {
            position: relative;
            width: 100%;
            aspect-ratio: 5 / 4;
        }

        .slider-wrapper {
            display: flex;
            width: 100%;
            height: 100%;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }

        .slider-wrapper::-webkit-scrollbar {
            display: none;
        }

        .slider-slide {
            flex: 0 0 100%;
            width: 100%;
            height: 100%;
            scroll-snap-align: start;
            position: relative;
        }

        .slider-slide img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            /* contain to show full car, cover if prefer fill */
            object-fit: cover;
            display: block;
        }

        /* Slider Navigation (Dots) */
        .slider-dots {
            position: absolute;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
            padding: 10px 20px;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 30px;
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .slider-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .slider-dot.active {
            background-color: #fff;
            transform: scale(1.2);
        }

        /* 3) Info Grid Section */
        .work-info-grid {
            display: grid;
            gap: 40px;
            margin-bottom: 100px;
            opacity: 0;
            animation: fadeIn 0.8s ease 0.4s forwards;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }

        .work-info-section {
            background: var(--wd-bg-card);
            border: 1px solid var(--wd-border-color);
            border-radius: 16px;
            padding: 40px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
            transition: transform 0.3s;
        }

        .work-info-section:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
        }

        .work-info-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 32px;
            padding-bottom: 20px;
            border-bottom: 2px solid #f5f5f5;
        }

        .section-icon {
            font-size: 1.8rem;
            background: #f0f0f0;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .section-heading-text {
            font-size: 1.4rem;
            font-weight: 700;
            color: #111;
            letter-spacing: 0.05em;
            margin: 0;
            font-family: var(--wd-font-heading);
        }

        /* Content Lists */
        .info-list-container {
            display: grid;
            gap: 16px;
        }

        /* List Items */
        .checklist {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .checklist li {
            position: relative;
            padding-left: 32px;
            margin-bottom: 16px;
            line-height: 1.6;
            font-size: 1.05rem;
            font-weight: 500;
        }

        .checklist li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.5em;
            width: 20px;
            height: 20px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C5A065'%3E%3Cpath d='M10 15.172l9.192-9.193 1.415 1.414L10 18l-6.364-6.364 1.414-1.414z'/%3E%3C/svg%3E");
            background-size: contain;
            background-repeat: no-repeat;
        }

        /* Car Model Badges */
        .car-model-badge {
            display: inline-flex;
            align-items: center;
            padding: 10px 24px;
            background-color: #f7f7f7;
            color: #333;
            font-weight: 700;
            font-size: 1.1rem;
            border-radius: 8px;
            letter-spacing: 0.05em;
            border: 1px solid #eee;
        }

        /* Used Products */
        .used-products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 16px;
        }

        .used-product-card {
            background: #fff;
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 16px;
            text-align: center;
            transition: all 0.3s;
        }

        .used-product-card:hover {
            border-color: var(--wd-accent-color);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .used-product-name {
            font-weight: 700;
            font-size: 1rem;
            margin-top: 8px;
            display: block;
        }

        /* 4) CTA Section */
        .work-cta-wrapper {
            background-color: #fff;
            padding: 100px 24px;
            margin-top: 60px;
            text-align: center;
            border-top: 1px solid #eee;
        }

        .work-cta-container {
            max-width: 600px;
            margin: 0 auto;
        }

        .work-cta-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 24px;
            color: #111;
            font-family: var(--wd-font-heading);
        }

        .work-cta-text {
            color: #666;
            margin-bottom: 48px;
            line-height: 2;
            font-size: 1.05rem;
        }

        /* Buttons Layout */
        .work-cta-buttons {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .btn-line-main {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            width: 100%;
            padding: 20px;
            background-color: #06C755;
            color: #fff;
            font-weight: 700;
            font-size: 1.2rem;
            border-radius: 12px;
            transition: transform 0.2s, box-shadow 0.2s;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
        }

        .btn-line-main:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(6, 199, 85, 0.4);
        }

        .btn-sub-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .btn-sub-action {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 18px;
            background: #fff;
            border: 1px solid #ddd;
            color: #333;
            font-weight: 600;
            font-size: 1rem;
            border-radius: 12px;
            transition: all 0.3s;
            text-decoration: none;
        }

        .btn-sub-action.dark {
            background: #111;
            color: #fff;
            border-color: #111;
        }

        .btn-sub-action:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        /* Desktop Adjustments */
        @media (min-width: 768px) {
            .work-detail-title {
                font-size: 2.5rem;
            }

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

            /* Full width sections */
            .work-info-section.full-width {
                grid-column: 1 / -1;
            }
        }

        /* Footer Sub Links */
        .footer-sub-link {
            display: block;
            margin-bottom: 8px;
            color: #888;
            font-size: 0.85rem;
            transition: color 0.3s;
            text-decoration: none;
        }

        .footer-sub-link:hover {
            color: var(--wd-accent-color);
        }

        /* Animation */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
/* --- New Layout Styles --- */

.breadcrumb {
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: #888;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.work-hero-section {
    background-color: #1a1a1a;
    padding: 60px 24px;
    margin-bottom: 60px;
    color: #fff;
}

.work-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.work-hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-category {
    color: var(--wd-accent-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
}

.hero-desc {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #aaa;
}

.work-hero-slider {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.section-main-title {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    position: relative;
    padding-bottom: 12px;
}

.section-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--wd-accent-color);
}

.work-info-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 32px 24px;
    text-align: center;
}

.card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--wd-accent-color);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--wd-accent-color);
    margin-bottom: 16px;
}

.card-content {
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: left;
}

/* Override existing checklist style for cards */
.card-content .checklist {
    text-align: left;
}
.card-content .checklist li {
    padding-left: 1.5em;
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.card-content .checklist li::before {
    content: '・';
    background: none;
    left: 0;
    top: 0;
    color: #111;
    width: auto;
    height: auto;
}

.used-products-detail-section {
    margin-bottom: 80px;
}

.used-product-card-detail {
    display: flex;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.product-image-wrap {
    width: 40%;
    background: #fcfcfc;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-wrap {
    width: 60%;
    padding: 40px;
}

.product-brand {
    color: var(--wd-accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.product-name-detail {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-desc-detail {
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}

.product-features-title {
    font-size: 0.9rem;
    color: var(--wd-accent-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.product-features-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: #eee;
    color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.related-works-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}

.related-works-section {
    margin-top: 72px;
}

/* 関連する施工事例のカードスタイル上書き（視認性向上） */
.related-works-grid .work-card {
    display: block;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: inherit;
    text-decoration: none;
}

.related-works-grid .work-card:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-works-grid .work-tag {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #eee;
}

.related-works-grid .work-title {
    color: #1a1a1a;
    font-weight: 700;
}

.related-works-grid .thumb,
.related-works-grid .work-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee;
    border-radius: 6px 6px 0 0;
}

.related-works-grid .thumb img,
.related-works-grid .work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px 6px 0 0;
}

.related-works-grid .meta,
.related-works-grid .work-info {
    padding: 16px;
}

.related-works-grid .title,
.related-works-grid .work-title {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.related-works-grid .date {
    margin-top: 8px;
    color: #777;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: right;
}

.related-works-grid .related-category-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(197, 160, 101, 0.14);
    border: 1px solid rgba(197, 160, 101, 0.28);
    color: #9b7440;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .work-hero-container {
        flex-direction: column;
    }
    .work-info-grid {
        grid-template-columns: 1fr;
    }
    .used-product-card-detail {
        flex-direction: column;
    }
    .product-image-wrap, .product-info-wrap {
        width: 100%;
    }
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    backdrop-filter: blur(4px);
}
.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}
.slider-arrow.prev {
    left: 16px;
}
.slider-arrow.next {
    right: 16px;
}
@media (max-width: 768px) {
    .slider-arrow {
        display: none;
    }
}

/* --- Work Detail Refresh: page-title + gallery + overview table --- */
body {
    background-color: #f5f6f7;
}

main {
    padding-top: 0;
    padding-bottom: 80px;
}

.work-detail-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumb {
    padding: 28px 0 32px;
    max-width: none;
    font-size: 0.85rem;
    color: #888;
}

.work-gallery-section {
    margin-bottom: 72px;
}

.work-gallery {
    width: min(100%, 860px);
    margin: 0 auto;
    padding: 32px 0 34px;
}

.work-gallery-main {
    width: 100%;
    background: #fff;
    border: 1px solid #e4e4e4;
    overflow: hidden;
}

.work-gallery-track {
    display: flex;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.work-gallery-track::-webkit-scrollbar {
    display: none;
}

.work-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #fff;
}

.work-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.work-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.work-gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    aspect-ratio: 1 / 1;
    border: 1px solid #d8d8d8;
    background: #fff;
    padding: 0;
    cursor: pointer;
    opacity: 0.64;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.work-gallery-thumb.active,
.work-gallery-thumb:hover {
    opacity: 1;
    border-color: var(--wd-accent-color);
}

.work-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-overview-section {
    margin-bottom: 80px;
}

.work-overview-table {
    width: min(100%, 820px);
    margin: 0 auto 72px;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #d8d8d8;
}

.work-overview-table th,
.work-overview-table td {
    border: 1px solid #d8d8d8;
    padding: 20px 24px;
    vertical-align: top;
    line-height: 1.8;
}

.work-overview-table th {
    width: 28%;
    background: #fafafa;
    color: #111;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.work-overview-table td {
    color: #333;
    font-size: 0.98rem;
}

.overview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.overview-tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 12px;
    background: #f4f4f4;
    border: 1px solid #e6e6e6;
    color: #222;
    font-weight: 600;
    font-size: 0.92rem;
}

.overview-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.overview-list li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 6px;
}

.overview-list li:last-child {
    margin-bottom: 0;
}

.overview-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #111;
}

.overview-list--sub {
    margin-top: 8px;
    color: #555;
    font-size: 0.92rem;
}

.overview-product-name {
    margin: 0;
    font-weight: 700;
}

.section-title-wrapper {
    margin-bottom: 32px;
}

.related-works-grid {
    margin-top: 0;
}

.used-products-detail-section,
.work-hero-section {
    display: none !important;
}

.work-overview-table + .section-title-wrapper,
.used-products-detail-section + .section-title-wrapper {
    display: block !important;
    margin-top: 72px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 56px;
    }

    .work-detail-container {
        padding: 0 18px;
    }

    .breadcrumb {
        padding: 22px 0 24px;
        font-size: 0.78rem;
    }

    .work-gallery-section {
        margin-bottom: 56px;
    }

    .work-gallery {
        padding: 22px 0 26px;
    }

    .work-gallery-track {
        aspect-ratio: 4 / 3;
    }

    .work-gallery-thumb {
        flex-basis: 58px;
        width: 58px;
    }

    .work-overview-section {
        margin-bottom: 64px;
    }

    .work-overview-table {
        margin-bottom: 56px;
    }

    .work-overview-table,
    .work-overview-table tbody,
    .work-overview-table tr,
    .work-overview-table th,
    .work-overview-table td {
        display: block;
        width: 100%;
    }

    .work-overview-table th,
    .work-overview-table td {
        border-left: 0;
        border-right: 0;
        padding: 14px 16px;
    }

    .work-overview-table tr:first-child th {
        border-top: 0;
    }

    .work-overview-table th {
        border-bottom: 0;
        background: #f7f7f7;
    }

    .work-overview-table td {
        border-top: 0;
    }

    .related-works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .related-works-grid .thumb,
    .related-works-grid .work-thumb {
        aspect-ratio: 4 / 3;
    }

    .related-works-grid .meta,
    .related-works-grid .work-info {
        padding: 10px;
    }

    .related-works-grid .title,
    .related-works-grid .work-title {
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .related-works-grid .work-tags {
        margin-bottom: 8px;
    }

    .related-works-grid .work-tag,
    .related-works-grid .card-category-chip {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .related-works-grid .date {
        font-size: 0.72rem;
    }

    .related-works-grid .related-category-chip {
        margin-top: 8px;
        padding: 3px 8px;
        font-size: 0.62rem;
    }
}

/* --- Backward compatibility for already-deployed old detail HTML --- */
.work-hero-section {
    display: block !important;
    background: #f5f6f7;
    color: #111;
    padding: 0 24px 72px;
    margin: 0;
}

.work-hero-container {
    display: block;
    max-width: 980px;
    margin: 0 auto;
}

.work-hero-text {
    width: auto;
    min-width: 0;
    margin: 0 calc(50% - 50vw) 88px;
    padding: 72px 24px 36px;
    background: #111;
    color: #fff;
    text-align: center;
}

.hero-category {
    margin: 0 0 16px;
    color: transparent;
    font-size: 0;
}

.hero-category::before {
    content: "WORKS";
    color: var(--wd-accent-color);
    font-family: "Outfit", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.hero-title {
    margin: 0 0 16px;
    color: transparent;
    font-size: 0;
    line-height: 1.4;
}

.hero-title::before {
    content: "施工事例";
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
}

.hero-desc {
    margin: 0;
    color: transparent;
    font-size: 0;
}

.hero-desc::before {
    content: "カーセキュリティ・コーティング・カスタムなど、実際の施工事例をご紹介します。";
    color: #ccc;
    font-size: 1rem;
    line-height: 1.8;
}

.hero-date {
    display: none;
}

.work-hero-slider {
    width: min(100%, 860px);
    min-width: 0;
    margin: 0 auto;
    padding: 32px 0 34px;
    border-radius: 0;
    overflow: visible;
}

.work-hero-slider .slider-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #fff;
    border: 1px solid #e4e4e4;
}

.work-hero-slider .slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.work-hero-slider .slider-wrapper::-webkit-scrollbar {
    display: none;
}

.work-hero-slider .slider-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
}

.work-hero-slider .slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slider-dots {
    position: static;
    transform: none;
    justify-content: center;
    gap: 8px;
    margin: 24px auto 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
}

.slider-dot {
    width: 72px;
    height: 72px;
    border-radius: 0;
    background: #fff;
    border: 1px solid #d8d8d8;
    opacity: 0.64;
}

.slider-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-dot.active,
.slider-dot:hover {
    border-color: var(--wd-accent-color);
    opacity: 1;
    transform: none;
}

.work-info-grid {
    display: block;
    width: min(100%, 820px);
    max-width: 820px;
    margin: 0 auto 80px;
}

.work-info-card {
    display: grid !important;
    grid-template-columns: 28% 1fr;
    align-items: stretch;
    min-height: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-bottom: 0;
    box-shadow: none;
    text-align: left;
}

.work-info-card:last-child {
    border-bottom: 1px solid #d8d8d8;
}

.work-info-card:hover {
    transform: none;
    box-shadow: none;
}

.work-info-card .card-icon {
    display: none;
}

.work-info-card .card-title {
    display: flex;
    align-items: flex-start;
    min-height: 100%;
    margin: 0;
    padding: 20px 24px;
    background: #fafafa;
    border-right: 1px solid #d8d8d8;
    color: #111;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.8;
}

.work-info-card .card-content {
    padding: 20px 24px;
    color: #333;
    font-size: 0.98rem;
    line-height: 1.8;
}

.work-info-card .tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 12px;
    background: #f4f4f4;
    border: 1px solid #e6e6e6;
    color: #222;
    font-weight: 600;
    font-size: 0.92rem;
}

.card-content .checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.card-content .checklist li {
    position: relative;
    margin: 0 0 6px;
    padding-left: 1.2em;
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.8;
}

.card-content .checklist li:last-child {
    margin-bottom: 0;
}

.card-content .checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #111;
}

.used-products-detail-section {
    display: none !important;
}

.works-detail-normalized .work-hero-section {
    padding-top: 0;
}

.works-detail-normalized .work-hero-text {
    display: block;
}

.works-detail-normalized .work-detail-container .section-title-wrapper:first-child {
    margin-top: 0;
}

.works-detail-normalized .used-products-detail-section,
.works-detail-normalized .section-title-wrapper:has(+ .used-products-detail-section) {
    display: none !important;
}

.works-detail-normalized .used-products-detail-section + .section-title-wrapper {
    display: block !important;
    margin-top: 72px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .work-hero-section {
        padding: 0 18px 56px;
    }

    .work-hero-text {
        margin: 0 calc(50% - 50vw) 52px;
        padding: 64px 20px 32px;
    }

    .hero-title::before {
        font-size: 2rem;
    }

    .hero-desc::before {
        display: inline-block;
        max-width: 320px;
        text-align: left;
    }

    .work-hero-slider .slider-container {
        aspect-ratio: 4 / 3;
    }

    .work-hero-slider {
        padding: 22px 0 26px;
    }

    .slider-dot {
        width: 58px;
        height: 58px;
    }

    .work-info-card {
        display: block !important;
        border-left: 1px solid #d8d8d8;
        border-right: 1px solid #d8d8d8;
    }

    .work-info-card .card-title {
        display: block;
        border-right: 0;
        border-bottom: 0;
        padding: 14px 16px;
    }

    .work-info-card .card-content {
        padding: 14px 16px;
    }

    .related-works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .related-works-grid .meta,
    .related-works-grid .work-info {
        padding: 10px;
    }

    .related-works-grid .title,
    .related-works-grid .work-title {
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .related-works-grid .work-tag,
    .related-works-grid .card-category-chip {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Keep work detail page titles aligned with the works index page header. */
body main {
    padding-top: 0 !important;
}

body header,
body header.scrolled {
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* Related works: desktop and tablet use 4 columns, phones use 2 columns. */
.related-works-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 600px) {
    .related-works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}
