* {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  color: #231916;
  background-color: #F5F5F5;
  font-size: 18px;
  font-family: "Noto Serif JP", serif;
}

a {
  text-decoration: none;
  transition: opacity ease .2s;

  &:hover {
    opacity: .8;
  }
}

img {
  display: block;
  margin: auto;
  max-width: 100%;
  height: auto;
}

header {
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;

  img {
    height: 26px;
  }
}

.sns {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: right;
  font-family: auto;
  z-index: 2;

  &.bottom {
    display: none;
  }

  a {
    display: block;
    height: 40px;
    line-height: 40px;
    color: #231916;
  }
}

#main-board {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: url(../img/main_bg.webp) no-repeat center/cover;

  h1 {
    padding: 24px;
    animation: show ease 2s forwards;

    img {
      display: block;
      max-width: 100%;
      height: auto;
    }
  }
}

@keyframes show {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#toc {
  position: absolute;
  bottom: 24px;
  width: 100%;
  z-index: 2;

  ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 20px;

    li {
      position: relative;
      opacity: 0;
      animation: nav-show ease 0.6s 1s forwards;

      &:nth-child(2) {
        animation-delay: 1.1s;
      }

      &:nth-child(3) {
        animation-delay: 1.2s;
      }

      &:nth-child(4) {
        animation-delay: 1.3s;
      }

      &:nth-child(5) {
        animation-delay: 1.4s;
      }

      &::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 0;
        height: 1px;
        background-color: #231916;
        transform: translateX(-50%);
        transition: width ease .2s;
      }

      &:hover::after {
        width: 100%;
      }
    }
  }

  a {
    color: #231916;
  }
}

@keyframes nav-show {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 24px;

  &:nth-child(even) {
    background-color: #e0e0e0;
  }

  &::after {
    content: "";
    position: absolute;
    top: -120px;
    left: 0;
    width: 100%;
    height: 240px;
    background: url(../img/hr.webp) repeat-x;
    z-index: 1;
  }
}

.inner {
  margin: auto;
  max-width: 720px;
}

h2 {
  text-align: center;
  font-size: 32px;
  padding: 24px;
}

h3 {
  margin: 40px auto 24px;
}

#introduction {
  background: url(../img/bg_introduction.webp) left center no-repeat;

  p {
    margin-bottom: 24px;
  }
}

#interview {
  background: url(../img/bg_interview.webp) center no-repeat;

  .inner {
    display: flex;
    flex-direction: column;

    a {
      color: #231916;

      img {
        width: 100%;
        height: auto;
        margin-bottom: 24px;
      }
    }
  }
}

#celebration {
  background: url(../img/bg_celebration.webp) right center no-repeat;

  p {
    margin-bottom: 24px;
  }
}

#gallery {
  background: url(../img/bg_gallery.webp) left top no-repeat;

  ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;

    li {
      cursor: pointer;
      aspect-ratio: 4/3;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }
}

#gallery-modal {
  overflow: hidden;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100vw;
  height: 100dvh;
  background-color: rgb(0 0 0 / .5);
  z-index: 1;
  box-sizing: border-box;
  backdrop-filter: blur(12px);
  pointer-events: none;
  transition: opacity ease .3s;
  z-index: 3;

  &.show {
    opacity: 1;
    pointer-events: all;
  }

  .gallery-move {
    position: absolute;
    top: calc(50% - 20px);
    left: 40px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #fff;
    font-size: 40px;
    transition: all ease .3s;
    cursor: pointer;
    z-index: 1;
    text-shadow: 0px 0px 1px rgb(33 33 33 / 0.8);

    &.disable {
      pointer-events: none;
      opacity: .2;
    }

    &.right {
      left: auto;
      right: 40px;
    }

    &:hover {
      transform: scale(1.5);
    }
  }

  #gallery-modal-close {
    position: absolute;
    bottom: 24px;
    left: 40px;
    width: 24px;
    height: 24px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1;
  }

  #gallery-modal-list {
    position: relative;
    display: flex;
    height: 100dvh;
    transition: opacity ease .2s;

    &.move {
      transition: transform ease .2s;
    }

    &.change {
      opacity: 0;
    }

    >li {
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 16px;
      width: 100vw;
      box-sizing: border-box;

      .top {
        display: flex;
        justify-content: center;
        margin: auto;
        width: fit-content;
        max-width: 100%;
        height: 100%;
        min-height: 0;

        img {
          max-height: 100%;
        }
      }
    }

  }

  figure {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
}

#article {
  background: url(../img/bg_featurearticle.webp) right center no-repeat;

  ul {
    display: flex;
    gap: 24px;
  }

  a {
    color: #231916;
    transition: opacity ease .2s;

    &:hover {
      opacity: .8;
    }

    img {
      object-fit: cover;
      margin-bottom: 16px;
      width: 100%;
      height: auto;
      aspect-ratio: 16/9;
    }
  }
}

.copyright {
  text-align: center;
  font-size: 13px;
}

.movie {
  margin: 24px auto;

  iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;

  .logo {
    display: flex;
    align-items: flex-end;

    img {
      flex-shrink: 0;
      width: auto;
      height: 80px;
    }
  }


  div {
    font-size: 13px;
  }
}

@media screen and (max-width:440px) {
  #main-board {
    background: url(../img/main_bg_sp.webp) no-repeat center/cover;
  }

  #toc ul {
    gap: 16px;
    flex-direction: column;
    font-size: 16px;
  }

  .sns {
    position: relative;
    right: auto;
    bottom: auto;
    justify-content: center;
    flex-direction: row;

    &.bottom {
      display: flex;
      margin-bottom: 24px;
    }
  }

  #introduction {
    text-align: left;
  }

  #gallery {
    ul {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  #gallery-modal {
    #gallery-modal-list {
      >li {
        padding: 8px;
      }
    }

    .gallery-move {
      left: 8px;

      &.right {
        right: 8px;
      }
    }

    #gallery-modal-close {
      bottom: 12px;
      left: 8px;
    }
  }

  footer {
    div {
      span {
        display: block;
      }
    }

    .logo {
      img {
        height: 40px;
      }
    }
  }
}

@media (orientation: portrait) {
  #gallery-modal {

    .gallery-move {
      display: none;
    }

    #gallery-modal-list {
      >li {
        .top {
          flex-direction: column;

          img {
            width: 100%;
            height: 100%;
            max-height: 70%;
            object-fit: contain;
          }
        }
      }
    }
  }
}