/* 全ページ共通のヘッダー。各ページのCSSの後に読み込みます。 */
html { scrollbar-gutter: stable; }
.site-header, .game-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: min(920px, 100%);
  margin-inline: auto;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #dfe3e8;
}
.wordmark, .project-logo {
  color: #17191c;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  line-height: 1.45;
}
.project-logo > span { color: inherit; font-size: inherit; font-weight: inherit; }
.wordmark span, .project-logo small {
  display: block;
  margin-top: 4px;
  color: #606873;
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .1em;
}
/* 本文は広いレイアウトを維持し、ヘッダーだけHOMEの幅に合わせます。 */
.character-site { margin-block: 0; border: 0; }
.game-header { width: min(920px, calc(100% - 16px)); }
@media (min-width: 641px) and (max-width: 760px) {
  .game-header { width: calc(100% - 40px); }
}
.site-header nav, .game-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
.site-header nav a, .game-header nav a {
  padding-block: 5px;
  color: #17191c;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: .035em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover, .game-header nav a:hover,
.site-header nav a[aria-current="page"], .game-header nav a[aria-current="page"] {
  color: #264d73;
  border-color: #264d73;
  text-decoration: none;
}
.standalone-content .section-heading h1 { margin: 0; font-size: 1.5rem; }
@media (max-width: 640px) {
  .site-header, .game-header {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 16px 0 12px;
  }
  .game-header { width: calc(100% - 16px); }
}
@media print { .site-header, .game-header { width: 100%; } }
