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

.character {
  background-color: var(--sub);
}

.character-header {
  background-color: var(--main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.character__text {
  margin-top: 3%;
  color: var(--white);
  font-size: clamp(0.875rem, 3.73vw, 1.25rem);
  border-bottom: dashed 2px var(--white);
  margin-bottom: 2%;
}

.character__title {
  padding-top: 40px;
  width: 81%;
}

.ornament-roof img {
  margin-top: -1px;
  width: 100%;
}

.character-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4% 5% 36%;
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__bg {
  position: absolute;
  inset: 0;
  background: var(--base-translucent);
  backdrop-filter: blur(2px);
}

.modal__inner {
  position: relative;
  z-index: 1;
  width: 390px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  border: solid 4px var(--main);
  overflow-y: scroll;
  max-height: calc(100vh - 80px);
}

.modal__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18% 0 14%;
  font-weight: bold;
}

.modal-image__character,
.modal-image__family {
  width: 60%;
}

.modal__label {
  margin-top: 28px;
  font-size: 0.625rem;
  padding: 3px 8px;
  border-radius: 100px;
  background-color: var(--black);
  color: var(--white);
}

.modal__name {
  font-size: 1.875rem;
}

.modal__text {
  font-size: 1rem;
  margin: 28px 10% 0;
}

.modal-image__family {
  margin-top: 32px;
  border-radius: 12px;
  border: solid 3px var(--black)
}



/* modal close */
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 36px;
  height: 36px;
  border-radius: 50%;

  background: var(--white);
  border: 3px solid var(--main);
}

.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 3px;
  background: var(--main);
  border-radius: 5px;
}

.modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* decoration */
.character__body {
  position: relative;
}

.ornament-dog {
  position: absolute;
  bottom: -1%;
  left: 25%;
  width: 27%;
  z-index: 1;
}
.ornament-Plants {
  position: absolute;
  bottom: -1%;
  right: 0;
  width: 35%;
  z-index: 90;
  pointer-events: none;
}

.friends__character--payapaya {
  position: absolute;
  width: 22%;
  top: -120%;
  right: 1.3%;
  pointer-events: auto;
}


/* =========================================================
SP対応（767px以下）
========================================================= */
@media (max-width:767px){
  .character__title {
    padding-top: clamp(54px, 9vh, 120px); 
  }

  /* modal */
  .modal__inner {
    position: relative;
    z-index: 1;
    width: 86%;
    margin: 64px auto;
    background: #fff;
    border-radius: 16px;
    border: solid 3px var(--main);
    overflow-y: scroll;
    max-height: calc(100vh - 128px);
  }

  .modal__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 18% 0 14%;
    font-weight: bold;
  }

  .modal-image__character,
  .modal-image__family {
    width: 60%;
  }

  .modal__label {
    margin-top: 16px;
    padding: 3px 8px;
    font-size: 0.5rem;
    border-radius: 100px;
    background-color: var(--black);
    color: var(--white);
  }

  .modal__name {
    font-size: 1.75rem;
  }

  .modal__text {
    font-size: 0.875rem;
    margin: 16px 10% 0;
  }

  .modal-image__family {
    margin-top: 30px;
  }
}
/* =========================================================
PC 大サイズ対応（1440px以下）
========================================================= */
@media (min-width:1440px) {
  .modal__inner {
    width: 510px;
    overflow-y: scroll;
    max-height: calc(100vh - 80px);
  }

  .modal__label {
    margin-top: 36px;
    font-size: 0.825rem;
    padding: 3px 8px;
    border-radius: 100px;
    background-color: var(--black);
    color: var(--white);
  }

  .modal__name {
    font-size: 2.5rem;
  }

  .modal__text {
    font-size: 1.3rem;
    margin: 36px 10% 0;
  }
}

