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

    common components

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

/* external widgets */
.grecaptcha-badge {
    opacity: .6;
    transform: scale(.9);
    transform-origin: right bottom;
}

.single-article-inner h1,
.single-article-inner h2,
.single-article-inner h3,
.single-article-inner h4,
.single-article-inner h5,
.single-article-inner h6 {
    font-feature-settings: "palt";
    letter-spacing: .025rem;
}

.wrapper {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

.wrp {
    width: 100%;
    margin: 0 auto;
}


/* new icon */
.new {
    display: inline-block;
    background-color: var(--color_red);
    color: #fff;
    font-size: clamp(9px, .5em, 11px);
    line-height: 1.4;
    vertical-align: middle;
    padding: .3em .75em;
    margin-right: 1em;
    border-radius: 3px;
    transform: translateY(-.2em);
}


/* pager */
.navigation {
    width: 100%;
    display: block;
    text-align: center;
}

.paginate-wrp {
    text-align: center;
    margin: 3em auto 5em;
}

.page-numbers {
    font-family: var(--en);
    display: inline-block;
    list-style: none;
    color: var(--main_color);
    padding: .5em;
    text-decoration: none;
    position: relative;
}

.pager_list .pager_item {
    display: inline-block;
    margin: 0;
    text-align: center;
}

.page-numbers.current {
    color: var(--main_subcolor);
}

a.next.page-numbers,
a.prev.page-numbers {
    font-family: var(--en);
    display: inline-block;
    padding: .5em 2em;
    text-align: center;
    color: var(--main_color);
    text-decoration: none;
    transform: translateY(-7%);
}

/* entry list item */
.entry {
    display: block;
    position: relative;
    width: 25%;
    border-top: 1px solid var(--main_subcolor);
    border-left: 1px solid var(--main_subcolor);
    z-index: 1;
    min-width: 0;
    word-wrap: break-word;
    text-overflow: ellipsis;
    background-color: #fff;
    transition: background .3s;
}

@media (hover: hover) {
    .entry:not(.slick-slide):hover {
        background-color: rgba(255, 255, 255, .025);
    }
}

.entry::before {
    content: '';
    display: block;
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 1px);
    height: calc(100% + 1px);
    border-bottom: 1px solid var(--main_subcolor);
    border-right: 1px solid var(--main_subcolor);
    z-index: -1;
    pointer-events: none;
}

@media (max-width:1200px) {
    .entry {
        width: calc(100% / 3);
    }

    .home .postcount-8 .entry:not(.slick-slide):nth-child(n+7) {
        display: none;
    }

    .home .postcount-4 .entry:not(.slick-slide):nth-child(n+4) {
        display: none;
    }

    @media (max-width:900px) {
        .entry {
            width: 50%;
        }

        .home .postcount-8 .entry:not(.slick-slide):nth-child(n+7) {
            display: block;
        }

        .home .postcount-4 .entry:not(.slick-slide):nth-child(n+4) {
            display: block;
        }
    }

    @media (max-width:640px) {
        .entry {
            width: 100%;
        }
    }
}

/* entry list */
.entry-list {
    display: flex;
    flex-wrap: wrap;
}

.entry-list::after {
    content: '';
    display: block;
    width: 25%;
    order: 1;
}

.entry-inner {
    height: 100%;
    transition: .3s;
}

.entry-meta-wrp {
    padding: 4% clamp(1rem, 3vw, 6%);
}

