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

:root {
  --green:        #4caf50;
  --green-dark:   #388e3c;
  --green-light:  #e8f5e9;
  --green-mid:    #a5d6a7;
  --green-faint:  #f4fbf4;
  --text:         #1a1a1a;
  --text-sub:     #5a6a5a;
  --white:        #fff;
  --bg:           #fff;
  --bg-soft:      #f6f8f6;
  --radius-sm:    8px;
  --radius:       16px;
  --radius-lg:    28px;
  --radius-xl:    48px;
  --shadow:       0 4px 24px rgba(0,0,0,0.07);
  --shadow-green: 0 8px 32px rgba(76,175,80,0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'M PLUS 1', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ===== Layout ===== */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(76,175,80,0.12);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-img { height: 38px; width: auto; }

.logo-fallback {
  display: none;
  align-items: center;
  gap: 6px;
}
.logo-icon { font-size: 28px; color: var(--green); font-variation-settings: 'FILL' 1; }
.logo-text { font-size: 18px; font-weight: 900; color: var(--green-dark); }

.nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  transition: color .2s;
}
.nav a:hover { color: var(--green-dark); }

.btn-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 24px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: var(--shadow-green);
  transition: transform .2s, box-shadow .2s;
}
.btn-pill:hover { transform: scale(1.04); box-shadow: 0 10px 36px rgba(76,175,80,0.35); }

/* ===== Store Buttons ===== */
.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.store-buttons-centered { justify-content: center; }

/* ストア審査中オーバーレイ */
.store-buttons-wrap {
  position: relative;
}
.store-coming-soon {
  margin-top: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  border: 2px solid rgba(76, 175, 80, 0.3);
  font-size: .9rem;
  font-weight: 700;
  color: #388e3c;
  text-align: center;
  line-height: 1.5;
  padding: 10px 20px;
}
.store-coming-soon-icon { font-size: 1.2rem; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: var(--shadow-green);
  transition: transform .2s, box-shadow .2s;
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(76,175,80,0.35); }
.btn-store .material-symbols-outlined { font-size: 20px; }

.btn-store-dark {
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-store-dark:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.25); }

.btn-store-badge {
  display: inline-flex;
  align-items: center;
  transition: transform .2s, opacity .2s;
}
.btn-store-badge:hover { transform: translateY(-2px); opacity: .88; }
.btn-store-badge img { height: 48px; width: auto; display: block; }

.btn-store-white {
  background: var(--white);
  color: var(--green-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.btn-store-white:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.18); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #f9fffa 0%, var(--green-light) 60%, #c8e6c9 100%);
  padding: 80px 0 72px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.text-accent { color: var(--green); }

.hero-sub {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-sub);
  margin-bottom: 36px;
}

.hero-visual { display: flex; justify-content: center; }

.hero-img-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform: rotate(2deg);
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 24px 64px rgba(76,175,80,0.2);
  border: 4px solid rgba(76,175,80,0.15);
  background: var(--green-light);
}
.hero-img-frame:hover { transform: rotate(0deg); }
.hero-img-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(76,175,80,0.15), transparent);
}
.hero-img-frame.hero-img-placeholder::after {
  content: '🌿';
  font-size: 80px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Section Common ===== */
section { padding: 96px 0; }

.section-header { text-align: center; margin-bottom: 64px; }

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 48px;
}
.section-header .section-title { margin-bottom: 16px; }

.section-bar {
  width: 48px;
  height: 4px;
  background: var(--green-mid);
  border-radius: 2px;
  margin: 0 auto;
}

.section-lead {
  text-align: center;
  color: var(--text-sub);
  margin-top: -36px;
  margin-bottom: 40px;
}

/* ===== Problem ===== */
.problem { background: var(--white); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.problem-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 28px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(76,175,80,0.06);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.problem-card:hover {
  border-color: rgba(76,175,80,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.problem-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  transition: transform .2s;
}
.problem-card:hover .problem-icon { transform: scale(1.1); }
.problem-icon .material-symbols-outlined { font-size: 28px; font-variation-settings: 'FILL' 0, 'wght' 300; }

.problem-card h3 { font-size: 1.05rem; font-weight: 700; }
.problem-card p  { font-size: .9rem; color: var(--text-sub); line-height: 1.65; }

/* ===== How To ===== */
.howto { background: var(--green-faint); }

.steps { display: flex; flex-direction: column; gap: 80px; }

.step-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.step-num {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(76,175,80,0.2);
  font-style: italic;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}

.step-text h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: var(--green-dark); }
.step-text p  { font-size: .95rem; color: var(--text-sub); line-height: 1.7; }

.step-img-frame {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 3px solid rgba(76,175,80,0.12);
}
.step-img-frame img { border-radius: var(--radius); width: 100%; display: block; }
.frame-tilt-neg  { transform: rotate(-3deg); }
.frame-tilt-pos  { transform: rotate(3deg); }
.frame-tilt-neg2 { transform: rotate(-2deg); }

.step-img-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  color: var(--green-mid);
}
.step-img-empty .material-symbols-outlined { font-size: 60px; }

