/* ===== 郢晢ｽｪ郢ｧ・ｻ郢昴・繝ｨ郢晢ｽｻ郢晏生繝ｻ郢ｧ・ｹ ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=BIZ+UDMincho:wght@400;700&family=DotGothic16&family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Serif+JP:wght@400;700;900&family=Klee+One:wght@600&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');

@font-face {
  font-family: "PixelMplus";
  src: url("PixelMplus12-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "PixelMplus";
  src: url("PixelMplus12-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

html {
  font-size: clamp(13px, 3.5vw, 16px);
}

html,
body {
  margin: 0;
  padding: 0;
  background: #e0f2f1;
  min-height: 100dvh;
}

#app-root {
  font-family: "BIZ UDMincho", "UD Digi Kyokasho NK-B", "Klee One", "Noto Serif JP", serif;
  font-weight: 950;
  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: clamp(13px, 4.5vw, 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-settings.active {
  justify-content: center;
  height: 100dvh;
  overflow-y: auto;
}

#screen-settings .card {
  padding-top: 20px !important;
  margin: auto 0 !important;
}

/* ===== 騾包ｽｻ鬮ｱ・｢陋ｻ繝ｻ・願ｭ厄ｽｿ邵ｺ繝ｻ===== */
.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: clamp(14px, 4.5vw, 22px) !important;
  color: #546e7a;
  font-weight: 700;
  margin-bottom: 36px !important;
  text-align: center;
  line-height: 1.4;
}

.title-catchcopy {
  font-size: clamp(15px, 5vw, 24px) !important;
  /* 1.1rem */
  color: #fb8c00;
  font-weight: 950;
  text-align: center;
  margin-bottom: 0;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.title-target {
  font-size: clamp(15px, 5vw, 24.3px) !important;
  font-weight: 950;
  text-align: center;
  margin-bottom: -5px !important;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 50%, #1565c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-version {
  font-size: clamp(15px, 5vw, 24.3px) !important;
  font-weight: 950;
  text-align: center;
  width: 100%;
  margin-bottom: 40px !important;
  line-height: 1.4;
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 50%, #1565c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-version-sub {
  font-size: 0.9em;
  display: inline-block;
}


.app-title {
  font-size: clamp(48px, 10vw, 81px) !important;
  /* 4.5rem */
  font-weight: 950;
  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: 5px !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;
  /* 隴√・・ｭ蜉ｱ・堤ｸｺ霈費ｽ臥ｸｺ・ｫ陞滂ｽｪ邵ｺ蜑ｰ・ｦ荵昶雷郢ｧ荵昶螺郢ｧ竏壹・驍ｵ竏晏徐郢ｧ繝ｻ*/
  -webkit-text-stroke: 1.5px rgba(21, 101, 192, 0.2);
}

.app-title-simple {
  /* 郢ｧ・ｿ郢ｧ・､郢晏現ﾎ晉ｸｺ・ｮ陋溷唱謖ｨ郢晁ｼ斐°郢晢ｽｳ郢晏沺谺陞ｳ螢ｹ・定恆莨∝求邵ｺ蜉ｱﾂ繧曠郢昴・縺夂ｹｧ・ｿ郢晢ｽｫ隰ｨ蜥擾ｽｧ隨ｬ蠍瑚抄阮呻ｽ帝け蜻惹ｾ｡邵ｺ霈披雷郢ｧ繝ｻ*/
  font-size: clamp(38px, 8vw, 65px) !important;
  /* 81px * 0.8 */
  background: none !important;
  -webkit-text-fill-color: #1565c0 !important;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #78909c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  outline: none;
}

.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: clamp(14px, 4.5vw, 21px) !important;
  /* 1.5rem (scaled by 0.8: 1.2rem) */
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 36px !important;
  /* 2rem */
}

/* ===== 郢晄㈱縺｡郢晢ｽｳ ===== */
.btn {
  min-height: 60px;
  width: 100% !important;
  padding: 16px 27px !important;
  border: none;
  border-radius: 16px;
  font-size: clamp(15px, 5vw, 22px) !important;
  /* 1.1rem */
  font-weight: 950;
  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: 22px !important;
  /* 1.1rem */
  display: block;
  font-weight: 950;
  color: #fff;
}

.btn-sub-text {
  font-size: 22px !important;
  /* 1.1rem */
  font-weight: 950;
  display: block;
  opacity: 0.9;
  margin-top: 4px !important;
}

.btn-navy {
  background: #1a237e !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}

.btn-battle-next {
  margin-top: 15px;
  padding: 10px 30px !important;
  font-size: 18px !important;
  font-weight: 950;
  width: auto !important;
  min-width: 140px;
}



.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);
}

#quiz-expand-btn {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5em !important;
}

#quiz-expand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 14px !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 4px;
}

.is-open #quiz-expand-icon {
  transform: rotate(180deg);
}

@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);
  }
}

/* 闔会ｽ･闕ｳ荵昴・鬩･蟠趣ｽ､繝ｻ・ｨ・ｭ陞ｳ螢ｹ・定恆莨∝求郢晢ｽｻ隰ｨ・ｴ騾・・*/

#quiz-expand-btn:disabled {
  background: linear-gradient(135deg, #ffb74d 0%, #ffa726 100%);
  color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(255, 183, 77, 0.25);
  opacity: 0.7;
  cursor: not-allowed;
}

