/* スギーズ TOEIC LP additional styles
   Tailwind でカバーできない細部のみここに。
*/

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* 固定ヘッダーぶん */
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* アクティブなコースタブ */
.course-tab {
  color: #64748b;
  background: transparent;
}
.course-tab.active {
  color: #ffffff;
  background: #0B2A4A;
  box-shadow: 0 4px 14px -4px rgba(11, 42, 74, 0.4);
}

/* Part履修順の矢印風区切り (デスクトップ) */
@media (min-width: 1024px) {
  .part-step {
    position: relative;
  }
  .part-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background: #F08A24;
  }
}

/* details / summary: デフォルトの矢印マーカーを消す */
details summary {
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}

/* Floating CTA fade in */
#floatingCTA.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ヘッダー: スクロール時の影 */
#siteHeader.scrolled {
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.15);
}

/* 入力フォーカスのアクセシビリティ */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline-offset: 2px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
