/* ===== ROYAL WASTE - Dark Charcoal Urban Premium ===== */
:root {
  --bg: #1C1C1C;
  --bg-light: #242424;
  --bg-card: #2A2A2A;
  --royal: #2B47A8;
  --royal-light: #4060C8;
  --royal-dark: #1E3580;
  --royal-glow: rgba(43, 71, 168, 0.2);
  --silver: #C0C0C0;
  --silver-light: #D8D8D8;
  --silver-dark: #8A8A8A;
  --white: #FFFFFF;
  --gray-50: #F5F5F5;
  --gray-100: #EBEBEB;
  --gray-200: #D4D4D4;
  --gray-300: #B0B0B0;
  --gray-400: #8A8A8A;
  --gray-500: #6B6B6B;
  --gray-600: #4A4A4A;
  --gray-700: #363636;
  --gray-800: #2A2A2A;
  --gray-900: #1C1C1C;
  --text: #F0F0F0;
  --text-secondary: #8A8A8A;
  --text-dark: #1C1C1C;
  --border: rgba(255,255,255,0.08);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.4);
  --transition: 0.3s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

/* ===== SAMPLE BANNER ===== */
.sample-banner {
  background: var(--royal);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 38px;
  left: 0;
  width: 100%;
  z-index: 9000;
  background: rgba(28, 28, 28, 0.92);
  backdrop-filter: blur(16px);
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border: 2px solid var(--royal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-r {
  font-family: 'Inter', serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--royal-light);
}

.logo-main {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.15em;
}

.logo-sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  color: var(--silver-dark);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.nav-cta {
  background: var(--royal) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: var(--radius) !important;
}

.nav-cta:hover {
  background: var(--royal-light) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1C1C1C 0%, #141420 50%, #1C1C1C 100%);
  overflow: hidden;
  padding-top: 110px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(43, 71, 168, 0.06) 0%, transparent 50%),
    linear-gradient(225deg, rgba(192, 192, 192, 0.03) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--silver-dark);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(36px, 6.5vw, 72px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 2;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--royal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--royal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--royal-glow);
}

.btn-outline {
  background: transparent;
  color: var(--silver);
  border: 1px solid rgba(192, 192, 192, 0.3);
}

.btn-outline:hover {
  border-color: var(--silver);
  color: var(--white);
}

.btn-full { width: 100%; }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--royal), transparent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 120px 0;
}

.section:nth-child(even) {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--royal-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-label { text-align: left; }
.about-content .section-title { text-align: left; margin-bottom: 24px; }

.about-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 2;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--royal-light);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.about-img-box {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-img-placeholder, .work-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card) 0%, #1E1E2E 100%);
  color: var(--gray-500);
  font-size: 14px;
}

/* ===== SERVICES ===== */
.services {
  background: var(--bg) !important;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  border-color: rgba(43, 71, 168, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.service-number {
  font-family: 'Inter', sans-serif;
  font-size: 56px;
  font-weight: 900;
  color: rgba(43, 71, 168, 0.12);
  line-height: 1;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card > p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.service-list li {
  font-size: 12px;
  color: var(--gray-400);
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--royal);
  border-radius: 50%;
}

/* ===== WORKS ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.work-card:hover {
  border-color: rgba(43, 71, 168, 0.3);
  transform: translateY(-4px);
}

.work-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.work-content {
  padding: 24px;
}

.work-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--royal-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(43, 71, 168, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.work-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.5;
}

.work-content p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.work-stats {
  display: flex;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.work-stats span {
  font-size: 12px;
  color: var(--gray-500);
}

.work-stats strong {
  color: var(--royal-light);
  font-weight: 700;
}

/* ===== NUMBERS ===== */
.numbers {
  background: linear-gradient(135deg, #141420 0%, var(--bg) 100%) !important;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.number-card {
  text-align: center;
  padding: 40px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(43, 71, 168, 0.03);
}

.number-value {
  font-family: 'Inter', sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: var(--royal-light);
  line-height: 1;
}

.number-unit {
  font-size: 18px;
  font-weight: 600;
  color: var(--silver-dark);
  margin-left: 4px;
}

.number-label {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 8px;
}

/* ===== FLOW ===== */
.flow-steps {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--royal), var(--border));
}

.flow-step {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 44px;
  position: relative;
}

.flow-step:last-child { margin-bottom: 0; }

.flow-number {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--bg);
  color: var(--royal-light);
  border: 1px solid rgba(43, 71, 168, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.flow-content {
  padding-top: 14px;
}

.flow-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.flow-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ===== COMPANY ===== */
.company-table {
  max-width: 800px;
  margin: 0 auto;
}

.company-table table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  text-align: left;
}

.company-table th {
  font-weight: 600;
  color: var(--silver);
  width: 160px;
}

.company-table td {
  color: var(--text-secondary);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-label { text-align: left; }
.contact-info .section-title { text-align: left; margin-bottom: 16px; }

.contact-info > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-icon { font-size: 20px; flex-shrink: 0; }

.contact-item small {
  display: block;
  font-size: 11px;
  color: var(--gray-500);
}

.contact-item strong {
  font-size: 14px;
  color: var(--white);
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

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

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--silver);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  background: rgba(255,255,255,0.03);
  color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px var(--royal-glow);
}

.form-group select option {
  background: var(--bg);
  color: var(--white);
}

/* ===== FOOTER ===== */
.footer {
  background: #111111;
  color: var(--gray-500);
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 16px;
}

.footer-brand .logo-main { font-size: 14px; }

.footer-nav h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-nav li { margin-bottom: 8px; }
.footer-nav a { font-size: 12px; color: var(--gray-600); }
.footer-nav a:hover { color: var(--royal-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 11px;
}

.footer-credit a { color: var(--royal-light); }
.footer-credit a:hover { color: var(--white); }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, #141420 0%, var(--bg) 100%) !important;
  padding: 100px 0;
}

.cta-box {
  text-align: center;
}

.cta-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--silver-dark);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cta-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CLIENTS ===== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}

.client-card:hover {
  border-color: rgba(43, 71, 168, 0.3);
}

.client-card span {
  font-size: 14px;
  font-weight: 500;
  color: var(--silver);
}

/* ===== CERTIFICATIONS ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.cert-card:hover {
  border-color: rgba(43, 71, 168, 0.4);
  transform: translateY(-4px);
}

.cert-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--royal-light);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.cert-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== BIM ===== */
.bim-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bim-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.bim-step:hover {
  border-color: rgba(43, 71, 168, 0.4);
  transform: translateY(-4px);
}

.bim-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.bim-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.bim-step p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.faq-a {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 20px;
  border-left: 2px solid var(--royal);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sample-banner { font-size: 11px; padding: 8px 16px; }
  .header { top: 34px; }
  .header-inner { height: 60px; }
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 94px;
    left: 0;
    width: 100%;
    height: calc(100vh - 94px);
    background: rgba(28, 28, 28, 0.98);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav.active { opacity: 1; pointer-events: all; }
  .nav-list { flex-direction: column; gap: 24px; }
  .nav-list a { font-size: 16px; color: var(--white); }

  .hero { padding-top: 94px; }
  .hero-title { font-size: clamp(28px, 8vw, 48px); }

  .section { padding: 72px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .number-value { font-size: 40px; }

  .flow-steps::before { left: 24px; }
  .flow-number { width: 48px; height: 48px; font-size: 13px; }
  .flow-step { gap: 24px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 24px; }
  .company-table th { width: 120px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
  .about-stats { flex-direction: column; gap: 16px; }
}
