/* 機能のページ (/kyoyu/・/kiroku/・/kanri/)・ガイド (/guide/…)・Taily について (/about/) のスタイル。
   site.css → lp.css の後に読む (色の変数・ストアのバッジ・POINT・最後の CTA は lp.css のものを使う)。
   HTML は tools/site/build.py が tools/site/pages/ の原稿から作る (docs/marketing/SEO_STRATEGY.md・ROADMAP M22)。

   見た目の決まり (2026-11-11 夜 開発者「AI SLOP 感があるから、もうちょっといい感じに」):
   - 箱で囲まない。色つきの角丸の箱・左に色の帯の付いた箱・丸い番号の札は使わない
   - 区切りは細い線と余白。読みものは左そろえで、字の大きさと太さで段を作る
   - 色は文字の茶と、差し色のオレンジ1つ。地の色を段ごとに塗り分けない
   - キャラクター (猫のマーチ・犬のおもち) は少しだけ: 線の上に座らせる (.perch・.head-line)・ストアのボタンを見上げさせる (.mid-store)
   - アプリの画面の図だけは、トップと同じクリームの台に載せる */

/* 見出しのフォント。トップとは別のサブセット (python3 tools/lp_font_subset.py が作る) */
@font-face {
  font-family: "Zen Kaku Gothic New Pages";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/zkgn-700-pages.woff2") format("woff2");
}
body.page {
  --heading-font: "Zen Kaku Gothic New Pages", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --ink: #796D65; /* 漫画の線の色。キャラクターが座る線に使う */
}
/* 画面の下に固定のボタンを出さないページ (ガイド・Taily について) は、lp.css の body の下の余白を戻す */
body.page-plain { padding-bottom: 0; }

