/* ------------------------------
    MEC DESIGN RECRUIT
--------------------------------*/
html {
    background-color: var(--color-gray02);
}

/* ------------------------------
    RECRUIT
--------------------------------*/
.mo-recruit .c-hdg-section--highlighted .c-hdg-section__main {
    display: flex;
    margin: 5px 0 0 0;
}

@media (min-width: 768px) {
    .mo-recruit .c-hdg-section--highlighted .c-hdg-section__main {
        margin: 0 0 0 -12px;
    }
}

.mo-recruit .p-recruit {
    margin: 135px 0 0;
}

@media (min-width: 768px) {
    .mo-recruit .p-recruit {
        margin: 188px 0 0;
    }
}

.mo-recruit .p-recruit .p-recruit__container {
    margin: 69px 0 0;
}

@media (min-width: 768px) {
    .mo-recruit .p-recruit .p-recruit__container {
        margin: 173px 0 0;
    }
}

/* mv */
.mo-recruit .p-recruit .p-recruit__mv {
    display: block;
    width: 100%;
    margin-top: 18px;
}

@media (min-width: 768px) {
    .mo-recruit .p-recruit .p-recruit__mv {
        margin-top: 86px;
    }
}

/* thought */
/* 小見出しセクションのページ個別スタイル */
.top-message .c-subhdg-section {
    margin-top: 65px;
}

.top-message .c-subhdg-section .c-hdg-section__main {
    letter-spacing: -0.008em;
}

@media screen and (min-width: 768px) {
    .top-message .c-subhdg-section {
        margin-top: 173px;
    }

    .top-message .c-subhdg-section .c-hdg-section__main {
        letter-spacing: 0;
    }
}

/* 3カラム共通設定はsub-common.cssへ */

/* トップメッセージ top-message */
.c-top-message-section {
    padding: calc(425 / 375 * 100vw) 20px 0;
    box-sizing: border-box;
    background: transparent url(/wp-content/themes/mecdesign/assets/images/pages/recruit/president_p1.jpg) no-repeat top center;
    background-size: 91%;
    margin-top: 30px;
}

.top-message .c-subhdg-section .c-hdg-section__inner::after {
    display: none;
}

.c-top-message-section .c-top-message-section__text {
    margin-top: 30px;
}

.c-top-message-section__text .c-lead-section {
    margin-top: 0;
    font-size: 20px;
    letter-spacing: .12em;
    line-height: 1.5;
}

.c-top-message-section__text .c-text-section {
    margin-top: 16px;
    font-size: 12px;
    letter-spacing: 0.05em;
    line-height: 2;
}

/* sp */
@media screen and (max-width: 767px) {
    .c-top-message-section__text .c-lead-section {
        width: calc(100% + 10px);
    }
}

@media screen and (min-width: 768px) {
    .c-top-message-section {
        display: flex;
        align-items: center;
        max-width: 100%;
        margin-top: 69px;
        margin: 31px auto 0;
        padding: 0 80px;
        aspect-ratio: 2 / 1;
        background-position: center right;
        background-size: 40%;
    }

    .c-top-message-section .c-top-message-section__text {
        display: flex;
        flex-direction: column;
        max-width: 1280px;
        margin: auto;
    }

    .c-top-message-section__text .c-lead-section {
        width: calc(50% + 10px);
        margin-top: 100px;
        font-size: 40px;
        letter-spacing: 0.06em;
        line-height: initial;
        white-space: nowrap;
    }

    .c-top-message-section__text .c-text-section {
        width: calc(50% + 10px);
        margin-top: 50px;
        font-size: 16px;
        letter-spacing: 0.06em;
    }
}

/* accordion btn */
.c-top-message-section .ac-btn {
    position: relative;
    margin: 25px auto 0;
    color: currentColor;
}

.c-top-message-section .ac-btn:hover {
    color: #ffffff;
}

@media screen and (min-width: 768px) {
    .c-top-message-section .ac-btn {
        margin: 50px 0 0;
    }
}

.c-top-message-section .ac-btn .btn__icon-toggle {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%)
}

