/* ================================================================
   page-sidebar.css  ― サイドバー共通スタイル（FAQ/beginner/experienced）
   .page-2col-layout / .page-sidebar / .fsb-* クラス
   ================================================================ */

/* ===== 2カラムレイアウト（全ページ共通） ===== */
.page-2col-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 42px;
  align-items: start;
}

/* ===== サイドバー本体 ===== */
.page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 76px;
}

/* ===== FAQ サイドバー ===== */
.faq-arc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 76px;
}

/* ================================================================
   ① LINE・応募 CTA カード
   ================================================================ */
.fsb-cta {
  background: linear-gradient(155deg, #1a1f45 0%, #2d3270 100%);
  border-radius: 20px;
  padding: 28px 26px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fsb-cta::before,
.fsb-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.fsb-cta::before {
  width: 140px; height: 140px;
  top: -50px; right: -50px;
  background: rgba(240,62,122,0.12);
}
.fsb-cta::after {
  width: 80px; height: 80px;
  bottom: -20px; left: -20px;
  background: rgba(6,199,85,0.10);
}

.fsb-cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.50);
  margin-bottom: 8px;
}
.fsb-cta-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 21px;
  font-weight: 600;
  color: white;
  line-height: 1.45;
  margin-bottom: 16px;
}
.fsb-cta-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 26px;
}
.fsb-cta-features li {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
}
.fsb-cta-features .fa-check-circle { color: #06C755; font-size: 13px; }

/* ボタン共通 */
.fsb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  padding: 13px 16px;
  margin-bottom: 10px;
  transition: filter 0.2s, transform 0.15s;
}
.fsb-btn:hover { filter: brightness(1.09); transform: translateY(-1px); }

.fsb-btn--line {
  background: #06C755;
  color: white;
}
.fsb-btn--line:hover { color: white; }

.fsb-btn--form {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.90);
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 18px;
}
.fsb-btn--form:hover { color: white; background: rgba(255,255,255,0.20); }

/* 電話リンク */
.fsb-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 16px;
  width: 100%;
  transition: color 0.2s;
}
.fsb-tel:hover { color: white; }
.fsb-tel .fa-phone { font-size: 13px; color: var(--pink-light); }
.fsb-tel span {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
}
.fsb-tel small { font-size: 10px; letter-spacing: 0.06em; color: rgba(255,255,255,0.40); }
.fsb-tel span > :last-child {
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em; color: white;
}

/* ================================================================
   ② 関連ページリンクカード
   ================================================================ */
.fsb-links {
  background: var(--white);
  border: 1px solid var(--pink-light);
  border-radius: 16px;
  overflow: hidden;
}
.fsb-links-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--pink-pale);
}
.fsb-links-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--pink-main);
  margin-bottom: 3px;
}
.fsb-links-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

/* ===== 2カラムグリッド ===== */
.fsb-links nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--pink-pale);
  align-items: start;
}

.fsb-link-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  text-decoration: none;
  color: var(--navy);
  background: var(--white);
  transition: background 0.18s;
  min-height: 64px;
}
.fsb-link-item:hover { background: var(--pink-pale); }

.fsb-link-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--pink-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--pink-main);
  transition: background 0.18s, color 0.18s;
}
.fsb-link-item:hover .fsb-link-icon { background: var(--pink-main); color: white; }

.fsb-link-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.fsb-link-title {
  font-size: 12px; font-weight: 700;
  color: var(--navy); line-height: 1.35;
  display: block;
}
.fsb-link-sub {
  font-size: 10px;
  color: var(--gray-text);
  line-height: 1.5;
  display: block;
  white-space: normal;
}

/* 矢印は2カラムグリッドでは非表示 */
.fsb-link-arrow { display: none; }

/* ================================================================
   レスポンシブ ≤ 900px → 1カラム縦積み
   ================================================================ */
@media (max-width: 900px) {
  .page-2col-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .page-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  /* SP：CTA レイアウト調整 */
  .fsb-cta { text-align: left; }
  .fsb-cta-title { font-size: 19px; }
}

@media (max-width: 640px) {
  .fsb-cta { padding: 21px 16px; }

  /* SP: guideグリッドを2カラム維持しつつ均一化 */
  .fsb-links nav {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }
  .fsb-link-item {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 13px 10px;
    min-height: 64px;
  }
  .fsb-link-icon {
    width: 28px; height: 28px;
    font-size: 11px;
    flex-shrink: 0;
  }
  .fsb-link-body {
    gap: 2px;
    min-width: 0;
  }
  .fsb-link-title {
    font-size: 11px;
    line-height: 1.3;
    white-space: normal;
    word-break: break-all;
  }
  .fsb-link-sub {
    font-size: 9px;
    line-height: 1.4;
    white-space: normal;
  }
  /* 奇数個最後の要素がある場合も均一に */
  .fsb-link-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    flex-direction: row;
  }
}
