.page-hero {
    width: 100%;
    height: 30vh;
    margin-bottom: 80px;
    background-image: url(../img/construction.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.qualification-table {
    width: 100%;
    padding-bottom: 80px;
    border-collapse: collapse;
    border: 1px solid #000;
}

.container {
    padding: 0 20px;
    margin-bottom: 80px;
}

.construction-description h1,
.construction-description p,
.container h2 {
    text-align: center;
    margin-bottom: 30px;
}

.container h2 {
    font-size: 18px;
}

.constraction-hero {
    width: 100%;
    height: 260px;
    margin-bottom: 80px;
    background-image: url(../img/construction-drawing.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.constraction-hero h2 {
    margin-bottom: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

/* スライダー */
.gallery-slider {
    height: 360px;
    position: relative;
    overflow: hidden;
    margin-bottom: 100px;
}

.slide {
    display: none;
    width: calc(33.333% - 20px);
    margin: 0 10px;
    float: left;
}

.slide.active {
    display: block;
}

.slide-img {
    width: 100%;
    height: 100%;
    max-width: 350px;
    max-height: 200px;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    object-fit: cover;
}

.slide img {
    width: 100%;
    height: auto;
}

.slide-img img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.slide-caption {
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
}

/* スライドコンテナのクリアフィックス */
.gallery-slider::after {
    content: "";
    display: table;
    clear: both;
}

/* ドットのスタイル */
.dot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: #717171;
}

/* ナビゲーションボタン */
.prev-btn,
.next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 3px;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal img {
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90vh;
    margin-top: 20px;
}

.modal p {
    text-align: center;
    color: white;
    padding: 10px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #bbb;
}

/* 施工図面スライダー */
.constraction-drawing {
    width: 100%;
    min-height: 500px;
    padding: 50px 20px;
    background: #000;
}

.gallery-slider-drawing {
    width: 100%;
    height: 100%;
    min-height: 450px;
    position: relative;
    overflow: hidden;
}

.slide-drawing {
    display: none;
}

.slide-drawing:first-child {
    display: block;
}

.slide-row {
    display: flex;
    justify-content: space-between;
}

.slide-img-drawing {
    width: calc(33.333% - 10px);
    height: 200px;
    max-width: 380px;
    max-height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.slide-img-drawing img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

/* 施工図面用のナビゲーションボタン */
.prev-btn-drawing,
.next-btn-drawing {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 3px;
}

.prev-btn-drawing {
    left: 10px;
}

.next-btn-drawing {
    right: 10px;
}

.prev-btn-drawing:hover,
.next-btn-drawing:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 施工図面用のドット */
.dot-drawing {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot-drawing.active {
    background-color: #717171;
}

.slide-dots-drawing {
    text-align: center;
    margin-top: 20px;
}

/* 施工図面の画像にホバー効果を追加 */
.slide-img-drawing img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-img-drawing img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* モーダルのスタイル調整 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-btn {
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 35px;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #bbb;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .page-hero {
        height: 20vh;
        margin-bottom: 50px;
    }

    .page-hero-content h1 {
        font-size: 30px;
    }

    .construction-description {
        padding: 0 10px;
    }

    .container {
        margin-bottom: 50px;
    }

    .constraction-hero {
        margin-bottom: 50px;
    }

    .constraction-hero h2 {
        font-size: 20px;
    }

    .constraction-drawing {
        min-height: 200px;
    }

    .gallery-slider-drawing {
        min-height: 220px;
    }

    .slide-img {
        max-height: 150px;
    }

    .slide-img-drawing {
        max-height: 100px;
    }

    .slide-img-drawing img {
        width: 100%;
        height: 100px;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 600px) {
    .slide-img {
        max-height: 90px;
    }

    .gallery-slider {
        height: 240px;
        margin-bottom: 50px;
    }

    .gallery-slider strong,
    .gallery-slider p {
        font-size: 12px;
    }

    .slide {
        width: calc(47% - 10px);
    }
}