.page {
    .sec5 {
        position: relative;
    }
    .sec5_bg {
        position: absolute;
    }
    .voice_wrap {
        padding: 14.029vw 0 7.353vw;
    }
    .voice_slide {
        overflow: hidden;

        p.day {
            font-size: 14px;
            background: #F0F0F0;
            padding: 4px 10px 2px;
            margin: 13px 0 9px;
        }

        h3 {
            margin-bottom: 16px;
            font-weight: 400;
        }

        a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 50px;
            border-radius: 5px;
            color: #fff;
            border: 1px solid #FFF;
            background: var(--004370, #004370);
        }
    }

    .voice_card {
        padding: 1.029vw;
        background: #fff;
    }

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

    .swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction {
        bottom: 4.706vw;
        left: 0;
        width: 100%
    }
}

.page.owner {
    h1 {
        position: absolute;
        top: 30%;
        left: 13%;
        color: var(--Neutral-White-000, #FFF);
        font-family: "Zen Kaku Gothic New";
        font-size: 32px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
    }
    h1::before {
        position: absolute;
        content: "";
        left: 0;
        bottom: -10px;
        width: 100px;
        height: 1px;
        background: #fff;
    }

    .page_mv.owner p {
        position: absolute;
        top: 57%;
        left: 13%;
        color: #fff;
    }
    .sec3 {
        position: relative;
        z-index: 2;
        padding-top: 3px;
        margin-top: -1px;
        background: #004370;
    }
}

.page.about {
    .page_mv.owner p {
        position: absolute;
        top: 57%;
        left: 13%;
        color: #fff;
    }
    h1 {
        position: absolute;
        top: 30%;
        left: 13%;
        color: var(--Neutral-White-000, #FFF);
        font-family: "Zen Kaku Gothic New";
        font-size: 32px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
    }
    h1::before {
        position: absolute;
        content: "";
        left: 0;
        bottom: -10px;
        width: 100px;
        height: 1px;
        background: #fff;
    }
}

.page.rehome {
    .page_mv.owner {
        h1 {
            position: absolute;
            top: 45%;
            left: 13%;
            color: var(--Neutral-White-000, #FFF);
            font-family: "Zen Kaku Gothic New";
            font-size: 32px;
            font-style: normal;
            font-weight: 500;
            line-height: normal;
        }
        h1::before {
            position: absolute;
            content: "";
            left: 0;
            top: -2px;
            width: 100px;
            height: 1px;
            background: #fff;
        }
        p {
            position: absolute;
            top: 34%;
            left: 13%;
            color: #fff;
        }
    }
}

.page.ap {
    .page_mv.owner {
        h1 {
            position: absolute;
            top: 45%;
            left: 13%;
            color: var(--Neutral-White-000, #FFF);
            font-family: "Zen Kaku Gothic New";
            font-size: 32px;
            font-style: normal;
            font-weight: 500;
            line-height: normal;
        }
        h1::before {
            position: absolute;
            content: "";
            left: 0;
            top: -2px;
            width: 100px;
            height: 1px;
            background: #fff;
        }
        p {
            position: absolute;
            top: 34%;
            left: 13%;
            color: #fff;
        }
    }
}

.page.ap.roof .voice_wrap,
.page.ex .voice_wrap {
    padding: 14.029vw 0 7.353vw;
    margin-top: -52vw;
}

.page.ex {   
    .sec5_bg {
        position: relative;
    }
    .page_mv.owner {
        h1 {
            position: absolute;
            top: 45%;
            left: 13%;
            color: var(--Neutral-White-000, #FFF);
            font-family: "Zen Kaku Gothic New";
            font-size: 32px;
            font-style: normal;
            font-weight: 500;
            line-height: normal;
        }
        h1::before {
            position: absolute;
            content: "";
            left: 0;
            top: -2px;
            width: 100px;
            height: 1px;
            background: #fff;
        }
        p {
            position: absolute;
            top: 34%;
            left: 13%;
            color: #fff;
        }
    }
}

.page.house {
    .sec3 {
        padding: 100px 0;
    }

    h2.ttl {
        width: 1000px;
        margin-bottom: 20px;
    }

    .inner {
        width: 1000px;
        margin: auto;
    }

    .item {
        margin-bottom: 80px;
        scroll-margin-top: 120px; /* 固定ヘッダーの高さ分 */
    }

    .item:last-child {
        margin-bottom: 0;
    }

    .ttl.house_link {
        text-align: center;
        color: #004370;
        font-size: 2.5vw;
    }

    .house-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 5.861vw;
    }

    .house-link {
        display: inline-block;
        padding: 12px 20px;
        background: #bfbfbf; /* 通常はグレー */
        color: #fff;
        text-decoration: none;
        position: relative;
        transition: background 0.3s;
    }

    a.house-link {
        font-weight: bold;
    }

    .house-link:hover {
        background: #4ba8f7; /* ホバーで青 */
    }

    /* アイコン（ローラー）は擬似要素で */
    .house-link:hover::after {
        content: url(../img/housebuilder/icon.svg);
        position: absolute;
        top: -25px;
        right: -32px;
        font-size: 18px;
    }
}

.page.beg {
    
    .sec5_bg {
        position: relative;
    }

    .mov_slide {
        margin-left: auto;
        width: 100%;
    }

    .movie_wrap {
        margin-top: -34vw;
        padding-bottom: 15vw;
    }

    .swiper-button-prev.mov {
        top: 50px;
        right: 187px !important;
        left: auto !important;
        width: 36px;
        height: 37px;
    }

    .swiper-button-next.mov {
        top: 50px;
        right: 136px !important;
        left: auto !important;
        width: 36px;
        height: 37px;
    }

    .swiper-button-prev.mov:after, .swiper-rtl .swiper-button-next.mov:after {
        top: 50px ;
        right: 40px !important;
        left: auto !important;
        width: 36px;
        height: 37px;
        background: url(../img/top/prev3.png);
        background-size: 100%;
        background-repeat: no-repeat;
    }

    .swiper-button-next.mov:after, .swiper-rtl .swiper-button-prev.mov:after {
        top: 50px;
        right: 10px !important;
        left: auto !important;
        width: 36px;
        height: 37px;
        background: url(../img/top/next3.png);
        background-size: 100%;
        background-repeat: no-repeat;
    }

    .iframe-wrapper {
        position: relative;
        padding-bottom: 56.5%;
        height: 0;
        overflow: hidden;
    }

    .iframe-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    iframe {
        width: 100%;
    }
}

.reason_sec {
    background: url(../img/reason/bg.jpg);
    background-size: cover;
}

.reason_wrap {
    padding: 4.249vw 0 7.326vw;
    width: 68.571vw;
    margin: auto;
}

.reason_wrap div {
    margin-top: 2.784vw;
    scroll-margin-top: 120px;
}

.reason_wrap div.sec1 {
    margin-top: 0;
}

@media(max-width:767px) {

    .page_mv {
        margin-top: 14.588vw;
        position: relative;
    }

    .reason_wrap {
        width: 94%;
        margin-left: 1.5%;
    }

    .page.owner {
        h1 {
            position: absolute;
            top: 28%;
            left: 50%;
            transform: translate(-50%, 0);
            color: var(--Neutral-White-000, #FFF);
            font-family: "Zen Kaku Gothic New";
            font-size: 24px;
            font-style: normal;
            font-weight: 500;
            line-height: normal;
        }
        h1::before {
            position: absolute;
            content: "";
            left: 50%;
            bottom: -5px;
            width: 100px;
            height: 1px;
            background: #fff;
            transform: translate(-50%, 0);
        }

        .page_mv.owner p {
            position: absolute;
            top: 51%;
            left: 13%;
            color: #fff;
        }
        .sec3 {
            position: relative;
            z-index: 2;
            padding-top: 3px;
            margin-top: -1px;
            background: #004370;
        }
        .sec5 {
            padding: 0 0 60px;
        }

        .voice_wrap {
            padding: 37.029vw 0 0;
        }
    }
    .voice_wrap {
        padding: 37.029vw 0 0;
    }

    .page.about {
        h1 {
            position: absolute;
            top: 28%;
            left: 50%;
            transform: translate(-50%, 0);
            color: var(--Neutral-White-000, #FFF);
            font-family: "Zen Kaku Gothic New";
            font-size: 24px;
            font-style: normal;
            font-weight: 500;
            line-height: normal;
        }
        h1::before {
            position: absolute;
            content: "";
            left: 50%;
            bottom: -5px;
            width: 100px;
            height: 1px;
            background: #fff;
            transform: translate(-50%, 0);
        }

        .page_mv.owner p {
            position: absolute;
            top: 51%;
            left: 50%;
            transform: translate(-50%, 0);
            color: #fff;
        }

        .sec3 {
            position: relative;
        }

        .sec3_slide {
            position: absolute;
            width: 100%;
            bottom: 235vw;
        }

        .sec4_slide {
            position: absolute;
            width: 100%;
            bottom: 22vw;
        }

        .slide_wrap {
            display: flex;
            gap: 1.465vw;
            will-change: transform; /* GPU支援でカクつき防止 */
        }

        .sec9_in.slide_wrap {
            position: relative;
            gap: 0;
        }

        .sec9_in.slide_wrap img {
            max-width: unset;
            width: auto;
            height: 26.824vw;
        }

        .slide_wrap_2 {
            display: flex;
            gap: 1.465vw;
            will-change: transform; /* GPU支援でカクつき防止 */
        }

        .sec9_in.slide_wrap_2 {
            position: relative;
            gap: 0;
        }

        .sec9_in.slide_wrap_2 img {
            max-width: unset;
            width: auto;
            height: 26.824vw;
        }

        div#sec4 {
            position: relative;
        }

        .sec9_slide.sp {
            position: absolute;
            top: 27vw;
            width: 87%;
            margin: 0px 2.5%;
        }
    }

    .page.beg {
        .movie_wrap {
            margin-top: 0;
            padding-bottom: 5vw;
        }

        .mov_slide {
            width: 90%;
            margin: auto;
            position: relative;
        }

        .swiper-button-prev.mov {
            top: 50%;
            right: auto !important;
            left: 0 !important;
            width: 36px;
            height: 37px;
            color: transparent;
        }

        .swiper-button-next.mov {
            top: 50%;
            left: auto !important;
            right: 0 !important;
            width: 36px;
            height: 37px;
            color: transparent;
        }

        .mov_ttl.sp {
            width: 80%;
            margin-left: 16%;
        }
    }

    .page.house {
        .page_mv h1 {
            top: 34%;
        }

        .sec3 {
            padding: 50px 0;
        }

        .inner {
            width: 90%;
            margin: auto;
        }
    }

    .page.ex {
        .page_mv.owner {
            h1 {
                position: absolute;
                top: 45%;
                left: 50%;
                color: var(--Neutral-White-000, #FFF);
                font-family: "Zen Kaku Gothic New";
                font-size: 32px;
                font-style: normal;
                font-weight: 500;
                line-height: normal;
                text-align: center;
                width: 100%;
            }
            h1::before {
                position: absolute;
                content: "";
                left: 34%;
                top: -2px;
                width: 100px;
                height: 1px;
                background: #fff;
            }
            p {
                position: absolute;
                top: 30%;
                left: 40%;
                color: #fff;
                text-align: center;
            }
        }
    }

    .page.ap.roof .voice_wrap, .page.ex .voice_wrap {
        padding: 14.029vw 0 7.353vw;
        margin-top: -135vw;
    }

    .page.ap {
        .page_mv.owner {

            h1 {
                position: absolute;
                top: 45%;
                left: 50%;
                color: var(--Neutral-White-000, #FFF);
                font-family: "Zen Kaku Gothic New";
                font-size: 19px;
                font-style: normal;
                font-weight: 500;
                line-height: normal;
                text-align: center;
            }
            h1::before {
                position: absolute;
                content: "";
                left: 34%;
                top: -2px;
                width: 100px;
                height: 1px;
                background: #fff;
            }
            p {
                position: absolute;
                top: 30%;
                left: 41%;
                color: #fff;
                text-align: center;
            }
        }
        .voice_wrap {
            padding: 37.029vw 0 7.353vw;
        }
    }

    .page.rehome {
        .page_mv.owner {
            p {
                position: absolute;
                top: 30%;
                left: 40%;
                color: #fff;
            }

            h1 {
                position: absolute;
                top: 45%;
                left: 50%;
                color: var(--Neutral-White-000, #FFF);
                font-family: "Zen Kaku Gothic New";
                font-size: 32px;
                font-style: normal;
                font-weight: 500;
                line-height: normal;
            }

            h1::before {
                position: absolute;
                content: "";
                left: 33%;
                width: 100px;
                height: 1px;
                background: #fff;
            }
        }

        .voice_slide {
            overflow: hidden;
        }
    }
    .page.wcu {
        h1 {
            position: absolute;
            top: 37%;
            left: 50%;
            transform: translate(-50%, 0);
            color: var(--Neutral-White-000, #FFF);
            font-family: "Zen Kaku Gothic New";
            font-size: 24px;
            font-style: normal;
            font-weight: 500;
            line-height: normal;
        }
    }
}