:root {
  --usages-color: #D38E70;
  --cover-color: #76A6B9;
  --stationery-color: #DE7267;
  --trivia-color: #819F96;
  --others-color: #B393B5;
  --title-color: #310606;
}

html {
  scrollbar-gutter: stable;
}

.device-pc .sp-only {
  display: none;
}

.device-sp .pc-only {
  display: none;
}

[x-cloak] {
  display: none !important;
}

main {
  font-size: 1rem;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
}

main img,
main svg {
  max-width: 100%;
}

.hint-content {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

/* フェードアップ共通 */
.fade-up,
.fade-up-children::before,
.fade-up-children::after,
.hint-card {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.15, 0.93, 0.56, 0.99),
              transform 0.9s cubic-bezier(0.15, 0.93, 0.56, 0.99);
}

.fade-up.shown,
.fade-up-children.shown::before,
.fade-up-children.shown::after,
.hint-items.shown .hint-card {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.kv {
  position: relative;
  width: 100%;
  display: flex;
}

.kv-title {
  width: 36%;
  padding: 4.3% 5.2%;
  transition-delay: 0.85s;
  display: grid;
  place-content: center;
}

.kv-images {
  aspect-ratio: 928 / 664;
  width: 64%;
  overflow: hidden;
  position: relative;
}

.kv-images .swiper {
  width: 100%;
  height: 100%;
}

.kv-images .swiper-slide img {
  scale: 1.1;
  transition: scale 6s linear;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.kv-images .swiper-slide.swiper-slide-active img {
  scale: 1;
}

.kv-images .mv-description {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;

  opacity: 0;
  visibility: hidden;
  transition: clip-path .5s ease 0.9s;
  clip-path: inset(0px 100% 0px 0px);
}
.kv-images .swiper-slide.swiper-slide-active .mv-description {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0px 0px 0px 0px);
}
.mv-no {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  width: fit-content;
}
.mv-no span:first-child {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 3.04px;
  color: #fff;
}
.mv-no span:last-child {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
}
.mv-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--title-color);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mv-title span {
  background-color: white;
  width: fit-content;
  padding: 4px 10px;
}

@media (max-width: 768px) {
  .kv {
    flex-direction: column;
  }
  .kv-title {
    width: 100%;
    padding: 20px 16px;
  }
  .kv-images {
    width: 100%;
    aspect-ratio: 1 / 1;
  }
}

.yodogawa {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: fit-content;
  margin-inline: auto;
  text-align: center;
  color: var(--title-color);
  padding-bottom: 4.375rem;
}

.yodogawa h2 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 1.5px;
}

.yodogawa p {
  line-height: 1.8;
  letter-spacing: 0px;
  font-family: "Roboto", sans-serif;
}

.yodogawa-container {
  position: relative;
  width: fit-content;
  margin-inline: auto;
}

.yodogawa-container::before,
.yodogawa-container::after {
  content: "";
  position: absolute;
  width: 232px;
  aspect-ratio: 1 / 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
  transition-delay: 0.3s;
}

.yodogawa-container::before {
  top: -3.5rem;
  left: -22rem;
  background-image: url("../images/lead-left.png");
}
.yodogawa-container::after {
  bottom: -3.5rem;
  right: -22rem;
  background-image: url("../images/lead-right.png");
}

@media (max-width: 768px) {
  .yodogawa {
    text-align: left;
    padding-inline: 2rem;
    padding-bottom: 0;
    gap: 2rem;
  }
  .yodogawa h2 {
    line-height: 1.6;
  }

  .yodogawa p br {
    display: none;
  }
  .yodogawa-container {
    padding-bottom: 50%;
  }
  .yodogawa-container::before {
    left: 3%;
    top: unset;
    bottom: 0;
    width: 45%;
  }
  .yodogawa-container::after {
    right: 3%;
    bottom: 0;
    width: 45%;
  }
}

.hint-nav-wrap {
  background-image: url("../images/bg-lead-pc.png");
  margin-block: 5rem;
}

.hint-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: calc(1152px + 2rem);
  margin: 0 auto;
  gap: 1.75rem;
  padding: 0 1rem;
}

.hint-nav li {
  border-bottom: 2px solid currentColor;
}

.hint-nav li a {
  width: 100%;
  height: 66px;
  display: grid;
  place-items: center;
  color: currentColor;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
  text-align: center;
  line-height: 1.24;
}

.hint-nav-wrap .hint-nav li.is-active a {
  background-color: white;
}

