/* ============================================
   EcoGreen Co., Ltd. — Site Stylesheet
   Single-page scrolling version
   ============================================ */

:root {
  --forest: #1F3A2E;
  --forest-dark: #142720;
  --cream: #F2EEE3;
  --clay: #A8552E;
  --charcoal: #26241F;
  --bronze: #9C8552;
  --white: #FFFFFF;
  --font-display: 'Noto Serif JP', 'Noto Serif', serif;
  --font-body: 'Noto Sans JP', 'Noto Sans', sans-serif;
  --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--bronze);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}

.brand-logo-frame {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F2EEE3;
  border: 1px solid var(--bronze);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.3; }

.brand-company {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.brand-company-tag {
  font-size: 0.78rem;
  color: var(--bronze);
  font-weight: 400;
}

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

.nav-links a {
  color: var(--cream);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active { border-bottom-color: var(--bronze); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--forest);
  color: var(--cream);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1.25;
  margin-bottom: 8px;
  font-weight: 600;
}

.hero .jp-line {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--bronze);
  margin-bottom: 22px;
}

.hero p.lede {
  font-size: 1rem;
  max-width: 480px;
  color: #DCE3D9;
  margin-bottom: 28px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-primary { background: var(--clay); color: var(--white); }
.btn-outline { border: 1px solid var(--bronze); color: var(--cream); }

/* ---------- Slider ---------- */
.hero-art { position: relative; }

.hero-art-frame {
  border: 1px solid var(--bronze);
  padding: 10px;
  position: relative;
}

.slider {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active { opacity: 1; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 4px;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bronze);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.dot.active { opacity: 1; background: var(--cream); }

/* ---------- Section basics ---------- */
section { padding: 72px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 10px;
  font-weight: 600;
}

h2.section-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--forest-dark);
}

.section-title-jp {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--bronze);
  margin-bottom: 32px;
}

/* ---------- Cards (quality / why) ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 8px;
}

.card {
  background: var(--white);
  border: 1px solid #E2DCC9;
  padding: 28px 24px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 6px;
  color: var(--forest-dark);
}

.card .jp {
  font-size: 0.82rem;
  color: var(--bronze);
  margin-bottom: 10px;
}

.card p { font-size: 0.92rem; color: #4A473E; }

/* ---------- About / Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 32px;
}

.split img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border: 1px solid var(--bronze);
}

.split-text p { margin-bottom: 14px; color: #3A382F; }

.jp-block {
  color: #6b6450;
  font-size: 0.93rem;
  margin-bottom: 22px;
}

/* ---------- Read More button ---------- */
.btn-readmore {
  background: none;
  border: 1px solid var(--forest);
  color: var(--forest);
  padding: 10px 22px;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 2px;
  margin-top: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: var(--font-body);
}

.btn-readmore:hover {
  background: var(--forest);
  color: var(--cream);
}

/* ---------- Expanded About content ---------- */
.readmore-content {
  display: none;
  margin-top: 40px;
  border-top: 1px solid #D5CEBC;
  padding-top: 40px;
}

.readmore-content.open { display: block; }

.about-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.about-extra-text h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--forest-dark);
  margin-bottom: 4px;
}

.about-extra-text .jp {
  font-size: 0.82rem;
  color: var(--bronze);
  margin-bottom: 10px;
}

.about-extra-text p { color: #3A382F; }

/* Facility photos inside read more */
.facility-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid #D5CEBC;
}

/* ---------- President card ---------- */
.president-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  background: var(--white);
  border: 1px solid #E2DCC9;
  padding: 36px;
  margin-top: 48px;
}

.president-photo-wrap { position: relative; }

.president-photo {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border: 1px solid var(--bronze);
}

.president-placeholder {
  width: 160px;
  height: 200px;
  background: var(--forest);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  border: 1px solid var(--bronze);
}

.president-message blockquote p {
  margin-bottom: 12px;
  color: #3A382F;
  font-size: 0.96rem;
  line-height: 1.75;
}

.president-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest-dark);
  margin-top: 20px;
}

.president-title {
  font-size: 0.85rem;
  color: var(--bronze);
  margin-top: 4px;
  line-height: 1.5;
}

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 8px;
}

.product-card {
  border: 1px solid #E2DCC9;
  background: var(--cream);
  overflow: hidden;
}

.product-img-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.04);
}

.product-info { padding: 28px 24px; }

.product-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--forest-dark);
  margin-bottom: 4px;
}

.product-info .jp {
  font-size: 0.85rem;
  color: var(--bronze);
  margin-bottom: 14px;
}

