:root {
  --c-primary: #0f172a;
  --c-primary-light: #1e293b;
  --c-accent: #38bdf8;
  --c-accent-dark: #0284c7;
  --c-line: #06c755;
  --c-bg: #f8fafc;
  --c-bg-light: #fff;
  --c-text: #334155;
  --c-text-light: #64748b;
  --font-base: "Inter", "Noto Sans JP", sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 #0000000d;
  --shadow-md: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
  --shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
  --shadow-glow: 0 0 20px #38bdf84d;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-base);
  color: var(--c-text);
  background-color: var(--c-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.bg-light {
  background-color: var(--c-bg);
}

.hidden {
  display: none !important;
}

.header {
  z-index: 1000;
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
  transition: all var(--transition-normal);
  background: #ffffffd9;
  border-bottom: 1px solid #0000000d;
  position: fixed;
  top: 0;
  left:0;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

.header-container {
  height: 80px;
  transition: height var(--transition-normal);
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.header.scrolled .header-container {
  height: 60px;
}

.logo {
  color: var(--c-primary);
  letter-spacing: 0.05em;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
}

.logo-icon {
  object-fit: contain;
  width: 32px;
  height: 32px;
}

.nav-list {
  align-items: center;
  gap: 2rem;
  display: flex;
}

.nav-link {
  color: var(--c-primary-light);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-link:not(.btn-primary-sm):after {
  content: "";
  background-color: var(--c-accent);
  width: 0;
  height: 2px;
  transition: width var(--transition-normal);
  position: absolute;
  bottom: -4px;
  left: 0;
}

.nav-link:not(.btn-primary-sm):hover:after {
  width: 100%;
}

.menu-toggle {
  cursor: pointer;
  background: 0 0;
  border: none;
  padding: 0.5rem;
  display: none;
}

.menu-toggle span {
  background-color: var(--c-primary);
  width: 24px;
  height: 2px;
  transition: var(--transition-fast);
  margin-bottom: 5px;
  display: block;
}

.btn {
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid #0000;
  border-radius: 9999px;
  justify-content: center;
  align-items: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
  color: #fff;
  transform: translateY(-2px);
}

.btn-primary-sm {
  background-color: var(--c-primary);
  transition: all var(--transition-fast);
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: #fff !important;
}

.btn-primary-sm:hover {
  background-color: var(--c-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: 0 0;
}

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

.btn-block {
  width: 100%;
}

.hero {
  background-color: var(--c-bg-light);
  background-image: url(/hero_bg.png);
  background-position: 50%;
  background-size: cover;
  align-items: center;
  min-height: 90vh;
  padding: 12rem 0 8rem;
  display: flex;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  z-index: 0;
  background: #fff6;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.hero .container {
  z-index: 1;
  position: relative;
}

.hero-bg {
  display: none;
}

.hero-content {
  z-index: 1;
  text-align: center;
  max-width: 800px;
  position: relative;
}

.hero-title {
  color: var(--c-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-subtitle {
  color: var(--c-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  display: block;
}

.hero-desc {
  color: var(--c-text);
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.hero-actions {
  justify-content: center;
  gap: 1rem;
  display: flex;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header.align-left {
  text-align: left;
}

.section-title {
  color: var(--c-accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.section-subtitle {
  color: var(--c-primary);
  font-size: 2rem;
  font-weight: 700;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  display: grid;
}

.service-card {
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  background: #fff;
  border: 1px solid #00000008;
  border-radius: 16px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.service-card:before {
  content: "";
  background: linear-gradient(90deg, var(--c-accent), var(--c-primary));
  opacity: 0;
  width: 100%;
  height: 4px;
  transition: opacity var(--transition-normal);
  position: absolute;
  top: 0;
  left: 0;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.service-card:hover:before {
  opacity: 1;
}

.service-icon {
  background-color: var(--c-bg);
  width: 64px;
  height: 64px;
  color: var(--c-accent);
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  display: flex;
}

.icon-construction:after {
  content: "🏗️";
  font-size: 32px;
}

.icon-waste:after {
  content: "♻️";
  font-size: 32px;
}

.icon-company:after {
  content: "🏢";
  font-size: 32px;
}

.service-title {
  color: var(--c-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.service-desc {
  color: var(--c-text-light);
  font-size: 0.95rem;
}

.about-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  display: grid;
}

.info-list {
  flex-direction: column;
  gap: 1.5rem;
  display: flex;
}

.info-item {
  border-bottom: 1px solid #0000000d;
  padding-bottom: 1.5rem;
  display: flex;
}

.info-item dt {
  width: 120px;
  color: var(--c-primary);
  font-weight: 600;
}

.info-item dd {
  color: var(--c-text-light);
  flex: 1;
}

.about-image .image-placeholder {
  width: 100%;
  height: 400px;
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  border-radius: 16px;
}

.map-container {
  box-shadow: var(--shadow-md);
  background: #fff;
  border-radius: 16px;
  padding: 0.5rem;
  overflow: hidden;
}

.map-container iframe {
  border-radius: 12px;
}

.contact-wrapper {
  box-shadow: var(--shadow-lg);
  background: #fff;
  border-radius: 24px;
  grid-template-columns: 1fr 1fr;
  display: grid;
  overflow: hidden;
}

.contact-info {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
  display: flex;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  line-height: 1.3;
}

.contact-info p {
  color: #fffc;
  font-size: 1.1rem;
}

.line-contact {
  border-top: 1px solid #ffffff1a;
  margin-top: 2rem;
  padding-top: 2rem;
}

.line-contact-text {
  color: var(--c-accent);
  text-align: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.btn-line {
  color: #fff;
  background-color: #06c755;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
}

.btn-line:hover {
  background-color: #05b34c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #06c7554d;
}

.line-icon {
  width: 24px;
  height: 24px;
}

.contact-form-container {
  padding: 4rem 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  color: var(--c-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
}

.required {
  color: #fff;
  vertical-align: middle;
  background-color: #ef4444;
  border-radius: 4px;
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
}

.form-input,
.form-textarea {
  width: 100%;
  transition: all var(--transition-fast);
  background-color: var(--c-bg);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--c-accent);
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 3px #38bdf833;
}

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

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.form-notice-box {
  background-color: var(--c-bg);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.form-notice-text {
  color: var(--c-text-light);
  font-size: 0.825rem;
  line-height: 1.5;
  margin-bottom: 0.875rem;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  color: var(--c-primary);
  font-size: 0.9rem;
  font-weight: 600;
  user-select: none;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--c-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.form-status {
  text-align: center;
  border-radius: 8px;
  margin-top: 1.5rem;
  padding: 1rem;
  font-weight: 500;
}

.form-status.success {
  color: #166534;
  background-color: #dcfce7;
}

.form-status.error {
  color: #991b1b;
  background-color: #fee2e2;
}

.btn-loader {
  border: 2px solid #ffffff4d;
  border-top-color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: 1s ease-in-out infinite spin;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.footer {
  background-color: var(--c-primary);
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-content {
  border-bottom: 1px solid #ffffff1a;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  display: flex;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-links {
  gap: 2rem;
  display: flex;
}

.footer-links a {
  color: #ffffffb3;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  color: #ffffff80;
  font-size: 0.875rem;
}

@media (width <= 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

  .about-image .image-placeholder {
    height: 300px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-form-container {
    padding: 3rem 2rem;
  }
}

@media (width <= 768px) {
  .nav-list {
    width: 100%;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
    z-index: -1;
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    position: absolute;
    top: 80px;
    left: 0;
    transform: translateY(-150%);
  }

  .nav-list.active {
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 80vh;
    padding: 8rem 0 6rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
  }

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