/*
Template:ystandard
Theme Name:ystandard-kinashifugu
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{
    --ystd-container-width: 1000px;
    --font_yuji: "Yuji Syuku", serif;
    --font_mont: "Montserrat", sans-serif;
    --font_zenkaku: "Zen Kaku Gothic New", sans-serif;
    --font_lateef: "Lateef", serif;
}

body{
    font-size: var(--wp--preset--font-size--normal);
    --wp--preset--font-size--x-small: 10px;
    --wp--preset--font-size--small: 12px;
    --wp--preset--font-size--normal: 16px;
    --wp--preset--font-size--medium: 20px;
    --wp--preset--font-size--large: 25px;
    --wp--preset--font-size--x-large: 30px;
    --wp--preset--font-size--xx-large: 36px;
}
@media (max-width: 600px) {
    body{
        --wp--preset--font-size--x-small: 10px;
        --wp--preset--font-size--small: 10px;
        --wp--preset--font-size--normal: 12px;
        --wp--preset--font-size--medium: 16px;
        --wp--preset--font-size--large: 22px;
        --wp--preset--font-size--x-large: 25px;
        --wp--preset--font-size--xx-large: 30px;
    }
}
html[lang="zh-CN"] body{
    --font_yuji: "Noto Sans SC", serif;
    font-family: "Montserrat", "Noto Sans SC", sans-serif;
}
html[lang="zh-TW"] body{
    --font_yuji: "Noto Sans TC", serif;
    font-family: "Montserrat", "Noto Sans TC", sans-serif;
}
html[lang="en"] body{
    --font_yuji: "Lateef", serif;
}

.ystd .has-x-small-font-size {
    font-size: var(--wp--preset--font-size--x-small) !important;
}
.ystd .has-small-font-size {
    font-size: var(--wp--preset--font-size--small) !important;
}
.ystd .has-normal-font-size {
    font-size: var(--wp--preset--font-size--normal) !important;
}
.ystd .has-medium-font-size {
    font-size: var(--wp--preset--font-size--medium) !important;
}
.ystd .has-large-font-size {
    font-size: var(--wp--preset--font-size--large) !important;
}
.ystd .has-x-large-font-size {
    font-size: var(--wp--preset--font-size--x-large) !important;
}
.ystd .has-xx-large-font-size {
    font-size: var(--wp--preset--font-size--xx-large) !important;
}

.wp-block-button__link:hover{
    box-shadow: none;
}

.bg_wave,
.bg_wave.wp-block-button .wp-block-button__link{
    background-image: url(img/tx_waves.jpg);
    background-position: center;
    background-size: 880px auto;
}
.bg_history{
    background-image: url(img/tx_hystory2.jpg);
    background-position: center top;
    background-size: 100% auto;
}
.bg_product{
    background-image: url(img/tx_product2.jpg);
    background-position: center top;
    background-size: 100% auto;
}
.bg_wave.wp-block-button .wp-block-button__link{
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.3s;
}
.bg_wave.wp-block-button .wp-block-button__link:hover{
    box-shadow: none;
}
.link_arrow.bg_wave.wp-block-button{
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
a[href*="tel"]{
    text-decoration: none;
    color: var(--font-color);
    pointer-events: none;
}

@media (max-width: 600px) {
    .bg_wave,
    .bg_wave.wp-block-button .wp-block-button__link{
        background-size: 700px auto;
    }
    .bg_history,
    .bg_product{
        background-size: 600px auto;
    }
    a[href*="tel"]{
        text-decoration: underline;
        color: var(--link-text);
        pointer-events: all;
    }
}
@media (max-width: 400px) {
    .bg_wave,
    .bg_wave.wp-block-button .wp-block-button__link{
        background-size: 500px auto;
    }
    .bg_history,
    .bg_product{
        background-size: 400px auto;
    }
}

.link_arrow.wp-block-button .wp-block-button__link{
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}
.link_arrow.wp-block-button .wp-block-button__link:hover{
    opacity: 0.5;
}
.link_arrow.wp-block-button .wp-block-button__link::after{
    content: '';
    display: inline-block;
    width: 36px;
    height: 36px;
    background-image: url(img/arrow.png);
    background-repeat: no-repeat;
    background-size: contain;
    margin: 5px 0 5px 8px;
    transition: all 0.3s;
}
.link_arrow.wp-block-button .wp-block-button__link:hover::after{
    translate: 5px 0;
}
.link_arrow.gold.wp-block-button .wp-block-button__link::after{
    background-image: url(img/arrow_gold.png);
}
.link_arrow.blue.wp-block-button .wp-block-button__link::after{
    background-image: url(img/arrow_blue.png);
}
@media (max-width: 600px) {
    .link_arrow.wp-block-button .wp-block-button__link::after{
        width: 28px;
        height: 28px;
    }
}

#content{
    --ystd-container-gutter:2rem
}
.font_yuji{
    font-family: var(--font_yuji);
    font-weight: 500;
}

/* header */

