@charset "UTF-8";
/* CSS Document (ハンバーガーメニュー) */

/* ハンバーガーメニュー全体を非表示（PC） */
.hamburger_menu {
  font-family: "Zen Maru Gothic", sans-serif;
  display: none;
}

/* ハンバーガーアイコン */
#nav_toggle {
  position: fixed;
  top: 10px;
  right: 0;
  height: 50px;
  width: 100px;
  cursor: pointer;
  z-index: 999;
  display: none;
  border-radius: 0 0 0 5px;
  background: none;
}

#nav_toggle > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 20px;
}

.hamburger_icon {
  position: relative;
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger_icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* メニュー展開時のアイコン変形 */
.open .hamburger_icon span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.open .hamburger_icon span:nth-child(2) {
  opacity: 0;
}
.open .hamburger_icon span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* メニュー本体 */
.hamburger_nav {
/*  background: url("../img/spbg.webp") no-repeat center center;*/
/*  background-size: cover;*/
    width: 100%;
  position: fixed;
  inset: 0;
  z-index: 990;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  padding: 120px 0;
  overflow-y: auto;
  text-align: center;
    
}

.hamburger_nav::before {
    content: "";
    background: url("../img/spbg.webp") no-repeat center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: fixed;
    inset: 0;
    filter: brightness(50%);

    z-index: -1;
}

.hamburger_nav ul {
  margin-bottom: 20px;
}

.hamburger_nav ul li {
  opacity: 0;
  transform: translateX(200px);
  transition: transform 0.6s ease, opacity 0.2s ease;
}

.hamburger_nav ul li a {
  display: block;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 3px;
  position: relative;
  transition: 0.2s;
}

.hamburger_nav ul li a::after {
  content: '';
  width: 250px;
  height: 1.5px;
  background: #FFFDF9;
  position: absolute;
  bottom: 0;
  left: calc(50% - 125px);
}

.hamburger_nav a span:not(.m_contact span) {
  display: block;
  font-size: 0.8em;
  color: #fff;
  margin-top: 5px;
}

.hamburger_nav .m_contact {
  opacity: 0;
  transform: translateX(200px);
  transition: transform 0.6s ease, opacity 0.2s ease;
}

.mbtn a {
  display: block;
  width: 70%;
    max-width: 450px;
  margin: 10px auto;
  padding: 15px 0;
  color: #fff;
  border: 1px solid #fff;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.hamburger_nav ul li a:hover {
  opacity: 0.6;
}

/* メニュー開いたときのアニメーション */
.open {
  overflow: hidden;
}

.open .hamburger_nav {
  visibility: visible;
  opacity: 1;
}

.open .hamburger_nav ul li,
.open .hamburger_nav .m_contact {
  opacity: 1;
  transform: translateX(0);
}

/* --- レスポンシブ（1400px以下） --- */
@media (max-width: 1400px) {
  .hamburger_menu {
    display: block;
    position: absolute;
    width: 50px;
    top: 25px;
    right: 30px;
  }
  #nav_toggle {
    display: block;
    position: relative;
    height: 40px;
    width: 40px;
    margin-left: 10px;
    background: none;
  }
  .hamburger_icon span {
    background-color: #FFB385;
  }
}


/* スマホ向け微調整 */
@media (max-width: 960px) {
  .hamburger_menu #nav_toggle {
    display: block;
  }
}

@media(max-width:768px){
    .hamburger_menu{
        top:3px
    }
    #nav_toggle {
    top: 16px;
  }
    .site_header h1{
        max-width: 80%;
    }
}


