/* WPmini 自動翻訳：切り替えボタン */
.wpm-lang { position: fixed; z-index: 9990; font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif; letter-spacing: 0; }
.wpm-lang--bottom-right { right: 16px; bottom: calc(16px + var(--wpm-lang-offset, 0px)); }
.wpm-lang--bottom-left { left: 16px; bottom: calc(16px + var(--wpm-lang-offset, 0px)); }
.wpm-lang--top-right { right: 16px; top: calc(16px + var(--wpm-lang-offset-top, 0px)); }
.wpm-lang--top-left { left: 16px; top: calc(16px + var(--wpm-lang-offset-top, 0px)); }
.wpm-lang-btn { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 999px; background: #fff; color: #222; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.wpm-lang-btn:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .24); }
.wpm-lang-btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.wpm-lang-menu { display: none; position: absolute; bottom: calc(100% + 8px); right: 0; min-width: 180px; max-height: 60vh; overflow: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .2); }
.wpm-lang--top-right .wpm-lang-menu, .wpm-lang--top-left .wpm-lang-menu { bottom: auto; top: calc(100% + 8px); }
.wpm-lang--bottom-left .wpm-lang-menu, .wpm-lang--top-left .wpm-lang-menu { right: auto; left: 0; }
.wpm-lang.is-open .wpm-lang-menu { display: block; }
.wpm-lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: #222; text-decoration: none; }
.wpm-lang-menu a:hover { background: #f2f3f5; }
.wpm-lang-menu a.is-current { background: #eef2ff; font-weight: 700; }

/* Google 翻訳の上部バー・ツールチップ・ハイライトを非表示 */
body > .skiptranslate, iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight, .VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q { background: none !important; box-shadow: none !important; }
