@charset "UTF-8";

/* 共通 */

.pc { display: block; }
.smart { display: none; }


br.pc {
    display: block;
}

br.pad {
    display: none;
}

br.smart {
    display: none;
}


@media screen and (max-width: 820px){
    br.pc {
        display: none;
    }
    
    br.pad {
        display: block;
    }
    
    br.smart {
        display: none;
    }
}


@media screen and (max-width: 540px){
    br.pc {
        display: none;
    }
    
    br.pad {
        display: none;
    }
    
    br.smart {
        display: block;
    }

    .pc { display: none; }
    .smart { display: block; }
}



/*　ライン　*/
hr {
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

hr.lineA {
  border-top: 1px dashed #aaa;
  padding: 30px 0;
}

hr.lineB {
    width: 100%;
    border-top: 1px dashed #aaa;
    box-sizing: border-box;
    margin: 10px 0;
}







/* ハンバーガーメニュー */
.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 55px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger span {
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: #949494;
    border-radius: 2px;
    transition: 0.4s ease;
  }

  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 13px; }
  .hamburger span:nth-child(3) { top: 26px; }

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

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

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


.menu {
    position: fixed;
    top: 0;
    right: 0; /* 左端に配置 */
    width: 60%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    padding-top: 50px;
    transform: translateX(100%) scale(1);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 1000;
    border-bottom: 50px solid rgb(153, 141, 43);
    box-sizing: border-box;
}

@media screen and (max-width: 820px){
.menu {
    position: fixed;
    top: 0;
    right: 0; /* 左端に配置 */
    width: 80%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    padding-top: 50px;
    transform: translateX(100%) scale(1);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 1000;
    border-bottom: 50px solid rgb(153, 141, 43);
    box-sizing: border-box;
}
}

@media screen and (max-width: 540px){
.menu {
    position: fixed;
    top: 0;
    right: 0; /* 左端に配置 */
    width: 90%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    padding-top: 50px;
    transform: translateX(100%) scale(1);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 1000;
    border-bottom: 50px solid rgb(153, 141, 43);
    box-sizing: border-box;
}
}





.menu.active {
transform: translateX(0) scale(1);
opacity: 1;
}

  .menu ul {
    width: 90%;
    margin: auto;
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
  }

  .menu li {
    width: 100%;
    position: relative;
    padding: 15px 20px;
    background-color: #ffffff;
    border: 1px solid #000000;
    cursor: pointer;
    font-size: 2vh;
    box-sizing: border-box;
  }

 .menu ul li.main-w50 {
    width: 50%;
    background-color: #eeeeee;
  }

  .menu li a {
    color: #333;
    text-decoration: none;
    display: block;
  }

  .menu-logo {
    width: 100%;
    margin: -5px auto 10px;
    text-align: center;
  }

  .menu-logo img {
    width: 80px;
  }

  .menu-grade {
    display: inline-block;
    background-color: #595959;
    color: #ffffff;
    font-size: 1.5vh;
    letter-spacing: 0.5px;
    padding: 5px 10px 4px;
    box-sizing: border-box;
    margin-left: 10px;
    margin-right: 10px;
  }

  .menu-en {
    position: absolute;
    top: 20%;
    right: 20px;
    margin: auto;
    font-size: 3vh;
  }


