/*
Template:ystandard
Theme Name:ystandard-child
Theme URI: https://wp-ystandard.com
Author: yosiakatsuki
Author URI: https://yosiakatsuki.net
Description:「自分色に染めた、自分だけのサイトを作る楽しさ」を感じてもらうために作った一風変わったWordPressテーマ「ystandard」の子テーマ
Version: 4.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

:root {
    /* color */
    --color-bg-base: #F5F4E5;
    --color-bg-base-rgb: 245, 244, 229;
    --color-bg-sub: #fff;
    --color-bg-sub-rgb: 255, 255, 255;
    --color-bg-heading: #008000;
    --color-font-base: #2F2F2F;
    --color-font-white: #fff;
    --color-font-hover: #008000;
    --color-font-heading: #008000;
    --color-line-base: #008000;
    --color-line-white: #fff;
    --color-line-bg: #F5F4E5;
    --color-line-rgb: 0, 128, 0;

    /* shape */
    --hh-single-list__corner: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csvg%20version%3D%221.1%22%20id%3D%22%E3%83%AC%E3%82%A4%E3%83%A4%E3%83%BC1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2040%2040%22%20style%3D%22enable-background%3Anew%200%200%2040%2040%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%20.st0%7Bfill%3A%23F5F4E5%3B%7D%3C%2Fstyle%3E%3Cpath%20class%3D%22st0%22%20d%3D%22M40%2C0H0v40C0%2C17.9%2C17.9%2C0%2C40%2C0z%22%2F%3E%3C%2Fsvg%3E');

    --hh-header-thumbnail__shape: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221920%22%20height%3D%2280%22%20viewBox%3D%220%200%201920%2080%22%3E%3Cdefs%3E%3Cstyle%3E.d%7Bfill%3A%23f5f4e5%3B%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20id%3D%22a%22%2F%3E%3Cg%20id%3D%22b%22%3E%3Cg%20id%3D%22c%22%3E%3Cpath%20class%3D%22d%22%20d%3D%22M1920%2C80C1659.87%2C30.05%2C1325.17%2C0%2C960%2C0S260.13%2C30.05%2C0%2C80H1920Z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E');
}

body {
    background: var(--color-bg-base) !important;
}

svg {
    vertical-align: bottom;
}

/* #Gloval nav ======================================================= */
.has-fixed-header .site-header {
    height: 70px;
}

@media screen and (max-width: 768px) {
    .has-fixed-header .site-header {
        height: 50px;
    }
    .site-branding {
        padding-top: 0.8em;
    }
}
.site-branding .site-title {
    font-weight: bold;
}

@media (min-width: 351px) and (max-width: 972px) {
    .site-branding .site-title {
        font-size: 1em;
    }
}

@media screen and (max-width: 350px) {
    .site-branding {
        padding-top: 1em;
    }
    .site-branding .site-title {
        font-size: 0.8em;
    }
}

.global-nav__menu>.menu-item>a:after {
    background: var(--color-line-base);
    transition: all .3s;
    transform: scale(0, 1);
    transform-origin: center top;
    width: 100%;
}

.global-nav__menu>.menu-item.current-menu-item>a:after,
.global-nav__menu>.menu-item>a:hover:after {
    height: 1px;
    border-radius: 0;
    transform: scale(.8, 1);
}

body.has-background .alignfull.section-spacing {
    padding-left: 0;
    padding-right: 0;
}

.wp-block-image.is-style-rounded img {
    border-radius: 80px;
}

.wp-block-image.is-style-rounded-sm img {
    border-radius: 10px;
}

@media screen and (max-width: 768px) {
    .wp-block-image.is-style-rounded img {
        border-radius: 20px;
    }
}

@media screen and (min-width: 600px) {
    .global-nav__toggle {
        padding: 0;
        right: 1.6em;
        top: 0.5em;
    }
}

