@charset "utf-8";

.first-view {
    height: calc(100vh - 110px);
    background-image: url(../images/index/bg-main.jpg);
    /* 背景画像の挿入 background-image: url(画像のパス); */
    background-repeat: no-repeat;
    /* 背景画像の繰り返しの設定 */
    background-position: center;
    /* 背景画像の位置の設定 上下左右 */
    background-size: cover;
    /* 背景画像の大きさの設定 cover＝縦横比を保持したまま領域を覆うサイズに拡大縮小する */
    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;
    /* text-shadow: 左右　上下　ぼかし具合　影の色; */
}

.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;
    /* テキストを中央揃え(Center)に設定 */
}

.link-button-area {
    text-align: center;
    margin-top: 40px;
}

.link-button {
    background-color: #f4dd64;
    display: inline-block;
    /* 要素は横並び、幅と高さを指定できる */
    min-width: 180px;
    /* 最小幅の設定  ↑は180pxより小さくならない
    画面サイズが可変したときに影響する */
    line-height: 48px;
    /* 文字の位置を変えずにクリックできる領域を大きくした */
    border-radius: 24px;
    /* 角丸の半径 ↑両端に半径24pxの円がある状態 */
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.link-button:hover {
    background-color: #d8b500;
    /* linkbottunにマウスを持っていくと背景色が#d8b500に変わる */
}

.recommended {
    background-color: #f8f8f8;
    padding: 45px 0 55px;
}

.recommended h2 {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}

.recommended h2::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    background-color: #000;
    margin: 20px auto 0;
}

.item-list {
    display: flex;
    padding: 40px 60px 10px;
    overflow: scroll;
}

.item-list li {
    flex-shrink: 0;
    /* 子要素に指定するflex  0＝縮まない */
    width: 260px;
    margin-left: 75px;
}

.item-list li:first-child {
    margin-left: 0;
    /* 最初のカフェラテ画像の左側の余白を取る */

    /* first-child＝最初の要素を指定する */
    /* nth-child(数字)＝数字の順番の要素を指定する */
}

.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;
}

/* opening画面の箱の設定 */
.opening {
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    /* ロゴを真ん中にする設定 */
    display: flex;
    justify-content: center;
    align-items: center;
    /* 背景の箱が不透明から透明になる設定 */
    animation: open 1s 2s both;
}

@keyframes open {
    100% {
        opacity: 0;
        /* opacity:0 =>透明になる
        opacity:1 =>不透明になる */
        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);
    }

    100% {
        transform: scale(1.5);
    }
}

/* 絶対にアニメーションを見せるための設定 */
.wrap {
    height: 100vh;
    overflow: hidden;
    /* はみ出した部分を非表示にする設定 */
    animation: scroll 0s 3s both;

}

@keyframes scroll {
    100% {
        overflow: visible;
        /* overflow:hiddenの解除 非表示状態を解除*/
        height: auto;
        /* height:100vhの解除 */
    }
}

body {
    overflow-y: scroll;
    /* ダミーのスクロールバーを入れる */
}


/* ここからモバイル用cssの設定 */
@media (max-width: 800px) {
    .first-view {
        height: clac(100vh - 50px);
        background-image: url(../images/index/bg-main-sp.jpg);
        align-items: flex-start;
    }

    .first-view-text {
        margin: 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: 0 20px 0;
    }

    .item-list li {
        width: 220px;
        margin-left: 30px;
    }
}