/* 黄色#deba4e
青#2f68a1
背景#333333 */



html {
    scroll-behavior: smooth;
}

.noto {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

.saira {
    font-family: "Saira Stencil One", sans-serif;
    font-weight: 400;
    font-style: normal;
}


body {
    margin: 0;
    background-color: #222222;
    background-image: url(image/background.png);
    background-size: 70%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: 130% 50px;
    width: 100%;
}

a {
    text-decoration: none;
}

.in1 {
    animation-name: in1;
    animation-delay: 0.3s;
    animation-duration: 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes in1 {
    0% {
        transform: translateX(-30px);
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.in2 {
    animation-name: in2;
    animation-delay: 0.5s;
    animation-duration: 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes in2 {
    0% {
        transform: translateX(-30px);
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.in3 {
    animation-name: in3;
    animation-delay: 0.7s;
    animation-duration: 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes in3 {
    0% {
        transform: translateX(-30px);
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}



.block {
    height: 100vh;
}

.main-block {
    width: 100%;
    height: 50%;
    overflow: hidden;
}

.scroll-img {
    position: relative;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    align-items: center;
    width: max-content;
    animation: scroll 20s linear infinite;


    img {
        width: 200px;
        height: 100%;
    }

}


@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.scroll-set {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.text-block {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background-color: #2f68a1;

    img {
        width: 150px;
    }
}

.text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 1rem;

    p {
        margin: 0;
    }

    button {
        width: 200px;
        background-color: #deba4e;
        padding: 5px;
        border-radius: 100px;
        border: none;
        box-shadow: 5px 5px 0 0 #222222;
        color: #222222;
        transition: 0.5s;
    }

    button:hover {
        transform: translate(5px, 5px);
        box-shadow: none;
    }
}

.text-block::before {
    content: "";
    position: absolute;
    top: 50px;
    /* 上からの位置（ロゴの横あたりに調整） */
    left: -30px;
    /* 左側に30px分飛び出させる */

    /* 三角形を作る設定 */
    border-style: solid;
    border-width: 15px 30px 15px 0;
    /* 右向きの三角形 */
    border-color: transparent #2f68a1 transparent transparent;
}


/* 2行目 */
.main-block2 {
    width: 100%;
    height: 50%;
    overflow: hidden;
}

.scroll-img2 {
    position: relative;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    align-items: center;
    width: max-content;
    animation: scroll2 20s linear infinite;


    img {
        width: 200px;
        height: 100%;
    }

}


@keyframes scroll2 {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.scroll-set2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.text-block2 {
    position: absolute;
    z-index: 5;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background-color: #2f68a1;

    img {
        width: 200px;
    }
}

.text2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 1rem;

    p {
        margin: 0;
    }

    button {
        width: 200px;
        background-color: #deba4e;
        padding: 5px;
        border-radius: 100px;
        border: none;
        box-shadow: 5px 5px 0 0 #222222;
        color: #222222;
        transition: 0.5s;
    }

    button:hover {
        transform: translate(5px, 5px);
        box-shadow: none;
    }
}

.text-block2::before {
    content: "";
    position: absolute;
    top: 50px;
    /* 上からの位置（ロゴの横あたりに調整） */
    right: -30px;
    /* 左側に30px分飛び出させる */

    /* 三角形を作る設定 */
    border-style: solid;
    border-width: 15px 0 15px 30px;
    /* 右向きの三角形 */
    border-color: transparent transparent transparent #2f68a1;
}


header {
    background-color: #2f68a1;
    height: 80px;

    a {
        color: #222222;
    }

    img {
        width: auto;
        height: 70px;
        align-content: center;
        position: absolute;
        padding: 5px;
        top: 0;
        right: 30px;
    }

    .back {
        position: absolute;
        background-color: #deba4e;
        width: 200px;
        left: 0;
        top: 60px;
        padding: 10px;
        border-radius: 0 20px 20px 0;

        p {
            font-size: 1.25rem;
            padding: 0 0 0 30px;
        }
    }
}

.header2 {
    background-color: #deba4e;

    .back {
        position: absolute;
        background-color: #2f68a1;
        width: 200px;
        left: 0;
        top: 60px;
        padding: 10px;
        border-radius: 0 20px 20px 0;

        p {
            font-size: 1.25rem;
            padding: 0 0 0 30px;
        }
    }

}

.goods-contents {
    width: 80%;
    margin: 100px auto;

    .goods-item {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
        width: 100%;
        gap: 30px;

        img {
            width: 30%;
            height: auto !important;
            max-height: 230px;
            object-fit: contain;
            flex-shrink: 0;
        }
    }

    h1,
    h2,
    p {
        margin: 0;
        color: #deba4e;
    }

    p {
        margin-bottom: 1rem;
    }
}


/* 既存の .goods-item 内の img 設定を .item-wrapper に変更 */
.goods-item {
    .item-wrapper {
        width: 30%;
        cursor: pointer;
        transition: transform 0.3s;
        display: flex;
        justify-content: center;

        &:hover {
            transform: scale(1.05);
        }

        img {
            width: 100%;
            height: auto !important;
            object-fit: contain;
        }
    }
}

/* モーダルのスタイル */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;

    &.is-open {
        display: flex;
    }
}

.modal-content {
    background: #000000;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;

    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 0;
        /* 三角形の作り方（右向き） */
        border-top: 30px solid transparent;
        border-bottom: 30px solid #deba4e;
        border-left: 30px solid transparent;
        /* ← 三角形の色 */
    }

    img {
        width: 100%;
        max-width: 250px;
        height: auto;
        margin-bottom: 20px;
    }

    h2 {
        color: #deba4e;
        margin-bottom: 15px;
    }

    p {
        color: #fff;
        line-height: 1.6;
        text-align: left;
    }

    #modal-close {
        position: absolute;
        top: 10px;
        right: 20px;
        font-size: 30px;
        color: #2f68a1;
        background-color: #deba4e;
        cursor: pointer;
        padding: 0 1rem;
        border-radius: 10px;
    }
}