@media (hover: hover) {
  #quiz-expand-btn:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.45);
  }
}

.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, #ffb74d 0%, #ffa726 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 167, 38, 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(255, 167, 38, 0.5);
  }
}

/* 郢晢ｽ｡郢ｧ・､郢晢ｽｳ郢昴・縺帷ｹ晏現繝ｻ郢ｧ・ｿ郢晢ｽｳ邵ｺ・ｮ隴√・・ｭ闍鍋横郢ｧ蝣､蜊邵ｺ・ｫ陞溽判蟲ｩ */
#test-all-corrects-btn .btn-main-text {
  color: #fff;
}

.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: #ffffff !important;
  border: 2px solid #9e9e9e !important;
  color: #424242 !important;
  box-shadow: none;
  /* 隴√・・ｭ蜉ｱ繝ｻ陞滂ｽｧ邵ｺ髦ｪ・・ｸｺ・ｯ郢晏生繝ｻ郢ｧ・ｹ邵ｺ・ｮ .btn (20px) 郢ｧ蝣､・ｶ蜻惹ｾ｡邵ｲ繝ｻ
     郢昜ｻ｣繝ｧ郢ｧ・｣郢晢ｽｳ郢ｧ・ｰ郢ｧ螳夲ｽｪ・ｿ隰ｨ・ｴ邵ｺ蜉ｱ窶ｻ郢昴・縺倡ｹｧ・､郢晢ｽｳ郢ｧ蝣､・ｵ・ｱ闕ｳﾂ */
  padding: 10px 22px !important;
  margin: 10px auto 0;
  display: flex;
  .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: 950;
  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: 950;
  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;
  position: relative;
}

.result-icon {
  font-size: 50px !important;
  /* 郢晏現ﾎ溽ｹ晁ｼ斐≦郢晢ｽｼ郢ｧ雋橸ｽｰ莉｣・陝・ｸ奇ｼ・ｸｺ繝ｻ*/
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.all-correct-label {
  font-size: 24px !important;
  font-weight: 950;
  color: #fbc02d;
  display: none;
  /* JS邵ｺ・ｧ陋ｻ・ｶ陟包ｽ｡ */
}

@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;
}

.answer-text.no-pre-wrap {
  white-space: normal;
}

.chosen-text {
  color: #0277bd;
  font-size: 15px !important;
  /* 0.85rem */
}

/* 驕ｨ・ｺ邵ｺ・ｮ髫補悪・ｴ・ｰ邵ｺ・ｯ鬮ｱ讚・ｽ｡・ｨ驕会ｽｺ邵ｺ・ｫ邵ｺ蜷ｶ・・*/
.result-label:empty,
.result-icon:empty,
.chosen-text:empty,
.error-msg:empty,
.history-retention-msg:empty,
.quiz-exp-text:empty {
  display: none !important;
}

/* ===== SNS郢ｧ・ｷ郢ｧ・ｧ郢ｧ・｢郢晄㈱縺｡郢晢ｽｳ ===== */
.share-container {
  margin-top: 10px;
  margin-bottom: 30px;
  width: 100%;
}

.share-label {
  font-size: 14px !important;
  color: #546e7a;
  font-weight: 700;
  margin-bottom: 12px !important;
  text-align: center;
}

.share-btns {
  display: flex;
  gap: 12px;
  width: 100%;
}

.btn-share {
  flex: 1;
  padding: 12px 10px !important;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-share.line {
  background-color: #06c755;
  color: #fff;
}

@media (hover: hover) {
  .btn-share:hover {
    opacity: 0.85;
    transform: translateY(-2px);
  }
}

.result-btns {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.result-btns .btn-quit,
.result-btns .btn-abort {
  margin: 0 auto;
}

/* ===== 髫暦ｽ｣髫ｱ・ｬ隹ｺ繝ｻ===== */
.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;
}

/* 郢ｧ・ｯ郢ｧ・､郢ｧ・ｺ髫暦ｽ｣髫ｱ・ｬ邵ｺ・ｮ闕ｳﾂ髫包ｽｧ髯ｦ・ｨ驕会ｽｺ騾包ｽｨ郢ｧ・ｹ郢ｧ・ｿ郢ｧ・､郢晢ｽｫ */
.quiz-exp-item {
  margin-bottom: 0px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(100, 181, 246, 0.4);
}

.quiz-exp-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* .title-version 邵ｺ・ｮ鬩･蟠趣ｽ､繝ｻ・ｸ鬆大ｶ檎ｸｺ蟠趣ｽｨ・ｭ陞ｳ螢ｹ・定恆莨∝求繝ｻ繝ｻ71髯ｦ讙主ｲｼ邵ｲ諛翫・髫ｪ・ｭ陞ｳ螢ｹ・定怕・ｪ陷郁肩・ｼ繝ｻ*/

.title-description {
  font-size: 19px !important;
  color: #546e7a;
  line-height: 2.2;
  margin-bottom: 20px !important;
  font-weight: 700;
  text-align: center;
}

.quiz-exp-choice {
  font-size: 15px !important;
  font-weight: 700;
  color: #0277bd;
  margin-bottom: 4px !important;
  margin-top: 12px !important;
}

.quiz-exp-item:first-child .quiz-exp-choice {
  margin-top: 0 !important;
}

.quiz-exp-text {
  font-size: 17px !important;
  color: #01579b;
  line-height: 1.6;
  white-space: pre-wrap;
  /* 郢昴・縺冗ｹｧ・ｹ郢晉｣ｯﾎ夊崕繝ｻ繝ｻ邵ｺ・ｿ隰ｾ・ｹ髯ｦ蠕鯉ｽ定ｭ帷甥譟醍ｸｺ・ｫ邵ｺ蜷ｶ・・*/
}

/* ===== 隰厄ｽｯ郢ｧ鬘假ｽｿ譁撰ｽ企包ｽｻ鬮ｱ・｢ ===== */
.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: #e53935;
  -webkit-text-stroke: 1.5px #e53935;
}

