:root {
  --bg: #0a0a0a;
  --bg-soft: #141414;
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --line: #2c2c2c;
  --accent: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { opacity: 0.75; }

::selection { background: var(--text); color: var(--bg); }

/* film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- masthead ---------- */
.masthead {
  padding: 34px 24px 0;
  text-align: center;
}
.masthead-mark {
  font-size: clamp(42px, 9.4vw, 150px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: #2b2b2b;
  white-space: nowrap;
  user-select: none;
  animation: masthead-in 1.4s ease both;
}
@keyframes masthead-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.masthead-meta {
  display: flex;
  justify-content: space-between;
  max-width: 1080px;
  margin: 16px auto 0;
  padding: 10px 2px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.site-header nav { display: flex; gap: 26px; }
.site-header nav a {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-header nav a:hover { color: var(--text); opacity: 1; }

/* ---------- brand mark ---------- */
.brand-mark {
  text-align: center;
  padding: 64px 24px 0;
}
.brand-mark img {
  width: min(210px, 52vw);
  height: auto;
}

.statement {
  margin-top: 34px;
  font-size: clamp(26px, 4.6vw, 44px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
}
.statement-en {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.06em;
}

/* ---------- works (featured photos) ---------- */
.works { scroll-margin-top: 72px; margin-top: 72px; }

.feature {
  position: relative;
  height: min(72vh, 640px);
  min-height: 380px;
  overflow: hidden;
}
@media (min-width: 561px) {
  .feature.tall { height: min(94vh, 1100px); }
}
.feature-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s ease;
}
.feature:hover .feature-bg { transform: scale(1.05); }
.feature picture { position: absolute; inset: 0; display: block; }
.feature-bg.pos-top { object-position: center top; }
.feature-bg.pos-bottom { object-position: center bottom; }
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0) 70%);
}
.feature-num {
  position: absolute;
  top: 22px;
  right: 26px;
  z-index: 2;
  font-size: 13px;
  letter-spacing: 0.34em;
  color: rgba(255,255,255,0.7);
}
.feature-text {
  position: absolute;
  left: 26px;
  bottom: 26px;
  z-index: 2;
  max-width: 600px;
}
.feature-text h3 {
  font-size: clamp(30px, 6vw, 54px);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0,0,0,0.8);
}
.feature-text p {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 8px rgba(0,0,0,0.85);
}

/* ---------- sections ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px 8px;
  scroll-margin-top: 72px;
}

.section h2 {
  font-size: 22px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 28px;
}

.section p { max-width: 720px; }
.section p.en { color: var(--muted); margin-top: 14px; font-size: 15px; }
.note { color: var(--muted); margin-top: 18px; font-size: 14px; }

.facts { margin-top: 30px; max-width: 720px; }
.facts > div {
  display: flex;
  gap: 22px;
  padding: 11px 2px;
  border-top: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt {
  flex: 0 0 64px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-top: 3px;
}
.facts dd { font-size: 15px; }

/* ---------- books ---------- */
.book-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 28px;
  max-width: 820px;
  display: flex;
  gap: 30px;
  align-items: stretch;
}

.book-cover-img {
  flex: 0 0 196px;
  width: 196px;
  height: auto;
  align-self: center;
  border: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(0,0,0,0.55);
}

.book-info { display: flex; flex-direction: column; justify-content: center; }

.book-card h3 { font-size: 20px; letter-spacing: 0.06em; margin-bottom: 8px; }

.button {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 22px;
  border: 1px solid var(--accent);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.button:hover { background: var(--accent); color: #000; opacity: 1; }

/* ---------- footer ---------- */
footer {
  margin-top: 88px;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.foot-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.foot-nav a {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.foot-nav a:hover { color: var(--text); opacity: 1; }

@media (max-width: 560px) {
  .masthead { padding: 24px 12px 0; }
  .masthead-mark { font-size: 8.8vw; letter-spacing: 0.02em; }
  .site-header { padding: 10px 16px; }
  .site-header nav { gap: 14px; }
  .section { padding: 48px 16px 4px; }
  .feature { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .feature-text { left: 16px; bottom: 18px; right: 16px; }
  .feature-text p { font-size: 3.2vw; white-space: nowrap; letter-spacing: 0; }
  .feature-bg.m-up-sm { height: 112%; top: auto; bottom: 0; }
  .feature-bg.m-up-md { height: 117%; top: auto; bottom: 0; }
  .feature-bg.m-up-121 { height: 121%; top: auto; bottom: 0; }
  .feature-bg.m-up-lg { height: 126%; top: auto; bottom: 0; }
  .feature-bg.m-up-130 { height: 130%; top: auto; bottom: 0; }
  .feature-bg.m-up-133 { height: 133%; top: auto; bottom: 0; }
  .feature-bg.m-up-143 { height: 143%; top: auto; bottom: 0; }
  .feature-bg.m-up-153 { height: 153%; top: auto; bottom: 0; }
  .feature-bg.m-up-160 { height: 160%; top: auto; bottom: 0; }
  .feature-bg.m-up-170 { height: 170%; top: auto; bottom: 0; }
  .feature-bg.m-dn-108 { height: 108%; top: 0; bottom: auto; }
  .feature-bg.m-dn-115 { height: 115%; top: 0; bottom: auto; }
  .feature-bg.m-dn-120 { height: 120%; top: 0; bottom: auto; }
  .book-card { flex-direction: column; }
  .book-cover-img { flex: none; width: 168px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
