@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');

body{
    background: #c2b9ac;
}
.flex{
    display: flex;
    flex-wrap: wrap;
}
section{
    color: #171717;
    font-family: "Noto Serif JP", serif;
}
section *{
    box-sizing: border-box;
}
section img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* main visual */
section.quality-main::before{
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 24, 21, 0.6);
}
section.quality-main {
    position: relative;
    margin-bottom: 0px;
}
section.quality-main img{
    width: 100%;
    aspect-ratio: 2.1428;
    object-fit: cover;
}
section.quality-main p{
    position: absolute;
    color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Garamond Premier Pro', 'EB Garamond', serif;
    font-size: 42px;
    letter-spacing: 3rem;
    width: 100%;
    text-align: center;
}
section.quality-main .line{
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    height: 18vw;
    width: 1px;
    background: #fff;
    z-index: 2;
}
section.quality-main .caption{
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #fff;
    font-size: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    z-index: 2;
}
section h1 {
    font-size: 3rem;
    line-height: 1.5;
    padding: 20px 0;
}

#bathroom,
#powderroom,
#kitchen,
#other,
#smartlife,
#zeh{
    padding-top: 100px;
    margin-top: -100px;
}


/* sticky menu */
.sticky-menu{
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
    position: fixed;
    top: 25vh;
    right: 50px;
    z-index: 100;
}
.sticky-menu.show{
    opacity: 1;
    pointer-events: auto;
}
.sticky-menu li{
    text-align: right;
    padding: 5px 0;
}
.sticky-menu a{
    opacity: 0.6;
    transition: all 0.3s ease-out;
}
.sticky-menu.kitchen .kitchen a,
.sticky-menu.bathroom .bathroom a,
.sticky-menu.powderroom .powderroom a,
.sticky-menu.other .other a,
.sticky-menu a:hover{
    opacity: 1;
    font-weight: 500;
}



/* menu */

#menu{
    padding:76px 0 85px;
}
.menu-wrap{
    max-width: 740px;
    width: 90%;
    margin: 0 auto;
    gap: 30px 65px;
}
.menu-item{
    width: calc( (100% - 130px) / 3 );
    position: relative;
}
.menu-item a{
    padding: 21px 0 0;
    position: relative;
    font-family: 'Garamond Premier Pro', 'EB Garamond', serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 1px;
    display: block;
    width: 100%;
    height: 100%;
    background: url(../images/quality/icon_menu.svg) right bottom / 6px auto no-repeat;
}
.menu-item a:before{
    content: "";
    display: block;
    height: 1px;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    background: #DDDDDD;
}
.menu-item a:after{
    content: "";
    display: block;
    width: 25%;
    height: 1px;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    background: #807420;
    transition: width 0.4s cubic-bezier(0, 0, 0.41, 0.86);
}
.menu-item a:hover:after{
    width: 100%;
}
.menu-item a i{
    font-style: none;
    display: inline-block;
    margin-right; 2px;
}
.menu-item a span{
    display: block;
    font-family: 'Noto Serif JP', 'A-OTF A1 Mincho Std', serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
    margin: 8px 0 0;
}

.section-main{
}
.section-main h3{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-family: 'Garamond Premier Pro', 'EB Garamond', serif;
    font-weight: 400;
    font-size: clamp(20px, 15.070px + 1.315vw, 34px);
    white-space: nowrap;
    letter-spacing: 0.29em;
    text-align: center;
}
.section-main.zeh h3,
.section-main.smartlife h3,
.section-main.other h3,
.section-main.bathroom h3{
    color: #fff;
}
.section-main img{
    width: 100%;
    aspect-ratio: 3.076923;
    object-fit: cover;
}



.quality-contents{
    padding: 136px 0 142px;
}
.quality-list{
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
}
.quality-item{
    width: calc( (100% - 96px) / 4);
}
#powderroom .quality-list{
    max-width: 742px;
}
#powderroom .quality-item{
    width: calc( (100% - 64px) / 3);
}
.quality-item_text{
    margin-top: 18px;
}
.quality-item_text h4{
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.09em;
    text-align: center;
}
.quality-item_text p{
    margin: 10px 0 0;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.09em;
    text-align: justify;
}
.quality-item_text p .note{
    font-size: 10px;
    display: block;
}


