@charset "UTF-8";
/* Reset defaults to avoid UA margin/padding differences. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
picture,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

a {
  text-decoration: none;
  color: inherit;
}

b,
strong {
  font-weight: normal;
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/ZenKakuGothicNew-Light.614db5c538cb.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/ZenKakuGothicNew-Regular.6208396d3d91.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/ZenKakuGothicNew-Medium.498311051f44.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/ZenKakuGothicNew-Bold.388fafa05db3.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/ZenKakuGothicNew-Black.5c1fc51f4595.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
:root {
  --green-left: #43b172;
  --green-right: #9ac814;
  --tag-green: #43b172;
  --tag-lime: #9ac814;
  --accent-red-light: #e86b5a;
  --accent-red: #d64545;
  --accent-orange-light: #f7a23a;
  --accent-orange: #f36b21;
  --soft-gray: #f5f4f2;
  --text: #000;
  --border-gray: #707070;
  --bp-md: 900px;
  --problems-spot-max-vh-mobile: 95;
  --problems-spot-max-vh-desktop: 90;
}

* {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

.heading-marker {
  position: relative;
  display: inline-block;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  font-size: 1.75rem;
  padding: 0;
  margin-bottom: 16px;
  z-index: 0;
  isolation: isolate;
  padding: 0 5px;
}

.heading-marker::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15em;
  height: 0.6em;
  background: linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
  opacity: 0.35;
  z-index: -1;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.8;
}
@media (min-width: 900px) {
  body {
    background: var(--soft-gray);
  }
}
body .form-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eb5505;
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: normal;
}

body.is-login-success-modal-open {
  overflow: hidden;
}

.guest-banner {
  padding: 8px 16px;
  text-align: center;
  color: #ffffff;
  font-size: 0.875rem;
  background: linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
}

.guest-banner--anonymous-age {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.guest-banner__button {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 4px 12px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.guest-banner__button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.login-success-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 70;
}
@media (min-width: 900px) {
  .login-success-modal {
    padding: 24px;
  }
}

.login-success-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.login-success-modal__backdrop {
  position: absolute;
  inset: 0;
}

.login-success-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e7e3de;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 900px) {
  .login-success-modal__dialog {
    border-radius: 20px;
    padding: 24px;
    gap: 16px;
  }
}

.login-success-modal__message {
  margin: 0;
  color: #4f4f4f;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
}
@media (min-width: 900px) {
  .login-success-modal__message {
    font-size: 1.375rem;
  }
}

.login-success-modal__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.login-success-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.login-success-modal__close:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.login-success-modal__close:focus-visible {
  outline: 2px solid #7fae63;
  outline-offset: 2px;
}

.text-link {
  color: var(--green-left);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.text-link:hover {
  opacity: 0.8;
}

.guest-banner__link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 700;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

main {
  display: block;
  flex: 1;
}

.section {
  padding-bottom: 72px;
}

.section__inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}

.section__heading h2 {
  margin: 0;
  font-size: 2rem;
  text-shadow: 0 3px 0 #fff, 3px 0 0 #fff, 0 -3px 0 #fff, -3px 0 0 #fff;
}

.section__subtitle {
  font-size: inherit;
  text-shadow: 0 3px 0 #fff, 3px 0 0 #fff, 0 -3px 0 #fff, -3px 0 0 #fff;
}

.section__heading--highlight {
  padding: 6px 0 12px;
}

.section__heading--highlight h1 {
  position: relative;
  display: inline-block;
}

.section__heading--highlight h1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../image/highlighter-pen.fb59c07d7b61.png") no-repeat left center;
  opacity: 0.2;
  z-index: -1;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
}
@media (min-width: 900px) {
  .header {
    padding: 20px 20px;
  }
}

.logo img {
  width: 120px;
}
@media (min-width: 900px) {
  .logo img {
    width: 160px;
  }
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--soft-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}
@media (min-width: 900px) {
  .menu {
    width: 72px;
    height: 72px;
    font-size: 12px;
    background: #ffffff;
  }
}

.menu__lines {
  display: block;
  width: 28px;
  height: 14px;
  position: relative;
}

.menu__lines::before,
.menu__lines::after {
  content: "";
  background: #000;
  height: 4px;
  border-radius: 999px;
  position: absolute;
  left: 0;
  right: 0;
}

.menu__lines::before {
  top: 0;
}

.menu__lines::after {
  bottom: 0;
}

.menu__text {
  line-height: 1;
  margin-top: 4px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  display: flex;
  justify-content: flex-end;
  z-index: 50;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-panel {
  background: #ffffff;
  width: calc(100% - 70px);
  height: 100%;
  padding: 24px;
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
@media (min-width: 900px) {
  .menu-panel {
    width: 400px;
  }
}

.menu-overlay.is-open .menu-panel {
  transform: translateX(0);
}

.menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f1f1f1;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}

.menu-panel__inner {
  height: 100%;
  padding-top: 64px;
  box-sizing: border-box;
}

.menu-actions {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.menu-actions form {
  margin: 0;
}

.menu-actions form .menu-action {
  width: 100%;
}

.menu-action {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 16px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid #e7e3de;
  font-size: inherit;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-action--outline {
  background: linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
  color: #ffffff;
  border: none;
}

.menu-action:hover {
  transform: translateY(-1px);
}

.menu-nav {
  height: 100%;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-item {
  border-bottom: 1px solid #e7e3de;
  padding-bottom: 12px;
}

.menu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: inherit;
  color: var(--text);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.menu-link:hover {
  color: var(--tag-green);
}

.menu-link.menu-link--current {
  color: var(--tag-green);
  font-weight: 700;
}

.footer__curve {
  position: relative;
  padding: 124px 0 28px;
  overflow: hidden;
}

.footer__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer__mascots {
  display: flex;
  justify-content: center;
  position: relative;
}

.footer__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto 20px;
}
@media (min-width: 900px) {
  .footer__social {
    gap: 12px;
    margin: 0 auto 22px;
  }
}

.footer__social-link {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 0.2s ease;
}
@media (min-width: 900px) {
  .footer__social-link {
    width: 56px;
    height: 56px;
  }
}

.footer__social-link:hover {
  transform: translateY(-2px);
}

.footer__social-link:focus-visible {
  outline: 2px solid #7fae63;
  outline-offset: 2px;
}

.footer__social-link img {
  width: 100%;
  height: auto;
  display: block;
}

.footer__mascots::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  width: 100%;
  min-width: 2200px;
  height: 1100px;
  background: var(--soft-gray);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: -1;
}
@media (min-width: 900px) {
  .footer__mascots::before {
    background: #ffffff;
  }
}

.footer__mascots img {
  width: 100%;
  min-width: 220px;
  margin-top: -100px;
}
@media (min-width: 900px) {
  .footer__mascots img {
    margin-top: -100px;
    width: 520px;
  }
}

.footer--with-social .footer__mascots img {
  margin-top: -4px;
}

.footer__copy {
  margin: 10px 0 0;
  font-size: 0.625rem;
}

body.is-menu-open {
  overflow: hidden;
}

.problems-page {
  padding: 24px 0 80px;
}

.problems__container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.problems__heading h1 {
  margin: 0;
  font-size: 2rem;
  text-shadow: 0 3px 0 #fff, 3px 0 0 #fff, 0 -3px 0 #fff, -3px 0 0 #fff;
}
@media (min-width: 900px) {
  .problems__heading h1 {
    font-size: 2.125rem;
  }
}

.problems__heading .section__subtitle {
  margin-bottom: 16px;
}

.problems-detail__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.problems-detail__title-row h1 {
  margin: 0;
}

.game-favorite {
  margin-left: auto;
  display: flex;
}

.game-favorite__form {
  margin: 0;
}

.game-favorite-button {
  border: 1px solid var(--tag-green);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--tag-green);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}
.game-favorite-button:hover {
  background: #ffffff;
  color: var(--tag-green);
}
.game-favorite-button:focus-visible {
  outline: 2px solid #7fae63;
  outline-offset: 2px;
}
@media (min-width: 900px) {
  .game-favorite-button {
    padding: 8px 16px;
    font-size: 0.875rem;
  }
}

.game-favorite-button.is-active {
  background: #ffffff;
  color: var(--text);
  border-color: #d8d3cd;
}

.problems__summary {
  margin: 0 0 20px;
  font-size: 0.875rem;
}

.problems-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  color: #6a665f;
  font-size: 0.75rem;
}

.problems-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.problems-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}
@media (min-width: 900px) {
  .problems-toolbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.problems-toolbar__count {
  margin: 0;
  font-size: 0.875rem;
}

.problems-filter-form {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.problems-filter-form__label {
  font-size: 0.875rem;
}

.problems-filter-form__select {
  min-width: 112px;
  border: 1px solid #d8d3cc;
  border-radius: 10px;
  background: #fff;
  height: 40px;
  padding: 0 10px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.problems-filter-form__button {
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
  height: 40px;
  padding: 0 14px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.problems-variant-grid,
.problems-entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 900px) {
  .problems-variant-grid,
  .problems-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 1200px) {
  .problems-variant-grid,
  .problems-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.problems-variant-card,
.problems-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid #e7e3de;
  background: #fff;
  overflow: hidden;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.problems-variant-card:hover,
.problems-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.problems-variant-card__thumb,
.problems-card__thumb,
.problems-detail__media {
  aspect-ratio: 16/9;
  background: #f5f4f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 900px) {
  .problems-card__thumb {
    background: #ffffff;
  }
}
@media (min-width: 900px) {
  .problems-card__thumb.is-maze {
    aspect-ratio: 1/1;
    background: #f5f4f2;
  }
}

.problems-variant-card__thumb img,
.problems-card__thumb img,
.problems-detail__media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.problems-matchstick-board {
  width: 100%;
  height: 100%;
}
.problems-matchstick-board.is-thumb {
  width: 100%;
  height: 100%;
}
.problems-matchstick-board.is-answer {
  width: min(100%, 720px);
  height: auto;
  margin: 0 auto 12px;
}

.problems-detail__extra > .problems-matchstick-board {
  width: min(100%, 720px);
  height: auto;
  margin: 0 auto;
}

.problems-variant-card__placeholder,
.problems-card__placeholder,
.problems-detail__placeholder {
  font-size: 0.875rem;
  color: #6a665f;
}

.problems-variant-card__body,
.problems-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.problems-variant-card__game {
  margin: 0;
  font-size: 0.75rem;
  color: #6a665f;
}

.problems-variant-card__title,
.problems-card__title {
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
}

.problems-variant-card__meta,
.problems-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.75rem;
  color: #4b463f;
}

.problems-variant-card__mode,
.problems-card__difficulty {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  background: #ffffff;
  color: var(--tag-green);
  border: 1px solid var(--tag-green);
}

.problems-card__difficulty {
  background: var(--tag-green);
  color: #ffffff;
}

.problems-variant-card__description,
.problems-card__summary {
  margin: 0;
  font-size: 0.875rem;
}

.problems-empty {
  margin: 0;
  padding: 20px;
  border-radius: 16px;
  border: 1px dashed #d8d3cc;
  background: #fff;
  font-size: 0.875rem;
}

.problems-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.problems-pagination__link {
  border-radius: 999px;
  border: 1px solid #d8d3cc;
  background: #fff;
  padding: 7px 12px;
  font-size: 0.875rem;
}

.problems-pagination__link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.problems-pagination__current {
  font-size: 0.875rem;
}

.problems-pagination.is-infinite-enhanced {
  display: none;
}

.problems-infinite-sentinel {
  width: 100%;
  height: 1px;
}

.problems-infinite-status {
  margin: 10px 0 0;
  font-size: 0.875rem;
  color: #6a665f;
  text-align: center;
}

.problems-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.problems-cta__nav {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.problems-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-width: min(220px, 100%);
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}
.problems-cta__button.is-disabled {
  pointer-events: none;
  opacity: 0.4;
}

.problems-cta__link {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.875rem;
}

.problems-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problems-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}

.problems-detail__level-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.problems-detail__level-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #4b463f;
}

.problems-detail__level-select {
  min-width: 144px;
  height: 44px;
  padding: 0 44px 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background-color: transparent;
  background-image: linear-gradient(45deg, transparent 50%, #ffffff 50%), linear-gradient(135deg, #ffffff 50%, transparent 50%), linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
  background-position: calc(100% - 22px) 18px, calc(100% - 16px) 18px, 0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 10px 24px rgba(67, 160, 71, 0.18);
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
}
.problems-detail__level-select option {
  color: #2f2a24;
  background: #ffffff;
}

.problems-detail__spot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}
@media (min-width: 900px) {
  .problems-detail__spot-grid {
    gap: 10px;
  }
}

.problems-detail__spot-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.problems-detail__spot-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.problems-detail__extra {
  align-self: center;
  width: 100%;
  max-width: min(100%, 1120px);
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid #e7e3de;
  background: #fff;
  box-sizing: border-box;
  padding: 12px;
}

.problems-maze-board {
  --problems-maze-cols: 10;
  --problems-maze-rows: 10;
  --problems-maze-cell-size: 28px;
  --problems-maze-wall-size: 3.8;
  --problems-maze-path-size: 4.6;
  width: calc(var(--problems-maze-cols) * var(--problems-maze-cell-size));
  margin: 0 auto;
  background: #ffffff;
}
.problems-maze-board.is-answer {
  margin-top: 12px;
  margin-bottom: 12px;
}

.problems-maze-board__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.problems-maze-board__line {
  stroke: #333333;
  stroke-width: var(--problems-maze-wall-size);
  stroke-linecap: square;
  shape-rendering: geometricPrecision;
  vector-effect: non-scaling-stroke;
}

.problems-maze-board__path-line {
  fill: none;
  stroke: rgba(60, 131, 190, 0.92);
  stroke-width: var(--problems-maze-path-size);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.problems-maze-board__marker {
  vector-effect: non-scaling-stroke;
}
.problems-maze-board__marker.is-start {
  fill: #6bd98b;
  stroke: rgba(107, 217, 139, 0.24);
  stroke-width: 1.2;
}
.problems-maze-board__marker.is-goal {
  fill: #f2b266;
  stroke: rgba(242, 178, 102, 0.24);
  stroke-width: 1.2;
}

.problems-maze-board.is-thumb {
  --problems-maze-cell-size: 18px;
  --problems-maze-wall-size: 2.8;
  --problems-maze-path-size: 3.4;
  width: -moz-fit-content;
  width: fit-content;
  height: -moz-fit-content;
  height: fit-content;
}
.problems-maze-board.is-thumb .problems-maze-board__svg {
  width: calc(var(--problems-maze-cols) * var(--problems-maze-cell-size));
}
@media (min-width: 900px) {
  .problems-maze-board.is-thumb {
    --problems-maze-cell-size: 20px;
  }
}

.problems-anaume-board {
  --problems-anaume-grid-cols: 3;
  --problems-anaume-grid-rows: 3;
  --problems-anaume-cell-size: clamp(52px, 12vw, 86px);
  --problems-anaume-cell-gap: 8px;
  display: grid;
  grid-template-columns: repeat(var(--problems-anaume-grid-cols), var(--problems-anaume-cell-size));
  grid-template-rows: repeat(var(--problems-anaume-grid-rows), var(--problems-anaume-cell-size));
  gap: var(--problems-anaume-cell-gap);
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto;
  border-radius: 8px;
  background: #ffffff;
}
@media (min-width: 900px) {
  .problems-anaume-board {
    --problems-anaume-cell-size: 92px;
    --problems-anaume-cell-gap: 10px;
  }
}

.problems-anaume-board__cell {
  border: 2px solid #111111;
  border-radius: 14px;
  background: #ffffff;
  box-sizing: border-box;
  width: var(--problems-anaume-cell-size);
  height: var(--problems-anaume-cell-size);
  min-width: var(--problems-anaume-cell-size);
  min-height: var(--problems-anaume-cell-size);
  flex: 0 0 var(--problems-anaume-cell-size);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #15181d;
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 700;
  line-height: 1;
}
@media (min-width: 900px) {
  .problems-anaume-board__cell {
    font-size: 42px;
  }
}

.problems-anaume-board__cell.is-center {
  color: #1a1a1a;
}

.problems-anaume-board__center-text {
  display: block;
  line-height: 1;
  transform: none;
}

.problems-anaume-board__readout {
  margin: 10px 0 0;
  text-align: center;
  color: #4a5652;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.problems-anaume-board.is-thumb {
  --problems-anaume-grid-cols: 3;
  --problems-anaume-grid-rows: 3;
  --problems-anaume-cell-size: clamp(28px, 7vw, 44px);
  --problems-anaume-cell-gap: 4px;
  --problems-anaume-thumb-font-size: clamp(16px, 4vw, 22px);
  border-radius: 0;
  background: transparent;
}
@media (min-width: 900px) {
  .problems-anaume-board.is-thumb {
    --problems-anaume-cell-size: 40px;
    --problems-anaume-cell-gap: 5px;
  }
}

.problems-anaume-board.is-thumb .problems-anaume-board__cell {
  border-width: 1.5px;
  border-radius: 10px;
}

.problems-anaume-board.is-thumb .problems-anaume-board__cell {
  font-size: var(--problems-anaume-thumb-font-size);
}

.problems-anaume-board.is-thumb .problems-anaume-board__center-text {
  transform: none;
}

.problems-pyramid-board {
  --problems-pyramid-cell-size: clamp(52px, 12vw, 86px);
  --problems-pyramid-cell-gap: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--problems-pyramid-cell-gap);
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto;
}
.problems-pyramid-board.is-answer {
  margin-bottom: 12px;
}
@media (min-width: 900px) {
  .problems-pyramid-board {
    --problems-pyramid-cell-size: 92px;
    --problems-pyramid-cell-gap: 10px;
  }
}

.problems-pyramid-board__row {
  display: flex;
  justify-content: center;
  gap: var(--problems-pyramid-cell-gap);
}

.problems-pyramid-board__cell {
  width: var(--problems-pyramid-cell-size);
  height: var(--problems-pyramid-cell-size);
  border-radius: 12px;
  border: 2px solid #c8d2d0;
  background: #ffffff;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 700;
  line-height: 1;
  color: #1a1a1a;
}
.problems-pyramid-board__cell.is-blank {
  background: #f5f7fa;
  color: transparent;
}
.problems-pyramid-board__cell.is-mid-answer {
  background: #f5f7fa;
}
.problems-pyramid-board__cell.is-input {
  color: #4b463f;
}
.problems-pyramid-board__cell.is-top-answer {
  border-color: #c8d2d0;
  background: #ffffff;
  color: var(--tag-green);
}
@media (min-width: 900px) {
  .problems-pyramid-board__cell {
    font-size: 30px;
  }
}

.problems-pyramid-board.is-thumb {
  --problems-pyramid-cell-size: clamp(28px, 7vw, 44px);
  --problems-pyramid-cell-gap: 4px;
  --problems-pyramid-thumb-font-size: clamp(16px, 4vw, 22px);
  width: 100%;
  height: 100%;
  justify-content: center;
}
@media (min-width: 900px) {
  .problems-pyramid-board.is-thumb {
    --problems-pyramid-cell-size: 40px;
    --problems-pyramid-cell-gap: 5px;
    --problems-pyramid-thumb-font-size: 20px;
  }
}

.problems-pyramid-board.is-thumb .problems-pyramid-board__cell {
  border-width: 1.5px;
  border-radius: 10px;
  font-size: var(--problems-pyramid-thumb-font-size);
}

.problems-mosaic-board {
  --problems-mosaic-aspect-ratio: 16 / 9;
  position: relative;
  width: min(100%, 960px);
  aspect-ratio: var(--problems-mosaic-aspect-ratio);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
}

.problems-mosaic-board__percent {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  min-width: 62px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(90deg, var(--green-left), var(--green-right));
}

.problems-mosaic-board__percent-value {
  font-weight: 900;
}

.problems-mosaic-board.is-thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
}

.problems-mosaic-board__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.problems-mosaic-board__hint {
  margin: 10px 0 0;
  text-align: center;
  color: #4b463f;
  font-size: 0.875rem;
  font-weight: 700;
}

.problems-odd-kanji-board {
  --problems-odd-kanji-cols: 8;
  --problems-odd-kanji-font-size: clamp(24px, 5.8vw, 40px);
  display: grid;
  grid-template-columns: repeat(var(--problems-odd-kanji-cols), auto);
  justify-content: center;
  justify-items: center;
  gap: 2px 6px;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
.problems-odd-kanji-board.is-answer {
  margin-bottom: 12px;
}

.problems-odd-kanji-board.is-thumb {
  --problems-odd-kanji-thumb-font-size: clamp(14px, 4vw, 20px);
  width: 100%;
  height: 100%;
  padding: 12px;
  align-content: center;
  gap: 1px 4px;
}
@media (min-width: 900px) {
  .problems-odd-kanji-board.is-thumb {
    --problems-odd-kanji-thumb-font-size: 22px;
    padding: 14px;
    gap: 2px 5px;
  }
}

.problems-odd-kanji-board__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: #15181d;
  font-size: var(--problems-odd-kanji-font-size);
  font-weight: 800;
  line-height: 1.05;
  min-width: 1em;
}
.problems-odd-kanji-board__cell.is-answer {
  color: #c62828;
  text-decoration: underline;
  text-decoration-color: #c62828;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
}

.problems-odd-kanji-board.is-thumb .problems-odd-kanji-board__cell {
  font-size: var(--problems-odd-kanji-thumb-font-size);
  font-weight: 700;
  line-height: 1;
}

.problems-definition-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 900px) {
  .problems-definition-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.problems-definition-list dt {
  font-size: 0.75rem;
  color: #6a665f;
}

.problems-definition-list dd {
  margin: 4px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.problems-related {
  margin-top: 32px;
}

.problems-answer {
  margin-top: 8px;
}

.problems-answer__details {
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid #e7e3de;
  background: #fff;
  overflow: hidden;
}

.problems-answer__summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.problems-answer__summary::-webkit-details-marker {
  display: none;
}
.problems-answer__summary::after {
  content: "+";
  font-size: 1.125rem;
  line-height: 1;
}

.problems-answer__details[open] .problems-answer__summary::after {
  content: "−";
}

.problems-answer__body {
  padding: 0 16px 16px;
  border-top: 1px solid #f0ece7;
}

.problems-answer__content {
  width: -moz-fit-content;
  width: fit-content;
  max-width: min(100%, 960px);
  margin: 0 auto;
}

.problems-answer__canvas {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
}

.problems-answer__image {
  display: block;
  width: 100%;
  height: auto;
}

.problems-answer__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.problems-answer__marker {
  display: block;
  position: absolute;
  aspect-ratio: 1/1;
  border: 3px solid #ff4d4f;
  border-radius: 999px;
  background: rgba(255, 77, 79, 0.2);
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}

.problems-answer__lead {
  margin: 12px 0 8px;
  font-size: 0.875rem;
}

.problems-answer__list {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
  display: grid;
  gap: 4px;
  font-size: 0.875rem;
}

.problems-answer__note {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: #6a665f;
}

.problems-anaume-answer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.problems-anaume-answer__char {
  margin: 0;
  color: var(--tag-green);
  font-size: clamp(32px, 9vw, 48px);
  font-weight: 800;
  line-height: 1;
}
@media (min-width: 900px) {
  .problems-anaume-answer__char {
    font-size: 48px;
  }
}

.problems-anaume-answer__words {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.6;
  color: #4b463f;
}