/* Ported from panbe_theme member section (rem → px @ 62.5% root = 10px)
   PC (section-inner 880px / viewport 1280): 4列横並び */
.p-memberList {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 16px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 50px;
}

.p-memberBox {
  width: 100%;
  max-width: none;
  position: relative;
  margin: 0 0;
}

.p-memberBox img {
  width: 100%;
  height: auto;
}

.p-memberBox a {
  cursor: pointer;
  display: block;
  color: inherit;
}

.p-memberBox:hover .p-memberYellow {
  color: #fff;
  background: linear-gradient(135deg, transparent 7px, #74dde5 0) top left,
    linear-gradient(-135deg, transparent 7px, #74dde5 0) top right,
    linear-gradient(-45deg, transparent 7px, #74dde5 0) bottom right,
    linear-gradient(45deg, transparent 7px, #74dde5 0) bottom left;
  background-size: 50% 50%;
  background-repeat: no-repeat;
  transition: 0.3s all;
  z-index: 1;
}

.p-memberBox:hover .p-memberBlue {
  color: #fff;
  transition: 0.3s all;
  background: linear-gradient(135deg, transparent 7px, #a8a8f9 0) top left,
    linear-gradient(-135deg, transparent 7px, #a8a8f9 0) top right,
    linear-gradient(-45deg, transparent 7px, #a8a8f9 0) bottom right,
    linear-gradient(45deg, transparent 7px, #a8a8f9 0) bottom left;
  background-size: 50% 50%;
  background-repeat: no-repeat;
  z-index: 1;
}

.p-memberBox:hover .p-memberGreen {
  color: #fff;
  background: linear-gradient(135deg, transparent 7px, #a8a8a8 0) top left,
    linear-gradient(-135deg, transparent 7px, #a8a8a8 0) top right,
    linear-gradient(-45deg, transparent 7px, #a8a8a8 0) bottom right,
    linear-gradient(45deg, transparent 7px, #a8a8a8 0) bottom left;
  background-size: 50% 50%;
  background-repeat: no-repeat;
  transition: 0.3s all;
  z-index: 1;
}

.p-memberBox:hover .p-memberGray {
  color: #fff;
  background: linear-gradient(135deg, transparent 7px, #f8d414 0) top left,
    linear-gradient(-135deg, transparent 7px, #f8d414 0) top right,
    linear-gradient(-45deg, transparent 7px, #f8d414 0) bottom right,
    linear-gradient(45deg, transparent 7px, #f8d414 0) bottom left;
  background-size: 50% 50%;
  background-repeat: no-repeat;
  transition: 0.3s all;
  z-index: 1;
}

.p-memberName {
  font-size: 18px;
  margin: 0 auto;
  padding: 0 10px;
  width: 170px;
  height: 37px;
  max-width: 176px;
  text-align: center;
  box-sizing: border-box;
  font-family: "Zen Maru Gothic", sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  bottom: -36px;
  transition: 0.3s all;
  background: linear-gradient(135deg, transparent 6.3px, #ffffff 0) top left,
    linear-gradient(-135deg, transparent 6.3px, #ffffff 0) top right,
    linear-gradient(-45deg, transparent 6.3px, #ffffff 0) bottom right,
    linear-gradient(45deg, transparent 6.3px, #ffffff 0) bottom left;
  background-size: 50% 50%;
  background-repeat: no-repeat;
  z-index: 4;
}

.p-memberName-min {
  font-size: 18px;
  margin: 0 auto;
  padding: 0 10px;
  width: 176px;
  height: 42px;
  max-width: 176px;
  text-align: center;
  box-sizing: border-box;
  font-family: "Zen Maru Gothic", sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  bottom: -41px;
  transition: 0.3s all;
}

.membercolor1 {
  background: linear-gradient(135deg, transparent 7.5px, #a8a8f9 0) top left,
    linear-gradient(-135deg, transparent 7.5px, #a8a8f9 0) top right,
    linear-gradient(-45deg, transparent 7.5px, #a8a8f9 0) bottom right,
    linear-gradient(45deg, transparent 7.5px, #a8a8f9 0) bottom left;
  background-size: 50% 50%;
  background-repeat: no-repeat;
}

.membercolor2 {
  background: linear-gradient(135deg, transparent 7.5px, #74dde5 0) top left,
    linear-gradient(-135deg, transparent 7.5px, #74dde5 0) top right,
    linear-gradient(-45deg, transparent 7.5px, #74dde5 0) bottom right,
    linear-gradient(45deg, transparent 7.5px, #74dde5 0) bottom left;
  background-size: 50% 50%;
  background-repeat: no-repeat;
}

.membercolor4 {
  background: linear-gradient(135deg, transparent 7.5px, #a8a8a8 0) top left,
    linear-gradient(-135deg, transparent 7.5px, #a8a8a8 0) top right,
    linear-gradient(-45deg, transparent 7.5px, #a8a8a8 0) bottom right,
    linear-gradient(45deg, transparent 7.5px, #a8a8a8 0) bottom left;
  background-size: 50% 50%;
  background-repeat: no-repeat;
}

.membercolor5 {
  background: linear-gradient(135deg, transparent 7.5px, #f8d414 0) top left,
    linear-gradient(-135deg, transparent 7.5px, #f8d414 0) top right,
    linear-gradient(-45deg, transparent 7.5px, #f8d414 0) bottom right,
    linear-gradient(45deg, transparent 7.5px, #f8d414 0) bottom left;
  background-size: 50% 50%;
  background-repeat: no-repeat;
}

.p-memberName span {
  font-size: 10px;
  font-feature-settings: "palt";
}

.p-memberYellow {
  color: #74dde5;
}

.p-memberBlue {
  color: #a8a8f9;
}

.p-memberGreen {
  color: #a8a8a8;
}

.p-memberGray {
  color: #f8d414;
}

/* Modal */
.modalArea {
  display: none;
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modalArea.is-open {
  display: block;
}

.modalBg {
  width: 100%;
  height: 100%;
  background-color: rgba(237, 156, 188, 0.7);
  transition: 0.7s;
}

.u-bg-yellow {
  background-color: rgba(116, 221, 229, 0.7);
}

.u-bg-blue {
  background-color: rgba(168, 168, 249, 0.7);
}

.u-bg-green {
  background-color: rgba(168, 168, 168, 0.7);
}

.u-bg-gray {
  background-color: rgba(248, 212, 20, 0.7);
}

.modalWrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70.85%;
  padding: 60px 30px;
  box-sizing: border-box;
  background-color: #fff;
  height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 6px solid #ff8593;
  border-radius: 15px;
  overflow: scroll;
  z-index: 20;
}

.u-yellow-border {
  border-color: #74dde5;
}

.u-blue-border {
  border-color: #a8a8f9;
}

.u-green-border {
  border-color: #a8a8a8;
}

.u-gray-border {
  border-color: #f8d414;
}

.closeModal {
  position: absolute;
  top: 22px;
  right: 33px;
  font-size: 30px;
  cursor: pointer;
  color: #a0a0a0;
  line-height: 1;
}

.modalContents {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  height: 100%;
}

.c-modalImg {
  width: 280px;
  max-width: 40%;
}

.c-modalImg img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: skewX(-2deg);
}

.u-yellow-shadow {
  box-shadow: 7px 7px #74dde5;
}

.u-blue-shadow {
  box-shadow: 7px 7px #a8a8f9;
}

.u-green-shadow {
  box-shadow: 7px 7px #a8a8a8;
}

.u-gray-shadow {
  box-shadow: 7px 7px #f8d414;
}

.c-modalTxt {
  margin-left: 40px;
  width: 44%;
  padding-bottom: 40px;
}

.u-fc-yellow {
  color: #74dde5;
}

.u-fc-blue {
  color: #a8a8f9;
}

.u-fc-green {
  color: #a8a8a8;
}

.u-fc-gray {
  color: #f8d414;
}

.c-modalTxt h4 {
  font-size: 30px;
  font-family: "Zen Maru Gothic", sans-serif;
  line-height: 39px;
  margin: 0 0 10px;
}

.c-modalTxt h4 span {
  font-size: 23px;
  display: flex;
  align-items: center;
}

.c-modalTxt p {
  margin: 0;
  font-size: 18px;
  line-height: 31px;
}

.c-modalTxt .mysta {
  width: 21px;
  margin-right: 10px;
}

.p-prf-sns {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-prf-sns a {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.p-prf-sns svg {
  width: 22px;
  height: 22px;
}

.p-prf-sns .fa-instagram {
  font-size: 24px;
}

.p-prf-sns .fa-tiktok {
  font-size: 20px;
}

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

@media (min-width: 1400px) {
  .modalWrapper {
    height: auto !important;
  }
}

@media (max-width: 1000px) {
  .modalWrapper {
    width: 90%;
    height: 80vh;
  }
}

@media (max-width: 767px) {
  .p-memberList {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 4%;
    margin-bottom: 24px;
  }

  .p-memberBox {
    margin: 0 0 48px;
  }

  /* 参照テーマ同様: 白ネーム 170×37 / 色枠 176×42 の差で縁を作る */
  .p-memberName {
    width: 170px;
    max-width: 80%;
    height: 37px;
    padding: 0 10px;
    font-size: 14px;
    bottom: -36px;
  }

  .p-memberName-min {
    width: 176px;
    max-width: 83%;
    height: 42px;
    bottom: -41px;
  }
}

/* panbe_theme モーダル SP（images/style.css / css/style.css と同等） */
@media screen and (max-width: 750px) {
  .c-modalTxt {
    margin-left: 30px;
    width: 95%;
  }

  .c-modalImg {
    width: 310px;
    max-width: 80%;
  }

  .modalWrapper {
    width: 90%;
    height: 80vh;
    align-items: flex-start;
    overflow: scroll;
  }

  .closeModal {
    top: 13px;
    right: 13px;
  }

  .c-modalTxt h4 {
    font-size: 22px;
  }

  .c-modalTxt h4 span {
    font-size: 18px;
  }

  .c-modalTxt p {
    font-size: 14px;
    line-height: 27px;
  }
}

@media screen and (max-width: 550px) {
  .modalContents {
    display: block;
  }

  .c-modalTxt {
    margin-left: 0;
    margin-top: 30px;
  }

  .c-modalImg {
    width: 80%;
    max-width: 250px;
    margin-right: auto;
  }
}

@media screen and (max-width: 480px) {
  .modalWrapper {
    align-items: flex-start;
    padding: 40px 7vw;
  }
}
