:root {
  --green-primary: #2d6a4f;
  --green-accent: #40916c;
  --green-light: #d8f3dc;
  --green-bg: #f4fbf5;
  --text-dark: #1a1a1a;
  --text-muted: #555;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 28px rgba(0, 0, 0, 0.09);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ナビバー */
nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6f4ea;
  z-index: 100;
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
}

.logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.logo-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.nav-cta {
  background: var(--green-primary);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--green-accent);
}

/* ヒーロー */
.hero {
  background: var(--green-bg);
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}

.hero-deco {
  position: absolute;
  pointer-events: none;
}

.hero-deco-tr {
  right: -40px;
  top: -30px;
  width: 300px;
  opacity: 0.22;
  animation: leafSwayTR 9s ease-in-out infinite;
  transform-origin: 95% 3%;
}

.hero-deco-bl {
  left: -60px;
  bottom: -50px;
  width: 260px;
  opacity: 0.14;
  transform: rotate(180deg) scaleX(-1);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-text h1 .accent {
  color: var(--green-primary);
}

.hero-text .lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.85;
}

.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1a1a1a;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 20px;
  transition: opacity 0.2s;
}

.appstore-btn:hover {
  opacity: 0.85;
}

.appstore-btn-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.appstore-btn-text {
  display: flex;
  flex-direction: column;
}

.appstore-btn-text .small {
  font-size: 10px;
  opacity: 0.75;
  line-height: 1;
  margin-bottom: 2px;
}

.appstore-btn-text .big {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.hero-note {
  font-size: 12px;
  color: #888;
}

.hero-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.hero-slideshow {
  max-width: 260px;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.slides-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-slideshow .slide {
  min-width: 100%;
  width: 100%;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.18));
  display: block;
}

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #c8e6c9;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.dot.active {
  background: var(--green-primary);
}

/* 価値提案 */
.values {
  padding: 80px 0;
  background: white;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  margin-bottom: 52px;
  line-height: 1.4;
}

.section-title .accent {
  color: var(--green-primary);
}

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

.value-card {
  background: var(--green-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.value-icon {
  width: 52px;
  height: 52px;
  background: var(--green-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.value-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--green-primary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* 機能紹介 */
.features {
  padding: 80px 0;
  background: var(--green-bg);
  position: relative;
  overflow: hidden;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 88px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.feature-text h2 {
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
}

.feature-text h2 .accent {
  color: var(--green-primary);
}

.feature-text p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.9;
}

.feature-image {
  display: flex;
  justify-content: center;
}

.feature-image img {
  max-width: 220px;
  width: 100%;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.14));
}

/* 料金プラン */
.pricing {
  padding: 80px 0;
  background: white;
}

.pricing-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: -36px;
  margin-bottom: 8px;
}

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

.pricing-card {
  border: 2px solid #e6f4ea;
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--green-primary);
  box-shadow: var(--shadow);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 30px;
  font-weight: 900;
  color: var(--green-primary);
  margin-bottom: 4px;
}

.plan-price sub {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  vertical-align: baseline;
}

.plan-intro {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 18px;
  line-height: 1.5;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-features li {
  font-size: 16px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 9px;
}

.check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--green-primary);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-features li.disabled {
  color: #bbb;
}

.plan-features li.disabled .check-icon {
  background: #f0f0f0;
}

.plan-features li.disabled .check-icon svg {
  stroke: #ccc;
}

/* FAQ */
.faq {
  padding: 80px 0;
  background: var(--green-bg);
  position: relative;
  overflow: hidden;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-dark);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--green-primary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  transition: transform 0.25s;
}

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

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.85;
  padding: 0 24px;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* 相互リンク */
.partner-bar {
  background: var(--green-bg);
  text-align: center;
  padding: 36px 0;
}

.partner-bar img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0.94;
  transition: opacity 0.2s, transform 0.2s;
}

.partner-bar a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

/* フッター */
footer {
  background: #161e16;
  color: #aaa;
  padding: 52px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid #2a3a2a;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}

.footer-logo img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.footer-logo span {
  font-size: 16px;
  font-weight: 700;
}

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

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-tagline {
  font-size: 13px;
  color: #4a5e4a;
  text-align: center;
  margin-top: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer-copy {
  font-size: 12px;
  color: #555;
  margin-top: 8px;
  text-align: center;
}

/* スクロールアニメーション */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* レスポンシブ */
@media (max-width: 768px) {
  .hero {
    padding: 56px 0 48px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-badges {
    align-items: center;
  }

  .hero-image {
    order: 1;
  }

  .hero-image img {
    max-width: 200px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }

  .feature-image {
    order: -1;
  }

  .feature-image img {
    max-width: 200px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .footer-links {
    justify-content: center;
  }
}

/* サブページ共通 */
.doc-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.doc-page h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.doc-page .last-updated {
  font-size: 13px;
  color: #888;
  margin-bottom: 40px;
}

.doc-page h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--green-primary);
}

.doc-page h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.doc-page p,
.doc-page li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
}

.doc-page ul,
.doc-page ol {
  padding-left: 20px;
  margin: 8px 0;
}

.doc-page a {
  color: var(--green-primary);
}

.doc-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.doc-page th,
.doc-page td {
  border: 1px solid #e0f0e0;
  padding: 10px 14px;
  text-align: left;
  color: var(--text-muted);
}

.doc-page th {
  background: var(--green-bg);
  font-weight: 700;
  color: var(--text-dark);
}

.doc-page hr {
  border: none;
  border-top: 1px solid #e6f4ea;
  margin: 28px 0;
}

.doc-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--green-bg);
  border-bottom: 1px solid #e6f4ea;
}

.doc-nav a {
  color: var(--green-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.doc-nav a:hover {
  text-decoration: underline;
}

.doc-nav .sep {
  color: #ccc;
}

/* ====================================================
   葉っぱアニメーション
   ==================================================== */
@keyframes leafSwayTR {
  0%, 100% { transform: rotate(0deg); }
  35%       { transform: rotate(4.5deg); }
  70%       { transform: rotate(-2.5deg); }
}
@keyframes leafDriftA {
  0%, 100% { transform: translateY(0px)  rotate(-15deg); }
  50%      { transform: translateY(-20px) rotate(-7deg); }
}
@keyframes leafDriftB {
  0%, 100% { transform: translateY(0px)  rotate(22deg); }
  50%      { transform: translateY(-16px) rotate(31deg); }
}
@keyframes leafDriftC {
  0%, 100% { transform: translateY(0px)  rotate(-35deg); }
  40%      { transform: translateY(-13px) rotate(-27deg); }
  75%      { transform: translateY(-24px) rotate(-43deg); }
}
@keyframes leafDriftD {
  0%, 100% { transform: translateY(0px)  rotate(12deg); }
  55%      { transform: translateY(-19px) rotate(6deg); }
}
@keyframes leafDriftE {
  0%, 100% { transform: translateY(0px)  rotate(-5deg); }
  45%      { transform: translateY(-22px) rotate(4deg); }
}

.leaf-particle {
  position: absolute;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-deco-tr,
  .leaf-particle { animation: none !important; }
}