@media screen and (max-width: 540px){
  .menu li {
    width: 100%;
    position: relative;
    padding: 10px 10px;
    background-color: #ffffff;
    border: 1px solid #000000;
    cursor: pointer;
    font-size: 1.8vh;
    box-sizing: border-box;
  }
  .menu-grade {
    display: inline-block;
    background-color: #595959;
    color: #ffffff;
    font-size: 1.2vh;
    letter-spacing: 0.5px;
    padding: 5px 10px 4px;
    box-sizing: border-box;
    margin-left: 10px;
    margin-right: 10px;
  }
  .menu-en {
    position: absolute;
    top: 10%;
    right: 10px;
    margin: auto;
    font-size: 2vh;
  }
}





  /* サブメニュー */
  .submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    background-color: #ffffff;
  }

  ul.submenu {
    width: 90%;
    margin: 0 auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

 ul.submenu li {
    width: 100%;
    font-size: 1.8vh;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
    border: none;
    margin: 0;
    border: 0.5px solid #000000;
    box-sizing: border-box;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
  }


@media screen and (max-width: 540px){
  ul.submenu {
    width: 95%;
    margin: 0 auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

 ul.submenu li {
    width: 100%;
    font-size: 1.5vh;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
    border: none;
    margin: 0;
    border: 0.5px solid #000000;
    box-sizing: border-box;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
  }
}





li.master {
    border-left: 20px solid #595959;
    border-right: 5px solid #595959;
	border-collapse: separate;
    background-color: #eeeeee;
  }

li.school-class {
    border-left: 20px solid #c09c00;
    border-right: 5px solid #c09c00;
	border-collapse: separate;
  }

li.project-class {
    border-left: 20px solid #57c0d0;
    border-right: 5px solid #57c0d0;
	border-collapse: separate;
  }

li.jr-class {
    border-left: 20px solid #1650c4;
    border-right: 5px solid #1650c4;
  }


@media screen and (max-width: 540px){
li.master {
    border-left: 10px solid #595959;
    border-right: 3px solid #595959;
	border-collapse: separate;
    background-color: #eeeeee;
  }

li.school-class {
    border-left: 10px solid #c09c00;
    border-right: 3px solid #c09c00;
	border-collapse: separate;
  }

li.project-class {
    border-left: 10px solid #57c0d0;
    border-right: 3px solid #57c0d0;
	border-collapse: separate;
  }

li.jr-class {
    border-left: 10px solid #1650c4;
    border-right: 3px solid #1650c4;
  }
}





 ul.submenu li.w50 {
    width: 33.33%;
  }

 ul.submenu li.school {
    border-top: 5px solid #c09c00;
    padding: 10px;
  }

 ul.submenu li.gk {
    border-top: 5px solid #ff0000;
  }

 ul.submenu li.teq {
    border-top: 5px solid #289601;
  }

 ul.submenu li.start {
    border-top: 5px solid #57c0d0;
  }

 ul.submenu li.biima {
    border-top: 5px solid #db8ce1;
  }


  .submenu.active {
    max-height: 500px; /* 適度な高さ。必要に応じて調整 */
    opacity: 1;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.4);
    display: none;
    z-index: 999;
  }

  .overlay.active {
    display: block;
  }

  .menu-sel-ban {
    width: 70%;
    margin: 30px auto 0;
  }

  .menu-sel-ban img {
    width: 100%;
  }



@media screen and (max-width: 540px){
  .menu-sel-ban {
    width: 90%;
    margin: 30px auto 0;
  }
}








.school-sel-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 90;
    width: 220px;
    filter: drop-shadow(3px 3px 5px rgb(0, 0, 0, 0.2));
}

.school-sel-btn img {
    width: 100%;
    transition: 0.3s;
    scale: 1;
    cursor: pointer
}

.school-sel-btn img:hover {
    width: 100%;
    scale: 1.03;
}


/* Tablet */
@media screen and (max-width: 820px){
    .school-sel-btn {
        position: fixed;
        bottom: 125px;
        right: 10px;
        z-index: 100;
        width: 150px;
        filter: drop-shadow(3px 3px 5px rgb(0, 0, 0, 0.2));
    }
}

/* Mobile */
@media screen and (max-width: 540px){
    .school-sel-btn {
        position: fixed;
        bottom: 30px;
        right: 10px;
        z-index: 200;
        width: 150px;
        filter: drop-shadow(3px 3px 5px rgb(0, 0, 0, 0.2));
    }
}




/* スクロールしたら要素を表示 */
.fade-in {
opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
  pointer-events: none; /* 非表示中はマウスイベント無効 */
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* 表示中はマウスイベント有効 */
}








