.page-sand-statue .l-page-wrap {
  background: url(../img/bg1.webp) repeat-y;
  background-size: 100%;
}
.page-sand-statue .c-kv {
  background-image: url(../img/kv/kv-sand.webp);
  background-position: center top;
}
.page-sand-statue .footer {
  background-image: url(../img/footer/footer.webp);
}
.about__box {
  display: flex;
  flex-direction: column;
  row-gap: 80px;
  margin-bottom: 80px;
}
.about__item {
  display: flex;
}
.about__item--right {
  flex-direction: row-reverse;
}
.about__item-img {
  width: 50%;
}
.about__item--center .about__item-img {
  width: 25%;
}
.about__item-img img {
  border-radius: 4vw;
}
.about__item-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50%;
  text-align: center;
  padding: 0 5%;
}
.about__item-head {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.about__item-content {
  color: var(--text);
  line-height: 1.8;
  word-break: auto-phrase;
}
.about__movie-head {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.movie__box {
  display: flex;
  flex-direction: column;
  row-gap: 24px;
}
.movie__item {
  height: 50vw;
  max-height: 655px;
}
.history__head {
  display: flex;
  align-items: center;
  background-color: var(--white);
  border: 4px solid var(--main);
  border-radius: 30px;
  padding: 24px 40px;
}
.history__head-img {
  width: 32%;
}
.history__head-text {
  width: 68%;
  color: var(--text);
  font-size: min(3.125vw, 2.5rem);
  text-align: center;
}
.history__head-text em {
  display: block;
  color: var(--main);
  font-size: min(6.25vw, 5rem);
  line-height: 1.2;
}
.history__item {
  display: flex;
}
.history__date {
  width: 22%;
  color: var(--main);
  font-size: min(3.125vw, 2.5rem);
  font-weight: var(--bold);
  border-right: 12px solid var(--gray);
  padding-top: 32px;
  position: relative;
}
.history__item:last-of-type .history__date {
  border-color: transparent;
}
.history__item:last-of-type .history__date::before {
  content: "";
  width: 12px;
  height: 46px;
  background-color: var(--gray);
  position: absolute;
  top: 0;
  right: -12px;
}
.history__date::after {
  content: "";
  display: block;
  background-color: var(--main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: absolute;
  top: 44px;
  right: -26px;
}
.history__content {
  width: calc(78% - 48px);
  display: flex;
  align-items: flex-start;
  background-color: var(--white);
  border: 4px solid var(--main);
  border-radius: 30px;
  padding: 16px 2% 16px 3%;
  margin-top: 24px;
  margin-left: 48px;
  position: relative;
}
.history__content::before,
.history__content::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  position: absolute;
}
.history__content::before {
  border-right: 28px solid var(--main);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  top: 38px;
  left: -32px;
}
.history__content::after {
  border-right: 24px solid var(--white);
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  top: 40px;
  left: -24px;
  z-index: 1;
}
.history__content-text {
  width: 66%;
  padding-right: 5%;
}
.history__title {
  color: var(--main);
  font-size: 1.5rem;
}
.history__disc {
  border-top: 1px solid var(--text);
  color: var(--text);
  font-size: .875rem;
  padding-top: 16px;
  margin-top: 16px;
}
.history__disc-head {
  font-weight: var(--bold);
  margin-bottom: 8px;
}
.history__disc-head::before {
  content: "●";
}
.history__disc-list {
  list-style-type: disc;
  padding-left: 1.5em;
}
.history__content-img {
  width: 34%;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, .5);
}
.gallery__title {
  background-color: var(--main-m);
  color: var(--white);
  font-family: "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
  font-size: 3rem;
  line-height: 1;
  text-align: center;
  border-radius: 20px;
  padding: 8px;
  margin-bottom: 48px;
}
.gallery__box {
  margin-bottom: 80px;
}
.gallery__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.gallery__box img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  cursor: pointer;
}
.gallery__nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.gallery__nav-item a {
  display: block;
  background-color: var(--white);
  color: var(--main-d);
  font-size: 1.25rem;
  font-weight: var(--bold);
  text-align: center;
  border: 4px solid var(--main-d);
  border-radius: 15px;
  padding: 4px 8px;
}
.gallery__nav-item a:hover {
  background-color: var(--main-d);
  color: var(--white);
}

@media (max-width: 1023px) {
  .about__box { margin-bottom: 48px;}
  .about__item { flex-direction: column;}
  .about__item-img { width: 100%; margin-bottom: 16px;}
  .about__item--center .about__item-img { width: 100%; margin-bottom: 32px;}
  .about__item--center .about__item-img:last-of-type { margin: 32px 0 0;}
  .about__item-text { width: 100%;}
  .about__movie-head { text-align: center;}
  .history__box { margin-left: 24px;}
  .history__item { display: block; border-left: 4px solid var(--gray); position: relative;}
  .history__item:last-of-type { border-color: transparent;}
  .history__item:last-of-type::before {
    content: "";
    width: 4px;
    height: 40px;
    background-color: var(--gray);
    position: absolute;
    top: 0;
    left: -4px;
  }
  .history__item::after {
    content: "";
    display: block;
    background-color: var(--main);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: absolute;
    top: 38px;
    left: -12px;
  }
  .history__head { display: block; padding: 16px;}
  .history__item:last-of-type .history__date::before { content: none;}
  .history__head-img,
  .history__head-text { width: 100%; font-size: 1rem; margin-top: 8px;}
  .history__head-text em { font-size: 2rem;}
  .history__date { width: calc(100% - 32px); font-size: 1.125rem; border: none; margin-left: 32px;}
  .history__date::after { content: none;}
  .history__content {
    width: calc(100% - 32px);
    flex-direction: column-reverse;
    padding: 16px 5%;
    margin-top: 8px;
    margin-left: 32px;
  }
  .history__item:last-of-type .history__content { width: 100%; margin-left: 0;}
  .history__item:last-of-type .history__content::before,
  .history__item:last-of-type .history__content::after {
    content: none;
  }
  .history__content-img { width: 100%; border: 1px solid var(--gray); box-shadow: none; margin-bottom: 8px;}
  .history__content-text { width: 100%;}
  .history__title { font-size: min(3vw, 1.5rem); text-align: center;}
  .history__disc { font-size: .875rem;}
  .history__content-text { padding-right: 0;}
  .history__disc-list { padding-left: 1em;}
  .gallery__box { margin-bottom: 48px;}
  .gallery__title { font-size: 1.5rem; margin-bottom: 24px;}
  .gallery__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2% 16px;
  }
  .gallery__nav { grid-template-columns: repeat(3, 1fr); column-gap: 2%; row-gap: 16px;}
  .gallery__nav-item a { font-size: 1.125rem; border-width: 2px; padding: 4px;}
}