#site {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 0.7s ease 0.4s;
}

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

nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 0.5px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.logo { font-size: 13px; color: #f0f0ee; letter-spacing: 1px; }

#content { flex: 1; overflow: hidden; position: relative; }

.view {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 2rem;
}

.view.active { opacity: 1; pointer-events: all; }

.view-title {
  font-size: clamp(32px, 6vw, 64px);
  color: #f0f0ee;
  letter-spacing: 1.5px;
  line-height: 1; margin-bottom: 10px;
}

.view-title.caps { text-transform: uppercase; }

.view-sub {
  font-size: 11px; letter-spacing: 4px;
  color: rgba(255,255,255,0.45); margin-bottom: 32px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px; width: 100%; max-width: 480px;
  align-items: start;
}

.photo-cell { border-radius: 1px; transition: opacity 0.2s; }
.photo-cell:hover { opacity: 0.75; cursor: pointer; }
.photo-cell img { width: 100%; height: auto; display: block; }
.video-cell video { width: 100%; height: 100%; object-fit: cover; display: block; }

.pc1 { background: radial-gradient(ellipse at 40% 50%, #3a3a3a, #111); }
.pc2 { background: radial-gradient(ellipse at 60% 30%, #444, #1a1a1a); }
.pc3 { background: radial-gradient(ellipse at 50% 70%, #333, #0d0d0d); }
.pc4 { background: radial-gradient(ellipse at 30% 40%, #555, #222); }
.pc5 { background: radial-gradient(ellipse at 70% 60%, #3d3d3d, #111); }
.pc6 { background: radial-gradient(ellipse at 50% 50%, #484848, #181818); }


/* Home layout — fullscreen slideshow */
#v-1 {
  overflow: hidden;
  padding: 0;
}

.home-slide {
  position: absolute;
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  display: block;
  transition: opacity 0.7s ease;
}

/* Art Work layout */
#v-3 {
  justify-content: flex-start;
  align-items: stretch;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  padding: 0;
}

.aw-section {
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem 0.75rem;
  box-sizing: border-box;
  scroll-snap-align: start;
}

.aw-section:nth-child(even) {
  background: #5a5a5a;
}

.aw-caption {
  font-size: 14px;
  color: #444;
  letter-spacing: 0.5px;
  text-align: left;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.aw-strip {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 8px;
  flex: 1;
  min-height: 0;
  align-items: center;
  -webkit-overflow-scrolling: touch;
}

.aw-strip img {
  height: calc(100vh - 120px);
  width: auto;
  display: block;
  flex-shrink: 0;
}

.aw-strip img.ls {
  height: auto;
  max-height: calc(100vh - 120px);
  max-width: 90vw;
  width: auto;
}

@media (max-width: 600px) {
  .aw-section {
    height: auto;
    padding: 1.5rem 0.5rem 0.75rem;
  }
  .aw-caption {
    margin-bottom: 6px;
  }
  .aw-strip {
    align-items: flex-start;
    flex: none;
    height: auto;
  }
  .aw-strip img {
    height: auto;
    max-height: calc(100svh - 100px);
    max-width: 94vw;
  }
  .aw-strip img.ls {
    max-height: calc(100svh - 100px);
    max-width: 97vw;
  }
}

/* Film Photos layout */
#v-2 {
  justify-content: flex-start;
  align-items: stretch;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  padding: 0;
}

.fp-section {
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem 0.75rem;
  box-sizing: border-box;
  scroll-snap-align: start;
}

.fp-sec-label {
  display: none;
}

.fp-section:nth-child(even) {
  background: #5a5a5a;
}

.fp-strip {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 8px;
  flex: 1;
  min-height: 0;
  align-items: center;
  -webkit-overflow-scrolling: touch;
}

/* Portrait/square: fill strip height */
.fp-strip img {
  height: calc(100vh - 120px);
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Landscape: cap both axes */
.fp-strip img.ls {
  height: auto;
  max-height: calc(100vh - 120px);
  max-width: 90vw;
  width: auto;
}

@media (max-width: 600px) {
  .fp-section {
    padding: 0.75rem 0.25rem 0.5rem;
  }
  /* svh excludes browser chrome; max-width prevents square/portrait from overflowing */
  .fp-strip img {
    height: auto;
    max-height: calc(100svh - 100px);
    max-width: 94vw;
  }
  .fp-strip img.ls {
    max-height: calc(100svh - 100px);
    max-width: 97vw;
  }
}


#v-5 {
  overflow-y: auto;
  justify-content: flex-start;
  padding: 1.5rem 2rem;
  align-items: center;
}

.about-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 560px;
}

.about-title {
  font-size: clamp(32px, 6vw, 64px);
  color: #f0f0ee;
  letter-spacing: 1.5px;
  line-height: 1;
  margin-bottom: 16px;
  width: 100%;
  text-align: center;
}

.about-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 42vh;
  object-fit: cover;
  display: block;
}

.about-text {
  flex-shrink: 0;
  font-size: 13px; color: #333;
  line-height: 2; width: 100%;
  padding: 14px 0;
  margin: 20px 0;
  border-top: 0.5px solid rgba(0,0,0,0.15);
  border-bottom: 0.5px solid rgba(0,0,0,0.15);
  text-align: center;
}

/* Noir Film layout */
#v-4 {
  justify-content: center;
  overflow: hidden;
  padding: 1rem 2rem;
  align-items: center;
}

.nf-video-wrap {
  width: 100%;
  max-width: 480px;
  position: relative;
}

.nf-video-wrap video {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 200px);
  display: block;
}

.nf-sound-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0.5px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.55);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.nf-sound-btn:hover {
  border-color: rgba(255,255,255,0.7);
  color: rgba(255,255,255,0.8);
}

.nf-sound-btn.active {
  border-color: rgba(255,255,255,0.9);
  color: rgba(255,255,255,0.95);
}

.nf-sound-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .nf-video-wrap video {
    max-height: calc(100svh - 180px);
  }
  .nf-sound-btn {
    bottom: 0.6rem;
    right: 0.6rem;
  }
}

#v-6 {
  overflow-y: auto;
  justify-content: flex-start;
  padding: 1.5rem 2rem;
  align-items: center;
}

.contact-body {
  font-size: 13px;
  color: #333;
  line-height: 2;
  text-align: center;
  width: 100%;
  max-width: 560px;
  margin-bottom: 8px;
}

.contact-icons {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  align-items: flex-start;
  justify-content: center;
}

.contact-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
  text-decoration: none;
  gap: 10px;
  transition: opacity 0.2s;
}

.contact-icon-link:hover { opacity: 0.55; }

.contact-icon-label {
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #555;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.contact-icon-svg {
  width: 60px;
  height: 60px;
  display: block;
}

.contact-icon-line {
  width: 100%;
  height: 0.5px;
  background: #777;
}

@media (max-width: 600px) {
  nav { padding: 14px 20px; }

  .home-slide {
    max-width: 85%;
    max-height: 85%;
  }
}

@media (min-width: 601px) {
  /* About：写真エリア拡大、余白縮小 */
  #v-5 {
    padding: 0.5rem 2rem;
  }

  .about-wrap {
    max-width: 780px;
  }

  .about-img {
    max-height: 55vh;
  }
}