.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;
  flex-shrink: 0;
}

.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;
  flex-shrink: 0;
  max-width: 500px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* 陋ｻ諤懶ｽｹ繝ｻ繝ｻ驍ｨ・ｱ闕ｳﾂ繝ｻ繝ｻC霑夊肩・ｼ螢ｼ・､・ｧ邵ｺ髦ｪ・∫ｸｺ・ｫ髫ｪ・ｭ陞ｳ螟ｲ・ｼ繝ｻ*/
.check-label {
  width: 6rem !important;
  /* 陜暦ｽｺ陞ｳ螢ｼ・ｹ繝ｻ蜒題棔・ｧ */
  text-align: center;
  flex-shrink: 0;
  font-size: 1.1rem !important;
  /* 隴√・・ｭ蜉ｱ・定棔・ｧ邵ｺ髦ｪ・･ */
  font-weight: 950;
}

.word-label {
  flex: 1;
  padding-left: 0.5rem;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  width: 100%;
  max-width: 500px;
  /* PC霑壼現縲帝ｫ滂ｽｷ邵ｺ蜷ｶ邃・ｸｺ・ｪ邵ｺ繝ｻ・育ｸｺ繝ｻ竊鍋ｸｺ霈費ｽ臥ｸｺ・ｫ驕擾ｽｭ邵ｺ繝ｻ*/
  margin-left: auto;
  margin-right: auto;
}

.check-cell {
  width: 6rem !important;
  /* 郢晏･繝｣郢敖郢晢ｽｼ邵ｺ・ｨ陷ｷ蠕個ｧ陝ｷ繝ｻ*/
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-check {
  width: 1.4rem !important;
  height: 1.4rem !important;
  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: 950;
  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 */
}

/* 陝・ｽｦ驗吝､蛻､鬮ｱ・｢邵ｺ・ｧ邵ｺ・ｯ邵ｲ竏ｫ・ｵ蜈域｣｡騾包ｽｻ鬮ｱ・｢邵ｺ・ｮ邵ｲ諷ｶhosen-text邵ｲ蜥ｲ蠍瑚冶侭繝ｻ闖ｴ蜥丞項郢ｧ螳夲ｽｿ・ｽ陷会｣ｰ邵ｺ蜉ｱ窶ｻ鬯ｮ蛟･・・ｹｧ雋樒ｲ狗ｹｧ荳岩雷郢ｧ繝ｻ*/
#screen-study .study-check-container {
  margin-bottom: 60px !important;
}

.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: 150px; /* 郢ｧ繧・夢邵ｺ・ｨ闕ｳ荵昶・ */
  right: 20px;
  font-size: 1.2rem;
  white-space: nowrap;
  font-weight: 950;
  color: #e53935;
  border: 4px solid #e53935;
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  width: 120px; /* 陝・ｻ｣・陞滂ｽｧ邵ｺ髦ｪ・･ */
  height: 120px;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);
  /* Flexbox邵ｺ・ｧ陞ｳ讙取倦邵ｺ・ｪ闕ｳ・ｭ陞滂ｽｮ陝・・笳・*/
  display: flex !important; /* display:none郢ｧ蜑・ｽｸ鬆大ｶ檎ｸｺ髦ｪ笘・ｹｧ荵昶螺郢ｧ繝ｻimportant */
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  line-height: normal !important; /* 髯ｦ遒・ｽｫ蛟･ﾎ懃ｹｧ・ｻ郢昴・繝ｨ */
  padding: 0 !important;
}

.clear-stamp.show {
  display: block;
  animation: stampAnim 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stampAnim {
  0% {
    transform: scale(2);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

/* ===== 鬨ｾ・ｲ隰仙干繝ｰ郢晢ｽｼ ===== */
.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,
#back-from-review-btn {
  margin-top: 18px !important;
  flex-shrink: 0;
}

/* ===== 闕ｳ・ｭ隴・ｽｭ郢晄㈱縺｡郢晢ｽｳ ===== */
.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;
  }
}


