@charset "UTF-8";

body {margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;}
.container {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}
.container_in {
    max-width: 1500px;
    margin: 0 auto;
}
.fv_area {
    position: relative;
}
.fv_area img {
    width: 100%;
}
.fv_text span {
    position: absolute;
    background-color: rgb(0, 0, 99);
    color: #fff;
    font-size: 2.5vw;
    font-weight: bold;
    padding: 10px 20px;
}
.fv_text-01 {
    top: 50%;
    right: 2%;
}
.fv_text-02 {
    top: 60%;
    right: 2%;
}
.fv_text-03 {
    top: 70%;
    right: 2%;
}

/* ---------- flex（汎用2カラム） ---------- */
.flex {
    display: flex;
    gap: 40px;
    align-items: center;
}
.flex > * {
    flex: 1;
    min-width: 0;
}
.flex img {
    width: 100%;
    height: auto;
    display: block;
}
/* 横幅の比率（数字の比で並ぶ。例：col_4 と col_6 で 4:6） */
.flex > .col_3 { flex: 3; }
.flex > .col_4 { flex: 4; }
.flex > .col_6 { flex: 6; }
.flex > .col_7 { flex: 7; }
/* 左右を入れ替える */
.flex.reverse {
    flex-direction: row-reverse;
}
/* 上揃え */
.flex.top {
    align-items: flex-start;
}
/* スマホでは縦並び */
@media screen and (max-width: 768px) {
    .flex,
    .flex.reverse {
        flex-direction: column;
        gap: 20px;
    }
    .flex > * {
        width: 100%;
        box-sizing: border-box; /* 横幅100%に余白（padding）を含め、右にはみ出さないように */
    }
}

/* ---------- ファーストビュー（画面いっぱいの2カラム） ---------- */
.fv_flex {
    height: calc(100vh - 70px);
    height: calc(100svh - 70px); /* 画面の高さ − ヘッダー（70px）。svh はスマホのアドレスバー分を除いた高さ */
    align-items: stretch;
    position: relative;
    z-index: 1; /* 下のキャッチ背景より手前 */
    background-color: #fff;
    border-radius: 0 0 50px 50px; /* 右下・左下 */
    overflow: hidden; /* 画像も角丸で切り取る */
}
/* 画像を左カラムの高さいっぱいに広げる */
.fv_flex .fade_slider {
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
}
.fv_flex .fade_slider_comment {
    align-self: center;
    padding: 0 40px;
}
@media screen and (max-width: 768px) {
    .fv_flex {
        height: auto;
        /* 1画面目（画面の高さ − ヘッダー60px）を埋め、下のキャッチコピーはスクロールしてから見えるように */
        min-height: calc(100vh - 60px);
        min-height: calc(100svh - 60px);
        gap: 30px;
        border-radius: 0 0 10px 10px; /* 右下・左下（コメント部分の下の角） */
    }
    /* コメントは残りの高さの上下中央に */
    .fv_flex .fade_slider_comment {
        display: flex;
        align-items: center;
    }
    .fv_flex .fade_slider {
        flex: none; /* height を優先させる */
        height: auto;
        aspect-ratio: 4 / 3; /* 画面の幅に合わせた横長の比率（375px 幅なら高さ約280px） */
    }
    .fv_flex .fade_slider_comment {
        padding: 0 20px 40px;
    }
    .fv_flex .line_reveal_line {
        font-size: 18px;
        line-height: 2;
    }
}

/* ---------- 平行四辺形の背景付き見出し（汎用） ---------- */
.skew_title {
    position: relative;
    isolation: isolate; /* 背景を見出しの後ろに収める */
    width: fit-content; /* 背景を文字の長さに合わせる */
    font-size: 50px;
    color: #fff;
    padding: 10px 30px;
}
/* 背景だけを傾ける（文字はまっすぐのまま） */
.skew_title::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: #0c0061;
    transform: skewX(-15deg); /* 上側が右へずれる */
    box-shadow: 2px 2px 4px #242424;
}
/* 強調したい部分だけ大きく（見出しの文字サイズに対する倍率） */
.skew_title .text_big {
    font-size: 1.4em;
}
@media screen and (max-width: 768px) {
    .skew_title {
        font-size: 24px;
        padding: 8px 20px;
    }
}

