@charset "UTF-8";

/* ========================================
   学部サイト用追加CSS
   新しい理工系総合サイトのデザインを継承
======================================== */

/* ヒーローセクション */
/*.hero-visual {
  position: relative;
  width: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--accent-color) 100%);
  color: #fff;
  margin-top: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}*/

/*.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  padding: 60px 40px;
  text-align: center;
}*/

/*.hero-title {
  font-size: 7.68rem;
  margin-bottom: 20px;
  font-weight: 600;
}*/

/*.hero-subtitle {
  font-size: 3.84rem;
  margin-bottom: 30px;
  opacity: 0.9;
}*/

/*.hero-description {
  font-size: 2.88rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}*/

/*.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  z-index: 1;
}*/

/*.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}*/

/* メインコンテンツ */
.main-content {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 40px;
}

.content-wrapper {
  background: #fff;
}

/* セクション共通 */
section {
  margin-bottom: 80px;
}

.section-heading {
  margin-bottom: 40px;
  text-align: center;
}

.section-heading h2 {
  font-size: 5.76rem;
  display: inline-block;
  color: var(--main-color);
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 100%;
  border-bottom: 2px solid var(--main-color);
  margin-top: 8px;
  margin-bottom: 12px;
}

.section-heading > div {
  font-size: 2.88rem;
  color: #666;
  font-family: "Noto Sans JP", sans-serif;
}

/* 学科紹介グリッド */
.department-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.dept-card {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dept-card:hover {
  border-color: var(--main-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.dept-image {
  width: 100%;
  margin-bottom: 15px;
}

.dept-image img {
  width: 100%;
  height: auto;
  display: block;
}

.dept-card h3 {
  font-size: 2.88rem;
  margin-bottom: 8px;
  color: var(--main-color);
  font-weight: 600;
}

.dept-card p {
  font-size: 1.92rem;
  color: #666;
  line-height: 1.4;
}

/* 情報バナー */
.info-banners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.info-banner {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.info-banner:hover {
  transform: scale(1.02);
}

.info-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* 関連リンク */
.related-links {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 8px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.links-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-column li {
  margin-bottom: 15px;
}

.arrow-link {
  color: #014d8b;
  text-decoration: none;
  font-size: 2.56rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.arrow-link::before {
  content: "▶";
  margin-right: 8px;
  color: var(--main-color);
  font-size: 1.92rem;
}

.arrow-link:hover {
  color: var(--main-color);
  text-decoration: underline;
}

/* 他学部へのリンク */
.other-faculties {
  background: #f5f5f5;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
}

.other-faculties h3 {
  font-size: 3.84rem;
  margin-bottom: 30px;
  color: var(--main-color);
}

.faculty-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.faculty-link {
  display: flex;
  flex-direction: column;
  padding: 25px 20px;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.faculty-link span {
  display: block;
}

.faculty-link span:first-child {
  font-size: 2.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.faculty-link .en {
  font-size: 1.92rem;
  color: #666;
}

.faculty-link.env {
  border-color: #008040;
}

.faculty-link.env:hover {
  background: #008040;
}

.faculty-link.che {
  border-color: #0066cc;
}

.faculty-link.che:hover {
  background: #0066cc;
}

.faculty-link.grad {
  border-color: #444;
}

.faculty-link.grad:hover {
  background: #444;
}

.faculty-link:hover span {
  color: #fff;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .hero-visual {
    margin-top: 125px;
    min-height: 300px;
  }

  .hero-content {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 4.8rem;
  }

  .hero-subtitle {
    font-size: 2.88rem;
  }

  .hero-description {
    font-size: 2.24rem;
  }

  .main-content {
    margin: 40px auto;
    padding: 0 20px;
  }

  section {
    margin-bottom: 50px;
  }

  .section-heading h2 {
    font-size: 4.48rem;
  }

  .section-heading > div {
    font-size: 2.24rem;
  }

  .department-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .dept-card {
    padding: 15px;
  }

  .dept-card h3 {
    font-size: 2.24rem;
  }

  .dept-card p {
    font-size: 1.6rem;
  }

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

  .related-links {
    padding: 30px 20px;
  }

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

  .arrow-link {
    font-size: 2.24rem;
  }

  .other-faculties {
    padding: 30px 20px;
  }

  .other-faculties h3 {
    font-size: 3.2rem;
  }

  .faculty-links {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .faculty-link span:first-child {
    font-size: 2.56rem;
  }
}

/* メニューオープン時のスクロール制御 */
.menu-open {
  overflow: hidden;
}

.menu-open .side-menu {
  right: 0;
}

/* サイドメニュー背景 */
.side-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
}

.menu-open .side-backdrop {
  display: block;
}

/* リンクボタン */
.link-buttons {
  margin-top: 60px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.92rem;
  font-weight: 700;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.exam-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.exam-button:hover {
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  transform: translateY(-3px);
}

.career-button {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.career-button:hover {
  box-shadow: 0 8px 20px rgba(245, 87, 108, 0.3);
  transform: translateY(-3px);
}

.button-icon {
  font-size: 2.4rem;
  margin-right: 15px;
}



/*hero上部調整*/
@media screen and (max-width: 768px){
body.page .hero-visual {
margin-top: 70px;margin-bottom:0;
}
}