/* =====================================
   リハビリ採用・教育ページの共通スタイル
====================================== */
/* 親要素の幅を無視して横いっぱいに広げるクラス */
.full-width-section {
    width: 100vw; /* ビューポート（画面）の幅100%にする */
    position: relative;
    left: 50%;
    transform: translateX(-50%); /* 画面の中央に強制的に配置する */
}
.full-width-animated {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    box-sizing: border-box !important;
}
/* パンくずリスト */
#breadChumbs {
    background-color: #F4F4F4;
    margin: -50px auto 0 !important;
    padding: 14px 0;
}
#breadChumbs p {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.4;
    margin: 0 auto;
    max-width: 1500px;
    transition: 0.2s;
    padding: 0 25px;
}

/* ------------------------
   紹介セクション調整
------------------------ */
.font-jp-m {
    font-family: A1 Mincho, serif;
    font-size: 45px;
    font-weight: normal;
    font-style: italic;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 2;
}
.waypoint {
    opacity: 0;
    transform: translateY(30px); /* 下にずらす */
    transition: opacity 3s ease, transform 3s ease;
}
.waypoint.active {
    opacity: 1;
    transform: translateY(0);
}
.inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section_ttl {
    position: relative;
    color: #1f2427;
    font-size: 2em;
    text-align: center;
    line-height: 1.28;
    letter-spacing: 0.2em;
}
.txt-ctr {
    text-align: center;
}
.txt-ctr-pc {
    text-align: center;
}
.mgn-btm80 {
    margin-bottom: 80px;
}
.mgn-btm64 {
    margin-bottom: 64px;
}
.mgn-btm30 {
    margin-bottom: 30px;
}
.txtarea .txt-lg {
    line-height: 2.43;
    letter-spacing: 0.04em;
}
p.txt-lg {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.5em;
    line-height: 5.2;
}
.txtarea p.txt-lg {
    line-height: 2 !important;
    letter-spacing: 0.5em !important;
}

/* Noto Sans JP 見出し用 */
.font-noto {
  display: block;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 60px;
  letter-spacing: 0.1em;
  color: #1f2427;
}
/* 明朝系の小サイズ見出し */
.font-jp-m-sub {
  display: block;
  font-family: "A1 Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 31px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: #1f2427;
}
/* 小サイズの明朝斜体 */
.font-jp-m-sm {
  display: block;
  font-family: "A1 Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.6;
  margin-top: 20px;
  letter-spacing: 0.08em;
  color: #1f2427;
}
/* --- イラストのサイズ・位置の設定 --- */
.center-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 70%;
    height: auto;
}
/* --- 画像をテキストに重ねる設定 --- */
.overlap-image {
    display: block;
    height: auto;
    margin-top: -70px;
    position: relative;
    z-index: 1;
}
.concept-lead {
    margin-top:100px;
    margin-bottom:70px;
}

/* 教育体制セクション全体の余白 */
.education-system {
    max-width: 1000px;
    margin: 150px auto;
    padding: 0 20px;
}
/* グリッドレイアウトの設定 */
.edu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* ボックス間の隙間 */
}
/* カードの基本スタイル */
.edu-card {
    flex: 1 1 calc(50% - 10px); /* 基本は2列 */
    border: 2px solid #002E86;
    background: #fff;
    display: flex;
    flex-direction: column;
}
/* 広いカード（勉強会など）の設定 */
.edu-card.wide {
    flex: 1 1 100%; /* 横幅いっぱい */
}
/* カードのヘッダー部分 */
.edu-card-header {
    background-color: #002E86;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-weight: bold;
    font-size: 2rem;
}
/* カードのサブキャプション */
.sub-caption {
    font-size: 1.5rem;
    font-weight: normal;
    color: #FFF;
    margin-left: 10px;
}
/* カードの本文部分 */
.edu-card-body {
    padding: 20px;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

/* --- 通常（PC）時は改行を無効にする --- */
.sp-br {
    display: none;
}
/* --- 通常（PC）時は改行を有効にする --- */
.pc-br {
    display: block;
}

/* --- インタビュー本文 --- */
.episode-comment {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

/* ボタンの設定 */
.btn-center {
    text-align: center;
    margin-top: 120px;
    margin-bottom: 80px;
}
/* 念のため：ボタンが横幅いっぱいにならないようにする */
.btn-center .bscBtn {
    display: inline-block; /* 左右に余白がある状態にする */
}



/* --- 修正追加 --- */
/* --- 見出し：文字だけのシンプルデザイン --- */
.simple-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
    padding-left: 0%;
    text-align: left;
    box-sizing: border-box;
}
/* 英語タイトル：力強く、かつシンプルに */
.en-title-simple {
    font-family: 'Inder', sans-serif;
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #1F2427;
}
/* 日本語サブ */
.jp-sub-simple {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #307ED0;
    margin-top: 8px;
    letter-spacing: 0.1em;
}
#interview-nurse .simple-title {
    margin-bottom: 8px !important;
}
/* タイトルのすぐ下にある注釈（pタグ）の上の余白をゼロにする */
#interview-nurse .simple-title + p {
    margin-top: 0 !important;
    padding-top: 0 !important;
    color: #888;
}