.site-header{
    border-bottom: #ccc 1px solid;
    transition: top 0.3s ease, background-color 0.3s ease ;
}
.site-branding{
    padding-top: 25px;
    padding-bottom: 25px;
}

.global-nav{
    justify-content: center;
    padding-bottom: 0;
}
.global-nav__container{
    width: fit-content;
}
.global-nav__container ul{
    width: fit-content;
    gap: 2rem;
}
.global-nav__menu>.menu-item{
    white-space: nowrap;
    margin: 0.25rem 0 0;
}
.global-nav__menu>.menu-item>a{
    padding: 0.5em 0;
    font-family: var(--font_mont);
    font-weight: 400;
    color: var(--wp--preset--color--ys-blue);
    font-size: var(--wp--preset--font-size--normal);
    text-align: center;
    min-width: 36px;
}
.global-nav__container .global-nav__menu .global-nav__dscr{
    display: block;
    color: #000;
    font-family: var(--font_zenkaku);
    text-align: center;
    text-transform: capitalize;
}
.global-nav__menu>.menu-item>a:after,
.global-nav__menu>.menu-item.current-menu-item>a:after{
    display: block;
    max-width: 36px;
    left: calc(50% - 18px);
}

@media (max-width: 600px) {
    .global-nav{
        display: flex;
        visibility: visible;
        position: relative;
        top: auto; right: auto;
        bottom: auto; left: auto;
        margin: 0 -1rem;
        padding: 0;
        opacity: 1;
    }
    .global-nav__toggle{
        display: none;
        cursor: auto;
    }
    .global-nav__menu{
        display: flex;
    }
    html[lang="en"] .global-nav__menu{
        gap: 0.8rem;
    }
    .global-nav__menu>.menu-item>a{
        font-size: 13px;
    }
    .global-nav__menu>.menu-item.current-menu-item>a:after{
        display: block;
    }
}

/* footer */

.footer-main{
    padding-top: 2em;
}
#footer .footer-widget .wp-block-columns{
    justify-content: center;
    align-items: center !important;
}
#footer .footer-widget .wp-block-column{
    flex-basis: auto !important;
    flex-grow: unset !important;
}
#footer .footer-widget .wp-block-column .wp-block-image{
    max-width: 150px;
    margin-bottom: 1em;
}
#footer .footer-widget .wp-block-column:last-child p{
    margin-top: 1em;
}
#footer .footer-widget .wp-block-column:last-child p:first-child{
    margin-top: 0;
}
#footer .footer-widget p:empty{
    display: none;
}
#footer .footer-widget .gtranslate_wrapper{
    margin-top: 3px;
    display: flex;
    gap: 8px;
}
#footer .footer-widget .gtranslate_wrapper img{
    display: block;
    filter: grayscale(1);
}
#footer .footer-widget .gtranslate_wrapper .gt-current-lang img,
#footer .footer-widget .gtranslate_wrapper img:hover{
    filter: grayscale(0);
}
#footer .footer-widget .gtranslate_wrapper a[data-gt-lang="zh-CN"]{
    order: 2;
}
#footer .footer-widget .gtranslate_wrapper a[data-gt-lang="en"]{
    order: 1;
}
#footer .footer-widget .gtranslate_wrapper a[data-gt-lang="ja"]{
    order: 3;
}
#footer a[href*="tel"]{
    color: #fff;
    text-decoration: none;
}
.site-info{
    margin-top: 0;
    opacity: 0.5;
}
.copyright{
    font-size: var(--wp--preset--font-size--small);
    text-transform: uppercase;
}
@media (max-width: 600px) {
    #footer .footer-widget .wp-block-column .wp-block-image{
        max-width: 100px;
    }
    #footer .footer-widget .gtranslate_wrapper img{
        width: 20px;
        height: auto;
    }
}


