/* -------------------------------------------
 * 基本設定 & 共通スタイル
 * ------------------------------------------- */
:root {
    --custom-orange: #E74C07;
    --text-dark: #333;
    --text-black: #000;
    --bg-light-gray: #f6f6f6;
    --font-noto: 'Noto Sans JP', sans-serif;
    --font-jost: 'Jost', sans-serif;
}
/* フェードインアニメーション */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* メイン要素の初期表示 */
main.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
}

/* 遅延付きフェードイン */
.fade-in-section.delay-1 {
    transition-delay: 0.1s;
}

.fade-in-section.delay-2 {
    transition-delay: 0.2s;
}

.fade-in-section.delay-3 {
    transition-delay: 0.3s;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* ヘッダーの高さ分のオフセット */
}

body {
    font-family: var(--font-noto);
    color: var(--text-dark);
    background-color: #fff;
    margin: 0;
}

/* メニュー表示時に背景をスクロールさせない */
body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom; /* 画像下の余白対策 */
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px; /* PCでの最大幅 */
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* -------------------------------------------
 * ヘッダー
 * ------------------------------------------- */
.site-header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.logo img {
    height: 2.5rem;
    width: auto;
}

/* メニュー内ロゴの初期設定（非表示） */
.logo-in-menu {
    display: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem; /* スマホでは少し詰める */
}

.main-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.main-nav .nav-en {
    font-family: var(--font-jost);
    color: var(--custom-orange);
    font-weight: 700;
    font-size: 1rem; /* スマホ用に調整 */
    letter-spacing: normal;
}

.main-nav .nav-ja {
    color: var(--text-black);
    font-weight: 700;
    font-size: 0.6rem; /* スマホ用に調整 */
    margin-top: -0.25rem;
}

/* -------------------------------------------
 * ハンバーガーメニュー
 * ------------------------------------------- */
 .hamburger-button {
    display: none; /* PCでは非表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 1px;
    z-index: 1001; /* メニューより手前に */
}

.hamburger-bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-black);
    margin: 6px 0;
    transition: all 0.3s ease-in-out;
}

/* ハンバーガーメニューが開いた時の「×」印アニメーション */
.hamburger-button.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger-button.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.hamburger-button.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* -------------------------------------------
 * メインビジュアル
 * ------------------------------------------- */
.main-visual {
    position: relative;
    height: 60vh; /* スマホでは高さを画面に合わせる */
    max-height: 850px;
    overflow: hidden;
}

/* メインビジュアル用Swiper */
.mv-swiper {
    width: 100%;
    height: 100%;
}

.mv-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.mv-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.1); /* 少しズーム */
}

.mv-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.mv-content h1 {
    color: var(--custom-orange);
    font-family: var(--font-jost);
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    margin: 0;
}

/* 縦に流れる四角形アニメーション */
.mv-floating-square {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10; /* 背景画像より上、mv_mask-layer（z-index: 15）より下に配置 */
}

.square-element {
    width: 1600px;
    height: 1200px;
    background-color: #ffffff; /* 不透明の白 */
    position: absolute;
    top: -1200px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
}

.square-element.animate {
    opacity: 1;
    visibility: visible;
    animation: verticalFlowDown 2s ease-in-out;
}

