/* -------------------------------------------------------
   口コミスライダー
   ------------------------------------------------------- */
.review-container {
  margin: 0 auto;
  position: relative;
  font-family: 'BrandKaiGothic', sans-serif;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  background: #fff !important;
  color: #333;
}

.review-container .review-balloon {
  display: table;
  margin: 0 auto 25px;
  position: relative;
  background: none;
  border: 3px solid #004D28;
  border-radius: 13px;
  padding: 8px 20px;
  color: #004D28;
  font-size: 18px;
  line-height: 1.4;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  text-align: center;
  font-family: 'BrandKaiGothic', sans-serif;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.review-container .review-balloon::before,
.review-container .review-balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 12px solid transparent;
  bottom: -24px;
}

.review-container .review-balloon::before {
  border-top: 12px solid #1f4e30;
}

.review-container .review-balloon::after {
  bottom: -19px;
  border-top: 12px solid #fff;
}

/* タイトル・微調整 */
.review-container .review-ttl02 {
  color: #264d2c;
  text-align: center;
  font-size: 1.8em !important;
  font-family: 'BrandKaiGothic', sans-serif;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0 !important;
  margin: 0 auto !important;
  position: relative;
  box-shadow: none !important;
  border: none !important;
  background: #fff;
}

.review-container .review-ttl02::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #ffeb3b;
  margin: 10px auto 0;
  border-radius: 2px;
}

.review-container .review-ttl-sm {
  font-size: 0.9em;
}

.review-container .review-ttl02::before {
  content: none !important;
}

/* リスト（スライダー本体） */
.review-container .review-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 5px !important;
  scroll-behavior: auto !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  cursor: -webkit-grab;
  user-select: none;
  scroll-padding-left: 10px;
}

.review-container .review-list::-webkit-scrollbar {
  display: none;
}

.review-container .review-list.is-animating {
  scroll-snap-type: none !important;
  pointer-events: none;
}