.c-top-message-section .ac-btn .btn__icon-toggle {
    width: 15px;
    height: 15px
}

@media screen and (min-width: 768px) {
    .c-top-message-section .ac-btn .btn__icon-toggle {
        width: 15px;
        height: 15px;
    }
}

.c-top-message-section .ac-btn .btn__icon-toggle:before,
.c-top-message-section .ac-btn .btn__icon-toggle:after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    content: "";
    background: var(--color-black);
    transition: background 0.3s, opacity 0.15s;
}

@media (hover: hover) and (pointer: fine) {
    .c-top-message-section .ac-btn:hover .btn__icon-toggle:before,
    .c-top-message-section .ac-btn:hover .btn__icon-toggle::after {
        background: var(--color-white01);
    }
}

.c-top-message-section .ac-btn.is-active .btn__icon-toggle::after {
    opacity: 0;
}

.c-top-message-section .ac-btn .btn__icon-toggle:after {
    transform: rotate(90deg)
}

.top-message .acinner .l-container__inner {
    margin-top: 90px;
}

.top-message .acinner .txt {
    margin: 32px 0 0;
    font-size: 12px;
    letter-spacing: 0.05em;
    line-height: 2;
}

@media screen and (min-width: 768px) {
    .top-message .acinner .l-container__inner {
        margin-top: 140px;
    }

    .top-message .acinner .txt {
        margin: 59px 0 0;
        font-size: 16px;
        letter-spacing: 0.06em;
    }
}

/* accordion */
[data-ac-tgt] {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s;
}

[data-ac-tgt].is-active {
    grid-template-rows: 1fr;
}

[data-ac-tgt] .acinner {
    overflow: hidden;
}

/* INTERVIEW */
.interview {
    padding-top: 56px;
    padding-bottom: 56px;
    background-color: var(--color-white01);
}

/* sp */
@media (max-width: 767px) {
    .interview {
        margin-top: 86px !important;
    }
}

.interview .c-subhdg-section .c-hdg-section__inner::after {
    display: none;
}

@media (min-width: 768px) {
    .interview {
        padding-top: 180px;
        padding-bottom: 180px;
    }
}

/* 2カラム共通設定はsub-common.cssへ */


/* CROSSTALK　*/
.mo-recruit .p-recruit .p-recruit__container.crosstalk {
    margin-top: 55px;
}

.crosstalk .c-subhdg-section .c-hdg-section__inner::after {
    display: none;
}

.crosstalk .swiper {
    margin-top: 32px;
    padding: 0 20px 74px;
}

.slide-image-container {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 136 / 99;
}

.slide-image-container img {
    transform: scale(1.1);
    transition: transform .6s var(--ease-out-sine), filter .6s var(--ease-out-sine);
}

.slide-caption {
    margin-top: 17px;
    font-size: 20px;
    font-family: var(--font-serif);
    letter-spacing: 0.13em;
}

@media (min-width: 768px) {
    .crosstalk .swiper {
        margin-top: 40px;
        padding-bottom: 195px;
        max-width: 1280px;
    }

    .slide-image-container {
        aspect-ratio: 3 / 2;
    }

    .slide-image-container img {
        transform: scale(1);
    }

    .slide-caption {
        font-size: 24px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .crosstalk .swiper-slide:hover .slide-image-container img {
        transform: scale(1.05);
        filter: brightness(110%);
    }
}

/* CROSSTALK Swiper Pagination */
.crosstalk .swiper-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    position: static;
    margin-top: 45px;
}

.crosstalk .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background-color: #ccc;
    opacity: 1;
    transition: background-color 0.3s ease;
}

.crosstalk .swiper-pagination-bullet-active {
    width: 14px;
    height: 14px;
    background-color: var(--color-black03);
}

@media (min-width: 768px) {
    .crosstalk .swiper-pagination {
        gap: 18px;
        margin-top: 63px;
    }

    .crosstalk .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

    .crosstalk .swiper-pagination-bullet-active {
        width: 15px;
        height: 15px;
    }
}

