/* ====================================================== */
/* 2023 製品別CSS */
/* ====================================================== */

.wrapper .base_btn{
    width: fit-content;
}
.wrapper .base_btn span{
    font-size: clamp(13px, 10.431px + 0.334vw, 15px);
}
.wrapper #designPart .base_btn{
    padding: 1.3em 2.9em;
}

.topImage {
    width: 100%;
    height: auto;
    position: relative;
}

.topImage>h1 {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: clamp(25px, 2.5vw, 45px);
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
}

.topImage>h1>span {
    color: #fff;
    font-size: clamp(14px, 2.5vw, 20px);
}

.topImage>h1>span {
    color: #fff;
    font-size: clamp(14px, 2.5vw, 20px);
}

.topImage>h1>p {
    color: #fff;
    font-size: clamp(14px, 2.5vw, 20px);
    margin-top: var(--list_margin);
}

/* 1st section */

.wrapper #title {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1000px;
    margin: 80px auto 80px;
    width: 93%;
    text-align: center;
}

#title>.leftSide p:first-of-type {
    font-size: clamp(20px, 2.5vw, 36px);
    line-height: 1.5;
    letter-spacing: .15ex;
}

#title>.leftSide p:nth-of-type(2) {
    font-size: clamp(13px, 1.7vw, 15px);
    line-height: 2;
    letter-spacing: .2ex;
    margin-top: 50px;
}

.rightSide img {
    margin-top: 80px;
}

.rightSide {
    justify-content: center;
    display: grid;
}

@media (min-width: 1000px) {
  .wrapper #title {
        grid-template-columns: 1fr 1fr;
        margin: 120px auto;
        width: calc(100% - 200px);
        text-align: left;
    }

    #title>.leftSide p:nth-of-type(2) {
        margin-top: 70px;
    }

    .rightSide img {
        margin-top: 0px;
        aspect-ratio: 1 / 1;
    }
}

/* 1st section */

/* 2nd section */

#sizeArea {
    /* width: 93%;
    max-width: 1200px; */
    margin: 0 auto;
    max-width: 1500px

    
}

@media (max-width: 768px) {
        #sizeArea {
            width: 93%;
            margin: 0 auto;
        }
    }

.titleArea {
    width: 100%;
    text-align: center;
}

.titleArea h4 {
    color: #B0B2AF;
    line-height: 1;
    margin-bottom: clamp(11px, 1.4vw, 13px);
    font-size: clamp(40px, 4.3vw, 50px);
}

.titleArea span {
    font-size: clamp(13px, 1.6vw, 14px);
    line-height: 1;
}

.titleArea>p {
    margin-top: 35px;
    font-size: clamp(14px, 2.5vw, 25px);
}

.caseArea {
    .caseList {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        margin-top: var(--title_margin);

        >li {
            position: relative;
            padding-right: 20px;
            padding-left: 20px;

            &:not(:last-child)::after {
                content: '';
                position: absolute;
                top: 60px;
                right: 0;
                height: 80%;
                width: 1px;
                background-color: #707070;
            }
        }



        .caseTitle {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            h4 {
                border: 1px solid #707070;
                padding: 7px 10px;
            }

            p {
                margin: 20px 0px 30px;
            }
        }

        .imageList {
            display: grid;
            grid-template-columns: 1fr 1fr;
            align-items: start;
            gap: 30px;

            li {
                &:first-child {
                    position: relative;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                }

                &:first-child::after {
                    content: '+';
                    position: absolute;
                    top: 25%;
                    right: -30px;
                    transform: translate(50%, -50%);
                    font-size: 30px;
                    color: #1C1C1C;
                }
            }

            p {
                font-size: 13px;

                &:first-of-type,
                &:nth-of-type(4),
                &:nth-of-type(5) {
                    font-size: 16px;
                }

                &:nth-of-type(2),
                &:nth-of-type(3) {
                    color: #707070;
                }

                span {
                    font-size: 13px;
                }
            }
        }
    }

    @media (max-width: 768px) {


        .caseList {
            grid-template-columns: 1fr; /* Stack items vertically */

            >li {
                padding-left: 0;
                padding-right: 0;
                padding-bottom: var(--list_margin);
                margin-bottom: var(--list_margin); 


                &:not(:last-child)::after {
                    top: auto; 
                    bottom: 0;
                    left: 5%; 
                    right: 5%; 
                    height: 1px; 
                    width: 90%; 
                    transform: none; 
                }
            }
            
             > li:last-child {
                margin-bottom: 0;
                padding-bottom: 0;
             }

        }

    }
}


#designPart {
    margin-top: var(--section_margin);
}

#designPart .inside {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
}