/* --- 業務内容 --- */
.rehab-work-path {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}
section.rehab-work-path {
    margin-bottom: 0 !important;
    padding-bottom: 40px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}
.work-path-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    height: 1700px;
}
section.rehab-work-path,
.work-path-container,
.work-path-inner {
    overflow: visible !important;
}
.work-path-item {
    position: absolute;
    width: 450px;
    text-align: center;
}

/* 配置の調整 */
#node-01 { top: 0; left: 2%; }
#node-02 { top: 270px; left: 35%; }
#node-03 { top: 540px; left: 68%; }
#node-04 { top: 810px; left: 35%; }
#node-05 { top: 1080px; left: 2%; }

/* 不要な線を削除 */
.work-path-item::after {
    display: none !important;
}

/* 円形ボタン（Φ450 / #ECE9E0） */
.node-circle {
    position: relative;
    width: 450px;
    height: 450px;
    background-color: #ECE9E0;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
/* マウスを乗せた時（ホバー時）の状態 */
.node-circle:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

/* 数字（110px / 背面） */
.node-number {
    position: absolute;
    top: 40px; /* 上端からの距離を調整 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    font-size: 110px;
    font-weight: bold;
    color: #FD6202;
    font-family: Arial, sans-serif;
    line-height: 1;
}
/* 奇数番目（01, 03, 05）の数字の色：黄色系 */
.work-path-item:nth-child(odd) .node-number {
    color: #FDD23C;
}
/* 偶数番目（02, 04）の数字の色：オレンジ系 */
.work-path-item:nth-child(even) .node-number {
    color: #FD6202;
}

/* イラスト（前面） */
.node-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 60% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* 見出し */
.node-title {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 100%;
    z-index: 3;
    color: #307ED0;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    margin: 0;
}

/* フォント変更専用のクラス */
.font-inder {
    font-family: 'Inder', sans-serif !important;
    font-size: 42px !important;
    letter-spacing: 0.05em;
}

/* ==========================
   画像スライダー（右→左 / 全幅 / 4枚表示 / 隙間0）
   ・医師セクション直下：余白ゼロ
   ・画像は3:2で表示（object-fit: cover）
========================== */
.robot-gallery{
  width: 100%;
  margin: 0;          /* 隙間ゼロ */
  padding: 0;         /* 隙間ゼロ */
  background: #ffffff; /* 医師セクションとの“つながり”が欲しければ濃紺のまま */
  line-height: 0;     /* imgの隙間対策 */
}
.robot-gallery__viewport{
  width: 100%;
  overflow: hidden;
}
/* 4枚分が常に見える */
.robot-gallery__track{
  display: flex;
  gap: 0;                 /* 画像間0 */
  width: max-content;
  will-change: transform;
  animation: robotGalleryMarquee 22s linear infinite;
}
/* 1枚の幅：画面幅の1/4 */
.robot-gallery__item{
  flex: 0 0 25vw;         /* 4枚 = 100vw */
}
/* 3:2（横長）固定 */
.robot-gallery__item img{
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}
/* 5枚分だけ左へ送って、複製に繋げる（無限ループ） */
@keyframes robotGalleryMarquee{
  from{ transform: translateX(0); }
  to  { transform: translateX(-125vw); } /* 25vw × 5枚 */
}
/* SP調整：スマホは2枚表示（必要なら） */
@media (max-width: 960px){
  .robot-gallery__item{
    flex: 0 0 50vw;        /* 2枚 = 100vw */
  }
  @keyframes robotGalleryMarquee{
    from{ transform: translateX(0); }
    to  { transform: translateX(-250vw); } /* 50vw × 5枚 */
  }
}
/* ユーザーがOS設定でアニメーション軽減している場合は停止 */
@media (prefers-reduced-motion: reduce){
  .robot-gallery__track{
    animation: none;
    transform: none;
  }
}





/* --- スマホ表示（画面幅850px以下）の最適化設定 --- */
@media (max-width: 850px) {
    /* パンくずリスト */
    #breadChumbs {
        margin: -25px auto 0 !important;
        padding: 12px 0;
    }
    #breadChumbs p {
        font-size: 9px;
    }
    p.txt-lg {
        font-size: 1.2rem !important;
        letter-spacing: 0.2em;
        font-weight: 400;
    }
    #rehab-intro {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .font-jp-m {
        font-size: 2.2rem;
        font-weight: 600;
        order: 1;
        margin-top:60px;
    }
    .intro-img-wrap {
        order: 2;
    }
    .overlap-image {
        margin-top: 0;
    }
    .concept-lead {
        margin-top: 20px;
        margin-bottom: 30px;
        text-align: left;
        display: block;
        padding: 0 10px;
        line-height: 1.2;
        order: 3;
    }
    .concept-lead2 {
        text-align: left;
        display: block;
        padding: 0 10px;
        line-height: 1.2;
        order: 4;
    }
    .section-intro-band {
        font-size: 16px;
        padding: 10px 0 10px 25px;
        margin-top: 50px;
        margin-bottom: 0;
    }
    .section-intro-band::before {
        width: 13px;
    }
