@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Noto+Sans+JP:wght@100..900&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

/* 全体の設定 */
* {
  padding: 0px;
  margin: 0;
  box-sizing: border-box;
}

p {
font-size: 16px;
line-height: 1.8;
color: #222222;
}

body {
font-family: 'Zen Kaku Gothic New', sans-serif;
overflow-x: hidden;
}

h2 {
font-size: 32px;
}

h3 {
font-size: 28px;
font-weight: bold;
text-align: center;
color: #514496;
}

/* 見出しの下線 */
.u-underline {
display: inline-block;
position: relative;
text-decoration: underline #514496;
text-decoration-thickness: 1px;
text-underline-offset: 8px;
line-height: 1.4;
}

/* 見出しh2について */
.text_main {
margin: 0 auto;
color: #514496;
text-align: center;
padding: 20px 0;
}

html {
scroll-behavior: smooth;
}

section[id] {
scroll-margin-top: 80px;
}


/* ===== ヘッダー ===== */
.c-header {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100px;
background: rgba(255,255,255,0.95);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 40px;
z-index: 1000;
}

.c-header__logo img {
height: 40px;
width: auto;
}

.c-header__list {
display: flex;
gap: 40px;
list-style: none;
}

.c-header__list-link {
text-decoration: none;
color: #707070;
font-weight: 700;
}

/* ハンバーガーメニュー用のチェックボックスとボタンを基本非表示にする */
.c-hamburger-menu__input,
.c-hamburger-menu__button {
display: none;
}


/* ===== スマホ（768px以下） ===== */
@media screen and (max-width: 768px) {

.c-header {
  height: 80px;
  padding: 0 20px;
}

.c-header__logo img {
  height: 27px; 
  width: auto;
}

.c-header__list {
  display: none;
}

/* ハンバーガーボタンを表示 */
.c-hamburger-menu__button {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1002;
  position: relative;
  margin-left: auto;
}

.c-hamburger-menu__button-mark {
  display: block !important;
  width: 100% !important;
  height: 3px !important;
  background-color: #514496 !important;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.c-hamburger-menu__bg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.c-hamburger-menu__list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background-color: #ffffff;
  z-index: 1001;
  transition: right 0.3s ease;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

.c-hamburger-menu__input:checked ~ .c-hamburger-menu__bg {
  display: block;
}

.c-hamburger-menu__input:checked ~ .c-hamburger-menu__list {
  right: 0;
}

.c-hamburger-menu__input:checked ~ .c-hamburger-menu__button .c-hamburger-menu__button-mark:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.c-hamburger-menu__input:checked ~ .c-hamburger-menu__button .c-hamburger-menu__button-mark:nth-child(2) {
  opacity: 0;
}

.c-hamburger-menu__input:checked ~ .c-hamburger-menu__button .c-hamburger-menu__button-mark:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
}



/* ===== メインビジュアルヒーロー全体 ===== */
.hero {
  min-height: 220px;
  background-color: #EAE9F2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
}

.hero-content {
  margin-top: 0;
}

.hero-content h1 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 36px;
  font-weight: bold;
  line-height: 1.2;
  color: #514496;
}


/* ===== スマホ ===== */
@media screen and (max-width: 768px) {
  .hero {
    background-color: #EAE9F2;
    background-size: cover;
    min-height: 160px;
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    margin-top: 0;          /* ★PC用の余白をクリア */
  }

  .hero-content h1 {
    font-size: 26px;
    line-height: 1.2;
  }

  .hero-inner {
    height: auto;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .catch {
    position: static;
    transform: none;
    text-align: center;
    margin-top: 20px;
    font-size: 22px;
  }
}




/*教育方針*/
.kyouiku {
  width: 80%;
  max-width: 1100px;
  padding: 60px 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.kyouiku_img {
  width: 50%;
  margin: 0;
}

.kyouiku_img img {
  width: 100%;
  max-width: 100%;
  height: 320px; /* 画像の縦幅を指定 */
  object-fit: cover; /* 変形を防ぐ */
  border-radius: 16px;
}

.kyouiku_container {
  width: 50%;
  margin: 0;
  padding: 0;
}
.kyouiku_text{
  padding: 20px;
}

/* ==========================================
   レスポンシブ対応 (スマホ表示時の調整)
========================================== */
@media screen and (max-width: 768px) {
  .kyouiku {
    flex-direction: column; /* スマホでは縦並びに切り替え */
    width: 90%;
    padding: 30px 0;
  }

  .kyouiku_container,
  .kyouiku_img {
    width: 100%;
  }

  .kyouiku_img img {
    height: 200px;
  }
}



/*スタッフ紹介*/
.stuff{
  background-color: #EAE9F2;
  padding: 80px 0; /* ← 上下に 80px の余白を追加（数値はお好みで調整可能です） */
}
.stuff_container{
  width: 70%;
  max-width: 1000px;
  background-color: white;
  margin: 0 auto;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
}
.menber_contanier{
  display: flex;
  justify-content: center;
  align-items: center;

}
.stuff_menber_1{
  width: 400px;
  padding: 30px;
  gap: 20px;

}
.box {
  border-top: 1px solid #222222;
  border-bottom: 1px solid #222222;
  padding: 10px;
  text-align: center;
}
.stuff_menber_1 p{
  text-align: center;
}


/* ==========================================
   スタッフ紹介 レスポンシブ対応 (スマホ表示時の調整)
========================================== */
@media screen and (max-width: 768px) {
  .stuff_container {
    width: 90%;
    padding: 30px 15px;
  }

  .menber_contanier {
    flex-direction: column;
    width: 100%;
    padding: 0;
  }

  .stuff_menber_1 {
    width: 100%;
    padding: 20px 0;
    word-break: break-all;
  }
}





/*余白*/
.yohaku{
  background-color: white;
  height: 100px;
}








/*フッター*/
/* ==========================================
   フッター（PC・スマホ共通のベース設定）
========================================== */
footer {
  background: #EAE9F2;
  text-align: center;
  border-radius: 20px 20px 0 0;
  padding: 40px 20px;
}

footer img {
  width: 180px;
  margin-bottom: 15px;
}

footer p, footer a {
  font-size: 12px;
  line-height: 1.5;
  color: #222222;
}

/* リンクを包むコンテナ（flexboxで横並びをコントロール） */
.link {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* 画面幅が狭くなったら綺麗に折り返す */
  gap: 15px 20px;   /* リンク同士の「上下の隙間 15px」「左右の隙間 20px」 */
  margin-top: 20px;
}

.link a {
  text-decoration: none; 
  color: #707070;
  font-size: 14px;
  display: inline-block;
  white-space: nowrap; /* ★ 文字列の途中で変な改行が起きるのを防ぐ */
}

.link a:hover {
  opacity: 0.6;
}




/* ==========================================
   スマホ版（768px以下）レスポンシブ調整
========================================== */
@media screen and (max-width: 768px) {

  p {
    font-size: 14px; /* SP版のフォントサイズ指定 */
    line-height: 2;
  }

  h2 {
    font-size: 24px;
  }

  .sp-only-br {
    display: inline; /* SP版での改行を有効化 */
  }

    /* ヒーロータイトル中央揃え */
    .hero {
      min-height: 160px;
      padding-top: 80px;
    }
  
    .hero-content h1 {
      font-size: 26px;
    }
  
}

/* ===== スクロールフェードインアニメーション ===== */
/* 初期状態：透明で少し下に下げておく */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 画面内に入ったとき（JavaScriptでこのクラスが付与される） */
.fade-in.is-active {
  opacity: 1;
  transform: translateY(0);
}