/* ========================================
   0. CSS Custom Properties
======================================== */
:root {
  --color-primary: #3A7D34;
  --color-primary-light: #4EA644;
  --color-primary-pale: #e8f5e6;
  --color-primary-dark: #2C5E28;
  --color-white: #ffffff;
  --color-light: #f7f9f6;
  --color-gray: #f0f0f0;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #dce8da;
  --font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  --section-padding: 100px 0;
  --container-width: 860px;
  --transition-base: 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.9;
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

/* ========================================
   2. Utility
======================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only {
  display: none;
}

/* ========================================
   3. ヒーローセクション
======================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 背景画像を疑似要素で配置（パララックス対応） */
.hero::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./imgs/hero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(58, 125, 52, 0.82) 0%,
    rgba(44, 94, 40, 0.72) 50%,
    rgba(30, 70, 28, 0.80) 100%
  );
  z-index: 1;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(58, 125, 52, 0.82) 0%,
    rgba(44, 94, 40, 0.72) 50%,
    rgba(30, 70, 28, 0.80) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  animation: heroFadeIn 1.2s ease forwards;
}

.hero-logo {
  width: 140px;
  height: auto;
  margin: 0 auto 36px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.hero-title {
  color: var(--color-white);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-hint span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 1px;
  height: 40px;
  background: var(--color-white);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollLine {
  0% { top: -40px; }
  100% { top: 40px; }
}

/* ========================================
   4. 共通セクションスタイル
======================================== */
.section {
  padding: var(--section-padding);
}

.section-white {
  background-color: var(--color-white);
}

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

.section-heading {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 18px;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section-body p {
  margin-bottom: 1.4em;
  font-size: 1rem;
  color: var(--color-text);
}

.section-body p:last-child {
  margin-bottom: 0;
}

.subsection-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  padding-left: 14px;
  border-left: 4px solid var(--color-primary);
}

.section-body .subsection-heading:first-child {
  margin-top: 0;
}

/* ========================================
   5. 概要セクション - ステップカード
======================================== */
.steps-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 32px;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--color-primary-pale);
  border-radius: 14px;
  padding: 22px 24px;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 125, 52, 0.1);
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step-card p {
  margin-bottom: 0 !important;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ========================================
   6. 目的セクション - 問いボックス
======================================== */
.purpose-question {
  background: linear-gradient(135deg, var(--color-primary-pale) 0%, #f0f8ee 100%);
  border: 2px solid var(--color-primary);
  border-radius: 16px;
  padding: 32px 28px;
  margin: 32px 0;
  text-align: center;
}

.purpose-question-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.purpose-question-text {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--color-text);
  margin-bottom: 0 !important;
}

.purpose-question-text strong {
  color: var(--color-primary-dark);
  font-size: 1.12rem;
}

/* ========================================
   7. パララックス区切り
======================================== */
.parallax-divider {
  height: 220px;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
}

.parallax-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(58, 125, 52, 0.25);
}

.parallax-divider-1 {
  background-image: url('images/divider-1.jpg');
}

.parallax-divider-2 {
  background-image: url('images/divider-2.jpg');
}

.parallax-divider-3 {
  background-image: url('images/divider-3.jpg');
}

/* ========================================
   8. タイムライン（ロードマップ）
======================================== */
.roadmap-intro {
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 56px;
}

.timeline {
  position: relative;
  padding: 20px 0;
}

/* 縦線 */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 4px;
  background: var(--color-border);
  border-radius: 2px;
}

.timeline-line-fill {
  width: 100%;
  height: 0%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: height 0.1s linear;
}

/* 各項目 */
.timeline-item {
  position: relative;
  padding-left: 72px;
  margin-bottom: 56px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* ドット */
.timeline-dot {
  position: absolute;
  top: 6px;
  left: 16px;
  width: 28px;
  height: 28px;
  background: var(--color-white);
  border: 4px solid var(--color-border);
  border-radius: 50%;
  z-index: 2;
  transition: border-color 0.4s ease, background-color 0.4s ease, transform 0.4s ease;
}

.timeline-item.is-active .timeline-dot {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  transform: scale(1.15);
}

.timeline-item.is-active .timeline-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--color-white);
  border-radius: 50%;
}

/* カード */
.timeline-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.timeline-item.is-active .timeline-card {
  border-color: var(--color-primary);
  box-shadow: 0 4px 24px rgba(58, 125, 52, 0.1);
}

.timeline-year {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.timeline-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
  line-height: 1.6;
}

.timeline-card p {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0.9em;
  line-height: 1.85;
}

.timeline-card p:last-child {
  margin-bottom: 0;
}

/* ========================================
   9. フッター
======================================== */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-link {
  display: inline-block;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 28px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}


/* ========================================
   10. フェードインアニメーション
======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-timeline {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-timeline.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   11. レスポンシブ（タブレット）
======================================== */
@media screen and (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
  }

  .hero-title {
    font-size: 1.35rem;
    line-height: 1.8;
  }

  .hero-logo {
    width: 110px;
    margin-bottom: 28px;
  }

  .section-heading {
    font-size: 1.4rem;
    margin-bottom: 36px;
  }

  .subsection-heading {
    font-size: 1.05rem;
  }

  .step-card {
    padding: 18px 18px;
    gap: 14px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .purpose-question {
    padding: 24px 20px;
  }

  .purpose-question-text strong {
    font-size: 1.02rem;
  }

  .parallax-divider {
    height: 160px;
  }

  .timeline-item {
    padding-left: 64px;
    margin-bottom: 44px;
  }

  .timeline-card {
    padding: 22px 20px 20px;
  }
}

/* ========================================
   12. レスポンシブ（スマートフォン）
======================================== */
@media screen and (max-width: 480px) {
  :root {
    --section-padding: 56px 0;
  }

  html {
    font-size: 15px;
  }

  .sp-only {
    display: inline;
  }

  .hero {
    background-attachment: scroll; /* iOSではfixedが効かないため */
  }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(58, 125, 52, 0.82) 0%,
    rgba(44, 94, 40, 0.72) 50%,
    rgba(30, 70, 28, 0.80) 100%
  );
  z-index: 1;
}



  .hero-title {
    font-size: 1.15rem;
    line-height: 1.85;
  }

  .hero-logo {
    width: 90px;
    margin-bottom: 24px;
  }

  .hero-scroll-hint {
    bottom: 20px;
  }

  .section-heading {
    font-size: 1.25rem;
    margin-bottom: 28px;
  }

  .section-body p {
    font-size: 0.95rem;
  }

  .subsection-heading {
    font-size: 1rem;
  }

  .step-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px 16px;
  }

  .purpose-question {
    padding: 20px 16px;
  }

  .parallax-divider {
    height: 120px;
    background-attachment: scroll;
  }

  /* タイムラインをコンパクトに */
  .timeline-line {
    left: 18px;
  }

  .timeline-dot {
    left: 6px;
    width: 28px;
    height: 28px;
  }

  .timeline-item {
    padding-left: 52px;
    margin-bottom: 36px;
  }

  .timeline-card {
    padding: 18px 16px 16px;
  }

  .timeline-card-title {
    font-size: 1.02rem;
  }

  .timeline-card p {
    font-size: 0.9rem;
  }

  .roadmap-intro {
    margin-bottom: 40px;
  }
}

.hero.hero-bg-hidden::before {
  visibility: hidden;
}

