/* ===== リセット・ベース ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Sawarabi+Mincho&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');

html,
body {
  margin: 0;
  padding: 0;
  background: #e0f2f1;
  min-height: 100dvh;
}

#app-root {
  font-family: 'Zen Maru Gothic', "UD デジタル 教科書体 NK-R", "UD Digital Kyokasho-tai NK-R", "Sawarabi Mincho", 'Noto Sans JP', sans-serif;
  min-height: 100dvh;
  background: linear-gradient(135deg, #e0f2f1 0%, #b2ebf2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 18px !important;
  color: #37474f !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden;
  font-size: 18px !important;
  line-height: 1.6 !important;
}

#app-root * {
  box-sizing: border-box;
}

#app-root p,
#app-root div,
#app-root span,
#app-root h1,
#app-root h2,
#app-root h3 {
  margin: 0;
  padding: 0;
}

/* ===== 画面切り替え ===== */
.screen {
  display: none;
  width: 100%;
  max-width: 800px;
  animation: fadeIn 0.4s ease;
}

.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  overflow: visible;
  padding: 18px;
  width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== カード ===== */
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  padding: 27px 45px 27px !important;
  /* 1.5rem 2.5rem 1.5rem */
  width: 100% !important;
  box-shadow: 0 12px 40px rgba(33, 150, 243, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px !important;
  /* 1.2rem */
  margin: auto 0;
  position: relative;
}

/* ===== タイトル画面 ===== */
.author-info {
  font-size: 15px !important;
  /* 0.85rem */
  color: #546e7a;
  font-weight: 700;
  margin-bottom: 36px !important;
  /* 2rem */
  text-align: center;
  line-height: 1.4;
}

.title-catchcopy {
  font-size: 20px !important;
  /* 1.1rem */
  color: #fb8c00;
  font-weight: 900;
  text-align: center;
  margin-bottom: 0;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.title-target {
  font-size: 27px !important;
  /* 1.5rem */
  color: #0277bd;
  font-weight: 700;
  text-align: center;
  margin-bottom: -5px !important;
  /* -0.3rem */
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.app-title {
  font-size: 81px !important;
  /* 4.5rem */
  font-weight: 900;
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 50%, #1565c0 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  margin-bottom: 45px !important;
  /* 2.5rem */
  filter: drop-shadow(2px 4px 6px rgba(13, 71, 161, 0.3));
  text-align: center;
  line-height: 1.1;
  animation: shine 3s linear infinite;
}

/* ===== ログイン画面用スタイル ===== */
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.login-input {
  width: 100%;
  padding: 15px 20px;
  border: 1.5px solid #b2ebf2;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s;
}

.login-input:focus {
  outline: none;
  border-color: #039be5;
  background: #fff;
  box-shadow: 0 0 10px rgba(3, 155, 229, 0.1);
}

.login-info {
  margin-top: 20px;
  font-size: 14px;
  color: #546e7a;
  line-height: 1.5;
}

.title-footer {
  margin-top: 45px !important;
  text-align: center;
  font-size: 14px;
  color: #546e7a;
  padding-bottom: 27px;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}



.subtitle {
  color: #1976d2;
  font-size: 27px !important;
  /* 1.5rem */
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 36px !important;
  /* 2rem */
}

/* ===== ボタン ===== */
.btn {
  width: 100% !important;
  padding: 18px 27px !important;
  border: none;
  border-radius: 16px;
  font-size: 20px !important;
  /* 1.1rem */
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}

.btn-main-text {
  font-size: 20px !important;
  /* 1.1rem */
  display: block;
}

.btn-sub-text {
  font-size: 20px !important;
  /* 1.1rem */
  font-weight: 500;
  display: block;
  opacity: 0.9;
  margin-top: 4px !important;
  /* 0.2rem */
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #29b6f6 0%, #039be5 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(41, 182, 246, 0.4);
}

/* ボタン群のラッパー */
.title-buttons {
  display: flex;
  flex-direction: column;
  gap: 32px !important;
  /* 1.8rem */
  width: 100% !important;
}

@media (hover: hover) {
  .btn-primary:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(41, 182, 246, 0.5);
  }
}

.btn-quiz {
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4);
}

@media (hover: hover) {
  .btn-quiz:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.5);
  }
}

