@import url(var.css);

main#archive-post,
main#single-post
{
    background-color: var(--yellow);
}

/* blog */
#blog{
    padding-top: 5rem;
}
.single h3 {
    font-size:  var(--h3-fsize);
    margin: 2.6rem 0 3.6rem;
    font-weight: bold;
}
.single h4 {
    font-size:  var(--h4-fsize);
    margin: 2rem 0 1rem;
    font-weight: bold;
    border-bottom: 2px solid #aea7a7;
    padding-bottom: 10px;
    margin-bottom: 1em;
}
.single-content img {
    margin-bottom: 3em;
}
.blog-header{
    text-align: center;
    margin-bottom: 5rem;
}
.blog-header img{
    width: 40rem;
}
.blog-swiper-area{
    position: relative;
}
.blog-swiper .swiper-slide{
    width: 40rem;
    position: relative;
}
.blog-swiper .swiper-slide img {
  transition: all .3s ease;
}
.blog-swiper .swiper-slide:hover img {
    transform: scale(1.05);
    transition: 0.5s all;
}
.blog-date{
    font-size: var(--nom-fsize);
    font-weight: bold;
}
.blog-info{
    display: flex;
    margin: 2rem 0;
    padding-left: 2rem;
}
.blog-cat{
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
}
.blog-cat li a{
    font-size: var(--nom-fsize);
    color: var(--white);
    background-color: var(--black);
    padding: 0.5rem 1.5rem;
    z-index: 1000000;
    position: relative;
}
.blog-cat li a:hover {
    opacity: 0.7;
}
.blog-title{
    font-size: var(--h3-fsize);
    font-weight: bold;
    padding: 0 2rem;
}
.blog-content{
    font-size: var(--nom-fsize);
    line-height: 2.25rem;
    margin-top: 0.5rem;
    padding: 0 2rem;
}
.swiper-button-prev.blog-prev::after{
    content: '';
    display: inline-block;
    width: 3rem;
    height: 3rem;
    background-image: url(../img/slider_left.png);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}
.swiper-button-next.blog-next::after{
    content: '';
    display: inline-block;
    width: 3rem;
    height: 3rem;
    background-image: url(../img/slider_right.png);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}
.swiper-button-prev.blog-prev,
.swiper-button-next.blog-next
{
    top: 29%;
}
.swiper-button-prev.blog-prev{
    left: 24%;
    width: 6rem;
}
.swiper-button-next.blog-next{
    right: 24%;
    width: 6rem;
}
.to-blog-list{
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding-bottom: 5rem;
}
.to-blog-list-inner{
    width: 30%;
}
.to-blog-list img{
    width: 100%;
}
img.blog-icon{
    position: absolute;
    left: -80%;
    bottom: 0;
    width: 15rem;
    z-index: 10;
}
.swiper-area{
    position: relative;
    padding-bottom: 20rem;
}
.swiper-slide figure img{
    width: 100%;
    height: 25rem;
    border-radius: 2rem;
    object-fit: cover;
    transition: all .3s ease;
}
.slide-title{
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    font-size: var(--h3-fsize);
    color: var(--white);
}