#masthead .container{
    max-width: 100%;
}
.site-title img{
    margin-left: 0 !important;
}
.site-branding{
    padding-bottom: 1.8em;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background-color: #fff;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}
@media (max-width: 600px) {
    .site-title img{
        margin-left: auto !important;
    }
}

/* == front-page == */

.is-front-page #masthead .container{
    max-width: 100%;
}
.is-front-page .site-title img{
    margin-left: 0 !important;
}
.is-front-page .site-branding{
    padding-top: 1.8em;
    padding-bottom: 1.8em;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background-color: #fff;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}
.is-front-page .site-header{
    background-color: transparent;
    border-bottom: none;
}
.is-front-page .global-nav {
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.is-front-page .global-nav.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.is-front-page .site-header:has(.global-nav.show){
    background-color: #fff;
    border-bottom: #ccc 1px solid;
}
.is-front-page .site-content{
    margin-top: -41px;
}
@media (max-width: 768px) {
    .is-front-page .site-content{
        margin-top: -57px;
    }
}
@media (max-width: 600px) {
    .is-front-page .site-title img{
        margin-left: auto !important;
    }
    .is-front-page .site-branding{
        padding-top: 2.2em;
        padding-bottom: 2em;
    }
    .is-front-page .site-content{
        margin-top: -37px;
    }
}

.top_slider{
    margin-top: 0;
}
.top_slider .swiper{
    padding-bottom: 30px;
}
.top_slider .swiper .swiper-pagination{
    bottom: 0;
}
.top_slider .swiper p{
    font-size: 60px;
    font-weight: 200;
    font-family: var(--font_mont);
    line-height: 1;
    letter-spacing: -1px;
    max-width: 752px;
    margin-left: auto;
    margin-right: auto;
}
.top_slider .swiper p.lang-ja{
    font-weight: 300;
    font-family: var(--font_zenkaku);
}
.entry-content .notranslate.lang-ja,
html[lang="en"] .entry-content .notranslate.lang-en,
html[lang="zh-CN"] .entry-content .notranslate.lang-en{ display: block; }

.entry-content .notranslate.lang-en,
html[lang="en"] .entry-content .notranslate.lang-ja,
html[lang="zh-CN"] .entry-content .notranslate.lang-ja{
    display: none;
}

@media (max-width: 600px) {
    .top_slider .swiper p{
        font-size: 45px;
    }
}

/* top_news */
#top_news.wp-block-group{
    padding-top: 2.5em;
    padding-bottom: 2em;
}
#top_news .wp-block-button__link{
    opacity: 0.5;
}
#top_news .wp-block-button__link:hover{
    opacity: 1;
}
#news_list{
    margin-left: -1rem;
    margin-right: -1rem;
    position: relative;
    padding: 0 5%;
}
#news_list .swiper-slide{
    padding: 0 1rem;
}
#news_list .swiper-slide a{
    text-decoration: none;
}
#news_list .swiper-slide a .post_title{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-weight: 400;
}
#news_list .swiper-slide a .post_date{
    opacity: 0.6;
}
#news_list .swiper-slide img{
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: rgb(244 249 255 / 55%);
}

