/* ============================================
   Slide Guide - スライダー専用CSS
   yakan-senmon.com
   ============================================ */

/* --- スライダー本体 --- */
.sg-slider {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  /* サイト全体のフォントに合わせる */
  font-family: "Zen Maru Gothic", sans-serif;
}

.sg-viewport {
  overflow: hidden;
  border-radius: 20px; /* 角丸を大きくしてポップに */
  /* tailwindのboxShadow.softに近い、うっすら水色の影 */
  box-shadow: 0 10px 40px -10px rgba(27, 172, 232, 0.2);
  background: #fff;
  border: 1px solid #E6F6FE;
}

.sg-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* より滑らかなイージング */
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.sg-track.is-dragging {
  transition: none;
}

/* --- 個別スライド --- */
.sg-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 600px) {
  .sg-slide {
    padding: 32px 24px;
    aspect-ratio: 4 / 3.5; /* スマホでは少し縦長にして見やすく */
  }
}

/* --- スライドカラーバリエーション --- */

/* 表紙：サイトのPrimaryカラー(#1BACE8)を活かした明るいグラデーション */
.sg-slide--cover {
  background: linear-gradient(135deg, #1BACE8 0%, #66CCF8 100%);
  color: #fff;
}
.sg-slide--cover::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.sg-slide--cover::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

/* 白背景 */
.sg-slide--white {
  background: #ffffff;
  color: #334155; /* text */
}

/* 薄い水色背景 (secondaryベース) */
.sg-slide--light {
  background: #F0F9FF; /* secondary */
  color: #334155;
}

/* CTA：コンバージョン用のオレンジ(#fda42a)グラデーション */
.sg-slide--cta {
  background: linear-gradient(135deg, #fbb889 0%, #FDA42B 100%);
  color: #fff;
}

/* 出典：ニュートラルグレー */
.sg-slide--source {
  background: #fafafa; /* surface-subtle */
  color: #64748b; /* text-light */
}

/* --- テキスト要素 --- */
.sg-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 9999px; /* 完全なピル型（カプセル状）にして丸みを強調 */
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

/* バッジの配色 */
.sg-slide--cover .sg-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sg-slide--white .sg-badge,
.sg-slide--light .sg-badge {
  background: #E0F2FE; /* primary-light */
  color: #018CCB; /* brand-600 */
}

.sg-slide--cta .sg-badge {
  background: #FFF8E6; /* cta-light */
  color: #fda42a; /* cta */
}

.sg-slide--source .sg-badge {
  background: #f4f4f5; /* surface-muted */
  color: #64748b; /* text-light */
}

.sg-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.sg-subtitle {
  font-size: clamp(13px, 2.5vw, 16px);
  line-height: 1.7;
  text-align: center;
  opacity: 0.9;
  font-weight: 500;
}

.sg-heading {
  font-size: clamp(18px, 3.5vw, 24px);
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
  color: #0e4a6b; /* text-deep: サイトの濃い青を使用 */
}

/* --- リスト (カード風デザインに変更) --- */
.sg-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 10px; /* リスト間の余白 */
}

.sg-list li {
  display: flex;
  align-items: center; /* アイコンとテキストを中央揃え */
  gap: 12px;
  padding: 12px 16px;
  font-size: clamp(13px, 2.2vw, 15px);
  line-height: 1.6;
  color: #334155;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #E0F2FE;
  box-shadow: 0 2px 8px rgba(27, 172, 232, 0.04);
}

/* ライト背景スライド上のリストは白背景にして目立たせる */
.sg-slide--white .sg-list li {
  background: #F0F9FF; /* secondary */
  border-color: transparent;
}

.sg-list li .sg-icon {
  flex-shrink: 0;
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* --- 大きな数字（注目データ・合格率等） --- */
.sg-number {
  font-size: clamp(40px, 9vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  color: #1BACE8; /* primary */
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.sg-number-sub {
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 800;
  text-align: center;
  color: #0e4a6b; /* text-deep */
  margin-bottom: 12px;
}

.sg-note {
  font-size: clamp(12px, 2vw, 14px);
  line-height: 1.6;
  text-align: center;
  color: #64748b;
  max-width: 500px;
  font-weight: 500;
}

/* --- 2カラムデータ（合格率・年収） --- */
.sg-data-cols {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: 560px;
  justify-content: center;
  background: #F0F9FF;
  padding: 24px 16px;
  border-radius: 16px;
}

.sg-data-col {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sg-data-col .sg-number {
  font-size: clamp(32px, 7vw, 48px);
}

.sg-data-divider {
  width: 2px;
  background: #E0F2FE;
  align-self: stretch;
  border-radius: 2px;
}

@media (max-width: 480px) {
  .sg-data-cols {
    gap: 16px;
    padding: 20px 12px;
  }
}

/* --- CTAリンク --- */
.sg-cta-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  width: 100%;
  max-width: 320px;
}

.sg-cta-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: #ffffff;
  border-radius: 9999px; /* 丸ボタン */
  color: #4d4d4d; /* cta */
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(253, 164, 42, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.sg-cta-link::after {
  content: '▶';
  font-size: 10px;
  position: absolute;
  right: 20px;
}

.sg-cta-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(253, 164, 42, 0.4);
}

/* --- 出典リスト --- */
.sg-source-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.sg-source-list li {
  font-size: 11px;
  line-height: 1.6;
  padding: 4px 0;
  color: #64748b;
  word-break: break-all;
}

/* --- ナビゲーション --- */
.sg-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0 8px;
}

.sg-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E0F2FE; /* primary-light */
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

.sg-dot.is-active {
  background: #1BACE8; /* primary */
  width: 24px;
  border-radius: 4px;
}

.sg-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #ffffff; /* secondary */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #1BACE8; /* primary */
  font-size: 14px;
}

.sg-nav-btn:hover {
  background: #E0F2FE; /* primary-light */
  transform: scale(1.05);
}

.sg-nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
  background: #f4f4f5;
  color: #a1a1aa;
}

.sg-counter {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
  letter-spacing: 0.05em;
}

/* --- サイトクレジット --- */
.sg-credit {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-size: 10px;
  opacity: 0.6;
  font-weight: 700;
  pointer-events: none;
}

/* --- セクションラッパー --- */
.sg-section {
  padding: 56px 16px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.sg-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.sg-section-badge {
  display: inline-block;
  padding: 4px 16px;
  background: #E0F2FE; /* primary-light */
  color: #1BACE8; /* primary */
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.sg-section-title {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 900;
  color: #0e4a6b; /* text-deep */
  margin-bottom: 12px;
  font-family: "Zen Maru Gothic", sans-serif;
}

.sg-section-bar {
  width: 48px;
  height: 4px;
  background: #1BACE8; /* cta (アクセントとして使用) */
  margin: 0 auto 16px;
  border-radius: 2px;
}

.sg-section-sub {
  font-size: 15px;
  color: #64748b;
  font-weight: 500;
}

/* --- CTAリンクリスト（箇条書き） --- */
.sg-cta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sg-cta-list li {
  text-align: center;
}
.sg-cta-list a {
  color: #1BACE8;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 700;
  line-height: 1.6;
}
.sg-cta-list a:hover {
  text-decoration-color: transparent;
}

/* --- 数字の単位（万円等） --- */
.sg-number-unit {
  font-size: 0.5em;
}
