/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #0a0a08;
  --color-surface: #111110;
  --color-text: #f5f0e8;
  --color-text-muted: #a89f90;
  --color-accent: #c8a96e;
  --color-accent-light: #e8d5a8;
  --color-border: rgba(200, 169, 110, 0.2);
  --font-display: 'Cormorant Garamond', 'Noto Serif JP', serif;
  --font-body: 'DM Sans', 'Noto Sans JP', sans-serif;
  --font-label: 'DM Mono', monospace;
  --transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1400px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

.section-label {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ===== HEADER ===== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), padding var(--transition);
}

#site-header.scrolled {
  background: rgba(10, 10, 8, 0.92);
  backdrop-filter: blur(12px);
  padding: 16px 48px;
  border-bottom: 1px solid var(--color-border);
}

.site-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav a {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.3s;
  position: relative;
}

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

.site-nav a:hover { color: var(--color-text); }
.site-nav a:hover::after { width: 100%; }

.nav-contact {
  border: 1px solid var(--color-border);
  padding: 10px 24px;
  color: var(--color-accent) !important;
  transition: background 0.3s, border-color 0.3s !important;
}

.nav-contact:hover {
  background: rgba(200, 169, 110, 0.1);
  border-color: var(--color-accent) !important;
}

.nav-contact::after { display: none !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-text);
  transition: var(--transition);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

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

.hero-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,8,0.2) 0%,
    rgba(10,10,8,0.1) 40%,
    rgba(10,10,8,0.7) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 120px;
  left: 80px;
  max-width: 700px;
}

.hero-content .section-label { margin-bottom: 20px; }

.hero-title {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s 0.3s, transform 0.8s 0.3s;
}

.hero-slide.active .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(245, 240, 232, 0.75);
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 0.5s, transform 0.8s 0.5s;
}

.hero-slide.active .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* Slider navigation */
.hero-nav {
  position: absolute;
  bottom: 48px;
  left: 80px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-dot {
  width: 40px;
  height: 1px;
  background: rgba(245,240,232,0.3);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.hero-dot.active {
  background: var(--color-accent);
  width: 60px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 48px;
  right: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 8, 0.75);
}

.section-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 80px;
}

/* ===== ABOUT SECTION ===== */
#about {
  padding: 140px 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid var(--color-border);
  pointer-events: none;
}

.about-text .section-label { margin-bottom: 24px; }

.about-heading {
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 32px;
  color: var(--color-text);
}

.about-body {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 2;
  margin-bottom: 20px;
}

.about-divider {
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin: 40px 0;
}

.about-tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 300;
  color: var(--color-accent-light);
  line-height: 1.5;
}

/* ===== WHAT WE DO ===== */
#whatwedo {
  padding: 140px 0;
}

.whatwedo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.whatwedo-text { order: 1; }
.whatwedo-image-wrap { order: 2; }

.whatwedo-image-wrap img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.whatwedo-heading {
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 24px;
}

.whatwedo-lead {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 2;
  margin-bottom: 48px;
}

.whatwedo-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.whatwedo-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), background var(--transition);
}

.whatwedo-item:hover {
  border-color: var(--color-accent);
  background: rgba(200, 169, 110, 0.05);
}

.whatwedo-item-num {
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  padding-top: 3px;
  flex-shrink: 0;
}

.whatwedo-item-text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== PRODUCT SECTION ===== */
#product {
  padding: 140px 0;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.product-image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.product-heading {
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 16px;
}

.product-name {
  font-family: var(--font-label);
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.product-tag {
  display: inline-block;
  border: 1px solid var(--color-border);
  padding: 6px 16px;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.product-body {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 2;
  margin-bottom: 40px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--color-accent);
  padding: 14px 36px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-outline svg { transition: transform 0.3s; }
.btn-outline:hover svg { transform: translateX(4px); }

/* ===== NEWS SECTION ===== */
#news {
  padding: 120px 0;
}

.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
}