.fixed-hint-nav {
  position: fixed;
  top: 100px;
  width: 100%;
  transform: translateY(-100%);
  z-index: 1;
  background-color: white;
  transition: transform .3s cubic-bezier(.445, .05, .55, .95), opacity 0s;
  height: 68px;
  display: grid;
  place-items: center;
  border-bottom: 1px #d6d6d6 solid;
}

.fixed-hint-nav.is-stuck {
  transform: translateY(0);
}

.fixed-hint-nav .hint-nav {
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.fixed-hint-nav .hint-nav li a {
  height: 42px;
  transition: opacity .3s;
  scroll-margin-inline: 6px;
  line-height: 1.05;
  padding-top: 4px;
}

@media (max-width: 768px) {
  .hint-nav-wrap {
    margin: 1rem auto;
  }
  .hint-nav-wrap .hint-nav {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    gap: 0.75rem;
  }
  .hint-nav-wrap .hint-nav li a {
    height: 54px;
  }
  .fixed-hint-nav {
    top: 80px;
    height: 56px;
  }
  .fixed-hint-nav .hint-nav {
    gap: 0.75rem;
    overflow: scroll;
  }
  .fixed-hint-nav .hint-nav li a {
    width: 104px;
    height: 38px;
  }
}

@media (hover: hover) {
  .hint-nav-wrap .hint-nav li:not(.is-active) a:hover {
    background-color: rgba(255, 255, 255, 0.5);
  }
  .fixed-hint-nav .hint-nav li:not(.is-active) a:hover {
    opacity: 0.7;
  }
}

.hint-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: calc(1152px + 2rem);
  margin-inline: auto;
  gap: 2rem;
  padding: 2rem 1rem 5rem 1rem;
}

.hint-items.no-transition .hint-card {
  transition: none !important;
}

.hint-card a {
  position: relative;
  display: block;
  padding: calc(36 / 264 * 100%);
  background-color: white;
  width: 100%;
  max-width: 264px;
  height: 392px;
  border-radius: 8px;
}

.hint-card a .outline {
  border-width: 1px;
  border-style: solid;
  opacity: 0;
  pointer-events: none;
  transition: all .4s cubic-bezier(.25, .74, .22, .99) .1s;
  position: absolute;
  inset: 0;
}

.hint-card .hint-image picture {
  display: block;
  overflow: hidden;
}
.hint-card a img {
  transition: 0.3s ease 0.1s;
}

button.btn-plus {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 10px;
}
.hint-card a .btn-plus {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 20px;
  height: 20px;

}
.hint-card a .btn-plus svg {
  width: 100%;
  height: 100%;
}

@media (hover: hover) {
  .hint-card a:hover .outline {
    opacity: 1;
    top: -6px;
    right: -6px;
    bottom: -6px;
    left: -6px;
    border-radius: 6px;
  }
  .hint-card a:hover img {
    transform: scale(1.04);
  }
}

.hint-items .hint-title,
.hint-items .hint-body {
  white-space: pre-wrap;
}

.hint-items .hint-title {
  margin-top: 12px;
  line-height: 1.5;
  letter-spacing: 0.5px;
  color: var(--title-color);
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
}

.hint-items .hint-body {
  display: none;
}

.hint-card .hint-image {
  position: relative;
}

.hint-card .hint-image .hint-no {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 600;
  position: absolute;
  top: -1.25rem;
  left: -1.1rem;
  font-size: 1rem;
}

.hint-card .hint-image .no-slash {
  position: absolute;
  top: -6px;
  left: -6px;
  z-index: 10;
  width: 2rem;
  aspect-ratio: 1 / 1;
}

@media (max-width: 768px) {
  .hint-items {
    grid-template-columns: repeat(2, 1fr);
    padding: 3rem 1rem 5rem 1rem;
    gap: 1rem;
  }
  .hint-card a {
    padding: 1.5rem 1rem;
    height: 280px;
  }
  .hint-items .hint-title {
    font-size: 0.9375rem;
    line-height: 1.3;
  }
  .hint-card .hint-image .hint-no {
    top: -1.1rem;
    left: -0.5rem;
    font-size: 0.75rem;
  }

  .hint-card .hint-image .no-slash {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 1.5rem;
  }

  .hint-card a .btn-plus {
    bottom: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
  }
}