/* # Footer ========================================================== */
.footer-main {
    background: linear-gradient(90deg,#00563F, #7BB661, #DBF022);
    background-size: 200% 200%;
    animation: bggradient 20s ease infinite;
}

@keyframes bggradient{
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.footer-main .widget_nav_menu .sub-menu li {
    border: none;
}


.footer-main .widget_nav_menu a:before {
    display: none;
}

h2.footer-logo {
    margin-top: 0.5em;
}

.footer-widget__container {
    display: block;
}

.footer-main .widget_nav_menu li {
    white-space: nowrap;
}

@media (min-width: 1025px) {
    .footer-widget__container {
        display: flex;
    }

    .footer-main #menu-footer-nav {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        column-gap: 1em;
    }
    
    .footer-main .widget_nav_menu li,
    .footer-main .widget_nav_menu li ul {
        border: none;
    }
}

@media (min-width: 600px) {
    .footer-widget__container {
        justify-content: space-between;
    }

    .footer-widget__container>* {
        width: auto;
    }
}

/* # TOP Swiper ====================================================== */

.top-viewer-slide .swiper-button-prev,
.top-viewer-slide .swiper-button-next {
    visibility: hidden;
}

.top-viewer-slide .swiper-wrapper {
    width: 90%;
}

@media screen and (min-width: 769px) {
    .top-viewer-slide figure {
        margin-block-end: 0;
        margin-block-start: 0;
        margin-inline-end: 0;
        margin-inline-start: 0;
    }
    
    .top-viewer-slide .swiper-slide.swiper-slide-prev,
    .top-viewer-slide .swiper-slide.swiper-slide-next,
    .top-viewer-slide .swiper-slide.swiper-slide-duplicate-prev,
    .top-viewer-slide .swiper-slide.swiper-slide-duplicate-next {
        transform: scale(0.8);
        transition: all .6s;
    }
    
    .top-viewer-slide .swiper-slide.swiper-slide-active,
    .top-viewer-slide .swiper-slide.swiper-slide-duplicate-active {
        transform: scale(1);
        transition: all .6s;
    }
    
    .top-viewer-slide:hover .swiper-button-prev,
    .top-viewer-slide:hover .swiper-button-next {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .top-viewer-slide [class^="swiper-button-"] {
        transition: all .3s ease;
        opacity: 0;
        visibility: hidden;
    }
    
    .top-viewer-slide .swiper-button-prev {
        left: calc(100vw / 8);
        transform: translateX(50px);
    }
    
    .top-viewer-slide .swiper-button-next {
        right: calc(100vw / 8);
        transform: translateX(-50px);
    }
}

/* #Top Summary ====================================================== */
.top-summary-img {
    position: relative;
    transform: translateY(-1px);
}

.top-summary-img__tree img {
    width: 50%;
    transform: translateX(5%);
}

.top-summary-img__shape {
    margin-top: 0;
    position: absolute;
    bottom: 0;
    z-index: -1;
}

.wp-block-image.top-summary-img__shape img {
    width: 100vw;
}


.top-about {
    margin-top: 0;
}

/* Header Thumbnail ================================================== */
.site-header-thumbnail {
    position: relative;
}

.site-header-thumbnail:after {
    content: "";
    display: block;
    position: absolute;
    background: var(--hh-header-thumbnail__shape);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left bottom;
    width: 100%;
    height: calc( 100vw / 23 );
    bottom: 0;
    left: 0;
}

@media screen and (min-width: 600px) {
    .site-header-thumbnail img {
        max-height: 800px;
    }
}

/* Post List ========================================================= */

.ys-posts__list {
    row-gap: 90px;
}

.ys-posts__title {
    color: var(--color-font-heading);
    font-size: 1.2em;
}

.ys-posts__thumbnail {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 10px;
}

@media screen and (max-width: 768px) {
    .ys-posts__list {
        row-gap: 30px;
    }

    .ys-posts__title {
        font-size: 0.9em;
    }

    .ys-posts__dscr {
        display: none;
    }
}

/* btn-animation ===================================================== */

.btn-style {
    cursor: pointer;
    position: relative;
    display: block;
    z-index: 0;
    font-family: inherit;
    overflow: hidden;
    -webkit-transition: all .3s cubic-bezier(0.02, 0.01, 0.47, 1);
    transition: all .3s cubic-bezier(0.02, 0.01, 0.47, 1);
}

@media screen and (max-width: 768px) {
    .btn-style {
        width: 100%;
    }
    
}


.btn-style:before,
.btn-style:after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    content: '';
    opacity: 0;
    -webkit-transition: opacity .15s cubic-bezier(0.02, 0.01, 0.47, 1), -webkit-transform 0.15s cubic-bezier(0.02, 0.01, 0.47, 1);
    transition: opacity .15s cubic-bezier(0.02, 0.01, 0.47, 1), -webkit-transform 0.15s cubic-bezier(0.02, 0.01, 0.47, 1);
    transition: transform .15s cubic-bezier(0.02, 0.01, 0.47, 1), opacity 0.15s cubic-bezier(0.02, 0.01, 0.47, 1);
    transition: transform 0.15s cubic-bezier(0.02, 0.01, 0.47, 1), opacity 0.15s cubic-bezier(0.02, 0.01, 0.47, 1), -webkit-transform 0.15s cubic-bezier(0.02, 0.01, 0.47, 1);
    z-index: -1;
    -webkit-transform: translate(100%, -25%) translate3d(0, 0, 0);
            transform: translate(100%, -25%) translate3d(0, 0, 0);
}

.btn-style:hover,
.btn-style:focus {
    box-shadow: 0 1px 8px rgba(58,51,53,0.3);
    border-radius: 100px;
    z-index: 1;
    -webkit-transition: all 0.5s cubic-bezier(0.02, 0.01, 0.47, 1);
    transition: all 0.5s cubic-bezier(0.02, 0.01, 0.47, 1);
    -webkit-transform: scale(1.1) translate3d(0, 0, 0);
            transform: scale(1.1) translate3d(0, 0, 0);
}

.btn-style:hover:before,
.btn-style:focus:before {
    opacity: 0.15;
    z-index: 1;
    -webkit-transition: opacity 0.2s cubic-bezier(0.02, 0.01, 0.47, 1), -webkit-transform 0.2s cubic-bezier(0.02, 0.01, 0.47, 1);
    transition: opacity 0.2s cubic-bezier(0.02, 0.01, 0.47, 1), -webkit-transform 0.2s cubic-bezier(0.02, 0.01, 0.47, 1);
    transition: transform 0.2s cubic-bezier(0.02, 0.01, 0.47, 1), opacity 0.2s cubic-bezier(0.02, 0.01, 0.47, 1);
    transition: transform 0.2s cubic-bezier(0.02, 0.01, 0.47, 1), opacity 0.2s cubic-bezier(0.02, 0.01, 0.47, 1), -webkit-transform 0.2s cubic-bezier(0.02, 0.01, 0.47, 1);
    -webkit-transform: translate3d(50%, 0, 0) scale(0.9);
            transform: translate3d(50%, 0, 0) scale(0.9);
    box-shadow: 0 1px 6px rgba(58,51,53,0.3);
}

.btn-style:hover:after,
.btn-style:focus:after {
    opacity: 0.25;
    z-index: 1;
    -webkit-transition: opacity 0.2s 0.05s cubic-bezier(0.02, 0.01, 0.47, 1), -webkit-transform 0.2s 0.05s cubic-bezier(0.02, 0.01, 0.47, 1);
    transition: opacity 0.2s 0.05s cubic-bezier(0.02, 0.01, 0.47, 1), -webkit-transform 0.2s 0.05s cubic-bezier(0.02, 0.01, 0.47, 1);
    transition: transform 0.2s 0.05s cubic-bezier(0.02, 0.01, 0.47, 1), opacity 0.2s 0.05s cubic-bezier(0.02, 0.01, 0.47, 1);
    transition: transform 0.2s 0.05s cubic-bezier(0.02, 0.01, 0.47, 1), opacity 0.2s 0.05s cubic-bezier(0.02, 0.01, 0.47, 1), -webkit-transform 0.2s 0.05s cubic-bezier(0.02, 0.01, 0.47, 1);
    -webkit-transform: translate(50%, 0) scale(1.1);
            transform: translate(50%, 0) scale(1.1);
}

/* #Single Post List ================================================= */
.hh-single__list .ys-posts__title {
    display: block;
    font-size: 1.5em;
    padding: 0 30px 20px 0;
    border-radius: 0 0 100px 0;
    transform: translate(-1px, -1px);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    margin: 0;
    background: var(--color-bg-base);
    white-space: nowrap;
}

.hh-single__list .ys-posts__title:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    transform: translate(0.5px, 53px);
    background: var(--hh-single-list__corner);
    background-repeat: no-repeat;
    background-size: cover;
}

