:root {
  --green: #2f7d46;
  --green-dark: #215d34;
  --green-soft: #eaf5ed;
  --green-pale: #f5fbf7;
  --text: #203228;
  --muted: #647569;
  --line: #dbe9df;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(47, 125, 70, 0.14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  background: #fbfdfb;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 5vw;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219, 233, 223, 0.75);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 800;
  font-size: 20px;
  white-space: nowrap;
}
.brand-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24%;
  clip-path: inset(0 round 24%);
}
.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header-nav { display: flex; gap: 30px; font-weight: 700; font-size: 14px; }
.header-button {
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(47, 125, 70, 0.24);
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.88) 38%, rgba(255,255,255,0.25) 72%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.88) 36%, rgba(255,255,255,0.2) 70%), url("images/hero.jpeg") center / cover no-repeat;
  transform: scale(1.01);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
  width: min(1180px, 90vw);
  min-height: 690px;
  margin: 0 auto;
  padding: 58px 0;
}
.eyebrow { margin: 0 0 14px; font-size: 18px; font-weight: 800; }
h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.28;
  letter-spacing: 0.03em;
}
.lead { width: min(520px, 100%); margin: 26px 0 28px; font-size: 18px; font-weight: 650; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-button {
  min-width: 160px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  padding: 10px 14px;
  color: #fff;
  background: #080808;
  border-radius: 9px;
  line-height: 1.1;
  box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}
.store-button span { grid-row: 1 / 3; font-size: 29px; line-height: 1; }
.store-button small { font-size: 13px; font-weight: 800; }
.store-button strong { font-size: 12px; font-weight: 600; }
.hero-phone { position: relative; justify-self: end; }
.phone-frame {
  width: 260px;
  padding: 0;
  border: 7px solid #244d33;
  border-radius: 38px;
  background: #fff;
  box-shadow: 0 24px 58px rgba(0,0,0,0.25);
  overflow: hidden;
}
.phone-frame img {
  width: 100%;
  height: 100%;
  border-radius: 31px;
}
.voice-card {
  position: absolute;
  left: -150px;
  bottom: 46px;
  width: 220px;
  padding: 22px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 20px;
}
.wave {
  display: block;
  height: 28px;
  margin-top: 12px;
  background: repeating-linear-gradient(90deg, #63b974 0 4px, transparent 4px 10px);
  mask: radial-gradient(ellipse at center, #000 35%, transparent 68%);
}
.mic { position: absolute; right: 12px; bottom: 10px; }

.section { width: min(1120px, 90vw); margin: 0 auto; padding: 42px 0; }
.section-title { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; margin-bottom: 22px; color: var(--green); }
.section-title span { height: 2px; background: var(--green); opacity: 0.45; }
h2 { margin: 0; color: var(--green); font-size: clamp(27px, 3vw, 36px); line-height: 1.45; text-align: center; }
.center-title { margin-bottom: 28px; }
.concern-grid, .feature-grid, .scene-grid, .safe-grid { display: grid; gap: 18px; }
.concern-grid { grid-template-columns: repeat(4, 1fr); }
.concern-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, var(--green-pale));
  box-shadow: 0 12px 32px rgba(47, 125, 70, 0.07);
}
.line-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-grid;
  place-items: center;
  font-size: 34px;
  line-height: 1;
}
.line-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.image-icon {
  overflow: hidden;
  border-radius: 50%;
  background: #f4f7ec;
}
.image-icon img {
  max-width: none;
  transform: scale(1.28);
}
h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.45; }
p { margin: 0; color: var(--muted); }

.features { padding-top: 26px; }
.feature-grid { grid-template-columns: repeat(4, 1fr); }
.feature-card {
  overflow: hidden;
  min-height: 345px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--green-soft));
  box-shadow: var(--shadow);
}
.feature-text { padding: 22px 22px 14px; }
.round-icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 24px;
}
.feature-card img { width: 100%; height: 185px; object-fit: cover; }
.app-card img { width: 66%; height: 190px; margin: 0 auto 18px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(47,125,70,0.18)); }
.feature-phone-frame {
  width: 124px;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 5px solid #244d33;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(0,0,0,0.18);
}
.feature-phone-frame img {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 19px;
  object-fit: cover;
  filter: none;
}

