/* mdt-games.com の全部のページの土台（日英・字の折り返し・言葉の切り替え・近日公開の札）。元：web/mdt_games/drafts/common/base.css */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; line-height: 1.75; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }

/* 日本語の改行は文節で。英語は単語の途中で切らない */
html[lang="ja"] body { word-break: auto-phrase; line-break: strict; }
html[lang="en"] body { overflow-wrap: break-word; hyphens: manual; }

/* 日英：両方を書いておき、ページの言葉（html の lang）でない方を隠す */
html[lang="ja"] .en,
html[lang="en"] .ja { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 言葉の切り替えボタン */
.lang-switch { flex: none; display: inline-flex; border: 1px solid currentColor; border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.lang-switch a { all: unset; cursor: pointer; padding: 4px 10px; line-height: 1.4; }
.lang-switch a:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
html[lang="ja"] .lang-switch [data-lang="ja"],
html[lang="en"] .lang-switch [data-lang="en"] { background: currentColor; }
html[lang="ja"] .lang-switch [data-lang="ja"] span,
html[lang="en"] .lang-switch [data-lang="en"] span { color: var(--lang-on, #000); }

/* 近日公開のストアの札（ストアの公式の印は使わない。公開したら本物のバッジに替える） */
.store-soon { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 14px; border-radius: 10px; border: 1px solid currentColor; font-size: 13px; line-height: 1.25; text-decoration: none; opacity: .92; }
.store-soon svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.store-soon b { display: block; font-size: 15px; letter-spacing: .02em; }
.store-soon small { display: block; font-size: 11px; opacity: .8; }

