@charset "UTF-8";
/* ==========================
   Header（共通・下層ページ）
========================== */
.site-header {
  background: #778899;
  font-family: "Noto Serif JP", "Times New Roman", serif;
  position: relative;
  z-index: 1000;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  height: 60px;
  padding: 0 10px;
}
.single-post {
  padding-top: 0;
  margin-top: 0;
}
.single-post h1 {
  margin-top: 0;
}

/* ==========================
   ロゴ
========================== */
.site-logo,
.site-logo h1 {
  margin: 0;
}
.site-logo a {
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  height: 60px;
  font-weight: bold;
  color: #f0f8ff;
  text-shadow: 0 1px 3px black;
  text-decoration: none;
  white-space: nowrap;
}

/* ==========================
   右エリア（PC：言語＋ハンバーガー）
========================== */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ==========================
   メインナビ（PC）
========================== */
.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0 16px 0 24px;
}
.header-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  height: 60px;
  display: flex;
  align-items: center;
  color: #f0f8ff;
  text-shadow: 0 1px 3px black;
  white-space: nowrap;
}
.header-nav a:hover {
  color: #DDAED3;
}

/* モバイル専用の言語切替はPCで非表示 */
.lang-switcher--mobile {
  display: none;
}

/* ==========================
   Language Switcher（PC）
========================== */
.lang-switcher--pc ul,
header .lang-switcher ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap !important;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lang-switcher--pc li,
header .lang-switcher li {
  display: inline-flex !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.lang-switcher--pc a,
header .lang-switcher a {
  display: inline-flex;
  align-items: center;
}

/* ==========================
   ハンバーガーボタン（PC非表示）
========================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #f0f8ff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* ×アイコン（開いた状態） */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================
   オーバーレイ
========================== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-visible {
  opacity: 1;
}

/* ==========================
   TOPページ：旗の明るさ
========================== */
.home header .lang-switcher img,
.front-page header .lang-switcher img {
  filter: brightness(1.15);
}

/* ==========================
   レスポンシブ（〜960px）
========================== */
@media (max-width: 960px) {

  /* PC用ナビを隠す */
  .header-nav {
    display: none; /* JS で .is-open を付与して表示 */
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    background: #4a5c6a;
    z-index: 999;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
    padding: 80px 0 40px;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .header-nav.is-open {
    display: flex;
    transform: translateX(0);
  }

  .header-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .header-nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .header-nav ul li:first-child {
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .header-nav a {
    height: auto;
    padding: 16px 28px;
    font-size: 15px;
    width: 100%;
    letter-spacing: 0.1em;
  }
  .header-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: #DDAED3;
  }

  /* モバイル内の言語切替 */
  .lang-switcher--mobile {
    display: block;
    margin-top: 28px;
    padding: 0 28px;
    width: 100%;
  }
  .lang-switcher--mobile ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .lang-switcher--mobile li {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
  }
  .lang-switcher--mobile a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f0f8ff;
    text-decoration: none;
    font-size: 13px;
  }

  /* PC言語切替を隠す */
  .lang-switcher--pc {
    display: none;
  }

  /* オーバーレイ表示 */
  .nav-overlay {
    display: block;
    pointer-events: none;
  }
  .nav-overlay.is-visible {
    pointer-events: auto;
  }

  /* ハンバーガー表示 */
  .hamburger {
    display: flex;
  }

  /* ロゴ小さく */
  .site-logo a {
    font-size: 18px;
  }
}

/* ==========================
   さらに小さい（〜400px）
========================== */
@media (max-width: 400px) {
  .site-logo a {
    font-size: 15px;
  }
}