/*

ヘッダー調整

*/

header {
    width: 100%;
    height: 350px;
    padding: 0 50px 0 50px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    /* background-color: #9d4517; */
}

/* header {
    width: 1620px;
    margin: 0 auto;
    padding: 30px 0 0 0;
    display: flex;
    justify-content: space-between;
    background-color: #9d4517;
} */


@media screen and (max-width: 1280px) {
    header {
        height: 10%;
        min-height: 10%;
        max-height: 10%;
        padding: 0 10px 0;
    }
}


#header-area {
    display: flex;
    flex-direction: column;
    width: 90%;
    /* background-color: #2262a3; */
}

#page-title-area h1 {
    font-size: 10rem;
}

#header-illust {
    width: 10%;
    /* background-color: aqua; */
}

#header-illust img {
    width: 100%;
    object-fit: contain;
}

@media screen and (max-width: 1280px) {
    #page-title-area h1 {
        font-size: 6vw;
    }

}

@media screen and (max-width: 768px) {
    #page-title-area h1 {
        font-size: 10vw;
    }

}


/*

ヒーロー逆三角装飾

*/

#hero-triangle {
    background-color: #2262a3;
    width: 100%;
    height: 90px;
    clip-path: polygon(0 0, 100% 0, 50% 100%, 50% 100%);
    margin-top: 0;
}

@media screen and (max-width: 980px) {
    #hero-triangle {
        height: 65px;
        clip-path: polygon(0 0, 100% 0, 50% 100%, 50% 100%);
        margin-top: 0;
    }
}

/*

カスタマイズ製品一覧エリア

*/

.sec-item {
    width: 1000px;
    margin: 0 auto 50px auto;
}

@media screen and (max-width: 768px) {
    .sec-item {
        width: calc(100% - 60px);
    }
}

.sec-item h2 {
    font-size: 24px;
    font-weight: bold;
    color: #2262a3;
    margin-bottom: 50px;
}

/******************
ソートボタン
*******************/
#item-button {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 0 0 50px 0;
    margin: auto;
    /* background-color: antiquewhite; */
}

#item-button>div {
    width: 125px;
    height: 125px;
    background-color: #9d4517;
    border-radius: 50%;
    display: block;
    text-align: center;
    align-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all .3s;
}

#item-button>div:hover {
    opacity: 0.7;
}

.sec-item>p {
    margin: 0 0 50px 0;
}

#item-button>div.sort-button-layout {
    display: none;
}

@media screen and (max-width: 768px) {
    #item-button {
        gap: 20px;
        justify-content: space-between;
        flex-wrap: wrap;
        margin-bottom: 50px;
    }

    #item-button>div {
        width: 100px;
        height: 100px;
        font-size: 16px;
    }

    #item-button>div.sort-button-layout {
        display: block;
        visibility: hidden;
    }
}

@media screen and (max-width: 468px) {

    #item-button>div.sort-button-layout {
        display: none;
        visibility: visible;
    }
}

/******************
製品一覧フレックス
*******************/
.item-area {
    display: flex;
    gap: 30px 30px;
    flex-wrap: wrap;
    transition: all .5s;
}

.item-flex-item {
    width: calc(100% / 3 - 30px);
    min-width: calc(333px - 30px);
    display: flex;
    flex-direction: column;
    gap: 20px 0;
    padding: 15px;
    box-shadow: 1px 1px 5px gray;
    border-radius: 15px;
    pointer-events: auto;
    cursor: pointer;
    transition: all .5s;
}

.item-flex-item:hover {
    opacity: 0.8;
    transform: translateY(-10px);
}

.item-flex-item>picture {
    display: block;
    height: 200px;
    overflow: hidden;
    border-radius: 15px;
}

.item-flex-item>picture>img {
    width: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.item-flex-item>dl {
    display: flex;
    flex-direction: column;
    gap: 20px 0;
    flex-grow: 1;
}

.item-flex-item>dl>dt {
    font-size: 18px;
    font-weight: 900;
    color: #2262a3;
}

.item-flex-item span {
    display: none;
}

@media screen and (max-width: 768px) {

    .item-flex-item {
        width: calc(100% / 2 - 15px);
        min-width: calc(100% / 2 - 15px);
        gap: 20px 0;
        padding: 15px;
    }

    .item-flex-item>picture {
        width: auto;
        height: 125px;
    }

    .item-flex-item>picture>img {
        width: 100%;
        object-fit: cover;
        transform: scale(1.1);
    }

    .item-flex-item>dl {
        display: flex;
        flex-direction: column;
        gap: 20px 0;
        flex-grow: 1;
    }

    .item-flex-item>dl>dt {
        font-size: 16px;
    }

    .item-flex-item>dl>dd {
        font-size: 14px;
    }
}

/******************
モーダル
*******************/
.item-modal {
    position: fixed;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 200;
    overflow-y: hidden;
}

.item-modal.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.item-modal-contents {
    width: 80%;
    max-width: 1280px;
    background-color: #fff;
    padding: 50px;
    border-radius: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 15px;
    background-color: #2262a3;
    border: 0.5px solid #2262a3;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    opacity: 0.8;
}

body.modal-active {
    overflow: hidden;
    /* 背景スクロールを止める */
}

.modal-pic-flex {
    width: 100%;
    display: flex;
    gap: 0 15px;
}

.modal-pic-flex>picture {
    width: calc(100% / 3 - 15px);
    min-width: 150px;
    overflow: hidden;
}

.modal-pic-flex>picture>img {
    width: 100%;
    object-fit: cover;
}

.modal-info-flex {
    width: 100%;
    margin-top: 35px;
}

.modal-info-flex dl {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.modal-info-flex dl dt,
.modal-info-flex dl dd {
    border-bottom: 0.5px solid #2262a3;
    padding: 15px 0;
}

.modal-info-flex dl dt:nth-of-type(1),
.modal-info-flex dl dd:nth-of-type(1) {
    border-top: 0.5px solid #2262a3;
}

.modal-info-flex dl dt {
    width: 30%;
    text-align: center;
    font-weight: 900;
    font-size: 20px;
    color: #2262a3;
}

.modal-info-flex dl dd {
    width: 70%;
    font-size: 20px;
}

.modal-pic-flex>picture:has(.no-image) {
    display: none;
}

img.no-image {
    display: none;
}


@media screen and (max-width: 768px) {

    .item-modal {
        overflow-y: scroll;
    }

    .item-modal-contents {
        width: 90%;
        max-width: 1280px;
        padding: 30px;
        height: calc(100vh - 50px);
        overflow-y: auto;
    }

    .modal-close {
        font-size: 20px;
    }

    .modal-pic-flex {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 15px 15px;
    }

    .modal-pic-flex>picture {
        width: calc(100%);
        min-width: calc(100%);
        overflow: hidden;
    }

    .modal-info-flex {
        width: 100%;
        margin-top: 35px;
    }

    .modal-info-flex dl {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    .modal-info-flex dl dt {
        font-size: 16px;
    }

    .modal-info-flex dl dd {
        font-size: 16px;
    }
}