#smartlife .smart-title{
    font-weight: 400;
    font-size: 24px;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-align: center;
}
.smart-other,
.tebra,
.iot{
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
}
.iot-feature{
    gap: 20px 40px;
    padding: 29px 38px 39px;
    border: 1px solid #3F3F3F;
    margin: 52px 0 0;
}
.iot-feature_item{
    width: calc((100% - 80px) / 3);
}
.iot-feature_item h5{
    border-bottom: 1px solid #3F3F3F;
    text-align: center;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.06em;
    padding: 0 0 12px;
}
.iot-feature_item p{
    padding: 17px 0 0;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: justify;
}
.iot-item{
    gap: 32px;
    margin: 31px 0 0;
}
.iot-item_box{
    width: calc((100% - 32px) / 2);
}
.iot-item + p{
    margin: 9px 0 0;
    font-weight: 400;
    font-size: 10px;
    line-height: 1.5;
}
.smart-other,
.tebra{
    margin: 61px auto 0;
    padding: 56px 0 0;
    border-top: 1px solid #3F3F3F;
}
.tebra-wrap{
    gap: 20px 43px;
    align-items: center;
    margin: 46px 0 0;
}
.tebra-key{
    flex: 1;
    background: rgba(255, 255, 255, 0.65);
    padding: 24px 32px;
}
.tebra-key .img{
    padding: 0 51px;
}
.tebra-ex{
    flex: 3;
    gap: 20px 0;
}
.ex-item{
}
.ex-item.item1{
    flex: 2;
}
.ex-item.item2{
    flex: 1;
}
.ex-item.item2 .img{
    padding: 0 18px;
}
.tebra .text{
    margin: 10px;
}
.tebra .text h5{
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.06em;
}
.tebra .text p{
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: justify;
    margin-top: 13px;
}
.tebra .text .note{
    display: block;
    font-size: 10px;
    margin-top: 13px;
}
.ex-item.item1 .text{
    padding: 0 50px 0 0;
}
.smart-other .quality-list{
    margin: 46px 0 0;
    width: 100%;
}

.zeh-title{
    position: relative;
    padding: 104px 0 24px;
    font-family: "Shippori Mincho", serif;
    font-weight: 400;
    font-size: clamp(20px, 15.775px + 1.127vw, 32px);
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-align: center;
    background: url(../images/quality/icon_zeh.svg) center top / 118px auto no-repeat;
}
.zeh-title span{
    position: absolute;
    bottom: 0;
    right: 5%;
    font-family: "Noto Serif JP", serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 150%;
}
.about-zeh{
    max-width: 950px;
    width: 90%;
    margin: 86px auto 0;
    gap: 30px 70px;
    font-family: "Noto Serif JP", serif;
}
.about-zeh .text{
    width: 280px;
}
.about-zeh .text h5{
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: 0.06em;
}
.about-zeh .text p{
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    text-align: justify;

}
.zeh-ex{
    width: calc( 100% - 350px);
    gap: 20px 15px;
    align-items: center;
}
.zeh-ex_img{
    width: 65%;
}
.zeh-ex_text{
    width: calc( 35% - 15px );
    padding: 0 0 0 36px;
    position: relative;
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    text-align: justify;
}
.zeh-ex_text:before{
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 25px;
    height: 29px;
    background: url(../images/quality/icon_arrow.svg) center / contain no-repeat;
}

.zeh-feature{
    gap: 36px;
    max-width: 1000px;
    width: 90%;
    margin: 69px auto 0;
}
.zeh-feature_item{
    width: calc((100% - 36px) / 2);
}
.zeh-feature_item p{
    font-family: "Noto Serif JP", serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 1.5;
    margin: 13px 0 0;
}
.zeh-list{
    max-width: 1000px;
    width: 90%;
    margin: 73px auto 0;
}
.zeh-list .zeh-list_title{
    font-family: "Noto Serif JP";
    font-weight: 400;
    font-size: clamp(16px, 13.183px + 0.751vw, 24px);
    line-height: 1.5;
    letter-spacing: 0.06em;
}
.zeh-list .quality-list{
    width: 100%;
    margin: 48px 0 0;
}
.zeh-list .quality-item{
    width: calc((100% - 64px) / 3);
}




/* スマホ向けのメディアクエリ */
@media screen and (max-width: 768px) {

    .sticky-menu{
        display: none;
    }

    #bathroom,
    #powderroom,
    #kitchen,
    #other,
    #smartlife,
    #zeh{
        padding-top: 70px;
        margin-top: -70px;
    }
    #menu{
        padding: 40px 0;
    }
    .menu-wrap{
        gap: 30px;
    }
    .menu-item{
        width: calc( (100% - 30px) / 2);
    }

    .quality-contents{
        padding: 68px 0 71px;
    }
    #smartlife .quality-item,
    #powderroom .quality-item,
    .quality-item{
        width: calc( (100% - 32px) / 2);
    }
    .iot-feature_item,
    .iot-item_box{
        width: 100%;
    }

    .tebra-key{
        flex: unset;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 20px;
    }
    .tebra-key .img{
        width: 30%;
        padding: 0;
    }
    .tebra-key .text{
        width: calc(70% - 20px);
    }
    .tebra-ex{
        flex: unset;
        justify-content: center;
    }
    .ex-item.item1{
        flex: unset;
        width: 100%;
    }
    .ex-item.item2{
        flex: unset;
        width: 50%;
    }
    .ex-item.item1 .text{
        padding: 0;
    }
    .zeh-ex,
    .about-zeh .text{
        width: 100%;
    }
    .zeh-ex{
        justify-content: center;
    }
    .zeh-ex_img{
        width: 100%;
    }
    .zeh-ex_text{
        padding: 50px 0 0;
        width: 260px;
        font-size: 22px;
    }
    .zeh-ex_text:before{
        left: 50%;
        top: 0;
        transform: translateX(-50%) rotate(90deg);
    }

    .zeh-feature_item{
        width: 100%;
    }
    .zeh-list .quality-item{
        width: calc((100% - 32px) / 2);
    }
}
