:root {
  --color-bg: #0e0e10;
  --color-bg-alt: #17171a;
  --color-text: #f2f0ea;
  --color-text-muted: #b7b2a6;
  --color-accent: #c9a24b;
  --color-border: #2a2a2e;
  --max-width: 1080px;
  --font-en: 'Cormorant Garamond', serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-jp-heading: 'Shippori Mincho', serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-weight: 300;
}

h1, h2, h3, p {
  overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Site intro */
.site-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  cursor: pointer;
  animation: intro-overlay-out 0.9s ease forwards;
  animation-delay: 2.6s;
}

.site-intro.is-skipped {
  animation: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.site-intro-inner {
  text-align: center;
}

.site-intro-logo {
  display: block;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  color: var(--color-text);
  opacity: 0;
  animation: intro-text-in 1.1s ease forwards;
  animation-delay: 0.2s;
}

.site-intro-line {
  display: block;
  width: 0;
  height: 1px;
  margin: 22px auto;
  background: var(--color-accent);
  animation: intro-line-draw 0.8s ease forwards;
  animation-delay: 1.1s;
}

.site-intro-sub {
  display: block;
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--color-text-muted);
  opacity: 0;
  animation: intro-sub-in 1s ease forwards;
  animation-delay: 1.5s;
}

@keyframes intro-text-in {
  from { opacity: 0; letter-spacing: 0.9em; }
  to { opacity: 1; letter-spacing: 0.5em; }
}

@keyframes intro-sub-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes intro-line-draw {
  from { width: 0; }
  to { width: 64px; }
}

@keyframes intro-overlay-out {
  0% { opacity: 1; visibility: visible; pointer-events: auto; }
  99% { opacity: 0; visibility: visible; pointer-events: none; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-intro {
    animation: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(14, 14, 16, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  z-index: 10;
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height 0.3s ease;
}

.site-header.is-scrolled .header-inner {
  height: 60px;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.logo {
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.logo-main {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.logo-sub {
  font-family: var(--font-en);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--color-accent);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.25s ease;
}

.nav a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.35), rgba(10,10,12,0.75));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  min-width: 0;
  width: 100%;
}

.hero h1 {
  font-family: var(--font-jp-heading);
  font-size: 2.7rem;
  line-height: 1.5;
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-sub {
  font-family: 'Hina Mincho', serif;
  color: #ece8de;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  margin: 0 0 36px;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-fade {
  opacity: 0;
  animation: hero-fade-up 0.9s ease forwards;
  animation-delay: var(--delay, 0s);
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--color-accent);
  color: #1a1508;
  font-weight: 500;
}

.btn-primary:hover {
  box-shadow: 0 10px 24px rgba(201, 162, 75, 0.35);
}

.btn-outline {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #1a1508;
}

/* Sections */
section {
  padding: 96px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.eyebrow {
  font-family: var(--font-en);
  color: var(--color-accent);
  letter-spacing: 0.3em;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 12px;
}

section h2 {
  font-family: var(--font-jp-heading);
  font-size: 1.9rem;
  font-weight: 500;
  margin: 0 0 32px;
  letter-spacing: 0.03em;
}

.services {
  background: var(--color-bg-alt);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}

.service-list li {
  border-bottom: 1px solid var(--color-border);
}

.service-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.service-list a::after {
  content: "\2192";
  color: var(--color-accent);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(-6px);
}

.service-list a:hover {
  color: var(--color-text);
  padding-left: 6px;
}

.service-list a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.services-note {
  margin-top: 32px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Works: Before / After */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.ba-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ba-grid .ba-card:nth-child(2) { transition-delay: 0.1s; }
.ba-grid .ba-card:nth-child(3) { transition-delay: 0.2s; }
.ba-grid .ba-card:nth-child(4) { transition-delay: 0.3s; }

.ba-card.is-visible {
  opacity: 1;
  transform: none;
}

.ba-images {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.ba-half {
  position: relative;
  width: 50%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.ba-half + .ba-half {
  border-left: 1px solid var(--color-accent);
}

.ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ba-card:hover .ba-after img {
  transform: scale(1.06);
}

.ba-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    135deg,
    var(--color-bg-alt),
    var(--color-bg-alt) 10px,
    #1e1c16 10px,
    #1e1c16 20px
  );
}

.ba-placeholder span {
  font-family: var(--font-en);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 2px;
  background: rgba(14, 14, 16, 0.6);
}

.ba-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 3px 10px;
  border-radius: 2px;
  background: rgba(14, 14, 16, 0.7);
}

.ba-tag-after {
  color: #1a1508;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.ba-caption {
  padding: 18px 4px 0;
}

.ba-title {
  font-family: var(--font-jp-heading);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.ba-text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.works-note {
  margin-top: 32px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* Blocky */
.blocky {
  background: var(--color-bg-alt);
}

.blocky-award {
  display: inline-block;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 4px 12px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
  margin-bottom: 20px;
}

.blocky-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.blocky-features li {
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  position: relative;
}

.blocky-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 1px;
  background: var(--color-accent);
}

.blocky-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* News */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  display: flex;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.news-date {
  flex: 0 0 auto;
  font-family: var(--font-en);
  color: var(--color-accent);
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding-top: 2px;
}

.news-title {
  margin: 0 0 6px;
  font-weight: 500;
}

.news-text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.news-note {
  margin-top: 20px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* About */
.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table th, .about-table td {
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.about-table th {
  width: 140px;
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.9rem;
}

/* Contact */
.contact-buttons {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.contact p {
  color: var(--color-text-muted);
  max-width: 560px;
}

/* Service detail pages */
.service-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.service-hero-inner {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
}

.service-hero h1 {
  font-family: var(--font-jp-heading);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}

.service-body {
  padding: 88px 0;
}

.service-body-inner {
  max-width: 640px;
}

.blocky-body {
  max-width: 720px;
}

.blocky-body .about-table {
  margin: 8px 0 20px;
}

.service-body p {
  color: var(--color-text-muted);
  margin: 0 0 20px;
}

.service-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 24px;
  transition: color 0.25s ease;
}

.service-back:hover {
  color: var(--color-accent);
}

.service-subhead {
  font-family: var(--font-jp-heading);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 44px 0 18px;
}

.service-cta {
  margin-top: 40px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 720px) {
  .brk-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(14, 14, 16, 0.98);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav.is-open {
    max-height: 420px;
  }

  .nav a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav a::after {
    display: none;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    min-height: 80vh;
  }

  .hero h1 { font-size: 1.7rem; }
  .service-list { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .about-table th { width: 100px; font-size: 0.8rem; }
  .news-list li { flex-direction: column; gap: 6px; }
  .contact-buttons { flex-direction: column; align-items: stretch; }
  .contact-buttons .btn { text-align: center; }
}

@media (max-width: 380px) {
  .logo-main { font-size: 1.15rem; }
  .hero h1 { font-size: 1.4rem; }
}
