@charset "utf-8";

.title {
    display: flex;
    /* 横並びにする */
    flex-direction: column;
    /* flexの影響下で縦方向に設定する */
    align-items: center;
    margin-top: 60px;
}

.title h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: bold;
}

.title p {
    font-size: 14px;
    margin-top: 15px;
}

.shop-contents {
    width: 1080px;
    max-width: 90%;
    /* 画面サイズが小さくなっても左右に余白が残るように */
    margin: 75px auto 0;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    /* flexの並び順を反対にする */
}

.shop-item {
    flex-grow: 1;
    /* 拡大率を操作 
    とりあえず親要素いっぱいに広がるように設定しといて、max-widthを設定すると、画面サイズが可変したときに余白が無くなるようにする設定*/
    max-width: 765px;
}

.shop-item h2 {
    font-size: 22px;
    font-weight: bold;
    line-height: 30px;
}

.shop-item h2::after {
    content: '';
    /* 何も文字をいれない */
    display: block;
    width: 36px;
    height: 3px;
    /* 幅36px、高さ3pxの長方形ができている */
    background-color: #000;
    margin-top: 20px;
}

.item-list {
    margin-top: 25px;
    display: grid;
    /* グリッドに並べたいものの親要素に指定する */
    grid-template-columns: repeat(auto-fit, 220px);
    /* mask-repeat(［繰り返す回数］, ［列の幅］) */
    column-gap: 50px;
    /* 列の余白 */
    row-gap: 40px;
    /* 行の余白 */
}

.item-list a {
    display: block;
    /* どんな環境でも正しくリンクエリアにするために指示 */
    transition-duration: 0.2s;
}

.item-list a:hover {
    transform: scale(1.05);
    /* scale(拡大倍率) */
}

.item-list dl {
    margin-top: 20px;
}

.item-list dt {
    font-weight: bold;
}

.item-list dd {
    font-size: 13px;
    line-height: 20px;
    margin-top: 10px;
}

.shop-menu {
    flex-shrink: 0;
    /* 縮小率  0= 絶対に縮小しない */
    margin-right: 60px;
    position: relative;
}


.shop-menu-inner {
    position: sticky;
    top: 30px;
    left: 0;
    right: 0;
    /* left&right=0 はwidth(親要素)100％と同じ意味 */
}

.shop-menu-inner h2 {
    font-size: 18px;
    font-weight: bold;
}

.shop-menu-inner ul {
    list-style-type: disc;
    /* リストの前に黒丸を追加 */
    margin: 20px 0 0 20px;
}

.shop-menu-inner li {
    font-size: 14px;
    margin-top: 15px;
}

/* ここから商品詳細ページ設定 */

.item-area {
    margin-top: 20px;
    display: flex;
}

.item-area img {
    width: 50%;
    max-width: 380px;
}

.about-item {
    margin-left: 30px;
}

.about-item .item-text {
    font-size: 14px;
    line-height: 26px;
}

.about-item .item-price {
    font-weight: bold;
    margin-top: 20px;
}

.about-item a {
    background-color: #f4dd64;
    display: inline-block;
    /* 要素は横並び、幅と高さを指定できる 
    今回はスタイルを付けれるようにinline-blockに設定*/
    min-width: 180px;
    /* 最小幅の設定  ↑は180pxより小さくならない
    画面サイズが可変したときに影響する */
    line-height: 48px;
    /* 文字の位置を変えずにクリックできる領域を大きくした */
    border-radius: 24px;
    /* 角丸の半径 ↑両端に半径24pxの円がある状態 */
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-align: center;
    margin-top: 35px;
}

.about-item a:hover {
    background-color: #d8b500;
}

.recommended {
    margin-top: 60px;
}

.footer {
    margin-top: 100px;
}


/* ここからモバイル用cssの設定 */
@media (max-width: 800px) {
    .shop-contents {
        display: block;
        /* display:flexの解除 */
        max-width: 100%;
        /* itemlistの横幅を左右にくっつけれるようにするために100％にしておいてほかの要素はpaddingで横幅を調整 */
        margin-top: 60px;
    }

    .shop-item {
        max-width: 540px;
        /* pc版のcssでは765px */
        margin: 0 auto;
        /* 540px以上のサイズになった時に左右中央にする時に影響する
        540px以下の時はmarginは関係ない */
        padding: 0 20px;
    }

    .item-list {
        grid-template-columns: repeat(2, 1fr);
        /* columns:repeat(列の数, 列の幅) */
        column-gap: 35px;
    }

    .shop-menu {
        background-color: #f8f8f8;
        margin: 60px 0 0;
        /* 左側までshop-menuの範囲が来るようにmargin-right:0を入れている */
        padding: 50px 0;
    }

    .shop-menu-inner {
        max-width: 540px;
        margin: 0 auto;
        padding: 0 20px;
    }


    /* ここから商品詳細ページの設定 */
    .item-area {
        display: block;
    }

    .item-area img {
        max-width: 100%;
        /* max-width: 100% or noneを入れないとipadサイズで見た時にPC用cssで設定したmax-width:380pxの影響で要素いっぱいの大きさにならない */
        width: 100%;
    }

    .about-item {
        margin: 20px 0 0;
    }

    .about-item a {
        width: 100%;
        /* PC用cssでinline-blockに設定しているから幅の設定ができる */
    }

    .footer {
        margin-top: 0;
    }
}