/* ===== 郢ｧ・ｹ郢晄ｧｭ繝ｻ陝・ｽｾ陟｢繝ｻ===== */
@media screen and (max-width: 480px) {
  body {
    padding: 5px !important;
  }

  #app-root {
    padding: 12px 8px !important;
  }

  #screen-title .btn,
  #screen-title .btn-main-text {
    font-size: clamp(12px, 4vw, 17.5px) !important;
  }

  #screen-settings label {
    font-size: 0.8em !important;
  }

  .screen.active {
    padding: 8px 4px !important;
  }

  #screen-settings.active {
    justify-content: center !important;
    height: auto !important;                /* 高さをコンテンツに合わせる */
    min-height: 100dvh !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 16px !important;
    gap: 14px !important;
    max-height: none !important;
    /* 郢晢ｽ｢郢晁・縺・ｹ晢ｽｫ邵ｺ・ｧ邵ｺ・ｯ鬯ｮ蛟･・・崕・ｶ鬮ｯ闊鯉ｽ帝囓・｣鬮ｯ・､ */
  }
  #screen-login .card {
    padding: 14px 20px !important;
  }


  .list-card {
    max-height: none !important;
    /* 郢晢ｽ｢郢晁・縺・ｹ晢ｽｫ邵ｺ・ｧ邵ｺ・ｯ鬯ｮ蛟･・・崕・ｶ鬮ｯ闊鯉ｽ帝囓・｣鬮ｯ・､ */
  }

  .app-title {
    font-size: 56px !important;
    font-weight: 950 !important;
    margin-bottom: 14px !important;
  }

  .app-title-simple {
    font-size: 44px !important;
    font-weight: 950 !important;
  }

  .author-info {
    font-size: 14px !important;
    margin-top: -12px !important;
    /* 郢晢ｽ｢郢晁・縺・ｹ晢ｽｫ霑壼現繝ｻ闖ｴ蜥丞項郢ｧ蜻茨ｽ･・ｵ鬮ｯ闊娯穐邵ｺ・ｧ陷醍ｿｫ・・*/
    margin-bottom: 30px !important;
    /* 8px邵ｺ荵晢ｽ・0px邵ｺ・ｸ隲｡・｡陞滂ｽｧ */
    line-height: 1.3;
    padding: 0 8px;
  }

  .title-catchcopy {
    font-size: 22px !important;
    font-weight: 950 !important;
    margin-bottom: 0;
  }

  .title-target {
  font-size: clamp(15px, 5vw, 24.3px) !important;
  font-weight: 950;
  text-align: center;
  margin-bottom: -5px !important;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 50%, #1565c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-version {
  font-size: clamp(15px, 5vw, 24.3px) !important;
  font-weight: 950;
  text-align: center;
  width: 100%;
  margin-bottom: 20px !important;
  line-height: 1.4;
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 50%, #1565c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-version-sub {
  font-size: 0.9em;
  display: inline-block;
}


  /* 郢ｧ・ｹ郢晄ｧｭ繝ｻ邵ｺ・ｧ邵ｺ・ｯ隰ｾ・ｹ髯ｦ蠕娯・郢ｧ繝ｻ*/
  .mobile-br {
    display: inline;
  }

  .subtitle {
    font-size: 14px !important;
    margin-bottom: 18px !important;
  }

  .title-buttons,
  .test-sub-btns {
    gap: 15px !important;
    /* 鬮｢鬥ｴ蝗育ｹｧ繧・ｽｰ莉｣・髫ｧ・ｰ郢ｧ竏夲ｽ・*/
  }

  /* 陝・ｽｦ驗吝・繝ｻ隰・唱・ｼ霈披ｳ邵ｺ・ｮ隴√・・ｭ蜉ｱ縺礼ｹｧ・､郢ｧ・ｺ郢ｧ蝣､・ｸ・ｮ陝・・*/
  .title-description {
    font-size: 15px !important;
    line-height: 1.8 !important;
  }

  /* 郢晁・繝ｻ郢ｧ・ｸ郢晢ｽｧ郢晢ｽｳ髯ｦ・ｨ驕会ｽｺ邵ｺ・ｮ郢晢ｽ｢郢晁・縺・ｹ晢ｽｫ髫ｱ・ｿ隰ｨ・ｴ */
  .title-version {
    font-size: 28px !important;
    /* 邵ｺ鄙ｫ笳・ｹｧ竏夲ｼ霑壼現竊楢惺譴ｧ謔・*/
    font-weight: 950 !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 60px !important;
    /* 闕ｳ荵昴・髫補悪・ｴ・ｰ邵ｺ・ｮ闖ｴ蜥丞項郢ｧ繧環繝ｻ繝ｻ邵ｺ蜉ｱ笳・ｭ崢鬩包ｽｩ陋滂ｽ､ */
    width: 100% !important;
    white-space: normal !important; /* 隰壼･・企恆譁撰ｼ郢ｧ螳夲ｽｨ・ｱ陷ｿ・ｯ邵ｺ蜉ｱ窶ｻ邵ｺ・ｯ邵ｺ・ｿ陷・ｽｺ邵ｺ驤ｴ莠溯ｱ・ｽ｢ */
    line-height: 1.3 !important;
  }

  /* モバイル：クリアスタンプをfixedでviewport右上に固定 */
  .clear-stamp {
    position: fixed !important;
    width: 100px;
    height: 100px;
    top: 60px !important;
    right: 15px;
  }

  /* 邵ｲ謔溘・陜咏距蝎ｪ繝ｻ・ｻ邵ｺ・ｦ郢ｧ阮呻ｿ邵ｺ繝ｻ窶ｻ邵ｺ謳ｾ・ｼ・ｽ邵ｲ髦ｪ竊醍ｸｺ・ｩ邵ｺ・ｮ陜蝓趣ｽ｡迹夲ｽｦ蜿･繝ｻ邵ｺ邇ｲ譫夊氛蜉ｱ・・.8陋滄亂竊馴し・ｮ陝・・*/
  .study-word,
  .question-word,
  .result-word,
  .history-word {
    font-size: 21.6px !important;
    /* 陷医・繝ｻ27px邵ｺ・ｮ0.8陋溘・*/
  }

  #settings-btn,
  #logout-btn {
    width: 48% !important;
    margin: 5px auto 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px !important;
    font-size: 0.9em !important;
  }

  

