/* 紹介ページとプレスキットの見た目。色と書体はアプリ・ストア画像と同じ（若葉・生成り・Hiragino）。 */

:root {
  --wakaba: #5e8c4e;
  --wakaba-deep: #41634a;
  --wakaba-light: #7fa06e;
  --cream: #fbfaf2;
  --cream-sub: #e2edd6;
  --paper: #f1f0e4;
  --ink: #2e3729;
  --ink-sub: #5d6a55;
  --line: rgba(46, 55, 41, 0.12);
  --card: #fbfaf2;
  --bg: #f1f0e4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1d221b;
    --ink: #e9ecdf;
    --ink-sub: #aeb8a5;
    --line: rgba(233, 236, 223, 0.14);
    --card: #262c23;
    --bg: #1d221b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.8;
  letter-spacing: 0.02em;
}
/* 見出しを文の切れ目でだけ折り返す（「ひと／つに」のような泣き別れを防ぐ） */
.nb { display: inline-block; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wakaba); }
@media (prefers-color-scheme: dark) { a { color: var(--wakaba-light); } }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* 上の帯（ナビ） */
.nav { background: var(--wakaba); color: var(--cream); position: sticky; top: 0; z-index: 10; transition: box-shadow 0.3s ease; }
.nav.is-scrolled { box-shadow: 0 6px 20px rgba(30, 45, 25, 0.18); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav a { color: var(--cream); text-decoration: none; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.nav .brand img { width: 32px; height: 32px; border-radius: 7px; }
.nav .links { display: flex; gap: 20px; font-size: 14px; }
.nav .links a { opacity: 0.9; transition: opacity 0.2s ease; }
.nav .links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* 文字ロゴ。アセットは緑なので、形だけ使って色を塗る */
.wordmark {
  display: block;
  width: 220px; aspect-ratio: 525 / 300;
  background: var(--cream);
  -webkit-mask: url(../img/wordmark.png) center / contain no-repeat;
  mask: url(../img/wordmark.png) center / contain no-repeat;
}

/* ファーストビュー */
.hero { background: linear-gradient(160deg, #6e9a5c, #5e8c4e 55%, #4c7744); color: var(--cream); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 0; }
.hero .copy { padding-bottom: 96px; }
.hero .kicker { font-weight: 600; color: var(--cream-sub); margin: 0 0 8px; font-size: 17px; }
.hero h1 { font-size: clamp(32px, 5.2vw, 52px); line-height: 1.35; margin: 18px 0 10px; letter-spacing: 0.04em; }
.hero .features { color: var(--cream-sub); margin: 0 0 28px; font-size: 16px; }
.hero .device { align-self: end; margin-bottom: -120px; }
.hero .device img { width: min(340px, 100%); margin: 0 auto; }
.wave { display: block; width: 100%; height: 70px; margin-top: -69px; position: relative; }
.wave path { fill: var(--bg); }

.badge { display: inline-block; transition: transform 0.25s ease, filter 0.25s ease; }
.badge:hover { transform: translateY(-2px); filter: drop-shadow(0 6px 12px rgba(20, 35, 15, 0.25)); }
.badge img { height: 54px; width: auto; }
.note { font-size: 13px; color: var(--ink-sub); margin-top: 10px; }
.hero .note { color: var(--cream-sub); }

/* 本文 */
.lead { text-align: center; max-width: 720px; margin: 72px auto 24px; font-size: 17px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; }
.feature:nth-of-type(even) .shot { order: 2; }
.feature .shot img { width: min(300px, 100%); margin: 0 auto; }
.feature h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.5; margin: 0 0 12px; }
.feature p { margin: 0; color: var(--ink); }
.label { display: inline-block; font-size: 13px; font-weight: 600; color: var(--wakaba); margin-bottom: 8px; }
@media (prefers-color-scheme: dark) { .label { color: var(--wakaba-light); } }

.plans { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; margin: 48px 0; }
.plans h2 { margin: 0 0 8px; font-size: 24px; }
.plans ul { padding-left: 1.2em; margin: 12px 0; }

.cta { text-align: center; background: var(--wakaba); color: var(--cream); padding: 56px 20px; }
.cta h2 { margin: 0 0 20px; font-size: clamp(24px, 3.6vw, 34px); }
.cta .note { color: var(--cream-sub); }

.footer { padding: 36px 0 48px; font-size: 14px; color: var(--ink-sub); }
.footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.footer .legal { font-size: 12px; }

/* プレスキット */
.page-title { font-size: clamp(28px, 4vw, 40px); margin: 48px 0 8px; }
.section { margin: 40px 0; }
.section h2 { font-size: 22px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.copybox { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 10px 0 20px; white-space: pre-wrap; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.facts th { width: 9em; color: var(--ink-sub); font-weight: 600; }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.assets figure { margin: 0; }
.assets img { border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.assets figcaption { font-size: 13px; color: var(--ink-sub); margin-top: 6px; }
.button { display: inline-block; background: var(--wakaba); color: var(--cream) !important; text-decoration: none; padding: 10px 20px; border-radius: 999px; font-weight: 600; }

/* サポート・プライバシーポリシー（Markdown の本文。_layouts/default.html） */
.prose { max-width: 760px; padding-bottom: 32px; }
.prose h2 { font-size: 22px; margin: 48px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
/* 見出しの頭に若葉の色の短い線。紹介ページの「— きょう —」の見出しと同じ役割 */
.prose h2::before { content: ""; display: inline-block; width: 4px; height: 0.95em; border-radius: 2px; background: var(--wakaba); margin-right: 10px; vertical-align: -0.1em; }
@media (prefers-color-scheme: dark) { .prose h2::before { background: var(--wakaba-light); } }
.prose h3 { font-size: 17px; margin: 32px 0 8px; }
.prose h4 { font-size: 16px; margin: 24px 0 6px; color: var(--wakaba-deep); }
@media (prefers-color-scheme: dark) { .prose h4 { color: var(--wakaba-light); } }
.prose p, .prose li { font-size: 16px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 4px; }
.prose strong { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose code { font-size: 0.92em; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 16px; }
/* 目次（見出しへの飛び先）。カードに入れて、本文と区別する */
.prose .toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; margin: 16px 0 8px; }
.prose .toc ul { margin: 0; }

/* ── 約束の3つ（positioning.md「メッセージの階層」）── */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 8px 0 32px; padding: 0; list-style: none; }
.promises li { display: flex; }
/* カードごと、詳しい説明の段への飛び先にする */
.promises a { flex: 1; display: block; color: inherit; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 20px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.promises a:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(30, 45, 25, 0.10); border-color: var(--wakaba-light); }
html { scroll-behavior: smooth; }
.feature[id] { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .promises a { transition: none; } }
.promises .num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--wakaba); color: var(--cream); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.promises h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.5; }
.promises p { margin: 0; font-size: 15px; color: var(--ink-sub); }

/* ── 安心（信じる理由）── */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; padding: 0; margin: 16px 0 0; list-style: none; }
.trust li { display: flex; gap: 12px; align-items: flex-start; }
.trust svg { flex: none; width: 22px; height: 22px; margin-top: 4px; stroke: var(--wakaba); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .trust svg { stroke: var(--wakaba-light); } .promises .num { background: var(--wakaba-deep); } }
.trust strong { display: block; }
.trust span { font-size: 14px; color: var(--ink-sub); }

/* ── 画面写真の影（紙のように浮かせる）── */
.feature .shot img, .hero .device img { filter: drop-shadow(0 18px 30px rgba(30, 45, 25, 0.18)); }

/* ── 動き。JS が動いたときだけ隠し、画面に入ったら出す（assets/js/site.js）── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.delay-1 { transition-delay: 0.12s; }
.js .reveal.delay-2 { transition-delay: 0.24s; }
/* 写真は文より少し遅れて出す */
.js .feature.reveal .shot { opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.9s ease 0.15s, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s; }
.js .feature.reveal.is-in .shot { opacity: 1; transform: none; }

/* ファーストビュー: 開いたときに上から順に出す。端末はゆっくり浮かぶ */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero .copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .copy > :nth-child(2) { animation-delay: 0.08s; }
.hero .copy > :nth-child(3) { animation-delay: 0.16s; }
.hero .copy > :nth-child(4) { animation-delay: 0.24s; }
.hero .copy > :nth-child(5) { animation-delay: 0.32s; }
.hero .copy > :nth-child(6) { animation-delay: 0.4s; }
.hero .device { animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
.hero .device img { animation: float 7s ease-in-out 1.4s infinite; }

@media (prefers-reduced-motion: reduce) {
  .hero .copy > *, .hero .device, .hero .device img { animation: none; }
  .badge, .nav { transition: none; }
}

@media (max-width: 760px) {
  .nav .links { gap: 14px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero .copy { padding-bottom: 8px; }
  .hero .wordmark { margin: 0 auto; width: 180px; }
  .hero .device { margin-bottom: -160px; }
  .hero .device img { width: 240px; }
  .lead { margin-top: 120px; }
  .feature { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .feature:nth-of-type(even) .shot { order: 0; }
  .feature .shot img { width: 220px; }
  .promises { grid-template-columns: 1fr; gap: 12px; }
  .trust { grid-template-columns: 1fr; }
}
