/* 共通 */
html {
    font-size: 16px;
    font-family: sans-serif;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0 0 0 0;
}

/* header {
    margin: 0 5% 0 5%;
} */

.header_inner.change-color{
    position: fixed;
    background-color: #fff;
    width: 100%;
    height: 8%;
    z-index: 2;
}

nav li {
    display: block;
    font-family: "magistral", sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1.4em;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 40px;
    justify-content: right;
    padding-top: 1%;
    position: fixed;
    right: 2rem;
    z-index: 100;
}

/* スマホ */
.sp-menu {
    display: none;
}

/* 20241116追記 */
.sp{
    display: none;
}
/* ハンバーガーメニューに切替 */
@media screen and (max-width:1000px) {
    #header ._w_right {
      display: none;
    }
  
    /* スマホ用ナビ */
    .sp {
      display: block;
    }

    header nav ul {
        display: block;
        right: 0;
    }

    header nav li{
        font-size: 1.4em;
    }

    footer nav ul{
        display: block;
        position: unset;
    }

    footer nav li{
        margin-top: 1.4rem;
        padding-left: 0;
    }
    
    /* ハンバーガーボタン */
    .openbtn {
      cursor: pointer;
      position: fixed;
      top: 0;
      right: 0;
      width: 74px;
      height: 74px;
      padding: 13px 12px 12px 12px;
      z-index: 100;
      transition: 0.3s;
    }
    .openbtn span {
      display: inline-block;
      transition: all .3s;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      height: 3px;
      background-color: #000000;
      width: 36px;
      top: 17px;
    }
    .openbtn span:nth-of-type(2) {
      top: 27px;
    }
    .openbtn span:nth-of-type(3) {
      top: 37px;
    }
    .openbtn span:nth-of-type(4) {
      background: none;
      position: relative;
    }
    .openbtn span:nth-of-type(4)::after {
      content: 'MENU';
      position: absolute;
      top: -1px;
      left: 0;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.3px;
      line-height: 1.5;
    }
  
    .openbtn.active span:nth-of-type(1) {
      top: 27px;
      left: 16px;
      transform: rotate(-45deg);
      width: 41px;
    }
    .openbtn.active span:nth-of-type(2) {
      display: none;
    }
    .openbtn.active span:nth-of-type(3) {
      top: 27px;
      left: 16px;
      transform: rotate(45deg);
      width: 41px;
    }
    .openbtn.active span:nth-of-type(4) {
      position: relative;
    }
    .openbtn.active span:nth-of-type(4)::after {
      content: 'CLOSE';
      position: absolute;
      top: -1px;
      left: -1px;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0;
      line-height: 1.5;
    }
    .openbtn.active {
      background: none;
      border: none;
      position: fixed;
      top: 0 !important;
    }
    /* ここまでハンバーガーボタン */
  
    /* スマホ用グローバルメニュー */
    #g-nav {
      display: none;
      position: fixed;
      left: 0;
      opacity: 0;
      width: 100%;
      height: 104vh;
      overflow: auto;
      -webkit-overflow-scrolling: touch;
      padding: 30px 20px;
      transition: 0.3s;
    }
    /* panelactiveクラスが付与されたとき */
    #g-nav.panelactive{
      display: block;
      opacity: 1;
      z-index: 99;
      background-color: rgb(255, 255, 255, 0.5);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
    }
  
    ._w_sp_navi {
      text-align: center;
      padding: 4rem 0;
      margin: auto;
      width: 100%;
    }
    #g-nav a {
      display: block;
      text-decoration: none;
    }
    ._w_sp_navi a {
      color: #000000;
    }
    ._w_sp_navi_item + ._w_sp_navi_item{
      margin-top: 20px;
    }

    ._w_sp_navi_item + ._w_sp_navi_item + .sp_sns{
        margin-top: 0px;
      }

    ._w_sp_navi_item a {
      width: 100%;
    }

    .sns_menu{
        width: 125px;
    }

    .sns_menu:hover{
        opacity: 0.6;
    }

    .menu_bluesky{
        width: 60px;
    }

    .header_inner.change-color{
        height: 70px;
    }
    /* ここまでスマホ用グローバルメニュー */
  }
  


/* section */
h2 {
    text-align: center;
    font-size: 3.5em;
    font-family: "magistral", sans-serif;
    font-weight: 800;
    font-style: italic;
    margin-bottom: 9%;
}

.h2_dot {
    display: inline-block;
    padding: 0.1em;
    margin-left: 5px;
    border-radius: 10px;
    background-color: #fc676e;
}

.h2_dot_illust {
    display: inline-block;
    padding: 0.1em;
    margin-left: 5px;
    border-radius: 10px;
    background-color: #90ccbd;
}

.h2_dot_top,
.h2_dot_chara {
    display: inline-block;
    padding: 0.1em;
    margin-left: 5px;
    border-radius: 10px;
    background-color: #fff;
}

.h2_dot_contact {
    display: inline-block;
    padding: 0.1em;
    margin-left: 5px;
    border-radius: 10px;
    background-color: #fcb585;
}

section {
    padding: 5% 0;
    margin: 90px auto 90px auto;
}

/* index */

/* header {
    opacity: 0.7;
} */

