/* ==========================================================
   Photography Portfolio — Luxury Dark
   ========================================================== */

:root {
  --bg: #0b0b0c;
  --bg-soft: #121214;
  --line: rgba(255, 255, 255, 0.1);
  --text: #e9e6e0;
  --muted: #8f8b84;
  --gold: #c8a96a;

  --serif: "Cormorant Garamond", "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: var(--serif); font-weight: 300; margin: 0; line-height: 1.15; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: 0.02em; }
p { margin: 0 0 1.4em; }

.eyebrow {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--gutter);
  background: linear-gradient(to bottom, rgba(11, 11, 12, 0.85), transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.35em;
}
.nav { display: flex; gap: clamp(18px, 3vw, 44px); }
.nav a {
  position: relative;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding-bottom: 4px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(200, 169, 106, 0.16), transparent 70%),
    radial-gradient(50% 50% at 15% 85%, rgba(90, 110, 140, 0.18), transparent 70%),
    var(--bg);
}
.hero-title {
  font-size: clamp(3.4rem, 11vw, 9.5rem);
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
}
.hero-title .italic { font-style: italic; color: var(--gold); padding-left: 0.6em; }
.hero-lead {
  margin-top: 2.4rem;
  max-width: 28em;
  color: var(--muted);
  font-size: 0.95rem;
}
.scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll span {
  width: 64px; height: 1px;
  background: var(--gold);
  transform-origin: left;
  animation: line 2.4s var(--ease) infinite;
}
@keyframes line {
  0% { transform: scaleX(0); }
  60% { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: 0; }
}

/* ---------- Works ---------- */
.works { padding: clamp(80px, 12vw, 180px) var(--gutter); }
.section-head { margin-bottom: clamp(40px, 6vw, 88px); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 28px);
}
.work { margin: 0; grid-column: span 4; position: relative; overflow: hidden; }
.work.w-wide { grid-column: span 8; }
.work.w-tall { grid-column: span 4; grid-row: span 2; }

.work .ph,
.work img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.8s var(--ease);
}
.work.w-tall .ph,
.work.w-tall img { aspect-ratio: auto; min-height: 100%; }
.work:hover .ph,
.work:hover img { transform: scale(1.05); filter: brightness(0.7); }

.work figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 28px 24px 20px;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.work figcaption span { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.2em; }
.work figcaption em { font-family: var(--sans); font-style: normal; font-size: 0.8rem; color: var(--muted); margin-left: auto; }
.work:hover figcaption { opacity: 1; transform: none; }

/* Placeholder gradients (画像を入れたら不要) */
.ph { background: #1a1a1d; }
.ph-1 { background: linear-gradient(160deg, #2b3a4a 0%, #7b6a55 55%, #c8a96a 100%); }
.ph-2 { background: linear-gradient(180deg, #05060d 0%, #1b2140 55%, #6b4a7a 100%); }
.ph-3 { background: radial-gradient(circle at 30% 30%, #2c3a63 0%, #070913 70%); }
.ph-4 { background: linear-gradient(135deg, #1d1d20 0%, #4a4642 100%); }
.ph-5 { background: linear-gradient(120deg, #0c1220 0%, #284a6b 50%, #d9b982 100%); }
.ph-6 { background: radial-gradient(circle at 60% 40%, #5c7a4a 0%, #1b2417 75%); }
.ph-7 { background: linear-gradient(200deg, #3a2c26 0%, #a9825a 100%); }
.ph-portrait { background: linear-gradient(170deg, #25252a 0%, #4a4136 100%); aspect-ratio: 4 / 5; }

/* ---------- Quote ---------- */
.quote {
  padding: clamp(100px, 14vw, 200px) var(--gutter);
  text-align: center;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.quote blockquote { margin: 0 auto; max-width: 22em; }
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.7;
  margin: 0;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  padding: clamp(80px, 12vw, 180px) var(--gutter);
}
.about-visual { position: relative; }
.about-visual::after {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid var(--gold);
  opacity: 0.5;
  z-index: -1;
}
.about-text h2 { margin-bottom: 2rem; }
.about-text p { color: #b9b5ad; max-width: 34em; }

.specs { margin: 2.6rem 0 0; border-top: 1px solid var(--line); }
.specs div {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt {
  width: 7em;
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.specs dd { margin: 0; }

/* ---------- Contact ---------- */
.contact {
  text-align: center;
  padding: clamp(100px, 14vw, 200px) var(--gutter);
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(200, 169, 106, 0.14), transparent 70%),
    var(--bg);
}
.contact h2 { margin-bottom: 2.4rem; }
.mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  letter-spacing: 0.08em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.4s var(--ease);
}
.mail:hover { color: var(--gold); }
.social {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 36px;
  margin: 3rem 0 0;
  padding: 0;
  font-family: var(--serif);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--muted);
}
.social a:hover { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.site-footer p { margin: 0; }

/* ---------- Scroll reveal (対応ブラウザのみ) ---------- */
@supports (animation-timeline: view()) {
  .work, .section-head, .about-text, .about-visual, .contact > * {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .work, .work.w-tall { grid-column: span 1; grid-row: auto; }
  .work.w-wide { grid-column: span 2; }
  .work.w-tall .ph, .work.w-tall img { aspect-ratio: 4 / 3; min-height: 0; }
  .work figcaption { opacity: 1; transform: none; }
  .about { grid-template-columns: 1fr; }
  .about-visual::after { inset: 14px -10px -14px 10px; }
  .scroll { display: none; }
}
@media (max-width: 520px) {
  .nav a:first-child { display: none; }
  .grid { grid-template-columns: 1fr; }
  .work.w-wide { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}