/* ============================================================
   Kacshima — Nocturnal Gallery
   Dark, moonlit, character-art led. Art is the hero; gold is a
   signature, used sparingly. Display: Shippori Mincho B1.
   Text/UI: Zen Kaku Gothic New.
   ============================================================ */

:root,
:root[data-theme="dark"] {
  --bg:        #0c0d11;
  --bg-deep:   #08090c;
  --surface:   #14151b;
  --surface-2: #1c1e26;
  --text:      #edeef2;
  --muted:     #969cab;
  --faint:     #6b7180;
  --gold:      #d8ad63;
  --gold-2:    #e7c079;
  --on-gold:   #17120a;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.05);
  --dot:       rgba(255,255,255,.09);
  --vignette:  rgba(0,0,0,.55);
}

:root[data-theme="light"] {
  --bg:        #f5f6f8;
  --bg-deep:   #eaecf0;
  --surface:   #ffffff;
  --surface-2: #f0f2f5;
  --text:      #14171e;
  --muted:     #545b69;
  --faint:     #8a909d;
  --gold:      #9a6b1c;
  --gold-2:    #7f5713;
  --on-gold:   #ffffff;
  --line:      rgba(16,22,34,.12);
  --line-2:    rgba(16,22,34,.07);
  --dot:       rgba(16,22,34,.08);
  --vignette:  rgba(0,0,0,0);
}

:root {
  --font-head: "Shippori Mincho B1", serif;
  --font-body: "Zen Kaku Gothic New", system-ui, sans-serif;
  --maxw:   1200px;
  --radius: 6px;
  --ease:   cubic-bezier(.16, 1, .3, 1);
  --z-nav: 50; --z-modal: 100; --z-lightbox: 120; --z-grain: 200;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}

/* Film grain + vignette: nocturnal atmosphere */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 30%, transparent 55%, var(--vignette) 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -.01em;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }

.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; z-index: 2; }
.section--deep { background: var(--bg-deep); }

.section-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  text-wrap: balance;
  margin-bottom: 20px;
}
.section-lead {
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.06rem;
  margin: 0;
  text-wrap: pretty;
}
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

.accent { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .01em;
  padding: 14px 30px;
  border-radius: 2px;
  background: var(--gold);
  color: var(--on-gold);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--gold-2); border-color: var(--gold-2); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: transparent; color: var(--gold); border-color: var(--gold); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 20px; }
.nav__logo img { height: 64px; width: auto; }
.logo-wordmark { font-family: var(--font-head); font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .16em; line-height: 1; }
.nav__logo .logo-wordmark { font-size: 1.55rem; }
.site-footer .logo-wordmark { font-size: 2rem; display: inline-block; margin-bottom: 24px; }
.logo-on-light { display: none; }
:root[data-theme="light"] .logo-on-light { display: block; }
:root[data-theme="light"] .logo-on-dark  { display: none; }

.nav__right { display: flex; align-items: center; gap: 30px; }
.nav__menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  color: var(--muted); position: relative; padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold); transition: width .3s var(--ease);
}
.nav__menu a:hover, .nav__menu a.is-active { color: var(--text); }
.nav__menu a:hover::after, .nav__menu a.is-active::after { width: 100%; }

.theme-toggle {
  background: none; border: 1px solid var(--line); color: var(--text);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle svg { width: 17px; height: 17px; fill: currentColor; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 1.5px; background: var(--text); margin: 5px 0; transition: .3s; }

/* ============================================================
   Hero — dramatic, asymmetric, moonlit
   ============================================================ */
.hero {
  position: relative; z-index: 2;
  min-height: 90vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 60px 0;
  background:
    radial-gradient(60% 55% at 78% 34%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 60%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  width: 100%;
}
.hero__content { max-width: 620px; }
.hero h1 {
  font-size: clamp(3rem, 8.5vw, 6rem);
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 1rem; font-weight: 500;
  margin: 0 0 22px;
}
.hero__subtitle .sep { color: var(--gold); margin: 0 .5em; }
.hero__text { color: var(--muted); font-size: 1.12rem; max-width: 46ch; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero__media { position: relative; justify-self: center; }
.hero__media::after {
  content: ""; position: absolute; inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 22%, transparent), transparent 62%);
  z-index: -1; filter: blur(14px);
}
.hero__media img {
  width: min(500px, 100%);
  border-radius: 4px;
  box-shadow: 0 40px 90px rgba(0,0,0,.6);
}

/* Inner page hero */
.pagehero {
  position: relative; z-index: 2;
  padding: clamp(96px, 15vw, 170px) 0 clamp(56px, 8vw, 90px);
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% -10%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%),
    var(--bg-deep);
}
:root[data-theme="light"] .pagehero {
  background: radial-gradient(60% 60% at 50% -10%, rgba(255,255,255,.9), transparent 70%), var(--bg-deep);
}
.pagehero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 18px; }

/* ============================================================
   About
   ============================================================ */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about__img { position: relative; }
