@charset "utf-8";
main{
    background: url(../img/blog/bg.png) no-repeat top center / 100% auto;
}
.c-subhead-ttlwrap{
    background-image: url(../img/blog/head_bg.jpg);
}
.p-conts{
    padding: 1rem 0;
    position: relative;
}
.p-conts-deco{
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(233,217,173,.4);
}
/* common */
.nav-links{
    display: flex;
    justify-content: center;
    align-self: center;
    flex-wrap: wrap;
    gap: .1rem;
}
.page-numbers{
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    background: #ddd0c6;
    color: #560707;
}
a.page-numbers:hover{
    opacity: 1;
    background: #560707;
    color: #fff;
}
.page-numbers.current{
    background: #560707;
    color: #fff;
}
.post-nav{
    display: flex;
}
.post-nav a{
    color: #560707;
    width: calc(100% / 3);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.post-nav a:hover{
    opacity: 1;
    text-decoration: underline;
}
.post-nav a:not(:last-child){
    border-right: 1px solid #560707;
}
.post-prev{
    padding-left: 15px;
}
.post-next{
    padding-right: 15px;
}
.post-prev::after,
.post-next::after{
    content: '';
    width: 8px;
    height: 8px;
    border-top: 2px solid #560707;
    border-right: 2px solid #560707;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
}
.post-prev::after{
    transform: rotate(-135deg);
    left: 0;
}
.post-next::after{
    transform: rotate(45deg);
    right: 0;
}
.article-time{
    color: #a97a7a;
}
.article-ttl{
    color: #560707;
}
.article-conts{
    display: grid;
    gap: .3rem;
}
.article-conts .wp-video{
    width: 100%!important;
}
.article-conts iframe{
    width: 100%;
}
.article-conts h1{
    font-size: .3rem;
    line-height: 1.4;
    color: #560707;
}
.article-conts h2{
    font-size: .26rem;
    line-height: 1.4;
    color: #560707;
}
.article-conts h3{
    font-size: .24rem;
    line-height: 1.4;
    color: #560707;
}
.article-conts h4{
    font-size: .22rem;
    line-height: 1.6;
    color: #560707;
}
.article-conts h5{
    font-size: .2rem;
    line-height: 1.6;
    color: #560707;
}
.article-conts h6{
    font-size: .18rem;
    line-height: 1.6;
    color: #560707;
}
.article-conts ul li{
    list-style-type: disc;
    margin-left: 1.5em;
}
.article-conts ol li{
    list-style-type: decimal;
     margin-left: 1.5em;
}
.article-conts blockquote{
    background: #ddd0c6;
    padding: .25rem;
    font-style: italic;
    position: relative;
}
.article-conts blockquote::before{
    content: '“';
    font-size: .5rem;
    line-height: 1;
    color: #a97a7a;
    position: absolute;
    top: 0;
    left: 0;
}
.article-conts blockquote::after{
    content: '”';
    font-size: .5rem;
    line-height: 1;
    color: #a97a7a;
    position: absolute;
    bottom: -.15rem;
    right: .15rem;
}
.article-conts hr{
    margin: .3rem 0;
}
.article-conts a{
    text-decoration: underline;
}
.article-conts table th{
    background: #560707;
    color: #fff;
    padding: .05rem .1rem;
}
.article-conts table td{
    padding: .05rem .1rem;
}
.article-conts table tr:nth-child(even){
    background: #ddd0c6;
}
.article-cate{
    display: flex;
    flex-wrap: wrap;
    gap: .05rem;
}
.article-cate a{
    background: #560707;
    color: #fff;
    padding: .05rem;
}
.article-cate a:hover{
    opacity: 1;
    background: #ddd0c6;
    color: #560707;
}
.article-tag{
    display: flex;
    flex-wrap: wrap;
    gap: .05rem;
}
.article-tag li:not(:last-child)::after{
    content: ',';
}
.article-tag a{
    color: #560707;
}
.article-tag a:hover{
    opacity: 1;
    text-decoration: underline;
}
/* article list page */
.p-conts.article-list .c-inner{
    display: grid;
    gap: 1rem;
}
.p-list-header{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: .1rem;
}
.p-list-header-menu{
    display: flex;
    align-items: center;
    gap: .05rem;
}
.p-list-header select{
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    max-width: 160px;
    min-height: 30px;
    border: 1px solid #560707;
    border-radius: .08rem;
    background: #fff url(../img/blog/ico_select.png) no-repeat right 5px center / 18px auto;
    padding: 0 10px;
    color: #000;
}
.p-list-main{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: .2rem;
}
.p-list-main-article{
    display: grid;
    place-content: start;
    background: #ddd0c6;
}
.p-list-main-article figure{
    width: min(100%,320);
    aspect-ratio: 1 / .688;
    overflow: hidden;
}
.p-list-main-article figure img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.p-list-main-article-txtWrap{
    display: grid;
    gap: .1rem;
    padding: .2rem;
}
.p-list-main-article .article-cate li{
    display: flex;
    flex-wrap: wrap;
    gap: .05rem;
    background: #560707;
    color: #fff;
    padding: .05rem;
}
/* article main page */
.p-conts.article .c-inner{
    display: grid;
    gap: .4rem;
}
.p-article-header{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .1rem;
}
.p-article-header .article-time{
    flex: 0 0 auto;
}
.p-article-header .article-cate{
    flex: 1;
}
.p-article-main{
    display: grid;
    gap: .6rem;
}
.p-article-footer{
    margin-top: 1rem;
}
@media only screen and (max-width: 1024px) {
    .p-conts{
        padding: 2rem 0 1rem;
    }
    .article-conts h1{
        font-size: calc((.3rem * 100 / 50) * 0.8);
    }
    .article-conts h2{
        font-size: calc((.26rem * 100 / 50) * 0.8);
    }
    .article-conts h3{
        font-size: calc((.24rem * 100 / 50) * 0.8);
    }
    .article-conts h4{
        font-size: calc((.22rem * 100 / 50) * 0.9);
    }
    .article-conts h5{
        font-size: calc((.2rem * 100 / 50) * 0.9);
    }
    .article-conts h6{
        font-size: calc((.18rem * 100 / 50) * 0.9);
    }
    /* article list page */
    .p-list-header{
        justify-content: space-between;
        gap: .2rem;
    }
    .p-list-header-menu{
        flex-direction: column;
        width: calc(50% - .1rem);
        gap: .1rem;
    }
    .p-list-header select{
        max-width: 100%;
        width: 100%;
    }
    .p-list-main{
        grid-template-columns: repeat(2,1fr);
    }
    .p-list-main-article-txtWrap{
        padding: .3rem;
    }
    /* article main page */
    .p-article-main{
        gap: .4rem;
    }
}
@media only screen and (max-width: 430px) {
    /* article list page */
    .p-list-main{
        grid-template-columns: repeat(1,1fr);
    }
}