/* オンライン学科ページ専用スタイル */

/* ===== トップバー ===== */
.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('https://www.hyogoken.ac.jp/akashi/images/ttl_onlinegakka.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);
}

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

/* ===== 特徴カード ===== */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 0;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid transparent;
  overflow: hidden;
}

.feature-card:hover {
  background: white;
  border-color: #dc3545;
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(220, 53, 69, 0.1);
}

.feature-card__icon {
  width: 100%;
  height: auto;
  display: block;
}

.feature-card__content {
  padding: 25px 20px;
}

.feature-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.feature-card__text {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

/* ===== 受講開始の流れ ===== */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.flow-step {
  background: white;
  border-radius: 15px;
  padding: 35px 30px;
  text-align: center;
  border: 2px solid #f0f0f0;
  transition: all 0.3s;
  position: relative;
}

.flow-step:hover {
  border-color: #dc3545;
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(220, 53, 69, 0.1);
}

.flow-step__number {
  display: inline-block;
  background: #dc3545;
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.flow-step__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.flow-step__text {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 0;
}

.flow-step__btn {
  display: inline-block;
  padding: 12px 30px;
  background: white;
  color: #dc3545;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
  border: 2px solid #dc3545;
  margin-top: 20px;
}

.flow-step__btn:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}

/* ===== アンケート画像 ===== */
.survey-image {
  margin-top: 40px;
  text-align: center;
}

.survey-image__img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

/* ===== 注意事項ボックス（info版） ===== */
.notice-box {
  background: #fff3cd;
  border-left: 5px solid #ffc107;
  border-radius: 10px;
  padding: 30px;
  margin-top: 40px;
}

.notice-box__title {
  font-size: 20px;
  font-weight: 700;
  color: #856404;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-box__list {
  list-style: none;
  padding-left: 0;
}

.notice-box__list li {
  font-size: 15px;
  line-height: 2;
  color: #856404;
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
}

.notice-box__list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: #ffc107;
  font-size: 16px;
  font-weight: 700;
}

.notice-box--info {
  background: #f8d7da;
  border-left-color: #dc3545;
}

.notice-box--info .notice-box__title {
  color: #dc3545;
}

.notice-box--info .notice-box__list li {
  color: #721c24;
}

.notice-box--info .notice-box__list li::before {
  color: #dc3545;
}

/* ボタンコンテナ */
.btn-container {
  text-align: center;
  margin: 50px 0;
}

.btn-primary {
  display: inline-block;
  padding: 18px 60px;
  background: linear-gradient(135deg, #dc3545 0%, #c41e3a 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(220, 53, 69, 0.4);
}

/* ===== アプリダウンロード ===== */
.app-downloads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin: 40px 0;
}

.app-download {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.app-download:hover {
  border-color: #dc3545;
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(220, 53, 69, 0.2);
}

.app-download__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 25px;
}

.app-download__link {
  display: block;
}

.app-download__img {
  width: 100%;
  max-width: 300px;
  height: auto;
  transition: all 0.3s;
}

.app-download__link:hover .app-download__img {
  transform: scale(1.05);
}

/* ===== FAQ ===== */
.faq-list {
  margin-top: 40px;
}

.faq-item {
  background: white;
  border-radius: 15px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 2px solid #f0f0f0;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: #dc3545;
  box-shadow: 0 5px 20px rgba(220, 53, 69, 0.1);
}

.faq-item__question {
  background: #dc3545;
  color: white;
  padding: 20px 30px;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.faq-item__question::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  color: #dc3545;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.faq-item__answer {
  padding: 25px 30px;
  font-size: 16px;
  line-height: 2;
  color: #444;
  position: relative;
  padding-left: 70px;
}

.faq-item__answer::before {
  content: 'A';
  position: absolute;
  left: 30px;
  top: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  color: #dc3545;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
}

/* ===== タブレット対応 (768px - 1024px) ===== */
@media (max-width: 1024px) {
  .feature-cards {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .app-downloads {
    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 {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .feature-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 30px 20px;
  }

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

  .flow-step {
    padding: 30px 20px;
  }

  .app-downloads {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .app-download {
    padding: 30px 20px;
  }

  .app-download__title {
    font-size: 20px;
  }

  .faq-item__question {
    padding: 18px 20px;
    font-size: 16px;
  }

  .faq-item__question::before {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .faq-item__answer {
    padding: 20px;
    padding-left: 60px;
    font-size: 15px;
  }

  .faq-item__answer::before {
    left: 20px;
    top: 20px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}