/* ---------- キャッチコピー（画像の左側に見出しを重ねる） ---------- */
/* 上下の角丸（50px）の後ろにも背景画像が見えるよう、上下に50pxずつ潜り込ませる */
.catch_area {
    position: relative;
    margin: -50px 0;
    padding: calc(50px + 150px) 40px; /* 潜り込ませた分＋上下の余白 */
    background: url(https://yonezawads.com/wp-content/themes/yonezawa-g/img/kyujin/kyujin_img_10.jpg) center / cover no-repeat;
}
.sub_title span {
    background-color: #fff;
    font-size: 30px;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: bold;
    color: #00BCD4;
    box-shadow: 2px 2px 4px #242424;
}
@media screen and (max-width: 768px) {
    .catch_area {
        padding: calc(50px + 60px) 20px;
    }
}

/* ---------- 下から上にスライドイン（汎用） ---------- */
/* 開始を遅らせたいときは style="--delay: 1s" のように指定 */
.slide_up {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
}
.slide_up.is-show {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease var(--delay, 0s), transform 0.8s ease var(--delay, 0s);
}
@media (prefers-reduced-motion: reduce) {
    .slide_up.is-show {
        transition: none;
    }
}

/* ---------- 1文字ずつスライドイン（汎用） ---------- */
/* 各文字は JS で span.char_slide_char に分割される */
.char_slide_char {
    display: inline-block;
    opacity: 0;
    transform: translateX(-0.6em);
}
.char_slide.is-show .char_slide_char {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: calc(var(--i) * 0.05s); /* 0.05秒ずつずらす */
}
@media (prefers-reduced-motion: reduce) {
    .char_slide.is-show .char_slide_char {
        transition: none;
    }
}

.bgi_area {
    background:
        linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 70%),
        url(https://yonezawads.com/wp-content/themes/yonezawa-g/img/kyujin/kyujin_img_02.jpg);
    height: 1000px;
    padding: 50px 0;
    position: relative; /* キャッチ背景より手前 */
    border-radius: 50px 50px 0 0; /* 左上・右上 */
}
.bgi_area .container_in h3 {
    font-size: 55px;
    text-align: center;
}
.bgi_area .container_in p {
    margin-top: 20px;
    font-size: 30px;
}
/* ---------- 紹介エリア（縦スライダー＋文章の2カラム） ---------- */
.intro_area {
    position: relative; /* キャッチ背景より手前 */
    background: linear-gradient(to bottom, #003085, #52aaff); /* 上から下へ少し明るく */
    border-radius: 50px; /* 四隅（上はキャッチ背景、下は次のセクションの上に重なる） */
    overflow: hidden; /* 角丸からスライダーをはみ出させない */
    height: 1000px; /* PC では高さ固定 */
    color: #fff;
}
/* 1000px の高さを中の .flex まで伝える */
.intro_area .container_in,
.intro_area .flex {
    height: 100%;
}
.intro_area .flex {
    align-items: stretch; /* 左の縦スライダーをエリアの高さいっぱいに */
    gap: 0;
}
/* 左：スライダーは画面の左端・上下いっぱいに */
.intro_area .v_slider {
    flex: 0 0 30%;
}
/* 右：文章は上下中央 */
.intro_area .intro_text {
    align-self: center;
    max-width: 820px;
    padding: 0 8%;
}
.intro_text h3 {
    margin: 0 0 40px;
    font-size: 50px;
}
.intro_text p {
    margin: 0 0 40px;
    font-size: 21px;
    line-height: 2;
}

/* ---------- 縦方向に自動で流れるスライダー（汎用） ---------- */
/* 画像は JS で1セット複製し、半分（1セット分）流れたら最初に戻してループ */
.v_slider {
    position: relative;
    overflow: hidden;
    max-width: 600px; /* 画像の最大幅 */
}
.v_slider ul {
    position: absolute; /* 枠の高さは右カラムに合わせ、画像の量で伸ばさない */
    top: 0;
    left: 0;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    animation: v_slider_move 40s linear infinite;
}
.v_slider li {
    padding-bottom: 20px; /* 画像の間隔（gap だと継ぎ目がずれるので padding で） */
}
/* 画像は元の比率のまま表示 */
.v_slider img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}
@keyframes v_slider_move {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}
/* スマホ用：横方向（1セット分＝全体の半分 流れたら最初に戻る） */
@keyframes v_slider_move_x {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media screen and (max-width: 768px) {
    .intro_area {
        height: auto; /* スマホは中身に合わせる */
        padding-bottom: 60px;
    }
    .intro_area .flex {
        gap: 40px;
        flex-flow: wrap-reverse;
    }
    .intro_area .intro_text {
        box-sizing: border-box; /* 横幅100%に余白を含める（含めないと右にはみ出して切れる） */
        padding: 0 10px;
    }
    .intro_text h3 {
        font-size: 28px;
    }
    .intro_text p {
        font-size: 16px;
    }
    .v_slider,
    .intro_area .v_slider {
        flex: none; /* height を優先させる */
        height: 400px;
        margin: 0 auto; /* 600px 未満で中央寄せ */
    }
}
@media (prefers-reduced-motion: reduce) {
    .v_slider ul {
        animation: none;
    }
}

ul.osusume_point {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
/* 幅は文字の長さに合わせ、入りきらなければ次の行へ（1行に並ぶ数は自動で変わる） */
ul.osusume_point li {
    flex: 1 1 auto; /* 行の余った幅は均等に分けて右端まで揃える */
    box-sizing: border-box;
    background-color: #0c0061;
    color: #fff;
    padding: 15px 25px;
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    border-radius: 10px;
    white-space: nowrap; /* 項目の途中で改行しない */
    flex: 0 1 auto;
}
@media screen and (max-width: 768px) {
    ul.osusume_point {
        gap: 10px;
    }
    ul.osusume_point li {
        padding: 10px 15px;
        font-size: 18px;
    }
}

/* ---------- フェード切り替え（汎用） ---------- */
/* 画像を同じ場所に重ね、is-active の画像だけ表示する */
.fade_slider {
    display: grid;
}
.fade_slider img {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
}
.fade_slider img.is-active {
    opacity: 1;
}

/* ---------- 1行ずつふわっと表示（汎用） ---------- */
/* 各行は JS で span.line_reveal_line に分割される */
.line_reveal_line {
    display: block;
    opacity: 0;
    transform: translateX(-20px);
    font-size: 35px;
    font-family: "Noto Serif JP", serif;
    font-optical-sizing: auto;
    font-style: normal;
    line-height: 2.5;
}
.line_reveal.is-show .line_reveal_line {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: calc(var(--i) * 1s); /* 1秒ずつずらす */
}
@media (prefers-reduced-motion: reduce) {
    .line_reveal.is-show .line_reveal_line {
        transition: none;
    }
}

/* ---------- ストライプ背景（付けた要素の背景にだけ敷く） ---------- */
.bg_stripe {
    position: relative;
    isolation: isolate; /* ::before を要素の外（ページ全体の背面）に出さない */
}
.bg_stripe::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient( -45deg, #00bcd4, #00bcd4 10px, #f3efe6 10px, #f3efe6 50px );
    opacity: 0.4; /* 中の文字は薄くならない */
    z-index: -1;
}

#senpainokoe {
    border-radius: 20px;
    margin: 40px 100px;
}
/* ストライプは ::before に敷いているので、同じ丸みを引き継ぐ */
#senpainokoe::before {
    border-radius: inherit;
}
/* 見出しボックス：section の左上に重ねる（absolute なのでスライダーは下がらない） */
/* セクション見出し（共通）：上に小さい英字、下に日本語 */
.sec_title {
    font-size: 50px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 500;
    font-style: normal;
}
.sec_title span {
    font-size: 25px;
    color: #00BCD4;
}
.senpai_head {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3; /* スライダーより手前 */
    box-sizing: border-box;
    width: 700px;
    padding: 20px;
    background-color: #fff;
    border-radius: 20px 0 50px; /* 左上は section の角丸に合わせる */
}
.senpai_head p {
    font-size: 25px;
}
@media screen and (max-width: 768px) {
    /* スマホではスライダーに被らないよう通常の配置に戻す */
    .senpai_head {
        position: static;
        width: auto;
    }
}
#senpainokoe .flex h2 {
    font-size: 50px;
    text-align: right;
}
#senpainokoe .flex p {
    font-size: 25px;
}

.jikoshokai {
    background-color: #ffffff;
    border: 3px solid #141414;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: bold;
    text-align: center;
}
p.yakushoku {
    font-size: 20px;
}
p.namae {
    font-size: 30px;
    color: #0c0061;
}
/* ---------- 教習指導員への道のり（ステップ） ---------- */
#michinori {
    position: relative; /* 下に潜り込む募集要項より手前 */
    background-color: #FFEB3B;
    border-radius: 100px;
    padding-top: 50px;
    padding-bottom: 50px;
}
#michinori h2 {
    font-size: 50px;
    margin-bottom: 0;
    position: relative;
    padding: 1rem 2rem calc(1rem + 8px);
    background: #fff;
}
#michinori h2:before {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    content: '';
    border: 4px solid #000;
    box-sizing: border-box; /* 線の太さ込みで h2 と同じ大きさにする（ないと8px大きくなり、ずれが消える） */
}
#michinori p {
    font-size: 25px;
}
.step_list .step_item {
    margin-top: 60px;
    background-color: #fff;
    padding: 10px;
}
/* 偶数番目は写真と文字を左右入れ替え */
.step_list .step_item:nth-child(even of .step_item) {
    flex-direction: row-reverse;
}
/* 写真を青背景より手前に出す */
.step_img {
    position: relative;
    z-index: 1;
}
.step_img img {
    border-radius: 8px;
}
.step_text {
    position: relative;
    isolation: isolate; /* 番号が親の背景より後ろに隠れないように */
    padding: 50px 40px 40px; /* 上は番号が重なる分の余白 */
}
/* 青背景：写真側へ（間隔40px＋写真の下に100px）はみ出させる */
/*
.step_text::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(-40px - 100px);
    right: 0;
    z-index: -2;
    background-color: #0f6bbb;
}
    /*
/* 偶数番目は写真が右なので、右側へはみ出させる */
/*
.step_list .step_item:nth-child(even of .step_item) .step_text::before {
    left: 0;
    right: calc(-40px - 100px);
}
    */