.title-version {
  font-size: clamp(15px, 5vw, 24.3px) !important;
  font-weight: 950;
  text-align: center;
  width: 100%;
  margin-bottom: 20px !important;
  line-height: 1.4;
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 50%, #1565c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-version-sub {
  font-size: 0.9em;
  display: inline-block;
}


  /* 關灘玄譫夂ｹｧ・ｯ郢ｧ・､郢ｧ・ｺ闕ｳﾂ髫包ｽｧ邵ｺ・ｫ郢ｧ繧・・郢ｧ荵昴・郢ｧ・ｿ郢晢ｽｳ邵ｺ・ｮ郢晢ｽ｢郢晁・縺・ｹ晢ｽｫ髫ｱ・ｿ隰ｨ・ｴ繝ｻ蝓滓椢陝・干縺礼ｹｧ・､郢ｧ・ｺ驕ｲ蟲ｨ繝ｻ郢晢ｽｭ郢ｧ・ｰ郢ｧ・｢郢ｧ・ｦ郢晏現竊定惺蠕個ｧ繝ｻ繝ｻ*/
  #back-to-list-btn-login,
  #back-to-list-btn-title {
    margin: 10px auto 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px !important;
    font-size: 0.9em !important;
  }

  /* 繝ｻ逍ｲ關ｱ郢ｧ・ｯ郢ｧ・､郢ｧ・ｺ陷・ｽｺ鬯伜ｾ後・郢ｧ・ｿ郢晢ｽｳ邵ｺ・ｮ鬯ｮ蛟･・・惺蛹ｻ・冗ｸｺ蟷｢・ｼ蛹ｻ縺・ｹｧ・､郢ｧ・ｳ郢晢ｽｳ陋ｻ繝ｻ・帝蔓繝ｻ繝ｻ繝ｻ繝ｻ*/
  #quiz-expand-btn {
    padding-top: 12.5px !important;
    padding-bottom: 12.5px !important;
  }

  /* 郢晢ｽ｢郢晁・縺・ｹ晢ｽｫ霑壼現繝ｻ邵ｺ・ｿ陷医・繝ｻ郢ｧ・ｵ郢ｧ・､郢ｧ・ｺ郢ｧ蝣､・ｶ・ｭ隰悶・*/
  .check-label,
  .check-cell {
    width: 4rem !important;
    font-size: 0.75rem !important;
  }

  .list-btn {
    font-size: 1rem !important;
    padding: 8px 12px !important;
  }

  .btn {
  min-height: 60px;
    /* padding removed */
    /* 11px邵ｺ荵晢ｽ・5px邵ｺ・ｸ隲｡・｡陞滂ｽｧ繝ｻ閧ｲ・ｴ繝ｻ.3陋滓誓・ｼ繝ｻ*/
    /* 郢昜ｻ｣繝ｧ郢ｧ・｣郢晢ｽｳ郢ｧ・ｰ郢ｧ雋樒ｎ郢ｧ繝ｻ遶翫・隰夲ｽｼ邵ｺ蜉ｱ・・ｸｺ蜷ｶ・･隲｡・｡陞滂ｽｧ */
    font-size: 18px !important;
    font-weight: 950 !important;
    /* 隴√・・ｭ蜉ｱ・定氣荳奇ｼ・ｸｺ繝ｻ*/
  }

  .btn-main-text {
    font-size: 22px !important;
    font-weight: 950 !important;
  }

  .btn-sub-text {
    font-size: 16px !important;
    font-weight: 950 !important;
    /* 郢ｧ・ｵ郢晄じ繝ｦ郢ｧ・ｭ郢ｧ・ｹ郢晏現・堤ｸｺ霈費ｽ臥ｸｺ・ｫ陝・ｸ奇ｼ・ｸｺ荳奇ｼ邵ｺ・ｦ隰ｾ・ｹ髯ｦ蠕鯉ｽ定ｬ壼､ｧ螳・*/
    margin-top: 2px !important;
  }

  /* 闕ｳ蟠趣ｽｦ竏壺・郢昜ｻ｣繝ｧ郢ｧ・｣郢晢ｽｳ郢ｧ・ｰ郢ｧ雋樒ｎ鬮ｯ・､邵ｺ蜉ｱ窶ｻ陷茨ｽｨ騾包ｽｻ鬮ｱ・｢郢ｧ蜻域剰怏・ｹ雎｢・ｻ騾包ｽｨ */
  #app-root {
    padding-bottom: 20px !important;
  }

  /* クリアスタンプ追加調整 */
  .clear-stamp {
    font-size: 21px !important;
    padding: 0 !important;
  }
}

/* ===== 繝ｻ・ｽ繝ｻ・ｽ繝ｻ・ｽ繝ｻ・ｽ繝ｻ・ｽ繝ｻ・ｽ ===== */
.btn-history {
  background: linear-gradient(135deg, #aed581 0%, #8bc34a 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 195, 74, 0.4);
}

@media (hover: hover) {
  .btn-history:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.5);
  }
}

