/* 教習カリキュラムページ専用スタイル */

/* ===== トップバー ===== */
.top-bar {
  background: #dc3545;
  color: white;
  padding: 10px 0;
  font-size: 14px;
  text-align: center;
}

.top-bar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ヒーロー（教習カリキュラム専用背景） ===== */
.hero {
  position: relative;
  height: 500px;
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.7), rgba(196, 30, 58, 0.7)), 
              url('../images/ttl_curriculum1.jpg') center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero__content h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.hero__content p {
  font-size: 18px;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* タブナビ（8列レイアウト） */
.tab-nav__list {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 15px;
}

/* ===== ページリンクカード ===== */
.page-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.page-link-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.page-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #dc3545 0%, #c41e3a 100%);
}

.page-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(220, 53, 69, 0.2);
  border-color: #dc3545;
}

.page-link-card__number {
  font-size: 48px;
  font-weight: 800;
  color: #dc3545;
  margin-bottom: 15px;
  opacity: 0.3;
}

.page-link-card__title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.page-link-card__subtitle {
  font-size: 16px;
  color: #666;
}

/* ===== カリキュラムカード ===== */
.curriculum-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 50px;
}

.curriculum-card__header {
  padding: 25px 40px;
  color: white;
}

.curriculum-card--primary .curriculum-card__header {
  background: linear-gradient(135deg, #dc3545 0%, #c41e3a 100%);
}

.curriculum-card--secondary .curriculum-card__header {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.curriculum-card__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.curriculum-card__body {
  padding: 35px 40px;
}

.curriculum-card__body h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.curriculum-card__body p {
  font-size: 15px;
  line-height: 2;
  color: #444;
  margin-bottom: 15px;
}

.curriculum-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 20px;
  padding-left: 20px;
  position: relative;
}

.curriculum-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 25px;
  background: #dc3545;
  border-radius: 3px;
}

/* ===== 技能・学科教習グリッド ===== */
.training-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.training-box {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.training-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(220, 53, 69, 0.15);
}

.training-box__header {
  padding: 20px 30px;
  color: white;
}

