/* ==========================================================================
   乾杯ゲームズ

   クリーム地に極太の黒枠と硬い影を落とすステッカー調。
   見出しは Dela Gothic One、本文は M PLUS Rounded 1c。
   Webフォントが読み込めない環境では標準の丸ゴシックに落ちる。
   ========================================================================== */

:root {
  --cream:   #FFF4DA;  /* 地 */
  --ink:     #2A1708;  /* 文字・枠線・影 */
  --muted:   #5A4330;  /* 補助文字 */
  --white:   #FFFFFF;  /* カード */
  --beer:    #FFC72C;  /* ビール。既定のアクセント */
  --danger:  #FF5A4E;  /* 失敗・削除 */
  --go:      #3CC47C;  /* 成功 */

  --accent: var(--beer);
  --page-bg: var(--cream);

  --line: 3px solid var(--ink);
  --drop: 4px 4px 0 var(--ink);
  --drop-lg: 5px 5px 0 var(--ink);

  --r-s: 14px;
  --r-m: 18px;
  --r-l: 24px;

  --tap: 56px;

  --display: 'Dela Gothic One', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --body: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN',
          'Yu Gothic UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  min-height: 100%;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

.app {
  min-height: 100dvh;
  max-width: 430px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

/* ホームだけは絵の都合で端まで使う */
.stage > .home { margin: 0 -20px; }

/* ---------- 上部バー ---------- */

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 14px 20px 16px;
  padding-bottom: 12px;
  border-bottom: 3px dashed var(--ink);
}
.topbar[hidden] { display: none; }

.topbar__back {
  font-size: 13px;
  font-weight: 800;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}
.topbar__back:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }

.topbar__title { font-family: var(--display); font-weight: 400; font-size: 16px; }

.topbar__meta {
  font-size: 12px;
  font-weight: 800;
  background: var(--ink);
  color: var(--beer);
  padding: 4px 10px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* ---------- ホーム ---------- */

.hero {
  position: relative;
  background: var(--beer);
  padding: 26px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.hero__bubbles { position: absolute; left: 0; top: 0; pointer-events: none; }

.hero__tag {
  position: relative;
  background: var(--ink);
  color: var(--beer);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.hero__art { position: relative; margin-top: 4px; max-width: 100%; height: auto; }

.hero__title {
  position: relative;
  margin: -4px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.1;
  color: var(--white);
  -webkit-text-stroke: 7px var(--ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink);
  letter-spacing: 0.02em;
  transform: rotate(-3deg);
  text-align: center;
}

.hero__note {
  position: relative;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  line-height: 1.6;
}

.hero__foam { position: relative; display: block; margin: 16px -24px 0; width: calc(100% + 48px); }

.home__body { padding: 4px 20px 0; display: flex; flex-direction: column; }

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 12px;
}
.section__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
}
.section__count {
  background: var(--ink);
  color: var(--beer);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- 絞り込みチップ ---------- */

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 20px 6px;
  margin: 0 -20px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 18px;
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s, background 0.12s, color 0.12s;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--beer);
  box-shadow: 0 0 0 var(--ink);
  transform: translate(3px, 3px);
}

/* ---------- ゲーム一覧 ---------- */

.menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 0 8px;
}

.menu__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: 42px auto;
  gap: 8px;
  min-height: 150px;
  padding: 12px;
  background: var(--white);
  border: var(--line);
  border-radius: 20px;
  box-shadow: var(--drop);
  text-align: left;
  color: var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
.menu__item:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }

.menu__kanji {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--tint);
  border: var(--line);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1;
  color: var(--ink);
}

