@charset "UTF-8";
/*==============================================================================
1.ページタイトル
2.カテゴリ/アーカイブページのタイトル
3.カテゴリ一覧
4.新着記事
5.記事一覧
6.記事がない場合
7.色の設定
==============================================================================*/

/*============================================================================================================================================================
==============================================================================================================================================================

	1.ページタイトル

==============================================================================================================================================================
============================================================================================================================================================*/
#title{
    background-image: url(../1_img/blog/title.jpg);
}

/*============================================================================================================================================================
==============================================================================================================================================================

	2.カテゴリ/アーカイブページのタイトル

==============================================================================================================================================================
============================================================================================================================================================*/
#sub-title{
    margin-bottom: 30px;
    text-align: center;
    font-weight: var(--weight-bold);
    font-size: 2rem;
}
.cate-list-wrap + #sub-title{
    margin-top: 30px;
}
/*==============================================================================

	カテゴリ/アーカイブページのタイトル PC

==============================================================================*/
@media all and (min-width: 769px){
    #sub-title{
        margin-bottom: 60px;
        font-size: 2.2rem;
    }
    .cate-list-wrap + #sub-title{
        margin-top: 80px;
    }
}

/*============================================================================================================================================================
==============================================================================================================================================================

	3.カテゴリ一覧

==============================================================================================================================================================
============================================================================================================================================================*/

/*======= カテゴリ一覧のトグルボタン =======*/
.cate-list-wrap button.cate-list-btn {
    padding: 20px;
    width: 100%;
    position: relative;
    border: none;
    background: var(--color-main);
    font-family: var(--font-base);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #fff;
    outline: none;
    box-shadow: none;
    border-radius: 10px;
    position: relative;
    z-index: 2;
}
.cate-list-wrap button.cate-list-btn::after {
    content: "";
    width: 10px;
    height: 10px;
    position: absolute;
    top: 50%;
    right: 20px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translateY(-50%) rotate(45deg);
    transition: 500ms;
}
.cate-list-wrap button.cate-list-btn.on::after {
    margin-top: 5px;
    transform: translateY(-50%) rotate(-135deg);
}
/*======= カテゴリ一覧 =======*/
ul.cate-list{
    margin-top: -30px;
    padding: 45px 17px 25px;
    display: none;
    list-style: none;
    background-color: #fdf8ea;
}
ul.cate-list > li{
    width: 100%;
    position: relative;
}
ul.cate-list > li + li{
    margin-top: 15px;
}
ul.cate-list > li + li::before {
    content: "";
    width: 100%;
    height: 2px;
    position: absolute;
    top: 0;
    left: 0;
    background: url(../1_img/blog/dotted.svg) repeat-x bottom left / contain;
}
ul.cate-list > li a{
    padding: 0 20px 0 15px;
    width: 100%;
    display: block;
    border: none;
    text-align: center;
    font-weight: var(--weight-bold);
    color: #666;
    transition: 500ms;
}
ul.cate-list > li + li a{
    padding-top: 15px;
}
ul.cate-list > li.current a,
ul.cate-list > li a:hover{
    color: var(--color-main);
    opacity: 1;
}

/*==============================================================================

	カテゴリ一覧 PC

==============================================================================*/
@media all and (min-width: 769px){
    .cate-list-wrap button.cate-list-btn {
        display: none;
    }
    .cate-list-wrap{
        padding: 0 80px;
    }
    ul.cate-list {
        margin-top: 0;
        padding: 0;
        padding-left: 160px;
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        position: relative;
        background-color: unset;
        justify-content: space-between;
        gap: 10px 20px;

        & li{
            width: calc( (100% - 60px ) / 4);

            & a{
                padding: 5px 10px;
                background-color: var(--color-accent);
                color: var(--color-font);
                font-size: 1.6rem;
            }

            /* 全記事 */
            &:first-child{
                width: 140px;
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;

                & a{
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    height: 100%;
                }
            }

            & + li{
                margin-top: 0;

                &::before {
                    content: none;
                }

                & a{
                    padding: 5px 10px;
                }
            }
            
            /* current と hover */
            &.current a,
            & a:hover{
                color: var(--color-font);
                background-color: var(--color-main);
            }
        }
    }

}


