/* 2026-10 英語・中国語（簡体字）の切り替え（include/lang-switch.php / js/lang-switch.js）
   PCはヘッダー右下、ハンバーガーメニューが出る幅では MENU の左。色は現行サイトの茶・ベージュ・グリーン。 */
.header {
  position: relative;
}

.lang-switch {
  position: absolute;
  right: 16px;
  bottom: 8px;
  z-index: 10001;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.4;
}

.lang-switch__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 16px 0 12px;
  border: 1px solid #584634;
  border-radius: 999px;
  background: #584634;
  box-shadow: 0 3px 0 #3b2e22;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.lang-switch__btn:hover,
.lang-switch__btn[aria-expanded="true"] {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #3b2e22;
}

.lang-switch__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.lang-switch__panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 300px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(88, 70, 52, 0.2);
}
.lang-switch__panel[hidden] {
  display: none;
}

.lang-switch__label {
  margin-bottom: 8px;
  color: #846c53;
  font-size: 13px;
}

.lang-switch__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lang-switch__grid button {
  display: block;
  width: 100%;
  padding: 12px 8px;
  border: 0;
  border-radius: 14px;
  background: #faf0e6;
  color: #584634;
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s;
}
.lang-switch__grid button:hover {
  background: #f3e2d0;
}
.lang-switch__ja {
  grid-column: 1 / -1;
}
.lang-switch__ja button {
  padding: 9px 8px;
  background: #eef4e8;
  color: #4f6b2c;
  font-size: 15px;
}
.lang-switch__ja button:hover {
  background: #e1ecd6;
}
.lang-switch__grid button[aria-current="true"] {
  background: #584634;
  color: #fff;
  cursor: default;
}

.lang-switch__note {
  margin-top: 10px;
  color: #888;
  font-size: 11px;
}
.lang-switch__note + .lang-switch__note {
  margin-top: 2px;
}

@media screen and (max-width: 1024px) {
  .lang-switch {
    top: 11px;
    right: 50px;
    bottom: auto;
  }
  .lang-switch__btn {
    gap: 3px;
    height: 32px;
    padding: 0 9px 0 7px;
    font-size: 11px;
    letter-spacing: 0;
  }
  .lang-switch__icon {
    width: 17px;
    height: 17px;
  }
  .lang-switch__sub {
    display: none;
  }
  .lang-switch__panel {
    position: fixed;
    top: 66px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: 360px;
    margin-left: auto;
  }
}
@media screen and (max-width: 374px) {
  .lang-switch__text {
    display: none;
  }
  .lang-switch__btn {
    padding: 0 8px;
  }
}

/* 翻訳するとPCのナビが2行になるので、行間を詰めて切り替えボタンと重ならないようにする */
@media screen and (min-width: 1025px) {
  html.is-gtranslate #g-nav > ul > li > a,
  html.is-gtranslate #g-nav > ul > li > .dp {
    line-height: 1.3;
  }
}

/* 日本語の改行位置に合わせて折り返しを止めている箇所は、翻訳時だけ折り返す（スマホで横にはみ出すため） */
html.is-gtranslate .program__item,
html.is-gtranslate .blog-badge {
  white-space: normal;
}

/* Google翻訳の上部バー・ツールチップ・ハイライトを出さない */
body > .skiptranslate,
iframe.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}
html.is-gtranslate body {
  top: 0 !important;
}
html.is-gtranslate font {
  background: none !important;
  box-shadow: none !important;
}
