/* ヘッダー */
.header-bar {
  overflow: visible;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background-color: #00796B;
  color: #fff;
  min-height: 60px;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header-bar.entry {
  background-color: #B7DEE8;
  color: #000000;
}

.header-bar.exit {
  background-color: #F2DCDB;
  color: #000000;
}

.header-bar .title {
  flex: 1;
  margin-left: 8px;
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo {
  height: 50px;
  object-fit: contain;
}

/* ハンバーガーアイコン */
.menu-btn {
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  color: #fff;
  margin-right: 8px;
}

/* ---------------------------
   スライドメニュー
---------------------------- */

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: #fff;
  border-left: 1px solid #00796B;
  box-shadow: -3px 0 8px rgba(0, 0, 0, 0.2);
  transform: translateX(110%);
  transition: transform 0.3s ease;
  z-index: 2000;
  padding: 16px;
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.side-menu.open {
  transform: translateX(0);
}

.menu-header {
  background: #00796B;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 16px;
}

.menu-section-title {
  margin-top: 16px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #444;
  list-style: none;
}

/* 言語選択トグルボタン */
.lang-toggle {
  width: 100%;
  background: #f0f4f3;
  color: #004d40;
  border: none;
  padding: 14px 16px;
  font-size: 1rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* 下向き矢印 */
.lang-toggle .arrow {
  font-size: 1rem;
  color: #004d40;
}

/* 言語リスト（最初は非表示） */
.lang-list {
  list-style: none;
  padding: 0 0 8px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: #ffffff;
}

/* 開いた状態 */
.lang-list.open {
  max-height: 300px;
  border-bottom: 1px solid #ddd;
}

/* 言語ボタン */
.lang-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #004D40;
}

.lang-btn:hover {
  background: #f5f5f5;
}

.lang-list .lang-btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  text-align: left;
  font-size: 1rem;
}

.lang-btn.selected {
  background: #A5D6AE;
  font-weight: bold;
}

/* 背景オーバーレイ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 1500;
}

.menu-overlay.show {
  display: block;
  background: rgba(0, 0, 0, 0.35);
}