/* ================================
   Header / Hamburger / Mobile Menu
================================ */

:root{
  --header-h: 64px; /* headerの実寸に合わせて微調整 */
}

/* Header */
.header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2000;

  background: rgba(10,12,16,.35);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.header.is-scrolled{
  background: rgba(10,12,16,.78);
  border-bottom-color: rgba(255,255,255,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.header__inner{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: var(--header-h);
}

/* logo */
.logo{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.logo__img{
  width: 190px;
  height: auto;
  display: block;
}

/* PC nav */
.nav--pc{
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav--pc a{
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 10px 10px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}

.nav--pc a:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
}

/* actions */
.header__actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__cta{
  padding: 10px 14px;
}

/* Hamburger */
.hamburger{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);

  display: none;             /* PCでは非表示 */
  flex-direction: column;    /* ←3本縦並び固定 */
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.hamburger__line{
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.85);
  display: block;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.hamburger.is-open .hamburger__line:nth-child(1){
  transform: translateY(6px) rotate(45deg);
}
.hamburger.is-open .hamburger__line:nth-child(2){
  opacity: 0;
}
.hamburger.is-open .hamburger__line:nth-child(3){
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu */
.mobileMenu{
  position: fixed;
  inset: 0;
  z-index: 4000;     /* headerより確実に上 */
  display: none;
  padding-top: 0; /* ★二重オフセット防止 */
}

.mobileMenu.is-open{
  display: block;
}

.mobileMenu__backdrop{
  position: absolute;
  inset: 0;
}

.mobileMenu__panel{
  position: absolute;
  right: 0;
  width: min(360px, 88vw);

  background: rgba(10,12,16,.98); /* ほぼ不透明 */
  border-left: 1px solid rgba(255,255,255,.10);
  border-top: 1px solid rgba(255,255,255,.10);
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;

  padding: 18px 16px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  transform: translateX(12px);
  animation: slideIn .2s ease forwards;
}

@keyframes slideIn{
  to{ transform: translateX(0); }
}

.mobileMenu__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mobileMenu__title{
  color: var(--muted);
  letter-spacing: .18em;
  font-size: 12px;
}

.mobileMenu__close{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.88);
  font-size: 22px;
  cursor: pointer;
}

.nav--sp{
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobileMenu__link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.mobileMenu__link:hover{
  background: rgba(255,255,255,.06);
}

.mobileMenu__link--cta{
  border-color: rgba(192,0,0,.35);
  background: rgba(192,0,0,.18);
}

/* Responsive */
@media (max-width: 920px){
  .nav--pc{ display: none; }
  .hamburger{ display: inline-flex; }
}

/* PCでは表示（デフォルト） */

/* SPではヘッダーの「お問い合わせ」を非表示 */
@media (max-width: 920px){
  .header__cta{
    display: none !important;
  }
}
