.p-themes {
  padding-block: 6rem;
  background-color: var(--color-bg);
}

@media (min-width: 1024px) {
  .p-themes {
    padding-block: 8rem;
  }
}

.p-themes__title {
  font-size: var(--font-size-h2-sp);
  text-align: center;
}

@media (min-width: 1024px) {
  .p-themes__title {
    font-size: var(--font-size-h2-pc);
  }
}

.p-themes__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 3.2rem;
}

@media (min-width: 1024px) {
  .p-themes__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.p-themes__item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  color: var(--color-white);
}

.p-themes__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-themes__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.6rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(18, 20, 22, 0.25) 0%, rgba(18, 20, 22, 0.5) 100%);
}

.p-themes__kanji {
  font-family: var(--font-mincho);
  font-size: var(--font-size-theme-kanji-sp);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .p-themes__kanji {
    font-size: var(--font-size-theme-kanji-pc);
  }
}

.p-themes__en {
  margin-top: 0.4rem;
  font-family: var(--font-serif-en);
  font-size: 1.3rem;
  letter-spacing: 0.15em;
}

.p-themes__text {
  margin-top: 1.2rem;
  font-size: 1.2rem;
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .p-themes__text {
    display: block;
  }
}
