@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Noto+Sans+JP:wght@100..900&family=Zen+Maru+Gothic&display=swap');

#sidebar {
    margin-top: 51px;
    max-width: 250px;
}

#sidebar img {
	width:100%;
}

#sidebar h3 {
    font-weight: bold;
    font-size: 20px;
    margin: 30px 0 15px;
}

#sidebar #return h3 {
    border-bottom: 1px solid #a7e3df;
    padding-bottom: 1em;
}

/*----------------------------------------------------------------
popular-posts
----------------------------------------------------------------*/
#popular-posts {
    margin-bottom: 30px;
}
#popular-posts ul li {
    border: solid 1px #f6f6f6;
    border-top: none;
}
#popular-posts ul li:nth-of-type(1) {
    border-top: solid 1px #f6f6f6;
} 
#popular-posts ul li a {
    display: flex;
    align-items: center;
}
#popular-posts ul li a img {
    width: 40%;
    max-width: 100px;
	min-width: 75px;
    height: auto;
    object-fit: cover;
}
#popular-posts ul li a span {
    /* width: 70%; */
    font-weight: bold;
    padding: 0 1em;
    font-size: 14px;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.57;
}




/*----------------------------------------------------------------
categories
----------------------------------------------------------------*/
#categories {
    margin-bottom: 30px;
}
#categories h3 {
    background-color: #a7e3df;
    color: #fff;
    padding: 1em;
    border: solid 1px #f6f6f6;
    margin-bottom: 0;
    font-size: 16px;
}
#categories ul li {
    border: solid 1px #f6f6f6;
    padding: 1em;
    border-top: none;
    font-size: 14px;
}

#sidebar #ranking a {
    display: flex;
    margin: 1em 0;
    gap: 1em;
    align-items: center;
}

#sidebar #ranking img {
    width: 30%;
}

/*----------------------------------------------------------------
month
----------------------------------------------------------------*/
#month {
    margin-bottom: 30px;
}
#month #archive-dropdown {
    width: 100%;
    border: solid 1px #f6f6f6;
    padding: 1em;
}



/*----------------------------------------------------------------
recent-posts
----------------------------------------------------------------*/
#recent-posts {
    margin-bottom: 30px;
}
#recent-posts ul li {
    border: solid 1px #f6f6f6;
    border-top: none;
}
#recent-posts ul li:nth-of-type(1) {
    border-top: solid 1px #f6f6f6;
} 
#recent-posts ul li a {
    display: flex;
    align-items: center;
}
#recent-posts ul li a img {
    width: 40%;
    max-width: 100px;
    height: auto;
    object-fit: cover;
}
#recent-posts ul li a span {
    width: 60%;
    font-weight: bold;
    padding: 0 1em;
    font-size: 14px;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.57;
}


@media screen and (max-width: 959px) {
    #container {
        grid-template-columns: 1fr;
    }
    #content {
        grid-row: 1;
        grid-column: 1;
    }
    #sidebar {
        grid-row: 2;
        grid-column: 1;
        max-width: none;
        margin-top: 0;
    }
    #sidebar .inner {
        width: 90%;
        max-width: 670px;
        margin: 0 auto;
    }

    #sidebar h3 {
        font-size: min(5.33vw, 40px);
    }

    #popular-posts,
    #categories,
    #month,
    #recent-posts {
        margin-bottom: 12.67vw;
    }


    #popular-posts ul li a span, 
    #recent-posts ul li a span,
    #categories ul li,
    #month #archive-dropdown {
        font-size: min(4vw ,30px);
    }
    #popular-posts ul li a img,
    #recent-posts ul li a img {
        width: 26.67vw;
        height: 26.67vw;
        max-width: 200px;
        max-height: 200px;
    }
    #popular-posts ul li a span, 
    #recent-posts ul li a span {
        width: 64vw;
    }

}

@media (max-width:599px) {

}