/* CROSSTALK Swiper Navigation Buttons */
.crosstalk .swiper-button-next,
.crosstalk .swiper-button-prev {
    display: flex;
    justify-content: center;
    align-items: center;
    top: auto;
    width: 42px;
    height: 42px;
    margin-top: -7px;
    border-radius: 50%;
    background-color: var(--color-black03);
    transform: translateY(-50%);
    transition: background-color 0.3s ease;
}

.crosstalk .swiper-button-next::after,
.crosstalk .swiper-button-prev::after {
    position: static;
    font-size: 14px;
    color: #fff;
    transition: color 0.3s ease;
}

.crosstalk .swiper-button-next::after {
    transform: translateX(1px);
}

.crosstalk .swiper-button-prev::after {
    transform: translateX(-1px);
}

.crosstalk .swiper-button-prev {
    left: calc(50% - 15px * 9 - 4px);
    /* ページネーションの左側に配置 (18pxはドット間のgap, 10pxはドットの幅, 3はドット数/2程度) */
}

.crosstalk .swiper-button-next {
    right: calc(50% - 15px * 9 - 4px);
    /* ページネーションの右側に配置 */
}

@media (min-width: 768px) {

    .crosstalk .swiper-button-next,
    .crosstalk .swiper-button-prev {
        width: 45px;
        height: 45px;
        margin-top: -8px;
    }

    .crosstalk .swiper-button-next::after,
    .crosstalk .swiper-button-prev::after {
        font-size: 15px;
    }

    .crosstalk .swiper-button-prev {
        left: calc(50% - 18px * 9 - 10px);
    }

    .crosstalk .swiper-button-next {
        right: calc(50% - 18px * 9 - 10px);
    }
}

/* hover字に色を反転 */
@media (hover: hover) and (pointer: fine) {

    .crosstalk .swiper-button-next:hover,
    .crosstalk .swiper-button-prev:hover {
        background-color: var(--color-white01);
    }

    .crosstalk .swiper-button-next:hover::after,
    .crosstalk .swiper-button-prev:hover::after {
        color: var(--color-black03);
    }
}


/* IN NUMBERS */
.mo-recruit .p-recruit .p-recruit__container.in-numbers {
    margin-top: 0;
    padding-top: 70px;
    padding-bottom: 75px;
    background-color: var(--color-gray03);
}

.in-numbers .c-subhdg-section .c-hdg-section__inner::after {
    display: none;
}

.in-numbers .c-lead-section {
    margin-top: 24px;
    font-size: 19px;
    text-align: left;
    line-height: 1.5;
    letter-spacing: 0.25em;
}

.in-numbers .c-lead-section span {
    letter-spacing: 0.1em;
}

.in-numbers .c-graph-section {
    margin-top: 34px;
}

@media (min-width: 768px) {
    .mo-recruit .p-recruit .p-recruit__container.in-numbers {
        padding-top: 193px;
        padding-bottom: 193px;
    }

    .in-numbers .c-lead-section {
        margin-top: 42px;
        font-size: 30px;
        text-align: center;
        letter-spacing: 0.36em;
    }

    .in-numbers .c-graph-section {
        margin-top: 50px;
    }
}

/* working / training / internal */
.itembox.working {
    margin: 70px 0 0;
}

.itembox.training,
.itembox.internal {
    margin: 60px 0 0;
}

.itembox.internal {
    margin-bottom: 75px;
}

@media (min-width: 768px) {
    .itembox.working {
        margin: 180px 0 0;
    }

    .itembox.training,
    .itembox.internal {
        margin: 170px 0 0;
    }

    .itembox.internal {
        margin-bottom: 180px;
    }
}

.itembox .l-container__inner {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .itembox .l-container__inner {
        grid-template-columns: 520px 1fr;
    }
}

@media (min-width: 768px) {
    .itembox .c-subhdg-section {
        justify-content: flex-start;
    }

    .itembox .c-subhdg-section .c-hdg-section__inner {
        align-items: flex-start;
    }
}

.itembox .c-subhdg-section .c-hdg-section__inner::after {
    display: none;
}

