@charset "utf-8";

/* ==========================================================================
   Smartphone Navigation Menu Style
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Overlay Background
   -------------------------------------------------------------------------- */
#header_sp .overlay {
  content: "";
  display: block;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#header_sp .overlay.open {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   2. Menu Trigger (Hamburger Button)
   -------------------------------------------------------------------------- */
#header_sp .menu-trigger {
  display: inline-block;
  width: 30px;
  height: 22px;
  vertical-align: middle;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

#header_sp .menu-trigger span {
  display: inline-block;
  box-sizing: border-box;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #333333;
  transition: all 0.4s ease;
  border-radius: 2px;
}

#header_sp .menu-trigger span:nth-of-type(1) { top: 0; }
#header_sp .menu-trigger span:nth-of-type(2) { top: 10px; }
#header_sp .menu-trigger span:nth-of-type(3) { bottom: 0; }

/* ×印アニメーション */
#header_sp .menu-trigger.active span:nth-of-type(1) {
  transform: translateY(10px) rotate(-45deg);
}
#header_sp .menu-trigger.active span:nth-of-type(2) {
  opacity: 0;
}
#header_sp .menu-trigger.active span:nth-of-type(3) {
  transform: translateY(-10px) rotate(45deg);
}

/* --------------------------------------------------------------------------
   3. Drawer Content Area
   -------------------------------------------------------------------------- */
.sp-drawer-content {
  width: 85% !important;
  max-width: 340px !important;
  height: 100vh !important;
  height: 100dvh !important;
  padding: 80px 24px 40px !important; /* 左右に均等な余白を確保 */
  background-color: #ffffff !important;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  overflow-y: auto !important;
  z-index: 999 !important;
  box-sizing: border-box !important;
  transform: translateX(100%) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  -webkit-overflow-scrolling: touch;
}

.sp-drawer-content.open {
  transform: translateX(0) !important;
}

/* --------------------------------------------------------------------------
   4. Navigation Menu List
   -------------------------------------------------------------------------- */
.sp-drawer-nav ul {
  padding: 0 !important;
  margin: 0 0 32px 0 !important;
  list-style: none !important;
}

.sp-drawer-nav li {
  margin-bottom: 20px !important;
  padding: 0 !important;
  border: none !important;
}

.sp-drawer-nav li a {
  text-decoration: none !important;
  display: block !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
  color: #333333 !important;
  padding: 0 !important;
  border: none !important;
  transition: opacity 0.2s ease;
}

.sp-drawer-nav li a:hover {
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   5. CTA Buttons Area
   -------------------------------------------------------------------------- */
.sp-drawer-btn-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-bottom: 32px !important;
}

.drawer-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 48px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  transition: opacity 0.2s ease;
}

.drawer-btn:hover {
  opacity: 0.85;
}

/* 白背景ボタン */
.drawer-btn.btn-outline {
  background-color: #ffffff !important;
  border: 1px solid #444444 !important;
  color: #333333 !important;
}

/* 黄色背景ボタン */
.drawer-btn.btn-yellow {
  background-color: #f7b500 !important;
  border: 1px solid #f7b500 !important;
  color: #333333 !important;
}

.drawer-btn .arrow {
  font-size: 15px !important;
  font-family: sans-serif !important;
}

/* --------------------------------------------------------------------------
   6. Contact Info (TEL / FAX)
   -------------------------------------------------------------------------- */
.sp-drawer-contact {
  text-align: center !important;
}

.sp-drawer-contact .tel {
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  font-size: 19px !important;
  font-weight: bold !important;
  letter-spacing: 0.05em !important;
}

.sp-drawer-contact .tel a {
  color: #333333 !important;
  text-decoration: none !important;
}

.sp-drawer-contact .fax {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  color: #555555 !important;
  letter-spacing: 0.05em !important;
}