/* 取りラボ 紹介ページ(LP)。アプリ本体(css/app.css)とは独立。配色は karuta.fun(生成り+朱)を踏襲。
   インラインのスタイルは使わない(CSP の style-src 'self')。 */
:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #ece8df;
  --text: #2a241c;
  --muted: #655c4e;
  --primary: #a8452f;
  --primary-dark: #8a3623;
  --on-primary: #ffffff;
  --primary-soft: #f6e8e3;
  --green: #2f6b4f;
  --green-soft: #e6f1ea;
  --border: #ded7c9;
  --shadow: 0 10px 30px rgba(42, 36, 28, .18);
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120e; --surface: #201c17; --surface-2: #2b2620; --text: #ece6da; --muted: #a69b8c;
    --primary: #d8694f; --primary-dark: #e07b63; --on-primary: #1a0f0b; --primary-soft: #3a221b;
    --green: #6fb592; --green-soft: #1d2f26; --border: #3a342c; --shadow: 0 10px 30px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.85;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ヘッダー */
.hd { border-bottom: 1px solid var(--border); background: var(--surface); }
.hd .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.hd__brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; }
.hd__brand img { width: 28px; height: 28px; border-radius: 7px; }
.hd__brand small { font-weight: 500; color: var(--muted); font-size: .75rem; margin-right: 4px; }
.hd__link { font-size: .875rem; font-weight: 700; text-decoration: none; padding: 8px 0; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px;
  background: var(--primary); color: var(--on-primary); border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: 1.05rem; box-shadow: 0 4px 14px rgba(168, 69, 47, .35);
}
.btn:hover { background: var(--primary-dark); }
.cta-note { margin-top: 10px; font-size: .875rem; color: var(--muted); font-weight: 700; }