#designPart img {
    width: 93%;
    margin: 0 auto;
}

.spDesign {
    width: 93%;
    margin: 0 auto;
}

#designPart .textPart h3 {
    width: 90%;
    font-size: clamp(16px, 2.8vw, 28px);
    letter-spacing: 0.1em;
    line-height: 1.8;
    margin: 40px auto 40px;
}

#designPart .textPart p {
    width: 90%;
    font-size: clamp(13px, 1.7vw, 15px);
    line-height: 2.4;
    margin: 0 auto 40px;
    letter-spacing: 0.1rex;
}

#designPart .img {
    width: 82%;
    order: 1;
    object-fit: cover;
    object-position: center;
}

.titlePart h4 {
    color: #B0B2AF;
    line-height: 1;
    margin-bottom: clamp(11px, 1.4vw, 13px);
    font-size: clamp(40px, 4.3vw, 50px);
}

#designPart .textPartspan {
    max-width: 650px;
    margin: 60px auto 10px;
    width: 75%;

}

#designPart {
    background-color: #EEF0F2;
    padding: 40px 0 60px;
}

#designPart .buttonArea span {
    margin: 0;
}

#designPart .base_btn {
    margin-bottom: 40px;
}

@media (min-width: 1000px) {

    #designPart .base_btn {
        margin-bottom: 0px;
    }


    #size {
        padding-bottom: 100px;
    }

    #designPart {
        padding: 120px 0 220px;
    }

    #designPart .inside {
        flex-direction: row;
        justify-content: center;
    }


    .titlePart {
        max-width: 650px;
        margin: 0 auto;
        width: 75%;
    }

    #designPart img {
        margin: 0;
    }

    #designPart .textPart h3 {
        width: 75%;
        max-width: 650px;
        margin: 40px auto 40px;
    }

    #designPart .inside .textPart p {
        width: 75%;
        max-width: 650px;
        margin: 0 auto 40px;
    }

    #designPart img {
        width: 43%;
        height: 100%;
    }

    #designPart .inside:nth-of-type(1) img {
        order: -1;
    }

    #designPart .inside:nth-of-type(2) img {
        order: 1;
    }

    #designPart .inside:nth-of-type(3) img {
        order: -1;
    }

    #designPart .inside:nth-of-type(2) {
        margin: 130px 0 130px;
    }

    #designPart .inside:nth-of-type(2) .textPart h3 {
        margin: 0px auto 40px;
    }

    #designPart .inside:nth-of-type(3) .textPart h3 {
        margin: 0px auto 40px;
    }

}

#centerImage {
    position: absolute;
    z-index: 1;
    left: 50%;
    right: 50%;
    width: 93%;
    transform: translate(-50%, -50%);
}

@media (min-width: 1000px) {
    #centerImage {
        left: 50%;
        transform: translate(0, -50%);
        max-width: 600px;
    }

}

/* price display */

#backGroundPrice {
    background-color: #F3F3EF;
    padding-top: 60px;
}

.display.price>h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.display.price {
    padding: 60px 20px;
}

.display.current {
    display: block;
}



@media (min-width: 1000px) {

    #backGroundPrice {
        padding: 220px 0 160px 0;
    }

    .display.price>h2 {
        font-size: 25px;
    }

    .display.price {
        padding: 60px;
        max-width: 1200px;
        margin: 0 auto;
        background-color: #ffffff;
    }
}

/* youtube  */
.wrapper #movie>.text {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.wrapper #movie {
    background-color: #F3F3EF;
    width: 100%;
    padding: clamp(35px, 15.736px + 2.508vw, 50px) 0 clamp(45px, 12.893px + 4.181vw, 70px);
}

#movie h3 {
    font-size: 20px;
}

#movie>.inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: auto;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    margin-bottom: clamp(35px, 15.736px + 2.508vw, 50px);
}
#movie>.inner:last-child{
    margin-bottom: 0;
}

/* contact text  */

#contactText {
    line-height: 2.2em;
    margin-top: 50px;
}

#contactText>.tel {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
    gap: 10px;
}

#contactText>div {
    display: flex;
    gap: 10px;
}


/* Links*/

.wrapper .links {
    width: 90%;
    max-width: 1000px;
    margin: 80px auto;
}

.links>div:not(:first-of-type) {
    margin-top: 50px;
}

.links>div img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 25px;
}

.links>div .text {
    width: 100%;
}

.links>div .text h4 {
    font-size: 21px;
    text-align: center;
    margin-bottom: 25px;
}

.links>div .text h4 b {
    font-size: 11px;
    display: block;
    margin-top: 5px;
}

