/* ============================================================
 * SP Drawer — sundayfolk-child
 *
 * top-orange-navy.css から .sp-nav / .hamburger 系を分離。
 * sp-drawer.php は wp_footer で body 末尾に出るため、このCSSは全ページで読む。
 * ============================================================ */

.hamburger {
  display: none;
}

.sp-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9600;
}
.sp-nav.is-open { display: block; }

.sp-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 31, 52, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: sfDrawerFadeIn .25s ease;
}

.sp-nav__drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  overflow-y: auto;
  padding: 92px 32px 44px;
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.45;
  animation: sfDrawerIn .3s cubic-bezier(.16, 1, .3, 1);
  box-shadow: -8px 0 32px rgba(19, 31, 52, .14);
}

.sp-nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sp-nav__links li {
  border-bottom: 1px solid var(--c-border, rgba(0, 0, 0, .07));
}
.sp-nav__links a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 14px 4px;
  font-family: 'Montserrat', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--c-text, #2c3e50);
  line-height: 1.28;
  text-decoration: none;
  transition: color .2s;
}
.sp-nav__links a:hover { color: var(--c-orange, #e05531); }

.sp-nav__link-ja {
  font-size: 10px;
  font-weight: 500;
  color: var(--c-sub, #6b7280);
  letter-spacing: .04em;
  line-height: 1.3;
}
.sp-nav__links a:hover .sp-nav__link-ja {
  color: var(--c-orange, #e05531);
}

.sp-nav__bottom {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sp-nav__sns {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
}
.sp-nav__sns a,
.sp-nav__sns .sp-nav__search {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c-border, rgba(0, 0, 0, .07));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--c-sub, #6b7280);
  padding: 0;
  background: transparent;
  line-height: 1;
  cursor: pointer;
  transition: all .2s;
}
.sp-nav__sns a:hover,
.sp-nav__sns .sp-nav__search:hover {
  color: var(--c-orange, #e05531);
  border-color: var(--c-orange, #e05531);
}

.sp-nav__contact,
.sp-nav__video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.2;
  padding: 12px 22px;
  border-radius: 50px;
  transition: all .3s ease;
}
.sp-nav__contact {
  background: var(--c-orange, #e05531);
}
.sp-nav__contact:hover {
  background: var(--c-orange-dk, #c44420);
}
.sp-nav__video-btn {
  background: var(--c-navy, #1e2f4d);
}
.sp-nav__video-btn:hover {
  background: var(--c-navy-dk, #131f34);
}

.sp-nav__close {
  display: none;
  position: fixed;
  z-index: 10;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--c-text, #2c3e50);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
.sp-nav__close:hover {
  background: rgba(0, 0, 0, .06);
}
.sp-nav__close:focus-visible {
  outline: 2px solid var(--c-orange, #e05531);
  outline-offset: 2px;
}

@media screen and (max-width: 959px) {
  .sp-nav.is-open .sp-nav__close {
    display: flex;
  }
  .sp-nav__close {
    top: calc((86px - 42px) / 2 - 3px);
    right: calc(max(0px, (100vw - min(var(--max-w, 1200px), 100vw)) / 2) + 32px);
  }
}

@media screen and (max-width: 599px) {
  .sp-nav { z-index: 9600; }
  .sp-nav__close {
    top: calc((68px - 42px) / 2 - 3px);
    right: calc(max(0px, (100vw - min(var(--max-w, 1200px), 100vw)) / 2) + 20px);
  }
}

@media screen and (min-width: 600px) and (max-width: 959px) {
  .sp-nav__close {
    top: calc((68px - 42px) / 2 - 3px);
    right: calc(max(0px, (100vw - min(var(--max-w, 1200px), 100vw)) / 2) + 20px);
  }
}

@keyframes sfDrawerIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes sfDrawerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