/* ===== ヘッダー: PC は横並び、スマホは「メニュー」(details。JS なし) ===== */
.page .site-header nav a[aria-current="page"] { color: var(--text); font-weight: 700; }
.site-menu summary { display: flex; align-items: center; gap: 8px; padding: 10px 0 10px 12px; color: var(--text); font-size: 14px; font-weight: 700; list-style: none; cursor: pointer; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary::before { content: ""; width: 18px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.site-menu-panel { position: absolute; top: 100%; right: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 6px 20px 22px; border-bottom: 1px solid var(--outline); background: var(--bg); box-shadow: 0 14px 24px rgba(61, 48, 41, 0.08); }
.site-menu-panel p { margin: 14px 0 2px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.site-menu-panel a { display: block; padding: 10px 0; border-bottom: 1px solid var(--outline); color: var(--text); font-size: 15px; font-weight: 700; text-decoration: none; }
.site-menu-panel a[aria-current="page"] { color: var(--primary-deep); }
.site-menu-panel .site-menu-top { grid-column: 1 / -1; margin-top: 12px; border-bottom: none; color: var(--muted); font-size: 13px; font-weight: 400; text-align: center; }
@media (min-width: 900px) {
  .site-menu { display: none; }
}

/* ===== パンくず ===== */
.crumbs { padding-top: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; line-height: 1.6; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--outline); }
.crumbs a { color: var(--muted); }

/* ===== キャラクター (少しだけ。飾りなので alt は空) ===== */
.chara { display: block; width: auto; }
/* 線の上に座らせる: 高さの無い線 + その上に立つ絵 */
.perch { position: relative; height: 0; border-top: 1.5px solid var(--ink); }
.perch .chara { position: absolute; right: 14px; bottom: -1px; height: 58px; }
/* 記事の題の下: 左に更新日、右にキャラクター。どちらも同じ線に載る */
.head-line { display: flex; align-items: flex-end; justify-content: space-between; min-height: 70px; margin: 0 0 30px; padding: 0 12px 0 0; border-bottom: 1.5px solid var(--ink); }
.head-line .updated { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.head-line .chara { height: 68px; margin: 0 0 -1px auto; }

/* ===== 最初の画面 (機能のページ): 題 → 説明 → ストアのボタン → 絵 ===== */
.page-hero { padding: 22px 0 44px; text-align: center; }
.page-hero .chara { height: 62px; margin: 0 auto 12px; }
.page-hero h1 { margin: 0 0 14px; font-size: clamp(25px, 6.8vw, 34px); line-height: 1.42; letter-spacing: 0.02em; }
.page-hero h1 em { color: var(--primary-num); font-style: normal; background: linear-gradient(transparent 68%, rgba(232, 152, 94, 0.28) 68%); }
.page-hero .lead { max-width: 560px; margin: 0 auto 24px; font-size: 16px; line-height: 1.9; }
.page-hero .free { margin: 12px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.page-hero .inapp-hint { color: var(--muted); }
.page-hero-visual { display: block; width: min(100%, 440px); margin: 30px auto 0; }

/* 機能のページの POINT は番号のラベルを出さず、見出しを h2 にする (1ページ1つの話なので) */
.page .point h2 { margin: 0 0 6px; font-size: clamp(21px, 6vw, 26px); line-height: 1.45; letter-spacing: 0.02em; }
.page .point h2 em { color: var(--primary-num); font-style: normal; background: linear-gradient(transparent 68%, rgba(232, 152, 94, 0.28) 68%); }
.page .points { padding-top: 12px; }
.page .point { padding: 44px 0; }
.page .point:last-child { border-bottom: none; }
/* 箇条を横に置かない段の絵 (絵 → 下に文)。PC でもスマホと同じ幅で真ん中に置く */
.page .point > .point-visual { width: min(80%, 300px); margin: 0 auto; padding: 16px 12px; }
.point-text { max-width: 480px; margin: 20px auto 0; font-size: 15px; line-height: 1.9; }
.point-text p { margin: 0 0 10px; }
.point-text p:last-child { margin-bottom: 0; }
.page .sec { padding: 60px 0; }
.page .sec h2 { margin-bottom: 22px; }
.page .sec .lead { margin-top: -10px; }

/* ===== 読みもの (ガイド・Taily について) ===== */
.prose { max-width: 680px; margin: 0 auto; padding: 8px 22px 64px; }
.prose h1 { margin: 22px 0 22px; font-size: clamp(27px, 7vw, 38px); line-height: 1.4; letter-spacing: 0.02em; }
/* 題の後ろ半分 (検索結果の題では「｜」の後ろ) は、1段小さくして次の行に */
.prose h1 .h1-sub { display: block; margin-top: 10px; color: var(--primary-deep); font-size: 0.55em; line-height: 1.5; letter-spacing: 0.03em; }
.prose .lead { margin: 0 0 24px; font-size: 16px; line-height: 1.95; }
.prose h2 { margin: 68px 0 16px; padding-top: 30px; border-top: 1px solid var(--outline); font-size: clamp(21px, 5.8vw, 27px); line-height: 1.5; letter-spacing: 0.02em; }
.prose h2 .num { margin-right: 0.4em; color: var(--primary-num); font-size: 1.3em; line-height: 1; }
/* 線の上にキャラクターが座っているときは、見出しに線を重ねない */
.prose .perch { margin-top: 84px; }
.prose h2.on-perch { margin-top: 0; border-top: none; }
.prose h3 { margin: 30px 0 8px; font-size: clamp(18px, 4.8vw, 21px); line-height: 1.5; }
.prose p { margin: 0 0 16px; line-height: 1.95; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.3em; }
.prose li { margin-bottom: 8px; line-height: 1.8; }
.prose li::marker { color: var(--primary); }
.prose strong { font-weight: 700; }
/* 見出しの直後の答え (検索と AI の答えが引く1〜2文)。箱にせず、太い字で置く */
.answer { margin: 0 0 18px; font-family: var(--heading-font); font-size: 17px; font-weight: 700; line-height: 1.85; letter-spacing: 0.01em; }
/* 添え書き (Taily の場合・注意)。上下の細い線ではさむ */
.callout { margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--outline); border-bottom: 1px solid var(--outline); color: var(--muted); font-size: 15px; line-height: 1.9; }
.callout > strong:first-child { display: block; margin-bottom: 4px; color: var(--text); font-size: 14px; }
.callout.taily > strong:first-child::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 7px; border-radius: 4px; background: url("/app-icon.png") center / cover; vertical-align: -3px; }
.callout + .callout { margin-top: -25px; }
/* 添え書きの下の線のすぐ後に見出しが来るときは、見出しの上の線を重ねない */
.prose .callout + h2 { margin-top: 56px; padding-top: 0; border-top: none; }
/* 確かめる点: 小さなチェックの印だけ (四角い欄にすると、押せるチェックボックスに見える = 2026-11-11 開発者) */
.prose .ticks { display: grid; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.prose .ticks li { position: relative; margin: 0; padding-left: 28px; line-height: 1.75; }
.prose .ticks li::before { content: ""; position: absolute; top: 0.42em; left: 7px; width: 6px; height: 11px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(40deg); }
/* 手順: 丸い札でなく、大きい数字 */
.prose ol.steps { padding: 0; list-style: none; counter-reset: step; }
.prose ol.steps > li { position: relative; margin-bottom: 14px; padding-left: 32px; counter-increment: step; }
.prose ol.steps > li::before { content: counter(step); position: absolute; top: -0.12em; left: 2px; color: var(--primary-num); font-family: var(--heading-font); font-size: 1.3em; font-weight: 700; }
/* 表: 横の線だけ */
.prose .table-wrap { margin: 22px 0; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.65; }
.prose th, .prose td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--outline); text-align: left; vertical-align: top; }
.prose thead th { border-bottom: 1.5px solid var(--ink); font-weight: 700; }
.prose tbody th { color: var(--muted); font-weight: 700; white-space: nowrap; }
/* 題のすぐ下の、見る点の一覧 (番号つき・各段へのリンク) */
.prose ol.lede-list { margin: 4px 0 22px; }
.prose ol.lede-list > li { margin-bottom: 8px; font-weight: 700; }
.prose ol.lede-list a { color: var(--text); text-decoration-color: var(--outline); text-underline-offset: 4px; }
/* 見る点ごとの Taily の答え (選び方の記事の最後の表)。番号 → 見る点の名前 (小さく) → 答え (大きく) → 説明。
   箱にせず、上の濃い線と行の間の細い線で組む。○・× の記号は使わない (○ は押せる丸いボタンに見える。2026-11-11 開発者) */
.prose ol.score { margin: 26px 0 0; padding: 0; border-top: 1.5px solid var(--ink); list-style: none; counter-reset: score; }
.prose ol.score > li { position: relative; margin: 0; padding: 20px 0 20px 44px; border-bottom: 1px solid var(--outline); counter-increment: score; }
.prose ol.score > li::before { content: counter(score); position: absolute; top: 15px; left: 2px; color: var(--primary-num); font-family: var(--heading-font); font-size: 30px; font-weight: 700; line-height: 1.2; }
.prose .score-q { margin: 0 0 2px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.6; }
.prose .score-a { margin: 0 0 6px; font-family: var(--heading-font); font-size: 19px; font-weight: 700; line-height: 1.5; letter-spacing: 0.01em; }
.prose .score-d { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.85; }
/* Taily に無いもの: 2列に並べた短い行 */
.prose h3 + .lacks { margin-top: 4px; }
.prose .lacks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0 0 22px; padding: 0; list-style: none; }
.prose .lacks li { margin: 0; padding: 11px 0 11px 20px; border-bottom: 1px solid var(--outline); position: relative; color: var(--muted); font-size: 15px; line-height: 1.6; }
.prose .lacks li::before { content: ""; position: absolute; top: 1.25em; left: 2px; width: 9px; border-top: 1.5px solid var(--muted); }
/* アプリの画面の図 (トップの POINT と同じクリームの台) */
.prose figure { margin: 28px auto; width: min(80%, 320px); }
.prose figure.wide { width: min(100%, 460px); }
.prose figure img { width: 100%; padding: 16px 12px; border-radius: 18px; background: var(--cream); }
.prose figure.wide img { padding: 0; background: none; border-radius: 0; }
.prose figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
/* 記事の途中のストアのボタン。下の線におもちが立って、ボタンを見上げる */
.prose .mid-store { position: relative; margin: 68px 0 0; padding: 0 0 30px; border-bottom: 1.5px solid var(--ink); text-align: center; }
.prose .mid-store p { margin: 0 0 16px; font-family: var(--heading-font); font-size: 17px; font-weight: 700; }
.prose .mid-store .chara { position: absolute; right: 4px; bottom: -1px; height: 54px; }
.prose .mid-store + h2 { margin-top: 56px; border-top: none; }