.step_num {
    position: absolute;
    top: 0;
    right: 30px;
    z-index: -1; /* 見出しの後ろに回す */
    font-size: 80px;
    font-weight: bold;
    line-height: 1;
    color: #ffdc75;
}
.step_text h3 {
    margin: 0 0 20px;
    font-size: 35px;
}
.step_text p {
    margin: 0;
    font-size: 25px;
    line-height: 1.8;
}
@media screen and (max-width: 768px) {
    .step_list .step_item {
        margin-top: 40px;
    }
    .step_list .step_item:nth-child(even of .step_item) {
        flex-direction: column;
    }
    .step_text {
        padding: 40px 20px 30px;
    }
    /* スマホは写真が上なので、上側へ（間隔20px＋写真の下に60px）はみ出させる */
    .step_text::before,
    .step_list .step_item:nth-child(even of .step_item) .step_text::before {
        top: calc(-20px - 60px);
        left: 0;
        right: 0;
    }
    .step_num {
        font-size: 60px;
        right: 10px;
    }
    .step_text h3 {
        font-size: 20px;
    }
}

/* ---------- 見出し：左下に円の飾り（汎用） ---------- */
.heading-29 {
    display: inline-block;
    position: relative;
    margin: calc(3.5em / 2) 0 calc(3.5em / 4) calc(3.5em / 2);
    color: #333333;
    line-height: 1;
}
.heading-29::before {
    position: absolute;
    bottom: calc(-3.5em / 4);
    left: calc(-3.5em / 2);
    z-index: -1;
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    background: #bddaf7a6;
    content: '';
}

/* ---------- 自動車学校で働くメリット ---------- */
/* 上の .intro_area の下の角丸の後ろにも背景色が見えるよう、50px 潜り込ませる */
.merit_area {
    margin-top: -50px;
    padding: calc(50px + 50px) 0 100px; /* 潜り込ませた分＋元の上余白 */
    background-color: #f7f7f7;
    border-radius: 0 0 100px 100px;
}
.merit_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}
/* 画像と見出しを同じマスに重ね、説明はその下へ */
.merit_list li {
    display: grid;
    grid-template-rows: auto auto;
    background-color: #fff;
    border:1px solid #000;
}
.merit_list img {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    display: block;
}
/* 見出し：画像の左下に白背景で重ね、右上だけ角丸 */
.merit_list h3 {
    grid-area: 1 / 1;
    align-self: end;
    justify-self: start;
    max-width: 85%; /* 長い見出しでも右側に画像が見えるように */
    box-sizing: border-box;
    margin: 0;
    padding: 25px 40px 15px 22px;
    background-color: #fff;
    border-radius: 0 40px 0 0;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.4;
}
/* 円の飾り（.heading-29）をメリットの見出しに合わせて調整 */
.merit_list h3.heading-29 {
    isolation: isolate; /* 円を白背景より手前・文字より後ろにする */
}
.merit_list h3.heading-29::before {
    left: 0; /* 白い見出しの左端から（はみ出してカードの外に出ないように） */
    bottom: calc(25px + 0.7em - 2.5em / 2); /* 円の中心を文字の高さの中央に（下余白15px＋行の半分 − 円の半分） */
}
.merit_list p {
    margin: 0;
    padding: 20px 22px 0;
    font-size: 20px;
    line-height: 2;
    padding-bottom: 20px;
}
@media screen and (max-width: 768px) {
    .merit_list {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .merit_list h3 {
        padding: 15px 25px 10px 15px;
        border-radius: 0 25px 0 0;
        font-size: 20px;
    }
    .merit_list h3.heading-29::before {
        bottom: calc(10px + 0.7em - 2.5em / 2); /* スマホは下余白10px */
    }
    .merit_list p {
        padding: 15px 15px 0;
        font-size: 16px;
        line-height: 1.8;
    }
}

/* ---------- 画像＋文章（文章の白背景を画像の下に潜らせ、少し下げる） ---------- */
.about_box {
    display: flex;
    align-items: flex-start;
    margin-top: 80px;
}
.about_img {
    flex: 0 0 55%;
    position: relative;
    z-index: 1; /* 文章の白背景より手前 */
}
.about_img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}
.about_text {
    flex: 1;
    margin-left: -80px; /* 画像の下に 80px 潜り込ませる */
    margin-top: 100px; /* 画像より下にずらす */
    padding: 50px 50px 50px calc(80px + 40px); /* 左は潜り込ませた分＋余白 */
    background-color: #fff;
    border-radius: 20px;
}
.about_text p {
    margin: 0;
    font-size: 18px;
    line-height: 2;
}
@media screen and (max-width: 768px) {
    /* スマホは縦並び：白背景を画像の下側に潜らせる */
    /* スマホはステップ（.step_item）と同じ見た目：白いカードに写真（幅いっぱい）＋文章 */
    .about_box {
        flex-direction: column;
        margin-top: 40px;
        background-color: #fff;
        border-radius: 12px;
        overflow: hidden;
    }
    .about_img {
        flex: none;
        width: 100%;
    }
    .about_img img {
        border-radius: 0;
    }
    .about_text {
        margin: 0;
        padding: 30px 10px 25px;
        border-radius: 0;
    }
    .about_text p {
        font-size: 16px;
        line-height: 1.8;
    }
}

/* ---------- 募集要項 ---------- */
/* 上の #michinori の下の角丸（100px）の後ろにも背景色が見えるよう、100px 潜り込ませる */
.recruit_area {
    margin-top: -100px;
    padding: calc(100px + 80px) 0 100px; /* 潜り込ませた分＋元の上余白 */
    background-color: #f7f7f7; /* merit_area と同じ */
}
.recruit_area .container_in {
    max-width: 1100px;
    padding: 0 20px;
    box-sizing: border-box;
}
/* 全体：白いカードに角丸 */
.recruit_list {
    margin: 40px 0 0;
    background-color: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 20px;
    overflow: hidden; /* 角丸から項目名の背景をはみ出させない */
}
/* 1行：左に項目名、右に内容 */
.recruit_row {
    display: grid;
    grid-template-columns: 240px 1fr;
}
.recruit_row + .recruit_row {
    border-top: 1px solid #dfe5ef;
}
/* テーマの dt / dd の指定（余白・回り込みなど）を打ち消し、行の間に隙間を作らない */
.recruit_list .recruit_row dt,
.recruit_list .recruit_row dd {
    float: none;
    width: auto;
    margin: 0;
}
.recruit_row + .recruit_row dt {
    border-top: 1px solid rgba(255, 255, 255, 0.25); /* 紺の中の区切り線 */
    margin-top: -1px;
}
.recruit_list dt {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background-color: #20488e;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}
.recruit_list dd {
    margin: 0;
    padding: 30px 40px;
    font-size: 17px;
    line-height: 1.9;
}
.recruit_list dd > * + * {
    margin-top: 20px;
}
.recruit_list p {
    margin: 0;
}
/* 箇条書き：先頭に水色の■ */
.recruit_ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.recruit_ul li {
    position: relative;
    padding-left: 1.2em;
}
.recruit_ul li + li {
    margin-top: 6px;
}
.recruit_ul li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: #00BCD4;
}
/* 補足（※）：小さめ・グレー・改行して表示 */
.recruit_note {
    display: block;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}