.btn-primary:disabled {
  background: #cfd8dc;
  color: #90a4ae;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-test {
  background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(102, 187, 106, 0.4);
  /* margin-bottom: 0.8rem; 削除 */
}

@media (hover: hover) {
  .btn-test:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 187, 106, 0.5);
  }
}

.btn-test:disabled {
  background: #cfd8dc;
  color: #90a4ae;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ボタン内のサブテキスト */
.btn-sub-text {
  display: block;
  font-size: inherit;
  opacity: 0.9;
  margin-top: 5px !important;
  /* 0.3rem */
}

/* PCでは改行しない */
.mobile-br {
  display: none;
}

.btn-test-sub {
  background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
  font-size: 17px !important;
  /* 0.95rem */
  padding: 14px 22px !important;
  /* 0.8rem 1.2rem */
  border-radius: 12px;
  width: 100%;
  /* 横幅いっぱいに */
}

@media (hover: hover) {
  .btn-test-sub:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.5);
  }
}

/* メインテストボタンの文字色 */
#test-all-corrects-btn .btn-main-text {
  color: #ffd600;
  /* 鮮やかな黄色 */
}

.btn-test-sub:disabled {
  background: #cfd8dc;
  color: #90a4ae;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.test-sub-btns {
  display: flex;
  flex-direction: column;
  gap: 32px !important;
  /* 1.8rem */
  width: 100% !important;
}

.btn-quit,
.btn-abort {
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid #bdbdbd;
  color: #757575;
  box-shadow: none;
  /* 文字の大きさはベースの .btn (20px) を継承、
     パディングを調整してデザインを統一 */
  padding: 13px 22px !important;
}

@media (hover: hover) {

  .btn-quit:hover,
  .btn-abort:hover {
    background: #f5f5f5;
    border-color: #9e9e9e;
    color: #424242;
  }
}

.error-msg:not(:empty) {
  margin-top: 5px !important;
}

/* ===== 問題画面 ===== */
.quiz-card {
  align-items: stretch;
}

.question-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.2rem;
}

