/* ---------------------------------- */
/* アニメーション用キーフレーム */
/* ---------------------------------- */
/* フェードイン（下から上へスライドしながら出現）*/
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ヒーロータイトルのスライドイン */
@keyframes slide-in-from-top {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* voice-cta-box 用の表示アニメ */
@keyframes cta-glow-in {
    0% {
        box-shadow: 0 0 0 rgba(26, 58, 110, 0);
        border-color: rgba(26, 58, 110, 0.35);
    }

    60% {
        box-shadow: 0 18px 40px rgba(26, 58, 110, 0.22);
        border-color: rgba(26, 58, 110, 0.9);
    }

    100% {
        box-shadow: 0 8px 20px rgba(26, 58, 110, 0.10);
        border-color: #1a3a6e;
    }
}

/* ---------------------------------- */
/* 基本・共通スタイル */
/* ---------------------------------- */
body {
    letter-spacing: 0.2em;
    font-family: 'Roboto', 'Noto Sans JP', sans-serif;
    margin: 0;
    padding-top: 80px;
    background-color: #ffffff;
    color: #222222;
    line-height: 1.6;
    overflow-x: hidden;
    /* 横方向のスクロールバーを非表示 */
}

a {
    color: #1a3a6e;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #000000;
}

/* ---------------------------------- */
/* スクロールアニメーション */
/* ---------------------------------- */
.scroll-fade {
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-fade.active {
    opacity: 1;
    color: #ffffff;
    transform: translateY(0);
}

.scroll-fade2 {
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-fade2.active {
    opacity: 1;
    color: #000000;
    transform: translateY(0);
}

/* ---------------------------------- */
/* ページタイトル（ヒーロー） */
/* ---------------------------------- */
.page-hero {
    background-color: #ffffff;
    padding: 110px 10px 10px;
    text-align: center;
    border-bottom: 5px solid #1a3a6e;
}

.page-hero h1 {
    letter-spacing: 0.1em;
    font-size: 4em;
    margin: 0;
    color: #000000;
    text-transform: uppercase;
    opacity: 0;
    animation: slide-in-from-top 1s ease-out forwards;
}

.page-hero p {
    letter-spacing: 0.1em;
    font-size: 1.3em;
    color: #000000;
    margin-top: 15px;
    opacity: 0;
    animation: fade-in-up 1s ease-out 0.5s forwards;
}

/* ---------------------------------- */
/* セクション共通 */
/* ---------------------------------- */
.section {
    padding: 80px 50px;
    max-width: 1500px;
    margin: 0 auto;
    text-align: left;
}

.section.dark {
    background-color: #ffffff;
}

.section h2 {
    font-size: 2.2em;
    margin-bottom: 50px;
    color: #fff;
    position: relative;
    text-align: center;
}

.section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #1a3a6e;
    margin: 10px auto 0;
    transition: width 0.3s;
}

.section:hover h2::after {
    width: 20%;
}

/* ---------------------------------- */
/* メッセージと概要 */
/* ---------------------------------- */
.message-box {
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(26, 58, 110, 0.2);
    background-color: #ffffff;
    padding: 40px;
    border-left: 5px solid #1a3a6e;
    margin-bottom: 60px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.message-box:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.message-box h3 {
    letter-spacing: 0.1em;
    color: #000000;
    font-size: 1.8em;
    margin-top: 0;
}

.message-box p {
    letter-spacing: 0.1em;
    font-size: 1.1em;
    color: #000000;
}

/* ---------------------------------- */
/* 研修情報 */
/* ---------------------------------- */
.training-section {
    letter-spacing: 0.1em;
    border-left: 5px solid #1a3a6e;
    background-color: #ffffff;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(26, 58, 110, 0.2);
    border-radius: 8px;
    margin-bottom: 40px;
    transition: transform 0.3s, border-color 0.3s;
}

.training-section:hover {
    transform: translateY(-5px);
    border-color: #1a3a6e;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.training-section h3 {
    letter-spacing: 0.2em;
    color: #000000;
    font-size: 1.5em;
    border-bottom: 1px dashed #3c3c5a;
    padding-bottom: 10px;
    margin-top: 0;
}

.training-section ul {
    letter-spacing: 0.2em;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.training-section li {
    padding-left: 1.5em;
    position: relative;
    color: #000000;
}

.training-section li::before {
    content: '⭐';
    color: #f7a044;
    position: absolute;
    left: 0;
}

/* ---------------------------------- */
/* 募集要項テーブル */
/* ---------------------------------- */
.requirement-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
}

.requirement-table tr {
    transition: background-color 0.3s;
}

.requirement-table tr:hover {
    background-color: #1a3a6e;
    /* ホバーでハイライト */
}

.requirement-table th,
.requirement-table td {
    letter-spacing: 0.2em;
    padding: 15px;
    border: 1px solid #1a3a6e;
    font-size: 1em;
    text-align: left;
}

.requirement-table th {
    width: 30%;
    background-color: #1a3a6e;
    color: #fff;
    font-weight: 700;
}

.requirement-table td {
    background-color: #ffffff;
    color: #000000;
}

/* 年収例 */
.salary-example {
    border: 2px solid #1a3a6e;
    margin-top: 15px;
    padding: 15px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(26, 58, 110, 0.2);
}

.salary-example h4 {
    color: #000000;
    margin-top: 0;
    font-size: 1.1em;
    border-bottom: 1px dashed #ffffff;
    padding-bottom: 5px;
}

.salary-example ul {
    list-style: none;
    padding: 0;
}

.salary-example li {
    margin-bottom: 5px;
    color: #000000;
}

/* 待遇・福利厚生リスト */
.benefit-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.benefit-list li {
    box-shadow: 0 4px 15px rgba(26, 58, 110, 0.2);
    width: 100%;
    background-color: #ffffff;
    color: #000000;
    padding: 15px;
    border-left: 3px solid #1a3a6e;
    border-radius: 4px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* .benefit-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
} */

/* ---------------------------------- */
/* 応募ボタン CTA */
/* ---------------------------------- */
.apply-cta {
    text-align: center;
    padding: 50px;
    background-color: #1a3a6e;
    margin-top: 60px;
    border-radius: 8px;
    transition: transform 0.5s;
}

.apply-cta:hover {
    transform: scale(1.01);
}

.apply-cta a {
    letter-spacing: 0.1em;
    background-color: #ffcc99;
    color: #fff;
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 1.3em;
    font-weight: 700;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.2s;
}

.apply-cta a:hover {
    background-color: #ffcc99;
    color: #000000;
    transform: translateY(-2px);
}

.apply-cta h2 {
    font-size: 2.2em;
    color: #ffffff;
    margin: 0;
}

.apply-cta h2::after {
    background-color: #ffffff;
}

.apply-cta p {
    letter-spacing: 0.1em;
    color: #ffffff;
    font-size: 1.2em;
    margin-top: 10px;
}

/* ---------------------------------- */
/* CTA（先輩の声＋エントリー） */
/* ---------------------------------- */
.cta-row {
    max-width: 1300px;
    margin: 85px auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
}

.cta-row .section {
    padding: 0;
}

/* 先輩の声ボックス */
.voice-cta-box {
    flex: 1 1 0;
    min-width: 0;
    background: #fff;
    border: 2px solid #1a3a6e;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(26, 58, 110, 0.08);
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s, box-shadow 0.5s, border-color 0.3s;
    will-change: transform;
    min-height: 360px;
}

/* 先輩の声ボタン */
.voice-button {
    display: inline-block;
    font-size: 20.8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1a3a6e, #3c5fa3);
    color: #fff;
    font-weight: 700;
    border-radius: 28px;
    box-shadow: 0 4px 10px rgba(26, 58, 110, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.voice-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(26, 58, 110, 0.28);
}

/* エントリー側も高さを揃えて中央寄せ */
.entry-cta-box {
    flex: 1 1 0;
    min-width: 0;
}

.entry-cta-box .apply-cta {
    height: 78%;
    min-height: 360px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ---------------------------------- */
/* レスポンシブ対応 */
/* ---------------------------------- */
@media (max-width: 768px) {

    /* ページタイトル */
    .page-hero {
        padding: 100px 20px 20px;
    }

    .page-hero h1 {
        font-size: 2em;
    }

    .page-hero p {
        font-size: 1em;
    }

    /* コンテンツ */
    .section {
        padding: 40px 20px;
    }

    .message-box {
        padding: 30px 20px;
    }

    .training-section {
        padding: 30px 20px;
    }

    /* 募集要項テーブル */
    .requirement-table,
    .requirement-table tbody,
    .requirement-table tr,
    .requirement-table td,
    .requirement-table th {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .requirement-table th {
        text-align: center;
        border-bottom: none;
    }

    .requirement-table td {
        padding-top: 5px;
        padding-bottom: 25px;
        margin-bottom: 20px;
        border-top: none;
        border-bottom: 1px dashed #000000;
        background-color: #ffffff;
    }

    /* 待遇・福利厚生リスト */
    .benefit-list {
        flex-direction: column;
        gap: 15px;
    }

    .benefit-list li {
        width: 90%;
    }

    /* CTA */
    .apply-cta {
        padding: 50px 20px;
    }

    .cta-row {
        flex-direction: column;
        gap: 16px;
        padding: 0 17px;
        margin: 32px 0;
        align-items: stretch;
    }

    .cta-row .voice-cta-box {
        min-height: 500px;
        order: 1;
    }

    .cta-row .entry-cta-box {
        order: 2;
    }
}