/**
 * CSS for WordPress Sections
 * - Learning Flow (実践重視のアプローチ)
 * - Certificate (修了証の発行)
 * - Career Vision (修了後のキャリア)
 * - Testimonials (受講生の声)
 */

/* ========================================
   Learning Flow Section
   ======================================== */

.top-learning-flow {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
  overflow: hidden;
}

.top-learning-flow__bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.top-learning-flow__circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
}

.top-learning-flow__circle--blue {
  width: 400px;
  height: 400px;
  background: #005bab;
  top: 10%;
  right: -100px;
}

.top-learning-flow__circle--orange {
  width: 300px;
  height: 300px;
  background: #E39B2F;
  bottom: 20%;
  left: -80px;
}

.top-learning-flow__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-learning-flow__header {
  text-align: center;
  margin-bottom: 60px;
}

.top-learning-flow__badge {
  display: inline-block;
  padding: 8px 20px;
  background: #E39B2F;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-learning-flow__title {
  font-size: 32px;
  font-weight: bold;
  color: #002447;
  margin-bottom: 20px;
  line-height: 1.4;
}

.top-learning-flow__lead {
  font-size: 18px;
  color: #4a5568;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.top-learning-flow__steps {
  margin-bottom: 60px;
}

.top-learning-flow__step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.top-learning-flow__step--reverse {
  grid-template-columns: 1fr 1fr;
}

.top-learning-flow__step--reverse .top-learning-flow__step-image {
  order: 2;
}

.top-learning-flow__step--reverse .top-learning-flow__step-content {
  order: 1;
}

.top-learning-flow__step-image {
  border-radius: 12px;
  overflow: hidden;
}

.top-learning-flow__step-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.top-learning-flow__step-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.top-learning-flow__step-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-learning-flow__step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #005bab 0%, #003d82 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
}

.top-learning-flow__step-title {
  font-size: 20px;
  font-weight: bold;
  color: #002447;
  line-height: 1.4;
  margin: 0;
}

.top-learning-flow__problem {
  background: #fff5f5;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #e91e63;
}

.top-learning-flow__problem-label {
  font-size: 12px;
  font-weight: bold;
  color: #e91e63;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.top-learning-flow__problem-text {
  font-size: 15px;
  color: #2d3748;
  line-height: 1.6;
  margin: 0;
}

.top-learning-flow__solution {
  background: #f0f9ff;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #005bab;
}

.top-learning-flow__solution-label {
  font-size: 12px;
  font-weight: bold;
  color: #005bab;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.top-learning-flow__solution-text {
  font-size: 15px;
  color: #2d3748;
  line-height: 1.6;
  margin: 0;
}

.top-learning-flow__step-description {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.8;
  margin: 0;
}

.top-learning-flow__arrow {
  text-align: center;
  font-size: 32px;
  color: #005bab;
  margin: 20px 0;
}

.top-learning-flow__cta {
  background: linear-gradient(135deg, #002447 0%, #005bab 100%);
  padding: 50px 40px;
  border-radius: 16px;
  text-align: center;
  color: #ffffff;
}

.top-learning-flow__cta-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.4;
}

.top-learning-flow__cta-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.top-learning-flow__cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: #E39B2F;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.top-learning-flow__cta-button:hover {
  background: #d88b1f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(227, 155, 47, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .top-learning-flow {
    padding: 60px 0;
  }

  .top-learning-flow__title {
    font-size: 24px;
  }

  .top-learning-flow__lead {
    font-size: 16px;
  }

  .top-learning-flow__step,
  .top-learning-flow__step--reverse {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    gap: 24px;
  }

  .top-learning-flow__step--reverse .top-learning-flow__step-image {
    order: 1;
  }

  .top-learning-flow__step--reverse .top-learning-flow__step-content {
    order: 2;
  }

  .top-learning-flow__step-title {
    font-size: 18px;
  }

  .top-learning-flow__cta {
    padding: 40px 24px;
  }

  .top-learning-flow__cta-title {
    font-size: 22px;
  }

  .top-learning-flow__cta-text {
    font-size: 15px;
  }
}