/* 囲みボックス（勤務時間・想定月給・内訳） */
.recruit_box {
    padding: 20px 25px;
    background-color: #f7f7f7;
    border-radius: 12px;
}
.recruit_list .recruit_box_title {
    display: inline-block;
    margin-bottom: 10px;
    padding: 2px 14px;
    background-color: #00BCD4;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}
/* 勤務時間：時間を大きく、対象月はラベルで */
.recruit_time {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}
.recruit_time li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
}
.recruit_time li + li {
    margin-top: 8px;
}
.recruit_time_hour {
    color: #20488e;
    font-size: 22px;
    font-weight: bold;
}
.recruit_time_month {
    padding: 0 10px;
    border: 1px solid #20488e;
    border-radius: 4px;
    color: #20488e;
    font-size: 14px;
}
/* 金額の強調 */
.recruit_salary strong,
.recruit_em {
    color: #20488e;
    font-size: 24px;
}
/* 内訳：項目名と金額を左右に振り分け、点線で区切る */
.recruit_breakdown {
    list-style: none;
    margin: 0;
    padding: 0;
}
.recruit_breakdown li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 6px 0;
    border-bottom: 1px dashed #c9d2e0;
}
.recruit_breakdown li span:last-child {
    font-weight: bold;
}
.recruit_breakdown li.is-plus span::before {
    content: "＋ ";
    color: #00BCD4;
    font-weight: bold;
}
.recruit_breakdown li.is-plus span {
    font-weight: normal;
}
/* 合計：右寄せで強調 */
.recruit_list .recruit_total {
    margin-top: 12px;
    text-align: right;
}
.recruit_total strong {
    color: #e8231d;
    font-size: 22px;
}
@media screen and (max-width: 768px) {
    .recruit_area {
        padding: calc(100px + 50px) 0 60px;
    }
    .recruit_area .container_in {
        padding: 0 15px;
    }
    /* スマホは項目名を上、内容を下に */
    .recruit_row {
        grid-template-columns: 1fr;
    }
    .recruit_list dt {
        justify-content: flex-start;
        padding: 12px 20px;
        font-size: 17px;
    }
    .recruit_list dd {
        padding: 20px;
        font-size: 15px;
    }
    .recruit_box {
        padding: 15px;
    }
    .recruit_time_hour {
        font-size: 18px;
    }
    .recruit_salary strong,
    .recruit_em {
        font-size: 19px;
    }
    .recruit_total strong {
        font-size: 18px;
    }
}

