@charset "utf-8";
/* CSS Document */

/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
エントリー一覧
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

.post_list {
    /*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/
    /* サムネイル付きリスト */
    &.thumb_list {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        /* justify 調整用空タグ */
        &::after,
        &::before {
            content: "";
            display: block;
        }

        @media screen and (max-width: 480px) {
            /* justify 調整用空タグ */
            &::after {
                /* 横幅を.entry_itemと合わせる */
                width: 48%;
            }
        }
        /* バッジ */
        /* NEW */
        .badge-new {
            position: relative;
            &::before {
                content: "NEW";
                position: absolute;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: var(--fsize_ss);
                font-weight: 500;
                background-color: #c00;
                border-radius: 0 0 0.4em 0;
                color: #fff;
                top: 0rem;
                left: 0rem;
                padding: 0.5em 1em;
                z-index: 10;
            }
        }
        .button_more {
            position: relative;
            &::after {
                content: "MORE";
                display: block;
                position: absolute;
                bottom: 0;
                right: 0;
                font-family: "Lexend Deca", sans-serif;
                font-size: var(--fsize_ss);
                color: #fff;
                background-color: #000;
                border-radius: 0.4em 0 0 0;
                padding: 0.5em 1.5em 0.5em 1em;
                background-image: url(../img/common/icon-yajirushi-white.svg);
                background-repeat: no-repeat;
                background-position: right 0.5em center;
                background-size: 0.5em auto;
            }
        }
        &.glasses_list {
            /* １行4列 */
            &::after,
            &::before {
                width: 23.5%;
                order: 1;
            }
            /* -------------------- */
            /* エントリー */
            .entry_item {
                position: relative;
                width: 23.5%;
                margin-bottom: 4rem;
                @media screen and (max-width: 768px) {
                    width: 48%;
                    position: relative;
                    margin-bottom: 2rem;
                }

                /* サムネイル */
                .thumb_wrap {
                    /* アスペクト比を指定 */
                    aspect-ratio: 4 / 3;
                    position: relative;
                    border: 1px solid #000;
                    /* パーマリンク */

                    a.permalink {
                        display: block;
                        width: 100%;
                        height: 100%;
                        box-sizing: border-box;
                        color: #000;
                    }
                }
                /*眼鏡のデータ部分*/
                .entry_data_wrap {
                    margin-top: 1.2rem;
                    @media screen and (max-width: 768px) {
                        margin-top: 1rem;
                    }
                    h3 {
                        font-size: var(--fsize_s);
                        line-height: 1.5;
                        margin-bottom: 0.75em;
                        font-weight: 400;
                        @media screen and (max-width: 768px) {
                            margin-bottom: 0.5em;
                        }
                    }
                    .price {
                        font-size: var(--fsize_l);
                        em {
                            font-style: normal;
                        }
                        span {
                            font-size: 0.75em;
                            font-weight: 400;
                        }
                    }
                }
            }
        }
        &.news_list {
            /* １行4列 */
            &::after,
            &::before {
                width: 48%;
                order: 1;
            }
            @media screen and (max-width: 768px) {
                flex-direction: column;
            }
            /* -------------------- */
            /* エントリー */
            .entry_item {
                position: relative;
                width: 48%;
                margin-bottom: 4rem;
                @media screen and (max-width: 768px) {
                    position: relative;
                    margin-bottom: 2rem;
                    width: 100%;
                }
                a.permalink {
                    display: flex;
                    align-items: flex-start;
                    gap: 2.6rem;
                    /* サムネイル */
                    .thumb {
                        /* アスペクト比を指定 */
                        aspect-ratio: 1 / 1;
                        position: relative;
                        width: 16rem;
                        flex-shrink: 0;
                        @media screen and (max-width: 768px) {
                            width: 30%;
                        }
                    }
                    /*眼鏡のデータ部分*/
                    .entry_data_wrap {
                        h3 {
                            font-size: var(--fsize_s);
                            line-height: 1.5;
                            margin-bottom: 0.75em;
                            font-weight: 400;
                            @media screen and (max-width: 768px) {
                                margin-bottom: 0.5em;
                            }
                        }

                        /* 日付 */
                        .postdate {
                            font-size: var(--fsize_ss);
                            font-weight: 500;
                            line-height: 1.5;
                            margin-bottom: 1em;
                        }

                        /* タイトル */
                        .title {
                            font-size: var(--fsize_m);
                            line-height: 1.5;
                            letter-spacing: 0.1em;
                            font-weight: 600;
                            margin: 1em 0;
                        }
                        ul.tag_list {
                            font-size: var(--fsize_ss);
                        }
                    }
                }
            }
        }
    }
}
