@charset "utf-8";
/* ======== フレーム ======== */
main {
  overflow: hidden;
}
html, body, header, main, footer {
  width: 100%;
}
html, body, main {
  height: 100%;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  height: 30px;
  background: #000;
  z-index: 100;
}
header h1 {
  position: absolute;
  display: inline-block;
  max-width: 95%;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
main {
  position: relative;
}
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 30px;
  background: #000;
  z-index: 100;
}
footer #copyright {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font: 600 14px 'Titillium Web', sans-serif;
}
#slideshow {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
#slideshow ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  padding: 0 20px;
  gap: 40px;
}
#slideshow ul li {
  flex: 1 1 300px;
  max-width: 400px;
  padding: 0 10px;
  text-align: center;
}
#slideshow ul li a img {
  max-width: 400px;
  max-height: 70vh;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(4px 4px 2px rgba(0, 0, 0, 0.5));
  opacity: 0.8;
}
/* ======== hover img ======== */
#slideshow ul li a:hover img {
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
  opacity: 1;
}

/* ======== モバイル（共通） ======== */
@media screen and (max-width: 768px) {
  header h1 {
    font-size: 0.78rem;
    letter-spacing: 0;
  }
  footer #copyright {
    font-size: 12px;
  }
}

/* ======== ポートレート（縦長） ======== */
@media (orientation: portrait) and (max-width: 768px) {
  #slideshow {
    padding: 50px 20px;
    box-sizing: border-box;
  }
  #slideshow ul {
    gap: 12px;
    flex-direction: column;
    padding: 0;
  }
  #slideshow ul li {
    flex: 0 0 auto;
    max-width: 260px;
    width: 100%;
  }
  #slideshow ul li a img {
    max-width: 260px;
    max-height: calc((100vh - 112px) / 2);
    max-height: calc((100dvh - 112px) / 2);
  }
}

/* ======== ランドスケープ（横長） ======== */
@media (orientation: landscape) and (max-height: 600px) {
  #slideshow {
    padding: 40px 20px;
    box-sizing: border-box;
  }
  #slideshow ul {
    gap: 16px;
    flex-direction: row;
    padding: 0;
  }
  #slideshow ul li {
    flex: 1 1 auto;
    max-width: 40%;
    padding: 0 8px;
  }
  #slideshow ul li a img {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
  }
}
