@charset "utf-8";

/* 言語切り替えスイッチ（JA / EN）
---------------------------------------------------------------------------*/
#lang-switch {
  order: 3;
  margin-left: auto;
  position: relative;
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .14em;
}
/* 白いつまみ（選択中の言語の下をスライド） */
#lang-switch::before {
  content: "";
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: 46px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
  transition: transform .35s cubic-bezier(.65,0,.35,1);
}
#lang-switch.is-en::before { transform: translateX(46px); }

#lang-switch a {
  position: relative;
  z-index: 1;
  display: block;
  width: 46px;
  padding: 8px 0 8px .14em;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  transition: color .35s ease;
}
#lang-switch a:hover { opacity: 1; color: #fff; }
#lang-switch a.active,
#lang-switch a.active:hover { color: #000; cursor: default; }
/* 切り替えアニメ中の文字色 */
#lang-switch.is-en a[lang="ja"],
#lang-switch:not(.is-en) a[lang="en"] { color: rgba(255,255,255,.6); }
#lang-switch.is-en a[lang="en"],
#lang-switch:not(.is-en) a[lang="ja"] { color: #000; }

@media screen and (max-width: 430px) {
  #lang-switch { font-size: 11px; }
  #lang-switch a, #lang-switch::before { width: 40px; }
  #lang-switch.is-en::before { transform: translateX(40px); }
}

/* 英語ページの文字組み */
html[lang="en"] body { letter-spacing: .01em; }
html[lang="en"] #new dt span { letter-spacing: 0; }

/* 英語は単語の途中で改行しない（表内） */
html[lang="en"] .ta1 th,
html[lang="en"] .ta1 td { word-break: normal; overflow-wrap: break-word; }
