/* マイサプの紹介サイト。白い紙のような背景に、丸い太字の見出しと、ステッカーのような太い縁取りのボタン。
   色はアプリ(app/src/theme)と同じ。影やグラデーションは使わず、平らな色と太い線で描く */
:root {
  --green: #3F8A2E;        /* 見出し・進む */
  --green-dark: #2C6A1E;
  --forest: #173A24;
  --lime: #D4EE7E;
  --lime-soft: #F1F9D9;
  --orange: #FFA62B;       /* 主ボタン */
  --orange-dark: #D97F06;
  --ink: #1F2A22;
  --text: #3C4740;
  --muted: #6E776F;
  --line: #E3E6DF;
  --white: #FFFFFF;
  --round: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Zen Kaku Gothic New', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
  overflow-x: hidden;
}
a { color: var(--green); font-weight: 700; }
img, svg { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
/* 言葉の途中で折り返さない */
.nb { display: inline-block; }
h1, h2, h3 { font-family: var(--round); color: var(--green); letter-spacing: -0.01em; }
h1 { font-size: clamp(26px, 8vw, 56px); line-height: 1.25; font-weight: 900; margin: 0 0 20px; }
h2 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.3; font-weight: 900; margin: 0 0 20px; }
h3 { font-size: 22px; font-weight: 800; margin: 12px 0 8px; color: var(--forest); }
.eyebrow { font-family: var(--round); font-weight: 800; color: var(--orange-dark); letter-spacing: 0.06em; margin: 0 0 10px; font-size: 15px; }
.lead { font-size: 18px; color: var(--muted); }
.note { color: var(--muted); font-size: 13px; }

/* ボタン:下側だけ濃くして、押せるステッカーのように */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--round); font-weight: 800; font-size: 17px; letter-spacing: 0.04em;
  color: var(--forest); background: var(--orange);
  border: 2px solid var(--orange-dark); border-bottom-width: 5px;
  border-radius: 16px; padding: 13px 26px; text-decoration: none;
  transition: transform 0.08s, border-bottom-width 0.08s;
}
.btn:active { transform: translateY(3px); border-bottom-width: 2px; }
.btn-outline { background: var(--white); color: var(--green); border-color: var(--line); }
.btn-small { white-space: nowrap; flex: none; font-size: 14px; padding: 8px 16px; border-bottom-width: 4px; border-radius: 12px; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 2px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { white-space: nowrap; flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); font-family: var(--round); font-weight: 900; font-size: 24px; }
.brand img { border-radius: 12px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-family: var(--round); color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 800; }
.nav a:hover { color: var(--green); }

