/* ============ ヴァン デリス — 木目調ビストロ・フォトアルバム ============ */
:root {
  --vd-wood: #6b4a2f;
  --vd-wood-dark: #55391f;
  --vd-paper: #f7efe0;
  --vd-ink: #3a2c1d;
  --vd-cream: #f4ead7;
  --vd-cream-sub: #d9c6a7;
  --vd-amber: #e0a854;
  --vd-line: rgba(58, 34, 14, .35);
  --vd-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --vd-mono: "JetBrains Mono", monospace;
}
* { box-sizing: border-box; }
body.vd-locked { overflow: hidden; }
body {
  margin: 0; color: var(--vd-cream);
  font-family: var(--vd-sans); line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  /* ---- 木目テクスチャ（CSSのみ） ---- */
  background-color: var(--vd-wood);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008 0.28' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.06  0 0 0 0 0.02  0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='420' height='420' filter='url(%23g)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg, transparent 0 148px, rgba(30,16,6,.45) 148px 151px),
    linear-gradient(180deg, rgba(255,235,200,.05), rgba(0,0,0,.14)),
    linear-gradient(180deg, var(--vd-wood), var(--vd-wood-dark));
}
img { max-width: 100%; display: block; }
a { color: var(--vd-amber); }
.sp-only { display: none; }
@media (max-width: 600px) { .sp-only { display: inline; } }

/* ---- Flash風スプラッシュ ---- */
.vd-splash {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(224,168,84,.14), transparent 60%),
    linear-gradient(180deg, #55391f, #3d2814);
  transition: transform .85s cubic-bezier(.7, 0, .2, 1);
}
.vd-splash.is-done { transform: translateY(-100%); }
.vd-splash-inner { text-align: center; }
.vd-splash-kicker {
  margin: 0; font-family: var(--vd-mono); font-size: 13px;
  letter-spacing: .5em; color: var(--vd-amber);
  animation: vdFade .8s ease both;
}
.vd-splash-title {
  margin: 6px 0 0; font-size: clamp(38px, 8vw, 74px); font-weight: 700;
  letter-spacing: .04em; color: var(--vd-cream);
  animation: vdRise 1s .15s cubic-bezier(.2, .8, .2, 1) both;
}
.vd-splash-sub {
  margin: 6px 0 0; font-family: var(--vd-mono); font-size: 12px;
  letter-spacing: .3em; color: var(--vd-cream-sub);
  animation: vdFade .8s .5s ease both;
}
.vd-splash-loading {
  margin: 34px 0 0; font-family: var(--vd-mono); font-size: 11px;
  letter-spacing: .2em; color: rgba(244,234,215,.5);
  animation: vdBlink 1.1s .3s steps(2) infinite;
}
@keyframes vdRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes vdFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vdBlink { 50% { opacity: .15; } }

