/* ============================================
   header.css — グローバルヘッダー
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(20, 35, 60, 0.04);
}

/* 上部の情報バー（PCのみ） */
.header-info-bar {
  display: none;
  background-color: var(--color-main);
  color: #fff;
  font-size: 12px;
}

.header-info-bar__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 6px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.header-info-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-info-bar__badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cta);
  box-shadow: 0 0 0 0 rgba(243, 146, 0, 0.6);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(243, 146, 0, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(243, 146, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 146, 0, 0); }
}

/* メインバー */
.header-main {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* ロゴ */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo__sub {
  font-size: 11px;
  color: var(--color-cta);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-logo__name {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-main);
  letter-spacing: 0.01em;
}

.site-logo__branch {
  font-size: 12px;
  color: var(--color-text-sub);
  font-weight: 500;
  margin-left: 4px;
}

/* PC連絡先 */
.header-contact {
  display: none;
  align-items: center;
  gap: 14px;
}

.header-contact__phone-box {
  text-align: right;
  line-height: 1.3;
}

.header-contact__phone-label {
  font-size: 11px;
  color: var(--color-cta);
  font-weight: 700;
}

.header-contact__phone {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-main);
  font-feature-settings: "tnum";
}

.header-contact__phone .icon {
  color: var(--color-cta);
  width: 22px;
  height: 22px;
}

.header-cta {
  display: flex;
  gap: 10px;
}

.header-cta .btn {
  font-size: 13px;
  padding: 10px 18px;
  min-height: 44px;
  box-shadow: var(--shadow-sm);
}

/* モバイル右側 */
.header-mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-mobile-actions__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.header-mobile-actions__icon:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.header-mobile-actions__icon--phone { background: var(--color-cta); }
.header-mobile-actions__icon--line  { background: var(--color-line); }

.header-mobile-actions__icon .icon {
  width: 22px;
  height: 22px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-main);
  background: #fff;
}

.menu-toggle .icon {
  width: 24px;
  height: 24px;
}

.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open  { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

/* PC用ナビゲーション */
.header-nav {
  display: none;
  background: var(--color-sub-bg);
  border-top: 1px solid var(--color-border);
}

.header-nav__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 32px;
}

.header-nav ul {
  display: flex;
  gap: 28px;
}

.header-nav a {
  display: block;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 2px solid transparent;
}

.header-nav a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.header-nav a[aria-current="page"] {
  color: var(--color-main);
  font-weight: 700;
  border-bottom-color: var(--color-main);
}

/* モバイル用メニュー */
.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 16px 20px 20px;
  box-shadow: inset 0 4px 8px -4px rgba(20, 35, 60, 0.08);
}

.mobile-menu[data-open="true"] {
  display: block;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
}

.mobile-menu li + li {
  border-top: 1px solid var(--color-border);
}

.mobile-menu a {
  display: block;
  padding: 14px 4px;
  color: var(--color-text);
  font-weight: 500;
}

.mobile-menu a[aria-current="page"] {
  color: var(--color-main);
  font-weight: 700;
}

.mobile-menu__cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu__hours {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-sub);
  margin-bottom: 4px;
}

/* レスポンシブ：PC幅 */
@media (min-width: 768px) {
  .header-info-bar { display: block; }
  .header-main {
    padding: 16px 32px;
  }
  .site-logo__name { font-size: 22px; }
  .site-logo__sub { font-size: 12px; }
}

@media (min-width: 1024px) {
  .header-contact { display: flex; }
  .header-mobile-actions { display: none; }
  .header-nav { display: block; }
  .mobile-menu { display: none !important; }
}