.menu__kanji--wide { font-size: 16px; }
.menu__copy { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.menu__name { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.35; }
.menu__tagline { display: block; font-size: 11.5px; font-weight: 500; line-height: 1.5; color: var(--muted); margin-top: 3px; }

.menu__players {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  padding: 3px 6px;
  border-radius: 999px;
}

.menu__empty {
  grid-column: 1 / -1;
  padding: 32px 20px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--drop);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.game-group + .game-group { margin-top: 24px; }
.game-group__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.game-group__head h3 { font-size: 16px; font-weight: 800; }
.game-group__head > span { flex-shrink: 0; font-size: 11px; font-weight: 800; }
.game-group__description { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.prompt-mode { align-self: flex-start; max-width: 100%; margin-bottom: 12px; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 999px; background: white; font-size: 11px; font-weight: 800; line-height: 1.6; }

/* ---------- メニュー行 ---------- */

.home__links { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }

.home__links button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 18px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--drop);
  font-weight: 800;
  font-size: 16px;
  text-align: left;
  transition: transform 0.1s, box-shadow 0.1s;
}
.home__links button:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.home__links .row__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2.5px solid var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.home__links .row__label { flex-grow: 1; }
.home__links .row__arrow { flex-shrink: 0; }

/* ---------- 共有 ---------- */

.share { margin-top: 30px; }
.share__row {
  background: var(--beer);
  border: var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--drop-lg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: center;
}
.share__label {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
}
.share__buttons { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.share__btn {
  flex: 1 1 0;
  min-width: 90px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--ink);
  border: var(--line);
  border-radius: var(--r-s);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.08s;
}
.share__btn:active { transform: translate(2px, 2px); }
.share__btn--line { background: #06C755; }
.share__btn--x { background: var(--ink); color: var(--white); }
.share__btn[data-copy] { flex-basis: 100%; }

/* ---------- 脚注 ---------- */

.home__foot {
  margin-top: 28px;
  padding: 20px 4px 36px;
  border-top: 3px dashed var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--muted);
  white-space: pre-line;
}

/* ---------- ボタン ---------- */

.btn {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: 16px 18px;
  border: var(--line);
  border-radius: var(--r-m);
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--drop);
  transition: transform 0.08s, box-shadow 0.08s, opacity 0.15s;
}
.btn[hidden] { display: none; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: 0.4; cursor: default; }

.btn--go { background: var(--accent); color: var(--ink); }
.btn--sub { background: var(--white); color: var(--ink); }
.btn--quiet {
  background: none;
  border: 0;
  box-shadow: none;
  min-height: 0;
  padding: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn--quiet:active { transform: none; }

.lede { font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.85; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; min-height: 16px; }

/* ---------- パネル・入力 ---------- */

.panel {
  background: var(--white);
  border: var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--drop);
  padding: 20px 18px;
}

.field + .field { margin-top: 22px; }
.field__label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 11px; }
.field__hint { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 9px; line-height: 1.6; }

.counter {
  display: grid;
  grid-template-columns: var(--tap) 1fr var(--tap);
  align-items: center;
  gap: 10px;
}
.counter__btn {
  height: var(--tap);
  border: var(--line);
  border-radius: var(--r-s);
  background: var(--cream);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}
.counter__btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.counter__btn:disabled { opacity: 0.3; cursor: default; box-shadow: none; }
.counter__value {
  text-align: center;
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.counter__unit { font-family: var(--body); font-size: 15px; font-weight: 700; color: var(--muted); margin-left: 3px; }

.switch { display: flex; gap: 8px; }
.switch__opt {
  flex: 1;
  min-height: 48px;
  padding: 10px 6px;
  border: var(--line);
  border-radius: var(--r-s);
  background: var(--cream);
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s, background 0.12s, color 0.12s;
}
.switch__opt[aria-pressed="true"] {
  background: var(--ink);
  color: var(--beer);
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.input {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: var(--line);
  border-radius: var(--r-s);
  background: var(--cream);
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;   /* iOSで拡大されないよう16px以上 */
}
.input::placeholder { color: var(--muted); opacity: 0.6; font-weight: 500; }
.input:focus { outline: none; background: var(--white); box-shadow: inset 0 0 0 2px var(--accent); }

/* ---------- ゲームの入口 ---------- */

.intro { display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }

.intro__head { text-align: center; padding-top: 4px; }
.intro__kanji {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--accent);
  border: var(--line);
  box-shadow: var(--drop);
  font-family: var(--display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
  transform: rotate(-3deg);
}
.intro__name { font-family: var(--display); font-weight: 400; font-size: 26px; margin-top: 14px; line-height: 1.3; }
.intro__tagline { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 4px; }

.rules {
  background: var(--white);
  border: var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--drop);
  padding: 18px 20px;
}
.rules__head {
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 12px;
}
.rules__list {
  margin: 0;
  padding-left: 1.4em;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.85;
}
.rules__list li { margin-bottom: 7px; }
.rules__list li::marker { font-weight: 800; color: var(--ink); }

/* ---------- カードを回す ---------- */

.pass { flex: 1; display: flex; flex-direction: column; padding-bottom: 20px; }

.pass__who { text-align: center; font-family: var(--display); font-weight: 400; font-size: 24px; }
.pass__hint {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 6px;
  min-height: 1.7em;
}

.pass__stage {
  flex: 1;
  display: grid;
  place-items: center;
  perspective: 1400px;
  padding: 24px 0;
  min-height: 250px;
}

.card {
  position: relative;
  width: 100%;
  max-width: 244px;
  aspect-ratio: 5 / 7;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.35, 0.1, 0.2, 1);
}
.card.is-open { transform: rotateY(180deg); }