#news_list .swiper-button-prev{
    top: 40%;
    left: 0;
}
#news_list .swiper-button-next{
    top: 40%;
    right: 0;
}
#news_list .swiper-button-prev.swiper-button-disabled,
#news_list .swiper-button-next.swiper-button-disabled{
    opacity: 0;
}

@media (max-width: 600px) {
    #news_list{
        --swiper-navigation-size:22px;
    }
}

/* top_links */
#top_links .has-xx-large-font-size{
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
    line-height: 32px !important;
}
#top_links .has-xx-large-font-size a{
    text-decoration: none;
    color: #fff;
}
@media (max-width: 781px) {
    #top_links{
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 600px) {
    #top_links .has-xx-large-font-size{
        line-height: 28px !important;
    }
}

/* top_product */
#top_product.wp-block-group{
    padding-top: 3.5em;
    padding-bottom: 3.5em;
}
#top_product .wp-block-group__inner-container{
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
#top_product .heading-subtext{
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 400 !important;
    width: fit-content;
    margin: 0 auto;
    border: var(--wp--preset--color--ys-yellow) 1px solid;
    border-radius: 30px;
    color: #000;
    background-color: #fff;
    padding: 5px 16px;
    line-height: 1;
}
#top_product .heading-subtext + .wp-block-heading{
    margin-top: 3px;
}
#top_product .wp-block-image{
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
#top_product .wp-block-image img{
    border: var(--wp--preset--color--ys-yellow) 2px solid;
}
#top_product .wp-block-image figcaption{
    background-color: var(--wp--preset--color--ys-yellow);
    color: #fff;
    font-family: var(--font_yuji);
    font-size: var(--wp--preset--font-size--large);
    font-weight: 500;
    width: fit-content;
    padding: 8px 10px 12px;
    position: absolute;
    left: -10px;
    bottom: 16px;
    line-height: 1;
}
#top_product .wp-block-image figcaption:before {
  position: absolute;
  content: '';
  top: 100%;
  left: 0;
  border: none;
  border-bottom: solid 10px transparent;
  border-right: solid 10px #817037;/*折り返し部分*/
}

/* top_history */
#top_history.wp-block-group{
    padding-top: 3.5em;
    padding-bottom: 3.5em;
}
#top_history .wp-block-media-text{
    margin-left: auto;
    margin-right: auto;
}
#top_history .wp-block-media-text__content{
    width: fit-content;
    margin: auto;
    padding-top: 0;
    padding-bottom: 0;
}
#top_history .wp-block-media-text__media{
    min-height: 300px;
}
#top_history .wp-block-button__link{
    padding: 0 !important;
}
#top_history .wp-block-media-text__content .wp-block-heading,
#top_history .wp-block-media-text__content p,
#top_history .wp-block-media-text__content .wp-block-buttons{
    margin-top: 0;
    margin-bottom: 0;
}
@media (max-width: 600px) {
    #top_history .wp-block-media-text__media{
        min-height: fit-content;
    }
}

