.loan-program main {
  background: url("../img/purple-bg.jpg") center/cover;
}

/* ===== 汎用テキストスタイル ===== */
.loan-program .bold {
  font-weight: 500;
}

.loan-program .kome {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 1;
  margin-left: 0.2em;
}

/* ===== メインビジュアル（ヒーローバナー） ===== */
.loan-hero {
  position: relative;
  width: 800px;
  height: 425px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.loan-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.loan-hero-sp-img {
  display: none;
}

/* 貸付金額：テキストを右寄り */
.loan-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 12px 20px 12px 330px;
}

/* 対象施設：テキストを左寄り */
.loan-hero-content--left {
  padding: 12px 286px 12px 20px;
}

/* テキストボックス（半透明カード） */
.loan-hero-box {
  backdrop-filter: blur(2px);
  background: rgba(255, 252, 226, 0.8);
  border-radius: 20px;
  width: 100%;
  padding: 10px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.loan-hero-box--center {
  align-items: center;
}

/* リードテキスト */
.loan-hero-lead {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #6f380b;
  -webkit-text-stroke: 8px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(3px 3px 4px rgba(88, 75, 64, 0.4));
  line-height: 1.2;
  align-self: stretch;
  text-align: center;
}

/* 数字行 */
.loan-hero-num-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 100%;-webkit-text-stroke: 8px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(3px 3px 4px rgba(88, 75, 64, 0.4));
}

.loan-hero-prefix {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #4c0b6f;
  line-height: 1;
  padding-bottom: 8px;
}

.loan-hero-prefix--purple {
  color: #4c0b6f;
}

.loan-hero-big-num {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(64px, 9vw, 100px);
  font-weight: 800;
  color: #a30677;
  line-height: 1;
}

.loan-hero-big-unit {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 800;
  color: #a30677;
  line-height: 1;
  padding-bottom: 6px;
}

/* ＋記号 */
.loan-hero-plus {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 56px;
  font-weight: 500;
  color: #6f380b;
  -webkit-text-stroke: 8px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(3px 3px 4px rgba(88, 75, 64, 0.4));
  line-height: 1;
  padding: 4px 0;
  align-self: center;
}

/* 県内勤務・５年間で 行 */
.loan-hero-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.loan-hero-text-brown {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #6f380b;
  -webkit-text-stroke: 8px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(3px 3px 4px rgba(88, 75, 64, 0.4));
}

.loan-hero-text-purple {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #4c0b6f;
  -webkit-text-stroke: 8px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(3px 3px 4px rgba(88, 75, 64, 0.4));
}

/* 返済免除！/ 保育士育成施設 */
.loan-hero-main-text {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  color: #a30677;
  -webkit-text-stroke: 8px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(3px 3px 4px rgba(88, 75, 64, 0.4));
  line-height: 1;
}

.loan-hero-main-text--facility {
  font-size: clamp(32px, 5vw, 60px);
}

/* 全国 サブラベル */
.loan-hero-sublabel {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #4c0b6f;
  -webkit-text-stroke: 8px #fff;
  paint-order: stroke fill;
  filter: drop-shadow(3px 3px 4px rgba(88, 75, 64, 0.4));
  line-height: 1.2;
}

/* ===== グラフ ===== */
.loan-program .graph {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.loan-program .graph-arrow {
  width: 22px;
  flex-shrink: 0;
  align-self: center;
}

.loan-program .graph p {
  text-align: center;
  font-family: "Zen Maru Gothic", sans-serif;
}

.loan-program .graph1,
.loan-program .graph2,
.loan-program .graph3 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 20px;
  border-radius: 5px;
  color: #fff;
}

.loan-program .graph1 {
  background: #0056b3;
  justify-content: center;
}

.loan-program .graph2 {
  background: #176325;
  flex: 1;
  gap: 4px;
}

.loan-program .graph3 {
  background: #9a361d;
  justify-content: center;
}

.loan-program .graph-text {
  font-size: 22px;
  font-weight: 500;
}

.loan-program .graph-price {
  margin-top: -6px;
  font-size: 28px;
  font-weight: 700;
}

.loan-program .manyen {
  display: inline-block;
  position: relative;
  bottom: 1px;
  font-size: 17px;
  margin-left: 1.5px;
}

/* グラフ区切り線 */
.loan-program .graph-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1px;
  margin: 2px 0;
}

.loan-program .graph-breakdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 4px 0;
}

.loan-program .graph-breakdown {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  line-height: 1.6;
}

.loan-program .graph-breakdown--label {
  font-size: 16px;
}

.loan-program .breakdown-price {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  margin-left: 2px;
  position: relative;
  bottom: -1px;
}

.loan-program .breakdown-manyen {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  margin-left: 1.5px;
}

.loan-program .times {
  display: inline-block;
  margin: 0 3px;
}