/* ========================================
   Certificate Section
   ======================================== */

.top-certificate {
  padding: 80px 0;
  background: #ffffff;
}

.top-certificate__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-certificate__header {
  text-align: center;
  margin-bottom: 50px;
}

.top-certificate__badge {
  display: inline-block;
  padding: 8px 20px;
  background: #f0f9ff;
  color: #005bab;
  font-size: 13px;
  font-weight: bold;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-certificate__title {
  font-size: 32px;
  font-weight: bold;
  color: #002447;
  margin-bottom: 16px;
  line-height: 1.4;
}

.top-certificate__subtitle {
  font-size: 18px;
  color: #4a5568;
  line-height: 1.7;
}

.top-certificate__content {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.top-certificate__decoration {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 3px solid #E39B2F;
  opacity: 0.3;
}

.top-certificate__decoration--top {
  top: 20px;
  left: 20px;
  border-right: none;
  border-bottom: none;
  border-radius: 8px 0 0 0;
}

.top-certificate__decoration--bottom {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 8px 0;
}

.top-certificate__inner {
  position: relative;
  z-index: 1;
}

.top-certificate__reskill-badge {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #005bab 0%, #003d82 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  margin-bottom: 24px;
}

.top-certificate__intro {
  font-size: 16px;
  color: #2d3748;
  line-height: 1.9;
  margin-bottom: 32px;
}

.top-certificate__intro strong {
  color: #002447;
  font-weight: bold;
}

.top-certificate__benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.top-certificate__benefit {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  border-left: 4px solid #E39B2F;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.top-certificate__benefit-title {
  display: block;
  font-size: 18px;
  color: #002447;
  margin-bottom: 8px;
}

.top-certificate__benefit-text {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
}

.top-certificate__example {
  background: #fffbeb;
  padding: 24px;
  border-radius: 12px;
  border: 2px dashed #E39B2F;
}

.top-certificate__example-label {
  font-size: 13px;
  font-weight: bold;
  color: #E39B2F;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.top-certificate__example-text {
  font-size: 15px;
  color: #2d3748;
  line-height: 1.7;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .top-certificate {
    padding: 60px 0;
  }

  .top-certificate__title {
    font-size: 24px;
  }

  .top-certificate__subtitle {
    font-size: 16px;
  }

  .top-certificate__content {
    padding: 40px 24px;
  }

  .top-certificate__benefits {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .top-certificate__decoration {
    width: 40px;
    height: 40px;
  }
}

/* ========================================
   Career Vision Section
   ======================================== */

.top-career-vision {
  padding: 80px 0;
  background: #f8f9fa;
}

.top-career-vision__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-career-vision__header {
  text-align: center;
  margin-bottom: 60px;
}

.top-career-vision__badge {
  display: inline-block;
  padding: 8px 20px;
  background: #f0f9ff;
  color: #005bab;
  font-size: 13px;
  font-weight: bold;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-career-vision__title {
  font-size: 32px;
  font-weight: bold;
  color: #002447;
  margin-bottom: 20px;
  line-height: 1.4;
}

.top-career-vision__subtitle {
  font-size: 18px;
  color: #4a5568;
  line-height: 1.8;
}

.top-career-vision__block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 50px;
  background: #ffffff;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.top-career-vision__block--2 {
  grid-template-columns: 1fr 1fr;
}

.top-career-vision__block--2 .top-career-vision__image {
  order: 2;
}

.top-career-vision__block--2 .top-career-vision__text {
  order: 1;
}

.top-career-vision__image {
  border-radius: 12px;
  overflow: hidden;
}

.top-career-vision__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.top-career-vision__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-career-vision__block-title {
  font-size: 24px;
  font-weight: bold;
  color: #002447;
  line-height: 1.4;
  margin: 0;
}

.top-career-vision__block-description {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.9;
  margin: 0;
}

.top-career-vision__cta {
  text-align: center;
  background: linear-gradient(135deg, #002447 0%, #005bab 100%);
  padding: 50px 40px;
  border-radius: 16px;
  color: #ffffff;
}

.top-career-vision__cta-text {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.7;
  opacity: 0.95;
}

.top-career-vision__cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: #E39B2F;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.top-career-vision__cta-button:hover {
  background: #d88b1f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(227, 155, 47, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .top-career-vision {
    padding: 60px 0;
  }

  .top-career-vision__title {
    font-size: 24px;
  }

  .top-career-vision__subtitle {
    font-size: 16px;
  }

  .top-career-vision__block,
  .top-career-vision__block--2 {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    gap: 24px;
  }

  .top-career-vision__block--2 .top-career-vision__image {
    order: 1;
  }

  .top-career-vision__block--2 .top-career-vision__text {
    order: 2;
  }

  .top-career-vision__block-title {
    font-size: 20px;
  }

  .top-career-vision__cta {
    padding: 40px 24px;
  }

  .top-career-vision__cta-text {
    font-size: 16px;
  }
}

/* ========================================
   Testimonials Section
   ======================================== */

.top-testimonials {
  padding: 80px 0;
  background: #ffffff;
}

.top-testimonials__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-testimonials__header {
  text-align: center;
  margin-bottom: 60px;
}

.top-testimonials__badge-wrapper {
  margin-bottom: 16px;
}

.top-testimonials__badge {
  display: inline-block;
  padding: 8px 20px;
  background: #f0f9ff;
  color: #005bab;
  font-size: 13px;
  font-weight: bold;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-testimonials__title {
  font-size: 32px;
  font-weight: bold;
  color: #002447;
  margin-bottom: 16px;
  line-height: 1.4;
}

.top-testimonials__subtitle {
  font-size: 18px;
  color: #4a5568;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.top-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.top-testimonials__card {
  background: #f8f9fa;
  padding: 32px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.top-testimonials__card:hover {
  border-color: #005bab;
  box-shadow: 0 8px 20px rgba(0, 91, 171, 0.15);
  transform: translateY(-4px);
}

.top-testimonials__card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.top-testimonials__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #E39B2F;
}

.top-testimonials__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-testimonials__profile {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.top-testimonials__name {
  font-size: 16px;
  font-weight: bold;
  color: #002447;
  margin: 0;
}

.top-testimonials__company {
  font-size: 14px;
  color: #718096;
  margin: 0;
}

.top-testimonials__card-title {
  font-size: 18px;
  font-weight: bold;
  color: #002447;
  line-height: 1.5;
  margin-bottom: 16px;
}

.top-testimonials__summary {
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  border-left: 4px solid #005bab;
}

.top-testimonials__before,
.top-testimonials__after,
.top-testimonials__result {
  font-size: 14px;
  color: #2d3748;
  line-height: 1.7;
  margin-bottom: 8px;
}

.top-testimonials__before:last-child,
.top-testimonials__after:last-child,
.top-testimonials__result:last-child {
  margin-bottom: 0;
}

.top-testimonials__before strong {
  color: #e91e63;
  font-weight: bold;
}

.top-testimonials__after strong {
  color: #005bab;
  font-weight: bold;
}

.top-testimonials__result strong {
  color: #E39B2F;
  font-weight: bold;
}

.top-testimonials__quote {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.8;
  font-style: italic;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .top-testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .top-testimonials {
    padding: 60px 0;
  }

  .top-testimonials__title {
    font-size: 24px;
  }

  .top-testimonials__subtitle {
    font-size: 16px;
  }

  .top-testimonials__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .top-testimonials__card {
    padding: 24px;
  }

  .top-testimonials__card-title {
    font-size: 16px;
  }
}

/* ========================================
   FIX: Certificate を理想（紺背景）に戻す
   追加場所：lp/lp-sections.css の一番下
   ======================================== */

/* セクション背景を紺に戻す（いま白指定が勝ってるのを上書き） */
.top-lp .top-certificate,
.top-certificate {
  background: linear-gradient(180deg, #003d82 0%, #002447 100%) !important;
  color: #ffffff !important;
  padding: 80px 0;
}

/* 見出し類は白 */
.top-certificate__badge,
.top-certificate__title,
.top-certificate__subtitle {
  color: #ffffff !important;
}

/* バッジは理想側に寄せる（上の画像の雰囲気） */
.top-certificate__badge {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
}

/* 中のカードは白い面（理想画像の中央カード） */
.top-certificate__content {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
  border: 2px solid rgba(255,255,255,0.25) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25) !important;
}

/* カード内は濃い文字に戻す（白背景の上なので） */
.top-certificate__content,
.top-certificate__content * {
  color: #002447;
}

/* Reスキルの青バッジは白文字 */
.top-certificate__reskill-badge {
  color: #ffffff !important;
}

/* 履歴書記載例は濃い青の帯（理想の下部バーっぽく） */
.top-certificate__example {
  background: #005bab !important;
  border: none !important;
}

.top-certificate__example-label,
.top-certificate__example-text {
  color: #ffffff !important;
}

/* 装飾はオレンジ */
.top-certificate__decoration {
  border-color: #E39B2F !important;
}

/* ===== V0: Career Vision（紺背景）ここから ===== */
/* ========================================
   Career Vision Section - V0(紺背景)上書き
   ======================================== */

/* セクション背景を理想の紺に */
.top-career-vision {
  background: radial-gradient(ellipse at top, #0b3a5a 0%, #071c2e 60%, #061423 100%);
  color: #ffffff;
}

/* 見出し周りは白文字化（今は濃い文字指定があるため上書き） */
.top-career-vision__badge {
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.14);
}

.top-career-vision__title,
.top-career-vision__subtitle {
  color: #ffffff;
}

/* ブロックを“ガラスカード”風に */
.top-career-vision__block {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  padding: 34px;
  gap: 36px;
}

/* テキストは白ベースに */
.top-career-vision__block-title {
  color: #ffffff;
  font-size: 20px; /* 理想画像の密度に寄せて少し小さめ */
}

.top-career-vision__block-description {
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  line-height: 1.85;
}

/* 画像をカードっぽく（角丸＋フィット） */
.top-career-vision__image {
  border-radius: 12px;
  overflow: hidden;
}

.top-career-vision__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CTAは“濃い帯”寄りに */
.top-career-vision__cta {
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.top-career-vision__cta-text {
  font-size: 14px;
  margin-bottom: 18px;
}

/* ボタンは理想の丸み寄せ */
.top-career-vision__cta-button {
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 16px;
}
/* ===== V0: Career Vision ここまで ===== */
/* ========================================
   Testimonials Section（6 people）上書き
   ======================================== */
.top-testimonials {
  padding: 80px 0;
  background-color: #ffffff;
}

.top-testimonials__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.top-testimonials__header {
  text-align: center;
  margin-bottom: 64px;
}

.top-testimonials__badge {
  display: inline-block;
  margin-bottom: 24px;
}

.top-testimonials__badge-text {
  font-size: 14px;
  font-weight: 700;
  color: #005bab;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: #f0f7ff;
  padding: 8px 24px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 91, 171, 0.3);
}

.top-testimonials__title {
  font-size: 36px;
  font-weight: 700;
  color: #005bab;
  margin-bottom: 16px;
  line-height: 1.2;
}

.top-testimonials__subtitle {
  font-size: 20px;
  color: #4a5568;
  line-height: 1.6;
}

/* Grid */
.top-testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .top-testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .top-testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.top-testimonials__card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 32px;
  transition: all 0.3s ease;
}

.top-testimonials__card:hover {
  border-color: #005bab;
  box-shadow: 0 4px 12px rgba(0, 91, 171, 0.1);
  transform: translateY(-2px);
}

/* Profile */
.top-testimonials__profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.top-testimonials__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #005bab;
  flex-shrink: 0;
}

.top-testimonials__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-testimonials__info {
  flex: 1;
}

.top-testimonials__name {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 16px;
  margin-bottom: 4px;
}

.top-testimonials__company {
  font-size: 14px;
  color: #718096;
  margin: 0;
}

/* Heading */
.top-testimonials__heading {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px;
  line-height: 1.4;
}

/* Journey */
.top-testimonials__journey {
  margin-bottom: 16px;
}

.top-testimonials__before,
.top-testimonials__after,
.top-testimonials__result {
  font-size: 14px;
  margin: 0 0 12px;
  line-height: 1.6;
}

.top-testimonials__before,
.top-testimonials__after {
  color: #718096;
}

.top-testimonials__result {
  color: #005bab;
  font-weight: 600;
}

.top-testimonials__label {
  font-weight: 700;
  color: #2d3748;
}

.top-testimonials__label-bold {
  font-weight: 700;
  color: #1a1a1a;
}

/* Quote */
.top-testimonials__quote {
  color: #4a5568;
  line-height: 1.6;
  font-size: 14px;
  font-style: italic;
  border-left: 4px solid #E39B2F;
  padding-left: 16px;
  margin: 0;
}

/* CTA */
.top-testimonials__cta {
  text-align: center;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-top: 48px;
}

.top-testimonials__cta-text {
  font-size: 18px;
  color: #4a5568;
  margin: 0 auto 24px;
  max-width: 672px;
  line-height: 1.6;
}

.top-testimonials__cta-button {
  display: inline-block;
  background-color: #E39B2F;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  padding: 24px 40px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(227, 155, 47, 0.3);
}

.top-testimonials__cta-button:hover {
  background-color: #d88b1f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(227, 155, 47, 0.4);
}

/* SP */
@media (max-width: 767px) {
  .top-testimonials {
    padding: 60px 0;
  }

  .top-testimonials__title {
    font-size: 28px;
  }

  .top-testimonials__subtitle {
    font-size: 16px;
  }

  .top-testimonials__card {
    padding: 24px;
  }

  .top-testimonials__heading {
    font-size: 16px;
  }

  .top-testimonials__cta-text {
    font-size: 16px;
  }

  .top-testimonials__cta-button {
    font-size: 16px;
    padding: 20px 32px;
  }
}

/* coursesの「リンクが空白まで伸びる」問題を止める */
#course-intro .top-courses__main-grid {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#course-intro .top-courses__main-card--featured {
  margin-bottom: 0 !important;
}

/* もし grid の親や container が余白を作ってる場合も潰す */
#course-intro .top-courses__container {
  padding-bottom: 0 !important;
}