/* top_sidestories */
#top_sidestories.wp-block-group{
    padding-top: 3.5em;
    padding-bottom: 3.5em;
}
#top_sidestories .heading-subtext{
    font-size: var(--wp--preset--font-size--normal);
    width: fit-content;
    margin: 0 auto;
    color: var(--font-color);
    font-weight: 400;
}
#top_sidestories .heading-subtext::after{
    content: '';
    display: block;
    width: 100px;
    height: 1px;
    background-color: var(--wp--preset--color--ys-blue);
    margin: 6px auto 0;
}
#top_sidestories .heading-subtext + .wp-block-heading{
    margin-top: 3px;
}
#top_sidestories .ys-posts__list{
    --ystd-posts-item-gap:2rem;
    margin-top: 1.5rem;
}
#top_sidestories .ys-posts__list .wp-block-image{
    margin-bottom: 0.5em;
}
#top_sidestories .ys-posts__list .ys-posts__title{
    font-size: var(--wp--preset--font-size--medium);
    color: var(--font-color);
    padding: 10px 0 0;
    font-weight: 500;
    margin: 0;
}
#top_sidestories .ys-posts__list .ys-posts__title a{
    color: var(--font-color);
}
#top_sidestories .ys-posts__list .ys-posts__dscr{
    font-size: var(--wp--preset--font-size--small);
    color: var(--font-color);
    margin: 8px 0 0;
}
#top_sidestories .ys-posts__list .ys-posts__text{
    /*padding-bottom: 50px;*/
    position: relative;
}/*
#top_sidestories .ys-posts__list .ys-posts__text::before{
    content: 'Read more';
    color:var(--wp--preset--color--ys-blue);
    position: absolute;
    bottom: 0;
    left: 0;
    height: 48px;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--wp--preset--font-size--small);
}
#top_sidestories .ys-posts__list .ys-posts__text::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 65px;
    height: 48px;
    width: 48px;
    display: block;
    background-image: url(img/arrow_blue.png);
    background-repeat: no-repeat;
    background-size: 28px auto;
    background-position: center;
    transition: all 0.3s;
}
#top_sidestories .ys-posts__list .ys-posts__text:hover:after{
    translate: 5px 0;
}*/
@media (max-width: 600px) {
    #top_sidestories .ys-posts__list .ys-posts__text{
        padding-bottom: 40px;
    }
    #top_sidestories .ys-posts__list .ys-posts__text::before{
        height: 38px;
    }
    #top_sidestories .ys-posts__list .ys-posts__text::after{
        left: 58px;
        height: 38px;
        width: 38px;
        background-size: 25px auto;
    }
}

/* top_contact */
#top_contact.wp-block-group{
    padding-top: 3.5em;
    padding-bottom: 3.5em;
}
#top_contact .smf-item{
    margin-bottom: 1.5em;
}
.smf-form .smf-text-control__control,
.smf-form .smf-textarea-control__control{
    border-radius: 0;
    margin-top: 3px;
}
.smf-form .smf-checkbox-control{
    align-items: center;
}
.smf-form .smf-checkbox-control__control{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin: 0;
}
#top_contact .smf-item p:last-child{
    margin-top: 0;
    margin-bottom: 2em;
}
#top_contact .smf-action .smf-button-control__control{
    border: none;
    background-image: url(img/arrow.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 90% center;
    background-color: transparent;
    padding: 8px 55px 8px 8px;
    color: #fff;
    transition: all 0.3s;
}
#top_contact .smf-action .smf-button-control__control:hover{
    opacity: 0.5;
    box-shadow: none;
    background-position: 100% center;
}


/* == about == */


html[lang="en"] .wp-block-heading.lang-en{
    letter-spacing: 0;
    font-family: var(--font_mont);
}

.entry-content .strong_light strong{
    font-weight: 500;
}

.about_outline td:first-child{
    white-space: nowrap;
    vertical-align: top;
    font-weight: 500;
}
@media (max-width: 400px) {
    .about_outline tr,
    .about_outline td{
        display: block;
    }
    .about_outline td:first-child{
        padding-bottom: 0;
    }
    .about_outline td:last-child{
        padding-bottom: 1.5em;
    }
}

.about_history table{
    border-collapse: separate;
    border-spacing: 0 8px;
}
.about_history tr{
    border-bottom: var(--font-color) 0.5px solid !important;
}
.about_history td{
    padding-top: 2px !important;
}
.about_history td:first-child{
    white-space: nowrap;
    vertical-align: top;
    font-weight: 500;
    position: relative;
    padding-right: 1em;
}
.about_history td:first-child::after{
    content: '';
    width: 8px;
    height: calc(100% - 8px);
    border-left: var(--font-color) 0.5px dashed;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
}
.about_history tr:first-child strong{
    display: block;
    font-weight: 400;
}
html[lang="en"] .about_history tr:first-child strong:first-child{
    display: none;
}
html[lang="ja"] .about_history tr:first-child strong:nth-child(2),
html[lang="zh-CN"] .about_history tr:first-child strong:nth-child(2),
html[lang="zh-TW"] .about_history tr:first-child strong:nth-child(2){
    display: none;
}

