body, html {
    font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
}
/* 見出しを細く */
h1, h3, h4, h5, h6 {
  font-weight: 100;
}
h2 {
  font-weight: 550;
}

/* 一覧リンクボタン（btn-link）スタイル */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.section-header .btn-link {
  background-color: #f2f2f2;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: #337ab7;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.section-header .btn-link:hover {
  background-color: #337ab7;
  color: #fff;
}



#site-header .logo {
  display: flex;
  flex-direction: column;  /* 縦並び */
  align-items: center;     /* 横方向中央揃え */
  text-align: center;      /* テキスト中央揃え */
  margin-bottom: 1em;
}

#site-header .logo a {
  text-decoration: none;  /* リンクの下線を消す */
  color: inherit;         /* 色を周囲に合わせる */
  display: flex;
  flex-direction: column;
  align-items: center;
}

#site-header .logo img {
  max-width: 60px;
  height: auto;
  display: block;
}

#site-header .school-name {
  margin-top: 0.5em;
  font-weight: bold;
  font-size: 1.2em;
}

#hero {
  width: 100%;
  height: 300px; /* お好みの高さに調整 */
  background-position: center top; /* 上中央に背景画像を配置 */
  background-repeat: no-repeat;
  background-size: cover; /* 画像を領域いっぱいに拡大 */
  position: relative;
  display: flex;
  align-items: center; /* 縦方向中央揃え（テキストの位置調整に便利） */
  justify-content: center; /* 横方向中央揃え */
}

#hero .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.3); /* 画像の上に薄く黒のオーバーレイ */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 1em;
  box-sizing: border-box;
  z-index: 1;
}

#hero .school-slogan {
  font-size: 1.8em;
  font-weight: bold;
  z-index: 2;
  position: relative;
}

#site-footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
}
#site-footer a {
  color: var(--footer-text-color);
}

/* --- カルーセル用スタイル --- */

#hero-carousel {
  position: relative;
  overflow: hidden;
  height: 400px; /* theme.yaml の推奨サイズに合わせる */
}

#hero-carousel .carousel-wrapper {
  display: flex;
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

#hero-carousel .carousel-slide {
  position: absolute;
  min-width: 100%;
  background-size: cover;
  background-position: center center;
  height: 100%;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-carousel .carousel-slide.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

#hero-carousel .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 1em;
  box-sizing: border-box;
  z-index: 2;
}
/* overlayの幅と高さを100%にして親要素いっぱいに */
#hero-carousel .overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1em;
  box-sizing: border-box;
  background-color: rgba(0,0,0,0.3);
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2;
}

/* containerをflexコンテナ化して中央寄せ */
#hero-carousel .container {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* スローガンの幅を100%に */
.school-slogan {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  color: white;
  font-size: 2.4em;
  font-weight: bold;
  text-align: center;
  z-index: 100; /* 画像より前面 */
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
  pointer-events: none; /* クリック無効 */
}

/* ナビボタン */
#hero-carousel .carousel-prev,
#hero-carousel .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2.5rem;
  padding: 0.2em 0.6em;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  user-select: none;
}

#hero-carousel .carousel-prev {
  left: 15px;
}

#hero-carousel .carousel-next {
  right: 15px;
}

/* ホバー時ボタン色変化 */
#hero-carousel .carousel-prev:hover,
#hero-carousel .carousel-next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  #hero-carousel {
    height: 250px;
  }
  #hero-carousel .school-slogan {
    font-size: 1.6em;
  }
  #hero-carousel .carousel-prev,
  #hero-carousel .carousel-next {
    font-size: 1.8rem
  }
}

/* --- ドット式カルーセル用 --- */

#hero-carousel .carousel-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  z-index: 20;
}

#hero-carousel .carousel-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#hero-carousel .carousel-dot.active,
#hero-carousel .carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.9);
}


