/* 中野一水 作品アーカイブ */
:root {
  --bg: #121212;
  --band: #1A1917;
  --ink: #ECE6DA;
  --sub: #CFC8BB;
  --muted: #A39C8E;
  --accent: #D9774F;
  --accent-dark: #9E4527;
  --mat: #E8E2D6;
  --line: rgba(236, 230, 218, 0.18);
  --mincho: 'Shippori Mincho B1', serif;
  --gothic: 'Zen Kaku Gothic New', sans-serif;
  --latin: 'Cormorant Garamond', serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--gothic); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
button { font: inherit; }
.wrap { max-width: 1360px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
.logo { display: flex; align-items: baseline; gap: 14px; }
.logo-ja { font-family: var(--mincho); font-size: 26px; font-weight: 800; letter-spacing: .18em; }
.logo-en { font-family: var(--latin); font-size: 15px; letter-spacing: .32em; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 36px; font-size: 14px; letter-spacing: .14em; }
.nav a { padding: 12px 0; }
.nav-sm { gap: 8px 28px; font-size: 13px; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 72px; align-items: center; padding-top: 64px; padding-bottom: 120px; }
.hero-text { display: flex; flex-direction: column; gap: 36px; }
.eyebrow { margin: 0; display: flex; align-items: center; gap: 16px; font-family: var(--latin); font-size: 15px; letter-spacing: .4em; color: var(--accent); }
.rule { display: block; width: 48px; height: 1px; background: var(--accent); }
.hero h1 { margin: 0; font-family: var(--mincho); font-weight: 800; font-size: clamp(72px, 9vw, 140px); line-height: 1.05; letter-spacing: .06em; }
.hero-en { margin: 0; font-family: var(--latin); font-style: italic; font-size: 28px; color: var(--muted); letter-spacing: .06em; }
.hero-lead { margin: 0; max-width: 500px; font-size: 16px; line-height: 2.1; color: var(--sub); }
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; }
.stats div { display: flex; flex-direction: column-reverse; gap: 8px; }
.stats dt { font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.stats dd { margin: 0; font-family: var(--latin); font-size: clamp(30px, 3vw, 40px); line-height: 1; }
.stats small { font-family: var(--gothic); font-size: 14px; margin-left: 4px; }
.dim { color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 16px; }
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 32px; font-size: 14px; letter-spacing: .18em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-solid { background: var(--ink); color: var(--bg); font-weight: 500; }
.btn-solid:hover { background: var(--accent); color: var(--bg); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid rgba(236, 230, 218, .35); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.hero-work { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-work .no, .no { font-family: var(--latin); font-size: 20px; letter-spacing: .08em; color: var(--accent); }

/* Mat (額装) */
.mat { display: block; width: 100%; padding: 16px; border: 0; background: var(--mat); box-shadow: 0 18px 36px rgba(0, 0, 0, .5); cursor: zoom-in; transition: transform .35s ease, box-shadow .35s ease; }
.mat:hover { transform: translateY(-4px); box-shadow: 0 28px 52px rgba(0, 0, 0, .6); }
.mat:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.mat img { width: 100%; }
.mat-md { padding: 24px; }
.mat-lg { padding: clamp(20px, 3vw, 40px); box-shadow: 0 40px 80px rgba(0, 0, 0, .6); }

/* Sections */
.band { background: var(--band); padding: 120px 0; }
.section { padding-top: 120px; padding-bottom: 120px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 64px; }
.sec-num { margin: 0 0 12px; font-family: var(--latin); font-size: 18px; letter-spacing: .3em; color: var(--accent); }
.sec-head h2, .profile h2 { margin: 0; font-family: var(--mincho); font-weight: 600; font-size: clamp(32px, 4vw, 44px); letter-spacing: .12em; }
.sec-lead { margin: 0; max-width: 420px; font-size: 14px; line-height: 2; color: var(--muted); }

.selected-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 64px 48px; align-items: end; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 48px 32px; align-items: end; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card .no { font-size: 16px; }
.selected-grid .card .no { font-size: 18px; }
.card.is-new { animation: fade .6s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.more { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 72px; }
.count { margin: 0; font-size: 13px; color: var(--muted); letter-spacing: .12em; }
.more .btn { padding: 0 48px; letter-spacing: .2em; }

/* Profile */
.profile { background: var(--ink); color: #1A1917; padding: 120px 0; }
.profile-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 80px; align-items: center; }
.portrait { margin: 0; display: flex; flex-direction: column; gap: 14px; max-width: 520px; width: 100%; }
.portrait img { width: 100%; aspect-ratio: .75; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.portrait figcaption { font-size: 12px; letter-spacing: .14em; color: #5E584E; }
.profile-text { display: flex; flex-direction: column; gap: 28px; }
.profile .sec-num { color: var(--accent-dark); margin: 0; }
.profile-name { margin: 10px 0 0; font-size: 14px; letter-spacing: .12em; color: #5E584E; }
.profile-lead { margin: 0; font-size: 16px; line-height: 2.1; color: #3B3833; }
.timeline { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 18px 24px; font-size: 15px; border-top: 1px solid rgba(26, 25, 23, .2); padding-top: 28px; }
.timeline dt { font-family: var(--latin); font-size: 22px; line-height: 1.3; color: var(--accent-dark); }
.timeline dd { margin: 0; line-height: 1.8; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 64px 96px; align-items: start; }
.contact-head { display: flex; flex-direction: column; gap: 20px; }
.contact-head .sec-num { margin: 0; }
.contact-head h2 { margin: 0; font-family: var(--mincho); font-weight: 600; font-size: clamp(32px, 4vw, 44px); letter-spacing: .12em; }
.office { margin: 12px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mincho); font-size: 18px; letter-spacing: .14em; }
.form { display: flex; flex-direction: column; gap: 28px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 14px; letter-spacing: .1em; display: flex; align-items: center; gap: 10px; }
.req, .opt { font-size: 11px; letter-spacing: .08em; padding: 2px 8px; border-radius: 2px; }
.req { background: var(--accent); color: var(--bg); }
.opt { border: 1px solid rgba(236, 230, 218, .35); color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; background: #1C1B19; color: var(--ink); border: 1px solid rgba(236, 230, 218, .22); border-radius: 0; font: inherit; font-size: 16px; transition: border-color .2s; }
.field textarea { resize: vertical; line-height: 1.8; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #E5806A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.9; color: var(--sub); cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--accent); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-foot .btn { border: 0; }
.form-foot .btn[disabled] { opacity: .5; cursor: wait; }
.form-msg { margin: 0; font-size: 14px; line-height: 1.8; white-space: pre-line; }
.form-msg.ok { color: #9FD3A8; }
.form-msg.ng { color: #F0A08C; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-top: 72px; padding-bottom: 56px; }
.foot-logo { margin: 0 0 10px; font-family: var(--mincho); font-size: 32px; font-weight: 800; letter-spacing: .18em; }
.foot-en { margin: 0; font-family: var(--latin); font-size: 14px; letter-spacing: .32em; color: var(--muted); }
.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.copy { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .1em; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 10, .96); display: flex; align-items: center; justify-content: center; padding: 64px 96px; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 100%; max-height: 100%; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; object-fit: contain; background: var(--mat); padding: 16px; }
.lb-figure figcaption { font-family: var(--latin); font-size: 18px; letter-spacing: .14em; color: var(--muted); }
.lb-figure figcaption b { color: var(--accent); font-weight: 500; }
.lb-close, .lb-nav { position: absolute; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.lb-close:hover, .lb-nav:hover { color: var(--accent); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 24px; padding-bottom: 80px; gap: 48px; }
  .band, .profile { padding: 80px 0; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .mat { padding: 10px; }
  .lightbox { padding: 64px 12px 88px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 72px); }
  .lb-next { right: calc(50% - 72px); }
  .foot-right { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mat, .card.is-new { transition: none; animation: none; }
}
