﻿/*!
Theme Name: WD child
Description: WD（ワンダフルドア）の子テーマです。
Version: 1.0.0
Template: wd
*/

/* @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Zen+Kaku+Gothic+New:wght@500&display=swap');
@font-face {
    font-family: 'jaapokki';
    src: url("./_assets/fonts/Jaapokkisubtract-Regular.woff2") format("woff2"),
         url("./_assets/fonts/Jaapokkisubtract-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}


:root {
    --color-white: #fff;
    --color-lightgray: #f0f0f0;
    --color-gray: #666;
    --color-black: #333;
    --color-blue: #007aff;
    --color-yellow: #ffdc00;
    --color-red: #e8383d;
    --size-xs: 16px;
    --size-sm: 32px;
    --size-md: 64px;
    --size-lg: 128px;
    --size-xl: 256px;
}

/*====================================================================
overwrite css
====================================================================*/
body {
    font-size: 1.5rem;
}
table tbody {
    -webkit-text-size-adjust: 100%;
}
ol, ul {
    padding-left: 1.2em;
}
img {
    vertical-align: bottom;
}
p {
    font-size: 1.6rem;
}


/* button */
.wp-block-buttons .wp-block-button.is-style-fill .wp-block-button__link,
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link {
    border: 1px solid var(--color-black);
    border-radius: 4px;
    box-shadow: 0px 8px 16px 0px rgba(51,51,51,0.2);
    padding: 16px 64px;
}
.wp-block-buttons .wp-block-button.is-style-fill .wp-block-button__link:hover,
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: url(../wd-child/_assets/images/bg_btn-hover.jpg) no-repeat top left/cover!important;
    color: #fff!important;
    transition: all 0.3s;
}
.wp-block-buttons .wp-block-button.is-style-fill.en .wp-block-button__link,
.wp-block-buttons .wp-block-button.is-style-outline.en .wp-block-button__link {
    font-size: 1.6rem;
    padding-top: 20px;
}
.is-style-btn-type01.is-anchor .wp-block-button__link {
    padding: 8px 40px 8px 16px;
}
.is-style-btn-type01.is-anchor .wp-block-button__link::after {
    transform: rotate(135deg);
    transition: .3s all;
}
.is-style-btn-type01.is-anchor .wp-block-button__link:hover {
    border: none;
    background: #f8f7f6!important;
}
.is-style-btn-type01.is-anchor .wp-block-button__link:hover::after {
    right: 20px;
    top: calc(50% + 4px);
}

.wp-block-buttons.is-2col .wp-block-button {
    flex: 1;
}
.wp-block-buttons.is-2col .wp-block-button .wp-block-button__link {
    padding: 16px 8px;
}

/* group */
.wp-block-separator.aligncenter.has-alpha-channel-opacity.is-style-dots-type05 {
    margin-inline: auto!important;
}
.wp-block-group.alignfull {
    padding: 64px 16px;
}

.is-style-dots-type05 {
    border-width: 8px;
}

@media screen and (min-width: 576px) {
    .wp-block-group.alignfull {
        padding: 64px 32px;
    }
}
/* @media screen and (min-width: 992px) {
    .is-style-dots-type05 {
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 8px solid #333;
    }
} */

@media screen and (min-width: 1181px) {
    .wp-block-group.alignfull {
        padding-block: 104px;
    }
}



/* header */
header .gnav-list ul .menu-item .sub-menu {
    gap: 0!important;
    top: 16px;
    padding: 16px;
}
header .gnav-list ul .menu-item .sub-menu .menu-item {
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.5;
    width: 100%;
}
.header-04 .gnav-list ul .menu-item {
    position: relative;
}
@media screen and (max-width: 1180px) {
    header .gnav-list ul .menu-item .sub-menu {
        display: flex!important;
    }
}

/* table */

.wp-block-table table td, .wp-block-table table th {
    font-size: 1.5rem;
}
.wp-block-table table td {
    padding: 32px 16px;
}
.wp-block-table table tr:first-child td {
    padding-top: 0;
}
.is-style-table-type01 table tr {
    border-bottom: 1px solid #9eb591;
}
.is-style-table-type02 table tr th,
.is-style-table-type02 table tr td {
    border: none;
    padding: 0;
}
.is-style-table-type02 table tr td:nth-child(1) {
    font-weight: 500;
    text-align-last: justify;
}
.is-style-table-type02 table tr td:not(:nth-child(1)) {
    padding-left: 24px;
}
.wp-block-table table td, .wp-block-table table th {
    vertical-align: top;
}
@media screen and (max-width: 991px) {
    .tableColumn {
        background: transparent!important;
    }
    .tableColumn table tr td:first-child {
        white-space: normal !important;
        padding-bottom: 16px;
        font-weight: 700;
    }
    .tableColumn table tr td:not(:nth-child(1)) {
        padding-top: 0;
    }
}