.hh-single__list .ys-posts__thumbnail {
    border-radius: 0 40px 40px;
    transform: translate(0, 0);
}

.hh-single__list .ys-posts__dscr {
    background: var(--color-bg-base);
    padding: 20px 30px 10px 0;
    position: absolute;
    z-index: 1;
    top: calc(100% - 3.5em);
    left: 0;
    width: 70%;
    border-radius: 0 60px 0 0;
}

.hh-single__list .ys-posts__dscr:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--hh-single-list__corner);
    background-repeat: no-repeat;
    background-size: cover;
    transform: translate(-0.5px, -39.5px) rotate(-90deg);
}

@media screen and (max-width: 768px) {
    .hh-single__list .ys-posts__title {
        font-size: 0.9em;
        padding-right: 20px;
        padding-bottom: 15px;
    }

    .hh-single__list .ys-posts__title:after {
        transform: translateY(35px);
    }

    .hh-single__list .ys-posts__dscr {
        display: block;
        position: initial;
        padding: 0;
        width: 100%;
        background: none;
    }

    .hh-single__list .ys-posts__dscr:after {
        position: initial;
        background: none;
        transform: none;
    }
}

/* Archive Item ====================================================== */

.has-background .archive__item {
    padding-left: 0;
    padding-right: 0;
}

