/* 実績ポップアップ（Enty / ネフライト） */

/* ----- 1G Enty ----- */
.js_modalCont--enty .enty-modal__stage {
  position: relative;
  width: 100%;
  container-type: inline-size;
}

.js_modalCont--enty .enty-modal__stage--pc {
  aspect-ratio: 1971 / 819;
}

.js_modalCont--enty .enty-modal__stage--sp {
  aspect-ratio: 1449 / 1675;
}

.block1__contents1 .popup .js_modalCont.js_modalCont--enty .enty-modal__stage img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
}

.js_modalCont--enty .enty-modal__comment {
  position: absolute;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
  text-align: left;
  font-weight: 700;
  color: #1f1f2e;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.js_modalCont--enty .enty-modal__stage--pc .enty-modal__comment {
  left: 59.2%;
  top: 30%;
  width: 38%;
  padding: 0 5%;
  font-size: calc(100cqw * 30 / 1971);
  line-height: 1.8;
  text-align: justify;
}

.js_modalCont--enty .enty-modal__stage--sp .enty-modal__comment {
  left: 13%;
  top: 66%;
  width: 74%;
  padding: 0 3%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  font-size: calc(100cqw * 40 / 1449);
  line-height: 1.53;
  text-align: justify;
}

/* ----- 10G（外枠1G原寸・内側10G原寸比で中央＝余白） ----- */
.lp10g .js_modalCont--enty .enty-modal__stage--pc {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lp10g .js_modalCont--enty .enty-modal__stage--sp {
  display: none;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .lp10g .js_modalCont--enty .enty-modal__stage--pc {
    display: none;
  }

  .lp10g .js_modalCont--enty .enty-modal__stage--sp {
    display: flex;
  }
}

.lp10g .js_modalCont--enty .enty-modal__stage--pc {
  aspect-ratio: 1971 / 819;
}

.lp10g .js_modalCont--enty .enty-modal__stage--sp {
  aspect-ratio: 1449 / 1675;
}

.lp10g .js_modalCont--enty .enty-modal__stage {
  position: relative;
  width: 100%;
}

.lp10g .js_modalCont--enty .enty-modal__media {
  position: relative;
  height: 100%;
  width: auto;
  max-width: 100%;
  container-type: inline-size;
}

.lp10g .js_modalCont--enty .enty-modal__media--pc {
  aspect-ratio: 1882 / 812;
}

.lp10g .js_modalCont--enty .enty-modal__media--sp {
  aspect-ratio: 1360 / 1629;
}

.lp10g .block1__contents1 .popup .js_modalCont.js_modalCont--enty .enty-modal__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}

@media (max-width: 768px) {
  .lp10g .hero .block1__contents1 .popup .js_modalContInner:has(.js_modalCont--enty) {
    padding-top: 2.5rem;
    box-sizing: border-box;
  }
}

.lp10g .hero .block1__contents1 .popup .js_modalCont.js_modalCont--enty .enty-modal__comment {
  position: absolute;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
  text-align: left;
  font-weight: 700;
  color: #1f1f2e;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.lp10g .hero .block1__contents1 .popup .js_modalCont.js_modalCont--enty .enty-modal__stage--pc .enty-modal__comment {
  left: 60%;
  top: 34%;
  width: 39%;
  padding: 0 5%;
  font-size: calc(100cqw * 30 / 1882);
  line-height: 1.8;
  text-align: justify;
}

.lp10g .hero .block1__contents1 .popup .js_modalCont.js_modalCont--enty .enty-modal__stage--sp .enty-modal__comment {
  left: 11.5%;
  top: 68.5%;
  width: 77%;
  padding: 0 3%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  font-size: calc(100cqw * 40 / 1360);
  line-height: 1.53;
  text-align: justify;
}

/* PC: 4人横並び */
@media screen and (min-width: 769px) {
  .block1__contents1,
  .hero .block1__contents1 {
    max-width: 1200px;
  }

  .block1__contents1 .popup {
    flex-wrap: nowrap;
  }

  .block1__contents1 .popup .show_pop,
  .hero .block1__contents1 .popup .show_pop {
    width: 25%;
    max-width: none;
    margin-left: 0;
    flex-shrink: 1;
  }

  .lp10g .hero .block1__contents1 .popup {
    flex-wrap: nowrap;
    gap: 0 3.5rem;
    padding: 0 2rem;
    box-sizing: border-box;
  }

  .lp10g .hero .block1__contents1 .popup .show_pop {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }
}
