/* ======================
   共通 Header（PCベース）
====================== */
.site-header {
  width: 100%;
  height: 50px;
  background: #fff;
  position: fixed;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid #eee;
}

/* 中央コンテナ */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* ===== ロゴ ===== */
.header-logo {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0.5rem;
}

.header-logo img {
  width: 44px;
  height: auto;
  object-fit: contain;
}

/* ===== 中央エリア（タイトル＋PCナビ） ===== */
.header-center {
  display: flex;
  align-items: center;
  width: calc(100% - 50px - 120px); /* ロゴ50 + LINE120 */
  height: 100%;
}

/* ------------------------------
   h1（所在地＋屋号）
------------------------------ */
.site-title {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-left: 1rem;
  white-space: nowrap;
  font-family:
    "Yu Mincho",
    "游明朝",
    "YuMincho",
    "Hiragino Mincho ProN",
    "Noto Serif JP",
    serif;
}

.site-location {
  font-size: 1rem;
  color: #6f7f76;
  letter-spacing: 0.1em;
}

.site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #028760;
  letter-spacing: 0.2em;
}

/* ===== PCナビ ===== */
.pc-nav {
  width: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6em;
  margin-left: 1rem;
}

.pc-nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  padding: 0 0.2em;
  letter-spacing: 0.1rem;
}

/* 区切り線（2番目以降の前に縦線） */
.pc-nav a + a::before {
  content: "";
  position: absolute;
  left: -0.4em;
  top: 50%;
  width: 1px;
  height: 14px;
  background: #999;
  transform: translateY(-50%);
}

/* ===== LINE ボタン（右端） ===== */
.header-line {
  width: 120px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.line-btn {
  width: 114px;
  height: 40px;
  background-color: #06C755;
  color: #fff;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

/* PCではハンバーガー非表示 */
.hamburger {
  display: none !important;
}

/* SPナビはPCで非表示 */
.sp-nav {
  display: none !important;
}

/* Arkheデフォのトグル類を消す */
.header-menu-toggle,
.menu-toggle,
.mobile-menu-toggle {
  display: none !important;
}

/* ======================
   モバイル（スマホ向け）
====================== */

/* iPhone 17 対策含めて、幅ベースで素直に切り替え */
@media screen and (max-width: 768px) {

  /* PC用の右端LINEボタンは隠す */
  .header-line {
    display: none !important;
  }

  /* 中央エリアを真ん中に配置 */
  .header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 100%;
    display: flex;
    align-items: center;
  }

  /* h1 を横並びのまま少し小さめに */
  .site-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    justify-content: center;
  }

  .site-location {
    display: none;  }

  .site-name {
    font-size: 1.5rem;
  }
  
  /* PCナビは非表示 */
  .pc-nav {
    display: none !important;
  }

  /* ハンバーガー表示（右上） */
  .hamburger {
    width: 50px;
    height: 50px;
    position: absolute;
    right: 0;
    top: 0;
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
  }

  .hamburger span {
    width: 24px;
    height: 2px;
    background: #1E2B2A;
    display: block;
    transition: all 0.3s ease;
  }

  /* ハンバーガーアクティブ時のアニメーション */
  .hamburger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* SPナビ（下にドロップ） */
  .sp-nav {
    display: none !important;
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 9998;
    flex-direction: column;
  }

  /* JSで display: block が設定された時に flex で表示 */
  .sp-nav[style*="display: block"] {
    display: flex !important;
  }

  .sp-nav a {
    padding: 0.9em 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
  }

  .sp-nav a:hover {
    background-color: #f5f5f5;
  }

  /* SP用LINEボタン */
  .sp-line-btn {
    background-color: #06C755 !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 1em 0 !important;
    margin-top: 0.5em;
  }

  .sp-line-btn:hover {
    background-color: #05b34b !important;
  }
}