/* wanote.jp トップ（index.html / en.html）専用。規約などのページは style.css のまま */
:root {
  --bg: #fdf8f4;
  --surface: #ffffff;
  --cream: #fbf3ee;
  --fg: #2b211b;
  --muted: #6f625a;
  --rule: #eadfd6;
  --brand: #8b4e2b;
  --brand-dark: #5c3a21;
  --brand-soft: #f3e3d6;
  --accent: #e8a33d;
  --shadow: 0 12px 32px rgba(92, 58, 33, .12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1512; --surface: #251d18; --cream: #221a15; --fg: #f3ebe4;
    --muted: #b9aaa0; --rule: #3a2e27; --brand: #e0a47a; --brand-dark: #f0c3a0;
    --brand-soft: #34261e; --shadow: 0 12px 32px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans",
    "Noto Sans JP", sans-serif;
  line-height: 1.8; font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* 上の帯 */
.top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.top .brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--brand-dark); text-decoration: none; font-size: 1.15rem; }
.top .brand img { width: 36px; height: 36px; border-radius: 9px; }
.top .lang { font-size: .9rem; text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: .25rem .8rem; }

/* ヒーロー */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding: 2.5rem 0 3.5rem; }
.hero .icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.25; margin: 1.1rem 0 .6rem; color: var(--brand-dark); letter-spacing: .01em; }
.hero .sub { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.6rem; }
.stores { display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: flex-start; }
/* ストアごとに「バッジ → その真下に QR」で1列（PM 指示 2026-10-07）。 */
.store-item { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
/* 2つとも公式バッジ。🔴 高さは絵の高さでそろえる。
   Google のバッジ PNG は上下に透明の余白を持っていて、そのまま 50px にすると
   ボタンの絵だけ 38px になり、App Store のバッジより小さく見えた（PM 指摘）。
   余白を落としてあるので、いまは両方とも絵そのものが 50px。
   余白（クリアスペース）は .store-item の gap と .stores の gap が持つ。 */
.store { display: inline-flex; align-items: center; justify-content: center; height: 50px; box-sizing: border-box; text-decoration: none; }
.store img { height: 50px; width: auto; display: block; }
/* QR。PC で見ている人が読み取って、そのままストアへ飛べるように。
   スマホでは下の @media で隠す（その場でバッジを押せるので要らない）。 */
.qr-item { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.qr-item img { width: 108px; height: 108px; background: #fff; padding: 6px; border-radius: 10px; border: 1px solid var(--rule); }
.hero .phone { justify-self: center; width: min(19rem, 80vw); border-radius: 2.2rem; border: 10px solid #2d201a; overflow: hidden; box-shadow: var(--shadow); background: #2d201a; }

/* セクション共通 */
section { padding: 3.5rem 0; }
section.alt { background: var(--cream); }
.eyebrow { color: var(--brand); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.35; margin: .3rem 0 1.2rem; color: var(--brand-dark); }

/* 機能 */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 1.5rem; }
.feature { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 1rem 1rem 1.3rem; box-shadow: 0 4px 14px rgba(92,58,33,.06); }
.feature img { border-radius: 12px; border: 1px solid var(--rule); aspect-ratio: 540 / 1169; object-fit: cover; object-position: top; }
.feature h3 { font-size: 1.05rem; margin: 1rem 0 .3rem; color: var(--fg); }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.disclaimer { margin-top: 1.4rem; font-size: .85rem; color: var(--muted); }

/* 料金 */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.2rem; }
.plan { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 1.5rem 1.6rem; }
.plan.premium { border: 2px solid var(--brand); position: relative; }
.plan h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.plan .tag { display: inline-block; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .15rem .7rem; margin-bottom: .6rem; }
.plan ul { padding-left: 1.2rem; margin: .8rem 0 0; }
.plan li { margin: .35rem 0; }
.plan .note { font-size: .85rem; color: var(--muted); margin: .9rem 0 0; }

/* よくある質問 */
.faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: .9rem 1.2rem; margin: .7rem 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--brand); }
.faq details[open] summary::after { content: "－"; }
.faq details > *:not(summary) { color: var(--fg); }
.faq ul { padding-left: 1.3rem; }
.faq .box { background: var(--brand-soft); border-radius: 10px; padding: .8rem 1rem; }

/* 下の欄 */
footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 3.5rem; font-size: .92rem; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.5rem; }
footer h4 { margin: 0 0 .5rem; color: var(--fg); font-size: .95rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: .25rem 0; }
footer .copy { margin-top: 2rem; font-size: .82rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.5rem; }
  .features { grid-template-columns: 1fr 1fr; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .features, .plans { grid-template-columns: 1fr; }
  .qr-item { display: none; }
  .store { flex: 0 0 auto; }
}
