/* ==========================================
   採用情報ページ（recruit.html）専用スタイル
========================================== */

/* 1. 枠なし・ミニマルなヘッダータイトル */
.recruit-header-title {
    text-align: center;
    padding: 60px 20px 40px;
}

.recruit-header-title .label {
    color: var(--lavender-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .25em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.recruit-header-title h1 {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(34px, 3.8vw, 52px);
    font-weight: 500;
    margin: 0 0 16px;
    color: var(--ink);
    letter-spacing: .04em;
}

.recruit-header-title p {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
    line-height: 1.8;
}

/* 2. 共通タイトル設定 */
.section-title-center {
    text-align: center;
    margin-bottom: 48px;
}

.section-title-center h2 {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(28px, 2.8vw, 42px);
    font-weight: 500;
    margin: 0;
}

/* 3. メッセージエリア（文字は完全固定＆背景光のみゆったり可変） */
.recruit-message {
    text-align: center;
    padding: 60px 20px 80px;
    position: relative;
    z-index: 1;
}

/* メッセージの中身テキスト（動かさず完全固定） */
.message-inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.message-inner .label {
    color: var(--lavender-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .25em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.message-inner h2 {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(26px, 2.5vw, 36px);
    margin: 0 0 24px;
    font-weight: 500;
}

.message-inner p {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 16px;
}

/* ==========================================
   メッセージエリアの背景オーブ（超極小・ゆったり混ざり合う光）
========================================== */
.recruit-message::before,
.recruit-message::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
    will-change: transform, opacity;
}

/* 左上のラベンダー色オーブ */
.recruit-message::before {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(175, 140, 220, 0.75) 0%, rgba(175, 140, 220, 0) 70%);
    top: 5%;
    left: 15%;
    animation: gentleGlow1 16s infinite ease-in-out alternate;
}

/* 右下のカスタード（ゴールド）色オーブ */
.recruit-message::after {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(243, 205, 50, 0.65) 0%, rgba(243, 205, 50, 0) 70%);
    bottom: 5%;
    right: 15%;
    animation: gentleGlow2 18s infinite ease-in-out alternate;
}

/* 光の大きさ・位置がじわ〜っと超スローで微変するだけのアニメーション */
@keyframes gentleGlow1 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(25px, 15px) scale(1.1);
        opacity: 0.65;
    }

    100% {
        transform: translate(-10px, 20px) scale(0.95);
        opacity: 0.45;
    }
}

@keyframes gentleGlow2 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-25px, -15px) scale(1.1);
        opacity: 0.65;
    }

    100% {
        transform: translate(10px, -20px) scale(0.95);
        opacity: 0.45;
    }
}

/* 4. 募集要項テーブル */
.job-table-wrapper {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 34px;
    padding: 48px;
    border: 1px solid rgba(155, 120, 207, 0.3);
    box-shadow: 0 16px 50px rgba(120, 90, 180, 0.08);
    max-width: 840px;
    margin: 0 auto;
}

.job-table {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px 32px;
    margin: 0;
}

.job-table dt {
    font-weight: 800;
    color: var(--lavender-deep);
    padding-top: 14px;
    border-top: 1px solid rgba(155, 120, 207, 0.15);
}

.job-table dd {
    margin: 0;
    line-height: 1.8;
    padding-top: 14px;
    border-top: 1px solid rgba(155, 120, 207, 0.15);
}

.job-table dt:first-of-type,
.job-table dd:first-of-type {
    border-top: none;
    padding-top: 0;
}

.job-table dd strong {
    font-size: 1.1em;
    color: var(--ink);
}

/* 5. 選考フロー */
.flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(200, 160, 100, 0.28);
    border-radius: 22px;
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(150, 100, 120, 0.06);
}

.step-num {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: var(--lavender-deep);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.step-card h3 {
    font-size: 18px;
    margin: 0 0 8px;
}

.step-card p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.step-arrow {
    color: var(--lavender);
    font-weight: bold;
    font-size: 22px;
}

/* 6. 応募・お問い合わせエリア */
.recruit-apply {
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 34px;
    padding: 60px 30px;
    border: 1px solid rgba(243, 196, 0, 0.22);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(243, 196, 0, 0.35);
    box-shadow: 0 20px 60px rgba(90, 62, 120, 0.05), 0 8px 24px rgba(243, 196, 0, 0.08);
}

.apply-inner {
    max-width: 600px;
    margin: 0 auto;
}

.apply-inner h2 {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(26px, 2.5vw, 36px);
    margin: 0 0 16px;
    font-weight: 500;
}

/* トップページへ戻るテキストリンク用スタイル */
.back-home-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--lavender-deep);
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.back-home-link:hover {
    opacity: 0.8;
    transform: translateX(-3px);
}

/* アニメーション設定 */
.recruit-header-title.scroll-fade,
.recruit-message.scroll-fade,
.recruit-jobs.scroll-fade,
.recruit-flow.scroll-fade,
.recruit-apply.scroll-fade {
    will-change: transform, opacity;
    transition: opacity 2.0s cubic-bezier(0.16, 1, 0.3, 1), transform 2.0s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 右下のトップへ戻るボタン（PC表示時） */
.to-top-btn {
    position: fixed !important;
    bottom: 35px !important;
    right: 35px !important;
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 239, 255, 0.9) 100%) !important;
    border: 1px solid rgba(155, 120, 207, 0.35) !important;
    border-radius: 50% !important;
    color: var(--lavender-deep) !important;
    font-size: 22px !important;
    font-weight: bold !important;
    box-shadow: 0 10px 30px rgba(90, 62, 120, 0.15) !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.3s ease !important;
    z-index: 9999 !important;
}

.to-top-btn:hover {
    background: linear-gradient(135deg, var(--lavender), #7652b7) !important;
    color: #fff !important;
    border-color: rgba(243, 196, 0, 0.5) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 14px 35px rgba(127, 85, 188, 0.35) !important;
}

/* 選考フロー（スマホ表示時のカード高さ均一化＆横幅調整） */
@media (max-width: 768px) {
    .flow-steps {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .step-card {
        width: 100%;
        min-height: 160px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 24px 20px;
        box-sizing: border-box;
    }
}

/* レスポンシブ対応（スマホ・タブレット） */
@media (max-width: 768px) {
    .recruit-header-title {
        padding: 40px 16px 20px;
    }

    .flow-steps {
        flex-direction: column;
        gap: 12px;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 2px 0;
    }

    .job-table {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .job-table dt {
        padding-top: 12px;
        border-top: 1px solid rgba(155, 120, 207, 0.12);
    }

    .job-table dd {
        padding-top: 0;
        border-top: none;
    }

    .job-table-wrapper {
        padding: 32px 20px;
    }
}

/* スマホ表示時（640px以下）は右下のトップへ戻るボタンを非表示にする */
@media (max-width: 640px) {
    .to-top-btn {
        display: none !important;
    }
}