/* ─── KYM 共通レイアウト（ヘッダー/フッター） ───
   全ページで唯一のヘッダー/フッター見た目を定義する。
   ・各ページCSSの後に読み込む（最後勝ち）こと
   ・色はリテラル指定（ページごとに異なる :root 変数に依存しない）
   ・detail.css の素の header/footer・.nav・.footer-inner を上書きする */

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #d9dee7;
}

.site-header .header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-header .logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: 700;
  color: #17243a;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-header .logo span {
  display: block;
  font-size: 12px;
  color: #657080;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.site-header .nav {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  height: auto;
  font-size: 14px;
  font-weight: 400;
  color: #17243a;
}

.site-header .nav a {
  padding: 8px 0;
  color: #17243a;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-header .nav a:hover {
  color: #b6975b;
  border-bottom-color: #b6975b;
}

.site-header .nav a[aria-current="page"] {
  color: #b6975b;
  border-bottom-color: #b6975b;
}

.site-header .nav .nav-contact {
  padding: 9px 16px !important;
  background: #17243a;
  color: #ffffff !important;
  border-radius: 999px;
  border-bottom: none !important;
}

.site-header .nav .nav-contact:hover {
  background: #223452;
  border-bottom-color: transparent;
}

/* ===== フッター ===== */
.site-footer {
  background: #101927;
  color: #ffffff;
  padding: 38px 24px;
}

.site-footer .footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer .footer-inner > div:first-child {
  font-weight: 400;
}

.site-footer .copyright {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  margin-top: 4px;
}

.site-footer .footer-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.site-footer .footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  color: #ffffff;
}

.site-footer .footer-disclaimer {
  width: 100%;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.7;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== レスポンシブ（デスクトップナビは≤920pxで非表示→ハンバーガーに置換） ===== */
@media (max-width: 920px) {
  .site-header .nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header .header-inner {
    padding: 14px 18px;
  }
}