.itembox .c-subhdg-section .c-hdg-section__main {
    flex-direction: column;
    line-height: 1;
    margin: 4px 0 0;
}

@media (min-width: 768px) {
    .itembox .c-subhdg-section .c-hdg-section__main {
        margin: 19px 0 0;
    }
}

.itembox .c-subhdg-section .c-hdg-section__main>span {
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .itembox .c-subhdg-section .c-hdg-section__main>span {
        display: flex;
        justify-content: flex-start;
    }
}

.itembox .c-subhdg-section .c-hdg-section__sub {
    letter-spacing: 0;
}

.itembox .itemlist {
    display: grid;
    grid-template-columns: 1fr;
    margin: 35px 0 0;
}

@media (min-width: 768px) {
    .itembox .itemlist {
        margin: 6px 0 0;
    }
}

.itembox .item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 20px;
    padding: 22px 10px 19px 15px;
    border-block: 1px solid var(--color-gray05);
}

@media (min-width: 768px) {
    .itembox .item {
        gap: 0 10px;
        padding: 20px 43px 18px 52px;
    }
}

.itembox .item .box {
    display: grid;
    grid-template-columns: repeat(2, auto);
    align-items: center;
    gap: 0 15px;
    width: fit-content;
}

@media (min-width: 768px) {
    .itembox .item .box {
        gap: 0 50px;
    }
}

.itembox .item .img {
    width: 45.7px;
}

@media (min-width: 768px) {
    .itembox .item .img {
        width: 70px;
    }
}

.itembox .item img {
    width: 100%;
    object-fit: contain;
}

.itembox .item .txt {
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: 0;
}

@media (min-width: 768px) {
    .itembox .item .txt {
        font-size: 20px;
        letter-spacing: .12em;
    }

    .itembox.working .item .txt {
        letter-spacing: 0;
    }
}

.itembox .c-btn-more--theme-black {
    margin-inline: auto 0;
}

.itembox .c-btn-more__txt {
    letter-spacing: 0;
}

@media (min-width: 768px) {
    .itembox .c-btn-more__txt {
        letter-spacing: .06em;
    }
}

/* ENTRY */
/* 小見出しセクションのページ個別スタイル */
.mo-recruit .p-recruit .p-recruit__container.entry {
    margin: 0;
}

.p-recruit__loop-typography {
    overflow: hidden;
    transform: translateY(-12px);
}

@media (min-width: 768px) {
    .p-recruit__loop-typography {
        transform: translateY(-51px);
    }
}

@keyframes typography-loop {
    0% {
        transform: translateZ(0)
    }

    to {
        transform: translate3d(-50%, 0, 0)
    }
}

.p-recruit .recruit-typography {
    display: inline-flex;
    position: relative;
    z-index: -1;
    font-family: var(--font-en);
    font-size: 130px;
    font-weight: 500;
    line-height: 1;
    color: #fff9;
    letter-spacing: 0;
    white-space: nowrap;
    animation: typography-loop 80s linear infinite
}

@media (min-width: 768px) {
    .p-recruit .recruit-typography {
        font-size: 260px;
        animation-duration: 140s
    }
}

.l-container__inner {
    position: relative;
    z-index: 10;
}

.entry .c-subhdg-section {
    margin-top: -99px;
}

.entry .c-subhdg-section .c-hdg-section__inner::after {
    display: none;
}

.entry .c-subhdg-section .c-hdg-section__sub {
    font-size: 12px;
}

.entry .c-subhdg-section .c-hdg-section__main {
    letter-spacing: -0.008em;
}

.entry .c-lead-section {
    margin-top: 14px;
    padding: 0 18px;
    font-size: 12px;
    font-family: var(--font-gothic);
    text-align: left;
    line-height: 2;
    letter-spacing: 0.06em;
}

@media (min-width: 768px) {
    .entry .c-subhdg-section {
        margin-top: -236px;
    }

    .entry .c-subhdg-section .c-hdg-section__sub {
        font-size: 16px;
    }

    .entry .c-subhdg-section .c-hdg-section__main {
        letter-spacing: 0;
    }

    .entry .c-lead-section {
        margin-top: 18px;
        font-size: 16px;
        text-align: center;
    }
}

