/* ====================================================
	archive header
==================================================== */
.archive-header {
    height: min(400px, 62vw);
    position: relative;
    background-color: #111;
    z-index: 0;
}

.archive-header.post {
    height: auto;
    position: relative;
    background-color: #111;
    z-index: 0;
    padding: 0;
}

.archive-header .bg {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: .8;
    overflow: hidden;
}

.archive-header.post .bg {
    position: relative;
    opacity: 1;
    overflow: unset;
}

.archive-header .bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.woocommerce .archive-header .bg img {
    object-position: 80% center;
}

.archive-header .title {
    width: 100%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
    z-index: 10;
    color: #fff;
    text-align: center;
    font-weight: normal;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, .8), 0px 0px 7px rgba(0, 0, 0, .3);
    /* display: inline-block;
    width: fit-content;
    height: fit-content;
    white-space: nowrap;
    writing-mode: vertical-rl;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: min(1.2em, 6vw);
    letter-spacing: .1em;
    font-feature-settings: "palt";
    padding: 1em .75em;
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); */
}

/* .story .archive-header .title,
.product .archive-header .title,
.news .archive-header .title {
    top: unset;
    left: unset;
    bottom: 7%;
    right: 7%;
    transform: translate(0, 0);
} */


.archive-header .title-jp {
    font-size: min(2.2em, 6vw);
}

.archive-header .title-description {
    margin-top: 1em;
    font-size: min(1.3em, 4.5vw);
}

/* news */
.news .archive-header .bg img {
    /* object-position: 27% center; */
}

.news .archive-header .title {
    transform: translate(-25%, -50%);
}

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

    /*     .news .archive-header .bg img {
        height: 105%;
        transform: translateY(-4.5%);
        object-position: 26% bottom;
    } */
    .news .archive-header .bg img {
        object-position: 35% bottom;
    }
}


/* ====================================================
	archive
==================================================== */
/* .archive-header.post-archive-header {
    width: 100%;
    text-align: center;
    padding: 30px 15px;
    margin: 0;
}

.archive-header.post-archive-header.post,
.archive-header.post-archive-header.news {
    background-color: var(--bgcolor);
} */

/* .archive #container.post,
.archive #container.news {
    background-color: var(--bgcolor);
} */

.ruby {
    display: inline-block;
    position: relative;
    line-height: 1;
}

.ruby::after {
    content: attr(data-ruby);
    width: max-content;
    position: absolute;
    left: 50%;
    bottom: 110%;
    font-size: .55em;
    line-height: 1;
    transform: translateX(-50%);
}

.archive .description-wrp {
    width: 100%;
    text-align: center;
    padding: min(60px, 10vw) 15px;
    margin: 0;
    background-color: #f9f9f9;
}

.archive .description-wrp .kanseirou-lead {
    font-size: min(1.4em, 5vw);
    margin-bottom: .75em;
}

.archive .archive-description {
    font-size: min(1.1em, 4vw);
    color: var(--gold);
    line-height: 2em;
    /* transform: translateX(.5em); */
}

.archive .taxtitle-wrp {
    width: 100%;
    text-align: center;
    padding: min(60px, 10vw) 15px 0;
    margin: 0;
}

.archive .taxtitle-wrp .taxtitle,
.archive .taxtitle-wrp .page-title {
    font-size: min(1.5em, 5.2vw);
}

.archive .taxtitle-wrp .taxtitle::after,
.archive .taxtitle-wrp .page-title::after {
    content: '';
    display: block;
    width: 1.5em;
    height: 0;
    margin: 1em auto 0;
    border-top: solid 1px var(--red);
}

.archive .archive-wrp {
    margin: 0 auto;
    padding: min(80px, 15vw) min(4em, 4vw);
    gap: 2em 4vw;
}

@media screen and (max-width:767px) {
    .archive .archive-wrp {
        gap: 2em min(2em, 5vw);
    }
}

.list-wrp .entry-archive {
    padding: .5em;
}

.entry-archive .thumb {
    width: 100%;
    aspect-ratio: 1/.62;
}

.entry-archive .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-archive .meta-wrp {
    padding: .75em 0;
}

.entry-archive .meta-wrp .postdate {
    font-size: .8em;
    color: var(--gold);
}

.entry-archive .entry-archive .meta-wrp .postdate {
    font-size: .75em;
}

.entry-archive .meta-wrp .archive-entry-title {
    margin-top: .5rem;
    font-size: 1em;
    line-height: 1.5;
}

.list-wrp .entry-archive .meta-wrp .archive-entry-title {
    font-size: .8em;
}

