/* ===== グローバルリセット ===== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }

/* ===== 共通ヘッダー ===== */
header {
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 0 2rem;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.logo-link {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.header-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #3D7A5E;
  border-left: 2px solid #B0D0C0;
  padding-left: 1.25rem;
  white-space: nowrap;
}
.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-nav-link {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3D7A5E;
  border: 1px solid #B0D0C0;
  border-radius: 4px;
  padding: 3px 10px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.header-nav-link:hover,
.header-nav-primary:hover { background: #3D7A5E; color: #fff; }
.header-manda-link {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3D7A5E;
  text-decoration: none;
  border: 1px solid #B0D0C0;
  border-radius: 4px;
  padding: 3px 10px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.header-manda-link:hover { background: #3D7A5E; color: #fff; }
.lang-switcher {
  display: flex;
  align-items: center;
}
.lang-select {
  background: #fff;
  border: 1px solid #B0D0C0;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  color: #3D7A5E;
  outline: none;
  appearance: auto;
}
.lang-select:hover,
.lang-select:focus { background: #f0f7f4; border-color: #3D7A5E; }

@media (max-width: 640px) {
  header { padding: 0 1rem; }
  .header-inner { gap: 0.6rem; }
  .header-title { display: none; }
  .header-manda-link { display: none; }
  .header-nav { gap: 0.4rem; }
  .header-nav a[href*="manda.bz"] { display: none; }
  .logo-img { height: 36px; max-width: calc(100vw - 120px); }
}
