/* =========================================================
   Tailwind 補完用カスタムCSS
   HP制作マンツーマン講座 LP
   ========================================================= */

html {
  scroll-behavior: smooth;
}

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

/* 日本語の改行・行間を読みやすく */
p, li, dd, blockquote, h1, h2, h3 {
  line-break: strict;
  overflow-wrap: break-word;
}

/* ---------------------------------------------------------
   フェードイン（Intersection Observer と連動）
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* アニメーションを好まないユーザーには動きを抑制 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------
   ヘッダー（スクロールで少し縮む）
   --------------------------------------------------------- */
#site-header.shrink {
  height: auto;
}
#site-header.shrink .max-w-5xl {
  height: 3.25rem;
}

/* ---------------------------------------------------------
   ベネフィットカード
   --------------------------------------------------------- */
.benefit-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(31, 78, 95, 0.1);
}
.benefit-icon {
  font-size: 1.75rem;
  line-height: 1;
}
.benefit-title {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #111111;
  line-height: 1.5;
}
.benefit-text {
  margin-top: 0.5rem;
  color: #666666;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   受講者の声カード
   --------------------------------------------------------- */
.voice-card {
  background: #FBFAF7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  padding: 1.5rem;
}
.voice-card blockquote {
  position: relative;
  color: #222222;
}

/* ---------------------------------------------------------
   講座概要テーブル（dl）
   --------------------------------------------------------- */
.overview-dt {
  background: #1F4E5F;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
}
.overview-dd {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
@media (max-width: 639px) {
  .overview-dt {
    padding-bottom: 0.5rem;
  }
  .overview-dd {
    padding-top: 0.25rem;
  }
}

/* ---------------------------------------------------------
   カリキュラムのステップ
   --------------------------------------------------------- */
.curriculum-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0.875rem;
  padding: 1.25rem 1.5rem;
}
.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #E8783D;
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* ---------------------------------------------------------
   CTAボタン（軽い注目アニメーション）
   --------------------------------------------------------- */
.cta-primary {
  position: relative;
}
.cta-primary:active {
  transform: translateY(1px);
}

/* iframe をレスポンシブに */
iframe {
  max-width: 100%;
  display: block;
}
