:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #1e1e1e;
  --muted: #64605a;
  --line: #d9d9d9;
  --panel: #ffffff;
  --accent: #116b6c;
  --accent-dark: #0c5556;
  --rust: #1e1e1e;
  --orange: #116b6c;
  --orange-dark: #0c5556;
  --sage: #7d936f;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
  --font-ui: "Noto Sans JP", "Noto Sans", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Segoe UI", sans-serif;
  --font-ui-rounded: "Gen Jyuu Gothic", "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", "Noto Sans JP", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-reader-body: "Avenir Next", "Nunito", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-reader-title: "Gen Jyuu Gothic", "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Avenir Next", "Noto Sans JP", "Noto Sans", sans-serif;
  --font-cjk-ui: "Noto Sans JP", "Noto Sans CJK JP", "Noto Sans CJK SC", "Noto Sans CJK TC", "Noto Sans KR", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

html[lang="zh-Hans"] {
  --font-ui: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-ui-rounded: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-reader-title: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-cjk-ui: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

html[lang="zh-Hant"] {
  --font-ui: "PingFang TC", "Noto Sans CJK TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-ui-rounded: "PingFang TC", "Noto Sans CJK TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-reader-title: "PingFang TC", "Noto Sans CJK TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-cjk-ui: "PingFang TC", "Noto Sans CJK TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

html[lang="ko"] {
  --font-ui: "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", sans-serif;
  --font-ui-rounded: "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", sans-serif;
  --font-reader-title: "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", sans-serif;
  --font-cjk-ui: "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", sans-serif;
}

html[lang="vi"] {
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ui-rounded: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-reader-title: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-cjk-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-ui);
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

.reader-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: start;
  height: 100vh;
  min-height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.level-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 48px;
  gap: 3px;
  width: max-content;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.level-tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 36px;
  padding: 3px 2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4c443d;
  font-family: var(--font-ui-rounded);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.level-tab[aria-selected="true"] {
  background: var(--accent);
  color: #ffffff;
}

.level-tab-age-label,
.level-tab-age-value {
  display: block;
  line-height: 1;
}

.level-tab-age-label {
  font-size: 11px;
  letter-spacing: 0;
}

.level-tab-age-value {
  font-size: 13px;
  font-weight: 800;
}

.page-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.page-count {
  min-width: 52px;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-ui-rounded);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.icon-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.icon-button.primary {
  border-color: var(--accent-dark);
  background: var(--accent);
  color: #ffffff;
}

.page-tools .icon-button {
  width: 34px;
  height: 34px;
}

.page-tools .icon-button svg {
  width: 19px;
  height: 19px;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button svg .filled-icon {
  fill: currentColor;
  stroke: none;
}

.reader-stage {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, var(--image-frame-width, 1fr));
  align-self: start;
  height: var(--stage-height, 100%);
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.text-pane {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.text-scroll {
  overflow-y: auto;
  min-height: 0;
  padding: clamp(18px, 3vh, 34px) clamp(18px, 2.6vw, 32px);
}

.paragraph-block {
  max-width: 720px;
}

.english-text {
  margin: 0;
  color: #28231d;
  font-family: var(--font-reader-body);
  font-weight: 650;
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.3;
}

.japanese-text {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #d7c9b0;
  color: #4c443d;
  font-family: var(--font-cjk-ui);
  font-size: clamp(14px, 1.08vw, 19px);
  line-height: 1.82;
}

.reader-stage.cover-page .text-pane {
  background: #ffffff;
}

.reader-stage.cover-page .text-scroll {
  display: flex;
  align-items: center;
}

.reader-stage.cover-page .paragraph-block {
  max-width: none;
  width: 100%;
  min-width: 0;
}

.reader-stage.cover-page .english-text {
  font-family: var(--font-reader-title);
  font-size: var(--cover-title-font-size, clamp(34px, 4.2vw, 64px));
  line-height: 1.08;
  font-weight: 900;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: manual;
  white-space: normal;
  text-wrap: balance;
}

.reader-stage.cover-page .japanese-text {
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
  color: #4c443d;
  font-family: var(--font-cjk-ui);
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.25;
  font-weight: 760;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.reader-stage.cover-page .image-pane {
  background: #ffffff;
}

.image-pane {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  padding: 0;
  background: #ffffff;
}

.image-pane img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  align-self: stretch;
  justify-self: stretch;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.image-pane.image-unavailable {
  place-items: center;
  background: #ffffff;
}

.image-pane.image-unavailable::after {
  content: "Image not available yet";
  max-width: 22em;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.narrow-width-notice {
  display: none;
}

/* ---- ページめくりの動き（2026-11-09） ----
   前の絵の写し（.image-ghost）を上に重ねて消し、新しい絵を少し横から出す。
   スワイプ中は絵と文が指に少しついてくる。 */
.reader-stage {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.reader-stage #storyImage,
.reader-stage .paragraph-block {
  transform: translateX(0);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reader-stage.is-dragging #storyImage,
.reader-stage.is-dragging .paragraph-block {
  transform: translateX(var(--drag-x, 0px));
  transition: none;
}

.image-pane .image-ghost {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  animation: ghost-out 300ms ease-out forwards;
}

.image-pane.image-loading #storyImage {
  filter: saturate(0.85) brightness(0.97);
  transition: filter 200ms ease;
}

.image-pane.image-loading::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-top-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  animation: reader-spin 800ms linear infinite;
}

.turn-in-next {
  animation: turn-in-next 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.turn-in-prev {
  animation: turn-in-prev 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.turn-in-fade {
  animation: turn-in-fade 260ms ease-out;
}

@keyframes turn-in-next {
  from {
    opacity: 0.55;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes turn-in-prev {
  from {
    opacity: 0.55;
    transform: translateX(-22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes turn-in-fade {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}

@keyframes ghost-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(calc(var(--turn-direction, 0) * -18px));
  }
}

@keyframes reader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 押したときの手応え（タップで反応が見えるように） */
button,
select,
.seek-bar {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.icon-button,
.autoplay-toggle,
.reader-back-button,
.level-tab {
  transition: transform 120ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.icon-button:not(:disabled):active,
.autoplay-toggle:active,
.reader-back-button:active,
.level-tab:active {
  transform: scale(0.92);
}

.icon-button:not(:disabled):active {
  background: #eef5f5;
}

.icon-button.primary:not(:disabled):active {
  background: var(--accent-dark);
}

@media (hover: hover) {
  .icon-button:not(:disabled):hover {
    border-color: var(--accent);
  }

  .level-tab:not([aria-selected="true"]):hover {
    background: #eef5f5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reader-stage #storyImage,
  .reader-stage .paragraph-block,
  .icon-button,
  .autoplay-toggle,
  .reader-back-button,
  .level-tab {
    transition: none;
  }

  .turn-in-next,
  .turn-in-prev,
  .turn-in-fade,
  .image-pane .image-ghost {
    animation: none;
  }
}

.audio-bar {
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  overflow: hidden;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.audio-row {
  display: grid;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.audio-row > * {
  min-width: 0;
}

.audio-row-primary {
  grid-template-columns: max-content minmax(0, 1fr) auto;
}

.audio-row-secondary {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  justify-content: stretch;
}

.reader-back-button {
  min-width: 74px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.reader-back-button:hover,
.reader-back-button:focus {
  border-color: var(--accent);
  outline: none;
}

.transport-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.language-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.language-control span {
  white-space: nowrap;
}

.translation-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: #373028;
  font-family: var(--font-cjk-ui);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.japanese-text[hidden] {
  display: none;
}

.seek-bar {
  width: 100%;
  min-width: 0;
  accent-color: var(--rust);
}

.time-readout {
  min-width: 76px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  text-align: right;
}

.autoplay-toggle {
  min-width: 54px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #4c443d;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.autoplay-toggle[aria-pressed="true"] {
  border-color: var(--orange-dark);
  background: var(--orange);
  color: #ffffff;
}

.footer-nav {
  display: contents;
}

@media (max-width: 860px) {
  .reader-shell {
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: start;
    max-height: none;
  }

  .image-pane {
    padding: 0;
  }

  .audio-bar {
    gap: 7px;
    padding: 8px 10px;
  }

  .audio-row-primary {
    grid-template-columns: max-content minmax(0, 1fr) auto;
  }

  .audio-row-secondary {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 7px;
  }

  .time-readout {
    min-width: 66px;
  }
}

@media (max-width: 700px) {
  .language-control {
    grid-template-columns: minmax(0, 1fr);
  }

  .language-control span {
    display: none;
  }

  .level-tabs {
    grid-auto-columns: 46px;
  }

  .page-count {
    min-width: 46px;
  }
}

@media (max-width: 520px) {
  .audio-bar {
    gap: 6px;
    padding: 8px 8px;
  }

  .audio-row {
    gap: 6px;
  }

  .transport-controls {
    gap: 5px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .icon-button svg {
    width: 19px;
    height: 19px;
  }

  .autoplay-toggle {
    min-width: 46px;
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .time-readout {
    min-width: 58px;
    font-size: 12px;
  }

  .translation-select {
    height: 30px;
    font-size: 12px;
  }

  .level-tabs {
    grid-auto-columns: 50px;
    gap: 2px;
    padding: 2px;
  }

  .level-tab {
    min-height: 34px;
    padding: 3px 2px;
  }

  .level-tab-age-label {
    font-size: 10px;
  }

  .level-tab-age-value {
    font-size: 12px;
  }

  .page-tools {
    gap: 3px;
  }

  .page-tools .icon-button {
    width: 30px;
    height: 30px;
  }

  .page-tools .icon-button svg {
    width: 17px;
    height: 17px;
  }

  .page-count {
    min-width: 38px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .audio-bar {
    padding: 7px 6px;
  }

  .audio-row {
    gap: 5px;
  }

  .transport-controls {
    gap: 4px;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .autoplay-toggle {
    min-width: 42px;
    padding: 0 6px;
  }

  .level-tabs {
    grid-auto-columns: 50px;
  }

  .page-tools .icon-button {
    width: 28px;
    height: 28px;
  }

  .page-count {
    min-width: 34px;
  }
}


@media (max-width: 520px) {
  body {
    background: #ffffff;
  }

  .reader-shell {
    display: none;
  }

  .narrow-width-notice {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
  }

  .narrow-width-card {
    display: grid;
    gap: 10px;
    max-width: 320px;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    text-align: center;
    box-shadow: var(--shadow);
  }

  .narrow-width-card strong {
    font-size: 20px;
    line-height: 1.35;
  }

  .narrow-width-card span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
  }
}

/* ---- 枠を固定する（2026-11-13） ----
   iPhone でダブルタップするとページが拡大され、端を引っ張るとページ全体がはね返って揺れていた。
   プレイヤーは画面いっぱいに固定し、拡大とはね返りを止める。 */
html,
body {
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  position: fixed;
  inset: 0;
}

/* ---- 操作バーを1段に（2026-11-13） ----
   以前は2段で、スマホの横向きでは画面の約3割を占めていた。
   広い画面では翻訳と年齢をそのまま並べ、狭い画面では「設定」ボタンの中に入れる。 */
.audio-bar.audio-bar--one-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  grid-template-rows: none;
  padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  overflow: visible;
}

.audio-bar--one-row .reader-back-button {
  flex: 0 0 auto;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
}

.audio-bar--one-row .transport-controls {
  flex: 0 0 auto;
  gap: 6px;
}

.audio-bar--one-row .icon-button {
  width: 40px;
  height: 40px;
}

.audio-bar--one-row .autoplay-toggle {
  min-width: 52px;
  height: 40px;
  padding: 0 10px;
}

.audio-bar--one-row .seek-bar {
  flex: 1 1 80px;
  min-width: 60px;
}

.audio-bar--one-row .time-readout {
  flex: 0 0 auto;
  min-width: 0;
  font-size: 12px;
}

.audio-bar--one-row .page-tools {
  flex: 0 0 auto;
  gap: 4px;
}

.audio-bar--one-row .page-tools .icon-button {
  width: 40px;
  height: 40px;
}

.audio-bar--one-row .page-count {
  min-width: 46px;
}

.reader-options {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-options .language-control {
  grid-template-columns: auto minmax(0, 1fr);
  width: auto;
}

.reader-options .language-control span {
  display: inline;
}

.reader-options .translation-select {
  width: 150px;
  height: 36px;
}

.level-tab {
  min-height: 34px;
  padding: 0 8px;
}

.level-tabs {
  grid-auto-columns: auto;
}

.level-tab-age-value {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.options-toggle {
  display: none;
}

.options-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  background: #eef5f5;
}

@media (max-width: 1099px) {
  .options-toggle {
    display: inline-grid;
    flex: 0 0 auto;
  }

  /* 設定ボタンを押すと、バーの上に小さな窓で出る */
  .reader-options {
    position: absolute;
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(100% + 8px);
    z-index: 20;
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translateY(6px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
  }

  .reader-options.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .reader-options .language-control {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .reader-options .translation-select {
    width: 220px;
    height: 40px;
  }

  .reader-options .level-tab {
    min-height: 40px;
    padding: 0 12px;
  }
}

@media (max-width: 700px) {
  .audio-bar--one-row {
    gap: 6px;
  }

  .audio-bar--one-row .time-readout {
    display: none;
  }

  .audio-bar--one-row .reader-back-button {
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reader-options {
    transition: none;
  }
}

/* ---- フォント（トップと同じ A案。表紙の題名とボタンに使う, 2026-11-13） ---- */
@font-face {
  font-family: "EPB Nunito";
  src: url("../../assets/fonts/epb-nunito-latin-20261113.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-024F, U+0300-0323, U+1E00-1EFF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AB, U+20AC;
}

@font-face {
  font-family: "EPB Zen Maru";
  src: url("../../assets/fonts/epb-zen-maru-gothic-700-20261113.woff2") format("woff2");
  font-weight: 400 1000;
  font-display: swap;
}

:root {
  --font-ui-rounded: "EPB Nunito", "EPB Zen Maru", "Hiragino Maru Gothic ProN", "Noto Sans JP", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-reader-title: "EPB Nunito", "EPB Zen Maru", "Hiragino Maru Gothic ProN", "Avenir Next", "Noto Sans JP", "Noto Sans", sans-serif;
}

.reader-back-button,
.autoplay-toggle,
.language-control,
.page-count {
  font-family: var(--font-ui-rounded);
}
