/* ============================================
   ボートレーサーへの道のり専用CSS
   ============================================ */

/* ============================================
   セクション背景（斜め切り替え + 水色 下部）
   ============================================ */
.content-section--bg-lightblue-lower {
  overflow: visible;
}

.content-section--bg-lightblue-lower::before {
  content: '';
  position: absolute;
  top: 46%;
  left: -20px;
  right: -20px;
  bottom: -600px;
  background-color: #F1F7FD;
  clip-path: polygon(100% 0, 0 105px, 0 calc(100% - 520px), 100% calc(100% - 625px));
  z-index: -1;
}

/* ============================================
   ページタイトル
   ============================================ */
.page-title--rb {
  width: auto;
  max-width: 330px;
  min-width: 280px;
  height: 75px;
  padding: 0 16px;
}

/* ============================================
   サブセクションタイトル
   ============================================ */
.rb-subsection-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--boat-text);
}

/* ============================================
   応募資格カード
   ============================================ */
.rb-qualification-card {
  border: 1px solid var(--boat-darkblue);
  border-radius: 8px;
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rb-qualification-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rb-qualification-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.rb-qualification-card__icon {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.rb-qualification-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rb-qualification-card__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  color: var(--boat-text);
  margin: 0;
}

.rb-qualification-card__title--accent {
  font-weight: 700;
  font-size: 24px;
  color: var(--boat-darkblue);
}

.rb-qualification-card__subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.2;
  color: var(--boat-text);
}

.rb-qualification-card__subtitle span {
  white-space: nowrap;
}

.rb-qualification-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 16px;
}

/* 区切り線 */
.rb-qualification-card__body::before {
  content: '';
  display: block;
  width: 100%;
  height: 0.5px;
  background-color: #C2C2C2;
}

/* 横一列行（身長 + 裸眼視力 + 年齢） */
.rb-qualification-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 8px;
}

.rb-qualification-row__separator {
  width: 0.5px;
  align-self: stretch;
  background-color: #C2C2C2;
  flex-shrink: 0;
}

/* 区切り線 */
.rb-qualification-card__divider {
  width: 100%;
  height: 0.5px;
  background-color: #C2C2C2;
}

/* 応募資格アイテム（デフォルト: 横並び） */
.rb-qualification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px;
}

/* 縦並びバリアント（身長・裸眼視力・年齢） */
.rb-qualification-item--stacked {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0;
}

.rb-qualification-item__label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  color: var(--boat-text);
  text-align: center;
}

.rb-qualification-item__value {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

/* 横並びアイテム（体重）のvalue: flex:1, gap: 8px */
.rb-qualification-item:not(.rb-qualification-item--stacked) .rb-qualification-item__value {
  flex: 1;
  gap: 8px;
}

/* 縦並びアイテムの値は中央揃え */
.rb-qualification-item--stacked .rb-qualification-item__value {
  justify-content: center;
  align-items: center;
  gap: 4px;
}

/* 縦配置の値（身長・裸眼視力：数値+単位が上、接尾語が下） */
.rb-qualification-item__value--col {
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* 数値+単位グループ（インライン） */
.rb-qualification-item__num-unit {
  display: flex;
  align-items: baseline;
}

/* 範囲グループ（年齢：数値+単位が上、接尾語が下をインラインで並べる） */
.rb-qualification-item__range-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rb-qualification-item__number {
  font-family: "din-2014", sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.28;
  letter-spacing: -0.04em;
  color: var(--boat-darkblue);
}

.rb-qualification-item__unit {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  color: var(--boat-text);
}

.rb-qualification-item__suffix {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.2;
  color: var(--boat-text);
  margin-left: 2px;
}

.rb-qualification-item__separator {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  color: var(--boat-text);
}

/* ============================================
   STEPリスト導入テキスト
   ============================================ */
.rb-step-intro {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--boat-blue);
  text-align: center;
}

/* ============================================
   STEPリスト（概要）
   ============================================ */
.rb-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rb-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rb-step-item__number {
  width: 48px;
  height: 48px;
  background-color: var(--boat-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-shrink: 0;
  padding: 7px 11px;
}

.rb-step-item__label {
  font-family: "din-2014", sans-serif;
  font-weight: 700;
  font-size: 9.51px;
  line-height: 1;
  color: var(--white);
  text-align: center;
}

.rb-step-item__num {
  font-family: "din-2014", sans-serif;
  font-weight: 600;
  font-size: 25.35px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--white);
  text-align: center;
}

.rb-step-item__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
}

.rb-step-item__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  color: var(--boat-text);
}

.rb-step-item__title--blue {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--boat-blue);
}

.rb-step-item__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 73px;
  padding: 8px;
  border: 1px solid var(--boat-blue);
  border-radius: 100px;
  background-color: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  color: var(--boat-text);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.rb-step-item__button:hover {
  opacity: 0.8;
}

