/* =====================================================================
 * pub.css
 * 公開画面（PUB-001〜010）専用カスタムスタイル
 * ---------------------------------------------------------------------
 * Bootstrap 5.3.x を補助。auth.cssと共通の変数は :root 側を流用。
 * ===================================================================== */

/* ---------------------------------------------------------------
 * 共通：セクション見出し
 * ------------------------------------------------------------- */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1.25rem;
  text-align: center;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background-color: var(--auth-primary, #0d6efd);
  margin: .5rem auto 0;
  border-radius: 2px;
}

/* ---------------------------------------------------------------
 * PUB-001 トップ：ヒーローバナー
 * ------------------------------------------------------------- */
.pub-hero {
  background: linear-gradient(135deg, #0d6efd 0%, #4dabf7 100%);
  color: #ffffff;
  padding: 4rem 1rem;
  text-align: center;
}
.pub-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.pub-hero__lead {
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  opacity: .95;
  line-height: 1.7;
}
.pub-hero__cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

/* 法人向けヒーロー（PUB-005） */
.pub-hero--corp {
  background: linear-gradient(135deg, #1864ab 0%, #4dabf7 100%);
}

/* ---------------------------------------------------------------
 * 特徴カード（PUB-001の3カラム / PUB-002の4カラム）
 * ------------------------------------------------------------- */
.feature-card {
  background-color: #ffffff;
  border: 1px solid var(--auth-border, #dee2e6);
  border-radius: .5rem;
  padding: 1.5rem;
  text-align: center;
  height: 100%;
  transition: box-shadow .2s ease;
}
.feature-card:hover {
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
}
.feature-card__icon {
  font-size: 2.25rem;
  margin-bottom: .75rem;
  line-height: 1;
}
.feature-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.feature-card__desc {
  font-size: .95rem;
  color: var(--auth-muted, #6c757d);
  margin-bottom: 0;
}

/* ---------------------------------------------------------------
 * 教材プレビュー（PUB-001）
 * ------------------------------------------------------------- */
.course-preview {
  border: 1px solid var(--auth-border, #dee2e6);
  border-radius: .5rem;
  padding: 1rem 1.25rem;
  background-color: #ffffff;
  margin-bottom: .5rem;
}
.course-preview__title {
  font-size: 1.05rem;
  font-weight: 600;
}
.course-preview__rating {
  color: #f59f00;
  letter-spacing: 1px;
}

/* ---------------------------------------------------------------
 * 対象者ブロック（PUB-002）
 * ------------------------------------------------------------- */
.target-list {
  list-style: none;
  padding-left: 0;
}
.target-list li {
  padding: .4rem 0;
  border-bottom: 1px dashed var(--auth-border, #dee2e6);
}
.target-list li:last-child { border-bottom: none; }
.target-list li::before {
  content: "✔";
  color: #198754;
  font-weight: 700;
  margin-right: .5rem;
}

/* ---------------------------------------------------------------
 * 会社情報テーブル（PUB-003）/ 特商法テーブル（PUB-010）
 * ------------------------------------------------------------- */
.info-table th {
  width: 30%;
  background-color: #f8f9fa;
  vertical-align: middle;
  white-space: nowrap;
}
.info-table td {
  vertical-align: middle;
}

/* 企業理念ブロック（PUB-003） */
.philosophy-block {
  background-color: #e7f5ff;
  border-left: 4px solid var(--auth-primary, #0d6efd);
  padding: 1.5rem 1.75rem;
  border-radius: .25rem;
  margin: 1rem 0;
}
.philosophy-block__quote {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: #1864ab;
}

/* ---------------------------------------------------------------
 * 料金プラン切替タブ（PUB-004）
 * ------------------------------------------------------------- */
.pricing-tab .nav-link {
  font-weight: 600;
  color: var(--auth-muted, #6c757d);
}
.pricing-tab .nav-link.active {
  color: var(--auth-primary, #0d6efd);
  background-color: #ffffff;
  border-bottom-color: var(--auth-primary, #0d6efd);
}

/* 注記エリア（PUB-004） */
.pricing-note {
  font-size: .85rem;
  color: var(--auth-muted, #6c757d);
}

/* ---------------------------------------------------------------
 * 法人ステップリスト（PUB-005）
 * ------------------------------------------------------------- */
.corp-step-list {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}
.corp-step-list > li {
  position: relative;
  padding: 1rem 1rem 1rem 4rem;
  margin-bottom: .75rem;
  background-color: #ffffff;
  border: 1px solid var(--auth-border, #dee2e6);
  border-radius: .5rem;
}
.corp-step-list > li::before {
  counter-increment: step;
  content: "STEP " counter(step);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3.5rem;
  background-color: var(--auth-primary, #0d6efd);
  color: #ffffff;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .5rem 0 0 .5rem;
}

/* ---------------------------------------------------------------
 * 規約・ポリシー目次 / 本文（PUB-008/009/010）
 * ------------------------------------------------------------- */
.legal-toc {
  background-color: #f8f9fa;
  border: 1px solid var(--auth-border, #dee2e6);
  border-radius: .5rem;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}
.legal-toc h2 {
  font-size: 1rem;
  margin: 0 0 .5rem;
  color: var(--auth-muted, #6c757d);
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.5rem;
}
.legal-toc li {
  padding: .15rem 0;
}
.legal-toc a {
  color: var(--auth-text, #212529);
  text-decoration: none;
}
.legal-toc a:hover { text-decoration: underline; }

.legal-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  padding-top: .5rem;
  border-top: 2px solid var(--auth-border, #dee2e6);
}
.legal-body p {
  line-height: 1.8;
}
.legal-meta {
  text-align: right;
  font-size: .85rem;
  color: var(--auth-muted, #6c757d);
}
