@charset "UTF-8";

:root {
  --ui: rgba(255,255,255,.86);
  --ui-dim: rgba(255,255,255,.55);
  --glass: rgba(8,8,10,.26);
  --accent: #fff;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #070709;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
  overflow: hidden;
}

button, a { font: inherit; }

.gallery {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #070709;
}

/* 16:9の写真を画面いっぱいに表示。画面比率が異なる場合は左右/上下をトリミング。 */
.slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 900ms ease, transform 7s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.topbar {
  position: absolute;
  z-index: 10;
  top: max(18px, env(safe-area-inset-top));
  left: max(22px, env(safe-area-inset-left));
  right: max(22px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.brand, .menu a {
  color: var(--ui);
  text-decoration: none;
  letter-spacing: .14em;
  text-shadow: 0 1px 14px rgba(0,0,0,.45);
  pointer-events: auto;
}

.brand {
  font-size: 11px;
  font-weight: 500;
}

.menu {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a {
  font-size: 9px;
  font-weight: 400;
  transition: opacity .25s ease;
}

.menu a:hover { opacity: .65; }

.great-feeling {
  position: absolute;
  z-index: 8;
  left: 12%;
  top: 26%;
  font-size: clamp(42px, 8vw, 120px);
  line-height: .9;
  font-weight: 300;
  letter-spacing: -.035em;
  opacity: .5;
  white-space: nowrap;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: drift 11s ease-in-out infinite alternate;
  transition: opacity .7s ease;
}

.great-feeling.hidden {
  opacity: 0;
}

@keyframes drift {
  from { transform: translate3d(-4vw, 0, 0) rotate(-4deg); }
  to   { transform: translate3d(8vw, 5vh, 0) rotate(5deg); }
}

.caption {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 68px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.88);
  font-size: 10px;
  letter-spacing: .13em;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0,0,0,.65);
  pointer-events: none;
}

.controls {
  position: absolute;
  z-index: 11;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(0,0,0,.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.controls button {
  border: 0;
  background: transparent;
  color: var(--ui-dim);
  padding: 3px 6px;
  cursor: pointer;
  font-size: 8px;
  letter-spacing: .1em;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}

.controls button:hover,
.controls button.selected {
  color: #fff;
  background: rgba(255,255,255,.11);
}

.controls .arrow {
  font-size: 17px;
  line-height: 12px;
  padding: 2px 7px;
  letter-spacing: 0;
}

.counter {
  position: absolute;
  z-index: 10;
  right: 22px;
  bottom: 25px;
  color: rgba(255,255,255,.55);
  font-size: 8px;
  letter-spacing: .15em;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}

.access-counter {
  position: absolute;
  z-index: 5;
  left: 22px;
  bottom: 25px;
  color: rgba(255,255,255,.38);
  font-size: 7px;
  letter-spacing: .1em;
  pointer-events: none;
}

/* スマートフォン等でも16:9の写真領域を維持しつつ画面いっぱいに表示 */
@media (max-width: 640px) {
  .topbar { top: 14px; left: 14px; right: 14px; }
  .menu { gap: 9px; }
  .menu a { font-size: 7px; }
  .brand { font-size: 9px; }
  .caption { bottom: 62px; font-size: 8px; }
  .controls { bottom: 17px; gap: 1px; padding: 4px; }
  .controls button { font-size: 7px; padding: 3px 4px; }
  .controls .arrow { font-size: 15px; }
  .counter { right: 12px; bottom: 19px; }
  .access-counter { left: 12px; bottom: 19px; }
}

/* フルスクリーン中は操作UIを最小限に */
.gallery:fullscreen .topbar,
.gallery:-webkit-full-screen .topbar {
  opacity: .25;
  transition: opacity .3s ease;
}


.photo-hit { text-decoration: none; }




/* 現在表示中の写真番号リンク：小さく上品 */
.current-photo-links {
  position: fixed;
  z-index: 99999;
  left: 18px;
  bottom: 18px;
  width: 28px;
  height: 24px;
  pointer-events: none;
}
.current-photo-links a {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  padding: 0;
  color: rgba(255,255,255,.62);
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  text-decoration: none;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: .08em;
  text-shadow: 0 1px 7px rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.current-photo-links a.is-current { display: flex; }
.current-photo-links a:hover {
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.28);
  border-color: rgba(255,255,255,.26);
}
@media (max-width: 640px) {
  .current-photo-links {
    left: 10px;
    bottom: 10px;
    width: 25px;
    height: 22px;
  }
  .current-photo-links a {
    width: 25px;
    height: 22px;
    font-size: 6.5px;
  }
}
