/* ---------------------------------- */
/* アニメーション用キーフレーム */
/* ---------------------------------- */
@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);
    }
}

/* 追加: スクロールで表示時にホバー風アニメーション */
@keyframes voice-button-hover-in {
    0% {
        transform: translateY(6px);
        box-shadow: 0 2px 8px rgba(26, 58, 110, 0.18);
    }

    60% {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(26, 58, 110, 0.3);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(26, 58, 110, 0.2);
    }
}

@keyframes voice-button-tint {

    0%,
    100% {
        background: linear-gradient(135deg, #1a3a6e, #3c5fa3);
    }

    50% {
        background: linear-gradient(135deg, #142c56, #2f4d85);
    }
}

/* ---------------------------------- */
/* 基本・共通スタイル */
/* ---------------------------------- */
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: #ffffff;
}

/* ---------------------------------- */
/* スクロールアニメーション */
/* ---------------------------------- */
.scroll-fade {
    letter-spacing: 0.2em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade.active {
    opacity: 1;
    transform: translateY(0);
    color: #000000;
}

.scroll-fade2 {
    font-size: 1.2em;
    letter-spacing: 0.2em;
    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;
    transform: translateY(0);
    color: #ffffff;
}

/* ---------------------------------- */
/* ページタイトル（ヒーロー） */
/* ---------------------------------- */
.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: 30px 80px;
    text-align: center;
}

.section.dark {
    background-color: #ffffff;
    border-top: 5px solid #ffffff;
    border-bottom: 5px solid #ffffff;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #000000;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background-color: #1a3a6e;
    margin: 10px auto 0;
    transition: width 0.3s;
}

.section:hover h2::after {
    width: 80%;
}

/* ---------------------------------- */
/* 求める人物像 */
/* ---------------------------------- */
.desired-person {
    max-width: 1300px;
    margin: 80px auto;
    background-color: #fff;
    padding: 5px 30px 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.section-title {
    letter-spacing: 0.2em;
    text-align: center;
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 10px;
    text-transform: uppercase;
    opacity: 0;
    animation: slide-in-from-top 1s ease-out forwards;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: #3498db;
    margin: 0 auto 40px;
    border: none;
    border-radius: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: slide-in-from-top 1s ease-out forwards;
}

.traits {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.trait {
    padding-left: 32px;
    position: relative;
}

.trait::before {
    content: '✔';
    position: absolute;
    left: 350px;
    top: 18px;
    font-size: 1.4em;
    color: #3498db;
}

.trait h3 {
    letter-spacing: 0.2em;
    font-size: 1.4em;
    margin-bottom: 8px;
    color: #000000;
    text-transform: uppercase;
    opacity: 0;
    animation: slide-in-from-top 1s ease-out forwards;
}

.trait p {
    letter-spacing: 0.2em;
    font-size: 1.1em;
    line-height: 1.7;
    color: #000000;
}

/* 求める人物像：段落間隔を詰める（1つ目と3つ目） */
.trait--tight p {
    margin: 15;
}

.trait--tight p+p {
    margin-top: 0.85em;
}

.trait-title--offset {
    position: relative;
    left: 20px;
}

/* ---------------------------------- */
/* 採用フロー */
/* ---------------------------------- */
.recruit-flow {
    max-width: 1300px;
    margin: 80px auto;
    background-color: #fff;
    padding: 80px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.flow-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
}

.flow-title {
    letter-spacing: 0.2em;
    margin-left: 220px;
    font-size: 2.4em;
    font-weight: bold;
    color: #2c3e50;
    writing-mode: horizontal-tb;
    text-align: center;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-transform: uppercase;
    opacity: 0;
    animation: none;
    /* スクロールで表示させる */
    will-change: transform, opacity;
}

.flow-title.scroll-fade.active {
    color: #000000;
}

.flow-steps {
    margin-left: 200px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
    text-transform: uppercase;
    opacity: 0;
    animation: none;
    /* スクロールで表示させる */
    will-change: transform, opacity;
}

.flow-steps.scroll-fade.active {
    color: #000000;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #1a3a6e;
    min-width: 40px;
    text-align: center;
    position: relative;
}

.step-number::after {
    content: '･････････';
    position: absolute;
    left: 100%;
    top: 25px;
    margin-left: 10px;
    font-size: 0.2em;
    color: #000000;
}

.step:last-child .step-number::after {
    display: block;
}

.step-content {
    margin-left: 70px;
    margin-top: 18px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #444;
}

.recruit-flow .flow-steps .step:nth-child(2) .step-content {
    margin-left: -126px;
}

.recruit-flow .flow-steps .step:nth-child(2) .note {
    margin-left: 190px;
}

.note {
    font-size: 0.9em;
    color: #888;
    display: block;
    margin-top: 4px;
}

/* ---------------------------------- */
/* オフィス紹介（スライダー） */
/* ---------------------------------- */
.office-slider {
    max-width: 1000px;
}

.office-slider .slide {
    outline: none;
}

.office-slider img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    display: block;
}

.office-caption {
    align-items: center;
    margin-top: 70px;
    color: #222;
    font-size: 1.8em;
    letter-spacing: 0.2em;
    font-weight: bold;
}

.office-caption2 {
    align-items: center;
    margin-top: 40px;
    color: #222;
    font-size: 1.2em;
    letter-spacing: 0.2em;
    font-weight: bold;
}

/* slick の矢印とドットの色をブランドカラーに */
.slick-prev:before,
.slick-next:before {
    color: #1a3a6e;
    font-size: 28px;
}

.slick-dots li button:before {
    color: #1a3a6e;
    opacity: 0.4;
}

.slick-dots li.slick-active button:before {
    color: #1a3a6e;
    opacity: 1;
}

/* オフィス紹介を横幅いっぱい＆画像を大きく */
.section.section--wide {
    padding-left: 0;
    padding-right: 0;
}

.section.section--wide .office-slider {
    max-width: none;
    /* 既存の max-width を無効化 */
    width: min(1350px, 96vw);
    margin: 10px auto 0;
    position: relative;
    /* 画像高さを変数にしてレスポンシブで調整する（ドットの固定位置に使用） */
    --office-img-h: 420px;
}

/* オフィス紹介 見出しの下余白だけ調整 */
.section.section--wide h2 {
    margin-bottom: 25px;
}

.section.section--wide .office-slider img {
    height: 420px;
}

/* 矢印・ドットもサイズアップ */
.slick-prev:before,
.slick-next:before {
    font-size: 36px;
}

.slick-dots li button:before {
    font-size: 14px;
}

/* オフィス紹介スライダーの矢印位置を個別に調整 */
.section.section--wide .office-slider .slick-prev,
.section.section--wide .office-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 152px;
    line-height: 152px;
}

.section.section--wide .office-slider .slick-prev {
    top: 240px;
    left: -64px;
}

.section.section--wide .office-slider .slick-next {
    top: 240px;
    right: -64px;
}

/* オフィス紹介スライダーのドット位置を少し上へ */
.section.section--wide .office-slider {
    position: relative;
}

.section.section--wide .office-slider .slick-dots {
    /* ドットを画像の下に固定配置（キャプションの高さ変化に影響されない） */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(var(--office-img-h) + 16px);
    bottom: auto;
    z-index: 5;
    pointer-events: auto;
}

/* ---------------------------------- */
/* 募集職種 */
/* ---------------------------------- */
.job-listings {
    max-width: 1100px;
    margin: 0 auto;
}

.job-item {
    border-left: 5px solid #1a3a6e;
    box-shadow: 0 4px 15px rgba(26, 58, 110, 0.2);
    background-color: #ffffff;
    border-radius: 8px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.job-item h3 {
    letter-spacing: 0.1em;
    font-size: 1.3em;
    margin: 0;
    color: #000000;
}

.job-item p {
    letter-spacing: 0.1em;
    font-size: 1.1em;
    margin: 5px 0 0;
    color: #1a3a6e;
    font-weight: 700;
}

.apply-button {
    letter-spacing: 0.1em;
    display: inline-block;
    padding: 10px 25px;
    background-color: #1a3a6e;
    color: #ffffff;
    border-radius: 3px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.apply-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* ---------------------------------- */
/* CTA（先輩の声＋エントリー） */
/* ---------------------------------- */
.voice-button {
    letter-spacing: 0.1em;
    display: inline-block;
    padding: 19px 90px;
    background: linear-gradient(135deg, #1a3a6e, #3c5fa3);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(26, 58, 110, 0.2);
    margin-top: -60px;
    margin-left: 0px;
    transition: transform 0.5s;
    /* 既存の効いていた（後勝ち）挙動を維持 */
}

.voice-button:hover {
    background: linear-gradient(135deg, #142c56, #2f4d85);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(26, 58, 110, 0.3);
}

/* .scroll-fade.active の黒文字上書き回避＆発火 */
.voice-button.scroll-fade.active {
    color: #fff;
    animation: voice-button-hover-in 800ms ease-out 0.1s both,
        voice-button-tint 1200ms ease-in-out 0.1s 1;
}

/* 見出し＋ボタンを四角で囲む */
.voice-cta-box {
    max-width: 900px;
    margin: -8px 0 0 0;
    padding: 30px;
    border: 2px solid #1a3a6e;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(26, 58, 110, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    height: auto;
    transition: transform 0.5s;
}

.voice-cta-box .voice-button {
    position: static;
    display: inline-flex;
    margin: 8px 20px 20px 20px;
    width: auto;
    justify-content: center;
    transition: transform 0.5s;
    font-size: 1.1em;
}

/* voice-cta と entry-cta を横並びに */
.cta-row {
    max-width: 1500px;
    height: auto;
    margin: 60px auto 50px;
    padding: 0px 0px 60px;
    display: flex;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
}

/* 内側の .section は枠のパディングを使うのでリセット */
.cta-row .section {
    padding: 0;
}

.cta-row .voice-cta-box,
.cta-row .entry-cta-box {
    flex: 1 1 0;
    min-width: 0;
}

/* エントリーCTA */
.entry-cta {
    max-width: 1000px;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 30px;
    background-color: #1a3a6e;
    margin-top: 60px;
    border-radius: 8px;
    transition: transform 0.5s;
}

.entry-cta:hover {
    transform: scale(1.01);
}

.entry-cta h2 {
    color: #ffffff;
    margin-top: 0;
}

.entry-cta h2::after {
    background-color: #ffffff;
}

.entry-cta a {
    background-color: #ffcc99;
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 700;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.2s;
}

.entry-cta a:hover {
    background-color: #ffcc99;
    color: #000000;
    transform: translateY(-2px);
}

/* entry-cta をボックス内で中央寄せ */
.entry-cta-box .entry-cta {
    height: 87%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*スマホサイズのみ表示*/
.sp-only {
    display: none;
}

/* ---------------------------------- */
/* レスポンシブ対応 */
/* max-width は「大きい→小さい」の順に配置（小さい方が上書きされるため） */
/* ---------------------------------- */
@media (max-width: 1200px) {
    .section.section--wide .office-slider img {
        height: 560px;
    }

    .section.section--wide .office-slider {
        --office-img-h: 560px;
    }
}

@media (max-width: 900px) {

    .section.section--wide .office-slider .slick-prev {
        top: 172px;
        left: -64px;
    }

    .section.section--wide .office-slider .slick-next {
        top: 172px;
        right: -64px;
    }

    /* オフィス紹介 */
    .section.section--wide h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .section.section--wide .office-slider {
        width: 100vw;
        margin: 0 auto;
    }

    .section.section--wide .office-slider img {
        height: 320px;
    }

    .section.section--wide .office-slider {
        --office-img-h: 320px;
    }

    .office-caption {
        font-size: 1.3em;
        margin-top: 60px;
    }

    .office-caption2 {
        font-size: 1em;
        margin-top: 8px;
        padding: 0 16px;
        line-height: 1.8;
    }

    /* 矢印（モバイル時は内側に寄せる） */
    .section.section--wide .office-slider .slick-prev {
        left: -8px;
    }

    .section.section--wide .office-slider .slick-next {
        right: 25px;
    }

    /* ドット（モバイル時も画像下に固定で表示） */
    .section.section--wide .office-slider .slick-dots {
        top: calc(var(--office-img-h) + 16px);
        left: 48%;
        transform: translateX(-50%);
        bottom: auto;
    }

    /* trait 見出し */
    .trait h3 {
        text-align: center;
    }

    /* CTA（900px以下でも縦積み） */
    .cta-row {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
        margin: 36px 0 0;
        align-items: stretch;
    }

    .cta-row .section {
        padding: 0;
    }

    /* ----------------------------------------------------------------- */
    /* 文字列の途中で改行させたい箇所に .sp-only クラスを追加(使用しないかも)*/
    /* 詳しくはhttps://share-code.net/responsive-new-line/ */
    /* ----------------------------------------------------------------- */
    .sp-only {
        display: block;
    }
}

@media (max-width: 768px) {

    /* ページタイトル */
    .page-hero {
        padding: 100px 20px 20px;
    }

    .page-hero h1 {
        font-size: 2.1em;
    }

    .page-hero p {
        font-size: 1em;
    }

    /* セクション共通 */
    .section {
        padding: 32px 16px;
        text-align: center;
    }

    .section h2 {
        font-size: 1.8em;
        margin-bottom: 22px;
    }

    .section h2::after {
        width: 64%;
        height: 3px;
    }

    /* 「未経験からSEへ」本文 */
    .section>p {
        font-size: 1em !important;
        line-height: 1.8;
        padding: 0 25px;
    }

    /* 求める人物像 */
    .desired-person {
        margin: 32px 12px;
        padding: 20px 16px;
    }

    .section-title {
        font-size: 1.5em;
        margin-bottom: 8px;
    }

    .section-divider {
        margin-bottom: 24px;
    }

    .traits {
        gap: 18px;
    }

    .trait {
        padding-left: 0;
    }

    .trait h3 {
        font-size: 1.05em;
        text-align: center;
    }

    .trait p {
        font-size: 0.95em;
    }

    /* ✔ アイコンを中央へ */
    .trait::before {
        position: relative;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        display: block;
        margin-bottom: 6px;
        font-size: 1.2em;
    }

    .trait-title--offset {
        left: 0;
    }

    /* 採用フロー */
    .recruit-flow {
        margin: 32px 12px;
        padding: 24px 16px;
    }

    .flow-container {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .flow-title {
        margin-left: 0;
        font-size: 1.5em;
        text-align: left;
        justify-content: flex-start;
    }

    .flow-steps {
        margin-left: 0;
        gap: 14px;
    }

    .step {
        align-items: center;
        gap: 10px;
    }

    .step-number {
        font-size: 1.6em;
        min-width: 32px;
    }

    .flow-steps .step .step-number::after {
        display: none;
    }

    .step-content {
        margin-left: 0;
        margin-top: 0;
        font-size: 1em;
        line-height: 1.7;
        text-align: left;
    }

    /* 個別調整のリセット */
    .recruit-flow .flow-steps .step:nth-child(2) .step-content,
    .recruit-flow .flow-steps .step:nth-child(2) .note {
        margin-left: 0;
    }

    /* 募集職種 */
    .job-listings {
        padding: 0 8px;
    }

    .job-item {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .job-item h3 {
        font-size: 1.1em;
    }

    .job-item p {
        font-size: 0.95em;
    }

    .apply-button {
        width: 85%;
        text-align: center;
    }

    /* CTA（エントリー） */
    .entry-cta {
        margin: 36px 12px 0;
        padding: 20px 16px;
    }

    .entry-cta h2 {
        font-size: 1.2em;
    }

    .entry-cta a {
        width: 100%;
        box-sizing: border-box;
    }

    /* 先輩の声ボタン */
    .voice-button {
        display: block;
        margin: 16px auto 0;
        margin-left: 0;
        font-size: 14px;
        padding: 20px 75px;
    }

    /* オフィス紹介スライダー */
    .section.section--wide .office-slider {
        width: 100vw;
        margin: 0 auto;
        position: relative;
        --office-img-h: 290px;
    }

    .section.section--wide .office-slider img {
        width: 93%;
        height: 300px;
    }

    .office-caption {
        font-size: 1.1em;
        /* ドットと重ならないようマージントップを確保 */
        margin-top: 48px;
        margin-left: -10px;
    }

    .office-caption2 {
        font-size: 0.95em;
        padding: 0 16px;
        line-height: 1.8;
        margin-left: -20px;
    }

    .slick-prev:before,
    .slick-next:before {
        font-size: 24px;
    }

    /* 画像のはみ出し防止（保険） */
    img {
        max-width: 100%;
        height: auto;
    }

    /* CTA行を縦並び＋順序固定 */
    .cta-row {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
        margin: 32px 0;
        align-items: stretch;
    }

    .cta-row .section {
        padding: 0;
    }

    .cta-row .voice-cta-box,
    .cta-row .entry-cta-box {
        width: 100%;
        max-width: none;
        position: static;
    }


    /* 先輩たちの声 → 上、エントリー → 下 */
    .cta-row .voice-cta-box {
        order: 1;
        opacity: 1 !important;
        transform: none !important;
    }

    .cta-row .voice-cta-box .scroll-fade,
    .cta-row .voice-cta-box .scroll-fade2 {
        opacity: 1 !important;
        transform: none !important;
    }

    .cta-row .entry-cta-box {
        order: 2;
        margin-top: 0;
    }

    .cta-row .entry-cta-box .entry-cta {
        margin-top: 0;
        height: auto;
    }

    .sp-only {
        display: block;
    }
}

/* ---------------------------------- */
/* モーション軽減 */
/* ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .voice-button.scroll-fade.active {
        animation: none;
    }
}