.news-title {
  font-size: clamp(40px, 5vw, 64px);
}

.news-more {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.news-more:hover { gap: 16px; }

.news-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.news-item {
  display: grid;
  grid-template-columns: 140px 120px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s;
}

.news-item:hover { background: rgba(200,169,110,0.04); }

.news-date {
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.news-category {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  padding: 4px 12px;
  display: inline-block;
}

.news-title-link {
  font-size: 15px;
  color: var(--color-text);
  transition: color 0.3s;
}

.news-item:hover .news-title-link { color: var(--color-accent-light); }

.news-arrow {
  color: var(--color-text-muted);
  transition: color 0.3s, transform 0.3s;
}

.news-item:hover .news-arrow {
  color: var(--color-accent);
  transform: translateX(4px);
}

/* ===== FOOTER ===== */
#site-footer {
  border-top: 1px solid var(--color-border);
  padding: 80px 0 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo img {
  height: 32px;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.footer-nav-label {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.3s;
}

.footer-nav-list a:hover { color: var(--color-text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.footer-copy {
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* ===== FADE IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .section-inner { padding: 0 40px; }
  #site-header { padding: 20px 40px; }
  #site-header.scrolled { padding: 14px 40px; }
  .hero-content { left: 40px; bottom: 100px; }
  .hero-nav { left: 40px; }
  .hero-scroll-hint { right: 40px; }
  
  .about-layout,
  .whatwedo-layout,
  .product-layout { grid-template-columns: 1fr; gap: 60px; }
  
  .whatwedo-text { order: 2; }
  .whatwedo-image-wrap { order: 1; }
  
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 99;
  }
  .site-nav.open a { font-size: 20px; }
  .menu-toggle { display: flex; z-index: 101; }
  
  #site-header { padding: 16px 24px; }
  .section-inner { padding: 0 24px; }
  
  #about, #whatwedo, #product, #news { padding: 80px 0; }
  
  .hero-content { left: 24px; right: 24px; bottom: 80px; }
  .hero-nav { left: 24px; }
  .hero-scroll-hint { display: none; }
  
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-arrow { display: none; }
  
  .footer-inner { padding: 0 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  
  .about-image-wrap img,
  .whatwedo-image-wrap img,
  .product-image-wrap img { height: 300px; }
}

/* ===== PAGE TEMPLATES ===== */
.page-hero {
  height: 50vh;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,8,0.3), rgba(10,10,8,0.8));
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
}

.page-hero-title {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px;
}

.page-content h2 {
  font-size: 28px;
  margin: 48px 0 20px;
  color: var(--color-accent-light);
}

.page-content p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 2;
  margin-bottom: 20px;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
}

.page-content th,
.page-content td {
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  text-align: left;
}

.page-content th {
  background: rgba(200,169,110,0.05);
  color: var(--color-accent-light);
  font-weight: 500;
  width: 200px;
  vertical-align: top;
}

.page-content td { color: var(--color-text-muted); }

/* Contact Form */
.contact-form { max-width: 700px; margin: 0 auto; }

.form-group { margin-bottom: 28px; }

.form-label {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-label .required {
  color: var(--color-accent);
  margin-left: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s;
  outline: none;
  appearance: none;
  border-radius: 0;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  background: rgba(200,169,110,0.03);
}

.form-textarea { resize: vertical; min-height: 160px; }

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  padding: 16px 48px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, opacity 0.3s;
}

.form-submit:hover { opacity: 0.85; }

/* News archive */
.news-archive { padding: 80px 0; }
.news-grid { display: flex; flex-direction: column; border-top: 1px solid var(--color-border); }

/* Single post */
.post-content { max-width: 760px; margin: 0 auto; padding: 60px 40px; }
.post-content p { color: var(--color-text-muted); line-height: 2; margin-bottom: 20px; }
.post-content h2 { font-size: 24px; margin: 40px 0 16px; }
.post-meta {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}