.training-box--skill .training-box__header {
  background: linear-gradient(135deg, #dc3545 0%, #c41e3a 100%);
}

.training-box--theory .training-box__header {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.training-box__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.training-box__content {
  padding: 30px;
}

.training-box__image {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.training-box__image img {
  width: 100%;
  height: auto;
  display: block;
}

.training-box__description {
  font-size: 15px;
  line-height: 2;
  color: #444;
  margin-bottom: 25px;
}

/* ===== 教習時間テーブル ===== */
.training-table-wrapper {
  margin-bottom: 25px;
}

.training-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.training-table thead {
  background: #f8f9fa;
}

.training-table th {
  padding: 15px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
}

.training-table tbody td {
  padding: 15px;
  text-align: center;
  font-size: 15px;
  color: #444;
  border: 1px solid #e0e0e0;
}

.training-table .label-cell {
  background: #f8f9fa;
  font-weight: 700;
  color: #dc3545;
}

.training-table .hour-cell {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

/* ===== プラス・矢印アイコン ===== */
.plus-icon,
.arrow-icon {
  font-size: 32px;
  font-weight: 700;
  color: #dc3545;
  text-align: center;
  margin: 20px 0;
}

/* ===== 追加教習ボックス ===== */
.additional-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.additional-box h5 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.additional-box p {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin: 0;
}

/* ===== フローステップ ===== */
.flow-steps {
  margin-top: 50px;
}

.flow-step {
  margin-bottom: 40px;
}

.flow-step__arrow {
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-top: 30px solid #dc3545;
  margin: 0 auto 20px;
}

.flow-step__content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 30px;
  align-items: start;
  transition: all 0.3s;
}

.flow-step__content:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(220, 53, 69, 0.15);
}

.flow-step__icon {
  width: 120px;
  height: 120px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.flow-step__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-step__icon--success {
  border: 3px solid #28a745;
}

.flow-step__text {
  flex: 1;
}

.flow-step__title {
  font-size: 22px;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.flow-step__text > p {
  font-size: 15px;
  line-height: 2;
  color: #444;
  margin-bottom: 20px;
}

.flow-step__notes {
  list-style: none;
  padding-left: 0;
}

.flow-step__notes li {
  font-size: 14px;
  line-height: 2;
  color: #666;
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
}

.flow-step__notes li::before {
  content: '※';
  position: absolute;
  left: 0;
  color: #dc3545;
  font-weight: 700;
}

.success-message {
  font-size: 16px;
  font-weight: 700;
  color: #28a745;
  line-height: 2;
}

/* ===== 試験場での受験通知 ===== */
.test-center-notice {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 25px 40px;
  border-radius: 15px;
  text-align: center;
  margin: 50px 0;
  box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
}

.test-center-notice p {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

/* ===== 重要な注意書き ===== */
.important-note {
  font-size: 14px;
  color: #dc3545;
  font-weight: 700;
  padding: 15px 20px;
  background: #ffe6e6;
  border-left: 4px solid #dc3545;
  border-radius: 5px;
  margin-top: 15px;
}

/* ===== CTAセクション ===== */
.cta-section {
  margin-top: 60px;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.cta-card {
  padding: 50px 40px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cta-card--primary {
  background: linear-gradient(135deg, #dc3545 0%, #c41e3a 100%);
  color: white;
}

.cta-card--secondary {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.cta-card__title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.cta-card__description {
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.cta-btn {
  display: inline-block;
  padding: 18px 50px;
  background: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.cta-btn--primary {
  color: #dc3545;
}

.cta-btn--secondary {
  color: #28a745;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ===== 固定サイドボタン ===== */
.fixed-buttons {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fixed-btn {
  background: #5cb85c;
  color: #fff;
  padding: 15px 10px;
  width: 100px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.fixed-btn:hover {
  width: 110px;
  box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.3);
}

.fixed-btn--reservation {
  background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
}

.fixed-btn--document {
  background: linear-gradient(135deg, #5bc0de 0%, #46b8da 100%);
}

.fixed-btn__icon {
  font-size: 24px;
  display: block;
}

.fixed-btn__text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

/* ===== トップへ戻る ===== */
#totop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #dc3545;
  color: #fff;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 100;
  text-decoration: none;
  font-size: 20px;
}

#totop.show {
  opacity: 1;
  visibility: visible;
}

#totop:hover {
  background: #c82333;
  transform: translateY(-3px);
}

/* ===== タブレット対応 (768px - 1024px) ===== */
@media (max-width: 1024px) {
  .tab-nav__list {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .page-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .training-grid {
    grid-template-columns: 1fr;
  }

  .flow-step__content {
    grid-template-columns: 100px 1fr;
    gap: 20px;
  }

  .flow-step__icon {
    width: 100px;
    height: 100px;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== スマホ対応 ===== */
@media (max-width: 767px) {
  .hero {
    height: 300px;
  }

  .hero__content h1 {
    font-size: 32px;
  }

  .hero__content p {
    font-size: 15px;
  }

  .tab-nav__list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .tab-nav__list li {
    display: flex !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .tab-nav__item {
    font-size: 13px !important;
    padding: 12px 8px !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .page-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .page-link-card {
    padding: 20px 15px;
  }

  .page-link-card__number {
    font-size: 36px;
  }

  .page-link-card__title {
    font-size: 24px;
  }

  .page-link-card__subtitle {
    font-size: 14px;
  }

  .curriculum-card__header {
    padding: 20px 25px;
  }

  .curriculum-card__title {
    font-size: 20px;
  }

  .curriculum-card__body {
    padding: 25px 20px;
  }

  .training-grid {
    gap: 20px;
  }

  .training-box__content {
    padding: 20px;
  }

  .training-table {
    font-size: 13px;
  }

  .training-table th,
  .training-table td {
    padding: 10px 5px;
    font-size: 13px;
  }

  .flow-step__content {
    grid-template-columns: 1fr;
    padding: 25px 20px;
    gap: 20px;
  }

  .flow-step__icon {
    width: 100%;
    height: auto;
    max-width: 150px;
    margin: 0 auto;
  }

  .flow-step__title {
    font-size: 20px;
  }

  .flow-step__text > p {
    font-size: 14px;
  }

  .flow-step__notes li {
    font-size: 13px;
  }

  .test-center-notice {
    padding: 20px 25px;
  }

  .test-center-notice p {
    font-size: 15px;
  }

  .cta-card {
    padding: 40px 25px;
  }

  .cta-card__title {
    font-size: 24px;
  }

  .cta-card__description {
    font-size: 14px;
  }

  .cta-btn {
    width: 100%;
    padding: 16px 30px;
    font-size: 15px;
  }

  /* スマホ対応での固定ボタン調整 */
  .fixed-buttons {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    gap: 0;
    z-index: 1000;
  }

  .fixed-btn {
    flex: 1;
    width: auto;
    padding: 12px 10px;
    border-radius: 0;
    gap: 3px;
  }

  .fixed-btn:hover {
    width: auto;
  }

  .fixed-btn__icon {
    font-size: 24px;
  }

  .fixed-btn__text {
    font-size: 11px;
  }

  #totop {
    width: 45px;
    height: 45px;
    line-height: 45px;
    bottom: 70px;
    right: 20px;
    font-size: 18px;
  }
}