/* ================================
   🎨 STUDIO Pixel Hatch Header Style (v1.3)
   ================================ */

#custom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px; /* ← 高さ調整 */
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 999;
  transition: background 0.3s ease;
}

#custom-header h1 {
  font-family: 'Lato', sans-serif;
  font-size: 1.5rem; /* ← PC時タイトルサイズ */
  letter-spacing: 0.05em;
  color: #eb6100;
  margin: 0;
  text-transform: none;
  text-align: center;
}

@media screen and (max-width: 990px) {
  #custom-header {
    justify-content: center;
    padding-right: 80px; /* ← MENUボタン分のスペース */
    height: 75px;
  }
  #custom-header h1 { font-size: 1rem; }
}

/* PCナビ */
#custom-header #pc-nav { margin-left: auto; margin-right: 50px; }
#custom-header #pc-nav ul {
  display: flex; list-style: none; margin: 0; padding: 0;
}
#custom-header #pc-nav li { margin-left: 30px; }
#custom-header #pc-nav a {
  color: #333; font-weight: bold; text-decoration: none; position: relative;
}
#custom-header #pc-nav a::before {
  content: ""; position: absolute; bottom: -2px; left: 0; width: 0%; height: 2px;
  background: #eb6100; transition: width 0.3s ease;
}
#custom-header #pc-nav a:hover::before { width: 100%; }

/* ハンバーガー */
#custom-header .openbtn {
  position: absolute; top: 50%; transform: translateY(-50%);
  right: 20px; width: 60px; height: 60px; border-left: 2px solid #333;
  z-index: 1000; cursor: pointer; display: none;
}
#custom-header .openbtn span {
  display: block; position: absolute; height: 2px; background: #333; transition: all 0.4s;
}
#custom-header .openbtn span:nth-of-type(1) { width: 30%; top: 22px; left: 20px; opacity: 0; }
#custom-header .openbtn span:nth-of-type(2) { color: #333; top: 22px; left: 18px; font-size: 0.9rem; text-transform: uppercase; }
#custom-header .openbtn span:nth-of-type(3) { width: 30%; top: 35px; left: 20px; opacity: 0; }
#custom-header .openbtn.active span:nth-of-type(1),
#custom-header .openbtn.active span:nth-of-type(3) { opacity: 1; }
#custom-header .openbtn.active span:nth-of-type(1) { top: 28px; left: 30px; transform: translateY(6px) rotate(-45deg); }
#custom-header .openbtn.active span:nth-of-type(2) { opacity: 0; }
#custom-header .openbtn.active span:nth-of-type(3) { top: 40px; left: 30px; transform: translateY(-6px) rotate(45deg); }

/* モバイルメニュー */
#custom-header #g-nav {
  position: fixed; bottom: -120%; left: 0; width: 100%; height: 100vh;
  background: #eb6100; z-index: 999; transition: all 0.6s;
}
#custom-header #g-nav.panelactive { bottom: 0; }
#custom-header #g-nav ul {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  list-style: none; text-align: center;
}
#custom-header #g-nav li { margin: 15px 0; }
#custom-header #g-nav a {
  color: #fff; font-size: 1.2rem; font-weight: bold; text-transform: uppercase;
  text-decoration: none; letter-spacing: 0.1em;
}

/* レスポンシブ切替 */
@media screen and (max-width: 990px) {
  #custom-header #pc-nav { display: none; }
  #custom-header .openbtn { display: block; }
}