@charset "utf-8";
/* =========================================================
   recruit.css（最適化版）
   Safari/Edge対応・レスポンシブ統一・アニメ整理
========================================================= */

/* ------------------------------------
   基本フォント設定
------------------------------------ */
body {
    font-family: "Noto Sans JP", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: #333;
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.03em;
}


/* h1：キャッチコピー（少しクラシカルで印象的） */
.recruit-text h1.main-copy {
    font-family: "Noto Serif JP", serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: clamp(30px, 4.5vw, 58px);
    line-height: 1.5;
    margin-bottom: 5vh;
}

/* p3や本文（読みやすさ重視） */
.p3 {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 2;
    margin-top: 10vh;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 英字UI系要素（ENTRY / Scroll） */
.scroll-down,
.entry-btn {
    font-family: "Montserrat", "Poppins", sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ------------------------------
   ヒーローセクション
------------------------------ */
.recruit_imageCenter {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* 中央寄せに変更 */
    text-align: center;
    padding-top: 10vh;
    /* 上に少し余白を足して、実質「やや下」に */
}

/* 背景画像 */
.recruit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* ← これが最重要 */
    background: url(../img/recruit_densen.jpg) center center / cover no-repeat;
    z-index: 0;
    transform: translateZ(0);
    will-change: transform;
}

/* Safari/iOS: fixed非対応フォールバック */
@supports (-webkit-touch-callout: none) {
    .recruit-bg {
        position: absolute !important;
        background-attachment: scroll !important;
    }
}

/* オーバーレイ */
.recruit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Safari・モバイル対策 */
@supports (-webkit-touch-callout: none) {

    .recruit-bg,
    .recruit-overlay {
        position: absolute !important;
        height: 100dvh !important;
    }
}

/* =========================================================
   背景エリア（スマホ・Safari完全対応 最終版）
========================================================= */

.recruit_imageCenter {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

/* 背景画像を全画面に固定 */
.recruit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url(../img/recruit_densen.jpg) center center / cover no-repeat;
    z-index: 0;
}

/* 黒オーバーレイを上から全体に重ねる 
.recruit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}*/

/* =========================================
   ENTRYボタンが隠れないようにする
========================================= */

.recruit-page .recruit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}


/* 募集要項とENTRYを前面に出す */
.recruit-content,
.entry-area {
    position: relative;
    z-index: 10;
}

/* Safari / iPhone 対策 */
@supports (-webkit-touch-callout: none) {

    .recruit-bg,
    .recruit-overlay {
        position: absolute !important;
        height: 100dvh !important;
    }
}

/* スマホ時の余白調整 */
@media screen and (max-width: 768px) {
    .recruit_imageCenter {
        height: 100dvh;
        min-height: 100dvh;
        padding-top: 10vh;
        /* ロゴぶん少し下げ */
    }
}


/* メインコピー（h1） */
.recruit-text h1.main-copy {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: clamp(28px, 4.5vw, 60px);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    animation: fadeInMain 1.5s ease forwards;
    opacity: 0;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 5vh;
    /* 下に自然な余白 */
}

/* スマホ時：より中央寄せ */
@media screen and (max-width: 768px) {
    .recruit_imageCenter {
        padding-top: 6vh;
    }

    .recruit-text h1.main-copy {
        font-size: clamp(22px, 6vw, 34px);
        margin-bottom: 3vh;
    }
}

@keyframes fadeInMain {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.p1 {
    font-size: clamp(30px, 5vw, 60px);
    font-weight: 700;
    margin-bottom: 10px;
}

.p2 {
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 500;
    margin-bottom: 30px;
}

/* ===============================
   p3：ドラマチックフェード（強めの浮上＋光）
=============================== */
.p3 {
    position: relative;
    z-index: 5;
    margin-top: 12vh;
    font-size: clamp(15px, 2vw, 18px);
    color: #fff;
    line-height: 2;
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    transition: opacity 1.5s ease, transform 1.5s ease, filter 1.5s ease;
    filter: brightness(0.7) blur(2px);
}

.p3.fadeUp {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1.1) blur(0px);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
    /* ✅ Safariでも確実に光る */
}

