/* =========================================
   HEADER
========================================= */

.global-nav{
  position: fixed;
  top: 2%;
  left: 0;
  right: 0;
  width: 96%;
  margin: 0 auto;
  z-index: 9999;
}
.header{
  width: 100%;
}
.header_inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1920px;
  margin: 0 auto;
}

/* logo
----------------------------------------- */

.header_logo{
  width: clamp(260px,23vw,360px);
  flex: 0 0 clamp(220px,23vw,360px);
}
.header_logo a{
  display: block;
}
.header_logo img{
  display: block;
  width: 100%;
  height: auto;
}

/* PC NAV
----------------------------------------- */

.header_nav{
  margin-left: auto;
  padding: 10px 10px 10px 35px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0,0,0,.1);
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header_nav ul{
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.header_nav li{
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.header_nav a{
  display: block;
  color: var(--black);
  font-size: clamp(11px,1.692vw,16px);
  font-weight: 700;
  text-decoration: none;
}
.header_nav li a:hover{
	color: var(--green);
}

/* CTA
----------------------------------------- */

.header_cta{
  margin-left: 5px !important;
}
.header_cta a{
  padding: 12px 30px;
  background: var(--green);
  border-radius: 999px;
  color: #fff !important;
}
.header_cta a:hover{
	background: #007d1c;
}

/* SP MENU
----------------------------------------- */

.sp_menu{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 30px 40px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .3s ease,
    visibility .3s ease;
  z-index: 1001;
}
.menu_btn{
  display: none;
}

@media screen and (max-width: 900px){

  .global-nav{
    top: 1%;
    width: var(--page-sp);
  }
  .header{
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,.1);
  }
  .header_inner{
    position: relative;
    padding: 6px 3%;
    z-index: 1002;
  }
  .header_logo{
    width: 220px;
    flex: 0 0 220px;
  }
  .header_nav{
    display: none;
  }

  /* MENU BUTTON
  ----------------------------------------- */

  .menu_btn{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--green);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1003;
  }
  .menu_btn span{
    position: absolute;
    left: 50%;
    display: block;
    width: 20px;
    height: 2px;
    margin: 0;
    background: #fff;
    transform: translate(-50%, calc(-50% - 4px));
    transition: top .3s ease, transform .3s ease, opacity .3s ease;
  }
  .menu_btn span:nth-child(1){
    top: calc(50% - 6px);
  }
  .menu_btn span:nth-child(2){
    top: 50%;
  }
  .menu_btn span:nth-child(3){
    top: calc(50% + 6px);
  }
  .menu_btn small{
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    margin: 0;
    color: #fff;
    font-size: 7px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
  }

  /* SP MENU
  ----------------------------------------- */

  .sp_menu nav{
    width: 100%;
    max-width: 500px;
  }
  .sp_menu ul{
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .sp_menu li{
    border-bottom: 1px solid #eee;
  }
  .sp_menu li a{
    display: block;
    padding: 18px 6px;
    color: var(--black);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }

  /* CTA
  ----------------------------------------- */

  .sp_menu_cta{
    display: block;
    margin-top: 30px;
    padding: 16px;
    background: var(--green);
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }
  .sp_menu_cta a{
    color: #fff;
  }

  /* OPEN
  ----------------------------------------- */

  .header.menu_open .sp_menu{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* hamburger → × */

  .header.menu_open .menu_btn span:nth-child(1){
    top: 50%;
    transform: translate(-50%,-50%) rotate(45deg);
  }
  .header.menu_open .menu_btn span:nth-child(2){
    opacity: 0;
  }
  .header.menu_open .menu_btn span:nth-child(3){
    top: 50%;
    transform: translate(-50%,-50%) rotate(-45deg);
  }
  .header.menu_open .menu_btn small{
    display: none;
  }
}