@charset "UTF-8";
/*==============================================================================
1.共通事項
2.カテゴリ
3.新着情報
4.ランキング
5.アーカイブ
6.検索
==============================================================================*/


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

	1.共通事項

==============================================================================================================================================================
============================================================================================================================================================*/
#sidebar {
    margin-top: 50px;
    width: 100%;
}
#sidebar section + section {
    margin-top: 40px;
}

/* h2 */
#sidebar h2 {
    margin-bottom: 20px;
    padding: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.8rem;
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--color-main);
    letter-spacing: 0.15em;
    line-height: 1;
    border-bottom: 2px solid var(--color-main);
}
#sidebar h2 span:last-child {
    font-family: var(--font-base);
    font-size: 1.3rem;
    color: var(--color-font);
}
#sidebar ul{
    padding: 0;
    list-style: none;
}
/*==============================================================================

	共通事項 PC

==============================================================================*/
@media all and (min-width: 769px){
    #sidebar{
        margin-top: 0;
        width: 280px;
    }
    #sidebar section + section{
        margin-top: 60px;
    }
    /* h2 */
    #sidebar h2{
        padding: 0 0 15px;
        font-size: 2rem;
    }
    #sidebar h2 span:last-child{
        font-size: 1.2rem;
    }
}


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

	2.カテゴリ

==============================================================================================================================================================
============================================================================================================================================================*/
#sidebar .sidebar-cate-list > li {
    padding-right: 10px;
    padding-left: 10px;
}
#sidebar .sidebar-cate-list > li:not(:last-child) {
    padding-bottom: 15px;
    position: relative;
    background-image: url(../1_img/blog/dotted.svg);
    background-repeat: repeat-x;
    background-position: left bottom;
    background-size: 7px auto;
}
#sidebar .sidebar-cate-list > li + li{
    padding-top: 15px;
}
#sidebar .sidebar-cate-list > li > a{
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-family: var(--font-base);
    font-weight: 700;
    color: #383636;
}
#sidebar .sidebar-cate-list > li > a .count{
    font-size: 1.2rem;
    font-family: var(--font-base);
    color: var(--color-main);
}
#sidebar .sidebar-cate-list > li a:hover{
    opacity: 0.6;
}
/* ========== 子カテゴリ ========== */
#sidebar .sidebar-cate-list .child {
    margin-top: 5px;
}
#sidebar .sidebar-cate-list .child > li {
    padding-left: 15px;
    position: relative;
}
#sidebar .sidebar-cate-list .child > li::before{
    content: "";
    width: 7px;
    height: 1px;
    background-color: #383636;
    position: absolute;
    left: 0;
    top: 50%;
}
#sidebar .sidebar-cate-list .child > li + li {
    margin-top: 1px;
}
#sidebar .sidebar-cate-list .child > li a {
    font-size: 1.2rem;
    color: #383636;
    font-weight: 400;
}


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

	3.新着情報

==============================================================================================================================================================
============================================================================================================================================================*/
#sidebar .sidebar-new-list{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}
#sidebar .sidebar-new-list > article{
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
#sidebar .sidebar_new_title{
    padding-left: 15px;
    padding-right: 15px;
}
/*======= テキスト =======*/
#sidebar .sidebar-new-list article .text_area{
    order: 2;
}
/*======= 画像 =======*/
#sidebar .sidebar-new-list article .img_wrap {
    width: 90px;
    display: block;
    aspect-ratio: 3 / 2;
    transition: 500ms;
    order: 1;
}
#sidebar .sidebar-new-list article .img_wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: 500ms;
}
/*======= カテゴリ&日付 =======*/
#sidebar .sidebar-new-list article .cate-date{
    display: none;
}
/*======= タイトル =======*/
#sidebar .sidebar-new-list article h3{
    margin-top: 0px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
#sidebar .sidebar-new-list article h3 a{
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--color-font);
}


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

	4.ランキング

==============================================================================================================================================================
============================================================================================================================================================*/
#sidebar .sidebar-ranking{
    margin-left: -15px;
    padding: 55px 15px 35px;
    width: calc(100% + 30px);
    position: relative;
    background-color: #fff;
}
#sidebar .sidebar-ranking::before,
#sidebar .sidebar-ranking::after{
    content: "";
    width: 50%;
    height: 80px;
    top: 0;
    position: absolute;
    background-color: #fdf8ea;
}
#sidebar .sidebar-ranking::before{
    left: 0;
    clip-path: polygon(0 0, 0% 100%, 100% 0);
}
#sidebar .sidebar-ranking::after{
    right: 0;
    clip-path: polygon(0 0, 100% 100%, 100% 0);
}
#sidebar .sidebar-ranking h2{
    display: block;
    text-align: center;
}
#sidebar .sidebar-ranking h2 span{
    display: block;
}
#sidebar .sidebar-ranking h2 span:last-child {
    margin-top: 10px;
}
#sidebar .sidebar-ranking .ranking-list{
    margin-top: -20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
