/*
Theme Name: Dewa Garden Works
Theme URI: https://dewagardenworks.com
Author: Dewa Garden Works
Description: Dewa Garden Works オリジナルテーマ
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: dgw
*/

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

:root {
  --green-dark:   #1a5c2a;
  --green-mid:    #2d8c47;
  --green-light:  #7ec84a;
  --cream:        #fafaf7;
  --text-dark:    #1a1a1a;
  --text-mid:     #444;
  --text-light:   #777;
  --white:        #ffffff;
  --border:       #e0e0da;
  --shadow:       0 2px 16px rgba(0,0,0,0.08);

  --font-body:    'Noto Sans JP', sans-serif;
  --font-display: 'Noto Serif JP', serif;

  --max-w:        1000px;
  --section-pad:  80px 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.3;
  color: var(--text-dark);
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ===========================
   LAYOUT HELPERS
=========================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
  letter-spacing: 0.03em;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

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

.btn-line {
  background: #06C755;
  color: var(--white);
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 50px;
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}

/* ===========================
   HEADER / NAV
=========================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250,250,247,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 36px;
  width: auto;
}

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

.header-cta .btn {
  padding: 9px 20px;
  font-size: 13px;
}

/* ===========================
   HERO
=========================== */
#hero {
  margin-top: 64px;
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
}

.hero-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 500px;
}

.hero-img-wrap {
  position: relative;
  overflow: hidden;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 3px;
}

.hero-badge.after {
  background: var(--green-dark);
}

.hero-content {
  background: var(--green-dark);
  color: var(--white);
  padding: 48px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  opacity: 0.8;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}

.hero-title span {
  color: var(--green-light);
}

.hero-sub {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.7;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.hero-note {
  font-size: 12px;
  opacity: 0.65;
}

/* ===========================
   TRUST BAR
=========================== */
#trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 20px;
}

.trust-items {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 500;
}

.trust-icon {
  font-size: 20px;
}

/* ===========================
   ABOUT
=========================== */
#about {
  padding: var(--section-pad);
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.about-photo {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
}

.about-text .section-label {
  display: block;
}

.about-text h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-mid);
  margin-bottom: 16px;
  font-size: 15px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag {
  background: #e8f4ec;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
}

/* ===========================
   FEATURES
=========================== */
#features {
  padding: var(--section-pad);
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.feature-card {
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
}

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

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--green-dark);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ===========================
   SERVICES
=========================== */
#services {
  padding: var(--section-pad);
  background: var(--cream);
}

.services-list {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--border);
}

.service-item {
  background: var(--white);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.service-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--green-dark);
}

.service-desc {
  font-size: 14px;
  color: var(--text-mid);
}

.service-price {
  text-align: right;
  white-space: nowrap;
}

.price-main {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.price-unit {
  font-size: 13px;
  color: var(--text-light);
}

.price-tiers {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.price-tier {
  font-size: 14px;
  color: var(--text-mid);
}

.price-tier strong {
  color: var(--text-dark);
  font-weight: 700;
}

.services-note {
  max-width: var(--max-w);
  margin: 16px auto 0;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===========================
   WORK (Before/After ギャラリー)
=========================== */
#work {
  padding: var(--section-pad);
  background: var(--white);
}

.work-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid var(--border);
}

.work-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.work-card-label {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
}

/* ===========================
   FLOW (お問い合わせの流れ)
=========================== */
#flow {
  padding: var(--section-pad);
  background: var(--green-dark);
  color: var(--white);
}

#flow .section-label {
  color: var(--green-light);
}

#flow .section-title {
  color: var(--white);
}

#flow .section-lead {
  color: rgba(255,255,255,0.75);
}

.flow-steps {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
}

.flow-step {
  text-align: center;
  padding: 24px 12px;
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green-light);
  font-size: 20px;
}

.flow-num {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  margin: 0 auto 12px;
}

.flow-step h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.flow-step p {
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.5;
}

.flow-cta {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ===========================
   FAQ
=========================== */
#faq {
  padding: var(--section-pad);
  background: var(--cream);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.5;
}

.faq-arrow {
  font-size: 20px;
  color: var(--green-mid);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ===========================
   BUSINESS (造園業者向け)
=========================== */
#business {
  padding: var(--section-pad);
  background: #1a1a1a;
  color: var(--white);
}

#business .section-label {
  color: var(--green-light);
}

#business .section-title {
  color: var(--white);
}

.business-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.business-inner p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  line-height: 1.8;
}

.btn-white {
  background: var(--white);
  color: var(--text-dark);
  font-weight: 700;
}

/* ===========================
   CONTACT
=========================== */
#contact {
  padding: var(--section-pad);
  background: var(--white);
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner .section-lead {
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.contact-divider {
  font-size: 13px;
  color: var(--text-light);
}

/* ===========================
   FOOTER
=========================== */
#site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.6);
  padding: 40px 20px;
  text-align: center;
}

.footer-logo {
  margin: 0 auto 16px;
  opacity: 0.8;
}

.footer-logo img {
  height: 30px;
  filter: brightness(0) invert(1);
  margin: 0 auto;
}

.footer-info {
  font-size: 13px;
  line-height: 2;
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 12px;
  opacity: 0.5;
}

/* ===========================
   AREA BADGE
=========================== */
.area-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f4ec;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  :root {
    --section-pad: 60px 20px;
  }

  /* Hero */
  #hero {
    min-height: auto;
  }

  .hero-before-after {
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
  }

  .hero-content {
    padding: 40px 20px;
  }

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

  .about-photo {
    max-width: 340px;
    margin: 0 auto;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Services */
  .service-item {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .service-price {
    text-align: left;
  }

  /* Work */
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Flow */
  .flow-steps {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  /* Header CTA */
  .header-cta .btn-outline {
    display: none;
  }
}

@media (max-width: 480px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .trust-items {
    gap: 16px;
  }

  .hero-before-after {
    min-height: 220px;
  }
}
