/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --surface: #181818;
  --surface2: #222;
  --border: #2a2a2a;
  --accent: #c8a96e;
  --accent-dark: #a8893e;
  --text: #f0ede8;
  --text-muted: #888;
  --radius: 8px;
  --max-w: 1200px;
  --header-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.logo-icon { color: var(--accent); font-size: 1.3rem; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: .9rem;
}
.header-nav a { color: var(--text-muted); transition: color .2s; }
.header-nav a:hover { color: var(--text); }

.btn-stock {
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: 99px;
  color: var(--accent) !important;
  font-size: .85rem;
  transition: background .2s, color .2s;
}
.btn-stock:hover { background: var(--accent); color: var(--bg) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  gap: 16px;
  font-size: 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--text-muted); }
.mobile-nav a:hover { color: var(--text); }

/* ===== ヒーロー ===== */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(200,169,110,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(200,169,110,.06) 0%, transparent 60%),
    var(--bg);
  text-align: center;
  padding: 60px 24px;
}

.hero-inner { max-width: 680px; }

.hero-sub {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 40px;
}

/* ===== ボタン ===== */
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 99px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ===== セクション共通 ===== */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 40px;
}

/* ===== フィルターバー ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 7px 18px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
  transition: all .2s;
  background: var(--surface);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

/* ===== フォトグリッド ===== */
.photo-grid {
  columns: 3;
  column-gap: 12px;
}

.photo-card {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--surface);
}

.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .4s ease;
}

.photo-card:hover img { transform: scale(1.04); }

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.photo-card:hover .photo-overlay { opacity: 1; }

.photo-info { }
.photo-title { font-size: .9rem; font-weight: 600; }
.photo-cat {
  font-size: .75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* フィルター非表示 */
.photo-card.hidden {
  display: none;
}

/* ===== About ===== */
.about-section { background: var(--surface); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 480px;
  line-height: 1.8;
}
.about-text .btn-primary { margin-top: 8px; }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: right;
}
.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ===== フッター ===== */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
}

/* ===== ライトボックス ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
.lightbox[hidden] { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-content {
  max-width: 900px;
  width: 100%;
  position: relative;
}
.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 80svh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 0 4px;
}
#lightboxTitle { font-weight: 600; }
#lightboxCategory { font-size: .8rem; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: color .2s;
  z-index: 210;
}
.lightbox-close:hover { color: var(--text); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--text-muted);
  padding: 16px;
  transition: color .2s;
  z-index: 210;
  line-height: 1;
}
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--text); }

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .photo-grid { columns: 2; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { flex-direction: row; justify-content: flex-start; text-align: left; }
}

@media (max-width: 640px) {
  .header-nav { display: none; }
  .menu-toggle { display: flex; }
  .site-header { height: auto; min-height: var(--header-h); }
  .hero-title { font-size: 2rem; }
  .photo-grid { columns: 2; column-gap: 8px; }
  .photo-card { margin-bottom: 8px; }
  .section-inner { padding: 60px 16px; }
  .about-stats { flex-wrap: wrap; gap: 20px; }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
}

@media (max-width: 400px) {
  .photo-grid { columns: 1; }
}
