/* KeyBye 紹介サイトの見た目。アプリ（keybye-desktop の main.css）と同じ「黄色の付せん」の作り */
:root {
  color-scheme: light;
  --ink: #1f1f1f;
  --paper: #f7f6f3;
  --card: #ffffff;
  --yellow: #ffd23f;
  --sub: #6b6b6b;
  --faint: #9a9a9a;
  --line: #cfcbc2;
  --rule: #f0eeea;
  --danger: #b4410f;
  --slot: #fff3b0;
  --radius: 4px;
  --lift: 0 2px 0 rgba(0, 0, 0, 0.05);
  --fold: polygon(0 0, 100% 0, 100% 82%, 94% 100%, 0 100%);
  --font: "Inter", "Zen Kaku Gothic New", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { word-break: auto-phrase; text-wrap: pretty; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.85 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0 0 0 1.3em; }
h1, h2, h3 { text-wrap: balance; }

/* ---- 上の黒い帯 ---- */
.topbar { background: var(--ink); color: #fff; }
.topbar-in {
  max-width: 1080px; margin: 0 auto; height: 56px; padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; color: #fff; }
.brand img { display: block; width: 26px; height: 26px; }
.brand span { font-weight: 800; font-size: 16px; white-space: nowrap; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topbar nav a {
  border-radius: var(--radius); color: #dadada; text-decoration: none; white-space: nowrap;
  padding: 6px 12px; font-size: 14px; line-height: 1.6;
}
.topbar nav a:hover { color: #fff; }
.topbar nav a[aria-current="page"], .topbar nav a.cta { background: var(--yellow); color: var(--ink); font-weight: 700; }
.topbar nav a.cta { margin-left: 8px; }
.topbar :focus-visible, .footer :focus-visible { outline-color: #fff; }

/* ---- 共通部品 ---- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.sec { padding: 72px 0 0; }
.sec > h2, .sec-head { margin-bottom: 32px; }
h2.title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.4; font-weight: 900; letter-spacing: -0.01em; }
.center { text-align: center; }
.lead { font-size: 17px; line-height: 1.9; color: #444; }
.note { background: var(--card); border-radius: var(--radius); box-shadow: var(--lift); padding: 24px 26px; min-width: 0; }
.sticky { background: var(--yellow); clip-path: var(--fold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 30px;
  border: 0; border-radius: var(--radius); background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover:not(:disabled) { background: #3a3a3a; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.light { background: var(--card); color: var(--ink); box-shadow: var(--lift); }
.btn.light:hover { background: #efede8; }
.keycap {
  display: inline-block; padding: 1px 9px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px;
  background: var(--card); color: var(--ink); font-weight: 700; font-size: 0.85em; line-height: 1.6; white-space: nowrap;
}
.plus { margin: 0 4px; color: var(--sub); }
.slot { background: var(--slot); box-shadow: 0 0 0 1px #e6c94d; padding: 0 4px; border-radius: 2px; }
.small { font-size: 13px; line-height: 1.8; color: var(--sub); }
.tag { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.tag.sub { color: var(--sub); font-weight: 700; }
.pad-bottom { padding-bottom: 96px; }

/* ---- 最初の画面 ---- */
.hero { padding: 64px 0 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero .kicker { font-size: 14px; font-weight: 700; color: var(--sub); }
.hero h1 { margin: 14px 0 22px; font-size: clamp(36px, 5vw, 60px); line-height: 1.2; font-weight: 900; letter-spacing: -0.02em; }
.hero h1 mark { display: inline-block; background: var(--yellow); color: var(--ink); padding: 0 0.18em 0.06em; clip-path: var(--fold); transform: rotate(-1deg); }
.hero .cta-row { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero .cta-row p { font-size: 13px; line-height: 1.8; color: var(--sub); }
.latest { padding: 24px 28px 34px; transform: rotate(-0.8deg); }
.latest .meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; }
.latest .meta span:first-child { opacity: 0.7; }
.latest .text { margin-top: 12px; font-size: clamp(19px, 2.2vw, 23px); font-weight: 800; line-height: 1.65; }
.latest .raw-label { margin-top: 16px; font-size: 12px; font-weight: 700; opacity: 0.7; }
.latest .raw { margin-top: 2px; font-size: 14px; line-height: 1.7; opacity: 0.65; text-decoration: line-through; }
.howto { margin-top: 24px; border: 2px dashed var(--line); border-radius: var(--radius); padding: 14px 18px; font-size: 14px; line-height: 2.3; color: #555; }

/* ---- 悩み・カード ---- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards .num { display: block; font-size: 30px; font-weight: 900; line-height: 1.2; margin-bottom: 8px; }
.cards p { font-weight: 700; line-height: 1.8; }
.cards .note:nth-child(3n+1) { transform: rotate(-0.6deg); }
.cards .note:nth-child(3n+2) { transform: rotate(0.5deg); }
.cards .note:nth-child(3n) { transform: rotate(-0.4deg); }
.cards.two .note { transform: none; }

/* ---- 実演 ---- */
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-size: 14px; font-weight: 700; line-height: 1.6; }
.chip svg { flex: none; }
.scenes { display: flex; flex-direction: column; gap: 22px; }
.scene { padding: 22px 24px 26px; }
.scene .tag { display: block; margin-bottom: 12px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; }
.pair .raw { background: var(--paper); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.pair .raw p { color: #555; line-height: 1.9; }
.pair .out { padding: 16px 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.pair .out p { font-weight: 800; line-height: 1.8; }
.pair .label { font-size: 12px; font-weight: 700; }
.pair .raw .label { color: var(--sub); }
.pair .out .label { opacity: 0.7; }
.pair .arrow { align-self: center; }
.pair .arrow svg { display: block; }

/* ---- 画面の写し ---- */
.shot { margin-top: 18px; }
.shot img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1); background: var(--paper); }
.shot figcaption { margin-top: 8px; font-size: 12px; line-height: 1.7; color: var(--sub); }
.feature h3 { font-size: 20px; font-weight: 900; line-height: 1.5; margin: 4px 0 10px; }
.feature p { font-weight: 400; color: #333; line-height: 1.9; }

/* ---- 使い方（3ステップ） ---- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.steps .badge, .step .badge {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--ink); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 12px;
}
.steps p { font-weight: 700; line-height: 1.8; }
.more { margin-top: 22px; text-align: center; font-size: 15px; font-weight: 700; }

/* ---- データの扱い ---- */
.dark { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(26px, 5vw, 56px); display: flex; flex-direction: column; gap: 26px; }
.dark h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.4; font-weight: 900; }
.dark ul { display: flex; flex-direction: column; gap: 12px; }
.dark li { color: #e8e8e8; line-height: 1.9; }
.dark a { color: var(--yellow); font-weight: 700; }

/* ---- 料金 ---- */
.plan { display: flex; flex-direction: column; padding: 28px 28px 34px; }
.plan h3 { font-size: 22px; font-weight: 900; line-height: 1.5; margin-bottom: 8px; }
.plan .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.plan.sticky .row { border-top-color: rgba(0, 0, 0, 0.14); }
.plan .row dt { font-size: 14px; color: var(--sub); }
.plan.sticky .row dt { color: #4a4220; }
.plan .row dd { font-size: 18px; font-weight: 800; }
.plan .price { font-size: 26px; }
.notes { max-width: 760px; margin: 28px auto 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.9; color: #444; }

/* ---- よくある質問 ---- */
.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq .note { padding: 20px 24px; }
.faq h3 { font-size: 16px; line-height: 1.7; font-weight: 800; }
.faq h3 b, .faq p b { display: inline-block; width: 1.5em; font-weight: 900; }
.faq p { margin-top: 6px; font-size: 15px; line-height: 1.9; color: #444; }
.faq h2.group { margin: 18px 0 0; font-size: 14px; font-weight: 800; color: var(--sub); }

/* ---- 事前登録 ---- */
.register { padding: clamp(28px, 5vw, 60px) clamp(20px, 5vw, 60px) clamp(36px, 5vw, 68px); display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.register h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.4; font-weight: 900; }
.register form { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; text-align: left; }
.register label { font-size: 14px; font-weight: 700; }
.register input[type="email"] {
  width: 100%; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink); font: inherit; font-size: 16px;
}
.register input[type="email"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.register .consent { font-size: 12px; line-height: 1.8; color: #4a4220; }
.register .error { font-size: 14px; line-height: 1.7; font-weight: 700; color: var(--danger); }
.register .done { font-size: 16px; line-height: 1.8; font-weight: 800; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- 文書ページ（規約・表記・ポリシー・使い方・個別ページ） ---- */
.page { padding: 48px 0 96px; }
.page h1 { font-size: clamp(28px, 4.6vw, 48px); line-height: 1.35; font-weight: 900; letter-spacing: -0.01em; text-align: center; margin-bottom: 14px; }
.page .intro { max-width: 760px; margin: 0 auto 32px; text-align: center; font-size: 15px; line-height: 1.9; color: #444; }
.doc { max-width: 800px; margin: 0 auto; padding: 32px clamp(20px, 4vw, 44px) 40px; display: flex; flex-direction: column; gap: 30px; }
.doc section { display: flex; flex-direction: column; gap: 10px; }
.doc h2 { font-size: 18px; line-height: 1.6; font-weight: 800; padding-bottom: 6px; border-bottom: 2px solid var(--yellow); }
.doc p, .doc li { font-size: 15px; line-height: 1.95; color: #2a2a2a; }
.doc ul, .doc ol { display: flex; flex-direction: column; gap: 4px; }
.doc .end { font-size: 14px; color: var(--sub); }
.spec { display: flex; flex-direction: column; }
.spec .row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 20px; padding: 16px 0; border-top: 1px solid var(--rule); }
.spec .row:first-child { border-top: 0; padding-top: 0; }
.spec dt { font-size: 14px; font-weight: 800; line-height: 1.8; }
.spec dd { font-size: 15px; line-height: 1.95; color: #2a2a2a; overflow-wrap: anywhere; }
.spec dd ul { margin-top: 4px; }
.toc { max-width: 800px; margin: 0 auto 28px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.toc a { padding: 6px 14px; border-radius: var(--radius); background: var(--card); box-shadow: var(--lift); font-size: 14px; font-weight: 700; text-decoration: none; }
.toc a:hover { background: #efede8; }
.steps-col { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.step { padding: 28px clamp(20px, 4vw, 40px) 34px; scroll-margin-top: 16px; }
.step h2 { font-size: 22px; line-height: 1.5; font-weight: 900; margin-bottom: 10px; }
.step p, .step li { font-size: 15px; line-height: 1.95; color: #2a2a2a; }
.step ol, .step ul { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.step .shot { margin-top: 20px; }
.step .shot.narrow { max-width: 480px; }
.step .shot.overlay img { width: auto; max-width: 100%; border: 0; box-shadow: none; background: transparent; }
.callout { margin-top: 16px; padding: 12px 16px; border: 2px dashed var(--line); border-radius: var(--radius); font-size: 14px; line-height: 2.1; color: #444; }
.trouble { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.trouble h3 { font-size: 15px; font-weight: 800; line-height: 1.7; }
.trouble p { margin-top: 2px; }
.bottom-cta { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }

/* ---- 下の帯 ---- */
.footer { margin-top: 0; background: var(--ink); color: #dadada; padding: 40px 0 44px; }
.footer .wrap { display: flex; flex-direction: column; gap: 20px; }
.footer .brand { align-self: flex-start; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.footer nav a { color: #dadada; text-decoration: none; white-space: nowrap; }
.footer nav a:hover { color: #fff; text-decoration: underline; }
.footer p { font-size: 13px; color: #9a9a9a; }

/* ---- 幅が狭いとき ---- */
@media (max-width: 899px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 44px; }
  .cards, .steps { grid-template-columns: minmax(0, 1fr); }
  .cards.two { grid-template-columns: minmax(0, 1fr); }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pair .arrow { justify-self: center; }
  .pair .arrow svg { transform: rotate(90deg); }
}
@media (max-width: 639px) {
  .topbar-in { padding: 0 16px; gap: 12px; }
  .topbar nav a:not(.cta) { display: none; }
  .wrap { padding: 0 16px; }
  .sec { padding-top: 56px; }
  .chips { grid-template-columns: minmax(0, 1fr); }
  .spec .row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .note { padding: 20px 18px; }
  .btn { padding: 0 22px; }
  .hero .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---- 比較表 ---- */
.cmp-note { max-width: 1080px; margin: 0 auto 14px; font-size: 13px; line-height: 1.9; color: var(--sub); }
table.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--lift); font-size: 14px; line-height: 1.8; }
.cmp caption { text-align: left; padding: 0 0 8px; font-size: 14px; font-weight: 800; caption-side: top; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.cmp thead th { border-top: 0; font-size: 12px; color: var(--sub); font-weight: 800; }
.cmp tbody th { font-weight: 800; width: 150px; }
.cmp td small { display: block; margin-top: 2px; font-size: 12px; color: var(--sub); }
.cmp-sources { max-width: 1080px; margin: 28px auto 0; }
.cmp-sources h2 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.cmp-sources ul { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.8; color: #444; }
.cmp-sources li { overflow-wrap: anywhere; }
.trademark { max-width: 1080px; margin: 20px auto 0; font-size: 13px; line-height: 1.8; color: var(--sub); }
.cmp-block { margin-top: 36px; }
@media (max-width: 859px) {
  table.cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  table.cmp { background: transparent; box-shadow: none; }
  .cmp thead { display: none; }
  .cmp tr { background: var(--card); border-radius: var(--radius); box-shadow: var(--lift); margin-bottom: 14px; padding: 6px 0; }
  .cmp th, .cmp td { border-top: 0; padding: 8px 18px; }
  .cmp tbody th { width: auto; font-size: 16px; padding-top: 14px; }
  .cmp td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 800; color: var(--sub); }
}

/* ---- ブログ・お知らせ ---- */
.meta-line { text-align: center; font-size: 13px; color: var(--sub); margin: -4px 0 28px; }
.post-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.post-list a.note { display: block; text-decoration: none; }
.post-list a.note:hover { background: #efede8; }
.post-list h2 { font-size: 18px; line-height: 1.6; font-weight: 800; margin: 2px 0 6px; }
.post-list p { font-size: 14px; line-height: 1.9; color: #444; }
.post-list time, .news-item time { font-size: 12px; font-weight: 700; color: var(--sub); }
.news-item h2 { border-bottom: 0; padding-bottom: 0; }
.doc h3 { font-size: 16px; line-height: 1.7; font-weight: 800; }
.doc .promo { background: var(--paper); border-radius: var(--radius); padding: 16px 20px; }
.doc .promo h2 { border-bottom-color: var(--line); }
.doc .src { font-size: 12px; line-height: 1.8; color: var(--sub); overflow-wrap: anywhere; }
.doc .src a { color: inherit; }

/* ---- ダウンロード・紹介・問い合わせ ---- */
.store-row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 12px; }
.code-card { max-width: 560px; margin: 0 auto 32px; padding: 28px 24px 40px; text-align: center; transform: rotate(-0.8deg); }
.code-card .label { font-size: 13px; font-weight: 700; opacity: 0.75; }
.code-card .code { margin-top: 6px; font-family: "Inter", ui-monospace, monospace; font-size: clamp(32px, 9vw, 52px); font-weight: 800; letter-spacing: 0.14em; line-height: 1.3; overflow-wrap: anywhere; }
.form { max-width: 640px; margin: 0 auto; padding: 28px clamp(18px, 4vw, 40px) 34px; display: flex; flex-direction: column; gap: 14px; }
.form label { font-size: 14px; font-weight: 700; display: block; margin-bottom: 4px; }
.form .opt { font-weight: 400; color: var(--sub); }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.7;
}
.form input[type="text"], .form input[type="email"] { height: 52px; padding-top: 0; padding-bottom: 0; }
.form textarea { min-height: 180px; resize: vertical; }
.form .error { font-size: 14px; line-height: 1.7; font-weight: 700; color: var(--danger); }
.form .handling { font-size: 13px; line-height: 1.9; color: var(--sub); }
.done-card { max-width: 640px; margin: 0 auto; padding: 28px clamp(18px, 4vw, 40px) 36px; font-size: 16px; line-height: 1.9; font-weight: 700; }
.cmp .nw { white-space: nowrap; }

/* ================================================================
   トップページ（body.lp）だけの見た目。ほかのページには効かない
   ================================================================ */
body.lp {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(31, 31, 31, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 31, 31, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* 黒い帯に白文字の見出し（1行ずつ帯にする） */
.lp-h { font-size: clamp(22px, 3.2vw, 38px); line-height: 1.5; font-weight: 900; letter-spacing: -0.01em; text-align: center; margin-bottom: 36px; }
.lp-h .lp-band { display: inline-block; max-width: 100%; background: var(--ink); color: #fff; padding: 0.08em 0.5em; line-height: 1.55; }
.lp-h em, .lp-make em { font-style: normal; color: var(--yellow); }
.lp-h-note { max-width: 800px; margin: -12px auto 20px; text-align: center; font-size: 14px; line-height: 1.9; color: #444; }

/* 流れる帯 */
.lp-marquee { margin-top: 64px; background: var(--yellow); color: var(--ink); overflow: hidden; border-block: 2px solid var(--ink); }
.lp-marquee-track { display: flex; width: max-content; animation: lp-flow 48s linear infinite; }
.lp-marquee-group { display: flex; flex: none; align-items: center; }
.lp-marquee-group span { padding: 12px 22px; font-size: 18px; font-weight: 800; white-space: nowrap; letter-spacing: 0.04em; }
.lp-marquee-group i { font-style: normal; font-size: 14px; }
@keyframes lp-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 困りごと → だから → 作り */
.lp-sub { text-align: center; }
.lp-item { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px 56px; align-items: center; padding: 28px 0 40px; }
.lp-item + .lp-item { border-top: 2px dashed var(--line); padding-top: 52px; }
.lp-item:nth-child(even) .lp-item-text { order: 2; }
.lp-no { font-family: "Inter", sans-serif; font-size: clamp(64px, 9vw, 112px); line-height: 0.95; font-weight: 800; font-style: italic; letter-spacing: -0.04em; background: linear-gradient(120deg, #f0b400 10%, #1f1f1f 90%); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.lp-trouble { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 16px 22px; font-size: 17px; font-weight: 800; line-height: 1.7; }
.lp-then { display: flex; align-items: center; gap: 12px; padding: 4px 0 4px 40px; }
.lp-then svg { flex: none; display: block; }
.lp-then span { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-size: 14px; font-weight: 900; }
.lp-make { font-size: clamp(19px, 2.3vw, 26px); font-weight: 900; line-height: 1.85; }
.lp-make span { background: var(--ink); color: #fff; padding: 0.12em 0.55em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lp-desc { margin-top: 16px; font-size: 15px; line-height: 1.95; color: #333; }

/* 見本の窓 */
.lp-win { background: var(--card); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 8px 8px 0 rgba(31, 31, 31, 0.14); overflow: hidden; min-width: 0; }
.lp-win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--paper); border-bottom: 2px solid var(--ink); }
.lp-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9c5bb; border: 1px solid var(--ink); }
.lp-win-bar b { margin-left: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.lp-win-body { padding: 20px 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.lp-raw { background: var(--paper); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.lp-raw p { color: #555; line-height: 1.9; }
.lp-out { padding: 14px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.lp-out p { font-weight: 800; line-height: 1.8; }
.lp-label { font-size: 12px; font-weight: 700; }
.lp-raw .lp-label { color: var(--sub); }
.lp-out .lp-label { opacity: 0.7; }
.lp-down { align-self: center; display: block; }
.lp-keys.howto { margin-top: 0; background: var(--paper); }

/* 右の固定の目次（広い画面だけ） */
.lp-toc { display: none; }
@media (min-width: 1200px) {
  .lp-toc { display: block; position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 5; }
  .lp-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
  .lp-toc a { display: flex; align-items: center; gap: 10px; padding: 4px 0; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--sub); line-height: 1.4; }
  .lp-toc a span { display: none; white-space: nowrap; }
  .lp-toc a::after { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); }
  .lp-toc a:hover span, .lp-toc a:focus-visible span, .lp-toc a.is-active span { display: inline; }
  .lp-toc a.is-active { color: var(--ink); }
  .lp-toc a.is-active::after { background: var(--yellow); }
}
@media (min-width: 1440px) {
  .lp-toc a span { display: inline; }
}

@media (max-width: 899px) {
  .lp-item { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lp-item:nth-child(even) .lp-item-text { order: 0; }
  .lp-marquee { margin-top: 48px; }
}
@media (max-width: 639px) {
  .lp-h { margin-bottom: 28px; }
  .lp-then { padding-left: 24px; }
  .lp-trouble { font-size: 16px; padding: 14px 16px; }
  .lp-win-body { padding: 16px 14px 20px; }
  .lp-marquee-group span { font-size: 16px; padding: 10px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-marquee-track { animation: none !important; }
}