/* ---- 出現アニメーション ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .vd-splash { display: none; }
}

/* ---- ヒーロー ---- */
.vd-hero {
  text-align: center; padding: 64px 20px 44px;
  border-bottom: 2px solid var(--vd-line);
  box-shadow: 0 1px 0 rgba(255,230,190,.08);
}
.vd-kicker {
  margin: 0 0 12px; letter-spacing: .45em; text-transform: uppercase;
  font-family: var(--vd-mono); font-size: 12px; color: var(--vd-amber);
}
.vd-hero h1 {
  margin: 0; font-weight: 700;
  font-size: clamp(30px, 5.5vw, 50px); letter-spacing: .1em;
  color: var(--vd-cream);
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.vd-sub { margin: 12px 0 0; color: var(--vd-cream-sub); font-size: 14px; }
.vd-count { margin: 18px 0 0; font-size: 13px; color: var(--vd-cream-sub); }
.vd-count strong { color: var(--vd-amber); font-size: 20px; font-family: var(--vd-mono); }

/* ---- タブ ---- */
.vd-tabs {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 4px; overflow-x: auto; padding: 10px 16px;
  background: rgba(61, 40, 20, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vd-line);
  scrollbar-width: none;
}
.vd-tabs::-webkit-scrollbar { display: none; }
/* 中央揃え（幅が足りない時は自動で左詰め＋横スクロールに戻る） */
.vd-tabs a:first-child { margin-left: auto; }
.vd-tabs a:last-child { margin-right: auto; }
.vd-tabs a {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 999px;
  text-decoration: none; color: var(--vd-cream-sub); font-size: 13px;
  border: 1px solid transparent; white-space: nowrap;
}
.vd-tabs a span { margin-left: 5px; font-size: 11px; font-family: var(--vd-mono); color: var(--vd-amber); }
.vd-tabs a.is-active {
  background: rgba(244,234,215,.12); border-color: rgba(244,234,215,.25);
  color: var(--vd-cream); font-weight: 700;
}

/* ---- 本文 ---- */
.vd-main { max-width: 1160px; margin: 0 auto; padding: 36px 20px 70px; }

/* 紙のメニューパネル（木のテーブルに置いた紙） */
.vd-intro {
  max-width: 760px; margin: 0 auto 26px; padding: 28px 32px;
  background: var(--vd-paper); color: var(--vd-ink);
  border-radius: 4px;
  box-shadow: 0 6px 22px rgba(20, 10, 3, .45), inset 0 0 60px rgba(180, 140, 80, .12);
  font-size: 15px;
}
.vd-intro p { margin: 0 0 1.2em; }
.vd-intro a { color: #8f5a1b; }

.vd-section { margin-top: 60px; scroll-margin-top: 66px; }
.vd-sechead { display: flex; align-items: baseline; gap: 12px; justify-content: center; }
.vd-sechead h2 {
  font-size: 25px; letter-spacing: .08em; margin: 0; color: var(--vd-cream);
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.vd-sechead h2::before { content: "◆ "; color: var(--vd-amber); font-size: 13px; vertical-align: 2px; }
.vd-seccount { color: var(--vd-cream-sub); font-size: 13px; font-family: var(--vd-mono); }
.vd-secintro {
  max-width: 720px; margin: 12px auto 0; padding: 16px 22px;
  background: var(--vd-paper); color: var(--vd-ink); font-size: 14px;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(20, 10, 3, .4);
}
.vd-secintro p { margin: 0 0 .8em; }
.vd-secintro p:last-child { margin-bottom: 0; }
.vd-secintro a { color: #8f5a1b; }

/* ---- アルバム: テーブルに並べた写真 ---- */
.vd-album {
  display: grid; gap: 14px; margin-top: 22px;
  grid-template-columns: repeat(6, minmax(0, 172px));
  grid-auto-rows: 128px;
  grid-auto-flow: dense;
  justify-content: center;  /* 品数が少ないセクションも中央に */
}
.vd-tile {
  position: relative; padding: 0; cursor: zoom-in;
  border: 5px solid #fdfaf3; border-bottom-width: 7px;
  border-radius: 3px; overflow: hidden;
  background: #e8dfd0;
  box-shadow: 0 5px 16px rgba(15, 8, 2, .5);
  grid-column: span 2; grid-row: span 2;
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform;
}
/* 写真をわずかに傾けて置いた感じ（周期でリズム） */
.vd-album > .vd-tile:nth-child(3n+1) { transform: rotate(-.7deg); }
.vd-album > .vd-tile:nth-child(3n+2) { transform: rotate(.5deg); }
.vd-album > .vd-tile:nth-child(7n+1) { grid-column: span 3; grid-row: span 3; }
.vd-album > .vd-tile:nth-child(5n+3) { grid-row: span 3; }
.vd-tile:hover { box-shadow: 0 14px 30px rgba(15, 8, 2, .6); z-index: 2; }
.vd-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.vd-tile:hover img { transform: scale(1.05); }
.vd-tile-name {
  position: absolute; inset: auto 0 0 0; padding: 24px 10px 8px;
  text-align: left; color: #fff; font-size: 12.5px; font-weight: 500;
  line-height: 1.45; letter-spacing: .02em;
  background: linear-gradient(to top, rgba(15,8,2,.8) 0%, rgba(15,8,2,.3) 60%, transparent 100%);
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.vd-more {
  position: absolute; right: 6px; top: 6px;
  background: rgba(253,250,243,.92); color: #8f5a1b;
  font-family: var(--vd-mono); font-size: 11px;
  padding: 2px 8px; border-radius: 999px;
}
.vd-album.is-mosaic { grid-auto-rows: 150px; }
.vd-album.is-mosaic > .vd-tile { grid-column: span 2; grid-row: span 2; }
.vd-album.is-mosaic > .vd-tile:nth-child(7n+1),
.vd-album.is-mosaic > .vd-tile:nth-child(5n+3) { grid-column: span 2; grid-row: span 2; }

@media (max-width: 900px) {
  .vd-album { grid-template-columns: repeat(4, minmax(0, 168px)); grid-auto-rows: 110px; }
}
@media (max-width: 560px) {
  .vd-album { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
  .vd-album > .vd-tile:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
  .vd-album > .vd-tile:nth-child(5n+3) { grid-row: span 2; }
}

/* ---- ライトボックス ---- */
.vd-lightbox[hidden] { display: none; }
.vd-lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 8, 2, .95);
  display: flex; align-items: center; justify-content: center;
}
.vd-lb-stage { max-width: min(94vw, 1040px); max-height: 92vh; overflow-y: auto; }
.vd-lb-stage img {
  max-width: 100%; max-height: 66vh; object-fit: contain;
  margin: 0 auto; border: 6px solid #fdfaf3; border-radius: 3px;
}
.vd-lb-caption { max-width: 680px; margin: 14px auto 0; text-align: center; padding: 0 8px 20px; }
.vd-lb-name { margin: 0; color: var(--vd-cream); font-size: 18px; font-weight: 700; }
.vd-lb-name small { display: block; color: var(--vd-amber); font-family: var(--vd-mono); font-size: 11px; letter-spacing: .2em; margin-top: 3px; }
.vd-lb-comment { margin-top: 10px; color: #cbbda6; font-size: 13.5px; text-align: left; line-height: 1.9; }
.vd-lb-comment p { margin: 0 0 .8em; }
.vd-lb-comment a { color: var(--vd-amber); }
.vd-lb-close, .vd-lb-prev, .vd-lb-next {
  position: fixed; z-index: 101; border: 0; background: rgba(253,250,243,.12);
  color: #fdfaf3; font-size: 26px; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.vd-lb-close { top: 18px; right: 18px; }
.vd-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.vd-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.vd-lb-close:hover, .vd-lb-prev:hover, .vd-lb-next:hover { background: rgba(224,168,84,.45); }

/* ---- トップへ戻るボタン ---- */
.vd-backhome { margin: 64px 0 0; text-align: center; }
.vd-btn-home {
  display: inline-block; padding: 15px 46px; border-radius: 999px;
  background: linear-gradient(180deg, var(--vd-amber), #c8913f);
  color: #3a2510; font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 5px 16px rgba(15, 8, 2, .45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.vd-btn-home:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 8, 2, .55); }

/* ---- 共通ヘッダー/フッターの馴染ませ ---- */
.site-header { position: relative; z-index: 30; }
.site-footer { margin-top: 0; }