.hint-blank {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

main {
  background-image: url("../images/bg-lead-pc.png");
  background-position: top center;
  background-repeat: repeat;
  background-size: 100%;
}

.hint-lead {
  padding-top: 8.75rem;
}

@media (max-width: 768px) {
  .hint-lead {
    padding-top: 3.375rem;
  }
}

.hint-category.cat-hidden {
  display: none;
}

.hint-category:not(:last-child):not(.is-active) {
  margin-bottom: -15rem;
}

.hint-category > .hint-category-content {
  background-position: top center;
  background-repeat: repeat;
  padding-bottom: 15rem;
}

.hint-category:last-child > .hint-category-content,
.hint-category.is-active > .hint-category-content {
  padding-bottom: 6rem;
}

.hint-category > h3 {
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: 100%;
  display: grid;
  place-items: center;
  scroll-margin-top: 168px;
}

.hint-category > h3 img {
  transform: translateY(1rem);
  width: 50%;
  max-width: 220px;
}

.hint-category.hint-usages > h3 {
  background-image: url("../images/bg-cat1-h-pc.png");
}
.hint-category.hint-usages > .hint-category-content {
  background-image: url("../images/bg-cat1-b-pc.png");
}
.hint-category.hint-cover > h3 {
  background-image: url("../images/bg-cat2-h-pc.png");
}
.hint-category.hint-cover > .hint-category-content {
  background-image: url("../images/bg-cat2-b-pc.png");
}
.hint-category.hint-stationery > h3 {
  background-image: url("../images/bg-cat3-h-pc.png");
}
.hint-category.hint-stationery > .hint-category-content {
  background-image: url("../images/bg-cat3-b-pc.png");
}
.hint-category.hint-trivia > h3 {
  background-image: url("../images/bg-cat4-h-pc.png");
}
.hint-category.hint-trivia > .hint-category-content {
  background-image: url("../images/bg-cat4-b-pc.png");
}
.hint-category.hint-others > h3 {
  background-image: url("../images/bg-cat5-h-pc.png");
}
.hint-category.hint-others > .hint-category-content {
  background-image: url("../images/bg-cat5-b-pc.png");
}

@media (max-width: 768px) {
  .hint-category > h3 {
    scroll-margin-top: 128px;
  }
  .hint-category > h3 img {
    transform: translateY(2rem);
  }
  .hint-category.hint-usages > h3 {
    background-image: url("../images/bg-cat1-h-sp.png");
  }
  .hint-category.hint-usages > .hint-category-content {
    background-image: url("../images/bg-cat1-b-sp.png");
  }
  .hint-category.hint-cover > h3 {
    background-image: url("../images/bg-cat2-h-sp.png");
  }
  .hint-category.hint-cover > .hint-category-content {
    background-image: url("../images/bg-cat2-b-sp.png");
  }
  .hint-category.hint-stationery > h3 {
    background-image: url("../images/bg-cat3-h-sp.png");
  }
  .hint-category.hint-stationery > .hint-category-content {
    background-image: url("../images/bg-cat3-b-sp.png");
  }
  .hint-category.hint-trivia > h3 {
    background-image: url("../images/bg-cat4-h-sp.png");
  }
  .hint-category.hint-trivia > .hint-category-content {
    background-image: url("../images/bg-cat4-b-sp.png");
  }
  .hint-category.hint-others > h3 {
    background-image: url("../images/bg-cat5-h-sp.png");
  }
  .hint-category.hint-others > .hint-category-content {
    background-image: url("../images/bg-cat5-b-sp.png");
  }
  .hint-category > .hint-category-content {
    padding-bottom: 12rem;
  }
}

.nav-usages,
.outline-usages,
.hint-usages .hint-no {
  color: var(--usages-color);
  border-color: var(--usages-color);
}
.hint-usages .no-slash line {
  stroke: var(--usages-color);
}
.hint-usages .btn-plus rect {
  fill: var(--usages-color);
}
.mv-usages .mv-no {
  background-color: var(--usages-color);
}
.fixed-hint-nav .nav-usages.is-active a {
  color: white;
  background-color: var(--usages-color);
}

.nav-cover,
.outline-cover,
.hint-cover .hint-no {
  color: var(--cover-color);
  border-color: var(--cover-color);
}
.hint-cover .no-slash line {
  stroke: var(--cover-color);
}
.hint-cover .btn-plus rect {
  fill: var(--cover-color);
}
.mv-cover .mv-no {
  background-color: var(--cover-color);
}
.fixed-hint-nav .nav-cover.is-active a {
  color: white;
  background-color: var(--cover-color);
}

.nav-stationery,
.outline-stationery,
.hint-stationery .hint-no {
  color: var(--stationery-color);
  border-color: var(--stationery-color);
}
.hint-stationery .no-slash line {
  stroke: var(--stationery-color);;
}
.hint-stationery .btn-plus rect {
  fill: var(--stationery-color);
}
.mv-stationery .mv-no {
  background-color: var(--stationery-color);
}
.fixed-hint-nav .nav-stationery.is-active a {
  color: white;
  background-color: var(--stationery-color);
}

.nav-trivia,
.outline-trivia,
.hint-trivia .hint-no {
  color: var(--trivia-color);
  border-color: var(--trivia-color);
}
.hint-trivia .no-slash line {
  stroke: var(--trivia-color);
}
.hint-trivia .btn-plus rect {
  fill: var(--trivia-color);
}
.mv-trivia .mv-no {
  background-color: var(--trivia-color);
}
.fixed-hint-nav .nav-trivia.is-active a {
  color: white;
  background-color: var(--trivia-color);
}

.nav-others,
.outline-others,
.hint-others .hint-no {
  color: var(--others-color);
  border-color: var(--others-color);
}
.hint-others .no-slash line {
  stroke: var(--others-color);;
}
.hint-others .btn-plus rect {
  fill: var(--others-color);
}
.mv-others .mv-no {
  background-color: var(--others-color);
}
.fixed-hint-nav .nav-others.is-active a {
  color: white;
  background-color: var(--others-color);
}

.bottom-title {
  width: 22rem;
  margin: 5rem auto;
}

@media (max-width: 768px) {
  .bottom-title {
    width: 18rem;
    margin: 2rem auto;
  }
}

.hint-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-enter {
  transition: opacity 0.3s ease 0.1s;
}
.modal-enter-start {
  opacity: 0;
}
.modal-enter-end {
  opacity: 1;
}
.modal-leave {
  transition: opacity 0.2s ease;
}
.modal-leave-start {
  opacity: 1;
}
.modal-leave-end {
  opacity: 0;
}

.hint-modal {
  position: relative;
  width: 1135px;
  max-width: calc(100vw - 200px);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 27px;
  height: 27px;
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.modal-close svg {
  width: 100%;
}

@media (hover: hover) {
  .modal-close:hover {
    opacity: 0.6;
  }
}

.modal-slide-inner {
  display: flex;
  gap: 56px;
  padding: 80px;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
}

.modal-content {
  position: relative;
  width: 100%;
}

.modal-image {
  flex-shrink: 0;
  width: 510px;
  height: 510px;
  border-radius: 4px;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-slide-inner.is-animating {
  animation: modalContentIn 0.4s cubic-bezier(0.25, 0.74, 0.22, 0.99) both;
}

@keyframes modalContentIn {
  from { transform: scale(0.99); opacity: 0.85; }
  to { transform: scale(1); opacity: 1; }
}

.modal-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.modal-text-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-no {
  font-family: "Josefin Sans", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 3.2px;
  line-height: 1;
}

.modal-cat {
  font-size: 1rem;
  line-height: 1;
}

.modal-cat br {
  display: none;
}

.modal-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--title-color);
  white-space: pre-wrap;
}

.modal-body {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--title-color);
}