.btn-history:disabled {
  background: #cfd8dc;
  color: #90a4ae;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem !important;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.8rem !important;
  border: 1.5px solid #dcedc8;
}

.history-date {
  font-size: 16px !important;
  color: #388e3c;
  font-weight: 700;
}

.history-score {
  font-size: 18px !important;
  color: #1b5e20;
  font-weight: 900;
}

.history-empty {
  text-align: center;
  color: #757575;
  padding: 20px;
  font-size: 16px !important;
}


.history-retention-msg {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  background: #f1f8e9;
  border: 1px solid #c5e1a5;
  color: #33691e;
  font-size: 15px !important;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px !important;
  display: none;
  /* 郢昴・繝ｵ郢ｧ・ｩ郢晢ｽｫ郢晉｣ｯ謦ｼ髯ｦ・ｨ驕会ｽｺ邵ｲ繧婀邵ｺ・ｧ陋ｻ・ｶ陟包ｽ｡ */
}

.history-retention-msg.warning {
  background: #fff8e1;
  border-color: #ffe082;
  color: #bf360c;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

.history-clear-label {
  display: inline-block;
  background: #ff9800;
  color: #fff;
  font-size: 12px !important;
  font-weight: 900;
  padding: 2px 8px !important;
  border-radius: 4px;
  margin-left: 10px !important;
  vertical-align: middle;
}

/* ===== 髫ｱ・ｭ邵ｺ・ｿ髴趣ｽｼ邵ｺ・ｿ闕ｳ・ｭ郢ｧ・ｹ郢晄鱒繝ｪ郢晢ｽｼ ===== */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(3, 155, 229, 0.2);
  border-top-color: #039be5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== 郢晁・繝ｨ郢晢ｽｫ騾包ｽｻ鬮ｱ・｢ ===== */
.battle-card {
  background: linear-gradient(to bottom, #1a237e, #0d47a1) !important;
  border: 4px solid #ffd54f !important;
  min-height: 80vh;
  justify-content: space-between !important;
  color: #fff !important;
}

.battle-boss-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
  min-height: 250px;
  position: relative;
}

.battle-result-announcement {
  position: absolute;
  top: 10px;
  padding: 10px 20px;
  font-size: 2rem;
  font-weight: 900;
  text-shadow: 2px 2px 0 #000;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
  display: none;
}

.battle-result-announcement.win {
  color: #ffeb3b;
  transform: scale(1);
  display: block;
}

.battle-result-announcement.lose {
  color: #cfd8dc;
  transform: scale(1);
  display: block;
}

.battle-boss-container img {
  max-width: 90%;
  max-height: 35vh;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
  animation: none;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.battle-message-window {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #ffd54f;
  border-radius: 12px;
  padding: 12px 24px !important;
  min-height: 160px;
  max-height: 260px;
  overflow-y: hidden;
  text-align: left;
  font-family: 'Sawarabi Mincho', serif;
  font-size: 0.99rem;
  line-height: 1.6;
  margin-top: 25px !important;
  margin-bottom: 20px;
  color: #333;
  position: relative;
}

.battle-orb-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  margin-bottom: 25px;
}

.orb-animation {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #ffd54f);
  box-shadow: 0 0 20px #ffd54f;
  animation: pulse-orb 1.5s ease-in-out infinite;
}

@keyframes pulse-orb {
  0% {
    transform: scale(1);
    box-shadow: 0 0 15px #ffd54f;
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 30px #ffd54f;
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 15px #ffd54f;
  }
}

#battle-orb-text {
  font-weight: 900;
  font-size: 1.2rem;
  color: #ffd54f;
  text-shadow: 0 0 10px rgba(255, 213, 79, 0.5);
  height: 1.8rem;
  line-height: 1.8rem;
  margin: 0;
  overflow: hidden;
}

#test-clear-guide {
  background: #ffffff;
  border: 3px solid #81d4fa;
  /* 雎鯉ｽｴ豼ｶ・ｲ隴ｫ・ｰ */
  border-radius: 12px;
  padding: 15px 20px !important;
  margin: 15px 0 20px !important;
  font-size: 16px !important;
  color: #37474f;
  line-height: 1.5;
  text-align: left;
  display: none;
}