/* ---------- よくある質問（details / summary で開閉。JS なし） ---------- */
.faq_area {
    padding: 80px 0 100px;
}
.faq_area .container_in {
    max-width: 1100px;
    padding: 0 20px;
    box-sizing: border-box;
}
.faq_group {
    margin-top: 50px;
}
/* カテゴリ見出し：左に紺の線 */
.faq_cat {
    margin: 0 0 20px;
    padding-left: 14px;
    border-left: 6px solid #20488e;
    color: #20488e;
    font-size: 24px;
    line-height: 1.4;
}
.faq_list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.faq_list li + li {
    margin-top: 12px;
}
.faq_item {
    background-color: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 12px;
    overflow: hidden;
}
/* 質問（クリックで開閉） */
.faq_q {
    position: relative;
    display: block;
    padding: 20px 60px 20px 70px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.6;
    cursor: pointer;
    list-style: none; /* 標準の三角マークを消す */
}
.faq_q::-webkit-details-marker {
    display: none; /* Safari 用 */
}
.faq_q:hover {
    background-color: #f4f7fb;
}
/* Q・A の丸アイコン */
.faq_q::before,
.faq_a::before {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}
.faq_q::before {
    content: "Q";
    top: 50%;
    transform: translateY(-50%);
    background-color: #20488e;
}
/* 右端の ＋ / − アイコン */
.faq_q::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 25px;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    background:
        linear-gradient(#20488e, #20488e) center / 100% 2px no-repeat, /* 横線 */
        linear-gradient(#20488e, #20488e) center / 2px 100% no-repeat; /* 縦線 */
    transition: transform 0.3s ease;
}
.faq_item[open] .faq_q::after {
    transform: translateY(-50%) rotate(90deg);
    background:
        linear-gradient(#20488e, #20488e) center / 100% 2px no-repeat; /* 開いたら − */
}
/* 回答 */
.faq_a {
    position: relative;
    margin: 0 20px;
    padding: 20px 20px 22px 50px;
    border-top: 1px dashed #dfe5ef;
}
.faq_a::before {
    content: "A";
    top: 20px;
    left: 0;
    background-color: #00BCD4;
}
.faq_a p {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
}
.faq_item[open] .faq_a {
    animation: faq_open 0.3s ease;
}
@keyframes faq_open {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media screen and (max-width: 768px) {
    .faq_area {
        padding: 50px 0 60px;
    }
    .faq_area .container_in {
        padding: 0 15px;
    }
    .faq_group {
        margin-top: 35px;
    }
    .faq_cat {
        font-size: 19px;
    }
    .faq_q {
        padding: 16px 45px 16px 58px;
        font-size: 15px;
    }
    .faq_q::before,
    .faq_a::before {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }
    .faq_q::before {
        left: 15px;
    }
    .faq_q::after {
        right: 18px;
        width: 12px;
        height: 12px;
    }
    .faq_a {
        margin: 0 15px;
        padding: 16px 0 18px 43px;
    }
    .faq_a::before {
        top: 16px;
    }
    .faq_a p {
        font-size: 14px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .faq_item[open] .faq_a,
    .faq_q::after {
        animation: none;
        transition: none;
    }
}

/* ---------- アクセス ---------- */
.access_area {
    padding: 80px 0 100px;
    background-color: #f7f7f7;
}
.access_area .container_in {
    max-width: 1100px;
    padding: 0 20px;
    box-sizing: border-box;
}
/* 上段：写真と施設情報の2カラム */
.access_box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}
.access_img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}
/* 施設情報：項目名を紺のラベル、内容を右に */
.access_info {
    margin: 0;
}
.access_row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 20px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid #dfe5ef;
}
.access_row:first-child {
    border-top: 1px solid #dfe5ef;
}
.access_info dt {
    padding: 4px 0;
    background-color: #20488e;
    border-radius: 20px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}
.access_info dd {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
}
.access_tel {
    color: #20488e;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}
/* 下段：地図は横幅いっぱい */
.access_map {
    margin-top: 50px;
    border-radius: 20px;
    overflow: hidden; /* 地図も角丸で切り取る */
}
.access_map iframe {
    display: block;
    width: 100%;
    height: 450px;
}
@media screen and (max-width: 768px) {
    .access_area {
        padding: 50px 0 60px;
    }
    .access_area .container_in {
        padding: 0 15px;
    }
    .access_box {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 25px;
    }
    .access_row {
        grid-template-columns: 70px 1fr;
        gap: 15px;
        padding: 15px 0;
    }
    .access_info dt {
        font-size: 13px;
    }
    .access_info dd {
        font-size: 15px;
    }
    .access_tel {
        font-size: 20px;
    }
    .access_map {
        margin-top: 30px;
    }
    .access_map iframe {
        height: 300px;
    }
}

/* ---------- ページ内リンク ---------- */
html {
    scroll-behavior: smooth;
}
/* 固定ヘッダーに見出しが隠れないよう、ヘッダーの高さ分ずらして止める */
[id] {
    scroll-margin-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ---------- ヘッダー ---------- */
.site_header {
    position: sticky;
    top: 0;
    z-index: 100; /* スライダー等より手前 */
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.site_header_in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1500px;
    height: 70px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
/* ロゴ画像と「採用ページ」を横並びにし、上下中央でそろえる */
.site_logo {
    display: flex;
    align-items: center;
    min-width: 0; /* 画面が狭いときにロゴを縮められるように */
    color: #20488e;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}
.site_logo img {
    display: block;
    flex: 0 1 auto; /* 幅が足りないときは画像だけ縮む（縦横比は保つ） */
    width: auto;
    max-width: 280px;
    height: auto;
    min-width: 0;
}
.site_logo span {
    flex: none;
    margin-left: 8px;
    padding: 2px 10px;
    background-color: #00BCD4;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    line-height: 1.6;
}
.global_nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.global_nav a {
    color: #333;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}
.global_nav a:hover {
    color: #20488e;
}
/* エントリーボタン（ヘッダー・フッター共通の色） */
.global_nav_entry a,
.footer_entry {
    display: inline-block;
    padding: 10px 26px;
    background-color: #e8231d;
    border-radius: 30px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
}
.global_nav .global_nav_entry a:hover,
.footer_entry:hover {
    color: #fff;
    opacity: 0.8;
}
/* ハンバーガーボタン（スマホのみ表示） */
.menu_btn {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    cursor: pointer;
}
.menu_btn span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background-color: #20488e;
    transition: transform 0.3s, opacity 0.3s;
}
.menu_btn span:nth-child(1) { top: 14px; }
.menu_btn span:nth-child(2) { top: 21px; }
.menu_btn span:nth-child(3) { top: 28px; }
/* 開いたら × に */
.menu_btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu_btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu_btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media screen and (max-width: 1100px) {
    .site_header_in {
        height: 60px;
    }
    .site_logo {
        flex: 0 1 auto; /* メニューボタンの残りの幅に収める */
        font-size: 16px;
    }
    .site_logo img {
        max-width: 200px;
        max-height: 44px; /* ヘッダーの高さ（60px）に収める */
    }
    .site_logo span {
        margin-left: 6px;
        padding: 2px 8px;
        font-size: 11px;
    }
    .menu_btn {
        display: block;
        flex: none; /* ロゴに押されて縮まないように */
    }
    /* メニューはヘッダーの下に全画面で開く */
    .global_nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 30px 20px;
        background-color: #fff;
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s, visibility 0.3s;
    }
    .is-menu-open .global_nav {
        visibility: visible;
        opacity: 1;
    }
    .is-menu-open {
        overflow: hidden; /* メニューを開いている間は背面をスクロールさせない */
    }
    .global_nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .global_nav li {
        border-bottom: 1px solid #dfe5ef;
    }
    .global_nav a {
        display: block;
        padding: 18px 10px;
        font-size: 17px;
    }
    .global_nav li.global_nav_entry {
        margin-top: 30px;
        border-bottom: none;
        text-align: center;
    }
    .global_nav .global_nav_entry a {
        padding: 16px;
    }
    [id] {
        scroll-margin-top: 70px;
    }
}

/* ---------- フッター ---------- */
.site_footer {
    background-color: #20488e;
    color: #fff;
}
.site_footer_in {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    box-sizing: border-box;
}
.site_footer_logo {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: bold;
}
.site_footer_info p {
    line-height: 1.8;
}
.site_footer a {
    color: #fff;
}
.footer_nav ul {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 12px 40px;
    list-style: none;
    margin: 0 0 25px;
    padding: 0;
}
.footer_nav ul a {
    text-decoration: none;
}
.footer_nav ul a:hover {
    text-decoration: underline;
}
.site_footer_copy {
    margin: 0;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}
@media screen and (max-width: 768px) {
    .site_footer_in {
        flex-direction: column;
        gap: 30px;
        padding: 40px 15px 30px;
    }
    .footer_entry {
        display: block;
        text-align: center;
    }
}

/* ---------- エントリーフォーム ---------- */
.entry_area {
    padding: 80px 0 100px;
    background-color: #f7f7f7;
}
.entry_area .container_in {
    max-width: 860px;
    padding: 0 20px;
    box-sizing: border-box;
}
.entry_lead {
    margin: 20px 0 40px;
    font-size: 16px;
    line-height: 1.9;
}
.entry_form {
    padding: 50px;
    background-color: #fff;
    border-radius: 20px;
}
/* スパム対策の欄は画面外へ（display:none だと無視するボットがいるため） */
.entry_hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.entry_field {
    margin: 0 0 28px;
    padding: 0;
    border: none;
}
.entry_field > label,
.entry_field > legend {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
}
.entry_req,
.entry_opt {
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    vertical-align: middle;
}
.entry_req {
    background-color: #e8231d;
}
.entry_opt {
    background-color: #999;
}
.entry_form input[type="text"],
.entry_form input[type="tel"],
.entry_form input[type="email"],
.entry_form input[type="date"],
.entry_form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #c9d2e0;
    border-radius: 8px;
    background-color: #fbfcfe;
    font-family: inherit;
    font-size: 16px; /* 16px 未満だと iPhone で入力時に拡大されるため */
}
.entry_form input:focus,
.entry_form textarea:focus {
    outline: 2px solid #00BCD4;
    outline-offset: 1px;
    border-color: #00BCD4;
}
/* 入力し終えた欄が正しくないときだけ赤く（入力前は赤くしない） */
.entry_form input:user-invalid,
.entry_form textarea:user-invalid {
    border-color: #e8231d;
    background-color: #fff5f5;
}
/* 生年月日：年・月・日を横並びに */
.entry_birth {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}
.entry_birth label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}
.entry_form .entry_birth input[type="text"] {
    width: 4.5em; /* 月・日（2桁） */
    text-align: center;
}
.entry_form .entry_birth input[name="birth_year"] {
    width: 6em; /* 年（4桁） */
}
.entry_choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
}
.entry_choices label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    cursor: pointer;
}
.entry_form input[type="radio"],
.entry_form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #20488e;
}
/* 個人情報の取り扱い */
.entry_privacy {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #dfe5ef;
}
.entry_privacy_title {
    margin: 0 0 10px;
    font-weight: bold;
}
.entry_privacy_text {
    max-height: 200px;
    overflow-y: auto; /* 長い文章は枠の中でスクロール */
    padding: 15px 20px;
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    background-color: #f7f7f7;
    font-size: 14px;
    line-height: 1.8;
}
.entry_privacy_text p {
    margin: 0 0 10px;
}
.entry_privacy_text ol {
    margin: 0;
    padding-left: 1.5em;
}
.entry_agree {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-weight: bold;
    cursor: pointer;
}
.entry_error {
    margin: 25px 0 0;
    padding: 15px 20px;
    border-radius: 8px;
    background-color: #fff5f5;
    color: #e8231d;
    font-weight: bold;
}
.entry_submit {
    margin-top: 30px;
    text-align: center;
}
.entry_submit button {
    min-width: 320px;
    padding: 18px 40px;
    border: none;
    border-radius: 40px;
    background-color: #e8231d;
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}
.entry_submit button:hover {
    opacity: 0.8;
}
/* 同意前・送信中は押せない見た目に */
.entry_submit button:disabled,
.entry_confirm_btns [type="submit"]:disabled {
    background-color: #bbb;
    cursor: not-allowed;
    opacity: 1;
}
/* ----- Contact Form 7 が出力する要素の調整 ----- */
/* 入力欄を囲む枠（CF7 が自動で付ける span）。生年月日だけは横並びのまま */
.entry_form .wpcf7-form-control-wrap {
    display: block;
}
.entry_form .entry_birth .wpcf7-form-control-wrap {
    display: inline-block;
}
/* テーマの CSS でラジオボタン・チェックボックスが消されないよう、標準の見た目に戻す */
.entry_form input[type="radio"],
.entry_form input[type="checkbox"] {
    -webkit-appearance: auto;
    appearance: auto;
    display: inline-block;
    position: static;
    flex: none;
    opacity: 1;
    visibility: visible;
}
/* 選択肢・同意欄の余白（CF7 標準の左余白を消す） */
.entry_form .wpcf7-list-item {
    margin: 0;
}
.entry_form .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
}
.entry_form .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
/* 入力欄の下のエラーメッセージ */
.entry_form .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #e8231d;
    font-size: 14px;
    font-weight: bold;
}
/* 送信結果のメッセージ（フォーム下部） */
.entry_form .wpcf7-response-output {
    margin: 25px 0 0 !important; /* CF7 標準の指定を上書き */
    padding: 15px 20px !important;
    border-radius: 8px;
    font-weight: bold;
}
@media screen and (max-width: 768px) {
    .entry_form .wpcf7-radio {
        flex-direction: column;
    }
}
/* 確認画面 */
.entry_confirm_title,
.entry_complete_title {
    margin: 0 0 10px;
    color: #20488e;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}
.entry_confirm_lead {
    margin: 0 0 30px;
    text-align: center;
}
/* 入力内容の一覧：1行ごとに左に項目名、右に内容（行単位で高さをそろえる） */
.entry_form .entry_confirm_list {
    margin: 0;
    padding: 0;
    border-top: 1px solid #dfe5ef;
}
.entry_form .entry_confirm_row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid #dfe5ef;
}
/* テーマの dt / dd の指定（回り込み・余白など）を打ち消す */
.entry_form .entry_confirm_row dt,
.entry_form .entry_confirm_row dd {
    float: none;
    width: auto;
    margin: 0;
    padding: 16px 15px;
    border: none;
    line-height: 1.7;
}
.entry_form .entry_confirm_row dt {
    background-color: #f4f7fb;
    color: #20488e;
    font-weight: bold;
}
.entry_form .entry_confirm_row dd {
    white-space: pre-wrap; /* 自己PR などの改行をそのまま表示 */
    overflow-wrap: anywhere; /* 長いメールアドレスなどではみ出さない */
}
/* ボタン：枠そのものを中央に置く */
.entry_form .entry_confirm_btns {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 20px;
    width: fit-content;
    max-width: 100%;
    margin: 40px auto 0;
}
/* CF7 が送信ボタンの横に入れる読み込み中マークは、ボタンの並びに影響しないよう右外に重ねる */
.entry_form .entry_confirm_btns .wpcf7-spinner {
    position: absolute;
    top: 50%;
    left: 100%;
    margin: -12px 0 0 10px;
}
.entry_confirm_btns button,
.entry_confirm_btns [type="submit"] {
    margin: 0; /* テーマのボタンの余白を打ち消す */
    min-width: 240px;
    padding: 18px 30px;
    border-radius: 40px;
    font-family: inherit;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}
