/* 
 * Top Garden - Design System & Main Styles
 * High-end Exterior / Landscape
 */

:root {
  /* Design Tokens */
  --bg: #FFFFFF;
  --surface: #F6FAF7;
  --text: #0F1B14;
  --muted: #5E6E64;
  --primary: #1E7A3D;
  --primary-2: #2FAE57;
  --accent: #B8E3C6;
  --line: #E2ECE6;
  --shadow: rgba(15, 27, 20, 0.12);
  --warn: #E2B93B;
  --danger: #D64545;

  /* Gradients */
  --hero-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(15, 27, 20, 0.55) 85%);
  --card-overlay: linear-gradient(0deg, rgba(15, 27, 20, 0.6) 0%, rgba(15, 27, 20, 0) 50%);

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;

  /* Fonts */
  --font-main: "Noto Sans JP", sans-serif;
  --font-en: "Inter", sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
}

.font-en {
  font-family: var(--font-en);
}

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

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

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 122, 61, 0.3);
}

.btn-ghost {
  border-color: var(--text);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background-color: var(--bg);
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 15px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo svg {
  height: 40px;
  width: auto;
}

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

.nav-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  letter-spacing: 0.05em;
  padding: 8px 0;
  font-family: var(--font-main);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
}

.bar {
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: all 0.3s ease;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay classes (generated up to 6) */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

/* Footer */
.footer {
  background-color: var(--surface);
  padding: 60px 0 20px;
  border-top: 1px solid var(--line);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-heading {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--primary);
}

.footer-text {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.copyright {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}