.modal-credit {
  font-size: 0.875rem;
  color: #999;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10000;
}

.modal-arrow-prev {
  left: calc(50% - 1135px / 2 - 39px);
}

.modal-arrow-next {
  right: calc(50% - 1135px / 2 - 39px);
}

@media (hover: hover) {
  .modal-arrow:hover {
    opacity: 0.7;
  }
}

.modal-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (max-width: 768px) {
  .hint-modal-overlay {
    align-items: flex-start;
  }
  .hint-modal {
    width: 100%;
    height: 100%;
    max-width: 100%;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    display: grid;
    place-items: center;
  }
  .modal-slide-inner {
    flex-direction: column;
    gap: 32px;
    padding: 32px;
  }
  .modal-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .modal-no {
    font-size: 1.5rem;
    letter-spacing: 2.5px;
  }
  .modal-cat {
    font-size: 0.875rem;
  }
  .modal-title {
    font-size: 1.125rem;
    line-height: 1.4;
  }
  .modal-close-wrap {
    position: sticky;
    z-index: 100;
    top: 0;
    left: 0;
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }
  .modal-close {
    background-color: var(--title-color);
    border-radius: 50%;
    right: -9px;
    top: -14px;
    padding: 12px;
    width: 42px;
    height: 42px;
  }
  .modal-close svg line {
    stroke: white; 
  }
  .modal-arrow {
    top: 48%;
    width: 32px;
  }
  .modal-arrow-prev {
    left: 6px;
  }
  .modal-arrow-next {
    right: 6px;
  }
}