/* STEP間の矢印 */
.rb-step-arrow svg {
  display: block;
  width: 100%;
  height: 10px;
}

/* ============================================
   STEP詳細ヘッダー
   ============================================ */
.rb-step-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rb-step-detail-header__number {
  width: 48px;
  height: 48px;
  border: 1px solid var(--boat-blue);
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.rb-step-detail-header__label {
  font-family: "din-2014", sans-serif;
  font-weight: 700;
  font-size: 9.5px;
  line-height: 1.4;
  color: var(--boat-blue);
}

.rb-step-detail-header__num {
  font-family: "din-2014", sans-serif;
  font-weight: 600;
  font-size: 25.4px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--boat-blue);
}

.rb-step-detail-header__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--boat-text);
}

/* STEP04 青バリアント */
.rb-step-detail-header--blue .rb-step-detail-header__number {
  border-color: var(--boat-blue);
  background-color: var(--boat-blue);
}

.rb-step-detail-header--blue .rb-step-detail-header__label,
.rb-step-detail-header--blue .rb-step-detail-header__num {
  color: var(--white);
}

.rb-step-detail-header--blue .rb-step-detail-header__title {
  color: var(--boat-blue);
}

/* ============================================
   試験リスト（STEP01）
   ============================================ */
.rb-exam-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.rb-exam-card {
  width: 100%;
  height: 65px;
  border: 1px solid var(--boat-blue);
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
}

.rb-exam-card__header {
  background-color: var(--boat-blue);
  border-radius: 4px 4px 0 0;
  padding: 4px 22px;
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: var(--white);
}

.rb-exam-card__body {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 12px;
  flex: 1;
}

.rb-exam-card__body--spread {
  justify-content: space-between;
}

.rb-exam-card__item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
}

.rb-exam-card__item span,
.rb-exam-card__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--boat-text);
  white-space: nowrap;
}

.rb-exam-card__text {
    text-align: center;
    padding: 0 10px;
}

.rb-exam-card__yt {
  width: 30px;
  height: 18px;
  flex-shrink: 0;
}

.rb-exam-card__separator {
  width: 0;
  height: 22px;
  border-left: 0.5px solid #C2C2C2;
  flex-shrink: 0;
}

/* 試験間の矢印（水色） */
.rb-exam-arrow svg {
  display: block;
}

/* ============================================
   訓練フロー（STEP02）
   ============================================ */
.rb-training-flow {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rb-training-flow__timeline {
  display: flex;
  width: 100%;
}

.rb-training-flow__phase {
  flex: 1;
}

.rb-training-flow__phase:first-child {
  flex: 0.8;
}

.rb-training-flow__phase:last-child {
  flex: 1.33;
}

.rb-training-flow__phase-box {
  background-color: var(--boat-blue);
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 4px 22px 4px 4px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
}

.rb-training-flow__phase-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--white);
  text-align: center;
}

.rb-training-flow__phase-period {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--white);
  text-align: center;
  white-space: nowrap;
}

.rb-training-flow__details {
  display: flex;
  gap: 4px;
  width: 100%;
  margin-top: 4px;
}

.rb-training-flow__detail {
  flex: 1;
  border: 1px solid var(--boat-blue);
  padding: 8px;
  position: relative;
  margin-top: 8px;
}

/* 吹き出し三角（青枠） */
.rb-training-flow__detail::before {
  content: '';
  position: absolute;
  bottom: 100%;
  width: 18px;
  height: 14px;
  background-color: var(--boat-blue);
}

/* 吹き出し三角（白塗り） */
.rb-training-flow__detail::after {
  content: '';
  position: absolute;
  bottom: calc(100% - 1px);
  width: 16px;
  height: 12px;
  background-color: var(--white);
}

/* 左の吹き出し → 基礎訓練を指す（左斜め・右直角） */
.rb-training-flow__detail:first-child::before {
  right: 20%;
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.rb-training-flow__detail:first-child::after {
  right: calc(20% + 1.2px);
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

/* 右の吹き出し → 技術応用訓練を指す（左直角・右斜め） */
.rb-training-flow__detail:last-child::before {
  left: 30%;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.rb-training-flow__detail:last-child::after {
  left: calc(30% + 1.2px);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.rb-training-flow__detail p {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  color: var(--boat-text);
  margin: 0;
}

/* ============================================
   セクション画像（STEP03/04）
   ============================================ */
.rb-section-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.rb-section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   ページリンク（rbページ）
   ============================================ */
.page-rb .page-link--left {
  gap: 10px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.04em;
  box-shadow: 3px 3px 0px #FF5C5C, -2px -2px 0px var(--boat-blue);
}

.page-rb .page-link--right {
  gap: 4px;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  box-shadow: 3px 3px 0px #0099FF, -2px -2px 0px var(--boat-blue);
}