@media (max-width:640px) {
    .wp-block-group:not(.featured-wrp) .entry-inner {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .wp-block-group:not(.featured-wrp) .entry-meta-wrp {
        width: 68%;
        padding: 3% 1%;
    }
}

/* post type icon */
.entry-meta-hd {
    display: flex;
}

.entry-meta-hd .post-type-icon {
    margin-left: 0;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 100%;
    transform: translate(-.5em, -.25em);
    aspect-ratio: 1/1;
    overflow: hidden;
}

@media screen and (max-width:767px) {
    .entry-meta-hd .post-type-icon {
        width: 1.8rem;
        height: 1.8rem;
        transform: translate(-.5em, -.15em);
    }
}

.entry .entry-title {
    font-size: .94em;
    font-weight: 500;
    margin: .5em 0;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    font-feature-settings: "palt";
}

.entry .lead,
.entry .exc {
    font-size: .84em;
    line-height: 1.6;
    margin: .5em 0;
    color: var(--main_color);
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

@media screen and (max-width:767px) {

    .entry .lead,
    .entry .exc {
        font-size: 12px;
    }
}

.entry-list .thumb-wrp {
    margin: 3%;
}

@media screen and (max-width:767px) {
    .entry-list .thumb-wrp {
        margin: 2%;
    }
}

.entry-list .thumb {
    margin: 0 auto;
    /* background-color: var(--thumb-bg); */
}

.entry-list .thumb-wrp img {
    object-fit: cover;
}

.entry-list video {
    width: 100%;
}

.related-wrp .entry-list .thumb {
    padding-bottom: 100%;
    aspect-ratio: 1/1;
}

.related-wrp .entry-list .entry-meta-hd .post-type-icon {
    width: 1.8rem;
    height: 1.8rem;
}

@media (max-width:640px) {
    .wp-block-group:not(.featured-wrp) .entry .entry-inner .thumb-wrp {
        width: 26%;
    }

    .wp-block-group:not(.featured-wrp) .entry .entry-inner .thumb.thumb16-9 {
        padding-bottom: 100%;
        aspect-ratio: 1/1;
    }
}

.date-wrp {
    display: flex;
    margin-bottom: .25em;
}

.postdate {
    font-size: 12px;
    color: var(--gray);
    font-family: var(--en);
}

.writer-name {
    font-size: 12px;
    color: var(--gray);
    padding: 0;
    margin: 0;
    padding-left: 1em;
    margin-left: 1em;
    border-left: 1px solid;
    height: .95rlh;
}

@media screen and (min-width:1101px) {
    .related-wrp .writer-name {
        display: none;
    }
}

/* post page navi */
.post-pagination-wrp {
    gap: 1em;
    margin: 3em auto;
}

.post-pagination-wrp .btn-wrp.pagenavi a {
    width: clamp(320px, 30vw, 400px);
    text-align: center;
    font-size: min(.85em, 3.5vw);
    line-height: 1;
    padding: 1.5em 2em;
}

.post-pagination-wrp .btn-wrp.pagenavi a .btn-title {
    width: 100%;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* archive pagenation */
.pagination {
    margin: 3em auto;
}

.pagination span,
.pagination a {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    padding: .2em;
    margin: .2em;
    transition: color .2s;
}

.pagination a i {
    transition: color .2s;
}

@media (hover: hover) {

    .pagination a:hover i,
    .pagination a:hover {
        color: var(--main_subcolor);
    }
}

.pagination .current {
    color: var(--main_subcolor);
}

.pagination .next,
.pagination .prev {
    font-size: .9rem;
    transform: translateY(.1em);
}

.pagination .next {
    padding-right: 2.25em;
}

.pagination .prev {
    padding-left: 2.25em;
}

.index-wrp {
    width: calc(100% - var(--main-margin) * 2);
    margin: 0 auto var(--main-margin);
    padding-bottom: 3vw;

}

/* search result page */
.serach-result-title {
    margin: 0 0 1em;
    text-indent: min(.7em, 4vw);
}

.date-category-wrp {
    display: flex;
}

.date-category-wrp .cat-thumb-wrp {
    display: block;
    width: 85px;
    height: 90px;
    position: absolute;
    top: 0;
    left: 20px;
    padding: 12px 0 5px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(6%);
    -webkit-backdrop-filter: blur(6px);
}

.date-category-wrp .cat-thumb {
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 1/1;
    border-radius: 100%;
}

.date-category-wrp .cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.date-category-wrp .cat-label {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 11px;
    padding: 0;
    margin: .5em 0;
    white-space: nowrap;
    font-family: var(--en);
    font-weight: 600;
}

/* category link */
.cat-wrp {
    display: flex;
    flex-wrap: wrap;
    gap: .5em;
    width: 100%;
    margin-bottom: 1em;
}

.cat {
    display: inline-block;
    /* margin: .25em 0 1em; */
    position: relative;
    font-size: .8em;
    text-decoration: underline !important;
    text-decoration-thickness: .075em;
    text-underline-offset: .4em;
    transition: all .3s;
}

@media (hover: hover) {
    a.cat:hover {
        color: var(--brand-color);
    }

    a.cat:hover::after {
        border-bottom: 1px solid var(--brand-color);
    }
}

/* tags link */
.tags-wrp {
    display: flex;
    flex-wrap: wrap;
    gap: .5em;
    margin-top: 3em;
}

.tags-wrp .tags {
    display: inline-block;
    margin: .25em 0;
    position: relative;
    font-size: .8em;
    border: 1px solid var(--main_subcolor);
    border-radius: 2px;
    padding: .25em .5em;
    background-color: #fff;
    transition: all .2s;
}


/* @media (min-width:768px) { */
@media (hover: hover) {
    .tags-wrp a.tags:hover {
        color: #fff;
        background-color: #222;
    }

    /* thumb hover */
    body:not(.wp-admin) a video,
    body:not(.wp-admin) a img {
        transition: all .3s;
    }

    body:not(.wp-admin) a:hover video,
    body:not(.wp-admin) a:hover img {
        scale: 1.05;
    }
}

.wp-block-image svg {
    width: 100%;
}

/* wp under-line heading */
.title-underline {
    display: block;
    border-bottom: 1px solid var(--main_subcolor);
    padding-bottom: .25em;
}


/* font size */

/* post body font size */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 1em 0;
}

.single-article-inner p,
.editor-styles-wrapper p {
    display: block;
    width: 100%;
    font-size: min(17px, 3.6vw);
    line-height: 2;
    overflow-wrap: break-word;
    margin: 1em 0 1.25em;
    font-weight: 300;
}

.single-article-inner p .en,
.editor-styles-wrapper p .en {
    font-weight: 300;
}

.single-article-inner p a {
    /* line-height: 1.8; */
    overflow-wrap: break-word;
}

@media (max-width:767px) {
    .single-article-inner p {
        line-height: 2;
    }
}

.single-article-inner li {
    font-weight: 300;
    line-height: 1.8;
}

.has-small-font-size,
.has-small-font-size>table {
    font-size: .8em !important;
    font-weight: 300;
    line-height: 1.8 !important;
}

.has-medium-font-size {
    font-size: 1.1em !important;
    line-height: 1.8 !important;
}

.has-large-font-size {
    font-size: 1.25em !important;
    line-height: 1.5 !important;
}

.has-x-large-font-size {
    font-size: 1.4em !important;
    line-height: 1.5 !important;
}

/* caption */
p.caption,
.wp-block-image figcaption {
    display: block;
    font-size: min(.8em, 3.3vw);
    line-height: 1.5;
    margin: 1em 0 !important;
}

/* position */
.has-text-align-center {
    text-align: center !important;
}

.has-text-align-left {
    text-align: left !important;
}

.has-text-align-right {
    text-align: right !important;
}

/* breadcrumb */
.breadcrumb {
    display: flex;
    width: calc(100% - var(--main-margin) * 2);
    margin: 0 auto;
    padding: min(.25em, 2vw) 0;
    border-top: 1px solid var(--main_subcolor);
    border-bottom: 1px solid var(--main_subcolor);
}

.breadcrumb li {
    list-style: none;
    display: inline-block;
    font-size: .75em;
    line-height: 1;
    max-width: clamp(50vw, 400px, 60%);
}

.breadcrumb li br {
    display: none;
}

.breadcrumb li .nolink,
.breadcrumb li a {
    display: inline-block;
    padding: .5em min(1em, 4vw) .5em min(1em, 2.5vw);
    color: var(--main_color);
    position: relative;
}

.breadcrumb li .nolink::after,
.breadcrumb li a::after {
    content: '';
    display: inline-block;
    width: .5em;
    height: .5em;

    border-top: 1px solid #999;
    border-right: 1px solid #999;

    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(45deg);

}

.breadcrumb li .current {
    display: inline-block;
    padding: .5em 1em;
    color: #999;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* search list page */
.archive-header .title.search-title {
    position: relative;
    padding-right: .5em;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.archive-header .title.search-title::before {
    content: '';
    width: 0;
    height: 100%;
    border-right: 1px solid var(--main_subcolor);
    rotate: 35deg;
    position: absolute;
    bottom: -5%;
    right: 0;
}

.archive-header .search-word {
    display: inline-block;
    max-width: 60%;
    font-size: 1.2rem;
    line-height: 2;
    margin: 3em 1.25rem 1.75rem !important;
    text-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archive-header .search-word #query {
    display: inline-block;
    max-width: 100%;
    text-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width:767px) {
    .archive-header .search-word {
        max-width: 50%;
    }
}

/* footer tags */
.tag-list-wrp {
    background-color: #f9f9f9;
    padding: 4em 1em;
}

.tag-list-wrp .tag-list-title {
    font-size: min(1.4em, 4vw);
    margin-top: 0;
}

.pagetop-btn {
    position: fixed;
    bottom: min(1.75em, 4vw);
    right: min(1.5em, 4vw);
    line-height: 1.2;
    font-family: var(--en);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 4.5em;
    height: 4.5em;
    font-size: min(.7em, 3vw);
    background-color: rgba(0, 0, 0, .8);
    color: #fff !important;
    border-radius: 100%;
    z-index: 10;
    opacity: 0;
    transform: translateY(100%);
    transition: all .3s;
}

.pagetop-btn::before,
.pagetop-btn::after {
    content: '';
    color: inherit;
    display: block;
    position: absolute;
    opacity: .8;
}

.pagetop-btn::before {
    width: .75em;
    height: .75em;
    border-top: 1px solid;
    border-left: 1px solid;
    top: 1.5em;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

.pagetop-btn::after {
    width: 0;
    height: 1.5em;
    border-left: 1px solid;
    top: 1.5em;
    left: clac(50% - .5px);
}

.scl .pagetop-btn {
    opacity: 1;
    transform: translateY(0);
}