/* 沿革ページ専用スタイル */

/* ===== ヒーロー（沿革ページ専用背景） ===== */
.hero {
  position: relative;
  height: 400px;
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.85), rgba(196, 30, 58, 0.85)), 
              url('../images/school_building.jpg') center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

/* ===== サブメニュー ===== */
.submenu {
  background: #f8f9fa;
  padding: 40px 0 50px;
}

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

.submenu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.submenu__item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.submenu__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.submenu__link {
  display: block;
  padding: 25px 30px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s;
}

.submenu__link:hover {
  color: #dc3545;
}

.submenu__item--active {
  background: linear-gradient(135deg, #dc3545 0%, #c41e3a 100%);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.submenu__item--active .submenu__link {
  color: white;
}

.submenu__item--active:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.submenu__item--active .submenu__link:hover {
  color: white;
}

/* 歴史セクション */
.history-section {
  margin-bottom: 60px;
}

.history-section__title {
  font-size: 24px;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 3px solid #dc3545;
}

.history-list {
  margin-bottom: 30px;
}

.history-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.history-item:last-child {
  border-bottom: none;
}

.history-item__date {
  font-size: 15px;
  font-weight: 600;
  color: #dc3545;
  padding-top: 2px;
}

.history-item__content {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
}

/* 明石校の強調表示 */
.highlight-akashi {
  font-size: 18px;
  font-weight: 700;
  color: #dc3545;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8ea 100%);
  padding: 2px 8px;
  border-radius: 4px;
}

/* 歴史画像 */
.history-image {
  margin-top: 35px;
  text-align: center;
}

.history-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

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

  /* サブメニューのスマホ対応 - 2列3行 */
  .submenu {
    padding: 30px 0 35px;
  }

  .submenu__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .submenu__link {
    padding: 16px 12px;
    font-size: 13px;
    line-height: 1.4;
  }

  .highlight-akashi {
    font-size: 16px;
  }

  .history-section__title {
    font-size: 20px;
  }

  .history-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }

  .history-item__date {
    font-size: 14px;
  }

  .history-item__content {
    font-size: 14px;
  }
}