/* 教育体制セクション全体の余白 */
    .education-system {
        margin: 30px auto;
    }

    .edu-card {
        flex: 1 1 100%; /* 全て1列にする */
    }
    .edu-card-header {
        font-size: 1.6rem;
        padding: 8px;
    }
    .sub-caption {
        font-size: 1.3rem;
    }
    .edu-card-body {
        padding: 15px;
        font-size: 0.95rem;
    }

    .hp-content-text h3 {
        font-size: 1.5rem; /* 見出しサイズを適正化 */
        margin-bottom: 8px;
    }

    .hp-content-text p {
        font-size: 0.95rem; /* 本文サイズを適正化 */
        line-height: 1.6;
    }

    .hp-content-text {
        padding-right: 10px; /* テキストの右側にもわずかな余白を */
    }

    breadChumbs p {
        font-size: 0.9rem;
    }

/* インタビュー本文 */
.episode-comment {
        font-size: 0.95rem;  /* スマホでは少し文字を小さくして収まりを良くする */
        line-height: 1.8;
    }

/* ボタンの設定 */
.btn-center {
    margin-top: 30px;
    margin-bottom: 60px;
}

/* --- SP時は改行する --- */
    .sp-br {
        display: block;
        content: "";
        margin-top: 0;
    }
    .pc-br {
        display: none;
    }

    /* 修正追加 */
    .work-path-container {
        display: flex;
        flex-direction: column;
        align-items: stretch; /* 子要素が横幅いっぱいに広がるようにする */
        gap: 0px;           /* 円と円の縦の間隔 */
        height: 1200px;
        padding: 40px 20px 100px; /* 左右に少し余白を作って見切れを防止 */
        overflow: visible !important; /* 絶対に隠さない */
    }
    /* 各アイテム（円を包む枠）の修正 */
    .work-path-item {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important; /* 一旦リセット */
        width: 100%;
        display: flex; /* 中の円を配置するためにFlex化 */
    }
    /* 円を左右に振り分ける（ここがポイント！） */
    .work-path-item:nth-child(odd) {
        justify-content: flex-start; /* 奇数番目は左寄せ */
    }
    .work-path-item:nth-child(even) {
        justify-content: flex-end;   /* 偶数番目は右寄せ */
    }
    /* 円のサイズとスタイルの再設定 */
    .node-circle {
        width: 220px !important;  /* 画面幅に合わせて少し小さめに（240→220） */
        height: 220px !important;
        position: relative !important;
        display: block !important;
        overflow: hidden !important; /* 円の中の画像はみ出しは隠す */
        border-radius: 50%;
        background-color: #ECE9E0;
        margin: 0; /* マージンをリセット */
        flex-shrink: 0; /* 円が潰れないように固定 */
    }
    /* 中のパーツの微調整（220pxに合わせて） */
    .node-number {
        font-size: 55px !important;
        top: 25px !important;
    }
    .node-img {
        width: 50% !important;
        top: 50% !important;
    }
    .node-title {
        font-size: 14px !important;
        bottom: 50px !important;
    }
    /* タイトルの調整 */
    .simple-title {
        margin-bottom: 20px !important;
        padding-bottom: 0 !important;
        padding-left: 5% !important;
    }
    .simple-title + p {
        margin-top: 0 !important;
    }
    /* 英語タイトル（Education/Workflowなど） */
    .en-title-simple {
        font-size: 24px !important;
        letter-spacing: 0.03em;
        line-height: 1.1;
    }
    /* 日本語サブタイトル（— 業務内容 など） */
    .jp-sub-simple {
        font-size: 12px !important;
        margin-top: 5px;
    }
    /* 各セクションの上下余白を一括調整 */
    section.education-system,
    section.rehab-work-path {
        padding-top: 10px !important;    /* セクションの開始位置 */
        padding-bottom: 50px !important; /* セクションの終了位置 */
        margin-bottom: 0 !important;     /* マージンは0にしてパディングで制御 */
    }
    #interview-nurse {
        padding-top: 0 !important;
        padding-bottom: 10px !important;
        margin-bottom: 0 !important;
    }
    /* Workflowセクションの特殊な重なりを考慮 */
    .work-path-container {
        padding-top: 20px !important;
        height: 1150px;
    }
}
