:root {
  --teal: #22c55e;
  --teal-dark: #16a34a;
  --teal-soft: #e8f4f4;
  --orange: #f57c00;
  --orange-soft: #fff3e0;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --white: #fff;
  --border: #c8e6e9;
  --shadow: 0 4px 20px rgba(13, 115, 119, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* SpeakBuddy wp-content.html 風: スマホ枠でアプリを載せる */
.recipe-device {
  width: 320px;
  max-width: calc(100vw - 24px);
  height: 640px;
  max-height: calc(100vh - 24px);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 40px;
  border: 6px solid #2a2a2a;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.45), inset 0 0 0 1.5px #444;
  margin: 8px auto;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 520px) {
  .recipe-device {
    width: 393px;
    max-width: 393px;
    height: 852px;
    max-height: calc(100vh - 40px);
    border-radius: 48px;
    border-width: 10px;
    border-color: #1a1a1a;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35), inset 0 0 0 2px #333;
    margin: 20px auto;
  }
}

.recipe-device-screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(165deg, var(--teal-soft) 0%, #f0faf9 45%, #fafafa 100%);
  position: relative;
}

/* CTA peek（フローティング CTA アイコン） / popover */
.recipe-cta-peek {
  position: absolute;
  right: 14px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
  animation: recipePeekIn 320ms cubic-bezier(0.22, 1, 0.36, 1), recipePeekBounce 4s ease-in-out infinite;
}
.recipe-cta-peek:hover { background: var(--teal-dark, #0f766e); }
.recipe-cta-peek:active { transform: scale(0.96); }
.recipe-cta-peek:focus-visible { outline: 3px solid rgba(34, 197, 94, 0.4); outline-offset: 2px; }
.recipe-cta-peek[hidden] { display: none; }
.recipe-cta-peek-icon { width: 22px; height: 22px; display: inline-flex; }
.recipe-cta-peek-icon svg { width: 100%; height: 100%; display: block; }
.recipe-cta-peek-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--teal);
}

@keyframes recipePeekIn {
  from { opacity: 0; transform: translateY(8px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes recipePeekBounce {
  0%, 80% { transform: translateY(0); }
  85% { transform: translateY(-6px); }
  90% { transform: translateY(0); }
  94% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .recipe-cta-peek { animation: none; }
}

.recipe-cta-popover-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  z-index: 26;
  animation: recipeCtaFade 160ms ease-out;
}
.recipe-cta-popover-backdrop[hidden] { display: none; }

.recipe-cta-popover {
  position: absolute;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 74px);
  left: 12px;
  z-index: 27;
  background: #fff;
  color: #0f172a;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform-origin: 90% 100%;
  animation: recipeCtaPop 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.recipe-cta-popover[hidden] { display: none; }
.recipe-cta-popover-inner { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.recipe-cta-popover-title { margin: 0; font-weight: 800; font-size: 0.95rem; line-height: 1.35; }
.recipe-cta-popover-desc { margin: 0; font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.recipe-cta-popover-actions { display: flex; gap: 8px; margin-top: 4px; flex-wrap: nowrap; }
.recipe-cta-store-badge {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 140ms ease, opacity 140ms ease;
}
.recipe-cta-store-badge:hover { opacity: 0.92; }
.recipe-cta-store-badge:active { transform: scale(0.98); }
.recipe-cta-store-img {
  display: block;
  width: 100%;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}
.recipe-cta-popover-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  line-height: 1;
  cursor: pointer;
}
.recipe-cta-popover-close:hover { background: rgba(15, 23, 42, 0.12); }

@keyframes recipeCtaPop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes recipeCtaFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.recipe-device .app-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.65rem 0.5rem;
}

.app-shell {
  max-width: 440px;
  margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
}

.recipe-device .whats-new {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.tagline {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.whats-new {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--teal);
  color: var(--white);
}

.section-icon {
  font-size: 1.2rem;
  opacity: 0.95;
}

.section-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-text {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 0.68rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-text:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-text:focus-visible {
  outline: 2px solid var(--orange-soft);
  outline-offset: 2px;
}

.filter-panel {
  padding: 0.85rem 1rem 0.5rem;
  background: var(--teal-soft);
  border-bottom: 1px solid var(--border);
}

.filter-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--teal-dark);
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  align-items: start;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: #fafcfb;
}

.news-item:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.news-thumb {
  width: 72px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--teal-soft);
}

.news-main {
  min-width: 0;
}

.news-title-ja {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.news-title {
  margin: 0 0 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.duration {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.duration::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border: 1.5px solid var(--text-muted);
  border-radius: 50%;
  box-sizing: border-box;
}

.difficulty {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

.difficulty span {
  width: 4px;
  height: 10px;
  border-radius: 1px;
  background: #e0e0e0;
}

.difficulty span.on {
  background: var(--orange);
}

.news-source {
  flex-basis: 100%;
  font-size: 0.65rem;
  color: var(--teal-dark);
  opacity: 0.85;
}

.btn-bookmark {
  border: none;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  align-self: start;
}

.btn-bookmark[aria-pressed="true"] {
  color: var(--orange);
}

.btn-bookmark:focus-visible {
  outline: 2px solid var(--orange);
  border-radius: 4px;
}

.bookmark-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal（端末枠 .recipe-device 内に収める） */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 40, 42, 0.48);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 0;
}

@media (min-width: 480px) {
  .recipe-device .modal-backdrop {
    align-items: center;
    padding: 0.65rem;
  }
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 440px;
  max-height: 96%;
  height: auto;
  min-height: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 480px) {
  .recipe-device .modal {
    border-radius: var(--radius);
    max-height: calc(100% - 1.3rem);
    max-width: 100%;
  }
}

/* 端末外で単体表示した場合のフォールバック（将来用） */
@media (min-width: 480px) {
  body:not(:has(.recipe-device)) .modal {
    max-height: 85vh;
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0.5rem 0.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.modal-title-ja {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.modal-header h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
}

.btn-icon {
  border: none;
  background: var(--teal-soft);
  color: var(--teal-dark);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-meta {
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.study-toolbar-dock {
  flex-shrink: 0;
  padding: 0.5rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.07);
}

.study-toolbar-dock[hidden] {
  display: none !important;
}

.modal-body {
  padding: 0 1rem 1rem;
  overflow-y: auto;
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text);
}

.modal-hero {
  margin: 0 0 0.75rem;
  padding: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--teal-soft, #e8f5f4);
}

.modal-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 12rem;
  object-fit: cover;
  vertical-align: middle;
}

.modal-photo-credit {
  margin: 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.65rem;
  line-height: 1.4;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.92);
}

.modal-body-lead {
  margin: 0;
}

.modal-body-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.modal-rights-note {
  margin: 0 0 0.5rem;
}

.modal-source-link-wrap {
  margin: 0;
}

.modal-source-link-wrap a {
  color: var(--teal-dark);
  word-break: break-all;
}

.btn-primary {
  flex: 1;
  border: none;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-secondary {
  flex: 1;
  border: 2px solid var(--teal);
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.load-error {
  padding: 1.5rem;
  text-align: center;
  color: #c62828;
  font-size: 0.85rem;
}

/* --- Modal scroll + study (smart study) --- */
.modal-scroll {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal--study {
  max-width: 100%;
}

.study-panel {
  position: relative;
  padding: 0 1rem 0.85rem;
}

.study-panel[hidden] {
  display: none !important;
}

.study-meta-line {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.study-voice-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted);
}

.study-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0;
  padding: 0.65rem;
  background: var(--teal-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.study-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.study-toolbar-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-right: 0.15rem;
}

.btn-study {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 100ms ease;
}

.btn-study:hover {
  background: var(--teal-soft);
  border-color: var(--teal);
}

.btn-study:active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal-dark);
  transform: scale(0.97);
}

.btn-study:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.btn-study[aria-pressed="true"] {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* 速度スライダー（トランスポートの上） */
.study-toolbar-speed {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.study-toolbar-speed .study-toolbar-label {
  flex-shrink: 0;
  margin-right: 0;
}

.study-toolbar-speed input[type="range"] {
  flex: 1;
  min-width: 4rem;
  height: 0.5rem;
  accent-color: var(--teal);
}

.study-rate-value {
  flex-shrink: 0;
  min-width: 2.75rem;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-dark);
}

/* 最下段: 巻き戻し・再生・一時停止・停止・早送り */
.study-toolbar-transport {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding-top: 0.15rem;
}

.btn-study-icon {
  border: none;
  background: transparent;
  padding: 0.2rem;
  border-radius: 50%;
  line-height: 0;
  color: inherit;
  cursor: pointer;
  transition: background 140ms ease, transform 100ms ease, box-shadow 140ms ease;
}

.btn-study-icon:hover {
  background: var(--teal-soft);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.18);
}

.btn-study-icon:active {
  background: var(--teal);
  transform: scale(0.92);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-study-icon:active img {
  filter: brightness(0) invert(1);
}

.btn-study-icon:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.btn-study-icon img {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  transition: filter 100ms ease;
}

.btn-quiz-open {
  margin-left: auto;
  padding: 0.45rem 0.85rem !important;
  font-size: 0.78rem !important;
  border-radius: var(--radius-sm) !important;
}

.study-article {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.study-article .study-hero {
  flex-shrink: 0;
}

.study-article .study-source-footer {
  margin-top: 0.5rem;
}

.study-sentence {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: #fafcfb;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.study-sentence.active {
  background: #fff4bf;
  border-color: #ffe082;
}

.study-sentence-en {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.study-sentence-ja {
  display: none;
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.study-article.show-ja .study-sentence-ja {
  display: block;
}

.study-quiz,
.study-result {
  margin-top: 1rem;
  padding: 0.85rem;
  background: var(--orange-soft);
  border-radius: var(--radius-sm);
  border: 1px solid #ffe0b2;
}

.study-quiz.hidden,
.study-result.hidden {
  display: none !important;
}

.study-quiz-form {
  margin: 0;
}

.study-quiz-q {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
}

.study-quiz-q legend {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  padding: 0;
  margin-bottom: 0.5rem;
}

.study-quiz-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  cursor: pointer;
}

.study-quiz-actions {
  margin-top: 0.5rem;
}

.study-result-score {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.study-btn-full {
  width: 100%;
}


/* --- Tap dictionary (Recipy-style sheet) --- */
.study-term {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245, 124, 0, 0.65);
  cursor: pointer;
  color: inherit;
}

.study-term:hover {
  background: rgba(255, 244, 191, 0.6);
  border-radius: 3px;
}

.study-term:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 3px;
}

.modal-main {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* .modal-scroll を包含ブロックにし、記事全文の下端ではなく「今見えている領域」にシートを固定 */
.dict-backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 0;
}

.dict-backdrop.hidden {
  display: none !important;
}

.dict-sheet {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.1rem 1.15rem 1.35rem;
  padding-top: 2.25rem;
  background: #1e1e1e;
  color: #f5f5f5;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

@media (min-width: 480px) {
  .dict-sheet {
    border-radius: 18px;
    margin-bottom: 1.5rem;
    max-height: 70vh;
  }
}

.dict-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.dict-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dict-close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.dict-headword {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dict-ipa {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Lucida Sans Unicode", "Arial Unicode MS", sans-serif;
}

.dict-ipa[hidden] {
  display: none !important;
}

.dict-ja {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

/* 実機スマホ: モーダルメタを非表示・ヘッダーをコンパクト化して本文領域を広げる */
@media (max-width: 519px) {
  .modal-meta {
    display: none;
  }
  .modal {
    position: relative;
  }
  .modal-header {
    padding: 0.45rem 2.25rem 0.4rem 0.7rem;
    border-bottom: none;
    gap: 0.4rem;
  }
  .modal-title-ja {
    font-size: 0.6rem;
    line-height: 1.3;
  }
  .modal-header h3 {
    font-size: 0.78rem;
    line-height: 1.3;
  }
  #closeModal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 6px;
    right: 6px;
    width: 1.7rem;
    height: 1.7rem;
    z-index: 5;
  }
}