.question-label {
  background: linear-gradient(135deg, #4fc3f7, #81d4fa);
  color: #fff;
  font-size: 14px !important;
  /* 0.78rem */
  font-weight: 900;
  padding: 5px 16px !important;
  /* 0.25rem 0.9rem */
  border-radius: 20px;
  letter-spacing: 0.08em;
}

.question-text {
  font-size: 21px !important;
  /* 1.15rem */
  font-weight: 700;
  color: #01579b;
  line-height: 1.8;
  text-align: left;
  white-space: pre-wrap;
}

/* ===== 選択肢 ===== */
.choices {
  display: flex;
  flex-direction: column;
  gap: 13px !important;
  /* 0.7rem */
  margin-top: 7px !important;
  /* 0.4rem */
  margin-bottom: 22px !important;
  /* 1.2rem */
}

.choice-btn {
  padding: 15px 22px !important;
  /* 0.85rem 1.2rem */
  border: 2px solid rgba(100, 181, 246, 0.35);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  color: #01579b;
  font-size: 18px !important;
  /* 0.98rem */
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.5;
  text-decoration: none;
  white-space: pre-wrap;
}

.choice-btn:disabled {
  cursor: default;
}

@media (hover: hover) {
  .choice-btn:hover:not(:disabled) {
    background: rgba(100, 181, 246, 0.18);
    border-color: #4fc3f7;
    transform: translateX(4px);
  }
}

.choice-btn.correct {
  background: rgba(129, 199, 132, 0.2);
  border-color: #81c784;
  color: #2e7d32;
}

.choice-btn.wrong {
  background: rgba(200, 200, 200, 0.25);
  border-color: #bdbdbd;
  color: #757575;
}

.choice-btn.unknown {
  text-align: center;
}

/* ===== 結果画面 ===== */
.result-card {
  text-align: center;
  align-items: center;
}

.result-icon {
  font-size: 63px !important;
  /* 3.5rem */
  line-height: 1;
}

@keyframes popIn {
  from {
    transform: scale(0.4);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.result-label {
  font-size: 22px !important;
  /* 1.2rem */
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin-bottom: 9px !important;
  /* 0.5rem */
}

.answer-box {
  background: rgba(227, 242, 253, 0.65);
  border: 1.5px solid rgba(100, 181, 246, 0.45);
  border-radius: 16px;
  padding: 18px 27px !important;
  /* 1rem 1.5rem */
  width: 100% !important;
  margin-bottom: 18px !important;
  /* 1rem */
  text-align: left;
}

.answer-box-title {
  color: #0277bd;
  font-size: 14px !important;
  /* 0.78rem */
  font-weight: 700;
  margin-bottom: 7px !important;
  /* 0.4rem */
  letter-spacing: 0.06em;
}

.correct-answer-text {
  color: #01579b;
  font-size: 20px !important;
  /* 1.1rem */
  font-weight: 700;
  line-height: 1.6;
  white-space: pre-wrap;
  text-align: left;
}

.answer-text {
  color: #01579b;
  font-size: 17px !important;
  /* 0.95rem */
  line-height: 1.6;
  white-space: pre-wrap;
  text-align: left;
}

.chosen-text {
  color: #0277bd;
  font-size: 15px !important;
  /* 0.85rem */
  min-height: 22px !important;
  /* 1.2em */
}

/* ===== 結果ボタン ===== */
.result-btns {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

/* ===== 解説欄 ===== */
.explanation-box {
  background: rgba(255, 249, 196, 0.7);
  border: 1.5px solid rgba(255, 213, 79, 0.5);
  border-radius: 16px;
  padding: 18px 27px !important;
  /* 1rem 1.5rem */
  width: 100% !important;
  text-align: left;
  margin-bottom: 18px !important;
  /* 1rem */
}

.explanation-title {
  color: #b8860b;
  font-size: 14px !important;
  /* 0.78rem */
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 7px !important;
  /* 0.4rem */
}

.explanation-text {
  color: #5d4800;
  font-size: 17px !important;
  /* 0.95rem */
  line-height: 1.7;
  white-space: pre-wrap;
  text-align: left;
}

/* ===== 振り返り画面 ===== */
.review-row {
  display: flex;
  gap: 1.5rem !important;
  padding: 1.5rem !important;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.2rem !important;
  border: 1.5px solid transparent;
}

.review-row.correct {
  border-color: #81c784;
  background: rgba(232, 245, 233, 0.6);
}

.review-row.wrong {
  border-color: #bdbdbd;
  background: rgba(240, 240, 240, 0.6);
}

.review-status {
  font-size: 27px !important;
  /* 1.5rem */
  font-weight: 900;
  width: 36px !important;
  /* 2rem */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.correct .review-status {
  color: #2e7d32;
}

.wrong .review-status {
  color: #757575;
}

.review-content {
  flex: 1;
  font-size: 15px !important;
  /* 0.85rem */
}

.review-q {
  font-weight: 700;
  color: #37474f;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.review-ans {
  color: #546e7a;
  margin-top: 0.2rem;
}

.review-sel {
  font-weight: 700;
}

.wrong .review-sel {
  color: #757575;
}

.review-cor {
  font-weight: 700;
  color: #2e7d32;
}

.review-action {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.btn-more {
  background: #f8f9fa;
  border: 1.5px solid #0288d1;
  color: #0288d1;
  border-radius: 8px;
  padding: 8px 14px !important;
  font-size: 14px !important;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

@media (hover: hover) {
  .btn-more:hover {
    background: #0288d1;
    color: #fff;
  }
}

@media screen and (max-width: 480px) {
  .review-row {
    flex-direction: column;
    gap: 0.8rem !important;
  }

  .review-action {
    margin-left: 0;
    width: 100%;
  }

  .btn-more {
    width: 100%;
    text-align: center;
  }
}

/* ===== 問題一覧画面 ===== */
.list-card {
  align-items: stretch;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.question-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow-y: auto;
  padding-right: 5px;
  flex: 1;
}

.list-title {
  font-size: 24px !important;
  /* 1.3rem */
  font-weight: 900;
  color: #0288d1;
  text-align: center;
  letter-spacing: 0.05em;
}

.question-list {
  /* ここは上の .list-card の修正で包含されたため削除可能ですが、一応整合性を保ちます */
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.list-header {
  display: flex;
  align-items: center;
  padding: 0 0.5rem 0.5rem;
  border-bottom: 2px solid rgba(100, 181, 246, 0.35);
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: #01579b;
}

/* 列幅の統一（PC版：大きめに設定） */
.check-label {
  width: 6rem !important;
  /* 固定幅拡大 */
  text-align: center;
  flex-shrink: 0;
  font-size: 1.1rem !important;
  /* 文字を大きく */
  font-weight: 900;
}

.word-label {
  flex: 1;
  padding-left: 0.5rem;
}

.list-row {
  display: flex;
  align-items: stretch;
  /* 高さを揃える */
  margin-bottom: 0.6rem;
}

.check-cell {
  width: 6rem !important;
  /* ヘッダーと同じ幅 */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-check {
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
  accent-color: #0288d1;
}

.list-btn {
  flex: 1;
  padding: 10px 18px !important;
  border: 2px solid rgba(100, 181, 246, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  color: #01579b;
  font-size: 1.1rem !important;
  /* 文字を大きく */
  font-weight: 700;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}

@media (hover: hover) {
  .list-btn:hover {
    background: rgba(200, 200, 200, 0.18);
    border-color: #4fc3f7;
    transform: translateX(4px);
  }
}

/* ===== 学習画面 ===== */
.study-card {
  align-items: center;
}

.study-header {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: flex-start;
}

.study-qnum {
  background: linear-gradient(135deg, #4fc3f7, #81d4fa);
  color: #fff;
  font-size: 14px !important;
  /* 0.78rem */
  font-weight: 900;
  padding: 5px 16px !important;
  /* 0.25rem 0.9rem */
  border-radius: 20px;
  letter-spacing: 0.08em;
}

.study-word {
  font-size: 27px !important;
  /* 1.5rem */
  font-weight: 900;
  color: #0288d1;
  text-align: center;
  letter-spacing: 0.04em;
  width: 100% !important;
}

.study-exp-box {
  background: rgba(255, 249, 196, 0.7);
  border: 1.5px solid rgba(255, 213, 79, 0.5);
  border-radius: 16px;
  padding: 18px 27px !important;
  /* 1rem 1.5rem */
  text-align: left;
  margin-bottom: 18px !important;
  /* 1rem */
}

.study-exp-title {
  color: #b8860b;
  font-size: 0.78rem;
  /* 0.78rem */
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 7px !important;
  /* 0.4rem */
}

.study-exp-text {
  color: #5d4800;
  font-size: 0.95rem;
  /* 0.95rem */
  line-height: 1.7;
  white-space: pre-wrap;
  text-align: left;
}

.study-check-container {
  display: flex;
  justify-content: center;
  margin-bottom: 18px !important;
  /* 1rem */
}

.study-check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #01579b;
  cursor: pointer;
  padding: 9px 18px !important;
  /* 0.5rem 1rem */
  border: 2px solid rgba(100, 181, 246, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .study-check-label:hover {
    background: rgba(100, 181, 246, 0.15);
  }
}

/* ===== 結果発表画面 ===== */
.score-box {
  background: rgba(255, 255, 255, 0.45);
  border: 4px solid #81c784;
  border-radius: 20px;
  padding: 27px 36px !important;
  /* 1.5rem 2rem */
  margin: 27px 0 !important;
  /* 1.5rem */
  text-align: center;
  width: 100%;
}

.score-label {
  font-size: 0.9rem;
  /* 0.9rem */
  color: #2e7d32;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.score-value {
  font-size: 1.6rem;
  /* 1.6rem */
  color: #1b5e20;
  font-weight: 900;
  letter-spacing: 0.05em;
  white-space: nowrap;
  /* 改行防止 */
}

/* ===== クリアスタンプ ===== */
.clear-stamp {
  display: none;
  /* デフォルト非表示 */
  position: absolute;
  top: 15%;
  right: 10%;
  font-size: 1.6rem;
  /* 1.6rem */
  white-space: nowrap;
  font-weight: 900;
  color: #e53935;
  border: 5px double #e53935;
  border-radius: 50%;
  padding: 18px 9px !important;
  /* 1rem 0.5rem */
  transform: rotate(-15deg) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  text-align: center;
  width: 140px;
  height: 140px;
  line-height: 110px;
  /* 縦中央寄せ用 */
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
}

.clear-stamp.show {
  display: block;
  animation: stampAnim 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stampAnim {
  0% {
    transform: rotate(-15deg) scale(2);
    opacity: 0;
  }

  100% {
    transform: rotate(-15deg) scale(1);
    opacity: 0.8;
  }
}

/* ===== 進捗バー ===== */
.progress-container {
  width: 100%;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  margin-bottom: 27px !important;
  /* 1.5rem */
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #81c784);
  transition: width 0.3s ease;
  border-radius: 5px;
}

/* ===== フッター ===== */
.title-footer {
  width: 100%;
  text-align: center;
  padding: 14px;
  font-size: 0.85rem;
  color: #546e7a;
  font-weight: 700;
  margin-top: 2px;
  padding-bottom: 4px;
}


/* 語句一覧の「タイトル画面にもどる」のみ前にスペースを追加 */
#top-btn-list {
  margin-top: 18px !important;
  /* 1rem */
}

/* ===== 中断ボタン ===== */
.btn-abort {
  background: rgba(255, 255, 255, 0.85);
  color: #757575;
  border: 2px solid #bdbdbd;
  font-size: 0.85rem;
  /* 0.85rem */
  padding: 9px 22px !important;
  /* 0.5rem 1.2rem */
  margin-top: 9px !important;
  /* 0.5rem */
}

@media (hover: hover) {
  .btn-abort:hover {
    background: rgba(189, 189, 189, 0.15);
    color: #424242;
    border-color: #9e9e9e;
  }
}

/* ===== 確認モーダル ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 36px 45px !important;
  /* 2rem 2.5rem */
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  max-width: 320px;
  width: 90%;
}

.modal-text {
  font-size: 1.1rem;
  /* 1.1rem */
  font-weight: 700;
  color: #37474f;
  margin-bottom: 27px !important;
  /* 1.5rem */
}

.modal-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-modal-yes {
  background: #ef5350;
  color: #fff;
  padding: 11px 45px !important;
  /* 0.6rem 2.5rem */
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-modal-no {
  background: #42a5f5;
  color: #fff;
  padding: 11px 45px !important;
  /* 0.6rem 2.5rem */
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== スマホ対応 ===== */
@media screen and (max-width: 480px) {
  body {
    padding: 5px !important;
  }

  .screen.active {
    padding: 9px 5px !important;
  }

  .card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 14px 5px !important;
    gap: 14px !important;
    max-height: none !important;
    /* モバイルでは高さ制限を解除 */
  }

  .list-card {
    max-height: none !important;
    /* モバイルでは高さ制限を解除 */
  }

  .app-title {
    font-size: 58px !important;
    margin-bottom: 36px !important;
  }

  .author-info {
    font-size: 14px !important;
    margin-bottom: 8px !important;
    line-height: 1.3;
    padding: 0 8px;
  }

  .title-catchcopy {
    font-size: 18px !important;
    margin-bottom: 0;
  }

  .title-target {
    font-size: 23px !important;
    margin-bottom: 2px !important;
  }

  /* スマホでは改行する */
  .mobile-br {
    display: inline;
  }

  .subtitle {
    font-size: 20px !important;
    margin-bottom: 22px !important;
  }

  .title-buttons,
  .test-sub-btns {
    gap: 29px !important;
  }

  /* モバイル版のみ元のサイズを維持 */
  .check-label,
  .check-cell {
    width: 4rem !important;
    font-size: 0.75rem !important;
  }

  .list-btn {
    font-size: 1rem !important;
    padding: 8px 12px !important;
  }

  .btn {
    padding: 14px 18px !important;
    font-size: 18px !important;
  }

  .btn-main-text {
    font-size: 18px !important;
  }

  .btn-sub-text {
    font-size: 18px !important;
    margin-top: 2px !important;
  }

  /* 不要なパディングを削除して全画面を有効活用 */
  #app-root {
    padding-bottom: 20px !important;
  }

  /* クリアスタンプの調整 */
  .clear-stamp {
    width: 110px;
    height: 110px;
    line-height: 90px;
    font-size: 23px !important;
    top: 50px;
    right: 15px;
    padding: 14px 7px !important;
  }
}