/* ---------------------------------- */
/* アニメーション用キーフレーム */
/* ---------------------------------- */
/* フェードイン（下から上へスライドしながら出現）*/
@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);
    }
}

/* ---------------------------------- */
/* 基本・共通スタイル */
/* ---------------------------------- */
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 {
    font-size: 1.1em;
    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: #ffffff;
    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: 10%;
}

/* ---------------------------------- */
/* メッセージ */
/* ---------------------------------- */
.message-box {
    border-left: 5px solid #1a3a6e;
    box-shadow: 0 4px 15px rgba(26, 58, 110, 0.2);
    background-color: #ffffff;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 50px;
    margin-bottom: 60px;
    text-align: center;
}

.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;
}

/* ---------------------------------- */
/* 募集要項テーブル */
/* ---------------------------------- */
.requirement-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
}

.requirement-table tr {
    transition: background-color 0.3s;
}

.requirement-table tr:hover {
    background-color: #ffffff;
}

.requirement-table th,
.requirement-table td {
    letter-spacing: 0.1em;
    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 {
    letter-spacing: 0.1em;
    color: #000000;
    margin-top: 0;
    font-size: 1.1em;
    border-bottom: 1px dashed #ffffff;
    padding-bottom: 5px;
}

.salary-example ul {
    letter-spacing: 0.1em;
    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 {
    letter-spacing: 0.1em;
    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.2em;
    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 {
    letter-spacing: 0.1em;
    color: #ffffff;
    margin: 0;
}

.apply-cta h2::after {
    background-color: #ffffff;
}

/* ---------------------------------- */
/* レスポンシブ対応 */
/* ---------------------------------- */

@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;
    }

    /* 募集要項テーブル */
    .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: 30px 20px;
    }
}