@charset "UTF-8";

header{
  background-color: rgba(224, 197, 163, 0.7);
  color: #40220f;
  font-family: "Noto Serif JP", serif;
  position:fixed;
  width:100%;
  top:0;
  left:0;
  z-index:100;
}
.header_inner{
  max-width:1100px;
  margin:auto;
  padding:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.header_inner img{
  width: 200px;
  height: auto;
}


.nav_list a{
  font-size:1.4rem;
}

.nav_list > li:last-child > a {
  border:1px solid #40220f;
  padding:6px 18px;
  border-radius: 1%;
}
.nav_list a:hover{
  border-bottom: #40220f 1px solid;
}

.nav_list > li:last-child > a:hover {
  background-color: rgba(64, 34, 15, 0.7);
  color:#fff;
}

/* 共通 */
.header_inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* ハンバーガー */
.hamburger{
  display:none;
  flex-direction:column;
  gap:6px;
  background:none;
  border:none;
  cursor:pointer;
   z-index:1001;
}

.hamburger span{
  width:25px;
  height:2px;
  background:#000;
  display:block;
  transition:.3s;
}

/* ナビ */
.nav_list{
  display:flex;
  gap:15px;
  list-style:none;
}


/* ドロップダウン */
.nav_list > li {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: -30px;
    display: none;
    width: 150px;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
    list-style: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav_list > li:hover .dropdown {
    display: block;
}

.dropdown li {
    width: 100%;
}
.dropdown li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
}

.dropdown li a:hover {
    background-color: #40220f;
    color: #fff;
    border-bottom: none;
}





footer{
  background-color: #e4ccaf;
  margin-top: 100px;
  padding: 20px 0 10px;
  text-align: center;
  border-top: 1px solid #e1e1e1;
  font-family: "Noto Serif JP", serif;
}

.footer_inner img{
  width: 200px;
  margin: 0 auto 8px;
}
.footer_inner ul{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-bottom: 15px;
}
.footer_inner ul img{
  width:30px;
}

.footer_menu{
  font-size: 14px;
}
/*基本いらないSNS関係入れた場合考えなくても機能する
.footer_menu li{
  display: inline-block;
}
*/
.copyright{
  font-size:1.0rem;
  color:#40220f;
}

.footer_menu a:hover{
  opacity: 0.7;
}

/*表示について*/

/* 初期状態（隠す） */
.fade-in{
  opacity:0;
  transform:translateY(30px);
  transition:opacity 1.4s ease, transform 1.8s ease;
}

/* 表示状態 */
.fade-in.show{
  opacity:1;
  transform:translateY(0);
}



/* ドロップダウン */
.nav_list > li {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: -30px;
    display: none;
    width: 200px;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
    list-style: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav_list > li:hover .dropdown {
    display: block;
}

.dropdown li {
    width: 100%;
}

.dropdown li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
}

.dropdown li a:hover {
    background-color: #40220f;
    color: #fff;
    border-bottom: none;
}

.sp_course_link {
    display: none;
}





/*今回700で*/
@media screen and (max-width: 700px) {
  body{
    overflow-x:hidden;
  }
  header{
    position: fixed;
  }

 .hamburger{
    display:flex;
  }

  .nav{
    position:fixed;
    top:65px;
    right:-100%;
    width:100%;
    background:rgba(239, 239, 234, 0.9);
    transition:0.4s;
  }

  nav.active{
    right:0;
  }

  .nav_list{
    flex-direction:column;
    padding:30px 20px;
    gap:25px;
    text-align: center;
  }


/* ☰ → × */

  .hamburger.active span:nth-child(1){
    transform:translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2){
    opacity:0;
  }

  .hamburger.active span:nth-child(3){
    transform:translateY(-8px) rotate(-45deg);
  }

  .nav_list>li:last-child a{
    border:none;
    padding:6px 40px;
    color: #fff;
    background-color: #40220f;
    border-radius: 15px;
  }



  /* ドロップダウン */
  /*2個目*/

    /* 開いたら上向き */
    .course_menu.active .course_arrow {
        transform: rotate(225deg);
    }
  
  .nav_list > li:nth-child(2) {
      width: 180px;
      align-self: center;
      text-align: center;
      position: relative;
  }

  /* 講座案内の矢印 */
  .nav_list > li:nth-child(2) .course_arrow {
      display: inline-block;
      width: 8px;
      height: 8px;

      margin-left: 8px;

      border-right: 1px solid #40220f;
      border-bottom: 1px solid #40220f;

      transform: rotate(45deg);
      vertical-align: 3px;

      cursor: pointer;
      transition: transform 0.2s ease;
  }

  /* 開いたとき */
  .nav_list > li:nth-child(2).active .course_arrow {
      transform: rotate(225deg);
      vertical-align: -2px;
  }


  /* 子メニュー */
  .nav_list > li:nth-child(2) .dropdown {
      position: static;

      width: 100%;
      max-height: 0;

      overflow: hidden;

      padding: 0;
      margin: 5px 0 0;

      background: transparent;

      box-shadow: none;

      list-style: none;

      text-align: center;

      transition: max-height 0.3s ease;
  }

  /* 子メニューの各項目 */
  .nav_list > li:nth-child(2) .dropdown li {
      width: 100%;
  }

  /* 子メニューのリンク */
  .nav_list > li:nth-child(2) .dropdown li a {
      display: block;

      padding: 10px 0;

      color: #40220f;
      font-size: 1.2rem;
  }

  
  /*3個目*/

    /* 開いたら上向き */
    .course_menu.active .about_arrow {
        transform: rotate(225deg);
    }
  .nav_list > li:nth-child(3) {
      width: 180px;
      align-self: center;
      text-align: center;
      position: relative;
  }

  /* 講座案内の矢印 */
  .nav_list > li:nth-child(3) .about_arrow  {
      display: inline-block;
      width: 8px;
      height: 8px;

      margin-left: 8px;

      border-right: 1px solid #40220f;
      border-bottom: 1px solid #40220f;

      transform: rotate(45deg);
      vertical-align: 3px;

      cursor: pointer;
      transition: transform 0.2s ease;
  }

  /* 開いたとき */
  .nav_list > li:nth-child(3).active .about_arrow  {
      transform: rotate(225deg);
      vertical-align: -2px;
  }


  /* 子メニュー */
  .nav_list > li:nth-child(3) .dropdown {
      position: static;

      width: 100%;
      max-height: 0;

      overflow: hidden;

      padding: 0;
      margin: 5px 0 0;

      background: transparent;
      box-shadow: none;
      list-style: none;
      text-align: center;
      transition: max-height 0.3s ease;
  }

  /* 子メニューの各項目 */
  .nav_list > li:nth-child(3) .dropdown li {
      width: 100%;
  }

  /* 子メニューのリンク */
  .nav_list > li:nth-child(3) .dropdown li a {
      display: block;
      padding: 8px 0;
      color: #40220f;
      font-size: 1.2rem;
  }


/* SPではhoverによる表示切り替えを無効化 両方開く状態に*/
.nav_list > li .dropdown {
    display: block;
}


  

footer{
  margin-top: 50px;
}

.footer_inner ul{
  gap: 10px;
  margin: 0 2% 10px
}


    /*リンクを無効化 */
    .course_link {
        pointer-events: none;
    }

    /* ドロップダウン内のリンクを表示 */
    .sp_course_link {
        display: block;
    }




}



  