/* stepで画像がある場合はemptyを隠す（imgのonerror時のみ非表示） */
.step-img-frame img:not([style*="display:none"]) + .step-img-empty { display: none; }

/* モバイルでの並び替え用 */
@media (max-width: 700px) {
  .order-text-1  { order: 2; }
  .order-visual-1 { order: 1; }
}

/* ===== Features ===== */
.features { background: rgba(76,175,80,0.05); }

.features-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.features-circle {
  aspect-ratio: 1;
  max-width: 360px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 8px solid rgba(76,175,80,0.18);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.features-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(76,175,80,0.04);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

.features-circle-icon {
  font-size: 10rem;
  color: rgba(76,175,80,0.35);
  font-variation-settings: 'FILL' 1;
}

.features-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 20px;
  line-height: 1.4;
}
.features-desc { color: var(--text-sub); margin-bottom: 28px; line-height: 1.75; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  font-weight: 500;
}
.check-icon {
  color: var(--green);
  font-size: 22px;
  flex-shrink: 0;
  font-variation-settings: 'FILL' 1;
}

/* ===== Premium ===== */
.premium { background: var(--white); }

.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.plan-card {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.plan-free    { background: var(--bg-soft); border: 2px solid #e4e4e4; }
.plan-premium { background: var(--green-light); border: 2px solid var(--green); }

.plan-label {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-sub);
  margin-bottom: 20px;
}
.plan-label-premium { color: var(--green-dark); }

.plan-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.plan-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
}

.plan-list .material-symbols-outlined {
  font-size: 18px;
  color: var(--green);
  font-variation-settings: 'FILL' 0, 'wght' 600;
}

/* ===== Reviews ===== */
.reviews { background: var(--white); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.review-card {
  position: relative;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  box-shadow: var(--shadow);
  border: 1.5px solid rgba(76,175,80,0.1);
}

.quote-badge {
  position: absolute;
  top: -20px;
  left: 28px;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-green);
}
.quote-badge .material-symbols-outlined { font-size: 22px; font-variation-settings: 'FILL' 1; }

.review-text {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
  margin-bottom: 24px;
}

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

.reviewer-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}
.reviewer-icon .material-symbols-outlined { font-size: 24px; font-variation-settings: 'FILL' 1; }

.reviewer-name { font-weight: 700; font-size: .95rem; }
.reviewer-sub  { font-size: .8rem; color: var(--text-sub); }

/* ===== Download CTA ===== */
.download { background: var(--bg-soft); }

.download-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--green-dark);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  color: var(--white);
  box-shadow: 0 24px 64px rgba(56,142,60,0.35);
}
.download-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 16px;
}
.download-card p {
  opacity: .85;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  background: #1e2d1e;
  color: rgba(255,255,255,0.65);
  padding: 48px 0 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-logo-img { height: 36px; width: auto; }
.footer-logo-fallback {
  display: none;
  align-items: center;
  gap: 8px;
}
.footer-logo-icon { color: var(--green); font-size: 26px; font-variation-settings: 'FILL' 1; }

.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: .85rem; transition: color .2s; }
.footer-nav a:hover { color: var(--green-mid); }

.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.social-btn:hover { background: rgba(76,175,80,0.25); }
.social-btn .material-symbols-outlined { font-size: 18px; }

.copyright {
  font-size: .78rem;
  text-align: center;
  padding-bottom: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .hero-img-frame { max-width: 300px; }
  .store-buttons { justify-content: center; }

  .step-row { grid-template-columns: 1fr; gap: 32px; }
  .step-num { font-size: 2.5rem; }

  .features-inner { grid-template-columns: 1fr; }
  .features-circle { max-width: 240px; }

  .nav { display: none; }
  .btn-pill { display: none; }

  .download-card { padding: 48px 28px; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav { justify-content: center; flex-wrap: wrap; }
}