.scenes { padding-top: 24px; }
.scene-grid { grid-template-columns: repeat(3, 1fr); }
.scene-card {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.scene-card img { width: 100%; height: 205px; object-fit: cover; }
.scene-card div { padding: 18px 20px 22px; }
.scene-card h3 { color: var(--green-dark); font-size: 24px; }

.safe-points {
  margin-top: 18px;
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, var(--green-pale));
  box-shadow: 0 14px 35px rgba(47, 125, 70, 0.09);
}
.safe-grid { grid-template-columns: repeat(4, 1fr); margin-top: 20px; }
.safe-grid article { display: flex; gap: 14px; align-items: center; }
.safe-grid span { color: var(--green); font-size: 34px; }
.safe-image-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #f4f7ec;
}
.safe-image-icon img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.28);
}
.safe-grid h3 { margin: 0; font-size: 17px; }

.faq-list { width: min(820px, 100%); margin: 0 auto; display: grid; gap: 12px; }
details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(47, 125, 70, 0.06);
}
summary { cursor: pointer; padding: 18px 22px; color: var(--green-dark); font-weight: 800; }
details p { padding: 0 22px 20px; }

.download {
  position: relative;
  overflow: hidden;
  margin: 28px auto 0;
  width: min(1180px, 94vw);
  border-radius: 28px;
  background: var(--green);
}
.download-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(47,125,70,0.96) 0%, rgba(47,125,70,0.86) 56%, rgba(47,125,70,0.4) 100%), url("images/family.jpeg") left center / cover no-repeat;
}
.download-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 54px 8%;
  color: #fff;
}
.download h2 { color: #fff; text-align: left; font-size: clamp(34px, 4vw, 52px); }
.download p { color: rgba(255,255,255,0.9); margin: 8px 0 22px; font-size: 18px; }
.phone-mini {
  width: 155px;
  height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 22px;
  border: 8px solid #0d1b12;
  border-radius: 34px;
  color: var(--green);
  background: #fff;
  box-shadow: 0 24px 42px rgba(0,0,0,0.25);
}
.phone-mini .brand-icon { width: 58px; height: 58px; }
.site-footer { padding: 28px; text-align: center; color: var(--muted); }
.site-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
  font-size: 14px;
}
.site-footer-links a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Policy / Legal pages */
.doc-hero {
  padding: 52px 5vw 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--green-soft) 0%, var(--green-pale) 100%);
}
.doc-hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  color: var(--green-dark);
  margin: 0 0 8px;
  text-align: center;
  line-height: 1.35;
}
.doc-date {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.doc-content {
  width: min(820px, 90vw);
  margin: 0 auto;
  padding: 52px 0 80px;
}
.doc-section {
  margin-bottom: 44px;
}
.doc-section h2 {
  text-align: left;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--green-dark);
  border-left: 4px solid var(--green);
  padding-left: 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.doc-section p {
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 10px;
}
.doc-section ul {
  margin: 10px 0 14px 0;
  padding-left: 1.6em;
  color: var(--text);
  line-height: 1.9;
}
.doc-section li {
  margin-bottom: 4px;
}
.doc-note {
  padding: 16px 20px;
  background: #fff8e6;
  border-left: 4px solid #d4870e;
  border-radius: 10px;
  font-size: 15px;
  color: #5a3800;
  line-height: 1.85;
  margin-top: 14px;
}
.doc-contact {
  padding: 20px 24px;
  background: var(--green-soft);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}

@media (max-width: 980px) {
  .header-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-phone { justify-self: center; }
  .voice-card { left: -70px; }
  .concern-grid, .feature-grid, .safe-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-grid { grid-template-columns: 1fr; }
  .scene-card img { height: 260px; }
}

@media (max-width: 640px) {
  .site-header { padding: 14px 18px; }
  .brand { font-size: 17px; }
  .brand-icon { width: 34px; height: 34px; }
  .header-button { display: none; }
  .hero { min-height: auto; }
  .hero-bg { background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 50%, rgba(255,255,255,0.25) 100%), url("images/hero.jpeg") center / cover no-repeat; }
  .hero-inner { width: min(92vw, 520px); min-height: auto; padding: 42px 0; }
  .lead { font-size: 16px; }
  .store-button { min-width: 146px; }
  .phone-frame { width: 210px; }
  .voice-card { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 18px; }
  .section { width: min(92vw, 520px); padding: 34px 0; }
  .section-title { grid-template-columns: 1fr; gap: 8px; }
  .section-title span { display: none; }
  .concern-grid, .feature-grid, .safe-grid { grid-template-columns: 1fr; }
  .concern-card { align-items: flex-start; }
  .feature-card img { height: 220px; }
  .app-card img { height: 230px; }
  .feature-phone-frame { width: 156px; }
  .feature-phone-frame img { height: auto; }
  .safe-points { padding: 28px 22px; }
  .download-inner { flex-direction: column; align-items: flex-start; }
  .download-phone { align-self: center; }
}