.about__img img { border-radius: 4px; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.about__body p { color: var(--muted); font-size: 1.08rem; max-width: 54ch; }
.about__body p + p { margin-top: 1.1rem; }
.about__body .section-title { margin-bottom: 24px; }

/* ============================================================
   Gallery — masonry, images are the star
   ============================================================ */
.gallery { columns: 3 300px; column-gap: 16px; margin-top: 48px; }
.gallery__item {
  break-inside: avoid;
  margin: 0 0 16px;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: zoom-in;
  background: var(--surface);
}
.gallery__item img { width: 100%; height: auto; transition: transform .6s var(--ease), filter .6s var(--ease); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--line-2);
  opacity: 0; transition: opacity .4s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:hover::after { opacity: 1; }

/* ============================================================
   Prices — minimal ledger
   ============================================================ */
.price-list { max-width: 820px; margin: 48px auto 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.price-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 22px 2px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.price-item__title { font-weight: 700; font-size: 1.05rem; }
.price-item__dims { display: block; color: var(--faint); font-size: .8rem; font-weight: 400; margin-top: 4px; }
.price-item__price { font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: 1.25rem; white-space: nowrap; }

/* ============================================================
   TOS — quiet blocks
   ============================================================ */
.tos { max-width: 940px; margin-inline: auto; }
.tos__grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 56px; row-gap: 6px; margin-top: 48px; text-align: left; }
.tos__card { padding: 28px 0 22px; border-top: 1px solid var(--line); }
.tos__card h4 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.tos__card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.tos__card li { margin-bottom: 9px; }
.tos__card li::marker { color: var(--gold); }

/* ============================================================
   Contact hub
   ============================================================ */
.feature-card {
  max-width: 780px; margin: 40px auto 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 30px 32px; display: flex; align-items: center; gap: 24px; text-align: left;
}
.feature-card__icon {
  flex: none; display: grid; place-items: center;
  color: var(--gold);
}
.feature-card__icon svg { width: 34px; height: 34px; fill: currentColor; }
.feature-card__body { flex: 1; }
.feature-card__body h4 { font-size: 1.3rem; margin-bottom: 5px; }
.feature-card__body p { color: var(--muted); margin: 0; }
.feature-card .btn { flex: none; }

.social-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 900px; margin: 44px auto 0; }
.social-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 30px 18px; text-align: center; transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.social-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.social-card svg { width: 28px; height: 28px; fill: var(--gold); margin-bottom: 12px; }
.social-card strong { display: block; font-weight: 700; font-size: .95rem; }
.social-card span { display: block; color: var(--faint); font-size: .82rem; margin-top: 2px; word-break: break-word; }

/* ============================================================
   Contact CTA band + halftone dots
   ============================================================ */
.cta {
  position: relative; text-align: center;
  background:
    radial-gradient(50% 60% at 50% 120%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 65%),
    var(--bg-deep);
}
.cta .section-lead { margin: 0 auto 32px; }
.dots { background-image: radial-gradient(var(--dot) 1px, transparent 1.4px); background-size: 15px 15px; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  display: none; align-items: center; justify-content: center; padding: 24px;
  background: rgba(6,7,10,.94); backdrop-filter: blur(8px);
}
.lightbox.is-open { display: flex; }
.lightbox__stage { position: relative; max-width: min(1100px, 94vw); max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: 100%; max-height: 88vh; border-radius: 3px; box-shadow: 0 40px 100px rgba(0,0,0,.7); animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.lightbox__btn:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.lightbox__btn svg { width: 22px; height: 22px; fill: currentColor; }
.lightbox__prev { left: -14px; }
.lightbox__next { right: -14px; }
.lightbox__close {
  position: fixed; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .25s var(--ease);
}
.lightbox__close:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
@media (max-width: 620px) { .lightbox__prev { left: 4px; } .lightbox__next { right: 4px; } .lightbox__btn { width: 42px; height: 42px; } }

/* ============================================================
   Modal (VGen)
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(6,7,10,.78); backdrop-filter: blur(6px); }
.modal.is-open { display: flex; }
.modal__dialog { position: relative; width: min(920px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal__head h3 { font-size: 1.2rem; }
.modal__close { background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.modal__close:hover { color: var(--gold); }
.modal__body { padding: 0; background: var(--bg-deep); }
.modal__frame { width: 100%; height: 60vh; border: 0; display: block; background: var(--bg-deep); }
.modal__fallback { padding: 20px 22px; text-align: center; border-top: 1px solid var(--line); }
.modal__fallback p { color: var(--muted); margin: 0 0 14px; font-size: .9rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { position: relative; z-index: 2; background: var(--bg-deep); padding: clamp(56px, 8vw, 88px) 0 40px; text-align: center; }
.site-footer img { height: 74px; width: auto; margin: 0 auto 26px; }
.socials { display: flex; justify-content: center; gap: 14px; list-style: none; margin: 0 0 24px; padding: 0; flex-wrap: wrap; }
.socials a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: .3s var(--ease); }
.socials a:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.copyright { color: var(--faint); font-size: .85rem; margin: 0; }

/* ============================================================
   Motion — hero page-load choreography only (no per-section reflex)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: rise .9s var(--ease) both; }
  .hero__content > *:nth-child(2) { animation-delay: .08s; }
  .hero__content > *:nth-child(3) { animation-delay: .16s; }
  .hero__content > *:nth-child(4) { animation-delay: .24s; }
  .hero__media { animation: fade 1.2s var(--ease) both .1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .social-cards { grid-template-columns: repeat(2, 1fr); }
  .feature-card { flex-direction: column; text-align: center; }
}
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero__inner, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero__content { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__media { order: -1; }
  .about__img { max-width: 460px; margin-inline: auto; }
  .tos__grid { grid-template-columns: 1fr; }

  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 92px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-deep); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .nav__menu.is-open { max-height: 360px; }
  .nav__menu li { border-top: 1px solid var(--line); }
  .nav__menu a { display: block; padding: 16px 24px; }
}
@media (max-width: 680px) {
  .price-list { grid-template-columns: 1fr; column-gap: 0; max-width: 480px; }
}
@media (max-width: 560px) {
  .social-cards { grid-template-columns: 1fr; }
  .modal__frame { height: 70vh; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin-inline: auto; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