/* layout */
.layout-type01 .layout-type02 {
    padding: 0;
}

.is-style-group-type02,
.news-type02 li,
.archive-list {
    border-radius: 4px;
    /* border-color: #cee6c1; */
    border: 1px solid #333!important;
    overflow: hidden;
}

.is-style-group-type05 {
    border-bottom: 1px solid #666!;
    padding: 32px;
    border-bottom-style: dashed;
}

.list-type-history th {
    border-right: 4px solid #9eb591;
    padding: 0 32px 0 0;
    width: 100px;
}
.list-type-history td {
    position: relative;
    padding: 16px 0 16px 32px;
}
.list-type-history td:before {
    content: "";
    background: #44593a;
    border-radius: 50%;
    height: 10px;
    left: -7px;
    margin-top: -5px;
    position: absolute;
    width: 10px;
    top: 50%;
}

.slider04-thumbs .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.slider04-thumbs .swiper-slide {
    width: 100%;
}
/*====================================================================
  common style
====================================================================*/
.flex-column {
  flex-direction: column !important;
  align-items: flex-start !important;
}
.flex-column-center {
  align-items: center!important;
}
.flex-bottom {
  align-items: flex-end !important;
}
.flex-between {
  justify-content: space-between !important;
}
.flex-between-bottom {
  justify-content: space-between;
  align-items: flex-end;
}
.flex-grow {
  flex-grow: 1;
}
.flex-nowrap {
  flex-wrap: nowrap;
}

.lh-no {
    line-height: 1;
}
.lh-sm {
    line-height: 1.35;
}
.lh-lg {
    line-height: 2.4;
}

.en {
    font-family: jaapokki, sans-serif; 
    line-height: 1;
    margin-bottom: -0.2em !important;
}

.nowrap {
    white-space: nowrap;
}

.grid-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-row-2 {
    grid-row: span 2;
}

@media screen and (max-width: 575px) {
    .grid-columns-2 {
        grid-template-columns: 1fr!important;
    }
}

