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

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-border: #e5e7eb;
  --font-family: 'Noto Sans JP', sans-serif;
  --container-width: 1200px;
  --header-height: 80px;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: transparent;
  border-bottom: none;
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.logo img {
  height: 50px;
  width: auto;
}

/* Navigation */
.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text);
  transition: 0.3s;
}

/* Main Content */
main {
  margin-top: var(--header-height);
}

/* Hero Full Screen */
.hero-full {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(180deg,
      rgba(135, 206, 235, 0.3) 0%,
      rgba(255, 255, 255, 0.9) 40%,
      rgba(255, 255, 255, 1) 100%
    ),
    radial-gradient(ellipse at 20% 80%, rgba(34, 139, 34, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 85%, rgba(34, 139, 34, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 90%, rgba(85, 107, 47, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 10% 70%, rgba(107, 142, 35, 0.08) 0%, transparent 35%),
    radial-gradient(ellipse at 90% 75%, rgba(60, 179, 113, 0.08) 0%, transparent 35%);
  color: var(--color-text);
  position: relative;
  margin-top: calc(-1 * var(--header-height));
  overflow: hidden;
}

.hero-full::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23228B22' fill-opacity='0.08' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,218.7C672,235,768,245,864,234.7C960,224,1056,192,1152,181.3C1248,171,1344,181,1392,186.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
  pointer-events: none;
}

.hero-full::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23556B2F' fill-opacity='0.06' d='M0,288L48,272C96,256,192,224,288,213.3C384,203,480,213,576,229.3C672,245,768,267,864,261.3C960,256,1056,224,1152,208C1248,192,1344,192,1392,192L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
  pointer-events: none;
}

#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-location {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-logo {
  max-width: 80%;
  max-height: 40vh;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.5rem);
  opacity: 0.7;
  letter-spacing: 0.15em;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
  transform: rotate(45deg);
  opacity: 0.3;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

/* Legacy Hero */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.hero-text {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

/* Sections */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.service-card {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.service-card p {
  color: var(--color-text-light);
}

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

/* About Preview */
.about-preview {
  background: var(--color-bg-alt);
  text-align: center;
}

.about-preview p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--color-text-light);
}

/* CTA Section */
.cta {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}

.cta h2 {
  color: #fff;
}

.cta p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

.cta .btn-primary:hover {
  background: var(--color-bg-alt);
}

/* Page Content */
.page-content {
  padding: 60px 0;
}

.page-header {
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  text-align: left;
}

.content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.content p {
  margin-bottom: 1rem;
}

.content ul, .content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.5rem;
}

/* Company Info Table */
.company-info {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.company-info th,
.company-info td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.company-info th {
  width: 30%;
  background: var(--color-bg-alt);
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  margin: 2rem 0;
}

.google-form-embed {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.google-form-embed iframe {
  width: 100%;
  border: none;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-info .company-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-info p {
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.footer-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-nav a {
  color: #fff;
  opacity: 0.8;
}

.footer-nav a:hover {
  opacity: 1;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.6;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .hero-title {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    padding: 0 1rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .site-header .container {
    padding: 0 15px;
  }

  .logo img {
    height: 35px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .main-nav a {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  section {
    padding: 40px 0;
  }

  .page-content {
    padding: 40px 0;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .content h2 {
    font-size: 1.25rem;
  }

  .company-info th,
  .company-info td {
    display: block;
    width: 100%;
  }

  .company-info th {
    border-bottom: none;
    padding-bottom: 0.5rem;
  }

  .company-info td {
    padding-top: 0.5rem;
  }

  .google-form-embed iframe {
    width: 100%;
    min-height: 500px;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  .scroll-indicator span {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.2rem;
  }

  .container {
    padding: 0 15px;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}
