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

.header{
  position: relative;
  z-index: 1000;
  width: 100%;
}
.header_inner{
  width: 100%;
  height: 130px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap:2rem;
}
@media screen and (max-width: 1100px){

  .header_inner{
    height: 100px;
    padding: 0 20px;
  }
}

/* =========================================
   LOGO
========================================= */

.header_logo{
  width: 300px;
  margin: 0;
  flex-shrink: 0;
}
.header_logo a{
  display: block;
}
.header_logo img{
  display: block;
  width: 100%;
  height: auto;
}

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

  .header_logo{
    width: 240px;
  }
}

/* =========================================
   NAV
========================================= */

.header_nav{
  margin-left: auto;
  margin-right: 110px;
}
.header_nav ul{
  display: flex;
  align-items: center;
  gap: 1.35rem;
  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-weight: 600;
  text-decoration: none;
  transition: opacity .3s ease;
}
.header_nav a:hover{
  opacity: .55;
}

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

  .header_nav{
    display: none;
  }
}

/* =========================================
   MENU BUTTON
========================================= */

.menu_btn{
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 1001;
  width: 90px;
  height: 90px;
  margin: 0;
  padding: 0;
  color: var(--black);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  border: 1px solid var(--black);
  border-radius: 50%;
  background: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.menu_btn span{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 1px;
  background: var(--black);
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}
.menu_btn span:nth-child(1){
  margin-top: -14px;
}
.menu_btn span:nth-child(2){
  margin-top: -3px;
}
.menu_btn small{
  position: absolute;
  left: 0;
  bottom: 27px;  /* menuの位置 */
  width: 100%;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}
.menu_btn:focus{
  outline: none;
  box-shadow: none;
}
.menu_btn:focus-visible{
  outline: none;
  box-shadow: none;
}

@media screen and (max-width: 1100px){
  
  .menu_btn{
    top: 14px;
    right: 16px;
    width: 70px;
    height: 70px;
  }
  .menu_btn span{
    width: 28px;
  }
  .menu_btn span:nth-child(1){
    margin-top: -12px;
  }
  .menu_btn span:nth-child(2){
    margin-top: -3px;
  }
  .menu_btn small{
    bottom: 20px;
    font-size: 10px;
  }
}

/* =========================================
   MENU OPEN
========================================= */

.header.menu_open .sp_menu{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, 0) scale(1);
}
.header.menu_open .menu_btn{
  z-index: 1001;
}
.header.menu_open .menu_btn span:nth-child(1){
  margin-top: 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.header.menu_open .menu_btn span:nth-child(2){
  margin-top: 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.header.menu_open .menu_btn small{
  opacity: 0;
}

/* =========================================
   MENU
========================================= */

.sp_menu{
  position: fixed;
  top: 10px;
  right: 18px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: min(450px, calc(100% - 40px));
  height: auto;
  max-height: calc(100dvh - 40px);
  padding: 90px 1rem 3rem;
  overflow-y: auto;
  border-radius: 3rem;
  border: 1px solid #fff;
  background: rgba(255,255,255, .9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 40px rgba(0,0,0, .12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(4px, -4px) scale(1);
  transform-origin: top right;
  transition:
    opacity .2s ease-out,
    transform .2s ease-out,
    visibility .2s ease;
}
.sp_menu nav,
.sp_menu_sub{
  width: 100%;
  max-width: 340px;
  text-align: left;
}
.sp_menu ul{
  margin: 0;
  padding: 0;
  list-style: none;
}
.sp_menu li{
  margin: 0;
  border-bottom: 1px solid rgba(45, 48, 50, .12);
}
.sp_menu a{
  display: block;
  padding: 1rem 0;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  transition: opacity .2s ease, padding-left .2s ease;
}
.sp_menu a:hover{
  opacity: .6;
  padding-left: 5px;
}
.sp_menu_sub{
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0 .25rem;
}
.sp_menu_sub > a,
.sp_menu_sns a{
  display: inline-flex;
  align-items: center;
  color: var(--black);
  font-size: .9rem;
  font-weight: 400;
  text-decoration: none;
  transition: opacity .2s ease;
}
.sp_menu_sub > a:hover,
.sp_menu_sns a:hover{
  opacity: .6;
}
.sp_menu .sp_menu_sns{
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.sp_menu .sp_menu_sns a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
}
.sp_menu .sp_menu_sns img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sp_menu_sns a:hover{
  opacity: .6;
}

@media screen and (max-width: 650px){
  
  .sp_menu{
    top: 16px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: var(--page-sp);
    padding: 70px 3rem 3rem;
  }
  .sp_menu a,
  .sp_menu_sub > a,
  .sp_menu_sns a{
    font-size: 1rem;
  }
  .sp_menu_sns a{
    width: 22px;
    height: 22px;
  }
}