.entry_back {
    border: 2px solid #20488e;
    background-color: #fff;
    color: #20488e;
}
.entry_confirm_btns [type="submit"] {
    border: none;
    background-color: #e8231d;
    color: #fff;
}
.entry_confirm_btns button:hover,
.entry_confirm_btns [type="submit"]:hover {
    opacity: 0.8;
}
/* 送信完了 */
.entry_complete {
    padding: 30px 0;
    text-align: center;
    line-height: 1.9;
}
@media screen and (max-width: 768px) {
    .entry_confirm_title,
    .entry_complete_title {
        font-size: 19px;
    }
    .entry_confirm_lead {
        font-size: 14px;
        text-align: left;
    }
    /* スマホは項目名を上、内容を下に */
    .entry_form .entry_confirm_row {
        grid-template-columns: 1fr;
    }
    .entry_form .entry_confirm_row dt {
        padding: 8px 12px;
        font-size: 14px;
    }
    .entry_form .entry_confirm_row dd {
        padding: 10px 12px 14px;
        font-size: 15px;
    }
    /* ボタンは縦に並べ、送信ボタンを上に（横幅いっぱい） */
    .entry_form .entry_confirm_btns {
        flex-direction: column-reverse;
        gap: 12px;
        width: 100%;
    }
    .entry_form .entry_confirm_btns .wpcf7-spinner {
        top: auto;
        bottom: -34px;
        left: 50%;
        margin: 0 0 0 -12px;
    }
    .entry_confirm_btns button,
    .entry_confirm_btns [type="submit"] {
        width: 100%;
        min-width: 0;
    }
}
@media screen and (max-width: 768px) {
    .entry_area {
        padding: 50px 0 60px;
    }
    .entry_area .container_in {
        padding: 0 15px;
    }
    .entry_lead {
        font-size: 14px;
    }
    .entry_form {
        padding: 25px 18px;
    }
    .entry_choices {
        flex-direction: column;
    }
    .entry_submit button {
        width: 100%;
        min-width: 0;
    }
}

/* ---------- 資格取得までのフロー ---------- */
.flow_box {
    position: relative;
    margin: 100px 0 40px;
    padding: 80px 50px 60px;
    background-color: #fff;
    border: 6px solid #e8231d;
    border-radius: 30px;
}
/* 左上のラベル（枠線の上に重ねる） */
.flow_label {
    position: absolute;
    top: -6px;
    left: 60px;
    transform: translateY(-50%);
    margin: 0;
    padding: 8px 30px;
    background-color: #e8231d;
    border-radius: 30px;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}
