/* Single Case Study Styles - Based on Figma Design */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main Container */
.renovation-detail-container {
    width: 100%;
    background: #ffffff;
}

/* Hero Image Section */
.hero-image-section {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: -96px; /* ナビゲーションバーに被せる */
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    color: #666666;
}

/* Content Section */
.content-section {
    background: #f5f5f5;
    padding: 80px 0;
    width: 100%;
}

.content-wrapper {
    max-width: 100%;
    padding: 0 120px;
}

/* Section Title */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-bottom: 40px;
    line-height: 1.2;
    color: #000000;
    text-transform: uppercase;
}

/* DATE Section */
.date-section {
    max-width: 600px;
    margin-bottom: 80px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    /* border-bottom: 1px solid #e0e0e0; */
}

.info-table tr:last-child {
    /* border-bottom: none; */
}

.info-table td {
    padding: 12px 0;
    vertical-align: middle;
}

.info-label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    width: 100px;
    letter-spacing: 0.05em;
}

.info-value {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    letter-spacing: 0.02em;
}

/* FLOOR PLAN Section */
.floor-plan-section {
    width: 100%;
    margin: 0;
}

.floor-plan-image {
    width: 400px;
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.floor-plan-image img {
    width: 100%;
    height: auto;
    display: block;
}

.floor-plan-placeholder {
    width: 400px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Gallery Section */
.gallery-section {
    position: relative;
    width: 100%;
    padding: 100px 0 20px 0px;
    background: #f5f5f5;
    overflow: hidden;
}

.gallery-slider-container {
    position: relative;
    width: 100%;
}

.gallery-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 600px; /* 固定高さ */
}

.gallery-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    align-items: center;
    height: 100%;
}

.gallery-slide {
    flex: 0 0 850px; /* 固定幅 */
    height: 500px;
    position: relative;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* ギャラリー画像のテキスト */
.gallery-slide-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
    line-height: 1.5;
    z-index: 10;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-prev {
    left: calc((100vw - 900px) / 2);
}

.gallery-nav-next {
    right: calc((100vw - 900px) / 2);
}

@media (max-width: 1200px) {
    .gallery-nav-prev {
        left: calc((100vw - 700px) / 2);
    }
    
    .gallery-nav-next {
        right: calc((100vw - 700px) / 2);
    }
}

.gallery-nav svg {
    width: 20px;
    height: 20px;
}

/* Gallery Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gallery-dot:hover {
    background: #999999;
}

.gallery-dot.active {
    background: #333333;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 1200px) {
    .content-wrapper {
        padding: 0 80px;
    }
    
    .gallery-slide {
        flex: 0 0 700px;
        height: 450px;
    }
}

@media (max-width: 968px) {
    .content-wrapper {
        padding: 0 40px;
    }
    
    .date-section {
        max-width: 100%;
    }
    
    .floor-plan-image,
    .floor-plan-placeholder {
        width: 100%;
        max-width: 400px;
    }
    
    .gallery-slider {
        height: 400px;
    }
    
    .gallery-slide {
        flex: 0 0 90vw;
        height: 350px;
    }
    
    .gallery-track {
        gap: 15px;
    }
}

/* iPad版のスタイル調整 */
@media (max-width: 1024px) and (min-width: 769px) {
    .content-wrapper {
        padding: 0 60px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .floor-plan-image,
    .floor-plan-placeholder {
        max-width: 500px;
    }
    
    .gallery-slider {
        overflow: visible;
    }
    
    .gallery-slide {
        flex: 0 0 80%;
        width: 80%;
        height: 400px;
        margin: 0 10%;
        opacity: 0.3;
        transition: opacity 0.3s ease, transform 0.3s ease;
        transform: scale(0.9);
    }
    
    .gallery-slide.active {
        opacity: 1;
        transform: scale(1);
    }
    
    .gallery-track {
        justify-content: flex-start;
        gap: 0;
    }
    
    /* iPad版で矢印ナビゲーションを非表示 */
    .gallery-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-image-section {
        height: 60vh;
        margin-top: -80px;
        display: block !important; /* 強制表示 */
    }
    
    .content-section {
        padding: 60px 0;
        display: block !important; /* 強制表示 */
    }
    
    .content-wrapper {
        padding: 0 20px;
    }
    
    /* DATAセクションを強制表示 */
    .date-section {
        display: block !important;
        margin-bottom: 60px;
    }
    
    /* FLOOR PLANセクションを強制表示 */
    .floor-plan-section {
        display: block !important;
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
        display: block !important; /* 強制表示 */
    }
    
    .info-table {
        display: table !important; /* 強制表示 */
        width: 100%;
    }
    
    .info-label {
        font-size: 12px;
        width: 80px;
    }
    
    .info-value {
        font-size: 14px;
    }
    
    .floor-plan-image,
    .floor-plan-placeholder {
        display: block !important; /* 強制表示 */
        width: 280px;
        max-width: 280px;
        padding: 15px;
    }
    
    /* ギャラリーセクションを強制表示 */
    .gallery-section {
        padding: 60px 0;
        display: block !important; /* 強制表示 */
    }
    
    .gallery-slider-container {
        display: block !important; /* 強制表示 */
    }
    
    .gallery-slider {
        height: 300px;
        display: block !important; /* 強制表示 */
    }
    
    .gallery-track {
        display: flex !important; /* 強制表示 */
    }
    
    .gallery-slider {
        overflow: visible !important;
    }
    
    .gallery-slide {
        flex: 0 0 80% !important;
        width: 80% !important;
        height: 280px;
        display: block !important; /* 強制表示 */
        margin: 0 10% !important;
        opacity: 0.3 !important;
        transition: opacity 0.3s ease, transform 0.3s ease !important;
        transform: scale(0.9) !important;
    }
    
    .gallery-slide.active {
        opacity: 1 !important;
        transform: scale(1) !important;
    }
    
    .gallery-slide-text {
        font-size: 10px;
        bottom: 10px;
        left: 10px;
    }
    
    .gallery-dots {
        display: flex !important; /* 強制表示 */
    }
    
    /* モバイルで矢印ナビゲーションを非表示 */
    .gallery-nav {
        display: none;
    }
}