/* 全ページ共通のヘッダー（2026-10-05）。どのページでも同じロゴの大きさ・同じメニューを出す。 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgb(255 255 255 / .97);
  border-bottom: 1px solid #dfe5e8;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* 他のCSSの「header」全体への指定（幅・余白）を打ち消す */
header.site-header { width: auto; max-width: none; margin: 0; padding: 0; }
.site-header *, .site-header *::before, .site-header *::after { box-sizing: border-box; }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: #0a3159;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.site-header__brand img { display: block; width: 152px; height: auto; }
.site-header__brand span { padding-inline-start: 12px; border-inline-start: 1px solid #cad2d7; white-space: nowrap; }

.site-header__nav { flex: 1; display: flex; justify-content: center; }
.site-header__nav > ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.site-header__nav li { position: relative; list-style: none; }
.site-header__nav > ul > li > a,
.site-header__nav > ul > li > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #0a3159;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.site-header__nav > ul > li > button::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.site-header__nav > ul > li > a:hover,
.site-header__nav > ul > li > button:hover,
.site-header__nav > ul > li:focus-within > button,
.site-header__nav > ul > li.is-open > button { background: #eef5f4; color: #087b80; }
.site-header a:focus-visible, .site-header button:focus-visible, .site-header summary:focus-visible { outline: 3px solid #1f7072; outline-offset: 2px; }
.site-header__nav a[aria-current="page"],
.site-header__nav li.is-current > button { color: #087b80; box-shadow: inset 0 -3px 0 #087b80; border-radius: 0; }

.site-header__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 260px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid #d5dee2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgb(8 41 90 / .16);
  transform: translateX(-50%);
  visibility: hidden;
  opacity: 0;
  transition: opacity .15s ease, visibility 0s linear .15s;
}
/* 開くときは待たずに見える状態にする（Tabキーで中の項目へ進めるように） */
.site-header__nav li:hover > .site-header__menu,
.site-header__nav li:focus-within > .site-header__menu,
.site-header__nav li.is-open > .site-header__menu { visibility: visible; opacity: 1; transition-delay: 0s; }
.site-header__menu a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 6px;
  color: #0a3159;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.site-header__menu a small { color: #087b80; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.site-header__menu a:hover, .site-header__menu a:focus-visible, .site-header__menu a[aria-current="page"] { background: #eef5f4; color: #087b80; }
.site-header__menu .site-header__menu-sub { margin-top: 4px; border-top: 1px solid #e3e9ec; padding-top: 4px; }
.site-header__menu .site-header__menu-sub a { font-size: 14px; font-weight: 600; }

.site-header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.site-header__jobs,
.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.site-header__jobs { border: 1px solid #0a3159; color: #0a3159; background: #fff; }
.site-header__jobs:hover { background: #f1f5f8; }
.site-header__cta { background: #06a94f; color: #fff; }
.site-header__cta:hover { background: #058a41; color: #fff; }

/* スマホ・タブレット用のメニュー */
.site-header__mobile { display: none; position: relative; }
.site-header__mobile summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #c8d3d8;
  border-radius: 6px;
  background: #fff;
  color: #08295a;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.site-header__mobile summary::-webkit-details-marker { display: none; }
.site-header__mobile summary::before { content: "☰"; font-size: 17px; }
.site-header__mobile[open] summary::before { content: "×"; font-size: 20px; }
.site-header__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(300px, calc(100vw - 24px));
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #c8d3d8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgb(8 41 90 / .18);
}
.site-header__panel p { margin: 10px 12px 4px; color: #6a7a86; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.site-header__panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 5px;
  color: #08295a;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.site-header__panel a:hover, .site-header__panel a:focus-visible, .site-header__panel a[aria-current="page"] { background: #eaf4f2; color: #087b80; }
.site-header__panel .site-header__panel-cta { justify-content: center; margin-top: 8px; background: #06a94f; color: #fff; }
.site-header__panel .site-header__panel-cta:hover { background: #058a41; color: #fff; }
/* 求職者向けページ（/jobs/）のメニュー下部：2つ目の入口（求職者登録）は白地の枠線ボタン */
.site-header__panel .site-header__panel-cta--sub { background: #fff; color: #058a41; border: 1px solid #06a94f; }
.site-header__panel .site-header__panel-cta--sub:hover { background: #eaf4f2; color: #058a41; }

@media (max-width: 1180px) {
  .site-header__brand span { display: none; }
  .site-header__nav > ul > li > a, .site-header__nav > ul > li > button { padding: 0 10px; font-size: 14px; }
}
@media (max-width: 1000px) {
  .site-header__nav { display: none; }
  .site-header__actions { margin-left: auto; }
  .site-header__mobile { display: block; }
}
@media (max-width: 700px) {
  .site-header__inner { gap: 8px; min-height: 60px; padding: 0 12px; }
  .site-header__brand img { width: 126px; }
  .site-header__actions { gap: 6px; }
  .site-header__jobs, .site-header__cta { min-height: 40px; padding: 0 9px; font-size: 11px; }
}
@media (max-width: 700px) {
  .site-header__mobile summary { padding: 0; }
  .site-header__mobile summary span { display: none; }
}
@media (max-width: 420px) {
  .site-header__brand img { width: 108px; }
  .site-header__jobs, .site-header__cta { padding: 0 7px; font-size: 10.5px; }
}
@media (max-width: 340px) {
  .site-header__jobs { display: none; }
}

/* 以前の固定ヘッダー用に空けていた上の余白を詰める（コラムのページ） */
.site-header ~ main.pt-24 { padding-top: 2rem; }
html { scroll-padding-top: 84px; }

/* 画像中心のページ（トップ・採用など）：上の余白はヘッダーの下に移す */
body.map-shell { padding-top: 0; }
body.map-shell > header.site-header { margin-bottom: 24px; }
@media (max-width: 700px) {
  body.map-shell > header.site-header { margin-bottom: 12px; }
}
