/* =========================================================
   まなぶず — サイト固有スタイル（最小限）
   読み込み順: bootstrap → dsystem-tokens → dsystem-overrides → custom
   ========================================================= */

/* --- ページ下部：スマホ固定CTAのための余白 --- */
@media (max-width: 767.98px) {
  body { padding-bottom: 76px; }
}

/* --- スマホ下部固定CTAバー --- */
.ds-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: var(--color-neutral-0);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none;
}
.ds-sticky-cta .btn { width: 100%; }
.ds-sticky-cta small {
  display: block;
  text-align: center;
  color: var(--color-text-secondary);
  margin-top: 4px;
}
@media (max-width: 767.98px) {
  .ds-sticky-cta { display: block; }
}

/* --- CTA下の注記（登録無料・いつでも解除可能） --- */
.ds-cta-note {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-top: 8px;
}

/* --- ヒーローのeyebrowラベル --- */
.ds-hero__title { letter-spacing: -0.01em; }

/* --- 部活カードのアイコン円 --- */
.ds-club-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-orange-tint);
  color: var(--color-orange-600);
}
.ds-club-icon--green {
  background: var(--color-bg-green-tint);
  color: var(--color-green-700);
}
.ds-club-icon i { width: 26px; height: 26px; }

/* --- カードのタグ（ピル） --- */
.ds-pill {
  display: inline-block;
  padding: 2px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  background: var(--color-bg-green-tint);
  color: var(--color-green-700);
}

/* --- チェックリスト（できること） --- */
.ds-checklist { list-style: none; padding-left: 0; margin: 0; }
.ds-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}
.ds-checklist li i {
  color: var(--color-green-600);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

/* --- コーチのアバター --- */
.ds-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1px solid var(--color-border);
}

/* --- ステップ番号 --- */
.ds-step-num {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-orange-500);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
}

/* --- アコーディオン（Q&A）DSystem調整 --- */
.accordion { --bs-accordion-border-color: var(--color-border); }
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg) !important;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-button {
  font-weight: 700;
  color: var(--color-text-primary);
  background: var(--color-neutral-0);
}
.accordion-button:not(.collapsed) {
  color: var(--color-orange-600);
  background: var(--color-bg-orange-tint);
  box-shadow: none;
}
.accordion-button:focus {
  border-color: var(--color-orange-500);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23FF6B35' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
}

/* --- 吹き出し（悩みの声） --- */
.ds-bubble {
  position: relative;
  background: var(--color-neutral-0);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  font-size: var(--font-size-lg);
  line-height: 1.7;
}
.ds-bubble::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -11px;
  width: 20px;
  height: 20px;
  background: var(--color-neutral-0);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-bottom-right-radius: 4px;
  transform: rotate(45deg);
}
.ds-bubble__speaker {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-bg-orange-tint);
  color: var(--color-orange-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ds-bubble__speaker i { width: 18px; height: 18px; }

/* --- 価格の大きな数字 --- */
.ds-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--font-size-4xl);
  line-height: 1;
  color: var(--color-neutral-900);
}
.ds-price small { font-size: var(--font-size-lg); font-weight: 500; }

/* --- セクション見出しの余白調整 --- */
.ds-section-label { display: block; }

/* --- フッターリンク --- */
footer a { color: var(--color-neutral-300); text-decoration: none; }
footer a:hover { color: var(--color-orange-400); }

/* --- 参加後の流れ（ジャーニー） --- */
.ds-journey { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: none; }
.ds-journey li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--color-neutral-0);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.ds-journey .ds-step-num { flex-shrink: 0; }

/* --- まなぶずキャラクター --- */
.ds-char-row { display: flex; align-items: center; justify-content: center; gap: 2px; flex-wrap: wrap; }
.ds-char-row img { width: 68px; height: 68px; }
.ds-char-row .ds-char-arrow { color: var(--color-orange-500); font-weight: 900; }
@media (max-width: 575.98px) {
  .ds-char-row img { width: 52px; height: 52px; }
}
.ds-char--float { animation: ds-float 3.2s ease-in-out infinite; }
@keyframes ds-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --- まなぶずレベルカード --- */
.ds-level-card img { width: 104px; height: 104px; }
@media (min-width: 992px) {
  .ds-level-col { flex: 0 0 20%; max-width: 20%; }
}

/* --- ヒーローの表示アニメーション --- */
.ds-anim { opacity: 0; transform: translateY(16px); animation: ds-fade-up 0.7s ease forwards; }
.ds-anim--d1 { animation-delay: 0.15s; }
.ds-anim--d2 { animation-delay: 0.3s; }
@keyframes ds-fade-up { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .ds-anim { animation: none; opacity: 1; transform: none; }
  .ds-char--float { animation: none; }
}

/* --- クリック可能カード --- */
.ds-card-link { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.ds-card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* --- ページ内アンカーの位置調整（固定ナビ分） --- */
section [id] { scroll-margin-top: 90px; }

/* --- LINEカラーボタン（LINE関連CTA用） --- */
.btn-line {
  background: #06C755;
  border-color: #06C755;
  color: #fff;
}
.btn-line:hover, .btn-line:focus {
  background: #05B34C;
  border-color: #05B34C;
  color: #fff;
}

/* --- Contact Form 7 をサイトデザインに合わせる --- */
.wpcf7 form > p { margin-bottom: 14px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"],
.wpcf7 input[type="url"], .wpcf7 input[type="date"], .wpcf7 input[type="number"],
.wpcf7 select, .wpcf7 textarea {
  display: block;
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-top: 4px;
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--color-orange-500);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}
.wpcf7 input[type="radio"], .wpcf7 input[type="checkbox"] {
  display: inline-block;
  width: auto;
  margin-top: 0;
}
.wpcf7 input[type="submit"] {
  background: var(--color-orange-500);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.7rem 2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--color-orange-600); }
