@charset "UTF-8";
/* ============================================================
   比叡山延暦寺 言語切替メニュー（右下・スクロール追随・選択式）
   language-select.css
   ============================================================ */

.language-select {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;                    /* ヘッダー(100)より下、右上固定ナビ(2)より上 */
  font-family: "Amiri", "Zen Old Mincho", "Noto Serif JP", serif;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
}

/* トリガーボタン */
.language-select__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  background: rgba(192, 175, 138, 0.92);   /* サイト基調色 #c0af8a */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  list-style: none;               /* ▶ マークを消す */
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease;
}
.language-select__btn::-webkit-details-marker { display: none; }
.language-select__btn:hover,
.language-select[open] .language-select__btn { background: rgba(192, 175, 138, 1); }
.language-select__btn:focus-visible { outline: 2px solid #c0af8a; outline-offset: 2px; }
.language-select__btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* 上向き矢印（開くと反転） */
.language-select__btn::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-left: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: translateY(2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.language-select[open] .language-select__btn::after { transform: translateY(-2px) rotate(225deg); }

/* メニュー（ボタンの上に開く） */
.language-select__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  min-width: 150px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border: 1px solid #c0af8a;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.language-select__menu a {
  display: block;
  padding: 10px 16px;
  color: #2f2f2f;
  text-decoration: none;
  white-space: nowrap;
}
.language-select__menu a:hover,
.language-select__menu a:focus-visible {
  background: #f3ede5;
  color: #2f2f2f;
  text-decoration: none;
  outline: none;
}

@media screen and (max-width: 767px) {
  .language-select {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    font-size: 12px;
  }
  .language-select__btn { height: 34px; }
}