.flow_list {
    list-style: none;
    margin: 0;
    padding: 0;
}
/* 1ステップ：左に「番号・時期・タイトル」、右に説明 */
.flow_item {
    position: relative;
    display: grid;
    grid-template-columns: 560px 1fr;
    gap: 20px;
    align-items: start;
}
/* ステップ間の矢印 */
.flow_item + .flow_item {
    margin-top: 110px;
}
.flow_item + .flow_item::before,
.flow_item + .flow_item::after {
    content: "";
    position: absolute;
    left: 50%;
    border: 0 solid #e8231d;
}
.flow_item + .flow_item::before { /* 縦線 */
    top: -90px;
    height: 50px;
    border-left-width: 4px;
    transform: translateX(-50%);
}
.flow_item + .flow_item::after { /* 矢じり */
    top: -62px;
    width: 26px;
    height: 26px;
    border-right-width: 4px;
    border-bottom-width: 4px;
    transform: translateX(-50%) rotate(45deg);
}
.flow_heads {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.flow_head {
    display: grid;
    grid-template-columns: 60px 250px 1fr;
    gap: 20px;
    align-items: center;
}
.flow_num {
    color: #2196f3;
    font-size: 44px;
    font-weight: bold;
    line-height: 1;
}
.flow_date {
    padding: 18px 10px;
    background-color: #2196f3;
    border-radius: 25px;
    color: #fff;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
}
.flow_title {
    color: #e8231d;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.3;
}
/* 説明：先頭に緑の■ */
.flow_desc {
    list-style: none;
    margin: 0;
    padding: 0;
}
.flow_desc li {
    position: relative;
    padding-left: 1.1em;
    font-size: 20px;
    font-weight: bold;
    line-height: 2;
}
.flow_desc li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: #2196f3;
}
/* 最後のステップ：タイトルを右側まで広げる */
.flow_item.is-goal {
    grid-template-columns: 1fr;
}
.flow_item.is-goal .flow_title {
    font-size: 40px;
}
@media screen and (max-width: 1200px) {
    /* 横幅が足りないときは説明を下に回す */
    .flow_item {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 768px) {
    .flow_box {
        margin-top: 60px;
        padding: 50px 15px 30px;
        border-width: 4px;
        border-radius: 20px;
    }
    .flow_label {
        top: -4px;
        left: 15px;
        right: 15px;
        padding: 6px 15px;
        font-size: 15px;
        text-align: center;
    }
    .flow_item + .flow_item {
        margin-top: 80px;
    }
    .flow_item + .flow_item::before {
        top: -70px;
        height: 35px;
    }
    .flow_item + .flow_item::after {
        top: -48px;
        width: 18px;
        height: 18px;
    }
    .flow_head {
        grid-template-columns: 36px 1fr;
        gap: 8px 12px;
    }
    .flow_num {
        font-size: 28px;
    }
    .flow_date {
        padding: 10px;
        font-size: 18px;
    }
    .flow_title {
        grid-column: 1 / -1; /* タイトルは2段目に全幅で */
        font-size: 22px;
    }
    .flow_title br {
        display: none;
    }
    .flow_item.is-goal .flow_title {
        font-size: 24px;
    }
    .flow_desc li {
        font-size: 15px;
        line-height: 1.8;
    }
}

/* ---------- 先輩の声スライダー ---------- */
.senpai_slider_wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}
.senpai_slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    list-style: none;
    margin: 0;
    padding: 40px 0;
}
.senpai_slider::-webkit-scrollbar {
    display: none;
}
/* 1枚＝1人分の幅。左右の padding で画像を中央に寄せる */
.senpai_slider li {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 0 15%;
    position: relative;
    scroll-snap-align: center;
    cursor: pointer;
}
.senpai_slider img {
    width: 100%;
    height: auto;
    display: block;
}
/* 画像の右上に重ねる */
.senpai_slider h3 {
    position: absolute;
    top: 8%;
    right: calc(15% - 20px); /* li の padding 分＋はみ出し量 */
    z-index: 1;
    margin: 0;
    font-size: clamp(18px, 2.5vw, 32px);
    line-height: 1.8;
    writing-mode: vertical-rl; /* 縦書き（右の行から左へ） */
    text-align: start;
}
/* 文字：上から下に表示（背景をテキストで切り抜いて動かす） */
.senpai_slider h3 span {
    position: relative;
    display: inline-block;
    padding: 14px 2px;
    color: transparent;
    background-image: linear-gradient(to bottom, #fff 50%, transparent 50%);
    background-size: 100% 200%;
    background-position: 0 100%;
    -webkit-background-clip: text;
    background-clip: text;
}
/* 文字裏の背景：上から下に伸びる */
.senpai_slider h3 span::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgb(0, 0, 99);
    transform: scaleY(0);
    transform-origin: top;
}
/* 表示されたら：1秒後に背景 → その0.5秒後に文字 */
.senpai_slider li.is-show h3 span::before {
    transform: scaleY(1);
    transition: transform 0.5s ease 1s;
}
.senpai_slider li.is-show h3 span {
    background-position: 0 0;
    transition: background-position 0.5s ease 1.5s;
}
/* 前へ・次へボタン */
.senpai_slider_prev,
.senpai_slider_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background-color: rgb(0, 0, 99);
    cursor: pointer;
    z-index: 2;
}
/* 矢印（線2本の角を45度回転） */
.senpai_slider_prev::before,
.senpai_slider_next::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    height: 30%;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    box-sizing: border-box;
}
.senpai_slider_prev {
    left: 10px;
}
.senpai_slider_prev::before {
    transform: translate(-30%, -50%) rotate(-135deg); /* 左向き */
}
.senpai_slider_next {
    right: 10px;
}
.senpai_slider_next::before {
    transform: translate(-70%, -50%) rotate(45deg); /* 右向き */
}
/* ポップアップ */
.senpai_modal {
    width: min(800px, 90vw);
    max-height: 85vh;
    padding: 0;
    border: none;
    border-radius: 10px;
    overflow-y: auto;
}
.senpai_modal::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}
.senpai_modal_close {
    position: sticky;
    top: 10px;
    display: block;
    margin: 10px 10px 0 auto;
    width: 40px;
    height: 40px;
    border: none;
    padding: 0;
    border-radius: 50%;
    background-color: rgb(0, 0, 99);
    color: transparent;
    font-size: 0; /* 文字の × は使わず、下の線2本で描く（フォントでずれないように） */
    cursor: pointer;
}
/* × 印：線2本を中央で交差させる */
.senpai_modal_close::before,
.senpai_modal_close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background-color: #fff;
}
.senpai_modal_close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.senpai_modal_close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
/* 求人動画（先輩の声のスライダーの下） */
.senpai_movie {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}
.senpai_movie_title {
    margin: 0 0 20px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 32px;
    font-weight: 500;
    text-align: center;
}
.senpai_movie_title span {
    display: block;
    color: #00BCD4;
    font-size: 18px;
}
.senpai_movie_video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* 読み込み前も 16:9 の枠を確保 */
    background-color: #000;
    border-radius: 12px;
}
@media screen and (max-width: 768px) {
    .senpai_movie {
        padding: 10px 0 40px;
    }
    .senpai_movie_title {
        margin-bottom: 15px;
        font-size: 22px;
    }
    .senpai_movie_title span {
        font-size: 14px;
    }
    .senpai_movie_video {
        border-radius: 8px;
    }
}
/* 先輩インタビューの Q&A：質問は「― 」付きの太字、答えはその下にゆったり */
.senpai_qa {
    margin: 30px 0 0;
    color: #333;
}
.senpai_qa dt,
.senpai_qa dd {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}
.senpai_qa dt {
    position: relative;
    padding-left: 1.3em; /* 「― 」の分。折り返した2行目は線の下に入らない（ぶら下げ） */
    font-size: 16px;
    font-weight: bold;
    line-height: 1.6;
}
.senpai_qa dt::before {
    content: "―"; /* 質問の先頭の横線 */
    position: absolute;
    left: 0;
}
.senpai_qa dd {
    margin-top: 20px;
    font-size: 15px;
    line-height: 2.2;
    text-align: justify; /* 行末をそろえて読みやすく */
}
/* 2問目以降は上に間隔をあける（dt/dd を1つの dl にまとめた場合） */
.senpai_qa dd + dt {
    margin-top: 45px;
}
/* 質問ごとに dl を分けた場合も、同じ間隔をあける */
.senpai_qa + .senpai_qa {
    margin-top: 45px;
}
@media screen and (max-width: 768px) {
    .senpai_qa {
        margin-top: 25px;
    }
    .senpai_qa dt {
        color: #20488e; /* スマホは質問を紺色にして、答えと見分けやすく */
        font-size: 16px;
    }
    .senpai_qa dd {
        margin-top: 10px;
        font-size: 15px;
        line-height: 1.9;
    }
    .senpai_qa dd br {
        display: none; /* PC 用の改行はスマホでは使わず、自然に折り返す */
    }
    .senpai_qa dd + dt {
        margin-top: 30px;
    }
    /* スマホは質問と質問の間を点線で区切る */
    .senpai_qa + .senpai_qa {
        margin-top: 25px;
        padding-top: 25px;
        border-top: 1px dashed #dfe5ef;
    }
}
.senpai_modal_body {
    padding: 0 30px 30px;
}
.senpai_modal_body img {
    width: 100%;
    height: auto;
    display: block;
}
/* ポップアップ表示中は背面をスクロールさせない */
body:has(.senpai_modal[open]) {
    overflow: hidden;
}
@media screen and (max-width: 768px) {
    .senpai_slider {
        padding: 20px 0;
    }
    /* 左右の余白を広げ、前へ・次へボタンを画像の外（余白の中）に収める */
    .senpai_slider li {
        padding: 0 13%;
    }
    /* 縦書きの見出しは画像の右上の内側に（右の余白＋8px） */
    .senpai_slider h3 {
        right: calc(13% + 8px);
    }
    .senpai_slider_prev,
    .senpai_slider_next {
        width: 32px;
        height: 32px;
    }
    .senpai_slider_prev {
        left: 4px;
    }
    .senpai_slider_next {
        right: 4px;
    }
    /* ポップアップを画面いっぱい近くまで広げ、読みやすい余白に */
    .senpai_modal {
        width: 94vw;
        max-height: 88vh;
        max-height: 88svh;
    }
    .senpai_modal_body {
        padding: 0 20px 35px;
    }
    .senpai_modal_body img {
        border-radius: 8px;
    }
    p.line_reveal.is-show {
        padding-left: 20px;
        padding-right: 20px;
    }
}
/* 動きを減らす設定の端末ではアニメーションなし */
@media (prefers-reduced-motion: reduce) {
    .senpai_slider li.is-show h3 span::before,
    .senpai_slider li.is-show h3 span {
        transition: none;
    }
}