.links>div .text p {
    font-size: 14px;
    margin-bottom: 25px;
}
.wrapper .links .base_btn{
    padding: 1em 2.3em;
}
.wrapper .links .base_btn span{
    font-size: clamp(11px, 8.431px + 0.334vw, 13px);
}

@media(min-width: 1000px) {
  .wrapper  .links {
        margin: 160px auto;
    }

  .links>div {
        display: flex;
        align-items: center;
    }

    .links>div:not(:first-of-type) {
        margin-top: 100px;
    }

    .links>div:nth-of-type(even) {
        flex-direction: row-reverse;
    }

    .links>div:nth-of-type(odd) .text {
        padding-left: 40px;
    }

    .links>div:nth-of-type(even) .text {
        padding-right: 40px;
    }

    .links>div .text,
    .links>div img {
        width: 50%;
        margin-bottom: 0;
    }

    .links>div .text h4 {
        font-size: 25px;
        text-align: left;
    }

    .links>div .text h4 b {
        font-size: 13px;
        display: block;
    }

    .links>div .text .base_btn {
        margin-left: 0;
    }
}



.youTube {
    margin: 100px 0 130px 0;
}

.products_movie {
    width: 100%;
    margin: 0 auto;
    max-width: 900px;
}

.products_movie div {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
}

.products_movie div>iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.img1 {
    position: relative;
    z-index: 1;
}

.img2 {
    position: relative;
    z-index: 2;
    top: -12%;
    left: 61%;
    max-width: 70%;
}

@media screen and (max-width: 769px) {
    .youTube {
        margin: 60px 0;
    }

    .lastPart {
        width: 84%;
        margin: 0 auto;
    }

    .img2 {
        max-width: 100%;
        left: 5%;
    }
}


.wrapper .flow {
    width: 90%;
    max-width: 1200px;
    margin: var(--section_margin) auto;

    h2 {
        font-size: clamp(38px, 4vw, 45px);
        color: #B0B2AF;
        display: block;
        margin-bottom: 25px;
        text-align: center;

        span {
            font-size: 13px;
            display: block;
            margin-top: 5px;
        }

    }

    .annoucements {
        max-width: 1000px;
        margin: var(--title_margin) auto;
        display: flex;
        gap: var(--title_margin);
        font-size: clamp(12px, 1.7vw, 15px);

        .aboutTitle {
            white-space: nowrap;
        }

        .aboutText {
            p {
                margin-bottom: var(--list_margin);
            }
        }
    }

    .winnerSofa {
        width: 100%;
        display: flex;
        margin-bottom: var(--block_margin);

        .winnerText {
            width: 55%;
            background-color: #EEF0F2;
            padding: var(--block_margin) 0;
            display: flex;
            justify-content: center;
            align-items: center;

            >div {
                width: clamp(335px, 89%, 480px);

                >span {
                    font-size: clamp(15px, 1.8vw, 18px);
                    display: block;
                    margin-bottom: var(--list_margin);
                    letter-spacing: .2ex;
                    line-height: 1.7;
                }
            }

            h4 {
                font-size: clamp(20px, 2.8vw, 26px);
                margin-bottom: var(--title_margin);
            }

            p {
                font-size: clamp(12px, 1.7vw, 15px);
                line-height: 2.2;
                margin-bottom: 20px;
            }

        }

        img {
            width: 45%;
            object-fit: cover;
        }

        &.reverse {
            flex-direction: row-reverse;
        }
    }

    .detailsTable {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 100px;
        max-width: 1000px;
        margin: 0 auto;

        .detailInfo {
            table {
                tr {
                    border-bottom: #B0B2AF 1px solid;

                    th {
                        width: 28%;
                        white-space: nowrap;
                        height: auto;
                        text-align: left;
                        vertical-align: top;
                        padding: 30px 30px 30px 0;
                    }

                    td {
                        width: 100%;
                        height: auto;
                        padding: 30px 0;
                        text-align: left;

                        p {
                            font-size: clamp(12px, 1.7vw, 15px);
                        }
                    }
                }
            }
        }
    }

    .precautions {
        background-color: #EEF0F2;
        padding: 30px 50px;
        max-width: 900px;
        margin: var(--title_margin) auto 0;

        p {
            font-size: clamp(12px, 1.7vw, 15px);
            line-height: 2.2;
        }
    }

    @media(max-width:768px) {

        .annoucements {
            flex-direction: column;
        }

        .winnerSofa {
            flex-direction: column;

            .winnerText {
                width: 100%;
            }

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

            &.reverse {
                flex-direction: column;
            }
        }

        .detailsTable {
            grid-template-columns: 1fr;
            gap: 0px;
        }

        .precautions {
            padding: 20px;
        }
    }
}