@media screen and (max-width:768px){
    .swiper-slide figure img{
        height: 20rem;
    }
}
@media screen and (max-width:525px){
    .blog-header img {
        width: 25rem;
    }
    .swiper-button-prev.blog-prev{
        left: 3%;
        width: 6rem;
    }
    .swiper-button-next.blog-next{
        right: 3%;
        width: 6rem;
    }
    .swiper-area{
        margin-top: 4rem;
    }
    .swiper-button-next.genre-next{
        right: 10%;
        width: 6rem;
    }
    .swiper-button-prev.genre-prev{
        left: 10%;
        width: 6rem;
    }
    .to-blog-list {
        margin-top: 10rem;
        justify-content: end;
        margin-right: 3rem;
    }
    img.blog-icon {
        left: -120%;
        width: 10rem;
    }
    .to-blog-list-inner {
        width: 40%;
    }
}
/* content */
#content{
    display: flex;
}
.post-list-wrap{
    width: 80%;
    padding-left: 3%;
    max-width: 1440px;
}
.post-list{
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--black);
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}
.post-item{
    width: 100%;
    max-width: 30rem;
    margin-right: 3rem;
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
}
.post-item figure{
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: 76%;
}
.post-item figure img{
    width: 100%;
    transition: 1s all;
}
.post-item:hover img{
    transform: scale(1.1);
    transition: 0.5s all;
}
.post-content{
    background: var(--white);
    padding: 1.5rem 2rem 3rem;
    height: 100%;
}
.post-info{
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
.date{
    font-size: var(--nom-fsize);
    font-weight: bold;
    /* margin-right: 1rem; */
    font-size: 1.3rem;
}
.cats{
    display: flex;
    gap: 1rem;
}
.cats li a{
    font-size: var(--nom-fsize);
    color: var(--white);
    background-color: var(--black);
    padding: 0.2rem 1rem;
    margin-left: 0.5em;
    z-index: 1000000;
    position: relative;
}
.cats li a:hover{
    opacity: 0.7;
}
.post-title{
    font-size: var(--h3-fsize);
    font-weight: bold;
    line-height: 2.5rem;
    margin-bottom: 1rem;
}
.post-text{
    font-size: var(--nom-fsize);
    line-height: 2rem;
}
/* sidebar */
.sidebar{
    width: 20%;
    padding-right: 2%;
}
.sidebar-title{
    font-size: var(--h3-fsize);
    border-bottom: 1px solid var(--black);
    padding-bottom: 2rem;
}
.sidebar-title img{
    width: 2rem;
}
.sidebar-list li{
    margin: 1rem 0;
    font-size: var(--nom-fsize);
}
.sidebar-list li a{
    font-size: var(--nom-fsize);
}
@media screen and (max-width:860px){
    #content{
        flex-direction: column;
    }
    .post-list-wrap {
        width: 95%;
        padding-left: 0;
        margin: auto;
    }
    .sidebar{
        width: 95%;
        margin: auto;
        padding-right: 2%;
    }
}

@media screen and (max-width: 700px){
    .post-list{
        flex-direction: column;
        align-items: center;
    }
}


/* single post */
#single-post #content{
    padding-top: 5rem;
}
.single-post-content{
    width: 80%;
    padding-left: 3%;
    max-width: 1440px;
    margin-bottom: 8rem;
}
.post-content-inner{
    width: 90%;
}
.content-area{
    background: var(--white);
    border-radius: 1.5rem;
    padding: 9rem 5rem;
    width: 100%;
}
.single-header{
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.single-cats{
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
}
.single-cats li a{
    font-size: var(--nom-fsize);
    color: var(--white);
    background-color: var(--black);
    padding: 0.2rem 1rem;
}
.single-post-title{
    font-size: var(--h2-fsize);
    font-weight: bold;
}
.single-content{
    margin-top: 2rem;
}
.single-content p{
    font-size: var(--nom-fsize);
    line-height: 1.8em;
    letter-spacing: 1px;
    margin-bottom: 2em;
}
.single-content strong {
    font-size: var(--nom-fsize);
    font-weight: bold;
}
.post-link-area{
    display: flex;
    width: 100%;
    border-top: 1px solid var(--black);
    padding-top: 2rem;
    margin-top: 5rem;
}
.post-link-area li{
    width: 50%;
    text-align: center;
    padding: 1.5rem 0;
}
.post-link-area li a{
    font-size: var(--nom-fsize);
}
.post-link-area .to-prev{
    border-right: 1px solid var(--black);
}
.post-link-area .to-prev a::before{
    content: '<';
    font-size: var(--nom-fsize);
    margin-right: 1rem;
}
.post-link-area .to-next a::after{
    content: '>';
    font-size: var(--nom-fsize);
    margin-left: 1rem;
}
@media screen and (max-width:860px){
    .single-post-content {
        width: 95%;
    }
    .post-content-inner {
        width: 100%;
    }
}
@media screen and (max-width:425px){
    .content-area {
        padding: 2rem 3rem;
    }
}