h1 {
    position: absolute;
    left: 13vw;
    bottom: 40%;
    font-size: 3.8em;
    font-family: "magistral", sans-serif;
    font-weight: 800;
    font-style: italic;
    line-height: 0.9;
}

h1 p {
    font-size: 0.3em;
    margin: 0;
    font-family: "magistral", sans-serif;
    font-weight: 400;
    font-style: italic;
    margin: 0 9px;
    letter-spacing: 5px;
}

.hero {
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: bottom 30px right 100px;
    background-size: contain;
    padding: 790px 0 500px 0;
    background-image: url(../images/hero_01.jpg);
    margin: 0;
    text-align: center;
}

a:link {
    color: #000000;
    text-decoration: none;
}

a:visited {
    color: #000000;
}

li a:hover {
    opacity: 0.6;
}


/* about */
.about {
    background-color: #90ccbd;
    background-image: url(../images/enentv_snashi.png);
    background-repeat: no-repeat;
    background-size: 43%;
    background-position: bottom 115px right 100px;
}

h3 {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-50%) translateX(27px);
    font-size: 2.3em;
    font-family: "magistral", sans-serif;
    font-weight: 800;
    font-style: italic;
    margin: 0;
    z-index: 2;
}

.snss {
    font-family: "magistral", sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1.4em;
}

.sns {
    font-family: "magistral", sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1.4em;
    display: inline-block;
    vertical-align: middle;
    line-height: 40px;
    margin: 0 5px;
}

.snss a:hover {
    color: #d4d4d4;
    text-decoration: underline;
}

.sns_yoko {
    display: flex;
    margin-bottom: 3px;
}

aside {
    position: relative;
    width: 45%;
    margin-left: 5%;
    margin-bottom: 3%;
    background-color: #fff;
    border-radius: 25px;
    padding: 25px;
    z-index: 1;
}

.profile {
    display: flex;
}

.name {
    font-size: 1.1em;
    font-weight: bold;
}

.profile_img {
    margin: auto 0;
}

.profile_txt {
    margin-left: 4%;
}

.shoukai {
    line-height: 1.8;
    font-size: 0.9em;
}

.ozg {
    font-size: 0.9em;
}

.sns_p {
    display: inline-block;
    width: 29px;
    vertical-align: middle;
    margin: 5px;
}

.sns_p_icononly {
    display: inline-block;
    width: 50px;
    vertical-align: middle;
    margin-right: 20px;
}

/* illut */
.illust {
    background-color: #fff;
}

.illustrations {
    display: flex;
    justify-content: space-between;
    gap: 5%;
    margin: 0 5%;
    align-items: center;
}

.illustrations p{
    font-size: 0.9em;
    text-align: right;
}

.illustrations img:hover{
    opacity: 0.6;
}

.course-item {
    width: 30%;
  }
  
  .course-item img {
    cursor: pointer;
  }

#grayDisplay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100% !important;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 101;
}

#grayDisplay img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  height: 90%;
  object-fit: contain;
  z-index: 3;
}

.illustrations img {
    width: 100%;
    height: auto;
  }

/* characters */
.chara {
    background-color: #fcb585;
}

/* contact */
section .contact {
    background-color: #fff;
}

.adress {
    text-align: center;
    font-size: 1.0em;
    font-family: "magistral", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.mail_adress {
    text-align: center;
    font-size: 1.5em;
    font-family: "magistral", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.h2_contact {
    margin-bottom: 5%;
}

/* footer */
footer {
    background-color: #fc676e;
    text-align: center;
    padding: 30px;
}

footer nav ul{
    position: unset;
}

.footer_nav {
    justify-content: center;
    margin-bottom: 5%;
}

/* coming soon */
.madadayo {
    text-align: center;
    font-size: 1.5em;
    font-family: "magistral", sans-serif;
    font-weight: 400;
    font-style: italic;
}

#pagetop {
    /* レイアウト */
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 見た目 */
    width: 60px;
    aspect-ratio: 1/1;
    background-color: #000;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    transition: 0.3s;
  
    /* デフォルトは非表示 */
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
  }
  
  /* 矢印 */
  .pagetop-arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: translateY(20%) rotate(-45deg);
  }
  
  /* スクロールされたときに適用されるCSS */
  #pagetop.visible {
    opacity: 1;
    visibility: visible;
  }

/* スマホ */
@media(max-width: 1000px) {
    .grobal_nav {
        display: none;
    }

    .sp-menu {
        display: block;
    }

    h1 {
        left: 5vw;
        bottom: 25vh;
    }

    .hero {
        background-position: bottom 195px right -350px;
        background-size: cover;
        padding: 687px 0 500px 0;
        background-image: url(../images/hero.png);
    }

    aside {
        width: 90%;
        margin-bottom: 20%;
        padding: 13% 5%;
        margin-top: 18%;
    }

    .profile {
        display: block;
    }

    .profile_img {
        text-align: center;
    }

    .illustrations{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .illustrations img {
        width: 80%;
        margin-top: 40px;
    }

    .course-item{
        width: 100%;
        display: contents;
    }

    .adress {
        text-align: left;
        padding: 7%;
    }

    .copyright {
        margin-top: 8%;
        font-size: 0.8em;
    }

    .about {
        background-image: none;
    }

    .footer_nav {
        padding-left: 0;
    }
}