/* 陷肴刋鬚ｨ郢晢ｽ｡郢昴・縺晉ｹ晢ｽｼ郢ｧ・ｸ髯ｦ・ｨ驕会ｽｺ郢ｧ・ｨ郢晢ｽｪ郢ｧ・｢ */
.battle-result-announcement {
  font-size: 2.5rem !important;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  display: none;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.battle-result-announcement.win {
  color: #ffeb3b;
  /* 鬩･鬘檎横邵ｺ・｣邵ｺ・ｽ邵ｺ繝ｻ・ｻ繝ｻ迚｡ */
  display: block;
}

.battle-result-announcement.lose {
  color: #90a4ae;
  /* 郢ｧ・ｰ郢晢ｽｬ郢晢ｽｼ */
  display: block;
}

/* 郢晢ｽｯ郢晢ｽｼ郢晏ｳｨ縺檎ｹ晢ｽｼ郢晄じ繝ｻ豼ｶ・ｲ髫ｪ・ｭ陞ｳ繝ｻ*/
/* 陷茨ｽｨ邵ｺ・ｦ邵ｺ・ｫ陷茨ｽｱ鬨ｾ螢ｹ繝ｻ陷育甥・ｽ・ｩ郢ｧ・｢郢昜ｹ斟鍋ｹ晢ｽｼ郢ｧ・ｷ郢晢ｽｧ郢晢ｽｳ */
.orb-animation {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  animation: pulse-orb 1.5s ease-in-out infinite;
}

/* 鬩ｫ繝ｻ・ｼ螟雁ｹｻ驍会ｽｻ */
.orb-copper {
  background: radial-gradient(circle at 30% 30%, #e57373, #a1887f);
  box-shadow: 0 0 20px #a1887f;
}

/* 鬩ｫﾂ繝ｻ螟先ｩｿ豼ｶ・ｲ */
.orb-silver {
  background: radial-gradient(circle at 30% 30%, #f5f5f5, #9e9e9e);
  box-shadow: 0 0 20px #9e9e9e;
}

/* 鬩･謇假ｽｼ螟絶横豼ｶ・ｲ */
.orb-gold {
  background: radial-gradient(circle at 30% 30%, #fff176, #ffd54f);
  box-shadow: 0 0 20px #ffd54f;
}

/* 郢晏干ﾎ帷ｹ昶・繝ｪ繝ｻ螟ょ項邵ｺ・｣邵ｺ・ｽ邵ｺ繝ｻ讖ｿ豼ｶ・ｲ */
.orb-platinum {
  background: radial-gradient(circle at 30% 30%, #ffffff, #e0e0e0);
  box-shadow: 0 0 25px #ffffff;
}

/* 郢晄ｺ倥○郢晢ｽｪ郢晢ｽｫ繝ｻ螢ｽ・ｰ・ｴ豼ｶ・ｲ邵ｺ蠕個ｰ邵ｺ・｣邵ｺ貊・ｩｿ豼ｶ・ｲ */
.orb-mithril {
  background: radial-gradient(circle at 30% 30%, #e1f5fe, #b0bec5);
  box-shadow: 0 0 25px #81d4fa;
}

/* 郢ｧ・ｪ郢晢ｽｪ郢昜ｸ莞晉ｹｧ・ｳ郢晢ｽｳ繝ｻ螢ｽ・ｰ・ｴ豼ｶ・ｲ */
.orb-orichalcum {
  background: radial-gradient(circle at 30% 30%, #b2ebf2, #4dd0e1);
  box-shadow: 0 0 30px #00bcd4;
}
/* ===== 郢晁・繝ｨ郢晢ｽｫ郢晢ｽ｢郢晢ｽｼ郢晁爆I陋ｻ・ｷ隴・ｽｰ繝ｻ閧ｲ・ｵ・ｱ陷ｷ蛹ｻ繝ｵ郢晢ｽｬ郢晢ｽｼ郢晢｣ｰ繝ｻ繝ｻ===== */
#screen-battle.active {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.battle-frame {
    background: #1a237e !important;
    border: 4px solid #ffd54f !important;
    border-radius: 20px !important;
    padding: 20px 20px 40px !important;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    color: #ffffff !important;
}

#battle-message-text {
    font-size: 1.09rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

#battle-result-header {
    font-size: 1.6rem !important;
    font-weight: 950 !important;
    margin-bottom: 8px !important;
    text-align: center !important;
    display: block !important;
}

.battle-win-text { color: #03a9f4 !important; }
.battle-lose-text { color: #0d47a1 !important; } /* 雎ｼ繝ｻ・樣ｫｱ螳夂横邵ｺ・ｫ陞溽判蟲ｩ */

.battle-orb-container {
    margin-top: 30px !important; /* 郢ｧ・ｪ郢晢ｽｼ郢晄じ繝ｻ闕ｳ鄙ｫ竊楢氣莉｣・郢ｧ・ｹ郢晏｣ｹ繝ｻ郢ｧ・ｹ */
}

.btn-vermillion {
    background-color: #e64a19 !important; /* 隴幢ｽｱ豼ｶ・ｲ */
    color: white !important;
    border: none !important;
    box-shadow: 0 4px #bf360c !important;
}
.btn-vermillion:active {
    box-shadow: none !important;
    transform: translateY(4px) !important;
}

.btn-lightgreen {
    background-color: #8bc34a !important; /* 邵ｺ髦ｪ竏ｩ邵ｺ・ｩ郢ｧ鬘倡横 */
    color: white !important;
    border: none !important;
    box-shadow: 0 4px #689f38 !important;
}
.btn-lightgreen:active {
    box-shadow: none !important;
    transform: translateY(4px) !important;
}

#battle-flow-btns .btn, #battle-btns .btn {
  min-height: 60px;
    width: 100% !important;
}

/* 繝舌ヨ繝ｫ繧｢繧ｯ繧ｷ繝ｧ繝ｳ繧ｨ繝ｪ繧｢ (鬮倥＆繧貞崋螳・ */
.battle-action-area {
  min-height: 80px; /* 繝懊ち繝ｳ2蛟句・ + gap */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  margin-top: 15px;
}

/* 繧ｹ繝壹・繧ｹ繧堤ｶｭ謖√＠縺溘∪縺ｾ髱櫁｡ｨ遉ｺ */
.v-hidden {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.v-show {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* 陷肴亢笆邵ｺ・ｯ雎鯉ｽｴ豼ｶ・ｲ邵ｲ竏ｬ・ｲ・ｰ邵ｺ莉｣繝ｻ騾具ｽｽ繝ｻ閧ｲ・ｴ・ｺ髢ｭ譴ｧ蜍ｹ騾包ｽｨ繝ｻ繝ｻ*/
.battle-win-text { color: #03a9f4 !important; }
.battle-lose-text { color: #0d47a1 !important; }

#battle-flow-btns {
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 2000 !important;
  min-height: 190px; /* 2ボタン分 + gap + top offset */
}

#battle-flow-btns .btn {
  min-height: 60px;
  width: 100% !important;
}

/* 全ての切替要素を同じ位置に重ねる */
#battle-flow-next-btn,
#battle-start-action-btn,
#battle-fighting-text {
  position: absolute !important;
  top: 20px !important;
  left: 0 !important;
  width: 100% !important;
  margin-top: 0 !important;
}

#battle-btns {
  position: absolute !important;
  top: 50px !important;
  left: 0 !important;
  width: 100% !important;
  margin-top: 0 !important;
}

/* 戦闘中テキストをボタンと同じ高さ・中央揃えに */
#battle-fighting-text {
  min-height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}




/* --- Antigravity UI Refinements --- */
.choice-btn.correct { border-color: #4caf50 !important; background: rgba(76, 175, 80, 0.1) !important; color: #2e7d32 !important; }
.choice-btn.selected-wrong { border-color: #888888 !important; background: rgba(136, 136, 136, 0.1) !important; color: #757575 !important; font-weight: bold !important; }
.choice-btn.fade-out { opacity: 0.3 !important; }
.list-row { padding-left: 1.5rem !important; }
.list-header { padding-left: 1.5rem !important; }
@media screen and (max-width: 480px) { .list-row { padding-left: 0 !important; } .list-header { padding-left: 0 !important; } .review-row.wrong { border-color: #bdbdbd !important; } .review-row { border-color: #bdbdbd !important; } }



/* --- Antigravity UI Refinements (Buttons) --- */
.btn-cyan { background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%) !important; color: #fff !important; border: none !important; box-shadow: 0 4px 12px rgba(3, 169, 244, 0.3) !important; }
.btn-pale-cyan { background: #e1f5fe !important; color: #0277bd !important; border: 1.5px solid #81d4fa !important; box-shadow: none !important; }

/* PC迚医・繝懊ち繝ｳ繧ｵ繧､繧ｺ隱ｿ謨ｴ */
@media screen and (min-width: 481px) {
  #settings-btn {
    max-width: 300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .title-target {
    font-size: calc(24.3px * 1.3) !important;
  }

  #logout-btn {
    max-width: 240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 8px 18px !important;
    font-size: 16px !important;
  }


  

.title-version {
  font-size: clamp(18px, 6vw, 29px) !important;
  font-weight: 950;
  text-align: center;
  width: 100%;
  margin-bottom: 20px !important;
  line-height: 1.4;
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 50%, #1565c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-version-sub {
  font-size: 0.9em;
  display: inline-block;
}

}

@media screen and (min-width: 481px) {
  .title-target {
    font-size: calc(24.3px * 1.3) !important;
  }
}






/* Force Login Form Width */
.login-form {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== 中断モーダル ===== */
.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;
}

.modal-box {
  background: #fff !important;
  border-radius: 20px !important;
  padding: 30px !important;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  max-width: 320px;
  width: 90%;
  border: none !important;
}

.modal-text {
  font-size: 1.495rem !important;
  font-weight: 900 !important;
  color: #37474f !important;
  margin-bottom: 25px !important;
  line-height: 1.6 !important;
  background: transparent !important;
}

.modal-btns {
  display: flex !important;
  gap: 15px !important;
  justify-content: center !important;
}

.btn-modal-yes {
  background: #ff5252 !important;
  color: #fff !important;
  padding: 10px 25px !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
  border: none !important;
  font-size: 1.3rem !important;
  cursor: pointer;
}

.btn-modal-no {
  background: #2196f3 !important;
  color: #fff !important;
  padding: 10px 25px !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
  border: none !important;
  font-size: 1.3rem !important;
  cursor: pointer;
}

@media screen and (max-width: 480px) {
  #abort-modal .modal-box {
    padding: 20px 10px !important;
    width: 94% !important;
    max-width: 360px !important;
    margin: auto !important;
  }
  #abort-modal .modal-text {
    font-size: 1.365rem !important;
    line-height: 1.5 !important;
    white-space: normal !important;
  }
}

@media screen and (min-width: 481px) {
  .title-version {
    font-size: clamp(18px, 6vw, 29px) !important;
  }
}

/* ===== バトル画面: RPGドットフォント ===== */
#screen-battle,
#screen-battle .battle-frame,
#screen-battle .battle-message-window,
#screen-battle #battle-message-text,
#screen-battle #battle-result-header,
#screen-battle #battle-fighting-text,
#screen-battle .battle-result-announcement,
#screen-battle .battle-win-text,
#screen-battle .battle-lose-text,
#screen-battle #battle-orb-text,
#screen-battle .btn {
  font-family: "PixelMplus", "DotGothic16", monospace !important;
}

/* ===== ログイン入力欄: ゴシック体 ===== */
#screen-login input[type="email"],
#screen-login input[type="password"],
#screen-login input[type="text"] {
  font-family: "Noto Sans JP", "Zen Maru Gothic", sans-serif !important;
  font-weight: 400 !important;
}
