/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }



.site-header{
  background:#fff;
  border-bottom: 1px solid #e8e8e8;
  position: fixed;
  width: 100%;
  z-index: 9999;
  top: 0;
}

.header-inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: 5px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
}

/* ===== Logo ===== */
.header-logo{
  display:inline-flex;
  align-items:center;
  flex: 0 0 auto;
}
.header-logo img{
  height: 80px;        /* 画像に合わせて調整 */
  width: auto;
  display:block;
}

/* ===== Right Area ===== */
.header-right{
  flex: 1 1 auto;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}

/* top row (phone pill + hamburger on SP) */
.header-top{
  width: 100%;
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

/* ===== Phone pill ===== */
.phone-pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background:#E9EEF7;
  line-height: 1;
  white-space: nowrap;
}

.phone-icon{
  width: 18px;
  height: 18px;
  display:block;
}

.phone-text{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: 14px;
  color:#1a1a1a;
}

.phone-number{
  font-weight: 700;
  letter-spacing: 0.2px;
}
.phone-hours{
  font-weight: 600;
  color:#333;
}
.phone-sep{ color:#777; }

/* ===== Nav ===== */
.header-nav{
  display:flex;
  align-items:center;
  gap: 50px; /* 画像の間隔に近づける */
  font-size: 14px;
  font-weight: 600;
  color:#111;
}

.header-nav a{
  position:relative;
  padding: 6px 0;
}

.header-nav a:hover{
  opacity: .75;
}

.nav-cta{
  padding: 10px 16px !important;
  border-radius: 6px;
  background:#fff;
}
/* ===== Hamburger (SP) : base ===== */
.nav-toggle{
  display:none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background:#001381;
  padding: 8px 10px;
  cursor:pointer;
  margin-left: 20px;
  border: none;              /* 追加：枠なし */
  position: relative;        /* 追加：z-index有効に */
  z-index: 1002;             /* 追加：全画面メニューより前 */
}
.nav-toggle span{
  display:block;
  height: 2px;
  background:#fff;
  margin: 4px 0;
  transition: all .3s ease;  /* 追加：×アニメ用 */
}

/* ===== Responsive ===== */
@media (max-width: 1100px){
  .header-inner{
    padding: 5px 10px;
    align-items:flex-start;
  }

  .header-logo img{
    height: 40px;
  }

  .header-right{
    align-items:flex-end;
    gap: 10px;
  }

  .phone-pill{
    padding: 7px 12px;
  }

  /* PCナビはSPで隠す（ただし全画面用の固定スタイルは別で付与） */
  .header-nav{
    display:none;
  }

  .nav-toggle{
    display:inline-block;
  }
}

@media (max-width: 700px){
  .phone-pill { display: none; }
}

/* =========================
   SP 全画面メニュー
========================= */
@media (max-width: 1100px) {

  /* メニュー表示中は背景スクロール禁止 */
  body.menu-open {
    overflow: hidden;
  }

  /* 全画面メニュー本体（displayはここでflexにする） */
  .header-nav{
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;                 /* ← ここでflex化 */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
  }

  .header-nav.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header-nav a{
    font-size: 20px;
    font-weight: 600;
  }

  .header-nav .nav-cta{
    margin-top: 12px;
    padding: 12px 22px;
    border: 2px solid #111;
    border-radius: 6px;
  }

  /* ハンバーガー→×（is-open時） */
  .nav-toggle.is-open span:nth-child(1){
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle.is-open span:nth-child(2){
    opacity: 0;
  }
  .nav-toggle.is-open span:nth-child(3){
    transform: translateY(-6px) rotate(-45deg);
  }
}