@media (max-width: 400px) {
    .about_history table{
        border-spacing: 0;
    }
    .about_history tr,
    .about_history td{
        display: block;
        border-bottom: none !important;
    }
    .about_history td:first-child{
        padding-bottom: 0;
    }
    .about_history td:last-child{
        padding-bottom: 0.5em;
        margin-bottom: 0.8em;
        border-bottom: var(--font-color) 1px solid !important;
    }
    .about_history td:first-child::after{
        display: none;
    }
}

#about_history.wp-block-group{
    padding-top: 3.5em;
    padding-bottom: 3.5em;
}
#about_history .wp-block-heading{
    margin-right: calc(-50vw + 50% + var(--scrollbar-width)/2);
    padding-bottom: 10px;
}

.cta.wp-block-media-text{
    max-width: 600px;
    margin: 2em auto;
}
.cta.wp-block-media-text .wp-block-media-text__media{
    min-height: 80px;
}
.cta.wp-block-media-text p{
    margin-top: 0;
}
@media (max-width: 1024px) {
    #about_history .wp-block-heading{
        margin-right: -2rem;
    }
}
@media (max-width: 600px) {
    .page_header.wp-block-cover{
        min-height: 300px !important;
    }
    .cta.wp-block-media-text .wp-block-media-text__media{
        min-height: fit-content;
    }
}
@media (max-width: 400px) {
    .page_header.wp-block-cover{
        min-height: 240px !important;
    }
}

/* == safety == */

.image-1col,
.kyokasho.wp-block-columns{
    max-width: 630px;
    margin-left: auto;
    margin-right: auto;
}
.kyokasho.wp-block-columns .wp-block-column{
    padding: 0 0.5em;
}
.kyokasho.wp-block-columns .wp-block-column p{
    margin-top: 0.8em;
}
p > a[href*="pdf"]{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    gap: 3px;
}
p > a[href*="pdf"]::before{
    content: '';
    width: 1.2em;
    height: 1.2em;
    display: block;
    background-image: url(img/icon_pdf.png);
    background-size: contain;
    background-repeat: no-repeat;
}

#safety_process.wp-block-group{
    padding-top: 3.5em;
    padding-bottom: 3.5em;
}
#safety_process h2.wp-block-heading{
    margin-right: calc(-50vw + 50% + var(--scrollbar-width)/2);
    background-image: url(img/tensen.png);
    background-repeat: repeat-x;
    background-position: bottom left;
    padding-bottom: 10px;
}
@media (max-width: 1024px) {
    #safety_process h2.wp-block-heading{
        margin-right: -2rem;
    }
}

