@charset "UTF-8";
/*------------------------------------------------------------
  margin-bottom / margin-top / padding-top / padding-bottom 計算
------------------------------------------------------------*/
/*------------------------------------------------------------
  タイトル ＋ テキスト ラインハイトが異なる部分の余白計算 計算
------------------------------------------------------------*/
/* 
それぞれ( )内にpxでの数値を入れるとrem, px, vw(pc版), vw(sp版) に変換 
*/
/* 
それぞれ( )内にpxでの数値を入れるとrem, px, vw(pc版), vw(sp版) に変換 
*/
body:has(dialog[open]) {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: calc(100% - 4rem);
  max-height: calc(100% - 4rem);
  overflow: auto;
  border: none;
  z-index: 60;
  overscroll-behavior-y: none;
  padding: 0;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  opacity: 0;
}
.gallery-modal::-ms-backdrop {
  opacity: 0;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.gallery-modal::backdrop {
  opacity: 0;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.gallery-modal.js-show {
  opacity: 1;
}
.gallery-modal.js-show::-ms-backdrop {
  opacity: 1;
  background: rgba(0, 0, 0, 0.2);
}
.gallery-modal.js-show::backdrop {
  opacity: 1;
  background: rgba(0, 0, 0, 0.2);
}

.gallery-modal__inner {
  background: #fff;
  padding: 4rem 6rem 4rem;
}
@media screen and (max-width: 896px) {
  .gallery-modal__inner {
    padding: 0.8rem 1.6rem 1.6rem;
  }
}

.gallery-modal__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  position: sticky;
  top: 0;
}

.gallery-modal__body {
  margin-top: 1.2rem;
}
.gallery-modal__body p {
  font-size: 1.4rem;
}
.gallery-modal__body p:nth-child(n+2) {
  margin-top: 2rem;
}

.gallery-modal__close-button {
  width: 70%;
  margin-inline: auto;
  margin-top: 3rem;
  text-align: center;
}
.gallery-modal__close-button .button {
  padding-block: 1.4rem;
  padding-inline: 1.4rem;
  width: 100%;
  text-indent: 0.1em;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  font-weight: 300;
  width: 100%;
  color: #646464;
  display: inline-block;
  border: 1px solid #646464;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border-color: #d0758b;
}
@media (hover: hover) {
  .gallery-modal__close-button .button:hover {
    color: #a1003c;
    background-color: #f9eff5;
    border-color: #f9eff5;
  }
}
@media screen and (max-width: 896px) {
  .gallery-modal__close-button .button {
    font-size: 1.8rem;
    padding-block: 0.8rem;
  }
}