/* 学科配当表ページ専用スタイル */

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

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

/* ===== 学科配当表カード ===== */
.schedule-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.schedule-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 2px solid #f0f0f0;
}

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

.schedule-card__header {
  background: linear-gradient(135deg, #dc3545 0%, #c41e3a 100%);
  color: white;
  padding: 25px 30px;
}

.schedule-card__header--next {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.schedule-card__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.schedule-card__date {
  font-size: 14px;
  opacity: 0.9;
}

.schedule-card__body {
  padding: 30px;
}

.schedule-card__text {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 25px;
}

/* ダウンロードボタン */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #dc3545 0%, #c41e3a 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(220, 53, 69, 0.4);
}

.btn-download__icon {
  font-size: 20px;
}

/* 1月分のダウンロードボタン（青色） */
.schedule-card__header--next + .schedule-card__body .btn-download {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.schedule-card__header--next + .schedule-card__body .btn-download:hover {
  box-shadow: 0 6px 25px rgba(13, 110, 253, 0.4);
}

/* ===== 注意事項ボックス ===== */
.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;
}

/* ===== その他の資料グリッド ===== */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

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

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

.material-card__icon {
  font-size: 48px;
  margin-bottom: 20px;
}

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

.material-card__text {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 25px;
}

.btn-secondary {
  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;
}

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

/* ===== 時間割テーブル ===== */
.timetable-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

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

.timetable thead {
  background: #dc3545;
  color: white;
}

.timetable th {
  padding: 18px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
}

.timetable td {
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: #444;
}

.timetable tr:last-child td {
  border-bottom: none;
}

.timetable tbody tr:hover {
  background: #f8f9fa;
}

.timetable-notes {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  border-left: 4px solid #dc3545;
}

.timetable-notes__title {
  font-size: 18px;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 20px;
}

.timetable-notes__list {
  list-style: none;
  padding-left: 0;
}

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

.timetable-notes__list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: #dc3545;
  font-weight: 700;
  font-size: 16px;
}

/* ===== オンライン学科案内 ===== */
.online-section {
  margin-top: 40px;
}

.online-banner {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 8px 40px rgba(40, 167, 69, 0.3);
  position: relative;
  overflow: hidden;
}

.online-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.online-banner__content {
  display: block;
  position: relative;
  z-index: 1;
}

.online-banner__icon {
  display: none;
  font-size: 80px;
  flex-shrink: 0;
}

.online-banner__text {
  flex: 1;
  text-align: center;
}

.online-banner__title {
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
}

.online-banner__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 25px;
  font-weight: 500;
}

.online-banner__features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.online-banner__features li {
  background: rgba(255, 255, 255, 0.15);
  padding: 15px 20px;
  border-radius: 10px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
}

.feature-icon {
  font-size: 16px;
  font-weight: 700;
}

.online-banner__description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 2;
  margin-bottom: 30px;
}

.btn-online {
  display: inline-block;
  padding: 18px 50px;
  background: white;
  color: #4a90e2;
  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);
}

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

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

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

  .timetable-info {
    grid-template-columns: 1fr;
  }

  .online-banner {
    padding: 30px 20px;
  }

  .online-banner__content {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .online-banner__icon {
    font-size: 60px;
  }

  .online-banner__title {
    font-size: 24px;
  }

  .online-banner__subtitle {
    font-size: 16px;
  }

  .online-banner__features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .online-banner__features li {
    padding: 12px 15px;
    font-size: 14px;
    justify-content: center;
  }

  .online-banner__description {
    font-size: 14px;
  }

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

/* ===== スマホ対応 ===== */
@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: block !important;
    margin: 0 !important;
    width: 100% !important;
  }

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

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

  .schedule-card__header {
    padding: 20px;
  }

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

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

  .btn-download {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 14px;
  }

  .notice-box {
    padding: 25px 20px;
  }

  .notice-box__title {
    font-size: 18px;
  }

  .notice-box__list li {
    font-size: 14px;
  }

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

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

  .material-card__icon {
    font-size: 40px;
  }

  .material-card__title {
    font-size: 17px;
  }

  .material-card__text {
    font-size: 13px;
  }

  .timetable-info {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .timetable {
    font-size: 14px;
  }

  .timetable th,
  .timetable td {
    padding: 12px 15px;
    font-size: 14px;
  }

  .timetable-notes {
    padding: 25px 20px;
  }

  .timetable-notes__title {
    font-size: 17px;
  }

  .timetable-notes__list li {
    font-size: 14px;
  }
}