/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0f1115;
  --bg-secondary: #161920;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --accent: #d4af37;
  --font-en: 'Montserrat', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-ja);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 120px 0;
}

.alt-bg {
  background-color: var(--bg-secondary);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 24px 0;
}

.site-header.scrolled {
  background-color: rgba(15, 17, 21, 0.95);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo a {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-list a {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.8;
}

.nav-list a:hover {
  opacity: 1;
  color: var(--accent);
}

.nav-list a.nav-cta {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: 10px 24px;
  border-radius: 4px;
  opacity: 1;
}

.nav-list a.nav-cta:hover {
  background-color: var(--accent);
  color: var(--text-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  position: absolute;
  transition: var(--transition);
}

.menu-toggle span:first-child { top: 4px; }
.menu-toggle span:last-child { bottom: 4px; }

.menu-toggle.active span:first-child {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 40px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15), transparent 50%),
              linear-gradient(135deg, #0f1115 0%, #1a1e26 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin-left: 60px;
}

.hero-sub {
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 24px;
  font-size: 14px;
}

.hero-title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 32px;
  letter-spacing: 2px;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-down span {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 2px;
  writing-mode: vertical-lr;
  color: var(--text-secondary);
}

.arrow-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text-secondary), transparent);
  position: relative;
  overflow: hidden;
}

.arrow-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  animation: scroll-anim 2s infinite ease-in-out;
}

@keyframes scroll-anim {
  0% { transform: translateY(-100%); }
  80%, 100% { transform: translateY(100%); }
}

/* ==========================================================================
   COMMON COMPONENTS
   ========================================================================== */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}

.section-number {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.section-title {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.catch-phrase {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
}

.text-block {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 4px;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.accent-box {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  z-index: -1;
  border-radius: 4px;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--bg-primary);
  padding: 48px 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-num {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
}

.card-title {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   COMPANY INFO SECTION
   ========================================================================== */
.company-wrapper {
  background-color: var(--bg-secondary);
  padding: 40px;
  border-radius: 8px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.company-table tr:last-child {
  border-bottom: none;
}

.company-table th, .company-table td {
  padding: 24px 16px;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 25%;
  font-weight: 600;
  color: var(--accent);
}

.company-table td {
  color: var(--text-primary);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-lead {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.form-group label span {
  background-color: #ef4444;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: middle;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px;
  background-color: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: white;
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.02);
}

.form-submit {
  text-align: center;
  margin-top: 40px;
}

.submit-btn {
  background-color: var(--accent);
  color: var(--bg-primary);
  font-weight: 700;
  border: none;
  padding: 16px 48px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: white;
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #0b0c0e;
  padding: 40px 0;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 8px;
}

.footer-logo span {
  color: var(--accent);
}

.footer-address {
  color: var(--text-secondary);
  font-size: 12px;
}

.copyright {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

/* ==========================================================================
   ANIMATIONS (JS REVEAL)
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-content .fade-in:nth-child(1) { animation-delay: 0.2s; }
.hero-content .fade-in:nth-child(2) { animation-delay: 0.4s; }
.hero-content .fade-in:nth-child(3) { animation-delay: 0.6s; }
.hero-content .fade-in:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-content {
    margin-left: 0;
  }
  .scroll-down {
    left: 40px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--bg-secondary);
    z-index: 1000;
    padding: 100px 40px;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }

  .main-nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .nav-list a {
    font-size: 20px;
  }

  .menu-toggle {
    display: block;
  }

  .company-table th, .company-table td {
    display: block;
    width: 100%;
    padding: 12px 0;
  }
  
  .company-table th {
    padding-bottom: 4px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}