@charset "UTF-8" ;

/* ==================================
ナビ全体ラッパー
================================== */


/* ===== hum 常に表示===== */
.sp-nav-wrapper {
  display: block;
}
/* ===== hum右に隠す(初期) ===== */
.sp-logo  {
  width: 80px;
}
.nav-menu {
  position: fixed;
  pointer-events: none; 
  top: 0;
  right: 0;
  width: 60%;
  height: 100vh;
  background-color: #fbf9f8;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* ===== メニュー開いたとき ===== */
.nav-menu.active {
  transform: translateX(0);
  transition:  ease .4s;
  pointer-events: auto;
}

/* ===== hum btn ===== */
.hamburger {
  width: 80px;
  height: 80px;
  position: fixed;
  right: 40px;
  top: 20px;
  z-index: 9999;
  border: 1px solid #333;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== hum 3本線 ===== */
.hamburger_group {
  position: relative;
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  top: 0;
  left: 0;
  transform: translate(0, 0);
}

/* ===== 各線 ===== */
.hamburger span {
  display: block;
  width: 30px;
  height: 1px;
  background-color: #333;
  transition: 0.4s ease;
}

.hamburger span:nth-child(1) {
  top: 14px;
}
.hamburger span:nth-child(2) {
  top: 22px;
}
.hamburger span:nth-child(3) {
  top: 30px;
}



/* ===== hum ×マーク ===== */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
  position: relative;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: -9px;
  position: relative;
}



/* ===== メニュー内リンク ===== */
.nav-menu ul {
  display: grid;
  gap: 20px;
  text-align: center;
  padding: 40px 0;
}
.nav-menu a {
  display: block;
  color: #333;
}
.nav-menu a:hover {
  opacity: 0.7;
}

/* ===== contact btn ===== */
.mail-btn {
  display: flex;           
  justify-content: center; 
  align-items: center;  
}
.mail-btn a {
  display: flex;           
  align-items: center;  
  gap: 8px;               
  color: #fff;
  background-color: #00a291;
  padding: 12px 24px;      
  border-radius: 4px;    
} 
.mail-btn img {
  width: 20px;
  height: auto;
  display: block;
}




/* ==================================
レスポンシブ
================================== */
@media (max-width: 768px) {

.header-bg-wrap {
  margin-bottom: 60px;
}
.header {
  padding: 10px;
}
.hamburger {
  position: fixed;
  width: 60px;
  height: 60px;
  right: 10px;
  justify-content: space-around;
}
.nav-wrapper.active {
  display: flex;
}
.nav-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: #fbf9f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;

  /* transformのみアニメーション */
  transition: transform 0.4s ease;
  
  /* 初期状態は右に隠す */
  transform: translateX(100%);
}
#js-nav {
  position: fixed;
}

/* メニューを開いた状態 */
.nav-menu.active {
  transform: translateX(0);
}
}



@media (max-width: 468px) {
  .nav-menu ul {
    gap: 15px;
  }
  #js-nav {
  position: fixed;
}
}