.entry-now-btn {
    position: fixed;
    bottom: 20px;
    right: 16px;
    transition: opacity 0.3s ease;
    z-index: 9998;
}

.entry-now-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.grad-btn.entry-now-btn a {
    width: min(16.93vw, 180px);
    height: min(16.93vw, 180px);
    padding: 0;
    overflow: hidden;
}

.grad-btn.entry-now-btn a img {
    object-fit: contain;
}

.recruit-top-inner {
    padding: 70px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.recruit-top-img {
    width: 27%;
}

.recruit-catch {
    background: url(../images/recruit/top-catch-bg.png) no-repeat;
    background-size: contain;
    background-position: center;
    line-height: 2;
    font-size: min(1.82vw, 18px);
    max-width: 432px;
    width: 44%;
}

.recruit-catch p:not(:first-of-type) {
    margin-top: min(1.82vw, 36px);
}

.business-content-wrap {
    display: flex;
    justify-content: space-between;
}

.business-content {
    width: 31%;
}

.business-img {
    border-radius: 10px;
    overflow: hidden;
}

.business-content h3 {
    text-align: center;
    font-size: min(2.08vw, 17px);
    margin: 1em 0;
}

.business-content p {
    line-height: 1.5em;
}

.guideline-section dl {
    display: flex;
    padding: 1.5em 1em;
    border-bottom: 1px dotted #8E8E8E;
}

.guideline-section dl dt {
    font-weight: bold;
    width: 25%;
    flex-shrink: 0;
}

.guideline-section dl dd {
    line-height: 1.5;
}

.guideline-flow-wrap {
    margin-top: 70px;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.guideline-flow-arrow {
    align-content: center;
}

.guideline-flow-arrow span {
    content: "";
    display: inline-block;
    vertical-align: middle;
    color: #333;
    line-height: 1;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent;
    border-width: 24px 20px;
    border-left-color: currentColor;
    border-right: 0;
}

.guideline-flow {
    width: 30%;
    background: #ECF5FF;
    padding: 40px 30px;
    border-radius: 20px;
}

.guideline-flow span.flow-ttl {
    display: block;
    text-align: center;
    font-size: min(2.34vw, 20px);
    font-weight: bold;
    margin-bottom: 1em;
}

.schedule-content {
    background: #ffffff;
    padding: min(6.51vw, 80px) min(5.21vw, 130px);
    border-radius: 26px;
    filter: drop-shadow(0 3px 6px #0000001a);
}

.schedule-section h2 {
    font-size: min(3.39vw, 32px);
    color: #E08814;
    position: relative;
    width: fit-content;
    padding: 0 0.5em;
    margin: 0 auto min(6.51vw, 56px);
}

.schedule-section h2::before,
.schedule-section h2::after {
    content: "";
    width: 20px;
    height: 100%;
    background: url(../images/recruit/schedule-ttl-icon.svg) no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
    top: 50%;
}

.schedule-section h2::before {
    left: 0;
    translate: -100% -50%;
}

.schedule-section h2::after {
    right: 0;
    translate: 100% -50%;
}

ul.schedule-wrap {
    position: relative;
}

ul.schedule-wrap::after {
    content: "";
    width: 2px;
    height: calc(100% - 14px);
    background-image: radial-gradient(circle, #F99D1C 1px, transparent 1px);
    background-size: 2px 6px;
    background-repeat: repeat-y;
    background-position: top center;
    position: absolute;
    top: 6px;
    left: 235px;
}

.schedule-wrap li {
    display: flex;
}

.schedule-wrap li span.schedule-time {
    color: #E08814;
    font-size: min(3.13vw, 26px);
    font-weight: bold;
    width: 234px;
    position: relative;
    flex-shrink: 0;
    text-align: right;
    padding-right: 2em;
}

.schedule-wrap li span.schedule-time::after {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    background: #E08814;
    border-radius: 50%;
    position: absolute;
    top: 0.5em;
    right: 0;
    translate: calc(50% + 2px) -50%;
    z-index: 1;
}

.schedule-wrap li .schedule-info {
    padding-left: 50px;
    padding-bottom: 90px;
}

.schedule-wrap li:last-of-type .schedule-info {
    border-left: none;
    padding-bottom: 0;
}

.schedule-wrap li span.schedule-title {
    display: block;
    font-size: min(2.34vw, 22px);
    margin-bottom: 0.8em;
    font-weight: 500;
}

.benefits-section {
    text-align: center;
}

.benefits-content {
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 20px;
    margin-top: 88px;
}

.benefits {
    background: #D2933A;
    padding: 1em;
    width: 32%;
    border-radius: 9999px;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    align-content: center;
}

.benefits-bg-logo {
    position: absolute;
    top: 50%;
    right: 0;
    translate: 0 -50%;
    height: 90%;
    width: 100%;
    z-index: 0;
}

.benefits-bg-logo img {
    object-fit: contain;
    object-position: right;
}

.benefits p {
    position: relative;
    font-weight: 500;
}

.interview-content-wrap {
    display: flex;
    justify-content: center;
    gap: max(calc((100% - 1020px) / 2), 2%);
    row-gap: min(2.6vw, 100px);
    flex-wrap: wrap;
}

.interview-content {
    background: #ffffff;
    border-radius: 6px;
    max-width: 340px;
    width: 32%;
    overflow: hidden;
    cursor: pointer;
}

.interview-content .interview-top-img {
    overflow: hidden;
    position: relative;
}

.interview-content .interview-top-img::after {
    content: "";
    width: 100%;
    height: 50%;
    position: absolute;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(transparent, #5b5b5bbe);
}

.interview-content .interview-top-img img {
    transition: all .3s;
}

.interview-content .interview-info {
    padding: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.interview-content .interview-info p {
    color: #A5A5A5;
}

.interview-content .interview-info p span {
    display: block;
    color: #606060;
    font-size: min(2.6vw, 24px);
}

.interview-content .interview-info p span span {
    font-size: min(2.08vw, 18px);
    display: inline;
}

.interview-content .arrow {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 2px;
    margin: 4.3px 0;
    border-radius: 9999px;
    background-color: #9a9a9a;
    transition: all .3s;
}

.interview-content .arrow::before,
.interview-content .arrow::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    right: 0;
    width: 8px;
    height: 2px;
    border-radius: 9999px;
    background-color: #9a9a9a;
    transform-origin: calc(100% - 1px) 50%;
}

.interview-content .arrow::before {
    transform: rotate(45deg);
}

.interview-content .arrow::after {
    transform: rotate(-45deg);
}

@media (any-hover: hover) {
    .interview-content:hover .interview-top-img img {
        scale: 1.1;
    }

    .interview-content:hover .arrow {
        animation: interviewArrow 0.5s forwards;
    }
}

@keyframes interviewArrow {
    0% {
        opacity: 0;
        transform: translate(-100%, 0);
    }

    100% {
        opacity: 1;
        transform: translate(0);
    }
}



/* ポップアップ表示中は背面をスクロールさせない。
   要素の位置は動かさないためスクロール位置はそのまま保たれる
   （iOS Safari 向けの補強は recruit.js の touchmove 抑制で行う） */
html.is-popup-open,
body.is-popup-open {
    overflow: hidden;
    overscroll-behavior: none;
}

/* スクロールバーが消える分だけ内側に余白を足し、横ずれを防ぐ */
body.is-popup-open {
    box-sizing: border-box;
    padding-right: var(--scrollbar-width, 0px);
}

.interview-popup-overlay {
    position: fixed;
    top: var(--header-height, 0px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    width: 100vw;
    height: calc(100vh - var(--header-height, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* visibility は遅延なしで切り替え、閉じる時のみフェード後に隠す */
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    z-index: 9999;
}

/* 背景オーバーレイ（本体は position: fixed + z-index で独立した重ね合わせ文脈を作るため、
   mix-blend-mode: multiply は効かない。同等の見た目を半透明で再現する） */
.interview-popup-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(240, 237, 232, 0.92);
}

.interview-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.interview-popup-overlay .interview-popup {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1120px;
    height: 80%;
    max-height: 720px;
    background: #ffffff;
    border-radius: 16px;
    padding: 86px 72px;
    display: none;
}

.interview-popup-overlay .interview-popup.is-open {
    display: block;
}

/* ✕ボタンを除いた中身（popup-left / popup-right）をまとめる。
SP時はこの要素だけをスクロール可能にし、✕ボタンは常に固定表示のままにする */
.interview-popup-overlay .interview-popup-body {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.interview-popup-overlay .interview-popup .interview-popup-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    appearance: none;
}

.interview-popup-overlay .interview-popup .interview-popup-close::before,
.interview-popup-overlay .interview-popup .interview-popup-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    border-radius: 9999px;
    background-color: #9a9a9a;
}

.interview-popup-overlay .interview-popup .interview-popup-close::before {
    translate: -50% -50%;
    rotate: 45deg;
}

.interview-popup-overlay .interview-popup .interview-popup-close::after {
    translate: -50% -50%;
    rotate: -45deg;
}

.interview-popup-overlay .interview-popup .popup-left {
    width: 36%;
}

.interview-popup-overlay .interview-popup .popup-left .popup-img {
    border-radius: 16px;
    overflow: hidden;
}

.interview-popup-overlay .interview-popup .popup-left p {
    font-size: 20px;
    font-weight: bold;
    color: #393939;
    margin-top: 1em;
}

.interview-popup-overlay .interview-popup .popup-left p span {
    font-size: 16px;
}

.interview-popup-overlay .interview-popup .popup-left p span.join {
    color: #A5A5A5;
    font-size: 14px;
    display: block;
}

.interview-popup-overlay .interview-popup .popup-right {
    width: 56%;
}

.interview-popup-overlay .interview-popup .popup-right span.interview-catch {
    font-size: 28px;
    font-weight: bold;
    color: #E08814;
    position: relative;
    display: block;
    width: fit-content;
    margin-bottom: 20px;
    line-height: 1.4;
}

.interview-popup-overlay .interview-popup .popup-right ul.interview {
    color: #454545;
    overflow-y: auto;
    height: calc(100% - 50px);
    /* 端までスクロールしても背面に伝播させない */
    overscroll-behavior: contain;
    padding-top: 60px;
    padding-right: 80px;
}

.interview-popup-overlay .interview-popup .popup-right ul.interview::-webkit-scrollbar {
    width: 4px;
}

.interview-popup-overlay .interview-popup .popup-right ul.interview::-webkit-scrollbar-thumb {
    background: #BBBBBB;
    border-radius: 20px;
}

.interview-popup-overlay .interview-popup .popup-right ul.interview::-webkit-scrollbar-track {
    background: #bbbbbb77;
    border-radius: 20px;
}

.interview-popup-overlay .interview-popup .popup-right ul.interview li:not(:first-of-type) {
    margin-top: 44px;
}

.interview-popup-overlay .interview-popup .popup-right ul.interview li span {
    display: block;
    font-weight: bold;
    padding-bottom: 1em;
    margin-bottom: 1em;
    border-bottom: 1px solid #707070;
    padding-left: 2.5em;
    position: relative;
    line-height: 1.5;
}

.interview-popup-overlay .interview-popup .popup-right ul.interview li span::before {
    content: "Q.1";
    font-family: futura-pt, sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: #F99D1C;
    position: absolute;
    top: -2px;
    left: 0;
}

.interview-popup-overlay .interview-popup .popup-right ul.interview li:nth-of-type(2) span::before {
    content: "Q.2";
}

.interview-popup-overlay .interview-popup .popup-right ul.interview li:nth-of-type(3) span::before {
    content: "Q.3";
}

.interview-popup-overlay .interview-popup .popup-right ul.interview li:nth-of-type(4) span::before {
    content: "Q.4";
}

.interview-popup-overlay .interview-popup .popup-right ul.interview li p {
    font-size: 14px;
    line-height: 1.8;
}

.vr-section iframe {
    width: 100%;
    aspect-ratio: 3 / 2;
}

@media (max-width: 768px) {
    .entry-now-btn {
        bottom: 10px;
        right: 10px;
    }

    .grad-btn.entry-now-btn a {
        width: min(24.62vw, 96px);
        height: min(24.62vw, 96px);
    }

    .recruit-top-inner {
        justify-content: center;
    }

    .recruit-catch {
        font-size: min(4.1vw, 16px);
        width: 100%;
    }

    .recruit-catch p:not(:first-of-type) {
        margin-top: 20px;
    }

    .business-content-wrap {
        flex-direction: column;
        gap: 40px;
    }

    .business-content {
        width: 100%;
    }

    .business-content h3 {
        font-size: min(4.62vw, 18px);
    }

    .guideline-section dl {
        flex-direction: column;
        gap: 10px;
        padding: 1em 0;
    }

    .guideline-flow-wrap {
        flex-direction: column;
        gap: 0;
    }

    .guideline-flow {
        width: 100%;
        padding: 40px 20px;
    }

    .guideline-flow span.flow-ttl {
        font-size: min(5.13vw, 20px);
    }

    .guideline-flow-arrow {
        text-align: center;
    }

    .guideline-flow-arrow span {
        rotate: 90deg;
        translate: 0;
    }

    .schedule-content {
        padding: 40px min(5.21vw, 130px);
    }

    .schedule-section h2 {
        font-size: min(4.62vw, 18px);
        margin-bottom: 40px;
    }

    ul.schedule-wrap::after {
        left: 51px;
        height: calc(100% - 34px);
    }

    .schedule-wrap li span.schedule-time {
        font-size: min(4.1vw, 16px);
        width: 50px;
        text-align: center;
        padding-right: 7px;
        line-height: 1.2;
    }

    .schedule-wrap li .schedule-info {
        padding-left: 26px;
        padding-bottom: 40px;
    }

    .schedule-wrap li span.schedule-title {
        font-size: min(4.1vw, 16px);
    }

    .schedule-wrap li .schedule-info p {
        font-size: min(3.59vw, 16px);
    }

    .benefits-content {
        flex-direction: column;
        margin-top: 50px;
    }

    .benefits {
        width: 100%;
        font-size: min(4.1vw, 18px);
    }

    .benefits p {
        height: 3em;
        align-content: center;
    }

    .interview-content .interview-info p span {
        font-size: min(5.64vw, 22px);
    }

    .interview-content .interview-info p span span {
        font-size: min(3.59vw, 14px);
    }

    /* インタビュー：SP時のみJS(assets/js/recruit.js)がsplide構造に組み替えて
    スライダー化する。トップページの製作実績と同じく左右を見切れさせる */
    .interview-content {
        width: 100%;
        max-width: none;
    }


    .interview-popup-overlay .interview-popup {
        /* height:autoのままだと子要素のheight:100%が解決できずスクロールが効かないため、
        固定値にする（PC版のheight:80%と同じ考え方） */
        height: 85vh;
        padding: 56px 20px 32px;
        overflow: hidden;
        width: 100%;
    }

    /* ✕ボタン以外（写真・名前・Q&A）をまとめてスクロールさせる */
    .interview-popup-overlay .interview-popup-body {
        flex-direction: column;
        gap: 20px;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .interview-popup-overlay .interview-popup .popup-left,
    .interview-popup-overlay .interview-popup .popup-right {
        width: 100%;
    }

    .interview-popup-overlay .interview-popup .popup-right span.interview-catch {
        font-size: min(5.13vw, 20px);
        text-align: center;
        padding: 0;
        margin: 0 auto;
    }
    
    /* body側でまとめてスクロールするため、リスト単体でのスクロールは無効化する */
    .interview-popup-overlay .interview-popup .popup-right ul.interview {
        height: auto;
        overflow-y: visible;
        padding-right: 0;
        padding-top: 40px;
    }

    .interview-popup-overlay .interview-popup .interview-popup-close {
        top: 12px;
        right: 12px;
    }


}