 /****************************************
    共通部分
*****************************************/
.yellow-line{
  background:linear-gradient(transparent 70%, #FFFF00 0%);
  font-weight: bold;
}
.animation{
  animation: fadein 1.5s ease 0s 1 normal;
  -webkit-animation: fadein 1.5s ease 0s 1 normal;
}
.padding-bottom{
  padding-bottom: 40px;
}
/* 読み込み時フェードイン */
@keyframes fadein {
  from {
  opacity: 0;
  transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
  }
  @-webkit-keyframes fadein {
    from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 /****************************************
    トップページ
*****************************************/
.contents{
  /* background-image: url("../images/class-room.jpg"); */
  background-image: url("../images/background_image.png");
  height: 800px;        
  background-size:  cover;           
  position: relative;
}

.top-page{
  background-color: rgba(255, 165, 90, 0.6);
  height: 800px;
  width: 100%;
  color: white;
  font-family: 'ヒラギノ丸ゴ ProN','Hiragino Maru Gothic ProN','MS UI Gothic','Hiragino Kaku Gothic ProN','ヒラギノ角ゴ ProN W3',sans-serif;
}
.top-page h1{
  /* padding-top: 300px; */
  /* padding: 150px 0px 0px 600px; */
  font-size: 70px;
  line-height: 110px;
  color: #fff;                 /* 文字色 */
  font-weight: bold;
  text-shadow:
    1px  1px 0 #676767,
   -1px  1px 0 #676767,
    1px -1px 0 #676767,
   -1px -1px 0 #676767;
}
.top-letter {
  position: absolute;
  top: 230px;
  left: 100px;
}
.sub-title{
  margin-top: 50px;
  font-weight: bold;
  font-size: 50px;
  color: white;
}
.top-name{
  /* padding: 0px 0px 0px 600px; */
  text-align: center;
  font-weight: bold;
  font-size: 50px;
  color: white;
}
.pink-box {
  padding: 0.5em 1em;
  margin: 2em 0;
  color: #FFF;
  background: #6eb7ff;
  border-bottom: solid 6px #3f87ce;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  border-radius: 9px;
  width: 100px;
}
.pink-box p {
  margin: 0; 
  padding: 0;
}
.top-gallery img {
  width: calc((100% - 48px) / 4);
  height: auto;          /* 高さを固定しない */
  aspect-ratio: auto;    /* 削除 or auto */
  object-fit: contain;
  border-radius: 12px;
}
 /****************************************
    Youtube
*****************************************/

.video iframe{
  margin-top: 50px;
  width: 100%;
  max-width: 1000px;
  height: 540px;
  padding: 0 2% 0 2%;
}

 /****************************************
    トピック
*****************************************/

.topic {
  text-align: center;
  margin: 0 auto;
  width: 100%;
  margin-top: 200px;
  max-width: 1000px;
}
.topic-contents{
  margin-top: 80px;
}

.topic h2 {
  font-size: 48px;
  line-height: 0;
  color: #10567e;
}
.topic h3 {
  text-align: center;
  font-size: 40px;
  color: #10567e;
}
.page-title{
  text-align: center;
  font-size: 40px;
  color: #10567e;
}
.border-topic {
  border-top: 1px solid;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 20px;
  padding-top: 20px;
  max-width: 500px;
  margin: 0 auto;
  color: #10567e;
}

.coment{
  font-size: 20px;
  margin: 0px;
  font-family: 'Noto Sans JP', sans-serif;
}

.topic-h3{
  font-size: 50px;
}
.annotation{
  text-align: center;
  margin-top: 40px;
}
.tbl-annotation{
  margin: 0;
  padding: 0;
  font-size: 16px;
  text-align: justify;
  font-weight: normal;
}
.message-contents{
  margin-top: 50px;
}
 /****************************************
    縦並び＆横並び
*****************************************/
.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  width: 100%;
  margin-top: 50px;
}

.feature-card {
  width: 250px;
  height: auto; /* 高さ自動調整に変更 */
  background: #ffffff;
  border-radius: 10px;
  display: flex;
  flex-direction: column; /* 縦並び */
  align-items: center;
  padding: 20px;
  text-align: center;
  border: 2px solid #ffdcaf; /* ← 枠線を追加 */
}

.feature-text { 
  font-weight: bold;
  color: #555; 
  font-size: 18px; 
  min-height: 40px; /* 高さ揃え */ 
  display: flex; 
  align-items: center; 
  line-height: 1.4; /* 行間を圧縮 */
}

.feature-subtext {
  font-size: 16px;
  color: #555;
  margin-top: 5px;
  min-height: 30px; /* 副題も高さを揃えたい場合 */
}

.feature-img {
  height: auto;       /* 縦横比を維持 */
  margin-top: 20px;   /* 文字との間隔 */
}

.width-s {
  width: 160px;
}

.width-big {
  width: 220px;
}

.feature-divider {
  margin: 15px auto;    /* 上下の余白＆中央寄せ */
  display: block;       /* imgをブロックにして中央寄せ */
}

.bg-features {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

.bg-image {
    background: url("../images/bg-image.jpg") center/cover no-repeat;
}

.bg-image2 {
    background: url("../images/bg-image2.png") center/cover no-repeat;
}

/* スマホ用 */
@media screen and (max-width: 768px) {
  .message-contents {
    margin-top: 20px;
  }
  .features {
    flex-direction: column;  /* 縦並び */
    gap: 20px;
    margin-top: 20px;
    align-items: center;     /* ← ここでカード自体を中央に */
  }

  .feature-card {
    align-items: center;     /* ← カード内の要素も中央寄せ */
    text-align: center;      /* ← 文字も中央揃え */
    width: 85%;  /* 画面幅の90%：ほぼ全幅 */
    padding: 15px;
  }

  .feature-divider {
    margin: 0px auto;       /* 線も中央に */
  }

  .feature-img {
    display: block;
    margin: 20px auto 0;     /* 画像も中央に配置 */
  }
  .feature-text {
    font-size: 18px;
  }
}


 /****************************************
    画像
*****************************************/
.a4img{
  height: 1000px;
  margin-top: 40px;
}
.a4img-center{
  text-align: center;
}
.insta-img {
  width: 200px;
  height: auto;
  margin-top: 30px;
}
 /****************************************
    マップ
*****************************************/
.gmap {
  height: 0;
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  margin-top: 50px;
  }
  .gmap iframe {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  }


 /****************************************
    ボタン
*****************************************/
a.btn_ao_b {
  display: flex;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  margin-top: 20px;
  padding: 1.3rem 2rem;
  border: 2px solid #10567e;
  background: #fff;
  text-decoration: none;
  transition: 0.3s;
}
a.btn_ao_b:hover {
  background-color: #e9f3fd;
}
a.btn_ao_b .b__text {
  display: block;
  flex-grow: 1;
  color: #10567e;
  font-weight: bold;
  text-align: center;
  position: relative;
  padding-right: 15px;
  font-size: 23px;
}
a.btn_ao_b .b__text::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  transform: rotate(45deg);
  border-top: 3px solid #10567e;
  border-right: 3px solid #10567e;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  transition: 0.3s;
}
 /****************************************
    表
*****************************************/
.red-th{
  font-weight: bold;
  color: red;
}
@media (max-width: 1200px) {
  a.btn_ao_b .b__text {
    font-size: 18px;
    padding-right: 20px;
  }
  a.btn_ao_b .b__text::after {
    width: 12px;
    height: 12px;
  }
}


@media screen and (max-width: 640px)  {
  .padding-bottom{
    padding-bottom: 20px;
  }
  .contents{
    height: 550px;     
    background-position: 55% 19%;
  }
  
  .top-page{
    height: 550px;
    width: 100%;
    color: white;
  }
  .top-page h1{
    padding: 150px 0px 0px 0px;
    font-size: 35px;
    line-height: 55px;
  }
  .top-letter{
    position: static;
  }
  .sub-title{
    font-size: 25px;
    margin-top: 25px;
  }
  .top-name{
    font-size: 35px;
    padding: 0px;
  }
  .topic {
    text-align: left;
    max-width: 100%;
    width: 100%;
    padding: 0px 10px;
    margin-top: 0px;
  }
  .topic-contents{
    margin-top: 40px;
  }

  .topic h2{
    font-size: 30px;
  }
  .topic h3 {
    font-size: 25px;
  }

  .coment{
    font-size: 14px;
  }

  .topic-h3{
    font-size: 25px;
    text-align: center;
  }
  .annotation{
    text-align: left;
    margin-top: 20px;
  }
  .tbl-annotation{
    font-size: 14px;
    line-height: 0px;
  }
  .page-title{
    font-size: 25px;
    text-align: center;
  }
  a.btn_ao_b {
    margin-top: 20px;
  }

  a.btn_ao_b .b__text {
    font-size: 14px;
    padding-right: 20px;
  }
  a.btn_ao_b .b__text::after {
    width: 10px;
    height: 10px;
  }
  .a4img{
    height: 450px;
    margin-top: 20px;
  }
  .insta-img {
    width: 150px;
    height: auto;
    margin-top: 25px;
  }
  .gmap {
    margin-top: 25px;
    }
  .video {
    width: 100%;
    position: relative;
    padding-top: 56.25%;
    margin-bottom: 80px;
  }
  
  .video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0 5% 0 5%;
  }
  .top-gallery img {
    width: calc((100% - 16px) / 2); /* 2列 */
  }
}