.entry-content .dnum_face strong{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    translate: 0 2px;
    margin-right: 8px;
}
.dnum_face strong span{
    width: 0.45em;
    background-image: url(img/num/dnum_0.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    text-indent: -9999px;
    overflow: hidden;
}
.dnum_face strong span.num_0{
    background-image: url(img/num/dnum_0.png);
}
.dnum_face strong span.num_1{
    background-image: url(img/num/dnum_1.png);
}
.dnum_face strong span.num_2{
    background-image: url(img/num/dnum_2.png);
}
.dnum_face strong span.num_3{
    background-image: url(img/num/dnum_3.png);
}
.dnum_face strong span.num_4{
    background-image: url(img/num/dnum_4.png);
}
.dnum_face strong span.num_5{
    background-image: url(img/num/dnum_5.png);
}
.dnum_face strong span.num_6{
    background-image: url(img/num/dnum_6.png);
}
.dnum_face strong span.num_7{
    background-image: url(img/num/dnum_7.png);
}
.dnum_face strong span.num_8{
    background-image: url(img/num/dnum_8.png);
}
.dnum_face strong span.num_9{
    background-image: url(img/num/dnum_9.png);
}
.dnum_face strong span.num_d{
    width: 0.23em;
    background-image: url(img/num/dnum_d.png);
    background-size: 65% auto;
    background-position: center right;
}
.dnum_face strong span.num_d+.num_1,
.dnum_face strong span.num_1:first-child{
    margin-left: -0.25em;
}

.has-ys-white-color .dnum_face strong{
    filter: invert(1);
}

.side_scroll.ystdtb-slider .swiper{
    padding: 0 10%;
}
.side_scroll.ystdtb-slider .swiper-slide{
    padding: 0 5%;
}
.side_scroll.ystdtb-slider .swiper-slide .wp-block-heading{
    margin-top: 0;
    line-height: 1;
    padding-bottom: 8px;
}
.side_scroll.ystdtb-slider .swiper-button-prev{
    left: 8%;
}
.side_scroll.ystdtb-slider .swiper-button-next{
    right: 8%;
}
.side_scroll.ystdtb-slider .swiper-button-prev.swiper-button-disabled,
.side_scroll.ystdtb-slider .swiper-button-next.swiper-button-disabled{
    opacity: 0;
}

/* qa */
.wp-block-details summary{
    list-style: none;
}
.wp-block-details summary strong{
    width: 2em;
    display: inline-block;
    font-weight: 500;
}
.wp-block-details summary::before{
    content: '[＋]';
    display: inline-block;
    margin: 0 5px 0 0;
    font-weight: 500;
}
.wp-block-details:open summary::before{
    content: '[ー]';
}
.wp-block-details p{
    margin-left: 2em;
    padding-left: 2em;
    position: relative;
}
.wp-block-details p strong{
    font-weight: 500;
    position: absolute;
    left: 0;
    top: 0;
}


@media (max-width: 600px) {
    .side_scroll.ystdtb-slider{
        --swiper-navigation-size:30px;
        margin-right: -1rem;
        margin-left: -1rem;
    }
    .side_scroll.ystdtb-slider .swiper{
        padding: 0;
    }
    .side_scroll.ystdtb-slider .swiper-slide{
        padding: 0 calc(5% + 0.5rem);
    }
    .side_scroll.ystdtb-slider .swiper-slide:first-child{
        padding: 0 10% 0 1rem;
    }
    .side_scroll.ystdtb-slider .swiper-slide:last-child{
        padding: 0 1rem 0 10%;
    }
    .side_scroll.ystdtb-slider .swiper-button-prev{
        top: 45%;
        left: 0;
    }
    .side_scroll.ystdtb-slider .swiper-button-next{
        top: 45%;
        right: 0;
    }
}

/* アーカイブ */

#breadcrumbs{
    text-transform: uppercase;
}
.archive__page-title{
    font-weight: 400;
    font-size: var(--wp--preset--font-size--x-large);
    text-transform: uppercase;
    margin-bottom: 1.5em;
}
body:has(.archive__dscr .wp-block-cover) .archive__header{
    display: none;
}
body:has(.archive__dscr .wp-block-cover) #content{
    margin-top: 0;
}
.archive__dscr{
    margin-top: 0;
}
.archive__dscr:has(.wp-block-cover){
    margin-bottom: 3em;
}
.archive__dscr .wp-block-cover{
    min-height: 280px;
}
.archive__dscr .wp-block-cover .wp-block-heading{
    translate: 0 1.8rem;
    color: #fff;
    letter-spacing: 0;
}
@media (max-width: 600px) {
    .archive__dscr .wp-block-cover{
        margin-left: -2rem;
        margin-right: -2rem;
    }
    .archive__dscr .wp-block-cover .wp-block-heading{
        display: flex;
        flex-direction: column;
        translate: 0 1.5rem;
        width: calc(100% + 4rem);
    }
}

/* お知らせ一覧 */

