/* ==========================================================
   ECO KAITAI - エコ解体 Website Stylesheet
   Color Palette:
     White:        #FFFFFF
     Forest Green: #1B5E20
     Lime Accent:  #7CB342
     Light Green:  #F1F8E9
     Dark Green:   #0D3311
   ========================================================== */

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  line-height: 1.8;
  font-size: 15px;
  background: #fff;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.pc-only {
  display: inline;
}

/* ========== SAMPLE BANNER ========== */
.sample-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1B5E20;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  z-index: 10000;
  letter-spacing: 0.02em;
}

.sample-banner a {
  color: #7CB342;
  text-decoration: underline;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 32px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(27, 94, 32, 0.1);
}

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

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

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  color: #1B5E20;
  letter-spacing: 0.02em;
}

/* ========== DESKTOP NAV ========== */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-desktop a {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  transition: color 0.3s ease;
  position: relative;
}

.nav-desktop a:hover {
  color: #1B5E20;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7CB342;
  transition: width 0.3s ease;
}

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

.nav-cta {
  background: #1B5E20;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  transition: background 0.3s ease;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: #2E7D32;
}

/* ========== HAMBURGER ========== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #1B5E20;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.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);
}

/* ========== MOBILE NAV ========== */
.mobile-nav {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 999;
  transform: translateY(-120%);
  transition: transform 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.mobile-nav a {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  background: #F1F8E9;
  color: #1B5E20;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
}

.btn-primary {
  background: #1B5E20;
  color: #fff;
}

.btn-primary:hover {
  background: #2E7D32;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 94, 32, 0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.btn-full {
  width: 100%;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 94, 32, 0.82) 0%,
    rgba(30, 70, 32, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 60px 20px;
  max-width: 800px;
}

.hero-sub {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #7CB342;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.9;
  opacity: 0.9;
  margin-bottom: 36px;
}

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

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

.section-white {
  background: #fff;
}

.section-light {
  background: #F1F8E9;
}

.section-green {
  background: #1B5E20;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7CB342;
  text-align: center;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  text-align: center;
  color: #1B5E20;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.9;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}

.about-icon {
  display: flex;
  justify-content: center;
}

.about-text h3 {
  font-size: 22px;
  font-weight: 900;
  color: #1B5E20;
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 16px;
  color: #555;
  line-height: 2;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: #1B5E20;
  font-weight: 700;
}

/* ========== RECYCLE FLOW ========== */
.recycle-diagram {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
}

.recycle-svg {
  width: 100%;
  height: auto;
}

.recycle-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recycle-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(124, 179, 66, 0.3);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.recycle-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.recycle-card-icon {
  margin-bottom: 16px;
}

.recycle-card h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.recycle-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.7;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 28px;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27, 94, 32, 0.1);
}

.service-icon {
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 900;
  color: #1B5E20;
  margin-bottom: 12px;
}

.service-card p {
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.9;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags li {
  background: #F1F8E9;
  color: #1B5E20;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ========== NUMBERS ========== */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.number-card {
  text-align: center;
  padding: 32px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(124, 179, 66, 0.3);
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.number-card:hover {
  transform: translateY(-3px);
}

.number-value {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.number-unit {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: #7CB342;
  margin-left: 2px;
}

.number-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-top: 8px;
  font-weight: 500;
}

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

.work-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27, 94, 32, 0.1);
}

.work-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-img img {
  transform: scale(1.05);
}

.work-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1B5E20;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
}

.work-body {
  padding: 24px;
}

.work-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1B5E20;
  margin-bottom: 10px;
}

.work-body p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 14px;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.work-meta span {
  font-size: 12px;
  color: #888;
  background: #F1F8E9;
  padding: 3px 10px;
  border-radius: 4px;
}

/* ========== FLOW ========== */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.flow-step {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  border: 1px solid #e0e0e0;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(27, 94, 32, 0.08);
}

.flow-num {
  font-size: 48px;
  font-weight: 900;
  color: #7CB342;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 12px;
}

.flow-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1B5E20;
  margin-bottom: 10px;
}

.flow-step p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

/* ========== PROMISE ========== */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.promise-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid #e0e0e0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promise-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(27, 94, 32, 0.08);
}

.promise-icon {
  flex-shrink: 0;
}

.promise-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1B5E20;
  margin-bottom: 8px;
}

.promise-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: #1B5E20;
  padding: 60px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-actions .btn {
  white-space: nowrap;
}

.cta-actions .btn-primary:hover {
  background: #8BC34A !important;
}

/* ========== COMPANY ========== */
.company-table {
  max-width: 800px;
  margin: 48px auto 0;
  background: #F1F8E9;
  border-radius: 12px;
  overflow: hidden;
}

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

.company-table th,
.company-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid rgba(27, 94, 32, 0.1);
  font-size: 14px;
}

.company-table th {
  width: 160px;
  background: rgba(27, 94, 32, 0.06);
  color: #1B5E20;
  font-weight: 700;
  white-space: nowrap;
}

.company-table td {
  color: #555;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

/* ========== CONTACT ========== */
.contact-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.contact-tel {
  text-align: center;
  margin-bottom: 40px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(124, 179, 66, 0.3);
}

.contact-tel-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 8px;
}

.contact-tel-num {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.03em;
  display: block;
}

.contact-tel-hours {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-top: 8px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 36px;
  border: 1px solid rgba(124, 179, 66, 0.3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.req {
  background: #E53935;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(124, 179, 66, 0.4);
  border-radius: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #7CB342;
  box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.2);
}

.form-group textarea {
  resize: vertical;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.contact-form .btn {
  margin-top: 8px;
  font-size: 16px;
  padding: 16px;
}

/* ========== FOOTER ========== */
.footer {
  background: #0D3311;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 32px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-links a {
  font-size: 13px;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
}

.footer-credit a {
  color: #7CB342;
  text-decoration: underline;
}

.footer-credit a:hover {
  color: #8BC34A;
}

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

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

/* Staggered delays for grid children */
.fade-up:nth-child(2) {
  transition-delay: 0.1s;
}

.fade-up:nth-child(3) {
  transition-delay: 0.2s;
}

.fade-up:nth-child(4) {
  transition-delay: 0.3s;
}

/* ========== RESPONSIVE: TABLET ========== */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .about-icon svg {
    width: 150px;
    height: 150px;
  }

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

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    justify-content: center;
  }

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

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .work-img {
    height: 220px;
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .recycle-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: 100px;
    min-height: 90vh;
  }

  .pc-only {
    display: none;
  }
}

/* ========== RESPONSIVE: MOBILE ========== */
@media (max-width: 600px) {
  .sample-banner {
    font-size: 11px;
    padding: 6px 12px;
  }

  .header {
    top: 28px;
  }

  .header-inner {
    height: 60px;
  }

  .mobile-nav {
    top: 88px;
  }

  .hero {
    min-height: 85vh;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 14px;
    margin-bottom: 36px;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .numbers-grid {
    gap: 16px;
  }

  .number-card {
    padding: 24px 12px;
  }

  .company-table th {
    width: 110px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .company-table td {
    padding: 12px 14px;
    font-size: 13px;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .recycle-diagram {
    margin: 0 -10px 40px;
  }

  .logo-text {
    font-size: 17px;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  .sample-banner,
  .header,
  .mobile-nav,
  .hamburger {
    display: none !important;
  }

  .hero {
    margin-top: 0;
    min-height: auto;
    page-break-after: always;
  }

  .section {
    padding: 40px 0;
  }

  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}