/*============================================================================================================================================================
==============================================================================================================================================================

	4.記事一覧

==============================================================================================================================================================
============================================================================================================================================================*/

.h2-list {/* 記事一覧タイトル */
    font-size: 2.2rem;
}
.post_wrap {
    margin-top: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    & article{
        width: calc(50% - 10px);
        display: flex;
        flex-direction: column;
        gap: 10px;

        & .text_area{
            order: 2;

            /* タイトル */
            & .article-title {
                margin-top: 10px;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 1;
                overflow: hidden;

                & a{
                    color: var(--color-font);
                    font-size: 1.6rem;
                    font-weight: var(--weight-bold);
                        
                }
            }

            /* カテゴリと日付 */
            & .cate-date{
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: flex-start;
                line-height: 1;
                gap: 10px;
                font-weight: var(--weight-bold);

                & .cate{
                    min-width: 80px;
                    padding: 5px 10px;
                    background-color: var(--color-main);
                    color: #fff;
                }

                & .date{
                    color: var(--color-font);
                }
            }
        }

        & .img_wrap{
            order: 1;
            aspect-ratio: 16 / 9;

            & img{
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
            }
        }
    }

    /* 最初の投稿 */
    & #newpost{
        width: 100%;
        position: relative;

        & .text_area{
            & .newpost-tag{
                width: 100%;
                position: absolute;
                top: -10px;
                left: 0;
                transform: translateY(-50%);
                font-family: var(--font-sub);
                font-size: 4rem;
                text-align: center;
                line-height: 1;
                color: var(--color-main);
            }

            /* カテゴリと日付 */
            & .cate-date{
                flex-direction: row;
                justify-content: start;
                align-items: center;
            }
        }
    }
}

/*==============================================================================

	記事一覧 PC

==============================================================================*/
@media all and (min-width: 769px){
    #sub-title + .post_wrap{/* カテゴリページに入った時に調整する */
        margin-top: 0px;
    }
    /* ========== ブログ一覧 ==========  */
        & .post_wrap{
            display: flex;
            flex-wrap: wrap;
            gap: 70px 35px;

            & article{
                width: calc( (100% - 70px) / 3 );
                gap: 20px;

                & .text_area{

                    /* タイトル */
                    & .article-title {
                        margin-top: 10px;

                        & a{
                            font-size: 1.6rem;
                            
                        }
                    }

                    /* カテゴリと日付 */
                    & .cate-date{
                        display: flex;
                        flex-direction: row;
                        justify-content: flex-start;
                        align-items: center;
                        gap: 10px;

                        & .cate{
                            font-size: 1.3rem;
                        }

                        & .date{
                            font-size: 1.3rem;
                        }
                    }
                }

                & .img_wrap{
                    aspect-ratio: 3 / 2;
                }
            }

            /* 最初の投稿 */
            & #newpost{
                width: 100%;
                flex-direction: row;
                align-items: center;

                & .text_area{
                    padding: 0 60px;
                    width: 50%;

                    /* タイトル */
                    & .article-title {
                        & a{
                            font-size: 1.8rem;
                            
                        }
                    }

                    & .newpost-tag{
                        position: relative;
                        top: 0;
                        left: 0;
                        transform: translateY(0);
                        font-size: 6rem;
                        text-align: left;
                    }

                    /* カテゴリと日付 */
                    & .cate-date{
                        margin-top: 40px;
                        flex-direction: row;
                        justify-content: start;
                        align-items: center;
                    }
                }

                & .img_wrap{
                    flex-shrink: 0;
                    width: 50%;
                }
            }
        }
}

/*============================================================================================================================================================
==============================================================================================================================================================

	6.記事がない場合

==============================================================================================================================================================
============================================================================================================================================================*/
.no-results.not-found{
    margin: 150px 0 100px;
    text-align: center;
}