@charset "utf-8";

/* ==================================================
   1. 研修ページ（training.html）独立用ベーススタイル
   （job.css から必要なタイムライン・見出し要素を移植統合）
================================================== */

/* サブ見出し（ピンク縦線付き） */
.sub-sec-header {
  padding: 0 20px;
  box-sizing: border-box;
}

.sub-sec-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ff0066;
  position: relative;
  padding-left: 12px;
}

.sub-sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 1.1em;
  background-color: #ff0066;
  border-radius: 2px;
}

.career-lead-text {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 20px;
}

/* 縦ツリー型コンテナ */
.career-tree-wrap {
  width: 100%;
  margin-top: 15px;
  box-sizing: border-box;
}

/* STARTカード */
.tree-start-card {
  background: #e0f7fa;
  border: 2px solid #00bcd4;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 188, 212, 0.15);
  position: relative;
  z-index: 2;
}

.tree-start-card .start-badge {
  display: inline-block;
  background-color: #00bcd4;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.start-content-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.start-chara-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 縦の接続線とカードグループ */
.tree-branch-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  padding-left: 20px;
}

/* ★ 調整済み：縦線の位置 */
.tree-branch-list::before {
  content: "";
  position: absolute;
  left: 10px;
  top: -20px;
  bottom: 30px;
  width: 2px;
  background-color: #b0bec5;
  z-index: 1;
}

/* 各ステップカード */
.tree-course-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 2;
}

/* ★ 調整済み：接続横線 */
.tree-course-card::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 21px;
  width: 20px;
  height: 2px;
  background-color: #b0bec5;
}

/* ★ 調整済み：矢印先端の位置 */
.tree-course-card::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 18px;
  border-left: 6px solid #b0bec5;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.tree-course-card.border-cyan {
  border: 1.5px solid #80deea;
  border-left: 5px solid #00bcd4;
}

.tree-course-card.border-pink {
  border: 1.5px solid #ff80ab;
  border-left: 5px solid #ff0066;
}

.course-title-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.course-title-badge.bg-cyan {
  background-color: #00838f;
  color: #fff;
}

.course-title-badge.bg-pink {
  background-color: #ffe6ee;
  color: #d81b60;
}

.course-item-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-item-list li {
  font-size: 0.82rem;
  font-weight: bold;
  color: #444444;
  line-height: 1.4;
  position: relative;
  padding-left: 12px;
}

.course-item-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.course-item-list.dot-cyan li::before { color: #00bcd4; }
.course-item-list.dot-pink li::before { color: #ff0066; }


/* ==================================================
   2. 初任者研修・写真複数配置・賑やかインターバルスタイル
================================================== */

/* 初任者研修 ピックアップカード（カード内内包対応） */
.shoninsha-pickup-card {
  position: relative;
  background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
  border: 2px solid #00bcd4;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  box-shadow: 0 3px 10px rgba(0, 188, 212, 0.12);
  box-sizing: border-box;
  text-align: left;
}

/* 大見出し */
.shoninsha-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0077b6;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

/* Good life care academy バッジ */
.academy-badge {
  display: inline-block;
  background: linear-gradient(90deg, #b2f2bb 0%, #fff59d 100%);
  color: #006064;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  font-family: Arial, sans-serif;
}

/* 説明文章 */
.shoninsha-text {
  font-size: 0.78rem;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 10px;
}

/* 写真2枚並び */
.shoninsha-photo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.shoninsha-photo-item {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #f5f5f5;
}

.shoninsha-photo-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

/* 最下部：メッセージ＋キャラクター */
.shoninsha-bottom-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed #b2ebf2;
}

.msg-bold {
  font-size: 0.82rem;
  font-weight: 900;
  color: #0077b6;
  line-height: 1.35;
  text-align: center;
  margin: 0;
}

.msg-chara {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.msg-chara img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* --------------------------------------------------
   カード間の切り抜き賑やかブロック
-------------------------------------------------- */
.timeline-inter-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 15px 0 10px 0;
  position: relative;
  z-index: 3;
}

/* イベント青・ピンクタグ */
.timeline-event-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.timeline-event-tag.tag-pink {
  background-color: #ff3377;
}

.timeline-event-tag.tag-cyan {
  background-color: #00bcd4;
}

/* 写真＋吹き出しの横並びコンテナ */
.inter-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

/* 丸型写真（太枠付き） */
.circle-photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
}

.circle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-photo.border-pink {
  border: 3px solid #ff3377;
}

.circle-photo.border-cyan {
  border: 3px solid #00bcd4;
}

/* 吹き出しコメント */
.inter-balloon {
  position: relative;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  color: #333333;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  max-width: 220px;
}

.inter-balloon.balloon-pink {
  border: 1.5px solid #ff3377;
  color: #d81b60;
}

.inter-balloon.balloon-cyan {
  border: 1.5px solid #00bcd4;
  color: #00838f;
}

/* 吹き出しの左三角形ポッチ */
.inter-balloon::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-right: 8px solid #ffffff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  z-index: 2;
}