@keyframes verticalFlowDown {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    30% {
        transform: translateX(-50%) translateY(1200px);
        opacity: 1;
    }
    70% {
        transform: translateX(-50%) translateY(1200px);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* マスクレイヤー */
.mv-mask-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/top/top_mv_mask.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 15;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* 右への緩やかなパン動作 (5秒サイクル) */
@keyframes mv-pan-right {
    0% { transform: translateX(0) scale(1.1); }
    100% { transform: translateX(3%) scale(1.1); }
}

/* 左への緩やかなパン動作 (5秒サイクル) */
@keyframes mv-pan-left {
    0% { transform: translateX(0) scale(1.1); }
    100% { transform: translateX(-3%) scale(1.1); }
}

/* パン動作のリセット（瞬時に元の位置に戻る） */
@keyframes mv-pan-reset {
    0% { transform: translateX(0) scale(1.1); }
    100% { transform: translateX(0) scale(1.1); }
}

/* パン動作はJavaScriptで制御するため、CSSセレクターは削除 */




/* -------------------------------------------
 * 採用メッセージ
 * ------------------------------------------- */
.message-section {
    padding: 2.5rem 0;
    text-align: center;
}

/* -------------------------------------------
 * JoinUsセクション
 * ------------------------------------------- */
.join-us-section {
    background-image: url('../img/top/top_bg_orange.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.join-us-section .title-en {
    font-family: var(--font-jost);
    font-size: 3.25rem;
    font-weight: 700;
    color: #fff;
}

.join-us-section .title-ja {
    color: var(--text-black);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.join-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.1rem;
}

.join-us-card {
    height: 120px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
}
.join-us-card.type-white {
    background-image: url('../img/top/top_bg_white_ougi.png');
}
.join-us-card.type-pale {
    background-image: url('../img/top/top_bg_pale_orange_ougi.png');
}

.join-us-card .card-type {
    font-family: var(--font-jost);
    color: var(--custom-orange);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}
.join-us-card .card-text-single {
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.2;
    margin-top: 0;
}
.join-us-card .card-text-double {
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.2;
    margin-top: 0;
}

/* -------------------------------------------
 * What’s Resorzセクション
 * ------------------------------------------- */
.whats-resorz-section {
    background-color: var(--bg-light-gray);
    overflow-x: hidden;
}

.resorz-title-bg {
    position: relative;
    z-index: 1;
    height: 500px; /* スマホ用に調整 */
    background-image: url('../img/top/top_bg_orange_ougi.png');
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: calc(100% + 200px) center;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.resorz-title-wrapper {
    text-align: right;
    padding-right: 1.5rem;
}

.resorz-title-group {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    justify-content: flex-end;
}

.resorz-title-en-large {
    font-family: var(--font-jost);
    color: #fff;
    font-size: 3rem; /* スマホ用に調整 */
    font-weight: 700;
}
.resorz-title-en-xlarge {
    font-family: var(--font-jost);
    color: #fff;
    font-size: 4rem; /* スマホ用に調整 */
    font-weight: 700;
    line-height: 1;
    margin-top: -1rem;
}

.resorz-title-ja {
    color: var(--text-black);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.content-wrapper-resorz {
    position: relative;
    z-index: 2;
    padding-top: 2.5rem;
    padding-bottom: 5rem;
    margin-top: -160px; /* スマホ用に調整 */
}

.text-content {
    max-width: 56rem;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: 0.05em;
    padding-bottom: 2rem;
}
.text-content p + p {
    margin-top: 0.5rem;
}


.services-section {
    margin-top: 2.5rem;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr; /* スマホでは1列 */
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.service-card {
    position: relative;
    height: 256px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to top, transparent, black 5%, black 95%, transparent), linear-gradient(to left, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to top, transparent, black 5%, black 95%, transparent), linear-gradient(to left, transparent, black 5%, black 95%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.service-info {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 0.5rem 2rem;
    background-color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-number {
    font-family: var(--font-jost);
    color: var(--custom-orange);
    font-weight: 500;
    font-size: 2.1875rem;
}
.service-category {
    font-weight: 500;
    color: var(--text-black);
    font-size: 0.75rem;
    margin-top: 1.5rem;
}
.service-name {
    font-weight: 600;
    color: var(--text-black);
    font-size: 1.5625rem;
    line-height: 1.2;
    margin-top: -1rem;
}

.service-center-logo {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.service-center-logo img {
    width: 7rem;
    height: auto;
    filter: drop-shadow(0px 0px 5px white);
    margin-top: -3rem;
}

.iframe-wrapper {
    position: relative;
    width: 80%;
    padding-top: 48%; /* 16:9 Aspect Ratio */
    border-radius: 8px;
    overflow: hidden;
    margin-top: 5rem;
    margin-left: auto;
    margin-right: auto;
}
.iframe-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
}

.resorz-footer-bg {
    width: 100%;
    height: 160px;
    background-image: url('../img/top/top_bg_orange.jpg');
    background-size: cover;
    background-position: center;
    margin-top: -150px;
}

/* -------------------------------------------
 * Interviewセクション
 * ------------------------------------------- */
.interview-section {
    background-color: #fff;
    padding-top: 5rem;
    overflow-x: hidden;
}

.interview-title-bg {
    position: relative;
    z-index: 1;
    height: 500px;
    background-image: url('../img/top/top_bg_gray_ougi.png');
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: -200px center;
    display: flex;
    align-items: center;
    margin-top: -10rem;
}

.interview-title-wrapper {
    text-align: left;
    padding-left: 1.5rem;
}
.interview-title-en {
    font-family: var(--font-jost);
    color: var(--custom-orange);
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 0.5rem;
}
.interview-title-ja {
    color: var(--text-black);
    margin-top: -3rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.content-wrapper-interview {
    position: relative;
    z-index: 2;
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.interview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.interview-card {
    text-align: left;
    text-decoration: none;
    color: inherit;
    display: block;
}
.interview-number {
    font-family: var(--font-jost);
    color: var(--custom-orange);
    font-weight: 500;
    font-size: 1.5625rem;
    margin-bottom: 0;
}
.interview-image {
    position: relative;
    margin-top: -0.5rem;
}
.interview-caption {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
}
.interview-caption span {
    background-color: #fff;
    color: var(--custom-orange);
    font-weight: 700;
    font-size: 1.35rem; /* スマホ用に調整 */
    padding: 0.25rem 0.75rem;
    line-height: 2;
}
.interview-info {
    margin-top: 1rem;
}
.interview-info h3 {
    color: var(--text-black);
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0.25rem 0;
}
.interview-info .job-title {
    color: var(--custom-orange);
    font-weight: 700;
    font-size: 1rem;
    margin: 0.25rem 0;
}
.interview-info .join-year {
    color: var(--text-black);
    font-size: 1rem;
    margin: -0.25rem 0;
}

/* -------------------------------------------
 * Jobsセクション
 * ------------------------------------------- */
.jobs-section {
    background-color: var(--bg-light-gray);
    padding-top: 0;
    overflow-x: hidden;
}

.jobs-title-bg {
    position: relative;
    z-index: 1;
    height: 500px; /* スマホ用に調整 */
    background-image: url('../img/top/top_bg_orange_ougi.png');
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: calc(100% + 200px) center;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.jobs-title-wrapper {
    text-align: right;
    padding-right: 2rem;
}
.jobs-title-en {
    font-family: var(--font-jost);
    color: #fff;
    font-size: 4rem; /* スマホ用に調整 */
    font-weight: 700;
    line-height: 1;
    margin-top: 1rem;
}
.jobs-title-ja {
    color: var(--text-black);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: -3.5rem;
}

.content-wrapper-jobs {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
    padding-bottom: 5rem;
    margin-top: -10rem;
}

.jobs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem 3rem;
}

.job-card {
    text-align: center;
}

.job-description {
    font-weight: 500;
    color: var(--custom-orange);
    font-size: 1.25rem;
    height: 1.5rem;
    margin-bottom: 0.01rem;
}

.hand-underline {
    background-image: url('../img/top/top_line.png');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 110% auto;
    padding-bottom: 8px;
}

.job-card img {
    margin-top: 1rem;
    border: 8px solid #fff;
    width: 90%;
    margin-left: auto; 
    margin-right: auto;
}

.job-name {
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.job-name-en {
    font-family: var(--font-jost);
    font-weight: 500;
    font-size: 0.9375rem;
    margin-top: 0;
}

/* -------------------------------------------
 * Work Styleセクション
 * ------------------------------------------- */
.work-style-section {
    background-image: url('../img/top/top_bg_orange.jpg');
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    overflow: hidden;
}

.work-style-title-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 4rem; 
    background-image: url('../img/top/top_bg_white_ougi.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.work-style-title-box p {
    color: var(--custom-orange);
    font-weight: 700;
    font-size: 1rem; 
    line-height: 1.5;
    margin-top: 0.25rem;
}

.title-en-white {
    font-family: var(--font-jost);
    color: #fff;
    font-weight: 700;
    font-size: 3.5rem;
    margin-top: 1rem;
}

.work-style-image {
    margin-top: 4rem;
    text-align: center;
}

/* -------------------------------------------
 * フッター
 * ------------------------------------------- */
.site-footer {
    background-color: #fff;
}
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2.5rem;
}
.footer-logo {
    height: 3rem;
    width: auto;
    margin-bottom: 1.5rem;
}
.social-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.social-links img {
    height: 1.5rem;
    width: 1.5rem;
}
.social-links a:last-child img {
    height: 2.25rem;
    width: auto;
}
.copyright {
    background-color: var(--text-black);
    color: #fff;
    text-align: center;
    font-size: 0.75rem;
    padding: 1rem 0;
}

/* -------------------------------------------
 * レスポンシブ設定 (モバイル)
 * ------------------------------------------- */
@media (max-width: 767px) {
    /* ▼▼▼ スマホではフェードインを無効化 ▼▼▼ */
    .fade-in-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
    /* メインビジュアルのマスクをスマホ用に変更 */
    .mv-mask-layer {
        background-image: url('../img/top/top_sp_mask.png');
        padding-left: 1.5rem;
    }

    /* スマホ用のメインビジュアル画像に変更 (data-swiper-slide-index を使用) */
    .mv-swiper .swiper-slide[data-swiper-slide-index="0"] .mv-bg-slide {
        background-image: url('../img/top/top_sp_01.jpg') !important;
    }
    .mv-swiper .swiper-slide[data-swiper-slide-index="1"] .mv-bg-slide {
        background-image: url('../img/top/top_sp_02.jpg') !important;
    }
    .mv-swiper .swiper-slide[data-swiper-slide-index="2"] .mv-bg-slide {
        background-image: url('../img/top/top_sp_03.jpg') !important;
    }
    .mv-swiper .swiper-slide[data-swiper-slide-index="3"] .mv-bg-slide {
        background-image: url('../img/top/top_sp_04.jpg') !important;
    }

    /* メインビジュアルの背景画像のサイズを調整 */
    .mv-bg-slide {
        /* transformのscale値を変更してサイズを調整します。1.0が基準です。 */
        transform: scale(0.5); /* ← デスクトップ(1.1)より少し引いたサイズ。この数値を変更して調整します。 */
    }
    /* メインビジュアルのタイトルを左寄せ・縦積みに変更 */
    .mv-content {
        justify-content: flex-start; /* タイトルブロックを左端に寄せる */
        padding: 0 2rem; /* 左右に余白を追加 */
        align-items: flex-end; /* ← 上下中央から「下揃え」に変更 */
    }

    .mv-content h1 {
        text-align: left; /* テキストを左揃えにする */
        width: 3em;      /* 「Update」の単語で改行されるくらいの幅に設定 */
        line-height: 1.1; /* 行間を少し詰める */
        font-size: 17vw;  /* スマホ画面に合わせてフォントサイズを調整 */
    }
    .square-element {
        width: 500px;
        height: 600px;
        animation: verticalFlow 1.5s linear;
    }
    
    @keyframes verticalFlow {
        0% {
            transform: translateX(-50%) translateY(-60px);
            opacity: 0;
        }
        10% {
            opacity: 1;
        }
        90% {
            opacity: 1;
        }
        100% {
            transform: translateX(-50%) translateY(100vh);
            opacity: 0;
        }
    }

    /* JoinUs */
    .join-us-section .title-en {
        margin-top: 0rem;
    }

    .join-us-section .title-ja {
        margin-top: -3.5rem;
    }

    .join-us-grid {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 auto;
    }

    .join-us-grid + .join-us-grid {
        gap: 0rem; 
    }

    /* 3番目のカード(Type.03)の背景を淡いオレンジに変更 */
    .join-us-grid .join-us-card:nth-child(3) {
        background-image: url('../img/top/top_bg_pale_orange_ougi.png');
    }

    /* 4番目のカード(Type.04)の背景を白に変更 */
    .join-us-grid .join-us-card:nth-child(4) {
        background-image: url('../img/top/top_bg_white_ougi.png');
    }

    .join-us-card {
        padding: 0.6rem 0.3rem;
    }

    .join-us-card .card-type {
        font-weight: 600;
        font-size: 0.6rem;
        margin-top: 1.5rem;
    }

    .join-us-card .card-text-single {
        font-weight: 600;
        font-size: 0.7rem;
        line-height: 1.2;
        margin-top: 0;
    }

    .join-us-card .card-text-double {
        font-weight: 600;
        font-size: 0.7rem;
        line-height: 1.2;
        margin-top: -0.25rem;
    }

    /* What's Resorz */

    .resorz-title-bg {
        margin-top: -5rem;
        margin-bottom: 2rem;
    }

    .resorz-title-en-large {
        font-size: 2.25rem; /* スマホ用に調整 */
        font-weight: 700;
        margin-bottom: 0rem;
    }
    .resorz-title-en-xlarge {
        font-size: 3.25rem; /* スマホ用に調整 */
        font-weight: 700;
        line-height: 1;
        margin-top: -1rem;
    }
    
    .resorz-title-ja {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
    }

    .text-content p {
      display: inline;
      margin-top: 3rem; 
      font-size: 0.9rem;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        max-width: 65rem;
        margin-top: -2rem;
        padding-bottom: 3rem;
    }

    .service-card {
        position: relative;
        height: 100px;
        background-size: cover;
        background-position: center;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to top, transparent, black 5%, black 95%, transparent), linear-gradient(to left, transparent, black 5%, black 95%, transparent);
        mask-image: linear-gradient(to top, transparent, black 5%, black 95%, transparent), linear-gradient(to left, transparent, black 5%, black 95%, transparent);
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
    }
    
    .service-info {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        padding: 0rem 0.5rem;
        background-color: rgba(255, 255, 255, 0.85);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .service-number {
        font-size: 1rem;
    }
    .service-category {
        font-weight: 400;
        font-size: 0.5rem;
        margin-top: 0.5rem;
    }
    .service-name {
        font-weight: 600;
        font-size: 0.75rem;
        line-height: 1.2;
        margin-top: -0.5rem;
    }

    .iframe-wrapper {
        width: 100%;
        padding-top: 58%; /* 16:9 Aspect Ratio */
        border-radius: 8px;
        overflow: hidden;
        margin-top: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .resorz-footer-bg {
        width: 100%;
        height: 100px;
        background-image: url('../img/top/top_bg_orange.jpg');
        background-size: cover;
        background-position: center;
        margin-top: -100px;
    }

    /* Interview */

    .content-wrapper-interview {
        margin-top: -10rem;
    }

    .interview-number {
        font-weight: 400;
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    .interview-info h3 {
        font-size: 1.3rem;
        margin-top: -0.5rem;
    }
    .interview-info .job-title {
        font-size: 0.9rem;
    }
    .interview-info .join-year {
        font-size: 0.9rem;
    }

    /* Jobs */
    .jobs-title-bg {
        margin-top: -5rem;
    }
    
    .content-wrapper-jobs {
        position: relative;
        z-index: 2;
    }

    .jobs-grid {
        gap: 1rem 0;
        padding-left: 1rem;
        background-color: #fff; /* 白い背景を追加 */
        padding-right: 1rem;   /* 左右のバランスを合わせる */
        padding-top: 1rem;     /* 上下の余白0追加 */
        padding-bottom: 1rem;
    }

    /* カードの下に区切り線を追加 */
    .jobs-grid a {
        padding: 0.5rem ;
        padding-bottom: 0.5rem;
        display: flex; /* ← この行を追加 */
        align-items: center; /* ← この行を追加 */
    }

    .jobs-grid a:not(:last-child) {
        border-bottom: 1px solid #e5e7eb;
    }

    .job-card {
        text-align: left;
        padding-left: 1rem;
    }

    .job-description {
        font-size: 0.65rem;
        height: 0.8rem;
        margin-top: 0;
        margin-bottom: 0;
    }

    .hand-underline {
        padding-bottom: 4px;
    }

    .job-name {
        font-size: 1rem;
    }

    .job-name-en {
        font-size: 0.8rem;
        font-weight: 400;
    }

    .job-card img {
        display: none;
    }

    /* WorkStyle */
    .swiper-button-next,
    .swiper-button-prev {
        color: transparent; /* デフォルトの矢印を非表示 */
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }

    /* ↓↓↓ ここに追加します ↓↓↓ */
    .swiper-button-next::after,
    .swiper-button-prev::after {
        display: none;
    }

    .swiper-button-prev {
        left: -15px; /* マイナスの値を大きくするほど左に移動します */
    }
    .swiper-button-next {
        right: -15px; /* マイナスの値を大きくするほど右に移動します */
    }

    /* カスタム矢印アイコンのスタイル */
    .swiper-arrow-icon {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 2px 4px rgb(255, 255, 255));
    }

    /* ホバー時のエフェクト */
    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        transform: scale(1.1);
    }

    /* 無効状態のスタイル */
    .swiper-button-next.swiper-button-disabled,
    .swiper-button-prev.swiper-button-disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .hamburger-button {
        display: block; /* スマホでは表示 */
    }

    .main-nav {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 1000;
        /* メニュー内の配置を調整 */
        flex-direction: column;
        justify-content: flex-start; /* 上から配置 */
        align-items: center;
        padding-top: 0;
        box-sizing: border-box;


        /* 初期状態は画面の外(右)で非表示 */
        transform: translateX(100%);
        visibility: hidden;
        /* なめらかな動きのためのtransition設定 */
        transition: transform 0.4s ease-in-out, visibility 0.4s;
    }
    
    .main-nav.is-active {
        transform: translateX(0);
        visibility: visible;
    }
    
    .main-nav.is-active .logo-in-menu {
        display: block;
        position: absolute; /* ← 要素を独立させる */
        top: 2rem;          /* ← 上からの位置を指定 */
        left: 2rem;         /* ← 左からの位置を指定 */
    }

    .logo-in-menu img {
        height: 2.5rem; /* ヘッダーロゴと同じ高さを指定 */
        width: auto;
    }
    /* メニュー項目を縦並びに */
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        padding-top: 10rem; /* ← ロゴと被らないように上部に余白を追加 */
        width: 100%;       /* 中央揃えを維持するために幅を指定 */
    }

    .main-nav .nav-en {
        font-size: 1.25rem; /* ← この数値を調整 */
    }

    .main-nav .nav-ja {
        font-size: 0.7rem; /* ← この数値を調整 */
        margin-top: 0; /* 文字サイズ変更に伴い微調整 */

    }
}

/* -------------------------------------------
 * レスポンシブ設定 (デスクトップ)
 * ------------------------------------------- */
@media (min-width: 768px) {
    /* --- 全体サイズ --- */
    body {
        zoom: 0.9;
      }
    /* --- ヘッダー --- */
    .main-nav ul {
        flex-direction: row; /* デスクトップでは横並び */
        gap: 2rem;
    }
    .main-nav .nav-en {
        font-size: 1.25rem;
    }
    .main-nav .nav-ja {
        font-size: 0.6875rem;
    }

    /* --- メインビジュアル --- */
    .main-visual {
        height: 850px;
    }
    .mv-layer.text-layer {
        align-items: center;
        padding-bottom: 0;
    }
    .main-visual h1 {
        font-size: 9.375rem; /* 150px */
        margin-top: 37.5rem; /* 600px */
    }

    /* --- 採用メッセージ --- */  
    .message-section {
        /* display: flex; を追加 */
        display: flex;
        align-items: center;
        justify-content: center;
    
        /* 以下を追加 */
        position: sticky;
        top: 0;
        height: 100vh;
        z-index: 1;
    
        /* 既存のpaddingとtext-alignはflex設定により不要になるためコメントアウトまたは削除 */
        /* padding: 2.5rem 0; */
        /* text-align: center; */
        /*padding: 8rem 5rem; /* ← 上下の余白を5remから8remに増やした例 */
        /*text-align: center;*/
    }
    .message-section img {
        max-width: 70%; /* 横幅が画面の80%を超えないように */
        max-height: 70vh; /* 高さが画面の80%を超えないように */
        width: auto;
        height: auto;
        /*width: 70%; /* ← この数値を調整 (例: 60%ならもっと小さく) */
        /*margin: 0 auto; /* 中央寄せを維持するため */
    }

    /* --- JoinUs（デスクトップ） --- */
    .join-us-section{
        position: relative;
        z-index: 2;
    }
    .join-us-section .title-en {
        font-size: 5.625rem;
    }
    .join-us-section .title-ja {
        font-size: 1.25rem;
        margin-top: -6rem;
    }
    .join-us-card {
        height: 256px; /* 元の高さに戻す */
    }
    .join-us-card .card-type {
        font-size: 1.5rem; 
        margin-top: 2.5rem;
    }
    .join-us-card .card-text-single {
        font-size: 1.5rem; 
        margin-top: 0.5rem;  
    }
    .join-us-card .card-text-double {
        font-size: 1.5rem; 
        margin-top: 0rem; 
    }
    .join-us-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto;
        gap: 0.5rem;
    }
    
    /* JoinUs以下の全セクションが背景を隠すための設定 */
    .whats-resorz-section,
    .interview-section,
    .jobs-section,
    .work-style-section {
        position: relative;
        z-index: 3; /* JoinUsよりもさらに手前に表示 */
    }
    
    
    /* --- What's Resorz（デスクトップ） --- */
    .whats-resorz-section {
        position: relative;
        z-index: 2;
    }
    .resorz-title-bg {
        height: clamp(600px, 90vh, 850px);
        background-position: calc(100% + 300px) center;
        margin-top: -8rem;
    }
    .resorz-title-wrapper {
        padding-right: 3rem;
    }
    .resorz-title-en-large {
        font-size: 4.375rem; /* 70px */
        margin-top: 3rem;
    }
    .resorz-title-en-xlarge {
        font-size: 5.625rem; /* 90px */
        margin-top: -5rem;
    }
    .resorz-title-ja {
        font-size: 1.25rem;
    }
    .content-wrapper-resorz {
        margin-top: -450px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-center-logo {
        display: flex;
        position: absolute;
        inset: 0;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
    .service-center-logo img {
        width: 14rem;
        height: auto;
        filter: drop-shadow(0px 0px 5px white);
        margin-top: -3rem;
    }

    /* --- Interview（デスクトップ） --- */
    .interview-section {
        position: relative;
        z-index: 2;
    }
    .interview-title-bg {
        height: clamp(600px, 90vh, 850px);
        background-position: calc(-250px) center;
        margin-top: -13rem;
    }
    .interview-title-wrapper {
        padding-left: 3rem;
        text-align: right;
    }
    .interview-title-en {
        font-size: 5.625rem;
        margin-top: 3rem;
    }
    .interview-title-ja {
        font-size: 1.25rem;
        margin-top: -5rem;
    }
    .content-wrapper-interview {
        margin-top: 0rem;
        padding-bottom: 10rem;
    }
    .interview-grid {
        grid-template-columns: repeat(3, 1fr);
        margin-top: -15rem;
    }
    .interview-caption {
        bottom: 1rem;
        left: 1rem;
    }
    .interview-caption span {
        font-size: 1.65rem;
        line-height: 2;
    }
    .interview-info h3 {
        font-size: 2rem;
    }

    /* --- Jobs（デスクトップ） --- */
    .jobs-section {
        position: relative;
        z-index: 2;
    }
    .jobs-title-bg {
        height: clamp(600px, 90vh, 850px);
        background-position: calc(100% + 300px) center;
        margin-top: -8rem;
    }
    .jobs-title-wrapper {
        padding-right: 6rem;
    }
    .jobs-title-en {
        font-size: 5.625rem;
        margin-top: 3rem;
    }
    .jobs-title-ja {
        font-size: 1.25rem;
        margin-top: -5rem;
    }
    .content-wrapper-jobs {
        padding-left: 5rem;
        padding-right: 5rem;
        margin-top: -35rem;
    }
    .jobs-grid {
        grid-template-columns: repeat(3, 1fr); /* 3列にする */
    }
    /* Jobsのグリッドレイアウトを原作に近づける */
    .jobs-grid a:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 2; }
    .jobs-grid a:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
    .jobs-grid a:nth-child(3) { grid-column: 1 / 2; grid-row: 2 / 3; }
    .jobs-grid a:nth-child(4) { grid-column: 2 / 3; grid-row: 2 / 3; }
    .jobs-grid a:nth-child(5) { grid-column: 3 / 4; grid-row: 2 / 3; }
    .jobs-grid a:nth-child(6) { grid-column: 1 / 2; grid-row: 3 / 4; }
    .jobs-grid a:nth-child(7) { grid-column: 2 / 3; grid-row: 3 / 4; }
    .jobs-grid a:nth-child(8) { grid-column: 3 / 4; grid-row: 3 / 4; }
    /* 1行目に空きを作るため、3番目以降のカードを2行目から配置 */
    .jobs-grid a:nth-child(3),
    .jobs-grid a:nth-child(4),
    .jobs-grid a:nth-child(5) {
        margin-top: 0; 
    }
    .jobs-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem 1rem;
        padding-bottom: 2rem;
    }
    .job-description {
        font-size: 0.9375rem;
    }
    .job-name {
        font-size: 1.7rem;
    }
    .job-name-en {
        font-size: 0.9375rem;
    }


    /* --- Work Style（デスクトップ） --- */
    .work-style-section {
        position: relative;
        z-index: 2;
    }
    .title-en-white {
        font-size: 5.625rem;
    }
    .work-style-title-box {
        /* 例: paddingを大きくして扇自体を大きくする */
        padding: 2.5rem 5rem;
    }
    .work-style-title-box p {
        /* 例: 扇の中の文字を大きくする */
        font-size: 1.25rem;
    }
    
    /* --- Work Style Slider --- */
    .work-style-slider {
        width: 100%;
        max-width: 900px; /* スライダーの最大幅 */
        margin: 4rem auto 0; /* 上下の余白を調整 */
        /*overflow: hidden; /* スライダー内の要素がはみ出るのを防ぐ */
    }

    .swiper-slide img {
        display: block;
        width: 100%;
        height: auto;
    }

    /* 左右のスライド - より強い詳細度で指定 */
    .work-style-slider .swiper-slide-prev,
    .work-style-slider .swiper-slide-duplicate-prev {
        transform: scale(0.95) !important;
    }

    .work-style-slider .swiper-slide-next,
    .work-style-slider .swiper-slide-duplicate-next {
        transform: scale(0.95) !important;
    }

    /* 矢印の色をオレンジに設定 */
    .swiper-button-next,
    .swiper-button-prev {
        color: transparent; /* デフォルトの矢印を非表示 */
        width: 80px;
        height: 80px;
        background: none;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }

    .swiper-button-prev {
        left: -40px; /* マイナスの値を大きくするほど左に移動します */
    }
    .swiper-button-next {
        right: -60px; /* マイナスの値を大きくするほど右に移動します */
    }

    /* カスタム矢印アイコンのスタイル */
    .swiper-arrow-icon {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 2px 4px rgb(255, 255, 255));
    }

    /* ホバー時のエフェクト */
    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        transform: scale(1.1);
    }

    /* 無効状態のスタイル */
    .swiper-button-next.swiper-button-disabled,
    .swiper-button-prev.swiper-button-disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}


