@charset "utf-8";

/* ファーストビューエリアの設定 */

.first-view {
    height: calc(100vh - 110px);
    /* 100vh = ブラウザ画面の高さいっぱいのこと */
    background-image: url(../images/index/bg-main.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    /* background: image repeat position/size; */

    /* 本来は横並びさせるためのもの　今回はオプションを使うためだけに */
    display: flex;
    /* 上下の中央ぞろえ */
    align-items: center;
}

.first-view-text {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 80px 40px;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 10px #4b2c14;
}

.first-view-text h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 56px;
    line-height: 72px;
}

.first-view-text p {
    font-size: 18px;
    margin-top: 20px;
}

.lead {
    max-width: 1200px;
    margin: 60px auto;
}

.lead p {
    line-height: 2;
    text-align: center;
}

.link-button-area {
    text-align: center;
    margin-top: 40px;
}

.link-button {
    background-color: #f4dd64;
    display: inline-block;
    /* 小さくても */
    min-width: 180px;
    line-height: 48px;
    border-radius: 24px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
}

.link-button:hover {
    background-color: #d8b500;
}

.recommended {
    background-color: #f8f8f8;
    padding: 45px 0 55px;
}

.recommended h2 {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}

/* 疑似要素（beforeとafterの二つが使える） */
/* CSSだけで要素を追加するときに使うもの */
.recommended h2::after {
    /* 疑似要素作るときに絶対いるもの */
    content: "";
    /* サイズ設定するためにブロックに変更　もともとインライン */
    display: block;
    width: 36px;
    height: 3px;
    background-color: #000;
    margin: 20px auto;
}

.item-list {
    display: flex;
    padding: 40px 60px 10px;
    /* gap: 75px; */
    overflow-x: scroll;
}

.item-list li {
    flex-shrink: 0;
    width: 260px;
    margin-left: 75px;
}

.item-list li:first-child {
    margin-left: 0;
}

.item-list dl {
    margin-top: 20px;
}

.item-list dt {
    font-weight: bold;
}

.item-list dd {
    font-size: 13px;
    line-height: 20px;
    margin-top: 10px;
}

.item-list .price {
    font-weight: bold;
    margin-top: 15px;
}

@media(max-width:800px) {
    .first-view {
        height: calc(100vh - 50px);
        background-image: url(../images/index/bg-main-sp.jpg);
        align-items: flex-start;
    }

    .first-view-text {
        padding: 60px 0 0 20px;
    }

    .first-view-text h1 {
        font-size: 36px;
        line-height: 48px;
    }

    .first-view-text p {
        font-size: 14px;
        margin-top: 15px;
    }

    .lead {
        padding: 0 20px;
    }

    .lead p {
        text-align: left;
    }

    .item-list {
        padding: 40px 20px 10px;
    }

    .item-list li {
        width: 220px;
        margin-left: 30px;
    }

}

/* オープニング画面の設定 */
.opening {
    background-color: #fff;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    /* ロゴを中央にする設定 */
    display: flex;
    justify-content: center;
    align-items: center;
    /* アニメーションの設定 */
    animation: open 1s 2s both;
}

/* .openingは2秒後に1秒かけて透明になって一番下になる */
@keyframes open {
    100% {
        opacity: 0;
        z-index: -1;
    }
}

.opening img {
    animation: openlogo 3s both;
}

@keyframes openlogo {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    33%,
    66% {
        opacity: 1;
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.5);
    }
}

/* オープニング時にはスクロール出来なくなる設定 */

.wrap {
    height: 100vh;
    overflow: hidden;
    /* はみ出した部分を非表示にする */
    animation: scroll 0s 3s both;
    /* scrollは3秒後に0秒 */

}

@keyframes scroll {
    100% {
        overflow: visible;
        height: auto;
    }
}

/* bodyにスクロールバーの領域を設定しておく */
body {
    overflow-y: scroll;
}