.category-news .archive__detail{
    padding-top: 1.5rem;
}
.category-news .archive__meta{
    position: absolute;
    top: 0;
}
.category-news .archive__meta .ys-icon,
.category-news .archive__meta .archive__category,
.category-news .archive__excerpt{
    display: none !important;
}
.category-news .archive__date{
    color: var(--font-color);
    font-size: var(--wp--preset--font-size--small);
}
.category-news .archive__thumbnail{
    padding: 0 1rem 0.5em;
}
.category-news .archive__thumbnail img{
    background-color: rgb(241 241 245 / 75%);
    object-fit: contain;
}
.category-news .archive__title{
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 400;
    letter-spacing: 0;
}
.category-news .archive__text{
    padding-bottom: 2.8rem;
}
.category-news .archive__text::before{
    content: 'Read more';
    color:var(--wp--preset--color--ys-blue);
    position: absolute;
    bottom: 0;
    left: 0;
    height: 48px;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--wp--preset--font-size--small);
}
.category-news .archive__text::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 65px;
    height: 48px;
    width: 48px;
    display: block;
    background-image: url(img/arrow_blue.png);
    background-repeat: no-repeat;
    background-size: 28px auto;
    background-position: center;
    transition: all 0.3s;
}
.category-news .archive__text:hover:after{
    translate: 5px 0;
}

.singular-header__title{
    font-weight: 500;
}

/* side stories */

.category-side-stories .archive__item.is-card{
    padding-bottom: 4rem;
    border-bottom: none;
}
.category-side-stories .archive__text{
    position: absolute;
    background-color: #fff;
    padding: 1rem 1rem 0 0;
    bottom: -4rem;
    width: 80%;
}
.category-side-stories .archive__meta .ys-icon,
.category-side-stories .archive__meta .archive__category{
    display: none !important;
}
.category-side-stories .archive__thumbnail .ratio.is-4-3:before{
    padding-top: 56%;
}
.category-side-stories .archive__date{
    color: var(--font-color);
    font-size: var(--wp--preset--font-size--small);
}
.category-side-stories .archive__item .archive__title{
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 400;
    letter-spacing: 0;
}
.category-side-stories .archive__excerpt{
    margin: 1rem -30% 0 0;
    color: var(--font-color);
    font-size: var(--wp--preset--font-size--small);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (min-width: 1025px){
    .category-side-stories .archive__container.is-card{
        --ystd-archive-gap:3.5rem;
    }
    .category-side-stories .archive__item.is-card{
        --ystd-archive-item-width:calc(50% - var(--ystd-archive-gap)/2);
    }
}
@media (max-width: 599px) {
    .archive__dscr:has(.wp-block-cover){
        margin-bottom: 5em;
    }
}

/*  */

.singular-article.category-side-stories .wp-block-cover{
    min-height: 280px;
}
.singular-article.category-side-stories .wp-block-cover .wp-block-heading{
    background-color: #fff;
    color: var(--font-color);
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    padding: 0.6rem 1rem;
}
.singular-article.category-side-stories .entry-footer{
    display: none;
}
.ssfooter-links{
    margin: 5em 0;
    text-align: center;
}
.ssfooter-links a{
    color: var(--font-color);
}
@media (min-width: 601px) {
    .singular-article.category-side-stories .wp-block-cover{
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}


/* animation */

.entry-content .wow:not(.complete){
	opacity: 0;
}
@keyframes fadeInDown {
	0% {
	  opacity: 0;
	  transform: translateY(-50px); /* 初期位置を変更 */
	}
	100% {
	  opacity: 1;
	  transform: none; /* 最終的に元の位置に戻る */
	}
}
@keyframes fadeInUp {
	0% {
	  opacity: 0;
	  transform: translateY(50px); /* 初期位置を変更 */
	}
	100% {
	  opacity: 1;
	  transform: none; /* 最終的に元の位置に戻る */
	}
}
@keyframes fadeInLeft {
	0% {
	  opacity: 0;
	  transform: translateX(-50px); /* 初期位置を変更 */
	}
	100% {
	  opacity: 1;
	  transform: none; /* 最終的に元の位置に戻る */
	}
}
@keyframes fadeInRight {
	0% {
	  opacity: 0;
	  transform: translateX(50px); /* 初期位置を変更 */
	}
	100% {
	  opacity: 1;
	  transform: none; /* 最終的に元の位置に戻る */
	}
}

.grecaptcha-badge{
	opacity:0;
}