/* ============================================================
   白ベース・ミニマルなフォトポートフォリオ
   色やフォントを変えたいときは、まずこの :root の変数をどうぞ
   ============================================================ */
:root {
  --bg: #fdfdfc;
  --text: #1a1a1a;
  --text-soft: #8a8a86;
  --line: #e8e8e4;
  --font-en: "Inter", sans-serif;
  --font-ja: "Zen Kaku Gothic New", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  font-weight: 300;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem clamp(1.2rem, 5vw, 3.5rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-title {
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.4rem);
}

.site-nav a {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  transition: color 0.25s;
}

.site-nav a:hover,
.site-nav a.is-current {
  color: var(--text);
}

/* ---------- ヒーロー ---------- */
.hero {
  padding: clamp(5rem, 14vh, 9rem) clamp(1.2rem, 5vw, 3.5rem) clamp(3rem, 8vh, 5rem);
  text-align: center;
}

.hero-title {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.14em;
}

/* ---------- トップ:ギャラリー入口 ---------- */
.entries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5vw, 3.5rem) 4rem;
}

.entry {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.entry img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, opacity 0.3s;
}

.entry:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

.entry-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  letter-spacing: 0.3em;
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  transition: background 0.3s;
}

.entry:hover .entry-label {
  background: rgba(0, 0, 0, 0.1);
}

/* ---------- ギャラリーページの見出し ---------- */
.page-head {
  text-align: center;
  padding: clamp(2.5rem, 7vh, 4.5rem) 1.2rem clamp(2rem, 5vh, 3rem);
}

.page-title {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.24em;
}

/* ---------- ギャラリー ---------- */
.gallery {
  columns: 3 240px;          /* 画面幅に合わせて 1〜3 列に自動調整されます */
  column-gap: 14px;
  padding: 0 clamp(1.2rem, 5vw, 3.5rem) 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery figure {
  break-inside: avoid;
  margin-bottom: 14px;
  cursor: zoom-in;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.3s;
}

.gallery figure:hover img {
  opacity: 0.85;
}

.gallery figcaption {
  font-size: 0.72rem;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  padding: 0.35rem 0.1rem 0;
}

/* ---------- About / Contact ---------- */
.about,
.contact {
  max-width: 620px;
  margin: 0 auto;
  padding: 4.5rem clamp(1.2rem, 5vw, 3.5rem);
  text-align: center;
  border-top: 1px solid var(--line);
}

.section-title {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.8rem;
}

.about p,
.contact p {
  font-size: 0.95rem;
}

.contact-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--font-en);
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--text);
  transition: opacity 0.25s;
}

.contact-link:hover {
  opacity: 0.6;
}

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem;
  text-align: center;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

/* ---------- ライトボックス ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(253, 253, 252, 0.96);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-img {
  max-width: min(88vw, 1200px);
  max-height: 82vh;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.12);
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
  letter-spacing: 0.1em;
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-en);
  font-weight: 300;
  line-height: 1;
  padding: 1rem;
  transition: opacity 0.25s;
}

.lightbox button:hover {
  opacity: 0.5;
}

.lightbox-close {
  top: 1.2rem;
  right: 1.6rem;
  font-size: 2rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.6rem;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ---------- スマホ対応 ---------- */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem 1.2rem;
  }

  .site-nav {
    gap: 1.1rem;
  }

  .site-nav a {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .hero {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }

  /* 入口カードは縦積みに */
  .entries {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 3rem;
  }

  .entry {
    aspect-ratio: 3 / 2;
  }

  .gallery {
    column-gap: 10px;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    padding-bottom: 3rem;
  }

  .gallery figure {
    margin-bottom: 10px;
  }

  .about,
  .contact {
    padding: 3rem 1.4rem;
  }

  .about p,
  .contact p {
    font-size: 0.88rem;
  }

  .lightbox-img {
    max-width: 94vw;
    max-height: 76vh;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 0.8rem 0.5rem;
  }

  .lightbox-caption {
    bottom: 1.2rem;
    font-size: 0.72rem;
  }
}
