/* STRIKE BODY CARE — ハンバーガー / ドロワーメニュー */

/* 色変数 */
:root {
  --green-900: #1f4f38;
  --green-700: #2f6b4f;
  --green-600: #3a8261;
  --green-100: #eaf4ee;
  --green-50: #f3f9f5;
  --ink: #2b302d;
  --ink-soft: #5b635e;
  --line: #e2ebe5;
  --white: #ffffff;
  --shadow-sm: 0 4px 14px rgba(31, 79, 56, .08);
  --line-green: #06c755;
}

/* SWELL標準ナビを非表示 */
#gnav,
.l-fixHeader__gnav,
.l-header__menuBtn,
.l-header__customBtn,
#sp_menu {
  display: none !important;
}

/* ヘッダー / 固定ヘッダー：CTAとハンバーガーを隣接させる */
@media (min-width: 960px) {
  .l-header.-series.-series-right .l-header__inner,
  .l-fixHeader.-series.-series-right .l-fixHeader__inner {
    justify-content: flex-start !important;
  }

  .l-header.-series.-series-right .l-header__logo,
  .l-fixHeader.-series.-series-right .l-fixHeader__logo {
    margin-right: auto !important;
  }

  .l-header.-series.-series-right .l-header__inner .w-header,
  .l-fixHeader.-series.-series-right .l-fixHeader__inner .w-header {
    margin-left: 12px !important;
    flex-shrink: 0;
  }
}

.sbc-header__menuBtn {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 10px;
}

/* ドロワー内ボタン */
.mobile-nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-weight: 700;
  border-radius: 999px;
  padding: 16px 30px;
  font-size: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.mobile-nav .btn:hover {
  transform: translateY(-2px);
}

.mobile-nav .btn--tel {
  background: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.mobile-nav .btn--line {
  background: var(--line-green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* ハンバーガーボタン */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 52px;
  padding: 9px 11px 7px;
  border: none;
  border-radius: 0;
  background: var(--green-700);
  box-shadow: 0 4px 14px rgba(31, 79, 56, .22);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hamburger:hover {
  background: var(--green-900);
  box-shadow: 0 6px 18px rgba(31, 79, 56, .28);
  transform: translateY(-1px);
}

.hamburger__icon {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 26px;
  height: 20px;
  color: #fff;
  line-height: 0;
}

.hamburger__svg {
  display: block;
  width: 26px;
  height: 20px;
  transition: opacity 0.3s ease;
}

.hamburger__bars {
  transition: opacity 0.3s ease;
}

.hamburger__icon::before,
.hamburger__icon::after {
  content: none;
  position: absolute;
  left: 0;
  top: 9px;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 0;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger__label {
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: #fff;
  line-height: 1;
}

.hamburger.is-active .hamburger__bars {
  opacity: 0;
}

.hamburger.is-active .hamburger__icon::before,
.hamburger.is-active .hamburger__icon::after {
  content: '';
  opacity: 1;
}

.hamburger.is-active .hamburger__icon::before {
  transform: rotate(45deg);
}

.hamburger.is-active .hamburger__icon::after {
  transform: rotate(-45deg);
}

/* PC：固定ヘッダー表示時のみメインヘッダーのハンバーガーを隠す（二重表示防止） */
@media (min-width: 960px) {
  [data-scrolled="true"] #header .sbc-header__menuBtn:not(.sbc-header__menuBtn--fix) {
    visibility: hidden;
  }

  [data-scrolled="false"] #fix_header .sbc-header__menuBtn--fix {
    display: none !important;
  }
}

/* PC：追尾ヘッダー内の MENU を右端に配置 */
@media (min-width: 960px) {
  #fix_header .l-fixHeader__inner {
    align-items: center;
  }

  #fix_header .sbc-header__menuBtn--fix {
    display: flex;
    margin-left: 10px;
    flex-shrink: 0;
  }
}

@media (max-width: 959px) {
  #header .l-header__inner {
    padding-right: 12px;
  }

  #header .sbc-header__menuBtn {
    margin-right: 0;
  }
}

@media (max-width: 599px) {
  .hamburger {
    min-width: 48px;
    padding: 8px 10px 6px;
    gap: 3px;
  }

  .hamburger__icon,
  .hamburger__svg {
    width: 24px;
    height: 18px;
  }

  .hamburger__icon::before,
  .hamburger.is-active .hamburger__icon::before,
  .hamburger__icon::after,
  .hamburger.is-active .hamburger__icon::after {
    top: 8px;
    width: 24px;
  }

  .hamburger__label {
    font-size: .46rem;
    letter-spacing: .1em;
  }
}

/* ドロワーメニュー */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100001;
  pointer-events: none;
  visibility: hidden;
  transition: visibility .4s;
}

.mobile-nav.open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 79, 56, .45);
  opacity: 0;
  transition: opacity .35s ease;
  backdrop-filter: blur(2px);
}

.mobile-nav.open .mobile-nav__backdrop {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 92vw);
  background: var(--white);
  box-shadow: -8px 0 40px rgba(31, 79, 56, .18);
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-nav.open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--green-50);
}