/* 念のため：リンクの下に謎の空白が出るときの保険 */
#course-intro {
  overflow: hidden; /* クリック領域がはみ出すのを抑える */
}

/* 給付金/メンターのCTAを確実に塗りボタンにする */
.top-financial-support__cta-button,
.top-mentor-support__cta-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0b2d6b !important;
  color: #fff !important;
  border: 1px solid #0b2d6b !important;
  border-radius: 999px !important;
  padding: 14px 22px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.top-financial-support__cta-button:hover,
.top-mentor-support__cta-button:hover {
  opacity: 0.9;
}

/* featuredカードのクリック領域をカード内に限定（最終手段） */
#course-intro .top-courses__main-card--featured {
  position: relative;
  z-index: 1;
}
#course-intro .top-courses__main-card--featured * {
  pointer-events: auto;
}

/* ===== セクション間の「謎の余白」をピンポイントで詰める ===== */

/* courses の直後に来る給付金の上余白を消す */
#course-intro + .top-financial-support {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 給付金の直後に来るメンターの上余白を消す */
.top-financial-support + .top-mentor-support {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* courses 自体の下余白も念のため抑える */
#course-intro {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* 給付金の下余白が大きすぎる場合 */
.top-financial-support {
  margin-bottom: 0 !important;
  padding-bottom: 40px !important; /* 必要なら 0 でもOK */
}

/* ===== 空の要素が挟まって余白になるパターンを潰す（空のときだけ） ===== */
#main_content .top-lp > div:empty,
#main_content .top-lp > section:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== coursesのリンクが下に被らないようにする ===== */
#course-intro {
  position: relative;
  z-index: 1;
  overflow: hidden; /* はみ出しクリック防止 */
}

.top-financial-support,
.top-mentor-support {
  position: relative;
  z-index: 2; /* courses より前面に */
}