.entry-archive .meta-wrp .archive-entry-excerpt {
    margin-top: .25rem;
    font-size: .9em;
}

.list-wrp .entry-archive .meta-wrp .archive-entry-excerpt {
    font-size: .8em;
}

/* 月と百年物語 ----------------------*/
.archive-header.story {
    margin-bottom: 0;
}

@media screen and (min-width:980.1px) {
    .story-wrp {
        padding: min(60px, 10vw) 0;
    }
}

.story-wrp .story-banner-wrp {
    width: min(980px, 100%);
    margin: 0 auto;
}

.story-wrp .story-banner {
    display: block;
    width: 100%;
    position: relative;
    transition: color .3s ease;
}

.story-wrp .story-banner.disable {
    pointer-events: none;
    opacity: .7;
}

.story-wrp .story-banner .banner-img {
    display: block;
    width: 50%;
    aspect-ratio: 1/.62;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.story-wrp .story-banner.disable .banner-img::after {
    content: 'COMING SOON';
    width: max-content;
    color: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: min(.95em, 3.4vw);
    line-height: 1;
}

.story-wrp .story-banner:nth-child(even) .banner-img {
    margin-left: auto;
}

@media (any-hover: hover) {
    .story-wrp .story-banner .banner-img {
        filter: brightness(.75);
        transition: filter .3s ease;
    }

    .story-wrp .story-banner:hover .banner-img {
        filter: brightness(1);
    }
}

.story-wrp .story-banner .banner-name {
    padding: .75em min(5em, 15%);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-1em, -55%);
    font-size: min(1.3em, 4.2vw);
}

.story-wrp .story-banner:nth-child(odd) .banner-name {
    padding-right: .5em;
}

.story-wrp .story-banner:nth-child(even) .banner-name {
    padding-left: .5em;
    left: auto;
    right: 50%;
    transform: translate(1em, -55%);
}

@media (any-hover: hover) {
    .story-wrp .story-banner .banner-name::after {
        content: '';
        display: block;
        width: 0;
        height: 0;
        position: absolute;
        top: 100%;
        border-bottom: solid 1px var(--red);
        transition: width .5s ease;
    }

    .story-wrp .story-banner:hover .banner-name::after {
        width: 100%;
    }

    .story-wrp .story-banner:nth-child(odd) .banner-name::after {
        right: 0;
    }

    .story-wrp .story-banner:nth-child(even) .banner-name::after {
        left: 0;
    }
}

@media (any-hover: none) {
    .story-wrp .story-banner .banner-name {
        border-bottom: solid 1px var(--red);
    }
}

/* ====================================================
	single
==================================================== */
.single-content-wrp {
    width: 100%;
    margin: 0 auto;
    display: block;
    padding-bottom: 4em;
    background-color: var(--bgcolor);
}

.single-content-wrp.story-wrp {
    background-color: #f0efe7;
}

@media screen and (min-width:980.1px) {
    .single-content-wrp {
        padding-top: 40px;
    }
}

.single-content-wrp .mainimg {
    display: block;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 60px);
    margin: 0 auto;
}

.single-content-wrp.story-wrp .mainimg {
    padding: 1.5em;
    background-color: #fff;
}

.single-content-wrp .mainimg img {
    width: 100%;
    height: auto;
    max-height: calc(80vh - 60px);
    max-height: calc(80svh - 60px);
    object-fit: cover;
}

.single-content-wrp .entry-body {
    width: 100%;
    max-width: 780px;
    padding: min(80px, 5vw) 3em;
    margin: 0 auto;
}

@media screen and (max-width:767px) {
    .single-content-wrp .entry-body {
        padding: 1.5em 1.5em 3em;
    }
}

.single-content-wrp h1 {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 1em 0;
    font-size: min(1.55em, 4.5vw);
}

.single-content-wrp .postdate {
    font-size: .9em;
    margin-bottom: 4em;
}

.single-content-wrp h2 {
    display: block;
    width: 100%;
    margin: 0 auto;
    font-size: 1.3em;
    line-height: 1.5em;
    padding: 1em 0;
}

.single-content-wrp h3 {
    display: block;
    width: 100%;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.5em;
    padding: 1em 0;
}

.single-content-wrp .title-underline {
    border-bottom: 1px solid #ccc;
    padding-bottom: .25em;
    margin-bottom: 1em;
}

.single-content-wrp p {
    display: block;
    width: 100%;
    font-size: min(.9em, 3.6vw);
    padding-bottom: 1.5em;
    text-align: left;
    line-height: 2em;
}

.single-content-wrp p.justify {
    text-align: justify;
}

