/* ===== BLUESEEDS Site Header（全ページ共通） ===== */
:root {
  --sh-height: 48px;
  --sh-bg: #0d3a6e;
  --sh-bg-grad: linear-gradient(135deg, #0d3a6e 0%, #1e5fa8 100%);
  --sh-text: #e8f1fb;
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--sh-height);
  background: var(--sh-bg-grad);
  color: var(--sh-text);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  font-family: var(--font-jp, "Noto Sans JP", sans-serif);
}
.site-header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  gap: 18px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.site-header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: #fff;
}
.site-header__brand-text .shbt-top {
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  opacity: 0.85;
  letter-spacing: .08em;
}
.site-header__brand-text .shbt-main {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}
.site-header__brand:hover { text-decoration: none; opacity: .85; }
.site-header__brand-mark {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,.18);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
.site-header__nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.site-header__link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 6px;
  transition: all .15s;
}
.site-header__link:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
  text-decoration: none;
}
.site-header__link--active {
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: 700;
}
.site-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header__login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.site-header__login:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  text-decoration: none;
  color: #fff;
}
.site-header__login::before {
  content: '⌘';
  font-size: 13px;
  opacity: .8;
}

/* 学校をさがす（保護者向けCTA・ヘッダー右端） */
.site-header__find {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 16px;
  background: #fff;
  color: var(--sh-bg);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s;
  font-family: inherit;
}
.site-header__find:hover {
  background: #f0f8ff;
  color: var(--sh-bg);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.site-header__find--active {
  background: var(--accent, #4ec3d9);
  color: #fff;
}
.site-header__find::before {
  content: '🔎';
  font-size: 12px;
}

/* Hamburger menu button (mobile only) */
.site-header__menu-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  padding: 9px 7px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  margin-left: auto;
}
.site-header__menu-btn span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
  transform-origin: center;
}
.site-header__inner--menu-open .site-header__menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__inner--menu-open .site-header__menu-btn span:nth-child(2) { opacity: 0; }
.site-header__inner--menu-open .site-header__menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* page body offset to account for fixed header */
body.has-site-header { padding-top: var(--sh-height); }
body.has-site-header .sidebar { top: var(--sh-height) !important; height: calc(100vh - var(--sh-height)); }
body.has-site-header .topbar { top: var(--sh-height); }
body.has-site-header .mobile-menu-btn { top: calc(var(--sh-height) + 12px); }

@media (max-width: 768px) {
  .site-header__inner { padding: 0 10px; gap: 8px; }
  .site-header__brand { flex: 0 1 auto; min-width: 0; }
  .site-header__brand-text { min-width: 0; }
  .site-header__brand-text .shbt-top { display: none; }
  .site-header__brand-text .shbt-main { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-header__brand-mark { width: 22px; height: 22px; font-size: 9.5px; }

  .site-header__menu-btn { display: flex; }

  .site-header__nav {
    display: none;
    position: absolute;
    top: var(--sh-height);
    left: 0;
    right: 0;
    background: var(--sh-bg-grad);
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px 14px;
    box-shadow: 0 6px 14px rgba(0,0,0,.2);
    justify-content: flex-start;
    z-index: 1001;
  }
  .site-header__inner--menu-open .site-header__nav { display: flex; }
  .site-header__link {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    justify-content: flex-start;
    border-radius: 8px;
  }

  .site-header__right { flex: 0 0 auto; margin-left: 0; }
  .site-header__login { padding: 0 8px; font-size: 11px; height: 28px; }
  .site-header__login::before { display: none; }
  .site-header__find {
    padding: 0 12px;
    font-size: 11.5px;
    height: 30px;
    white-space: nowrap;
    line-height: 1;
  }
  .site-header__find::before { font-size: 10px; }
}
@media (max-width: 480px) {
  .site-header__brand { gap: 5px; }
  .site-header__brand-text .shbt-top { display: none; }
  .site-header__brand-text .shbt-main { font-size: 11.5px; }
  .site-header__find { padding: 0 10px; font-size: 11px; height: 28px; }
}
@media (max-width: 360px) {
  .site-header__brand-text .shbt-main { font-size: 10.5px; }
  .site-header__find { padding: 0 9px; font-size: 10.5px; }
}
