@charset "utf-8";

/* ==================================================
   Header & Navigation
   ================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-header__brand {
  display: flex;
  align-items: center;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.site-header__logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-header__logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-header__logo-corp {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  color: #7a8894;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.site-header__logo-name {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--main);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.site-header__nav {
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link.active {
  color: var(--main);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--main);
  transition: width 0.25s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.header-action--tel {
  border: 1.5px solid var(--main);
  color: var(--main);
  padding: 10px 22px;
  font-size: 1.12rem;
}
.header-action--tel:hover {
  background: var(--main);
  color: #fff;
}

/* Hamburger button */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 10002;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1),
.hamburger-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2),
.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3),
.hamburger-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Overlay (Screen-wide backdrop) */
.mobile-drawer-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 10000 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.mobile-drawer-overlay.active,
.mobile-drawer-overlay.is-active,
.mobile-drawer-overlay.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed !important;
  top: 0 !important;
  right: -100% !important;
  width: 85% !important;
  max-width: 360px !important;
  height: 100vh !important;
  background: #ffffff !important;
  z-index: 10001 !important;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25) !important;
  padding: 24px 24px 40px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.mobile-drawer.active,
.mobile-drawer.is-open {
  right: 0 !important;
  visibility: visible !important;
}

.mobile-drawer__header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.mobile-drawer__close {
  background: #f1f5f9;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #334155;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.mobile-drawer__close:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.mobile-drawer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-drawer__list li {
  border-bottom: 1px solid #edf2f7;
}

.mobile-drawer__link {
  display: block;
  padding: 16px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.mobile-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.mobile-drawer__actions a {
  width: 100%;
  text-align: center;
}

@media (max-width: 991px) {
  .site-header__nav,
  .site-header__actions {
    display: none !important;
  }
  .hamburger-btn {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .site-header__inner {
    height: 68px;
  }
  .site-header__logo-img {
    width: 44px;
    height: 44px;
  }
  .site-header__logo-name {
    font-size: 1.25rem;
  }
}