@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&display=swap');
@import url("reset.min.css");

:root {
  --width: 1200px;
  --padding-sides: 16px;
}
html {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  color: #000;
  background-color: #fff;
  @media (width <= 768px) {
    font-size: 12px;
  }
}

header, main > section {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--padding-sides);
}

header {
  max-width: var(--width);
  margin: 1.5em auto;
}
header .logo {
  position: relative;
  width: 170px;
}

footer {
  max-width: var(--width);
  margin: 0 auto;
  text-align: center;
}

ul {
  list-style: none;
}
.text-center {
  text-align: center;
}


/* -------------------------------------------------------------------------------- */

figcaption span {
  display: block;
}
figcaption span:nth-child(2) {
  font-size: .94rem;
}


/* -------------------------------------------------------------------------------- */
.burger {
  position: absolute;
  top: 1.5em;
  right: var(--padding-sides);
  display: none;
  flex-direction: column;
  gap: 7px;
  padding: 2px;
  cursor: pointer;
  z-index: 100;

  @media (width < 1024px) {
    display: flex;
  }
}

.burger span {
  width: 28px;
  height: 3px;
  background-color: #767676;
  transition: all .3s;
}
.burger.active span:nth-of-type(1) {
  transform: translateY(10px) rotate(-45deg);
}
.burger.active span:nth-of-type(2) {
  opacity: 0;
}
.burger.active span:nth-of-type(3) {
  transform: translateY(-10px) rotate(45deg);
}


#navMenu ul {
  list-style: none;
  text-align: center;
  font-weight: 500;
  font-size: 18px;
  line-height: 2.75;
  padding: 2.5em 2em;
}
#navMenu ul ul {
  padding: 0;
}
#navMenu a {
  display: block;
  color: #767676;
  text-decoration: none;
}

#navMenu .selected {
  color: #fff;
  background-color: #CC723D;
}

#navMenu {
  display: none;
  position: relative;
  @media (width <= 768px) {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background-color: rgba(245, 245, 245, 0.95);
    opacity: 0;
    transition: all .6s;
    z-index: 90;
    visibility: hidden;
  }
}
#navMenu.active {
  visibility: visible;
  opacity: 1;
}

/* -------------------------------------------------------------------------------- */
.hero {
  line-height: 1.25;
  padding: 0;

}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-image {
  opacity: 0;
  animation: fadeInUp 1.2s ease-out forwards;
}
.delay {
  animation-delay: 0.2s;
}

/* -------------------------------------------------------------------------------- */
.intro {
  padding: 1em max(var(--padding-sides), 2.75%) 5em;
}

.intro .date {
  font-size: 4.4rem;
  line-height: 1.25;
  @media (width <= 560px) {
    font-size: 2.4rem;
  }
}
.intro .date span {
  font-size: .4em;
  margin-left: -.25em;
  font-weight: bold;
}
.intro .place {
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 1.25;
  margin-bottom: 1em;
  @media (width <= 560px) {
    font-size: 1.5rem;
  }
}

.intro p {
  line-height: 1.75;
  font-size: 1.285rem;
  margin-bottom: 1em;
}

.intro p.en {
  font-size: .94rem;
}

/* -------------------------------------------------------------------------------- */
.loop {
  background-color: #251E1C;
  padding: 1.5em 0;
  max-width: 100%;
  margin: 0;
}

.splide {
  margin: 1.5em 0;
}
.splide__list img {
  max-height: 180px;
  @media (width <= 768px) {
    max-height: 120px;
  }
}


/* -------------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 6em var(--padding-sides) 6em var(--padding-sides);
  gap: 8em 2em;

  @media (width <= 768px) {
    grid-template-columns: 1fr;
    img {
      margin-inline: auto;
    }
  }
}

.gallery .outline {
  grid-column: 1 / 3;
  grid-row: 1;
  padding-bottom: 2em;
  @media (width <= 768px) {
    grid-column: 1;
  }
}
.gallery .outline h2 {
  font-size: 1.7rem;
}
.gallery .outline dl {
  display: grid;
  grid-template-columns: 5em 1fr;
  align-items: baseline;
  gap: .25em .125em;
  font-size: 1.285rem;
  margin: .75em 0 2em 0;
}
.gallery .outline dl.en {
  font-size: .94rem;
  grid-template-columns: 9em 1fr;
}
.gallery .outline dt {
  /* text-align-last: justify; */
}
.gallery .outline dt::after {
  content: ":";
}

.gallery .pict1 {
  grid-column: 1 / 3;
  grid-row: 2;
  @media (width <= 768px) {
    grid-column: 1;
    justify-self: center;
    figcaption {
      text-align: center;
    }
  }
}
.gallery .pict2 {
  grid-column: 1 / 3;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  gap: 1em;
  @media (width <= 768px) {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: 1fr;
    gap: 8em 2em;
    justify-items: center;
    figcaption {
      text-align: center;
    }
  }
}
.gallery .pict4 {
  grid-column: 1 / 2;
  grid-row: 4;
  justify-self: center;
  @media (width <= 768px) {
    grid-column: 1;
    grid-row: 4;
  }
}
.gallery .pict5 {
  grid-column: 2 / 4;
  grid-row: 4;
  align-self: end;
  @media (width <= 768px) {
    grid-column: 1;
    grid-row: 5;
  }
}
.gallery .pict5 figure {
  display: grid;
  /* grid-template-columns: repeat(3, 1fr); */
  grid-template-columns: 152fr 168fr 153fr;
  justify-items: center;
  gap: 1em;

  width: fit-content;
  justify-self: center;

  figcaption {
    grid-column: 1 / 4;
  }
}

.gallery .pict8 {
  grid-column: 3 / 4;
  grid-row: 1 / 4;
  justify-self: center;
  @media (width <= 768px) {
    grid-column: 1;
    grid-row: 6;
  }
}
.gallery .pict8 figcaption {
  text-align: center;
}

.gallery figcaption {
  padding-bottom: 6em;
}


/* -------------------------------------------------------------------------------- */
/*ページトップに戻るボタン*/
#PageTop {
  display: none;
  position: fixed;
  bottom: 23px;
  right: 23px;
  margin: 0;
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom);

  opacity: 1;
  transition: opacity 0.4s ease-out;

  z-index: 5000;
}

#PageTop a {
  display: block;
  width: 75px;
  height: 75px;
  border-radius: 12px;
  background-image: url(/mod/base/gototop.png?v2);
  background-size: contain;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 3px #fff;
}

#PageTop a:active {
  filter: brightness(90%);
}

#PageTop img {
  display: none;
}

#PageTop.hidden,
#PageTop[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

@media (max-width:747px) {
  #PageTop {
    bottom: 8px;
    right: 8px;
  }

  #PageTop a {
    width: 42px;
    height: 42px;
    border-radius: 7px;
  }
}

@media (max-width:400px) {
  #PageTop a {
    width: 37px;
    height: 37px;
    border-radius: 6px;
  }
}