/* ===== 養成施設リスト ===== */
.loan-program .facility-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  width: 100%;
  align-items: start;
}

.loan-program .facility-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.loan-program .facility-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* 番号＋テキスト：横並び */
.loan-program .facility-header {
  display: flex;
  gap: 4px;
  align-items: flex-start;
}

/* 施設名＋住所：縦並び左揃え */
.loan-program .facility-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #5c4635;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 16px;
  flex: 1;
}

/* ③④ グループ */
.loan-program .facility-info--group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.loan-program .facility-name,
.loan-program .facility-number {
  color: #6f380b;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 18px;
  font-weight: 500;
  flex-shrink: 0;
}

.loan-program .facility-name span {
  font-weight: 400;
}

.loan-program .facility-address {
  font-weight: 400;
}

.loan-program .facility-phone,
.loan-program .facility-hp {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.loan-program .facility-phone a,
.loan-program .facility-hp a {
  color: #5c4635;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.loan-program .facility-phone a:hover,
.loan-program .facility-hp a:hover {
  opacity: 0.7;
}

/* 施設写真 */
.loan-program .facility-img {
  width: 100%;
  aspect-ratio: 300 / 220;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* 右カラムのラッパー：マップを下揃え */
.loan-program .facility-columns > .facility-list {
  height: 100%;
}

.loan-program .facility-columns > .facility-list > .map-border-box {
  margin-top: auto;
}

/* ===== 地図 ===== */
.loan-program .map-border-box {
  width: 100%;
  border: 1px solid #574B38;
}

.loan-program .map-border-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== 詳細リンク ===== */
.loan-hp-link {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #5c4635;
  line-height: 30px;
  text-align: center;
}

.loan-hp-link a {
  color: #5c4635;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.loan-hp-link a:hover {
  opacity: 0.7;
}

/* =============================================
   Responsive：タブレット (max-width: 1040px)
   ============================================= */

@media (max-width: 1040px) {
  .loan-program .lower-page-inner {
    width: calc(100% - 48px);
  }

  .loan-program .white-container-area,
  .loan-program .inner-container {
    width: 100%;
  }

  .loan-hero {
    width: 100%;
    height: auto;
    aspect-ratio: 800 / 425;
  }

  .loan-hero-content {
    padding: 12px 16px 12px calc(40% + 16px);
  }

  .loan-hero-content--left {
    padding: 12px calc(35% + 16px) 12px 16px;
  }
}

/* =============================================
   Responsive：SP (max-width: 768px)
   ============================================= */

@media (max-width: 768px) {
  .loan-program main {
    padding: 70px 0 80px;
  }

  .loan-program .lower-page-title {
    padding: 48px 0 36px;
  }

  .loan-program .lower-page-title-container img {
    width: 70px;
    height: 70px;
  }

  .loan-program .lower-page-subtitle {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1.6px;
  }

  .loan-program .lower-page-heading {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .loan-program .lower-page-inner {
    width: calc(100% - 32px);
    gap: 40px;
  }

  .loan-program .white-container {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .loan-program .white-container-area {
    width: 100%;
    gap: 36px;
  }

  .loan-program .container-title {
    flex-direction: column;
    margin-left: 0;
  }

  .loan-program .container-title img {
    width: 40px;
    height: auto;
  }

  .loan-program .container-title-text {
    font-size: 22px;
  }

  .loan-program .inner-container {
    width: 100%;
    gap: 20px;
  }

  .loan-program .description-text {
    font-size: 15px;
    line-height: 26px;
  }

  /* ヒーローバナー：SP版はフラット画像に置き換え */
  .loan-hero {
    width: 100%;
    height: auto;
    aspect-ratio: unset;
    border-radius: 10px;
    overflow: hidden;
  }

  .loan-hero-sp-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .loan-hero-bg,
  .loan-hero-content {
    display: none;
  }

  /* グラフ：横並び→縦並び */
  .loan-program .graph {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .loan-program .graph-arrow {
    width: 22px;
    height: 22px;
    transform: rotate(90deg);
  }

  .loan-program .graph1,
  .loan-program .graph2,
  .loan-program .graph3 {
    width: 100%;
    padding: 10px 16px;
  }

  .loan-program .graph-text {
    font-size: 18px;
  }

  .loan-program .graph-price {
    font-size: 24px;
  }

  .loan-program .breakdown-price {
    font-size: 16px;
  }

  /* 施設リスト：SP は1カラム縦積み */
  .loan-program .facility-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 施設写真：SP はカラム幅いっぱいに広げ、比率を維持 */
  .loan-program .facility-img {
    max-width: 100%;
  }

  .loan-program .border-box {
    width: 100%;
    padding: 16px;
  }

  .loan-program .description-separator {
    width: 100%;
  }
}
