@charset "utf-8";

/* 全体のコンテナ */
.campus-container {
  max-width: 900px;
  margin: 0 auto;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, sans-serif;
}

/* タブのコンテナ */
.campus-tabs {
  display: flex;
  flex-wrap: wrap; /* 折り返しを有効にする */
  justify-content: center;
  gap: 10px;
  margin-bottom: 10%;
  margin-top: 10%;
  margin-left: 1%;
  margin-right: 1%;
}

/* 各タブのデザイン */
.campus-tab {
  padding: 15px 10px;
  border: 2px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  flex-grow: 1;
  box-sizing: border-box; /* パディングとボーダーを幅に含める */
}

/* 小さい画面での2列表示 */
@media (max-width: 767px) {
  .campus-tab {
    flex-basis: calc(50% - 5px); /* 2列で表示し、ギャップを考慮 */
    font-size: 1.25em;
  }
}

.campus-tab:hover {
  background-color: #f0f0f0;
  border-color: #999;
}

/* アクティブなタブのデザイン */
.campus-tab.active {
  background-color: #3486dd;
  color: #fff;
  border-color: #3486dd;
}

.campus-tab h2 {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

/* コンテンツのコンテナ */
.campus-content-container {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  margin: 5px;
}

/* 各コンテンツの非表示 */
.campus-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

/* アクティブなコンテンツの表示 */
.campus-content.active {
  display: block;
}

/* コンテンツ内の各項目 */
.content-item {
  margin-bottom: 15%;
  line-height: 1.8;
  font-size: 16px;
}

.content-item p,
.content-item ul {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 10px 0;
}

/* 小見出しのスタイル調整 */
.content-item strong {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #2a6db4;
  margin-bottom: 5px;
}

/* 画像と地図のスタイル (モバイルファースト) */
.image-container img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto 25px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.google-map iframe {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


.line-break-sp{
  display: block;
}


/* PCサイズの横並びレイアウト */
@media (min-width: 768px) {
  /* タブのコンテナ */
  .campus-tabs {
    margin-bottom: 7.5%;
    margin-top: 1.5%;
    margin-left: 0;
    margin-right: 0;
  }

  .content-media {
    /*display: flex;*/
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
  }

  .content-item {
    margin-bottom: 5%;
  }

  .content-item.image-container {
    flex-basis: 60%;
    margin-bottom: 0;
  }
  
  .content-item.google-map {
    flex-basis: 40%;
    margin-bottom: 5%;
  }

  .google-map iframe {
    height: 400px; /* 地図の高さ */
  }
  
  .image-container img {
    width: 100%;
    /*height: 400px; /* 地図の高さに合わせる */
    object-fit: cover; /* 画像をトリミングして枠内に収める */
    display: block;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  }

  .campus-content-container {
    margin: 0;
  }

  .line-break-sp{
    display: none;
  }

}



/* 「詳しくはこちら」のリンクデザイン */
.more-link-box {
  text-align: center;
  margin-top: 30px;
}

.more-link-box a {
  display: inline-block;
  padding: 12px 25px;
  background-color: #3486dd;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 16px;
}

.more-link-box a:hover {
  background-color: #2a6db4;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}






/* 見出しのスタイル */
.page-title {
  text-align: center;
  font-size: 1.75em;
  color: #333; /* 暗めの黒色 */
  margin-bottom: 5%; /* タブとの間に適切な余白を設ける */
  margin-top: 9.0%;
  font-weight: bold;
}


/* PCサイズの横並びレイアウト */
@media (min-width: 768px) {
  .page-title {
    text-align: center;
    font-size: 24px;
    color: #333; /* 暗めの黒色 */
    margin-bottom: 55px; /* タブとの間に適切な余白を設ける */
    margin-top: 3.0%;
    font-weight: bold;
  }
}