/* ======================================================================
   スマホ表示の調整（768px 以下）
   ※各セクションの PC 用の指定を、ここでまとめて上書きしています
   ====================================================================== */
/* はみ出した要素で横スクロールが出ないように（clip は固定ヘッダーの動作に影響しない） */
body {
    overflow-x: clip;
}
/* 表示の切り替え（汎用）：sp_disp はスマホのみ、pc_disp は PC のみ表示（<br> の改行切り替えにも使える） */
.sp_disp {
    display: none;
}
@media screen and (max-width: 768px) {
    .sp_disp {
        display: inline;
    }
    .pc_disp {
        display: none;
    }
}
@media screen and (max-width: 768px) {
    /* 共通：画面の左右に余白を確保 */
    .container_in {
        padding: 0 15px;
        box-sizing: border-box;
    }
    /* 共通：セクション見出し */
    .sec_title {
        font-size: 28px;
        line-height: 1.4;
        margin-top: 0;
    }
    .sec_title span {
        font-size: 15px;
    }

    /* キャッチコピー */
    /*
      背景画像（約3:1の横長）を「画面幅の2.6倍」の大きさで右下（次のセクションに隠れる50pxの上）に配置し、手前の車を丸ごと見せる。
      画像の高さ = 100vw × 2.6 × (673 / 2000) ≒ 87.5vw
      画像より上の部分は、写真の空に近い色で塗る。
    */
    .catch_area {
        padding: calc(50px + 50px) 15px calc(50px + 50vw); /* 下は潜り込ませた分＋画像の車より上の空の部分に文字が来るように */
        background:
            url(https://yonezawads.com/wp-content/themes/yonezawa-g/img/kyujin/kyujin_img_10.jpg) right -30px bottom 50px / 260% auto no-repeat, /* 右に30pxはみ出させて右へずらす／下50pxは次のセクションに隠れるので、その分上げる */
            linear-gradient(to bottom, #dbfefe, #c9eef8);
    }
    .skew_title {
        font-size: 20px;
        padding: 6px 16px;
        margin: 0 0 12px 8px; /* 傾けた背景の左端が画面から切れないように */
    }
    .sub_title {
        margin-top: 20px;
    }
    .sub_title span {
        padding: 8px 18px;
        border-radius: 30px;
        font-size: 15px;
        line-height: 1.6;
    }

    /* 紹介エリア */
    .intro_area {
        border-radius: 10px;
    }
    /* スライダーはスマホのみ横方向に流す（右から左へ） */
    .v_slider,
    .intro_area .v_slider {
        height: 220px;
        max-width: none;
    }
    .v_slider ul {
        display: flex;
        width: max-content; /* 画像を横一列に並べた長さ */
        animation-name: v_slider_move_x;
    }
    .v_slider li {
        flex: none;
        padding: 0 15px 0 0; /* 画像の間隔（右側に） */
    }
    .v_slider img {
        width: auto;
        height: 220px;
    }
}
@media screen and (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .v_slider ul {
        animation: none; /* 動きを減らす設定の端末では流さない */
    }
}
@media screen and (max-width: 768px) {
    .intro_area .container_in {
        padding: 0; /* スライダーは横幅いっぱいに（文章側は個別に余白あり） */
    }
    .intro_text h3 {
        margin-bottom: 20px;
        margin-top: 20px;
        font-size: 24px;
    }
    .intro_text p {
        margin-bottom: 25px;
        font-size: 15px;
        line-height: 1.9;
    }
    ul.osusume_point {
        gap: 8px;
    }
    ul.osusume_point li {
        padding: 8px 12px;
        font-size: 15px;
    }

    /* 働くメリット（上の紹介エリアの角丸 30px に合わせて潜り込ませる量も変更） */
    .merit_area {
        margin-top: -30px;
        padding: calc(30px + 40px) 0 60px;
        border-radius: 0 0 40px 40px;
    }
    .merit_list p {
        padding-bottom: 15px;
    }

    /* 先輩の声 */
    #senpainokoe {
        margin: 30px 10px;
    }
    .senpai_head {
        margin-right: 40px; /* 右側にストライプの背景を見せる */
        padding: 20px 15px;
        border-radius: 20px 0 30px;
    }
    .senpai_head p {
        margin-bottom: 0;
        font-size: 15px;
        line-height: 1.8;
    }
    .jikoshokai {
        padding: 8px 12px;
    }
    p.yakushoku {
        margin: 0;
        font-size: 13px;
    }
    p.namae {
        margin: 4px 0 0;
        font-size: 20px;
    }

    /* 教習指導員への道のり */
    #michinori {
        border-radius: 40px;
        padding: 40px 0;
    }
    #michinori h2 {
        font-size: 26px;
        padding: 0.8rem 1rem calc(0.8rem + 4px);
        margin-left: 6px; /* ずらした枠線が画面から切れないように */
    }
    #michinori h2::before {
        top: -6px;
        left: -6px;
        border-width: 3px;
    }
    #michinori p {
        font-size: 15px;
        line-height: 1.8;
    }
    #michinori .flow_label {
        font-size: 14px;
    }
    .step_list .step_item {
        padding: 0;
        border-radius: 12px;
        overflow: hidden;
    }
    .step_img img {
        border-radius: 0;
    }
    .step_text {
        box-sizing: border-box; /* 横幅100%に余白を含める（含めないと右にはみ出して切れる） */
        padding: 30px 10px 25px;
    }

    /* 募集要項（上の #michinori の角丸 40px に合わせて潜り込ませる量も変更） */
    .recruit_area {
        margin-top: -40px;
        padding: calc(40px + 50px) 0 60px;
    }
}