/* title */
.page-title {
    align-items: flex-end;
}
@media screen and (max-width: 991px) {
  .page-title {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

.ttl-01 {
    border-bottom: 1px solid #333;
}
.ttl-01 h3 {
    display: inline-block;
    padding: 0px 16px;
}
.ttl-01 h3.en {
    transform: none;
    padding: 10px 16px 2px 16px;
}


 /* parts style */
.card-label {
    position: absolute;
    border-radius: 0 4px 0 0;;
    bottom: 0;
    left: 0;
    padding: 4px 16px!important;
}

.box-01 {
    /* border-color: #333; */
    border-width: 2px!important;
    overflow: visible;
}
.box-01__ttl {
    border-radius: 4px;
    padding: 8px 24px!important;
    transform: translateY(-45px);
}


.bg-img {
    position: absolute;
    bottom: calc(100% - 30px);
    right: 24px;
}
@media screen and (max-width: 1400px) {
    .bg-img {
        display: none!important;
    }
}

.bnr-img a:hover img {
    transform: none!important;
    opacity: 0.8;
}


.insta-bnr a {
    /* border: 2px solid #333; */
    border-radius: 24px;
    box-shadow: 0px 8px 16px 0px rgba(51, 51, 51, 0.2);
    display: block;
    max-width: 200px;
    width: 100%;
}

@media screen and (min-width: 992px) {
    .insta-bnr--top {
        position: absolute;
        left: 24px;
        bottom: -40px;
        z-index: 5;
        margin-top: 40px;
    }
}
@media screen and (max-width: 991px) {
    .insta-bnr--top {
        margin-top: 40px;
    }
    .insta-bnr a {
        margin-inline: auto;
    }
}


/* top page */
.top-mv .slider01 .swiper-slide {
    aspect-ratio: 1000 / 565;
}
.top-mv .slider01 .swiper-slide img {
    object-fit: cover;
    object-position: bottom center;
    height: 100%;
    width: 100%;
}

.insta-slider .swiper-slide {
    aspect-ratio: 1;
    width: 320px;
    height: auto;
}
.insta-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* company page */
@media screen and (max-width: 991px) {
    .phil-img {
        max-width: 160px;
        margin: 0 0 0 auto;
    }
}

/* recrit page */
.recruit-mv .slider01 .swiper-slide {
    /* aspect-ratio: 3 / 2; */
    aspect-ratio: 912 / 420;
}
.recruit-mv .slider01 .swiper-slide img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.recruit-mv-text {
    text-shadow: 3px 3px 6px rgba(255,255,255,0.8);
}
@media screen and (max-width: 991px) {
    .recruit-mv-text.has-exlarge-font-size {
        font-size: 2rem!important;
    }
}

.recruit-slider .swiper-slide {
    aspect-ratio: 3 / 4;
    width: 400px;
    height: auto;
}
.recruit-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media screen and (max-width: 991px) {
    .recruit-slider .swiper-slide {
        width: 160px;
    }
}

.schedule-slider .slider04 .swiper-slide {
    aspect-ratio: 1;
}
.schedule-slider .slider04 .swiper-slide img {
    object-fit: contain!important;
    height: 100%!important;
    width: 100%!important;
}



/* description list */
.desc-list {
    display: grid;
    grid-template-columns: 72px 1fr;
    font-size: 1.5rem;
    gap: 16px 24px;
}
.desc-list dt {
    font-weight: 500;
    text-align-last: justify;
}

/* footer contact */
.footer-contact .wp-block-group__inner-container {
    max-width: 1180px;
}
.footer-contact .wp-block-group.alignfull {
    padding-bottom: 0;
}

/* fixed bnr */
.fixed-btn {
    position: fixed;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 16px;
    z-index: 999;
}
.fixed-btn__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.fixed-btn__label {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}
.fixed-btn__box {
    position: relative;
    border: 1px solid #7CC4F3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border-radius: 50%;
    padding-top: 12px;
    aspect-ratio: 1;
    width: 144px;
    z-index: 1;
}
.fixed-btn__box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(124, 196, 243, 0.65);
    background: rgba(124, 196, 243, 1);
    /* backdrop-filter: blur(5px); */
    border-radius: 50%;
    aspect-ratio: 1;
    height: calc(100% - 8px);
    width: calc(100% - 8px);
    z-index: -1;
    transition: all 0.3s;
}
.fixed-btn__link.is-career .fixed-btn__box::after {
    background: #D6613A;
}
.fixed-btn__link.is-career .fixed-btn__box {
    border-color: #D6613A;
}
.fixed-btn__link.is-highschool .fixed-btn__box::after {
    background: #164A87;
}
.fixed-btn__link.is-highschool .fixed-btn__box {
    border-color: #164A87;
}
.fixed-btn__txt {
    color: #333;
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    margin: 0!important;
    gap: 4px;
    line-height: 1.4;
}
.fixed-btn__link:hover .fixed-btn__box::after {
    height: 100%;
    width: 100%;
}

@media screen and (max-width: 991px) {
    .fixed-btn {
        gap: 8px;
        flex-direction: row;
        bottom: 8px;
        right: 8px;
        width: calc(100% - 16px);
    }
    .fixed-btn__label {
        display: none;
    }
    .fixed-btn__link {
        width: calc(50% - 4px);
    }
    .fixed-btn__box {
        flex-direction: row;
        gap: 8px;
        border-radius: 4px;
        aspect-ratio: auto;
        padding: 8px;
        width: 100%;
    }
    .fixed-btn__box::after {
        border-radius: 4px;
        aspect-ratio: auto;
        height: calc(100% - 4px);
        width: calc(100% - 4px);
    }
    .fixed-btn__box svg {
        aspect-ratio: 1;
        width: 24px;
    }
    .fixed-btn__txt {
        font-size: 1.2rem;
    }
}


/* .fixed-btn02 {
    position: fixed;
    right: 8px;
    bottom: 16px;
    display: flex;
    gap: 8px;
    z-index: 999;
}
.fixed-btn02__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 4px;
    padding: 8px 16px;
    min-width: 215px;
}
.fixed-btn02__link.is-career {
    background: #A1D480;
    background: #eef5e9;
    border-top: 1px solid #4f882c;
    border-left: 1px solid #4f882c;
    border-bottom: 1px solid #4f882c;
    border: 1px solid #4f882c;
}
.fixed-btn02__link.is-highschool {
    background: #7CC4F3;
    background: #ecf2f5;
    border-top: 1px solid #2c678e;
    border-left: 1px solid #2c678e;
    border-bottom: 1px solid #2c678e;
    border: 1px solid #2c678e;
}
.fixed-btn02__link::after {
    content: '';
    display: block;
    border-right: solid 2px #333;
    border-top: solid 2px #333;
    height: 6px;
    transform: rotate(45deg);
    min-width: 6px;
    width: 6px;
}
.fixed-btn02__txt {
    color: #333;
    font-size: 1.4rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}
.fixed-btn02__txt span {
    display: block;
    font-size: 1.6rem;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.05em;
    writing-mode: vertical-rl;
}
.fixed-btn02__link.is-highschool .fixed-btn02__txt span {
    color: #2c678e;
}
.fixed-btn02__link.is-career .fixed-btn02__txt span {
    color: #4f882c;
}

@media screen and (max-width: 991px) {
    .fixed-btn02 {
        bottom: 8px;
        width: calc(100% - 16px);
    }
    .fixed-btn02__link {
        min-width: calc(50% - 4px);
        width: calc(50% - 4px);
    }
    .fixed-btn02__txt {
        font-size: 1.2rem;
    }
} */