.has-background .archive__item.is-card .archive__thumbnail {
    width: var(--ystd-archive-thumbnail-width);
    margin-left: 0;
    margin-right: 0;
}

.archive__meta .ys-icon {
    display: none;
}

.archive__date time {
    color: var(--color-font-heading);
}

.archive__category {
    background: var(--color-bg-heading);
    color: #F5F4E5;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 2px;
    border-radius: 5px;
}

.archive__item .archive__title {
    color: var(--color-font-heading);
}

@media screen and (max-width: 350px) {
    .has-background .archive__container {
        row-gap: 0.5em;
    }
    .archive__item.is-card .archive__meta {
        display: inline-block;
        gap: 0.5em;
    }

    .archive__item.is-card .archive__detail .archive__text {
        margin-top: 0;
    }

    .archive__item.is-card .archive__meta>div {
        display: inline-block;
        line-height: 1.5;
    }

    .archive__item .archive__title {
        margin-top: -0.5em;
    }

    .archive__excerpt {
        display: none;
    }
}

.cat-item.cat-item-12 {
    display: none;
}

/* # Recent Archive ================================================== */
.ys-posts__meta {
    color: var(--font-color);
}

.ys-posts__meta .ys-icon {
    display: none;
}

.ys-posts__cat {
    background: var(--color-bg-heading);
    color: #F5F4E5;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 2px;
    border-radius: 5px;
}

@media (min-width: 769px) {
    .ys-posts__meta .ys-posts__date {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .ys-posts__cat {
        font-size: 0.5em;
        padding-bottom: 0;
    }
}

/* # Post Template =================================================== */
.single .singular-article .singular-header {
    background: var(--color-bg-sub);
    padding: 2rem 1.5rem;
    border-radius: 30px 30px 0 0;
}

.single .singular-article .entry-content {
    background: var(--color-bg-sub);
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.single .singular-article .singular__footer .sns-share,
.single .singular-article .singular__footer .post-taxonomy {
    background: var(--color-bg-sub);
    margin-top: 0;
    padding: 2rem 1.5rem;
}

@media (min-width: 769px) {
    .single .singular-article .singular-header {
        padding: 6rem 5rem 6rem;
    }
    .single .singular-article .entry-content {
        padding-left: 5rem;
        padding-right: 5rem;
    }

    .single .singular-article .singular__footer .sns-share,
    .single .singular-article .singular__footer .post-taxonomy {
        padding: 2rem 5rem;
    }
}

.singular-header__meta {
    color: var(--font-color);
}

.singular-article .entry-content h2,
.singular-article .entry-content h3 {
    margin-top: 5rem;
    margin-bottom: 2.5rem;
}

.singular-article .entry-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .singular-article .entry-content h2,
    .singular-article .entry-content h3 {
        margin-top: 2.5rem;
    }

    .singular-article .entry-content h4 {
        margin-top: 1.5rem;
    }
}

.single.singular-article .singular__footer .post-taxonomy {
    padding-bottom: 6rem;
    border-radius: 0 0 30px 30px;
}

.single .singular__footer .widget-title {
    display: none;
}

.wp-block-table.is-style-hh-table {
	border-collapse: collapse;
    border: none;
}

.wp-block-table.is-style-hh-table table {
    margin: 20px auto 40px;
    width: 90%;
    border: none;
}

.wp-block-table.is-style-hh-table table th {
    color: var(--color-font-heading);
    text-align: left;
    border: none;
    background: none;
    border-bottom: 1px solid var(--color-line-base);
}

.wp-block-table.is-style-hh-table table tr {
    border: none;
}

.wp-block-table.is-style-hh-table table td {
    text-align: left;
    padding: 8px;
    border: none;
    border-bottom: 1px solid var(--color-line-base);
}

.wp-block-table.is-style-hh-table table td:first-child {
    color: var(--color-font-heading);
    vertical-align: baseline;
    white-space: normal;
}

/* # Page Template =================================================== */
.page .singular-header {
    display: none;
}