a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover{
  color: dimgray;
}
body{
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
}
#header_top{
  background-color: #8dc031;
}
#header_top_inner{
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 20px;
}
/* 入力欄 */
.header_form {
  display: flex;
  align-items: center;
}
.search-box { /* 検索エリアだけくっつける */
  display: flex;
}
.search_input {
  width: 220px;
  height: 40px;
  padding: 0 14px;
  border-radius: 7px 0 0 7px;
  border: none;
}
.search_input::placeholder {
  color: #aaa;
  font-size: 14px;
  letter-spacing: 0.05em;
}
/* 検索ボタン */
.btn_search {
  height: 40px;
  padding: 0 16px;
  background-color: #4c681b;
  color: #fff;
  border: none;
  border-radius: 0 7px 7px 0;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn_search:hover {
  background-color: #3b5315; /* 少し暗く */
}
/* 資料請求ボタン */
.btn_request {
  margin-left: 20px;  /* ← ここで間をあける */
  background-color: #ff6e03;
  color: #fff;
  border-radius: 7px;
  font-size: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  min-width: 9em;
  text-align: center;
  height: 40px;
  justify-content: center;
  transition: 
    box-shadow 0.3s ease,
    transform 0.3s ease;
}
.btn_request:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  color: #fff;
}

header ul{
  display: flex;
  font-size: 24px;
  justify-content: space-between;
  width: 80%;
  margin: 0 auto;
  padding: 20px;
  color: black;
}
header ul li{
  border-right-style: solid;
  border-right-width: 1px;
}
header ul a{
  padding-right: 20px;
}
#header_link_last{
  border: none;
}
/* h1タグ */
#main_h1{
  position: relative;
  text-align: center;
  font-size: 30px;
  height: 500px;
  width: 80%;
  margin: 0 auto;
  overflow: hidden;
}

.slider li{
  height: 500px;
  background-size: cover;
  background-position: center;
}
#main_h1 h1{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: "Yomogi", cursive;
  text-shadow: 
    0 0 5px silver,
    0 0 10px silver,
    0 0 20px #fff,
    0 0 40px #fff;
  width: 800px;
  z-index: 100;
} 
main section{
  /* margin-top: ; */
  padding-top: 150px;
  padding-bottom: 150px;
}
.h2{
  margin-bottom: 30px;
  text-align: center;
  font-size: 24px;
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}
.h2_style1{
  display: block;
  font-size: 14px;
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  margin-bottom: 80px;
}
.news_li{
  font-size: 16px;
}
.news_item, .topics-item{
  max-width: 350px;
}
.news_item a , .topics-item{
  display: block;
} 
.news_item p , .topics-item{
  line-height: 1.7;
}

.news_tag{
  background-color: #8dc031;
  color: #fff;
  display: inline-block;
  line-height: 1;
  min-width: 9em;
  padding: 7px;
  text-align: center;
  border-radius: 5px;
}

#news_line{
  border-bottom: 1px solid black;
  width: 80%;
  margin: 0 auto;
}
main ul{
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin: 0 auto;
  padding: 30px;
}
main h3{
  font-size: 16px;
  margin-top: 10px;
}
main table{
  margin: 0 auto;
  border-spacing: 30px; /* 画像同士の間隔 */
}
main table img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
main table a:hover img {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
/* 一覧を見るボタン */
.btn_more{
  text-align: center;
}
.btn3{
  display: inline-block;
  height: 50px;
  border: 2px solid #8dc031;
  border-radius: 12px;
  background-color: #fff;
}
.btn3 span{
  position: relative;
  display: flex;              /* ← ここが決定打 */
  align-items: center;        /* ← 文字を縦中央 */
  justify-content: center;
  height: 100%;
  padding: 0 60px 0 40px;     /* 右に三角の余白 */
  color: #8dc031;
  min-width: 9em;
  transition: color 0.1s ease;
}

.btn3 span::after{
  content: "";
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 9px solid #8dc031;
}
.btn3:hover{
  background-color: #8dc031;
}
.btn3 span:hover{
  color: #fff;
}
.btn3:hover span::after{
  border-left-color: #fff;
}

.section-gray{
  background-color: #f4f4f4;
  padding: 150px 0;
}
#academics{
  position: relative;
  background-image: url(../../images/img_main4.jpg);
  background-size: cover;
  background-position: center;
}
/* 背景の上に半透明レイヤーを重ねる */
#academics::before{
  content: "";
  position: absolute;
  inset: 0;               /* top:0; right:0; bottom:0; left:0; の省略形 */
  background: rgba(255,255,255,0.5);  /* ← ここで透明度調整 */
  z-index: 0;
}
/* 中身を前面に出す */
#academics > *{
  position: relative;
  z-index: 1;
}