/* ヒーロー */
.hero { padding: 56px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero-art svg { width: 100%; max-width: 460px; display: block; margin: 0 auto; animation: float 5s ease-in-out infinite; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* 悩みの流れる帯 */
.ticker { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); overflow: hidden; padding: 14px 0; }
.ticker-track { display: flex; gap: 14px; width: max-content; animation: slide 60s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; font-family: var(--round); font-weight: 800; color: var(--muted); white-space: nowrap; border: 2px solid var(--line); border-radius: 999px; padding: 4px 16px 4px 4px; }
.ticker-item svg { width: 34px; height: 34px; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 数字 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 48px; padding-bottom: 24px; }
.stats div { border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 20px; padding: 18px; text-align: center; }
.stats b { display: block; font-family: var(--round); font-size: 40px; font-weight: 900; color: var(--green); line-height: 1.2; }
.stats b small { font-size: 18px; margin-left: 2px; }
.stats span { color: var(--muted); font-size: 14px; }
.features-head { padding-top: 40px; }
.features-head h2 { margin: 0; }

/* 機能(左右交互)。1つおきに薄い黄緑の帯(上下は波)にして、スマホのまわりに飾りを置く */
.feature { padding: 80px 0; position: relative; }
.feature.tint { background: #F7FBEA; padding: 56px 0; margin: 60px 0; }
.wave { position: absolute; left: 0; width: 100%; height: 60px; display: block; }
.feature.tint .wave { top: -59px; }
.feature.tint .wave.flip { top: auto; bottom: -59px; transform: scaleY(-1); }
.feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; }
.feature.reverse .feature-visual { order: 2; }
.feature-visual { display: flex; justify-content: center; align-items: center; position: relative; min-height: 600px; }
.feature-visual .phone-wrap { z-index: 2; }
.blob { position: absolute; width: 112%; max-width: 520px; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; }
.dots { position: absolute; width: 180px; height: 180px; right: 4%; top: 6%; z-index: 1;
  background-image: radial-gradient(#B5D66B 2.6px, transparent 2.8px); background-size: 18px 18px; border-radius: 24px; }
.feature.reverse .dots { right: auto; left: 4%; }
.float { position: absolute; width: 64px; z-index: 3; animation: float 4.5s ease-in-out infinite; }
.float.f1 { left: 6%; top: 18%; }
.float.f2 { right: 8%; bottom: 14%; animation-delay: -2s; }
.feature-text { position: relative; }
.doodle-arrow { position: absolute; width: 110px; left: -96px; top: -36px; transform: rotate(-8deg); }
.feature.reverse .doodle-arrow { left: auto; right: -96px; transform: scaleX(-1) rotate(-8deg); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 36px; font-weight: 700; color: var(--text); }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--forest); font-size: 14px; display: grid; place-items: center; font-weight: 900; }

/* スマホの枠と画面のイメージ */
.phone-wrap { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.phone-wrap figcaption { font-size: 12px; color: var(--muted); }
.phone { position: relative; width: 270px; height: 540px; border: 5px solid var(--ink); border-radius: 44px; background: var(--white); padding: 14px 12px; overflow: hidden; }
.phone-notch { width: 92px; height: 24px; background: var(--ink); border-radius: 0 0 14px 14px; margin: -14px auto 10px; }
.screen { font-size: 12px; line-height: 1.5; color: var(--ink); font-family: var(--round); }
.s-title { font-weight: 900; font-size: 18px; line-height: 1.35; margin: 4px 4px 12px; color: var(--forest); }
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.s-concern { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border: 2px solid var(--line); border-radius: 16px; font-weight: 800; font-size: 11px; text-align: center; }
.s-concern svg { width: 46px; height: 46px; }
.s-concern.on { border-color: var(--forest); background: var(--lime-soft); }
.s-btn { margin-top: 16px; text-align: center; background: var(--orange); border: 2px solid var(--orange-dark); border-bottom-width: 4px; border-radius: 14px; padding: 10px; font-weight: 900; font-size: 14px; color: var(--forest); }
.s-card { display: flex; gap: 10px; align-items: center; background: #F2F3EE; border-radius: 18px; padding: 10px; margin-bottom: 10px; }
.s-card.first { border: 2.5px solid var(--orange); }
.s-ev { width: 52px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; padding: 4px 0; line-height: 1.2; }
.s-ev b { font-size: 22px; }
.s-ev small { font-size: 9px; }
.s-ev.medium { background: #F9E6B5; color: #8A5F0C; }
.s-ev.weak { background: #E9ECE2; color: #5E6656; }
.s-card-body { display: flex; flex-direction: column; gap: 2px; }
.s-card-body b { font-size: 15px; }
.s-card-body small { color: var(--muted); }
.s-pill { align-self: flex-start; background: var(--orange); border-radius: 999px; padding: 0 8px; font-size: 10px; font-weight: 900; }
.s-star { color: #E39A1C; font-weight: 900; font-size: 11px; }
.s-note { text-align: center; color: var(--muted); font-size: 11px; }
.s-hero { display: flex; gap: 12px; align-items: center; background: var(--forest); color: var(--white); border-radius: 22px; padding: 14px; }
.s-ring { position: relative; width: 80px; flex: none; }
.s-ring svg { display: block; }
.s-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1px; line-height: 1; font-size: 20px; color: var(--white); }
.s-ring small { font-size: 12px; opacity: 0.7; margin-top: 6px; }
.s-hero-title { display: block; font-size: 15px; line-height: 1.35; }
.s-streak { display: inline-block; margin-top: 6px; background: var(--orange); color: var(--forest); border-radius: 10px; padding: 2px 8px; font-weight: 900; font-size: 11px; transform: rotate(-3deg); }
.s-week { display: flex; justify-content: space-between; border: 2px solid var(--line); border-radius: 18px; padding: 8px; margin: 12px 0; }
.s-week div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.s-week small { font-size: 9px; color: var(--muted); }
.s-week i, .s-item i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 11px; }
.s-week i.done, .s-item i.done { background: var(--lime); border-color: var(--lime); }
.s-week i.today { border-color: var(--orange); }
.s-list { display: grid; gap: 8px; }
.s-item { display: flex; justify-content: space-between; align-items: center; border-radius: 16px; background: #F2F3EE; padding: 10px 12px; font-weight: 800; font-size: 13px; }
.s-alert { border-radius: 16px; padding: 10px 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 2px; }
.s-alert b { font-size: 13px; }
.s-alert small { color: var(--text); font-family: 'Zen Kaku Gothic New', sans-serif; }
.s-alert.warn { background: #FFF0D6; }
.s-alert.danger { background: #FCE6E3; }
.s-alert.good { background: var(--lime-soft); }
.s-score { display: grid; justify-items: center; background: #F2F3EE; border-radius: 18px; padding: 10px; margin-bottom: 10px; }
.s-score b { font-size: 34px; color: var(--forest); line-height: 1.1; }
.s-score small { color: var(--muted); font-size: 10px; }
.s-stars { color: #F2A93B; letter-spacing: 2px; }
.s-stars.small { font-size: 11px; margin-right: 6px; }
.s-review { border: 2px solid var(--line); border-radius: 16px; padding: 10px; margin-bottom: 8px; }
.s-review p { margin: 6px 0 4px; font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 12px; }
.s-tag { display: inline-block; background: var(--lime); border-radius: 999px; padding: 0 8px; font-size: 10px; font-weight: 900; margin-right: 4px; }
.s-tag.gray { background: #EDEEEA; color: var(--muted); }
.s-helpful { display: inline-block; border: 2px solid var(--forest); border-radius: 999px; padding: 0 8px; font-size: 10px; font-weight: 900; }

/* 大切にしていること */
.band { background: var(--lime-soft); padding: 80px 0; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.promise { background: var(--white); border: 2px solid var(--line); border-bottom-width: 6px; border-radius: 26px; padding: 24px; text-align: center; }
.promise svg { width: 170px; display: block; margin: 0 auto; }
.promise p { color: var(--muted); margin: 0; }

/* よくある質問 */
.faq { padding-top: 80px; padding-bottom: 80px; max-width: 860px; }
.qa { border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 20px; padding: 0 22px; margin-bottom: 14px; }
.qa summary { font-family: var(--round); font-weight: 800; font-size: 18px; color: var(--forest); padding: 18px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '＋'; color: var(--green); font-weight: 900; }
.qa[open] summary::after { content: '－'; }
.qa p { margin: 0 0 18px; color: var(--muted); }

/* 最後のダウンロード */
.cta-band { background: var(--green); color: var(--white); padding: 72px 0; }
.cta-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.cta-band h2 { color: var(--white); font-size: clamp(32px, 5vw, 52px); }
.cta-band p { color: rgba(255, 255, 255, 0.9); }
.cta-art svg { width: 100%; max-width: 320px; display: block; margin: 0 auto; animation: float 5s ease-in-out infinite; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--white); border: 2px solid var(--ink); border-bottom-width: 5px; border-radius: 16px; padding: 10px 20px 10px 16px; font-family: var(--round); font-weight: 800; font-size: 19px; line-height: 1.1; }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 11px; font-weight: 700; opacity: 0.75; }
.stores.dark .store { border-color: #0E1510; }

/* フッター */
.site-footer { background: var(--white); border-top: 2px solid var(--line); padding: 40px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--round); font-weight: 900; font-size: 22px; color: var(--green); margin: 0; }
.footer-brand img { border-radius: 10px; }
.footer-copy { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-nav a:hover { color: var(--green); }

/* 規約などの文章ページ */
.section { padding: 56px 20px; }
.prose { max-width: 820px; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); }
.prose h2 { font-size: 24px; margin-top: 40px; color: var(--forest); }
.prose p, .prose li { color: var(--text); }
.bullets { padding-left: 1.2em; }
.bullets li { margin-bottom: 6px; }
.muted { color: var(--muted); font-size: 14px; }
.big { font-size: 22px; font-weight: 700; }

/* スマホ */
@media (max-width: 860px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { padding-top: 28px; }
  .hero-inner, .feature-inner, .cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-art svg { max-width: 300px; }
  .hero-cta { justify-content: center; }
  .feature { padding: 48px 0; }
  .feature.reverse .feature-visual { order: 0; }
  .feature-visual { min-height: 0; }
  .doodle-arrow, .dots { display: none; }
  .float { width: 48px; }
  .feature-text { text-align: left; }
  .promises { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stats b { font-size: 28px; }
  .stats span { font-size: 12px; }
  .cta-art svg { max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art svg, .cta-art svg, .ticker-track { animation: none; }
}

/* こんな人におすすめ */
.personas { padding-top: 64px; padding-bottom: 8px; }
.persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.persona { border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 24px; padding: 22px 18px; text-align: center; background: var(--white); }
.persona svg { width: 92px; display: block; margin: 0 auto 12px; }
.persona p { margin: 0; font-family: var(--round); font-weight: 800; color: var(--forest); line-height: 1.6; }

/* 比較表 */
.compare { padding-top: 88px; padding-bottom: 72px; }
.compare .lead { max-width: 680px; margin: 0 auto 28px; }
.table-wrap { overflow-x: auto; border: 2px solid var(--line); border-bottom-width: 6px; border-radius: 24px; }
.compare table { width: 100%; border-collapse: collapse; min-width: 600px; font-family: var(--round); }
.compare th, .compare td { padding: 16px 14px; text-align: center; border-bottom: 2px solid var(--line); font-weight: 700; color: var(--muted); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { text-align: left; color: var(--forest); font-weight: 800; }
.compare thead th { color: var(--forest); font-weight: 900; font-size: 15px; line-height: 1.4; }
.compare .me { background: var(--lime-soft); }
.compare thead .me { display: table-cell; }
.compare thead .me img { border-radius: 10px; vertical-align: middle; margin-right: 6px; }
.compare thead .me span { color: var(--green); font-size: 20px; vertical-align: middle; }
.ok { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--white); font-weight: 900; font-size: 18px; }

/* 開発者の想い */
.story { background: var(--forest); color: rgba(255, 255, 255, 0.9); padding: 80px 0; }
.story-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.story-art svg { width: 100%; max-width: 320px; display: block; margin: 0 auto; }
.story h2 { color: var(--lime); }
.story .eyebrow { color: var(--orange); }
.story p { font-size: 17px; }
.story .sign { font-family: var(--round); font-weight: 800; color: var(--lime); text-align: right; margin-top: 20px; }

/* QRコード */
.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 20px; }
.dl-row .stores { margin-top: 0; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr-code { width: 120px; background: var(--white); border: 2px solid #0E1510; border-bottom-width: 5px; border-radius: 16px; padding: 8px; }
.qr-code svg { display: block; width: 100%; }
.qr span { font-family: var(--round); font-weight: 800; font-size: 13px; color: var(--white); }

@media (max-width: 860px) {
  .persona-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .persona { padding: 16px 10px; }
  .persona svg { width: 68px; }
  .persona p { font-size: 14px; }
  .story-inner { grid-template-columns: 1fr; gap: 20px; }
  .story-art svg { max-width: 200px; }
  .qr { display: none; } /* スマホで見ているときは不要 */
}

/* とても狭い画面(古い小さなスマホなど) */
@media (max-width: 380px) {
  .wrap { padding: 0 14px; }
  .brand { font-size: 20px; gap: 6px; }
  .brand img { width: 36px; height: 36px; }
  .btn-small { font-size: 13px; padding: 7px 12px; }
  .eyebrow { font-size: 13px; }
  .phone { width: 240px; height: 500px; }
}