/* ===== 機能のページの「こんなときに」「安心して使えるように」: トップの箱を、線で区切った行にする ===== */
.page .scenes, .page .answers { gap: 0; max-width: 560px; border-top: 1px solid var(--outline); }
.page .scenes li, .page .answers li { padding: 16px 2px; border-bottom: 1px solid var(--outline); border-radius: 0; background: none; font-size: 15px; line-height: 1.75; }
.page .answers li::before, .page .answers li::after { display: none; }

/* ===== よくある質問: 箱を並べず、線で区切る ===== */
.page .faq-list { display: block; border-top: 1px solid var(--outline); }
.page .faq-list details { border: none; border-bottom: 1px solid var(--outline); border-radius: 0; background: none; }
.page .faq-list summary { padding: 17px 36px 17px 2px; }
.page .faq-list summary::after { right: 8px; }
.page .faq-list details p, .prose .faq-list details p { margin: 0; padding: 0 2px 18px; }
.prose .faq-list { margin-top: 4px; }

/* ===== あわせて読む (機能のページ・ガイドへの道。見出しの線と行の形は lp.css の .perch-head・.link-rows) ===== */
.related { padding: 84px 0 72px; }
.related .container { max-width: 680px; }
.related .perch-head, .related .link-rows { max-width: none; }
.related h3 { margin: 30px 0 0; color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.related .link-rows { border-top: none; }
.prose .link-rows { margin: 0; padding: 0; }
.prose .link-rows li { margin: 0; }

.final-cta .final-sub { margin: -8px 0 20px; color: #FFF3EA; font-size: 14px; font-weight: 700; }

@media (min-width: 900px) {
  /* 広い画面では、見る点の名前を左の列に出して、答えと説明を右に */
  .prose ol.score > li { display: grid; grid-template-columns: 8.5em 1fr; gap: 0 20px; padding-left: 52px; }
  .prose .score-q { grid-row: 1 / 3; margin-top: 6px; }
  .prose .score-a, .prose .score-d { grid-column: 2; }
  .page-hero { padding: 36px 0 60px; }
  .page-hero .chara { height: 72px; }
  .page-hero h1 { font-size: 38px; }
  .page-hero .lead { font-size: 17px; }
  .prose h2 { margin-top: 84px; }
  .head-line .chara { height: 80px; }
  .head-line { min-height: 82px; }
  .perch .chara { height: 66px; }
  /* PC では「できること」と「ガイド」を横に2列 */
  .related .container.two { max-width: 920px; }
  .related .two .related-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
}