.product-info p { color: #3A382F; margin-bottom: 16px; font-size: 0.95rem; }

.product-features {
  list-style: none;
  padding: 0;
  margin-bottom: 4px;
}

.product-features li {
  font-size: 0.88rem;
  color: #4A473E;
  padding: 5px 0;
  border-bottom: 1px solid #E2DCC9;
  padding-left: 16px;
  position: relative;
}

.product-features li::before {
  content: "✓";
  color: var(--forest);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.product-note {
  margin-top: 40px;
  background: var(--forest);
  color: var(--cream);
  padding: 28px 32px;
  border-left: 4px solid var(--clay);
}

.product-note p { margin-bottom: 10px; font-size: 0.95rem; }
.product-note .jp-block { color: #C9CFC4; font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-block {
  margin-bottom: 24px;
}

.contact-block h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--forest-dark);
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-block p,
.contact-block a {
  color: #3A382F;
  font-size: 0.95rem;
  display: block;
  line-height: 1.6;
}

.contact-block a:hover { color: var(--clay); }

.contact-map iframe {
  width: 100%;
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding: 56px 24px;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.cta-band .jp {
  color: var(--bronze);
  margin-bottom: 26px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-dark, #142720);
  color: #C9CFC4;
  padding: 48px 0 28px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a {
  color: #C9CFC4;
  display: block;
  margin-bottom: 8px;
}

.footer-grid a:hover { color: var(--bronze); }

.footer-bottom {
  border-top: 1px solid #2C4438;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #8C9484;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .slider { height: 240px; }
  .split { grid-template-columns: 1fr; }
  .split img { height: 240px; }
  .grid-3 { grid-template-columns: 1fr; }
  .about-extra { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .president-card { grid-template-columns: 1fr; }
  .president-photo, .president-placeholder { width: 100%; height: 220px; }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 14px;
    padding-top: 8px;
  }
  .nav-links.open { display: flex; }
  .hero h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* ---------- Philosophy band ---------- */
.philosophy-band {
  background: var(--forest);
  color: var(--cream);
  padding: 40px 48px;
  margin-bottom: 48px;
  border-left: 4px solid var(--clay);
}

.philosophy-band h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 12px;
}

.philosophy-band .jp-block {
  color: var(--bronze);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---------- Values grid ---------- */
.values-section {
  margin-bottom: 56px;
}

.values-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--forest-dark, #142720);
  margin-bottom: 28px;
  font-weight: 600;
}

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

.value-card {
  background: var(--white);
  border: 1px solid #E2DCC9;
  padding: 24px 20px;
  border-top: 3px solid var(--forest);
}

.value-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 10px;
}

.value-card h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--forest-dark, #142720);
  margin-bottom: 8px;
  font-weight: 600;
}

.value-card p {
  font-size: 0.88rem;
  color: #4A473E;
  line-height: 1.65;
}

/* ---------- Contribution grid ---------- */
.contribution-section {
  margin-bottom: 48px;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contribution-card {
  background: var(--cream);
  border: 1px solid #D5CEBC;
  padding: 24px 20px;
}

.contribution-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--forest-dark, #142720);
  margin-bottom: 12px;
  font-weight: 600;
}

.contribution-card ul {
  list-style: none;
  padding: 0;
}

.contribution-card li {
  font-size: 0.88rem;
  color: #3A382F;
  padding: 5px 0 5px 18px;
  border-bottom: 1px solid #E2DCC9;
  position: relative;
}

.contribution-card li::before {
  content: "→";
  color: var(--clay);
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

/* ---------- Responsive additions ---------- */
@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contribution-grid { grid-template-columns: 1fr; }
  .philosophy-band { padding: 28px 24px; }
}

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

/* ---------- About section slider (bottom to top) ---------- */
.about-slider-wrap {
  position: relative;
  border: 1px solid var(--bronze);
}

.about-slider {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.about-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(100%);
  transition: transform 0.9s ease-in-out;
  z-index: 1;
}

.about-slide.active {
  transform: translateY(0%);
  z-index: 2;
  transition: transform 0.9s ease-in-out;
}

.about-slide.exit {
  transform: translateY(-100%);
  z-index: 3;
  transition: transform 0.9s ease-in-out;
}

.about-dots {
  position: relative;
  background: var(--forest);
  padding: 8px 0 6px;
  margin: 0;
}

.about-dots .dot {
  background: var(--bronze);
}

.about-dots .dot.active {
  background: var(--cream);
}

@media (max-width: 900px) {
  .about-slider { height: 240px; }
}