.pickup_list {
  display: flex;
  justify-content: center;
  gap: 150px;
  width: 80%;
  margin: 0 auto;
  padding: 30px;
}
.pickup_list a{
  display: block;
  /* overflow: hidden; ← はみ出し防止 */
}
.pickup_list li img{  /* 画像にだけアニメーションを仕込む */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center;
  }
.pickup_list li img:hover {  /* カード（a）にホバーしたとき、imgだけ拡大 */
  transform: scale(1.05);
}
.pickup_list li p{
  pointer-events: none;
}
#admissions{
  position: relative;
  background-image: url(../../images/img_main1.jpg);
  background-size: cover;
  background-position: center;
}
/* 背景の上に半透明レイヤーを重ねる */
#admissions::before{
  content: "";
  position: absolute;
  inset: 0;               /* top:0; right:0; bottom:0; left:0; の省略形 */
  background: rgba(255,255,255,0.7);  /* ← ここで透明度調整 */
  z-index: 0;
}
/* 中身を前面に出す */
#admissions > *{
  position: relative;
  z-index: 1;
}
#admissions_p{
  margin-bottom: 80px;
}
/* 入試情報サイトのボタン */
.btn-wrap {
  display: flex;
  gap: 100px; /* ボタン同士の間隔 */
  justify-content: center;   /* 中央寄せ */
  margin-bottom: 150px;
}
.btn4 {
  display: block;
  border: 2px solid #ff6e03;
  border-radius: 999px;   /* ぷっくり楕円 */
  color: #ff6e03;
  background-color: #fff;
  text-decoration: none;
  min-width: 260px;   /* 画像っぽい横幅に */
  padding: 18px 0;
  text-align: center;
}
.btn4 span{
  position: relative;
  display: flex;              /* ← ここが決定打 */
  align-items: center;        /* ← 文字を縦中央 */
  justify-content: center;
  height: 100%;
  padding: 0 60px 0 40px;     /* 右に三角の余白 */
  color: #ff6e03;
  min-width: 9em;
  transition: color 0.1s ease;
}
.btn4 span::after{
  content: "";
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 9px solid #ff6e03;
}
.btn4:hover{
  background-color: #ff6e03;
}
.btn4:hover span{
  color: #fff;
}
.btn4:hover span::after{
  border-left-color: #fff;
}
.pickup_p{
  font-size: 18px;
  text-align: center;
  margin-top: 20px;
}
#admissions_p{
  font-size: 16px;
  text-align: center;
}
/* footer */
.footer{
  background-color: #8dc031;
  color: #fff;
  padding: 60px 0 30px;
}
.footer_inner{
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto 70px auto;
}
.footer_left{
  display: flex;
  gap: 20px;
}
.footer_left2 {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer_logo_mark {
  width: 90px;
}
.footer_address {
  font-size: 14px;
  line-height: 1.6;
}
.footer_nav{
  display: flex;
  gap: 30px;
}
.footer a {
  color: #fff;                 /* ← 白文字に */
  text-decoration: none;       /* 通常時は下線なし */
}
.footer a:hover {
  text-decoration: underline;  /* ← ホバー時だけ下線 */
  color: #fff;                 /* 色は白のまま */
}
#footer_p{
  text-align: center;
  font-size: 12px;
}