/* モバイル時はやや控えめ */
@media screen and (max-width: 768px) {
    .p3 {
        margin-top: 10vh;
        transform: translateY(60px) scale(0.96);
    }

}

/* ------------------------------
   募集要項
------------------------------ */
.recruit-content {
    position: relative;
    z-index: 5;
    background: #fff;
    padding: 6rem 2rem;
    color: #333;
}

.recruit-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

.recruit-table caption {
    text-align: left;
    font-weight: bold;
    font-size: 1.6rem;
    color: #182578;
    padding: 1rem;
    border-bottom: 3px solid #182578;
}

.recruit-table th,
.recruit-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    vertical-align: top;
    font-size: 1rem;
    border-bottom: 1px solid #ccc;
}

.recruit-table th {
    width: 25%;
    color: #182578;
    background: #f4f6fb;
    text-align: center;
    font-weight: 600;
}


/* ------------------------------------
   ② Scrollアニメーション
------------------------------------ */
.scroll-down {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    animation: fadeInScroll 2s ease-in-out 1.5s forwards;
    opacity: 0;
    z-index: 5;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    bottom: 5vh;
}

.scroll-down::after {
    content: "";
    display: block;
    width: 1px;
    height: 35px;
    background: #fff;
    margin: 8px auto 0;
    animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0.2;
    }
}

@keyframes fadeInScroll {
    to {
        opacity: 1;
    }
}

/* ------------------------------------
   ③ ENTRYボタン
------------------------------------ */
.entry-btn {
    display: inline-block;
    background: #182578;
    color: #fff;
    padding: 1rem 2.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    padding: 1rem 3rem;
}

.entry-btn:hover {
    background: #ff7b00;
    box-shadow: 0 6px 16px rgba(255, 123, 0, 0.5);
    transform: translateY(-2px);
}

/* 配置 */
.entry-area {
    text-align: center;
    margin-top: 6rem;
    margin-bottom: 4rem;

}

/* ------------------------------
   レスポンシブ
------------------------------ */
@media screen and (max-width: 1024px) {
    .recruit-text {
        padding: 22vh 8% 8vh;
    }

    .p1 {
        font-size: 2rem;
    }

    .p2 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
        line-height: 1.9;
    }

    .recruit_imageCenter {
        min-height: 100vh;
        padding-top: 6vh;
    }

    .recruit-text h1.main-copy {
        font-size: clamp(20px, 5.8vw, 30px);
        line-height: 1.5;
        margin-bottom: 2.8vh;
        letter-spacing: 0.05em;
    }

    .recruit-bg {
        height: 100dvh;
    }

    .recruit-overlay {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1;
    }

    .recruit-text {
        padding: 20vh 6% 8vh;
    }

    .p1 {
        font-size: 1.6rem;
    }

    .p2 {
        font-size: 1.2rem;
    }

    .p3 {
        line-height: 1.9;
        font-size: clamp(13px, 3.6vw, 15px);
        margin-top: 7vh;
        padding: 0 6%;
        letter-spacing: 0.04em;
        line-height: 2.1;
        opacity: 0.95;
    }

    /* Scroll ラベル */
    .scroll-down {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
        bottom: 5vh;
    }

    /* ENTRYボタン（下部） */
    .entry-btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    .entry-area {
        margin-top: 4rem;
        margin-bottom: 3rem;
    }

    .entry-area {
        margin-top: 4rem;
        margin-bottom: 3rem;
    }

    .recruit-content {
        padding: 4rem 1rem;
    }

    .recruit-table th,
    .recruit-table td {
        display: block;
        width: 100%;
        font-size: 0.9rem;
        border-bottom: 1px solid #ddd;
    }

    .recruit-table th {
        background: #eaf0fa;
        text-align: left;
        padding-bottom: 0.3rem;
    }

    .recruit-table td {
        padding-top: 0;
        margin-bottom: 1rem;
    }
}

/* ===============================
   🩵 フッター非表示対策
=============================== */
.recruit_imageCenter {
    overflow: visible !important;
}

#footer {
    position: relative;
    z-index: 20;
}