body,html{
    margin: 0;
    overflow-x: hidden;
}

/*トップに戻るボタン*/
.pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #fff;
    border: solid 2px #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0 4px 6px rgb(0 0 0 / 30%);
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #000;
    border-right: 3px solid #000;
    transform: translateY(20%) rotate(-45deg);
}

/*ヘッダー*/

.container {
    width: 100%;
    height: 120px;
    position: relative;
}

/*ロゴ*/
.logo{
    width: 225px;
    height: 84px;
    position: relative;
    margin-top: 20px;
    margin-left: 40px;
}

/*サイトメニュー*/

.sitemenu ul {
    display: flex;
    list-style: none;
    position: absolute;
    top: 45px;
    right: 45px;
    z-index: 2;
    gap: 80px; /* これでli同士のスペースを設定 */
}

.sitemenu a{
    font-family: Nunito;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.2em;
    color: black;
    margin: 0; 
    text-decoration: none; /*テキストの下線を表示しない*/
    display: flex;
    align-items: center; /* 垂直中央揃え */
    height: 30px; /* 親liと同じ高さを明示的に指定 */
}

.sitemenu li {
    margin: 0; /* 念のためリセット */
    height: 30px;
    display: flex;
    align-items: center; /* aタグの高さに揃える */
}

     /* ここから↓ハンバーガーボタンのデザイン */

      /* ハンバーガーボタンPCデザインは非表示 */
      .drawer__button,
      .drawer__nav {
        display: none;
      }
      
     .drawer__button {
        position: relative;
        width: 3rem;
        height: 3rem;
        background-color: transparent;
        border: none;
        cursor: pointer;
        z-index: 1000; /* メニューを開いている時もクリックできるよう設定 */
    }
    /* ハンバーガーボタン内の線 */
    .drawer__button > span {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 2rem;
        height: 2px;
        background-color:black;
        transform: translateX(-50%);
    }
    .drawer__button > span:first-child {
        transform: translate(-50%, calc(-50% - 0.5rem));
        transition: transform 0.3s ease;
    }
    .drawer__button > span:nth-child(2) {
        transform: translate(-50%, -50%);
        transition: opacity 0.3s ease;
    }
    .drawer__button > span:last-child {
        transform: translate(-50%, calc(-50% + 0.5rem));
        transition: transform 0.3s ease;
    }

     /* 展開時のデザイン */
    .drawer__button.active > span:first-child {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    .drawer__button.active > span:nth-child(2) {
        opacity: 0;
    }
    .drawer__button.active > span:last-child {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    /* メニューのデザイン */
.drawer__nav {
    position: fixed; /* 追従ヘッダーなどでも表示できるよう設定しておく */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000; /* ← これを追加して最前面に表示 */
  }

  .drawer__nav__inner {
    position: relative;
    width: 80%;
    height: 100%;
    background-color: black;
    padding: 4rem 1.5rem 1rem;
    margin: 0 0 0 auto;
    overflow: scroll;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .drawer__nav__menu {
    list-style: none;
    padding-left: 0;
  }
  .drawer__nav__link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 1rem;
    border-bottom: solid 1px lightgray;
  }

  /* 展開時のデザイン */
.drawer__nav.active {
    opacity: 1;
    visibility: visible;
    display: inline-block;
  }
  .drawer__nav.active .drawer__nav__inner {
    transform: translateX(0);
    display: inline-block;
  }


  /* ↑ここまで */

/* バナー */
.banner {
    padding: 50px 20px 0px 20px;
    text-align: center;
}

.banner-container h1 {
    font-family: Nunito;
    font-size: 32px;
    font-weight: bold;
    color: black;
    margin-bottom: 40px;
}

.banner-imgcontainer {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 上端を揃える */
    gap: 20px;
    margin: 50px auto 40px; /* ←marginの上側を50pxにする */
    background-color: #F5F5F5;
    width: fit-content; /* 画像たちの幅に合わせる */
    padding: 50px; /* ←さらに、内側にも50pxの余白を入れる方法もある */
}

/* 1枚目の画像 */
.ba-img1 {
    width: 366px;
    height: 192px;
    object-fit: cover; /* 必要なら画像をトリミングしてピッタリに */
}

/* 2枚目の画像 */
.ba-img2 {
    width: 325px;
    height: 325px;
    object-fit: cover;
}

/* 3枚目の画像 */
.ba-img3 {
    width: 324px;
    height: 576px;
    object-fit: cover;
}

/* 学校課題テキスト */
.banner-container h3 {
    font-family: 'Meiryo', sans-serif;
    font-size: 16px;
    font-weight: normal;
    margin-top: 20px;
}

/* テキストコンテナ */
.text-container {
    display: flex;
    flex-direction: column; /* ←縦に並べる */
    justify-content: center; /* 真ん中寄せ */
    gap: 20px;
    max-width: 900px;
    margin: 50px auto;
    background-color: #ffffff;
    padding: 40px 40px 0 40px;
}

.text-item {
    display: flex;
    align-items: flex-start; /* 上揃え */
    gap: 60px;
}
  

.text-container h2 {
    font-family: Nunito;
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    white-space: nowrap; /* 折り返しを禁止する */
    padding-left: 100px;
    width: 200px; /* h2に固定幅をつける（ここ大事！） */
    margin: 0; /* 余計なmarginなし */
}

.text-container h3 {
    width: 40%;
    font-family: Meiryo;
    font-size: 16px;
    font-weight: normal;
    width: calc(100% - 200px - 30px); /* h2とgapを引いた残りをh3に割り当て */
    text-align: left;
    margin: 0;     /* h3自体を中央に */
}

/*CONTACTお問い合わせ*/
.contact{
    width: 100%;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center; /* ← これを追加して縦中央に */
}

.contact-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-container h1{
    font-family: Nunito;
    font-size: 32px;
    font-weight: bold;
    color: black;
}

.contact-container a{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 360px;
    height: 77px;
    border-radius:100px;
    background-color: #FFC000;
    color:white;
    font-family: Meiryo;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer; /* ← ボタン風のカーソルに */
}

/*フッター*/
.footer_container h2{
    font-family: meiryo;
    font-size: 14px;
    font-weight: lighter;
}

.footer_container {
    background-color: #F5F5F5;
    width: 100%;
    height: 50px;
    margin-top: 0px;
    margin-bottom: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}




/* スマホ表示用（画面幅430px以下） */
@media screen and (max-width: 430px) {

    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    /* ヘッダー */

    .logo {
        width: 150px;
        height: auto;
        margin: 20px 15px;
    }

    .sitemenu ul {
        flex-direction: column;
        top: 80px;
        right: 10px;
        gap: 10px;
        padding: 10px;
        border-radius: 10px;
    }

    .sitemenu a {
        font-size: 16px;
        margin-left: 0;
        color: black;
    }

    .sitemenu {
        display: none;
        background-color: rgba(0, 0, 0, 0.8); /* 背景色追加 */
        position: absolute;
        top: 60px;
        right: 10px;
        padding: 10px;
        border-radius: 8px;
      }


      .drawer__button {
        display: block;
        position: absolute; /* または fixed */
        top: 20px;
        right: 20px;
        z-index: 1000;
      }
    


    /* バナー */
    .banner {
        width: 100%;
        text-align: center;
        padding: 0px;
    }

    .banner-imgcontainer{
        width: 100%;
        flex-direction: column;
        gap: 60px;
        box-sizing: border-box; /* padding込みで100%に収める */
    }

     .banner-container h1 {
        font-size: 24px;
        text-align: center;
    }

    /* テキスト */
    .text-container{
        box-sizing: border-box; /* padding込みで100%に収める */
        margin: 15px;
        padding: 0px;
        display: block;
    }

    .text-item {
        flex-direction: column; /* h2とh3を縦並びにする */
        align-items: flex-start; /* 左揃え */
        margin: 60px 30px 0px 30px;
        gap: 0px;
      }

    .text-container h2 {
        font-size: 16px;
        text-align: left;
        white-space: nowrap; /* 折り返しを禁止する */
        margin: 0; /* 余計なmarginなし */
        padding-left: 0px;
    }

    .text-container h3 {
        width: 100%;
        margin-top: 10px;
    }


       /* CONTACT */
           .contact-container h1{
            font-size: 24px;
           }
    
          .contact-container a{
            font-size: 16px;
            font-weight: lighter;
          }
    
          /* FOOTER */
          .footer_container h2{
            font-size: 12px;
            font-weight: lighter;
          }

    
}