.mobile-nav__en {
  display: block;
  font-size: .68rem;
  letter-spacing: .28em;
  color: var(--green-600);
  font-weight: 700;
  text-transform: uppercase;
}

.mobile-nav__title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 4px 0 0;
}

.nav-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--green-900);
  font-size: 1.1rem;
  transition: background .2s ease, border-color .2s ease;
  padding: 0;
}

.nav-close:hover {
  background: var(--green-100);
  border-color: var(--green-100);
}

.mobile-nav__linksWrap {
  flex: 1;
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav__links {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 36px;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav__scrollHint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 32px 16px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .92) 45%, #fff 100%);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.mobile-nav__scrollHint.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__scrollHint-text {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--green-600);
}

.mobile-nav__scrollHint-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: var(--green-700);
  font-size: .72rem;
  line-height: .55;
  animation: sbcScrollHintBounce 1.5s ease-in-out infinite;
}

.mobile-nav__scrollHint-icon i:nth-child(2) {
  opacity: .45;
}

@keyframes sbcScrollHintBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: .7;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 14px;
  margin-bottom: 4px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.mobile-nav__link:hover {
  background: var(--green-50);
  color: var(--green-900);
}

.mobile-nav__link .icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  font-size: .9rem;
  transition: background .2s ease, color .2s ease;
}

.mobile-nav__link:hover .icon {
  background: var(--green-700);
  color: #fff;
}

.mobile-nav__link .label {
  flex: 1;
}

.mobile-nav__link .arrow {
  font-size: .65rem;
  color: var(--ink-soft);
  opacity: .5;
  transition: transform .2s ease, opacity .2s ease;
}

.mobile-nav__link:hover .arrow {
  opacity: 1;
  transform: translateX(3px);
  color: var(--green-600);
}

.mobile-nav.open .mobile-nav__link {
  animation: sbcNavIn .4s ease both;
}

.mobile-nav.open .mobile-nav__link:nth-child(1) { animation-delay: .04s; }
.mobile-nav.open .mobile-nav__link:nth-child(2) { animation-delay: .07s; }
.mobile-nav.open .mobile-nav__link:nth-child(3) { animation-delay: .10s; }
.mobile-nav.open .mobile-nav__link:nth-child(4) { animation-delay: .13s; }
.mobile-nav.open .mobile-nav__link:nth-child(5) { animation-delay: .16s; }
.mobile-nav.open .mobile-nav__link:nth-child(6) { animation-delay: .19s; }
.mobile-nav.open .mobile-nav__link:nth-child(7) { animation-delay: .22s; }
.mobile-nav.open .mobile-nav__link:nth-child(8) { animation-delay: .25s; }
.mobile-nav.open .mobile-nav__link:nth-child(9) { animation-delay: .28s; }
.mobile-nav.open .mobile-nav__link:nth-child(10) { animation-delay: .31s; }
.mobile-nav.open .mobile-nav__link:nth-child(11) { animation-delay: .34s; }
.mobile-nav.open .mobile-nav__link:nth-child(12) { animation-delay: .37s; }

@keyframes sbcNavIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.mobile-nav__foot {
  flex-shrink: 0;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--green-50), #fff);
}

.mobile-nav__tel {
  font-family: "Noto Serif JP", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: .04em;
  margin: 0;
}

.mobile-nav__hours {
  font-size: .75rem;
  color: var(--ink-soft);
  margin: 4px 0 16px;
}

.mobile-nav .nav-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav .nav-cta .btn {
  width: 100%;
  padding: 14px 20px;
  font-size: .92rem;
}

body.sbc-nav-open {
  overflow: hidden;
}

/* PC：ドロワー幅を広げてメニューを2列表示 */
@media (min-width: 960px) {
  .mobile-nav__panel {
    width: min(720px, 54vw);
  }

  .mobile-nav__linksWrap {
    flex: 0 1 auto;
  }

  .mobile-nav__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    padding: 16px 20px;
    overflow-y: visible;
  }

  .mobile-nav__link {
    margin-bottom: 0;
    padding: 13px 12px;
    font-size: .9rem;
    min-width: 0;
  }

  .mobile-nav__link .icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    font-size: .82rem;
  }

  .mobile-nav__scrollHint {
    display: none !important;
  }

  .mobile-nav__foot {
    padding: 18px 24px 24px;
  }

  .mobile-nav .nav-cta {
    flex-direction: row;
    gap: 12px;
  }

  .mobile-nav .nav-cta .btn {
    flex: 1;
    width: auto;
  }
}

/* スマホ用固定フッターナビ */
#before_footer_widget .sp-nav {
  display: none !important;
}

.sp-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, .10);
  padding-bottom: env(safe-area-inset-bottom);
}

.sp-nav__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.sp-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 0 8px;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  color: #5b635e;
  border-top: 2px solid transparent;
  transition: .15s;
}

.sp-nav__item:active {
  background: #f3f9f5;
}

.sp-nav__item span {
  font-size: 1.5rem;
  line-height: 1;
}

.sp-nav__item--tel {
  color: #2f6b4f;
}

.sp-nav__item--line {
  color: #06c755;
}

@media (max-width: 680px) {
  .sp-nav {
    display: block;
  }

  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
}