.inter-balloon.balloon-pink::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-right: 9px solid #ff3377;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  z-index: 1;
}

.inter-balloon.balloon-cyan::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-right: 9px solid #00bcd4;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  z-index: 1;
}

/* --------------------------------------------------
   ステップカード内の写真2枚並び
-------------------------------------------------- */
.step-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.step-gallery-img {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
}

.step-gallery-img img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  display: block;
}

.step-gallery-img span {
  display: block;
  font-size: 0.62rem;
  font-weight: bold;
  color: #333333;
  text-align: center;
  padding: 3px 2px;
  background-color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-body-wrap {
  width: 100%;
}

.step-learn-list {
  background-color: #f7fbfd;
  border: 1px dashed #4dd0e1;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
}

.step-learn-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #00838f;
  margin-bottom: 4px;
}

/* ==================================================
   研修タイムライン（元の全幅背景＆位置調整用）
================================================== */

/* 1. タイムライン親コンテナ */
.tree-branch-list.training-branch-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  margin-top: 15px;
  padding-left: 32px !important; /* ←【調整可】左側の基本スペース */
  padding-right: 0 !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* 縦の幹ライン（水色の縦線） */
.tree-branch-list.training-branch-list::before {
  content: "";
  position: absolute;
  left: 12px;                  /* ←【調整可】縦線の左右位置 */
  top: -15px;
  bottom: 20px;
  width: 2px;                  /* ←【調整可】縦線の太さ */
  background-color: #00bcd4;
  z-index: 10;
}

/* 2. 各月の項目ブロック（全幅背景） */
.training-step-block {
  position: relative;
  width: calc(100% + 32px) !important; /* ← 32px部分を下のmargin-leftと合わせる */
  margin-left: -32px !important;       /* ←【調整可】背景を左へ押し出す量 */
  padding-top: 20px !important;        /* ←【調整可】ブロック内の上余白 */
  padding-bottom: 24px !important;     /* ←【調整可】ブロック内の下余白 */
  padding-left: 32px !important;       /* ←【調整可】文字・コンテンツの左余白（★ここの数値で文章の始まり位置を調整できます） */
  padding-right: 16px !important;      /* ←【調整可】文字・コンテンツの右余白 */
  box-sizing: border-box;
  z-index: 2;
}

/* 横の伸ばし線 */
.training-step-block::before {
  content: "";
  position: absolute;
  left: 12px;                  /* ←【調整可】横線の開始位置 */
  top: 28px;                   /* ←【調整可】横線の上下位置 */
  width: 20px;                 /* ←【調整可】横線の長さ */
  height: 2px;
  background-color: #00bcd4;
  z-index: 11;
}

/* 矢印の先端（三角） */
.training-step-block::after {
  content: "";
  position: absolute;
  left: 24px;                  /* ←【調整可】矢印先端の左右位置 */
  top: 24px;                   /* ←【調整可】矢印先端の上下位置 */
  border-left: 7px solid #00bcd4;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  z-index: 11;
}

/* 背景色の指定 */
.training-step-block.bg-white-block {
  background-color: #ffffff !important;
}

.training-step-block.bg-cyan-light-block {
  background-color: #e6f8fc !important;
}

/* 3. キャライラスト部分（白背景） */
.timeline-inter-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% + 32px) !important;
  margin-left: -32px !important;
  padding: 15px 16px 15px 50px !important; /* ←【調整可】内部余白 */
  background-color: #ffffff !important;
  box-sizing: border-box;
  z-index: 2;
}

/* 本文テキスト（ほどよく小さく微調整） */
.step-desc-text {
  font-size: 0.85rem !important; /* または 0.8rem */
  line-height: 1.65 !important;  /* フォントサイズに合わせて行間も微調整 */
  color: #333333;
  margin-bottom: 14px;
}

/* --------------------------------------------------
   タイムライン最終ステップ（2月）の縦線直角終点処理
-------------------------------------------------- */

/* 縦線の伸びを最後（2月の横線位置：top 28px）でピタリと止める */
.tree-branch-list.training-branch-list::before {
  bottom: auto !important;
  height: calc(100% - 515px) !important; /* コンテナ下端から2月の横線位置まで引き上げる */
}

/* 最後のブロック（3月）で縦線が下へ突き抜けないよう制御 */
.training-step-block.is-final-step::before {
  z-index: 12 !important;
}

/* 吹き出し横のキャラクターアイコン枠線を削除（色なし） */
.circle-photo.border-pink,
.circle-photo.border-cyan,
.circle-photo {
  border: none !important;
  box-shadow: none !important; /* 周りの影も消す場合はこの行も残してください */
}

/* CTAボタン上部のケアちゃんイラスト位置・サイズ調整 */
.cta-chara-top {
  width: 250px;          /* イラストの横幅（お好みで 60px〜80px 等に調整してください） */
  height: auto;
  margin-bottom: -10px; /* 下のダイヤ型パーツに少し重なるよう引き下げ */
  z-index: 2;
  position: relative;
}

.cta-chara-top img {
  width: 100%;
  height: auto;
  display: block;
}