@charset "UTF-8";
/* ======================================================================
  言語切り替え（日本語 / English / 中文）
  英語版・中国語版はマスイチのルートで `npx gulp i18n-hachijoguchi` を実行して生成する
  （lib/hachijoguchi-i18n.js）
====================================================================== */
.p-langSwitch {
  position: absolute;
  top: 12px;
  right: 20px;
  z-index: 1001;
}
.p-langSwitch__list {
  display: flex;
  border: 1px solid wheat;
  border-radius: 999px;
  overflow: hidden;
}
.p-langSwitch__item + .p-langSwitch__item {
  border-left: 1px solid wheat;
}
a.p-langSwitch__link {
  display: block;
  min-width: 64px;
  padding: 4px 12px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: .05em;
  color: wheat;
  text-decoration: none;
  transition: background-color .3s, color .3s;
}
a.p-langSwitch__link:hover,
a.p-langSwitch__link.is-current {
  background-color: wheat;
  color: #222;
}
a.p-langSwitch__link.is-current {
  pointer-events: none;
}

@media screen and (max-width: 749px) {
  /* スマホ：ハンバーガーメニュー（右上）と重ならないよう左上に配置 */
  .p-langSwitch {
    top: 8px;
    right: auto;
    left: 10px;
  }
  a.p-langSwitch__link {
    min-width: 0;
    padding: 3px 8px;
    font-size: 10px;
  }
  .l-header {
    padding-top: 40px;
  }
  .drawer {
    top: 50px;
  }
}

/* 言語別の調整
---------------------------------------------------------------------- */
/* 中国語版：日本語フォントだと簡体字の字形が崩れるため中国語フォントを優先 */
html:lang(zh) body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
html:lang(zh) .mincho {
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
}
/* 英語版：長い単語で横にはみ出さないように */
html:lang(en) body {
  overflow-wrap: anywhere;
}
html:lang(en) .mincho {
  letter-spacing: .05em;
}
/* PCヘッダーのメニューは英語だと幅が足りないため広げる */
@media screen and (min-width: 750px) {
  html:lang(en) .l-header .inner ul {
    width: 330px;
    font-size: 13px;
  }
  html:lang(en) .l-header .inner ul li + li {
    margin-left: 12px;
  }
}