/* ファーストビュー */
.hero { padding: clamp(32px, 6vw, 64px) 0 clamp(28px, 5vw, 56px); background: linear-gradient(180deg, var(--surface-2), var(--bg)); overflow: hidden; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero__def { font-size: .9375rem; font-weight: 800; color: var(--green); letter-spacing: .04em; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); line-height: 1.2; font-weight: 900; letter-spacing: .02em; margin-top: 4px; }
.hero__copy { font-size: clamp(1.35rem, 4.5vw, 1.9rem); font-weight: 900; color: var(--primary); line-height: 1.4; margin-top: 14px; }
.hero__list { margin-top: 18px; font-weight: 700; line-height: 1.9; }
.hero__lead { margin-top: 16px; color: var(--muted); }
.hero__cta { margin-top: 24px; }
.hero__shots { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.hero__shots .phone { width: 31%; max-width: 190px; }
.hero__shots .phone--c { width: 38%; max-width: 230px; position: relative; z-index: 2; }
.hero__shots .phone--l { margin-right: -4%; transform: translateY(14px) rotate(-3deg); }
.hero__shots .phone--r { margin-left: -4%; transform: translateY(14px) rotate(3deg); }

/* スクリーンショットの枠 */
.phone { border: 5px solid #2a241c; border-radius: 26px; overflow: hidden; background: #2a241c; box-shadow: var(--shadow); }
.phone img { width: 100%; }
.hero .cap { margin-top: 30px; }
.cap { margin-top: 10px; font-size: .8125rem; color: var(--muted); line-height: 1.6; text-align: center; }

/* 共通セクション */
.sec { padding: clamp(40px, 7vw, 76px) 0; }
.sec--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec h2 { font-size: clamp(1.4rem, 4.2vw, 1.9rem); line-height: 1.45; font-weight: 900; }
.sec__lead { margin-top: 12px; color: var(--muted); max-width: 40em; }

/* 課題 */
.pain { margin-top: 20px; display: grid; gap: 10px; max-width: 44em; }
.pain li { position: relative; padding: 12px 16px 12px 44px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 700; line-height: 1.6; }
.pain li::before { content: "?"; position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); font-weight: 900; font-size: .8rem; display: grid; place-items: center; line-height: 1; }
.pain-after { margin-top: 18px; font-weight: 700; }

/* 機能の紹介(文章+画像) */
.feat { display: grid; gap: 22px; align-items: center; margin-top: clamp(28px, 5vw, 48px); }
.feat__no { font-size: .8125rem; font-weight: 900; color: var(--green); letter-spacing: .08em; }
.feat h3 { font-size: clamp(1.2rem, 3.6vw, 1.5rem); line-height: 1.45; font-weight: 900; margin-top: 2px; }
.feat p { margin-top: 12px; }
.feat__fig { justify-self: center; width: min(100%, 230px); }
.feat__fig--duo { display: flex; gap: 14px; width: min(100%, 400px); }
.feat__fig--duo figure { flex: 1; }
.note { margin-top: 12px; font-size: .875rem; color: var(--muted); }

/* 機能一覧 */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chips li { padding: 8px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-weight: 700; font-size: .9375rem; line-height: 1.5; }
.chips small { color: var(--muted); font-weight: 500; }

/* 使い方 */
.steps { margin-top: 24px; display: grid; gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: grid; gap: 18px; align-items: center; }
.step__no { font-size: .8125rem; font-weight: 900; color: var(--on-primary); background: var(--primary); display: inline-block; padding: 2px 12px; border-radius: 999px; letter-spacing: .06em; }
.step h3 { font-size: 1.2rem; font-weight: 900; margin-top: 8px; line-height: 1.45; }
.step p { margin-top: 8px; }
.step__fig { justify-self: center; width: min(100%, 180px); }

/* 無料・登録不要 */
.assure { margin-top: 18px; display: grid; gap: 10px; max-width: 44em; }
.assure li { padding: 12px 16px; background: var(--green-soft); border-radius: var(--radius); font-weight: 600; line-height: 1.7; }

/* 記事への導線 */
.more { margin-top: 20px; display: grid; gap: 12px; }
.more li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.more h3 { font-size: 1rem; font-weight: 900; }
.more a { display: block; margin-top: 6px; font-weight: 700; }
.more__all { margin-top: 18px; }

/* FAQ */
.faq { margin-top: 22px; max-width: 46em; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 800; line-height: 1.6; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; font-weight: 500; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq__a { padding: 0 0 18px; color: var(--text); }
.faq__a p + p { margin-top: 8px; }

/* 最後のCTA */
.final { padding: clamp(44px, 8vw, 84px) 0; text-align: center; background: var(--primary-soft); }
.final h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 900; line-height: 1.4; }
.final p.lead { margin-top: 10px; color: var(--muted); font-weight: 700; }
.final .btn { margin-top: 22px; }

/* フッター */
.ft { padding: 28px 0 40px; font-size: .875rem; color: var(--muted); }
.ft .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.ft nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ft a { color: var(--muted); padding: 6px 0; }
.ft__small { width: 100%; font-size: .8125rem; line-height: 1.7; }

@media (min-width: 760px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .feat { grid-template-columns: 1fr minmax(210px, 260px); gap: 48px; }
  .feat--rev { grid-template-columns: minmax(210px, 260px) 1fr; }
  .feat--rev .feat__fig { order: -1; }
  .feat--duo { grid-template-columns: 1fr minmax(320px, 440px); }
  .step { grid-template-columns: 1fr 180px; }
  .more { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 記事への導線 */
.more { margin-top: 22px; display: grid; gap: 12px; }
.more li { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.more h3 { font-size: .8125rem; font-weight: 800; color: var(--green); letter-spacing: .04em; }
.more a { display: inline-block; margin-top: 2px; font-weight: 700; line-height: 1.7; }
.more__all { margin-top: 16px; font-weight: 700; }
@media (min-width: 720px) { .more { grid-template-columns: 1fr 1fr; } }
