/* ==========================================================================
   THEMES & DESIGN SYSTEM (Sumi Ink & Crimson Dark Theme)
   ========================================================================== */
:root {
  --bg-color: #0f0f11;
  --bg-subtle: #16161a;
  --surface-color: #1a1a1e;
  --text-color: #eae8e3;
  --text-muted: #8b8982;
  --accent-primary: #d9383a;   /* Vermilion / Shu-iro */
  --accent-glow: rgba(217, 56, 58, 0.15);
  --border-color: #27272e;
  --shadow-color: rgba(0, 0, 0, 0.5);
  
  --font-serif: 'Noto Serif JP', 'Georgia', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.7;
  letter-spacing: 0.015em;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Background Grid Accent */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 100px 0;
}

/* Vertical Japanese Accent */
.vertical-accent {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  opacity: 0.35;
  pointer-events: none;
  z-index: 10;
}

/* Headings */
.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 40px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.title-kanji {
  font-size: 1rem;
  color: var(--accent-primary);
  opacity: 0.8;
  font-weight: 300;
}

.section-title::after {
  content: '';
  flex-grow: 1;
  max-width: 60px;
  height: 1px;
  background: var(--accent-primary);
  margin-left: 12px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(15, 15, 17, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.site-logo .dot { color: var(--accent-primary); }
.logo-kanji {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--accent-primary); }

/* Hero */
.hero-section { padding: 130px 0 90px; }

.badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px 12px;
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-primary);
  border-radius: 50%;
}

.badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-kanji {
  font-size: 2.2rem;
  color: var(--accent-primary);
  font-weight: 300;
  letter-spacing: 0.08em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 40px;
}

.hero-cta { display: flex; gap: 16px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
}
.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Cards & Content */
.about-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 30px;
}

.about-card {
  background: var(--surface-color);
  padding: 32px;
  border: 1px solid var(--border-color);
  position: relative;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background-color: var(--accent-primary);
}

.about-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.about-card ul { list-style: none; }
.about-card li { margin-bottom: 12px; font-size: 0.88rem; color: var(--text-muted); }
.about-card strong { color: var(--text-color); }

/* Socials Grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.social-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-color);
}

.social-name {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.social-card:hover .social-name { color: var(--text-color); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

/* Refined Image Card & Outline */
.gallery-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

/* Subtle corner mark accent on hover */
.gallery-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 16px 16px 0;
  border-color: transparent var(--accent-primary) transparent transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Hover State: Subtle lift, crimson glow, and highlighted border */
.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 24px rgba(217, 56, 58, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.4);
}

.gallery-card:hover::after {
  opacity: 1;
}

/* Square Image Container */
.gallery-img-wrapper {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.gallery-card:hover .gallery-img-wrapper {
  border-bottom-color: rgba(217, 56, 58, 0.4);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Caption styling */
.gallery-caption {
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.gallery-card:hover .gallery-caption {
  color: var(--text-color);
}

/* Lightbox Modal */
.lightbox-modal {
  margin: auto;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  max-width: 85vw;
  max-height: 85vh;
}

.lightbox-modal::backdrop { background-color: rgba(0, 0, 0, 0.88); }
.lightbox-content { position: relative; padding: 24px; max-width: 900px; }
.lightbox-content img { width: 100%; max-height: 70vh; object-fit: contain; display: block; }
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-color);
  cursor: pointer;
}
.lightbox-caption { margin-top: 16px; text-align: center; font-size: 0.85rem; color: var(--text-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .vertical-accent { display: none; }
  .hero-title { font-size: 3.2rem; }
  .hero-kanji { font-size: 1.6rem; }
  .about-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}