.entry .l-3column {
    gap: 0;
    margin-top: 26px;
}

.entry .l-3column .card {
    width: 100%;
}

.entry .l-3column .card:nth-of-type(1)>div {
    position: relative;
}

.entry .l-3column .card:nth-of-type(1) .card__ttl {
    position: absolute;
    top: 0;
    transform: translateY(-19.1vw);
}

.entry .l-3column .card:nth-of-type(1) .btns {
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    margin: auto;
    transform: translateY(27.5vw);
}

.entry .l-3column .card a.c-btn-contact--size-large {
    width: 240px;
    height: 55px;
    font-size: 12px;
    font-family: initial;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.entry .l-3column .card:nth-of-type(1) .btns .c-btn-contact__txt {
	transition: all 0.3s ease;
}

.entry .l-3column .card:nth-of-type(1) .btns .c-btn-contact__icon {
    width: 12px;
    height: 12px;
}

.entry .l-3column .card:nth-of-type(1) .btns .c-btn-contact__icon:before {
    mask: url(/wp-content/themes/mecdesign/assets/images/pages/icons/icon_link.svg) no-repeat center / contain;
}


@media (min-width: 768px) {
    .entry .l-3column .card {
        width: calc(100% / 3);
        aspect-ratio: 107 / 60;
    }

    .entry .l-3column .card:nth-of-type(1)>a {
        position: relative;
        height: inherit;
        pointer-events: none;
    }

    .entry .l-3column .card:nth-of-type(1) .card__ttl {
        transform: unset;
    }

    .entry .l-3column .card:nth-of-type(1) .btns {
        justify-content: center;
        flex-direction: row;
        gap: 15px;
        top: unset;
        bottom: 20px;
        transform: unset;
    }

    .entry .l-3column .card a.c-btn-contact--size-large {
        width: 200px;
        height: 50px;
        font-size: 14px;
        font-family: initial;
    }

    .entry .l-3column .card:nth-of-type(1) .btns .c-btn-contact__icon {
        width: 19px;
        height: 19px;
    }
}

/* modal */
.modalBox {
    display: none;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    min-height: 100vh;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: var(--color-white01-08);
    padding: 100px 20px;
    align-items: center;
}

@media (min-width: 768px) {
    .modalBox {
        padding: 150px 50px;
    }
}

.modalContent {
    background-color: var(--color-white01);
    animation-name: modalopen;
    animation-duration: 1s;
    max-width: 1000px;
    width: 100%;
    min-height: 60vh;
    margin: auto;
    position: relative;
    padding: 70px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .modalContent {
        padding: 73px 105px;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
}

@media (min-width: 768px) {
    .modal-close {
        position: absolute;
        top: 30px;
        right: 30px;
    }
}

@keyframes modalopen {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modalBox .img img {
    height: 131px;
    width: auto;
    margin-inline: auto;
    filter: contrast(120%);
}

@media (min-width: 768px) {
    .modalBox .img img {
        height: 70px;
    }
}

.modalBox .ttl {
    margin: 20px 0 0;
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.5;
    letter-spacing: .12em;
    text-align: center;
}

@media (min-width: 768px) {
    .modalBox .ttl {
        margin: 40px 0 0;
        font-size: 24px;
    }
}

.modalBox .txt {
    margin: 10px 0 0;
    font-family: var(--font-serif);
    font-size: 12px;
    letter-spacing: .06em;
    line-height: 1.5;
    /*text-align: center;*/
}

@media (min-width: 768px) {
    .modalBox .txt {
        margin: 10px 0 0;
        font-size: 14px;
    }
}

.modalBox .list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 20px 0 0;
}

.modalBox .list.column1 {
    grid-template-columns: 1fr;
}

.modalBox .list.column2 {
    grid-template-columns: repeat(2, 1fr);
}

.modalBox .list.column3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 768px) {
    .modalBox .list {
        gap: 5px;
        margin: 40px 0 0;
    }
}