@charset "utf-8";
/* CSS Document */
:root{
  --header-h: 72px;
  --bg: #0a0a0a;
  --bg2:#000;
  --txt: #fff;
  --muted: rgba(255,255,255,.75);
  --line: rgba(255,255,255,.18);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --ease: cubic-bezier(.2,.8,.2,1);

  /* 重なり対策：十分高く */
  --z-header: 90000;
  --z-overlay: 95000;
  --z-drawer: 96000;
}

html { scroll-behavior: smooth; }
body { margin:0; }

/* ヘッダー固定 */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  height: var(--header-h);
  z-index: var(--z-header);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 0 rgba(255,255,255,.04) inset;
}

/* レイアウト */
.header-inner{
  height: 100%;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  padding: 0 10px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ロゴ */
.brand{
  justify-self: center;
  color: var(--txt);
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.brand:hover{ transform: translateY(-2px) scale(1.01); opacity: .95; text-decoration: none; color: #E95504; }

/* アイコンボタン */
.icon-btn{
  width: 48px; height: 48px;
  display: inline-grid;
  place-items: center;
  color: var(--txt);
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), opacity .25s var(--ease);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover{ transform: translateY(-2px); background: rgba(255,255,255,.06); color: #E95504; }
.icon-btn:active{ transform: translateY(0px) scale(.98); color: #E95504; }
.icon-btn:focus-visible{
  outline: 2px solid rgba(255,255,255,.65);
  outline-offset: 3px;
}
.icon-btn{
  /* 既存に追加 */
  line-height: 0;
}

.icon-btn svg{
  display: block;
  transform: translate(-0.1px, -0.1px);
}

/* ハンバーガー（等間隔） */
.hamburger-lines{
  width: 26px;
  height: 20px;
  position: relative;
  display: inline-block;

  /* 中央線 */
  background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9))
    center / 100% 2px no-repeat;
}
.hamburger-lines::before,
.hamburger-lines::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
}
.hamburger-lines::before{ top: 2px; }
.hamburger-lines::after{ bottom: 2px; }

/* PCナビ（モバイルは非表示） */
.desktop-nav{
  display: none;
  gap: 10px;
  justify-self: end;
  align-items: center;
}

/* PCナビのボタン（枠なし/白ベタ/黒文字） */
.nav-link{
  color: #000;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  border: none;
  background: #fff;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-link:hover{ transform: translateY(-2px); opacity: .92; text-decoration: none; color: #E95504; }
.nav-link:active{ transform: translateY(0) scale(.99); text-decoration: none; color: #E95504; }

/* overlay / drawer（重なり最優先） */
.menu-overlay{
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s var(--ease);
}

.mobile-drawer{
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: min(86vw, 360px);
  z-index: var(--z-drawer);
  background: linear-gradient(180deg, #0b0b0b 0%, #000 100%);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(-102%);
  transition: transform .28s var(--ease);
  padding: 14px;
}

.drawer-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 6px 4px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.drawer-title{
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .2px;
}
.drawer-links{
  display:flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 2px;
}

/* ドロワー内リンク（枠なし/白ベタ/黒文字） */
.drawer-link{
  color: #000;
  text-decoration: none;
  font-weight: 850;
  padding: 14px 12px;
  border-radius: 14px;
  border: none;
  background: #fff;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.drawer-link:hover{ transform: translateX(2px); opacity: .92; text-decoration: none; color: #E95504; }

/* OPEN状態 */
body.menu-open .menu-overlay{ opacity: 1; }
body.menu-open .mobile-drawer{ transform: translateX(0); }

/* PC幅 */
@media (min-width: 1024px){
  .header-inner{
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    padding: 0 18px;
  }
  .hamburger{ display:none; }
  .brand{ justify-self: start; font-size: 34px; }
  .desktop-nav{ display: inline-flex; }
}
