﻿/* パンくず 追加スタイル PC */
@media only screen and (min-width: 768px){
  .breadcrumb__list{
    padding-bottom: 1.6rem;
  }
}

/* LPコンテンツ */
.main-area {
  --font-minion-pro: "minion-pro";
  --font-hiragino-mincho: "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "HiraMinProN", "游明朝体", "Yu Mincho", YuMincho, "MS P明朝", "MS PMincho", source-han-serif-japanese;

  --font-default: var(--font-minion-pro), var(--font-hiragino-mincho), serif;
  --font-ja: var(--font-hiragino-mincho), serif;
  --font-en: var(--font-minion-pro), serif;

  font-family: var(--font-default);
  margin: 0 auto;
}
.main-area :where(img, svg, iframe) {
  width: 100%;
  height: auto;
}
.main-area .js-fadeIn {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}
.main-area .js-fadeIn.active {
  opacity: 1;
  transform: translateY(0);
}
.main-area .js-randomText .line-text > span {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.main-area .js-randomText.active .line-text > span {
  opacity: 1;
}
/* Gallery */
.p-gallery {
  margin: 0 auto;
}
.p-gallery__group {
  width: var(--gallery-group-container, var(--gallery-group-container-default));
  margin: 0 auto;
}
.p-gallery__group--full {
  --gallery-group-container: var(--gallery-group-container-full);
}
.p-gallery__group--sm {
  --gallery-group-container: var(--gallery-group-container-sm);
}
.p-gallery__group--col2,
.p-gallery__group--masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.p-gallery__group--col3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.p-gallery__group--masonry > *:nth-child(1) {
  grid-area: 1 / 1 / 2 / 2;
}
.p-gallery__group--masonry > *:nth-child(2) {
  grid-area: 2 / 1 / 3 / 2;
}
.p-gallery__group--masonry > *:nth-child(3) {
  grid-area: 1 / 2 / 3 / 3;
}
.p-gallery__group--sticky > *:nth-child(1) {
  position: sticky;
  top: calc(50vh / 2);
  z-index: 1;
}
.p-gallery__group--sticky > *:nth-child(2) {
  position: relative;
  z-index: 2;
}
.p-gallery__group button {
  width: 100%;
}
.p-gallery__introduction {
  --color-introduction-purple: rgb(224 187 218 / 0.6);
  --color-introduction-blue: rgb(167 208 239 / 0.6);

  display: grid;
  font-family: var(--font-en);
}
.p-gallery__introduction::before {
  content: "";
  display: block;
  grid-area: 2 / 1 / 3 / 2;
  place-self: end start;
  z-index: 1;
  background-color: var(--color-introduction-blue);
}
.p-gallery__introduction-heading {
  grid-area: 1 / 1 / 2 / 2;
  place-self: end start;
  z-index: 3;
  letter-spacing: 0.01em;
}
.p-gallery__introduction-image {
  grid-area: 1 / 1 / 3 / 3;
  place-self: start end;
  z-index: 2;
}
.p-gallery__introduction-lead {
  grid-area: 2 / 1 / 3 / 2;
  place-self: start end;
  z-index: 3;
  line-height: 1.5;
  letter-spacing: 0.01em;
  background-color: var(--color-introduction-purple);
}
/* Modal */
.p-modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  display: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: var(--white, #fff);
}
.p-modal-body-wrap{
  display: grid;
  height: 100%;
}
.p-modal-body {
  height: 100%;
  margin: 0 auto;
}
.p-modal-contents {
  position: relative;
  display: grid;
}
.p-modal-close {
  position: absolute;
  z-index: 1;
}
.p-modal__image {
}
.p-modal__image img {
  object-fit: contain;
}
.p-modal__text-wrapper {
}
.p-modal__text {
  font-weight: var(--font-weight-regular, 400);
  line-height: 2;
  letter-spacing: 0.05em;
}
.p-modal__text span{
  font-weight: bold;
}
.p-modal__credit {
  display: inline;
  text-decoration: underline;
}
.p-modal__credit--disabled {
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}
/* Button */
.p-button {
  display: grid;
  place-items: center;
  margin: 0 auto;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--black, #000);
}
/* --- for small viewport --- */
@media screen and (max-width: 767px) {
  .main-area {
    width: 100%;
    padding-bottom: calc(112 *(100vw / 375));
  }
  /* Gallery */
  .p-gallery {
    width: 100%;
    margin-top: calc(40 * (100vw / 375));
  }
  .p-gallery__group {
    --gallery-group-container-full: 100%;
    --gallery-group-container-default: calc(339 * (100vw / 375));
    --gallery-group-container-sm: calc(250 * (100vw / 375));
  }
  .p-gallery__group + .p-gallery__group,
  .p-gallery__group--sticky > * + * {
    margin-top: calc(30 * (100vw / 375));
  }
  .p-gallery__group--col2,
  .p-gallery__group--masonry {
    gap: calc(7 * (100vw / 375));
  }
  .p-gallery__group--col3 {
    gap: calc(6 * (100vw / 375));
  }
  .p-gallery__introduction {
    row-gap: calc(10 * (100vw / 375));
    grid-template-columns: calc(367 * (100vw / 375)) minmax(0, 1fr);
    grid-template-rows: calc(190 * (100vw / 375)) calc(187 * (100vw / 375));
    margin: calc(40 * (100vw / 375)) auto;
  }
  .p-gallery__introduction::before {
    width: calc(359 * (100vw / 375));
    height: calc(179 * (100vw / 375));
  }
  .p-gallery__introduction-heading {
    margin-left: calc(8 * (100vw / 375));
    font-size: calc(32 * (100vw / 375));
  }
  .p-gallery__introduction-image {
    width: calc(335 * (100vw / 375));
    height: calc(252 * (100vw / 375));
  }
  .p-gallery__introduction-lead {
    width: calc(359 * (100vw / 375));
    padding: calc(30 * (100vw / 375)) calc(15 * (100vw / 375)) calc(17 * (100vw / 375));
    font-size: calc(11 * (100vw / 375));
  }
  /* Modal */
  .p-modal-body {
    width: 100%;
    padding: calc(80 * (100vw / 375)) calc(30 * (100vw / 375)) 0;
    overflow-y: scroll;
    overflow-x: hidden;
  }
  .p-modal-contents {
    grid-template-columns: 100%;
    row-gap: calc(20 * (100vw / 375));
  }
  .p-modal-close {
    top: calc(-50 * (100vw / 375));
    right: 0;
    width: calc(20 * (100vw / 375));
    height: calc(20 * (100vw / 375));
  }
  .p-modal__image {
  }
  .p-modal__image img {
    width: calc(315 * (100vw / 375));
    height: calc(394 * (100vw / 375));
  }
  /* .p-modal__text-wrapper {
    overflow-y: auto;
    overscroll-behavior-y: contain;
  } */
  .p-modal__text-wrapper {
    padding-bottom: calc(20 * (100vw / 375)) ;
  }   
  .p-modal__text {
    font-size: calc(12 * (100vw / 375));
  }
  .p-modal__credit {
  }
  /* Button */
  .p-button {
    width: calc(266 * (100vw / 375));
    height: calc(50 * (100vw / 375));
    margin-top: calc(60 * (100vw / 375));
    font-size: calc(14 * (100vw / 375));
  }
}
/* --- for large viewport --- */
@media screen and (min-width: 768px) {
  .main-area {
    width: min(100%, 124rem);
    padding: 0 2rem 10rem;
  }
  /* Gallery */
  .p-gallery {
    width: 80rem;
    margin-top: 6rem;
  }
  .p-gallery__group {
    --gallery-group-container-full: 100%;
    --gallery-group-container-default: 60rem;
    --gallery-group-container-sm: 40rem;
  }
  .p-gallery__group + .p-gallery__group,
  .p-gallery__group--sticky > * + * {
    margin-top: 4rem;
  }
  .p-gallery__group--col2,
  .p-gallery__group--masonry {
    gap: 1.2rem;
  }
  .p-gallery__group--col3 {
    gap: 1.3rem;
  }
  .p-gallery__introduction {
    row-gap: 2rem;
    grid-template-columns: 53.15rem minmax(0, 1fr);
    grid-template-rows: 28.4rem 25.3rem;
    margin: 6rem auto;
  }
  .p-gallery__introduction::before {
    width: 51.7rem;
    height: 23.8rem;
  }
  .p-gallery__introduction-heading {
    font-size: 4.8rem;
  }
  .p-gallery__introduction-image {
    width: 60rem;
    height: 45rem;
  }
  .p-gallery__introduction-lead {
    width: 51.7rem;
    padding: 4rem 4rem 1.8rem;
    font-size: 1.5rem;
  }
  /* Modal */
  .p-modal {
    padding: 4rem 0;
  }
  .p-modal-inner {
    display: grid;
    place-content: center;
    width: 100%;
    height: 100%;
  }
  .p-modal-body {
    position: relative;
    width: 104rem;
    height: 62rem;
    padding: 0 2rem;
    margin: 0 auto;
  }
  .p-modal-contents > * {
    grid-area: 1 / 1 / 2 / 2;
  }
  .p-modal-close {
    top: 0;
    right: 0;
    width: 2rem;
    height: 2rem;
  }
  .p-modal__image,
  .p-modal__text-wrapper {
  }
  .p-modal__image {
    place-self: center;
  }
  .p-modal__image img {
    width: 49.6rem;
    height: 62rem;
  }
  .p-modal__text-wrapper {
    display: grid;
    place-items: end;
    place-self: end;
  }
  .p-modal__text {
    font-size: 1.2rem;
  }
  /* Button */
  .p-button {
    width: 26.6rem;
    height: 5rem;
    margin-top: 8rem;
    font-size: 1.4rem;
  }
}