@media screen and (max-width:767px) {
    .single-content-wrp p {
        line-height: 1.8;
    }
}

.single-content-wrp .entry-body a:not(.woocommerce-LoopProduct-link) {
    text-decoration: underline;
    color: var(--main_subcolor);
    transition: color .3s;
}

.single-content-wrp .entry-body a:hover {
    color: var(--main_color);
}

.single-content-wrp .entry-body .wp-block-image {
    display: block;
    max-width: 730px;
    margin: 2em auto;
}

.single-content-wrp.story-wrp .entry-body .wp-block-image {
    background-color: #fff;
    padding: .75em;
}

.single-content-wrp .entry-body .wp-block-image figure.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.single-content-wrp .entry-body .wp-block-image img {
    width: 100% !important;
    height: 100% !important;
    max-height: calc(80vh - 60px);
    max-height: calc(80svh - 60px);
    object-fit: contain;

}

.single-content-wrp .wp-block-columns {
    display: flex;
    justify-content: space-between;
    gap: 1.5em;
}

.single-content-wrp .wp-block-columns .wp-block-column {
    flex-basis: 1px;
    flex-grow: 1;
}

.wp-block-video video {
    width: 100%;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.5%;
}

.wp-block-embed.is-type-video iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.single-content-wrp :is(.category-wrp, .tag-wrp) {
    margin-top: 3em;
    padding: 1em 0;
}

.category-wrp+.tag-wrp {
    margin-top: 1em;
}

.single-content-wrp :is(.category-title, .tag-title) {
    width: auto;
    margin-bottom: 1em;
    display: inline-block;
    padding: .2em .75em;
    border: solid 1px #333;
    font-size: .9em;
}

.border-bottom {
    padding-top: 1em;
    border-bottom: solid 1px #ccc;
}

.single-content-wrp :is(.category-wrp, .tag-wrp) li {
    display: inline-block;
    margin-right: 1em;
}

/* ====================================================
	pagenation
==================================================== */
.navigation {
    display: block;
    width: 100%;
    padding: 0 0 2em;
}

.navigation .nav-links {
    display: flex;
    justify-content: center;
}

.pagination a,
.pagination .dots,
.pagination .current {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.4em;
    height: 2.4em;
    text-decoration: none;
    margin: 0.25em;
    font-size: 0.8em;
    line-height: 1;
}

.pagination a {
    border-radius: 100%;
    background-color: #4f6378;
    color: #fff;
}

.pagination .current {
    opacity: .4;
}

.pagination a.prev,
.pagination a.next {
    padding: 0.2em 2em;
    margin: 0.25em;
    position: relative;
    border-radius: 0;
    width: auto;
    text-decoration: none;
    background-color: transparent;
    color: #222;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: inline-block;
    padding: 0.5em 2em;
    margin: 0.25em;
    text-decoration: none;
    position: relative;
}

.single-content-wrp .entry-body .navigation a {
    text-decoration: none;
}

.single-content-wrp .entry-body .more-btn {
    margin-top: 3em;
}

.backtolist {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 0;
    text-align: center;
    margin: 4em auto 2em;
}

.backtolist a {
    display: block;
    width: 100%;
    font-size: 0.9em;
    padding: 1em 3em;
    text-decoration: none;
    position: relative;
}

/* ====================================================
	list wrp
==================================================== */
.list-wrp .inner {
    width: 100%;
    max-width: var(--main_w);
    margin: 0 auto;
    padding: min(4em, 12vw) min(1.5em, 3vw);
}

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

    .list-wrp .post-entry {
        grid-template-columns: repeat(3, 1fr);
        gap: min(5vw, 2em);
    }

    @media screen and (max-width:640px) {
        .list-wrp .post-entry {
            grid-template-columns: repeat(1, 1fr);
        }

        .list-wrp .post-entry .entry-archive>a {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: nowrap;
        }

        .list-wrp .post-entry .entry-archive .thumb {
            width: 30%;
            aspect-ratio: 1/1;

        }

        .list-wrp .post-entry .entry-archive .meta-wrp {
            width: 65%;
            padding: 0;

        }
    }
}

@media screen and (max-width:767px) {
    .list-wrp .post-entry .archive-entry-title {
        font-size: 1.05em;
    }

    .list-wrp .post-entry .archive-entry-excerpt {
        font-size: .8em;
    }
}

.td-p1 tr td {
    padding: 1em;
}

.td25 tr td:first-child {
    width: 25%;
}

.td30 tr td:first-child {
    width: 30%;
}

.td40 tr td:first-child {
    width: 40%;
}