.card__side {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: var(--line);
  border-radius: 20px;
  box-shadow: var(--drop);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  text-align: center;
}

.card__side--back { background: var(--beer); }
.card__seal { font-family: var(--display); font-weight: 400; font-size: 44px; color: var(--ink); }
.card__prompt { font-size: 12px; font-weight: 800; }

.card__side--face { transform: rotateY(180deg); background: var(--white); }
.card__side--face.is-special { background: var(--accent); }

.card__main {
  font-family: var(--display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.card__main.is-long { font-size: 34px; }
.card__sub { font-size: 13px; font-weight: 800; color: var(--muted); }

/* ---------- 読み札 ---------- */

.slate {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--drop-lg);
  padding: 30px 22px;
  min-height: 230px;
  text-align: center;
}
.slate__body { font-size: 23px; font-weight: 800; line-height: 1.7; }
.slate__body--tight { font-size: 20px; }
.slate__answer {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.4;
  padding-top: 18px;
  border-top: 3px dashed var(--ink);
}
.slate__count { font-size: 12px; font-weight: 800; color: var(--muted); }

.slate--tappable {
  width: 100%;
  font-family: inherit;
  color: inherit;
  transition: transform 0.08s, box-shadow 0.08s;
}
.slate--tappable:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }

/* ---------- タイマー ---------- */

.clock { text-align: center; padding: 6px 0 2px; }
.clock__num {
  font-family: var(--display);
  font-weight: 400;
  font-size: 66px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.clock__num.is-urgent { color: var(--danger); }
.clock__rail {
  height: 14px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  margin-top: 14px;
  overflow: hidden;
}
.clock__fill {
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transition: transform 0.25s linear, background 0.25s;
}
.clock__fill.is-urgent { background: var(--danger); }

.verdict { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--danger); }

/* ---------- 結果の発表 ---------- */

