/* =========================================================
   トップページ専用CSS
   対象: body / HEADER / PC NAV / HAMBURGER挙動
   前提: common202606_shared.css を先に読み込むこと
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-ja);
  color: var(--black);
  background: var(--white);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  animation: pageFadeIn 1.1s ease both;
}

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── HEADER ─── */
#site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 30px 0 30px;
  height: 56px;
  background: transparent;
  border-bottom: none;
}

.header-logo {
  display: flex;
  align-items: baseline;
  gap: 25px;
  line-height: 1;
}

.header-logo .ja { width: 150px; }
.header-logo .en { width: 114px; }

@media (max-width: 768px) {
  #site-header {
    padding: 5px 20px 0 20px;
    position: absolute;
    top: 0; left: 0; right: 0;
    background: transparent;
  }
  .header-logo { gap: 18px; }
  .header-logo .ja { width: 130px; }
  .header-logo .en { width: 100px; }
}

/* ─── PC NAV ─── */
.pc-nav {
  display: flex;
  gap: 20px;
  list-style: none;
}

.pc-nav a {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #fff;
  font-weight: 400;
  position: relative;
  padding-bottom: 3px;
}

.pc-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.25s ease;
}

.pc-nav a:hover::after,
.pc-nav a.active::after {
  width: 100%;
}

/* ─── HAMBURGER ─── */
.hamburger-btn {
  display: none;
  position: relative;
  z-index: 300;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 768px) {
  .hamburger-btn {
    position: fixed;
    top: 7px;
    right: 20px;
    z-index: 300;
  }
}

@media (min-width: 769px) {
  .hamburger-btn {
    display: block;
    position: fixed;
    top: 14px;
    right: 30px;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  #site-header.pc-hamburger-visible .hamburger-btn,
  #site-header.menu-open .hamburger-btn,
  #site-header.menu-closing .hamburger-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

.hamburger-btn span {
  display: block;
  position: absolute;
  left: 7px;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transform-origin: center;
  transition:
    top 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease,
    background 0s linear;
}

.hamburger-btn span:nth-child(1) { top: 12px; }
.hamburger-btn span:nth-child(2) { top: 20px; }
.hamburger-btn span:nth-child(3) { top: 28px; }

#site-header.menu-open,
#site-header.menu-closing {
  z-index: 400;
}

#site-header.scrolled .hamburger-btn span {
  background: #111;
}

.hamburger-btn.is-open span,
.hamburger-btn.is-closing span,
#site-header.menu-open .hamburger-btn span,
#site-header.menu-closing .hamburger-btn span {
  background: #111 !important;
}

.hamburger-btn.is-open span:nth-child(1),
#site-header.menu-open .hamburger-btn span:nth-child(1) {
  top: 20px;
  transform: rotate(24deg) scaleX(1.55);
}

.hamburger-btn.is-open span:nth-child(2),
#site-header.menu-open .hamburger-btn span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.is-open span:nth-child(3),
#site-header.menu-open .hamburger-btn span:nth-child(3) {
  top: 20px;
  transform: rotate(-24deg) scaleX(1.55);
}

/* ─── RESPONSIVE（トップ専用パーツ） ─── */
@media (max-width: 768px) {
  .pc-nav { display: none; }
  .hamburger-btn { display: flex; }
}