#sidebar .sidebar-ranking article{
    margin-top: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
}
#sidebar .sidebar-ranking article .text_area{
    order: 2;
}
/*======= 画像 =======*/
#sidebar .sidebar-ranking article .img_wrap {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10.5;
    transition: 500ms;
    order: 1;
}
#sidebar .sidebar-ranking article .img_wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: 500ms;
}
/*======= カテゴリ&日付 =======*/
#sidebar .sidebar-ranking article .cate-date{
    margin-top: 10px;
}
#sidebar .sidebar-ranking article .cate{
    display: inline-block;
    max-width: 100%;
}
#sidebar .sidebar-ranking article .cate a{
    padding: 2px 10px;
    display: block;
    color: #fff;
    background-color: var(--color-main);
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 10px;
    transition: 500ms;
    font-family: var(--font-base);
    font-weight: 700;
}
#sidebar .sidebar-ranking article .date{
    margin-top: 0px;
    font-size: 1rem;
}
/*======= タイトル =======*/
#sidebar .sidebar-ranking article h3{
    margin-top: 0px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
#sidebar .sidebar-ranking article h3 a{
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--color-font);
}
/*======= ランキング数字 =======*/
#sidebar .sidebar-ranking .ranking-list article::before{
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%,-50%);
    background-size: cover;
    z-index: 2;
}
/*================================    ランキング 1位   ================================*/
#sidebar .sidebar-ranking .ranking-list article:first-child{
    width: 100%;
}
#sidebar .sidebar-ranking article:first-child .cate-date{
    display: flex;
    justify-content: space-between;
}
#sidebar .sidebar-ranking .ranking-list article:first-child::before{
    width: 30px;
    height: 30px;
    background-image: url(../1_img/blog/ranking_1.svg);
}
/*================================    ランキング 2位 以下   ================================*/
#sidebar .sidebar-ranking .ranking-list article:not(:first-child){
    width: calc(50% - 7px);
}
#sidebar .sidebar-ranking .ranking-list article:not(:first-child)::before{
    width: 23px;
    height: 23px;
}
#sidebar .sidebar-ranking .ranking-list article:nth-of-type(2)::before{
    background-image: url(../1_img/blog/ranking_2.svg);
}
#sidebar .sidebar-ranking .ranking-list article:nth-of-type(3)::before{
    background-image: url(../1_img/blog/ranking_3.svg);
}


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

	5.アーカイブ

==============================================================================================================================================================
============================================================================================================================================================*/
#sidebar .sidebar-archive h2{
    margin-bottom: 0;
}
#sidebar .sidebar-archive-list > li{
    margin: 0;
    padding-right: 10px;
    padding-left: 10px;
}
#sidebar .sidebar-archive-list > li:not(:last-child){
    background-image: url(../1_img/blog/dotted.svg);
    background-repeat: repeat-x;
    background-position: left bottom;
    background-size: 7px auto;
}
#sidebar .sidebar-archive-list > li button{
    width: 100%;
    display: block;
    padding: 10px 40px 10px 0px;
    position: relative;
    text-align: left;
    border: none;
    background: none;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    outline: none;
}
#sidebar .sidebar-archive-list > li button::after{
    margin-top: 0px;
    content:"";
    width: 10px;
    height: 10px;
    position: absolute;
    right: 0;
    top: 50%;
    border-top: 2px solid var(--color-font);
    border-left: 2px solid var(--color-font);
    transform: translateY(-50%) rotate(225deg);
    transition: transform 500ms;
}
#sidebar .sidebar-archive-list > li button.on::after{
    margin-top: 4px;
    transform: translateY(-50%) rotate(45deg);
}
#sidebar .sidebar-archive-list .sidebar-archive-list-month{
    padding-bottom: 15px;
    display: none;
}
#sidebar .sidebar-archive-list .sidebar-archive-list-month li + li{
    margin-top: 5px;
}
#sidebar .sidebar-archive-list .sidebar-archive-list-month a{
    letter-spacing: 0.15em;
}
#sidebar .sidebar-archive-list .sidebar-archive-list-month li.month{
    padding-left: 15px;
    position: relative;
}
#sidebar .sidebar-archive-list .sidebar-archive-list-month li::before{
    content: "";
    width: 7px;
    height: 1px;
    background-color: var(--color-font);
    position: absolute;
    left: 0;
    top: 50%;
}
#sidebar .sidebar-archive-list .sidebar-archive-list-month li.month a{
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    color: var(--color-font);
}
/*==============================================================================

	アーカイブ スマホ

==============================================================================*/
@media all and (max-width: 768px){
    #sidebar .sidebar-archive-list > li a{
        display: inline-block;
    }
}

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

	6.検索

==============================================================================================================================================================
============================================================================================================================================================*/
.side-search{
    margin-top: 30px;
}
.side-search form {
    position: relative;
    border: 1px solid var(--color-main);
    border-radius: 30px;
    display: flex;
    overflow: hidden;
}
.side-search form input {
    margin: 0;
    width: calc(100% - 40px);
    height: auto;
    padding: 10px 15px;
    border: none;
    font-size: 1.2rem;
    background-color: #fff;
    box-shadow: none;
}
.side-search form input[type="text"]:focus {
    outline: none;
    background-color: #fff;
    border: none!important;
}
.side-search form button {
    width: 40px;
    font-size: 0;
    border: none;
    background-image: url(../1_img/base/icon_search.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--color-main);
    background-size: 18px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 500ms;
}



#sidebar .new_badge {
    width: 1.5em;
    height: 1.5em;
    position: absolute;
    top: -5px;
    left: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background: #ea5550;
    color: #fff;
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}