.review-container .review-list.active {
  cursor: grabbing;
  cursor: -webkit-grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

/* 各カード */
.review-container .review-item {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 0 0 85%;
  max-width: 360px;
  background-color: #FDFBF5;
  border-radius: 6px;
  padding: 25px 20px;
  position: relative;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
  scroll-snap-align: start;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.review-container .review-item-img {
  flex-shrink: 0;
  width: 70px;
  margin-top: 5px;
}

.review-container .review-item-img img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #fff;
  object-fit: cover;
}

.review-container .review-item-txt_sec {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
}

.review-container .review-item-txt {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  font-family: 'BrandKaiGothic', sans-serif;
  font-weight: 400;
  line-height: 1.8;
}

.review-container .review-item-name {
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-size: 13px;
  color: #004D28;
  font-family: 'BrandKaiGothic', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ナビゲーションボタン */
.review-container .slider-controls {
  display: none;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
  padding-right: 5px;
}

.review-container .nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: #e6e6e6;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.review-container .nav-btn:hover {
  background-color: #d1d1d1;
}

.review-container .nav-btn svg {
  display: block;
}

.review-container .nav-btn.prev,
.review-container .nav-btn[style*="opacity: 0.3"] {
  opacity: 0.3;
}

.review-container .nav-btn[style*="opacity: 0.3"] {
  cursor: not-allowed !important;
}


/* スライダードット */
.review-container .slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.review-container .slider-dots .dot {
  width: 8px;
  height: 8px;
  background-color: #ddd;
  border-radius: 50%;
  transition: all 0.3s ease; /* 色の変化や拡大を滑らかにする */
  display: block;
}

.review-container .slider-dots .dot.is-active {
  background-color: #004D28;
  transform: scale(1.3);
}

@media (min-width: 768px) {
  .review-container .review-item {
    flex: 0 0 360px;
    scroll-snap-align: start;
  }
  .review-container .slider-controls {
    display: flex;
  }
  .review-container .review-ttl-sm {
    font-size: 0.95em;
  }
}

@media (max-width: 768px) {
  .review-container .slider-dots {
      margin: 10px 0;
  }
  .review-container .slider-dots .dot{
      width: 6px;
      height: 6px;
  }
  .review-container .review-ttl02::after {
    margin-top: 
  }
  .review-container .review-balloon {
    margin-bottom: 18px;
  }
}

@media (min-width: 600px) {
  .review-container .review-ttl-sm {
    font-size: 0.95em;
  }
}


/* -------------------------------------------------------
   成績UP事例（タイトル＆カードリスト）
   ------------------------------------------------------- */
.improvements-section .score-container {
  container-type: inline-size;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  font-family: 'BrandKaiGothic', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  color: #333;
  padding-top: 32px;
  padding-bottom: 8px;
}

/* タイトルエリア */
.improvements-section .score-title-sec {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1cqi;
  width: 100%;
  padding-bottom: 8px;
  font-family: 'BrandKaiGothic', sans-serif;
}

.improvements-section .score-title-sec > * {
  white-space: nowrap;
  flex-shrink: 0;
}

.improvements-section .title-lead {
  color: #004c26;
  font-weight: bold;
  text-align: left;
  line-height: 1.2;
  font-size: 3.3cqi;
  padding-bottom: 0.5cqi;
}

.improvements-section .title-pill {
  background-color: #004c26;
  color: #fff100;
  font-size: 4.8cqi;
  padding: 0.5cqi 2.5cqi;
  border-radius: 999px;
  letter-spacing: 0.05em;
  font-family: 'BrandKaiGothic', sans-serif;
  font-weight: 800;
}

.improvements-section .title-suffix {
  color: #004c26;
  font-weight: 800;
  position: relative;
  font-size: 4.5cqi;
  margin-bottom: -8px;
}

.improvements-section .title-suffix-sm {
  font-size: 0.75em;
  margin-right: 0.1em;
}

.improvements-section .title-logo {
  width: 24cqi;
  height: auto;
  padding-bottom: 0;
}

.improvements-section .dots {
  -webkit-text-emphasis: filled circle #fff100;
  text-emphasis: filled circle #fff100;
  text-emphasis-position: over right;
}

.improvements-section .kome {
  text-align: right;
  font-size: 12px;
}

.improvements-section .score-container .review-ttl02 {
  display: none !important;
}

.improvements-section .score-container .title-school {
  text-align: center;
  margin-bottom: 16px;
}

.improvements-section .score-container .title-school p {
  display: inline-block;
  font-family: 'BrandKaiGothic', sans-serif;
  font-weight: 600;
  color: #004c26;
  font-size: 3cqi;
  background: linear-gradient(transparent 75%, #fff100 75%);
  line-height: 1.4;
  padding: 0 10px;
}

/* カードリスト（アコーディオン含む） */
.improvements-section .score-card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 55px;
  /* 上:80 右:60 下:50 左:10 */
  padding: 80px 60px 50px 1.5em;
  margin: 0;
  list-style: none !important;
  background-color: #F4F7DE;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.improvements-section .score-card-list::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, rgba(244, 247, 222, 0), #F4F7DE 90%);
  pointer-events: none;
  transition: opacity 0.5s;
  opacity: 1;
}

.improvements-section .score-card-list.is-open::after {
  opacity: 0;
}

/* カード本体 */
.improvements-section .score-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

/* 5件目以降の制御 */
.improvements-section .score-card:nth-child(n+5),
.improvements-section .score-card.is-hidden {
  display: none;
}

.improvements-section .card-header {
  background: #004c26;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 6px 6px 0 0;
}

.improvements-section .school-name {
  font-size: 20px;
  margin: 0;
  line-height: 1;
  font-family: 'BrandKaiGothic', sans-serif;
  font-weight: 400;
}

.improvements-section .card-body {
  position: relative;
  align-items: flex-end;
  justify-content: space-between;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.improvements-section .card-img-area {
  width: 100%;
  max-width: 127px;
  margin: 0 5px -3px 0;
  z-index: 1;
  line-height: 0;
  flex: 0 0 22%;
}

.improvements-section .card-img-area img {
  width: 100%;
  height: auto;
  display: block;
}

.improvements-section .card-info-area {
  flex: 1;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-right: 10px;
}

.improvements-section .info-subject-row {
  justify-content: center;
  border-bottom: 1px solid #004c26;
  padding-bottom: 5px;
  padding-top: 8px;
  margin-bottom: 4px;
  text-align: center;
  margin-left: 12px;
  margin-right: 12px;
}

.improvements-section .info-subject-row .label {
  font-family: 'BrandKaiGothic', sans-serif;
  font-weight: 800;
  color: #004c26;
  font-size: 16px;
}

.improvements-section .info-score-row {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.improvements-section .score-block {
  text-align: center;
}
.improvements-section .card-text-area{
  width: 100%;
}

.improvements-section .card-text-area .period {
  font-size: 13px;
  background: #f0f7f4;
  color: #00452d;
  margin: 0 0 16px 0;
  line-height: 1.3;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: center;
  padding: 4px 0;
  border-radius: 2px;
}

.improvements-section .score-block .points {
  margin: 0;
  white-space: nowrap;
  letter-spacing: -0.03em;
  font-family: 'BrandDIN', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1;
  color: #333;
}

.improvements-section .score-block .unit {
  font-size: 16px;
  font-weight: 400;
}

.improvements-section .score-arrow {
  display: inline-block;
  position: relative;
  width: 30px;
  height: 30px;
  vertical-align: middle;
  color: transparent;
  font-size: 0;
}

.improvements-section .score-arrow::before {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #004c26;
}

.improvements-section .score-arrow img {
  width: 40px;
  height: auto;
}

/* バッジ */
.improvements-section .up-badge {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #ffeb3b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transform: rotate(10deg);
}

.improvements-section .up-badge .badge-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: -1;
}

.improvements-section .badge-text {
  font-family: 'BrandDIN', sans-serif;
  font-weight: 700;
  color: #e51f4d;
  text-align: center;
  line-height: 1;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  padding-left: 10px;
  padding-top: 5px;
}

.improvements-section .badge-text .num {
  font-size: 3rem;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: -5px;
}

.improvements-section .badge-text .unit {
  font-size: 16px;
  display: inline;
  margin-left: 2px;
}

.improvements-section .badge-text .up-suffix {
  font-family: 'BrandKaiGothic', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  vertical-align: top;
  margin-left: 2px;
}

.improvements-section .points .unit,
.improvements-section .badge-text .unit {
  font-family: 'BrandKaiGothic', sans-serif;
  font-weight: 400;
  margin-left: 2px;
  vertical-align: baseline;
}

/* もっと見るボタン */
.improvements-section .score-btn-area {
  text-align: right;
}

.improvements-section .score-readmore-btn {
  width: 280px;
  max-width: 90%;
  padding: 12px 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: #004c26;
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  font-family: 'BrandKaiGothic', sans-serif;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.improvements-section .score-readmore-btn:hover {
  background-color: #006633;
  opacity: 0.9;
}


/* スマホ用（767px以下） */
@media (max-width: 767px) {
  .improvements-section .sp-br {
    display: block;
  }

  .improvements-section .score-card-list {
    grid-template-columns: 1fr;
    gap: 50px;
    justify-items: center;
    padding-left: 20px !important;
    padding-right: 30px;
    padding-top: 50px;
  }

  .improvements-section .score-card {
    width: 90%;
    max-width: 420px;
    margin: 0 auto;
  }

  .improvements-section .card-img-area {
    /* 固定幅を解除し、縮むことを許可する */
    flex: 0 1 40%;
    min-width: 60px;
    max-width: 90px;
  }

  .improvements-section .card-info-area {
    padding-right: 10px;
    flex: 1;
    min-width: 0;
  }
  
  .improvements-section .info-score-row {
    width: 100%;
    justify-content: center;
  }

  .improvements-section .score-block .points {
    font-size: clamp(32px, 10vw, 50px) !important;
  }

  .improvements-section .title-pill {
    font-size: 7cqi;
  }
  .improvements-section .title-lead {
    font-size: 5cqi;
  }
  .improvements-section .title-suffix {
    margin-bottom: -2px;
    font-size: 6.5cqi;
  }
  .improvements-section .score-readmore-btn {
    width: 180px;
    font-size: 15px;
  }
  .improvements-section .score-container .title-school {
    margin-bottom: 8px;
  }
  .improvements-section .score-container .title-school p {
    font-size: 4.8cqi;
  }
}

@media (max-width: 600px) {
  .improvements-section .badge-text .num {
    font-size: 2.6rem;
  }
}

/* 480px以下 */
@media (max-width: 480px) {
  .improvements-section .school-name {
    font-size: 16px;
  }
  .improvements-section .score-block .points {
    font-size: 40px;
  }
  .improvements-section .score-block .period {
    font-size: 10px;
  }
  .improvements-section .score-block .unit {
    font-size: 14px;
  }
  .improvements-section .up-badge {
    width: clamp(65px, 21vw, 84px);
    height: clamp(65px, 21vw, 84px);
    top: -20px;
    right: -20px;
  }
  .improvements-section .score-arrow {
    width: 40px;
    height: 40px;
  }
}


/* 一覧ページの成績アップ見出し（口コミと同じデザインを適用） */
.improvement-ttl {
    color: #264d2c;
    text-align: center;
    font-size: 1.8em !important;
    font-family: 'BrandKaiGothic', sans-serif;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0 !important;
    margin: 0 auto 40px !important; /* 下に少し余白を追加 */
    position: relative;
    box-shadow: none !important;
    border: none !important;
    background: #fff;
}

/* もし背景の薄緑色が不要で、口コミと同じように白背景にしたい場合は 
   親の .location-improvements に background: #fff; を当ててください */
.location-improvements {
    background: #fff !important;
}
/* 成績アップ事例見出しの下の黄色い線 */
.improvement-ttl::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #ffeb3b; /* 口コミと同じ黄色。rgb(255, 235, 59) と同じです */
    margin: 10px auto 0;
    border-radius: 2px;
}