/* ============================================================
   SHARED HEADER + DRAWER
   style.css（index.html）と同一のヘッダー・ドロワーCSS
   ============================================================ */

/* ============================================================
   HEADER — SP base
   ============================================================ */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 100;
  padding-top: 19px;
  padding-left: 20px;
  padding-right: 20px;
}

.site-logo img {
  width: 170px;
  height: 30px;
  object-fit: contain;
}

.menu-toggle {
  background: #00477b;
  width: 75px;
  height: 75px;
  border-radius: 6px 6px 6px 6px;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.menu-bar {
  display: block;
  width: 27px;
  height: 1px;
  background: #fff;
}

.menu-word {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: #fff;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ============================================================
   SP DRAWER MENU
   ============================================================ */
.sp-drawer {
  position: fixed;
  inset: 0;
  background: #00477b;
  z-index: 500;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sp-drawer.is-open {
  transform: translateX(0);
}

.sp-drawer-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 48px;
}

.sp-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 0 24px;
}

.sp-drawer-logo img {
  width: 170px;
  height: 30px;
  object-fit: contain;
}

.sp-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 0;
}

.sp-drawer-close-x {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 30px;
  color: #fff;
  line-height: 1;
  display: block;
}

.sp-drawer-close-label {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.1px;
  color: #fff;
  display: block;
}

.sp-drawer-nav {
  margin-top: 62px;
  padding: 0 28px;
  flex: 1;
}

.sp-drawer-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
}

.sp-drawer-nav-texts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.3s ease;
}

.sp-drawer-nav-arrow {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 500;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sp-drawer-nav-item:hover .sp-drawer-nav-texts {
  transform: translateX(6px);
}

.sp-drawer-nav-item:hover .sp-drawer-nav-arrow {
  transform: translateX(10px);
}

.sp-drawer-nav-en {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.32px;
  display: block;
}

.sp-drawer-nav-ja {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.48px;
  display: block;
}

.sp-drawer-footer {
  margin-top: 48px;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sp-drawer-line-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  background: #06c755;
  border-radius: 28px;
  color: #fff;
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 15px;
}

.sp-drawer-line-btn span {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.sp-drawer-sns {
  display: flex;
  gap: 16px;
  align-items: center;
}

.sp-drawer-sns a {
  display: flex;
  align-items: center;
}

.sp-drawer-brand {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.sp-drawer-copy {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  margin: -10px 0 0;
}

body.drawer-open {
  overflow: hidden;
}

/* ============================================================
   PC BREAKPOINT (≥ 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  /* mob-only を非表示（index.html の style.css と同じ挙動） */
  .mob-only { display: none !important; }

  /* PCではドロワー非表示 */
  .sp-drawer { display: none !important; }

  .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
  }

  .site-logo img { width: 170px; height: 30px; object-fit: contain; }

  /* !important でページCSSの .pc-only { display: block } による上書きを防ぐ */
  .pc-nav {
    display: flex !important;
    align-items: center;
    gap: 32px;
  }

  .pc-nav a {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity 0.2s;
  }

  .pc-nav a:hover { opacity: 0.75; }

  .pc-nav .pc-nav-line {
    background: #00b900;
    padding: 14px 24px;
    border-radius: 28px 8px 28px 8px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 185, 0, 0.25);
    transition: opacity 0.2s;
  }

  .pc-nav .pc-nav-line:hover { opacity: 0.88; }
}

/* ============================================================
   PC 中間ブレークポイント: 1024px ~ 1199px
   ============================================================ */
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-header {
    padding: 20px 32px;
  }

  .site-logo img {
    width: 130px;
    height: 23px;
  }

  .pc-nav {
    gap: 18px;
  }

  .pc-nav a {
    font-size: 12px;
  }

  .pc-nav .pc-nav-line {
    padding: 12px 18px;
    font-size: 12px;
  }
}