.reveal {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  text-align: center;
  background: var(--white);
  border: var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--drop-lg);
  padding: 32px 22px;
  min-height: 240px;
}
.reveal--win { background: var(--beer); }
.reveal--lose { background: #FFE0DC; }

.reveal__detail { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.reveal--lose .reveal__detail { color: #A32A1E; }

.reveal__headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.45;
  word-break: break-word;
}
.reveal__lines { display: flex; flex-direction: column; gap: 4px; }
.reveal__line { font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.7; }

/* ---------- ルーレット・10秒 ---------- */

.roulette__window {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.6;
  min-height: 3.4em;
}
.roulette__window.is-spinning { color: var(--muted); }

.tensec__target {
  font-family: var(--display);
  font-weight: 400;
  font-size: 50px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tensec__target span { font-family: var(--body); font-size: 17px; font-weight: 800; margin-left: 4px; color: var(--muted); }

.tensec__pad { min-height: 300px; gap: 20px; }
.tensec__hidden {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 44px;
  color: var(--cream);
  letter-spacing: 0.08em;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}

.question__who { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.3; }

/* ---------- 自作お題の編集 ---------- */

.editor { display: flex; flex-direction: column; flex: 1; padding-bottom: 24px; }
.editor [data-form] .btn { margin-top: 18px; }

.setup__title { font-family: var(--display); font-weight: 400; font-size: 24px; }
.setup__desc { margin-top: 10px; margin-bottom: 22px; }

.editor__status { font-size: 12.5px; font-weight: 700; color: var(--muted); min-height: 1.6em; margin: 12px 2px 0; }
.editor__status.is-error { color: var(--danger); }

.editor__head { font-family: var(--display); font-weight: 400; font-size: 17px; margin: 24px 0 12px; }
.editor__head span { font-family: var(--body); font-size: 13px; font-weight: 700; color: var(--muted); }

.editor__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.editor__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-s);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 12px 14px;
}
.editor__text { font-size: 13.5px; font-weight: 700; line-height: 1.6; word-break: break-word; }
.editor__count { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.editor__del {
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
  background: var(--danger);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 11px;
}
.editor__empty {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.8;
  padding: 6px 2px;
}

.name-row { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; }
.name-row + .name-row { margin-top: 10px; }
.name-row__num {
  text-align: center;
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

/* ---------- 汎用ページ ---------- */

.page { display: flex; flex-direction: column; flex: 1; padding-bottom: 24px; }
.page__title { font-family: var(--display); font-weight: 400; font-size: 25px; margin-bottom: 14px; }
.page__block { margin-top: 24px; }
.page__head { font-family: var(--display); font-weight: 400; font-size: 17px; margin-bottom: 8px; }
.page__empty {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
  background: var(--white);
  border: var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--drop);
  padding: 22px 20px;
}

.pr {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  background: var(--ink);
  color: var(--beer);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}

.goods { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.goods__item {
  display: block;
  background: var(--white);
  border: var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--drop);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
}
.goods__name { display: block; font-size: 16px; font-weight: 800; }
.goods__note { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.75; margin-top: 5px; }
.goods__link { display: block; font-size: 12px; font-weight: 800; margin-top: 10px; }

.log { font-size: 13px; font-weight: 500; line-height: 1.8; }
.log dt { font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 10px; }
.log dd { margin-left: 0; color: var(--muted); }

/* ---------- アフィリエイトバナー ---------- */

.banner { flex-shrink: 0; padding: 0 20px; }
.banner[hidden] { display: none; }
.banner--top { padding-top: 14px; }
.banner--bottom { padding-bottom: 18px; padding-top: 6px; }

.banner__ad {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-s);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 11px 14px;
  text-decoration: none;
  color: inherit;
}
.banner__pr {
  font-size: 10px;
  font-weight: 800;
  background: var(--ink);
  color: var(--beer);
  border-radius: 999px;
  padding: 3px 7px;
  line-height: 1.3;
}
.banner__ad--house {
  width: 100%;
  grid-template-columns: 1fr auto;
  text-align: left;
  font-family: inherit;
  transition: transform 0.08s, box-shadow 0.08s;
}
.banner__ad--house:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.banner__go { font-size: 20px; font-weight: 800; color: var(--muted); line-height: 1; }

.banner .adsbygoogle { display: block; width: 100%; }

.banner__tag {
  position: relative;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-s);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 10px 10px 8px;
  overflow: hidden;
}
.banner__tag .banner__pr { position: absolute; top: 6px; left: 8px; z-index: 1; }
.banner__frame { display: block; width: 100%; border: 0; }

.banner__text { display: block; font-size: 13px; font-weight: 800; line-height: 1.45; }
.banner__sub { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 1px; }

/* ---------- アクセシビリティ ---------- */

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .menu__item { transform: none !important; }
}

@media (min-height: 780px) {
  .card { max-width: 270px; }
  .slate__body { font-size: 25px; }
}

/* Company identity in the operator attribution. */
.operator-brand{display:flex;align-items:center;gap:14px}
.operator-brand img{display:block;width:56px;height:auto;flex:none}

/* Kana word games */
.kana-range{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.kana-range .field + .field{margin-top:0}
.kana-range .input{width:100%;min-width:0}
.kana-prompt__letter{font-family:var(--font-display, 'Dela Gothic One'),sans-serif;font-size:clamp(80px,23vw,140px);line-height:1.25;margin:16px 0}
.kana-prompt__length{font-size:48px;font-weight:800;line-height:1.3;margin:10px 0}
.kana-prompt__length span{font-size:22px;margin-left:8px}
.kana-note{font-size:13px;line-height:1.8;color:var(--muted);margin:0}
