/* 当校のご紹介ページ専用スタイル */

/* ===== トップバー ===== */
.top-bar {
  background: linear-gradient(135deg, #dc3545 0%, #c41e3a 100%);
  color: white;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

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

/* ===== ヒーロー（aboutページ専用背景） ===== */
.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_about0.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);
}

/* ===== イントロ ===== */
.about-intro {
  margin-bottom: 50px;
  padding: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  border-left: 5px solid #dc3545;
}

.about-intro__lead {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 2;
  margin-bottom: 15px;
}

.about-intro__text {
  font-size: 16px;
  line-height: 2;
  color: #555;
}

/* ===== 画像コンテナ ===== */
.about-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.about-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 20px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.about-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.about-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* ===== 情報テーブル ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.info-table th {
  background: #dc3545;
  padding: 18px 20px;
  text-align: left;
  font-weight: 700;
  color: #f2ebeb;
  border: 1px solid #e9ecef;
  width: 30%;
  font-size: 15px;
}

.info-table td {
  padding: 18px 20px;
  border: 1px solid #e9ecef;
  line-height: 1.9;
  font-size: 15px;
  color: #444;
}

/* ===== 時間割テーブル ===== */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 14px;
}

.schedule-table th {
  background: #dc3545;
  color: white;
  padding: 12px 10px;
  text-align: center;
  border: 1px solid #c41e3a;
  font-weight: 600;
}

.schedule-table td {
  padding: 12px 10px;
  text-align: center;
  border: 1px solid #e9ecef;
  color: #444;
}

.schedule-table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.schedule-table .time-label {
  background: #f8f9fa;
  font-weight: 600;
  color: #1a1a1a;
}

/* ===== 校章セクション ===== */
.emblem-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 15px;
}

.emblem-image {
  text-align: center;
}

.emblem-image img {
  width: 100%;
  max-width: 250px;
  height: auto;
}

.emblem-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.emblem-text p {
  font-size: 16px;
  line-height: 2;
  color: #555;
}

/* ===== アクセスカード ===== */
.access-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.access-card {
  background: white;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 3px 20px rgba(0,0,0,0.08);
  transition: all 0.3s;
  border: 2px solid transparent;
}

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

.access-card__icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.access-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

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

/* ===== マップ ===== */
.map-container {
  margin: 40px 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 600px; 
  display: block;
}

.map-link {
  background: #f8f9fa;
  padding: 15px;
  text-align: center;
}

.map-link a {
  color: #dc3545;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s;
}

.map-link a:hover {
  color: #c41e3a;
}

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

.fixed-btn {
  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);
  color: #fff;
}

.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);
  color: #fff;
}

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

  .emblem-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .access-cards {
    grid-template-columns: 1fr;
  }
}

/* ===== スマホ対応 ===== */
@media (max-width: 767px) {
  .top-bar {
    font-size: 12px;
    padding: 10px 0;
  }

 .tab-nav__list {
    grid-template-columns: 1fr;  /* 3列から1列に変更 */
    gap: 15px;
  }


  .hero {
    height: 300px;
  }

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

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

  .about-intro {
    padding: 25px 20px;
    margin-bottom: 30px;
  }

  .about-intro__lead {
    font-size: 16px;
  }

  .about-intro__text {
    font-size: 15px;
  }

  .about-images {
    gap: 15px;
  }

  .about-image img {
    height: 200px;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 12px 15px;
  }

  .info-table th {
    border-bottom: none;
  }

  .schedule-table {
    font-size: 12px;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 8px 5px;
  }

  .emblem-section {
    padding: 30px 20px;
  }

  .emblem-text h3 {
    font-size: 18px;
  }

  .emblem-text p {
    font-size: 15px;
  }

  .access-cards {
    gap: 20px;
  }

  .access-card {
    padding: 30px 25px;
  }

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

  .access-card__title {
    font-size: 18px;
  }

  .access-card__text {
    font-size: 15px;
  }

  .map-container iframe {
    height: 450px;
  }

  .map-link {
    padding: 12px;
  }

  .map-link a {
    font-size: 14px;
  }

  /* スマホ時の固定ボタン */
  .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: 80px;
    right: 20px;
    font-size: 18px;
  }
}