/*
 * 公開ページ(LP・記事)。ビルド不要の素の CSS(Docker イメージに Node のビルド段がないため)。
 * 読み物として読みやすいよう、地は白。色は意味のある所だけ、区切りは細い罫線と余白で作る。
 */
:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --fill: #f5f5f5;
    --ink: #111111;
    --ink-soft: #666666;
    --ink-faint: #8e8e8e;
    --line: #e6e6e6;
    --accent: #1a73e8;
    --star: #e8a317;
    --radius: 14px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure, address { margin: 0; }
address { font-style: normal; }

.wrap { width: min(1080px, 100%); margin-inline: auto; padding-inline: 24px; }

h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; line-height: 1.35; }
h3 { font-size: clamp(21px, 2.6vw, 26px); font-weight: 700; line-height: 1.45; }
/* 見出しが文節の途中で折り返さないようにする(未対応のブラウザは通常の折り返し) */
h1, h2, h3 { word-break: auto-phrase; text-wrap: pretty; }
.lead { font-size: clamp(16px, 1.7vw, 18px); color: var(--ink-soft); }

/* ボタン */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 12px 24px;
    font-size: 16px; font-weight: 700; text-decoration: none;
    color: #fff; background: var(--ink);
    border: 1px solid var(--ink); border-radius: 10px;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.button:hover { background: #333; border-color: #333; }
.button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.button--small { min-height: 40px; padding: 6px 16px; font-size: 14px; border-radius: 8px; }

.install { margin-top: 28px; }
.install__note { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.install__soon {
    display: inline-block; margin-top: 8px; padding: 12px 20px;
    font-weight: 700; color: var(--ink); background: var(--surface);
    border: 1px solid var(--ink); border-radius: 10px;
}
.step__text > .button, .step__text > .install__soon { margin-top: 28px; }
.guide-link { margin-top: 12px; font-size: 14px; font-weight: 500; }
.guide-link a { color: var(--ink); text-underline-offset: 3px; }
.guide-link a::after { content: ' →'; }
.closing .install__soon { color: var(--ink); }
.button--inverse { color: var(--ink); background: #fff; border-color: #fff; margin-top: 28px; }
.button--inverse:hover { background: #e6e6e6; border-color: #e6e6e6; }

/* PC でストアのボタンを押した時の QR コード */
.qr-dialog {
    width: min(360px, calc(100% - 32px)); padding: 32px; text-align: center;
    color: var(--ink); background: var(--surface); border: 0; border-radius: var(--radius);
}
.qr-dialog::backdrop { background: rgb(17 17 17 / 0.55); }
.qr-dialog h2 { font-size: 18px; }
.qr-dialog p { margin-top: 4px; font-size: 14px; color: var(--ink-soft); }
.qr-dialog__code { width: 220px; margin: 20px auto; }
.qr-dialog__code svg { display: block; width: 100%; height: auto; }
.qr-dialog .button { margin-top: 16px; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand__mark {
    display: inline-grid; place-items: center; width: 26px; height: 26px;
    font-size: 14px; line-height: 1; color: #fff; background: var(--accent); border-radius: 7px;
}
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.site-nav a { white-space: nowrap; }
.site-nav a:not(.button) { text-decoration: none; }
.site-nav a:not(.button):hover { text-decoration: underline; text-underline-offset: 3px; }

/* 画面のスクリーンショット: 端末の枠は描かず、細い罫線で切り取る */
.shot { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ヒーロー: 画面をセクションの下端で断ち切り、続きを読ませる */
.hero { overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 64px; align-items: start; }
.hero__copy { padding-block: 96px 80px; }
/* 2 行目(12 字)が 1 行に収まる大きさ */
.hero h1 { font-size: clamp(27px, 8.3vw - 41px, 48px); }
.hero__copy .lead { max-width: 30em; margin-top: 24px; }
.hero__copy .lead + .lead { margin-top: 12px; }
.hero__shot { height: 620px; margin-top: 56px; }
.hero__shot .shot { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* 放置した場合: 見出しを左、事実を右に置く */
.neglect__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; }
.neglect dt { display: flex; align-items: center; gap: 12px; }
.neglect dd { margin-left: 36px; }
.neglect__note { padding-top: 20px; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.neglect__note a { color: inherit; text-underline-offset: 3px; white-space: nowrap; }
.neglect .article-list { margin-top: 40px; }

/* 3 ステップ: 数字と文章の横に実際の画面を置く */
.neglect, .steps, .insights, .specs, .faq { padding-block: 104px; border-bottom: 1px solid var(--line); }
.steps h2 { margin-bottom: 56px; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 64px; align-items: start; padding-block: 56px; border-top: 1px solid var(--line); }
.step__text { position: sticky; top: 112px; max-width: 30em; }
.step__text > p:not(.step__no) { margin-top: 16px; color: var(--ink-soft); }
.step__no { margin-bottom: 12px; font-size: 56px; font-weight: 400; line-height: 1; color: var(--ink-faint); font-feature-settings: 'tnum'; }
.step--last { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }

/* 分析 */
.insights__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 80px; align-items: start; }
.insights__grid h2 { margin-bottom: 40px; }

/* 事実の一覧: カードではなく罫線で区切る */
.facts > div { padding-block: 20px; border-top: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin-top: 4px; font-size: 15px; color: var(--ink-soft); }
.specs h2 { margin-bottom: 40px; }
.facts--columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }

/* ストアのバッジ。Google Play の画像は四方に余白を含むので、高さを揃えるため大きめに置く */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.store-badges a { display: block; }
.store-badges img { height: 40px; width: auto; }
.store-badges .store-badges__play { height: 52px; margin: -6px -5px; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary {
    display: flex; justify-content: space-between; gap: 16px;
    padding-block: 18px; font-weight: 500; cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; font-weight: 400; color: var(--ink-soft); }
details[open] summary::after { content: '−'; }
details p { padding-bottom: 20px; font-size: 15px; color: var(--ink-soft); }

/* 締め: ページの中で唯一の墨色の面 */
.closing { padding-block: 104px; color: #fff; background: var(--ink); }
.closing .install__soon { margin-top: 28px; }

/* フッター */
.site-footer { padding-block: 56px 32px; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .brand { margin-bottom: 12px; font-size: 15px; color: var(--ink); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal { margin-top: 24px; font-size: 12px; }
.site-footer__legal + .site-footer__legal { margin-top: 4px; }
.site-footer__copy { margin-top: 32px; }

/* アプリ案内: 下部に重ね、背後の本文は操作できる */
.install-sheet {
    position: fixed; inset: auto 0 0; z-index: 20;
    width: min(480px, 100%); max-width: 100%; max-height: 30svh; margin: 0 auto; overflow-y: auto;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    color: var(--ink); background: var(--surface);
    border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
    font-size: 13px; line-height: 1.5;
}
.install-sheet[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
/* シートに隠れてもページの末尾まで読めるようにする */
body:has(.install-sheet[open]) { padding-bottom: 112px; }
.install-sheet__icon { border-radius: 11px; }
.install-sheet__title { font-weight: 700; }
.install-sheet__text p:not(.install-sheet__title) { color: var(--ink-soft); }
.install-sheet__actions { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.install-sheet__actions .button { white-space: nowrap; }
.install-sheet__close { min-height: 32px; padding: 0 8px; font: inherit; font-size: 12px; color: var(--ink-soft); background: none; border: 0; cursor: pointer; }
.install-sheet__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* トップの「集客ガイド」の節 */
.guide { padding-block: 104px; border-bottom: 1px solid var(--line); }
.guide__lead { max-width: 36em; margin: 16px 0 48px; color: var(--ink-soft); }

/* 記事の一覧: note のカードのように、画像とタイトルを主役にする */
.articles { padding-block: 64px 104px; }
.articles__header { margin-bottom: 32px; }
.articles__header h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.35; }
.articles__lead { max-width: 36em; margin-top: 16px; color: var(--ink-soft); }
.articles__eyebrow { margin-bottom: 8px; font-size: 14px; color: var(--ink-soft); }
.articles__eyebrow a { text-underline-offset: 3px; }
.articles__empty { color: var(--ink-soft); }
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 32px 40px; }
.guide .category-nav { margin-block: 40px 0; }
.category-nav a { padding: 6px 14px; font-size: 14px; text-decoration: none; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; }
.category-nav a:hover { border-color: var(--ink); }
.category-nav a[aria-current] { color: #fff; background: var(--ink); border-color: var(--ink); }
.article-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.article-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-card { display: block; text-decoration: none; }
.article-card img { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 14px; object-fit: cover; background: var(--fill); border-radius: 10px; }
.article-card h3 { font-size: 17px; line-height: 1.6; }
.article-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.article-card__meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.pager { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 64px; font-size: 14px; }

/* 記事: note のような 1 カラム。行間と段落の間を広く取る */
.article { max-width: 640px; margin-inline: auto; padding-block: 48px 72px; }
.article__category { margin-bottom: 12px; font-size: 14px; font-weight: 500; }
.article__category a { color: var(--ink-soft); text-decoration: none; }
.article__category a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article__header h1 { font-size: clamp(25px, 3.6vw, 32px); line-height: 1.5; letter-spacing: 0; }
.article__header time { display: block; margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.article__cover { width: 100%; margin-top: 32px; border-radius: 10px; }
.article__body { margin-top: 40px; font-size: 17px; line-height: 2; overflow-wrap: anywhere; }
.article__body > * + * { margin-top: 1.6em; }
.article__body h2 { margin-top: 3em; font-size: 23px; line-height: 1.5; }
.article__body h3 { margin-top: 2.4em; font-size: 19px; line-height: 1.6; }
.article__body h4 { margin-top: 2em; font-size: 17px; }
.article__body h2 + *, .article__body h3 + *, .article__body h4 + * { margin-top: 1em; }
.article__body ul, .article__body ol { padding-left: 1.5em; }
.article__body li + li { margin-top: 0.5em; }
.article__body a { color: var(--ink); text-underline-offset: 3px; }
.article__body a:hover { color: var(--ink-soft); }
.article__body blockquote { margin-inline: 0; padding-left: 1em; color: var(--ink-soft); border-left: 3px solid var(--line); }
.article__body img { border-radius: 8px; }
.article__body hr { margin-block: 3em; border: 0; border-top: 1px solid var(--line); }
/* 表は本文幅に収めず、はみ出す分は表だけ横にスクロールさせる */
.article__body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.article__body th, .article__body td { min-width: 8em; padding: 10px 12px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.article__body th { font-weight: 700; background: var(--fill); }
.article__body td p, .article__body th p { margin: 0; }
.preview-banner { padding: 10px 24px; font-size: 13px; font-weight: 700; text-align: center; color: #fff; background: var(--accent); }

/* 記事末尾のアプリへの導線: 本文と同じ幅で、画面を切り取って見せる */
.article-cta {
    display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 32px; overflow: hidden;
    max-width: 640px; margin-inline: auto; padding: 32px 32px 0;
    background: var(--fill); border-radius: var(--radius);
}
.article-cta__text { padding-bottom: 32px; }
.article-cta__app { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 700; }
.article-cta__app img { border-radius: 8px; }
.article-cta h2 { font-size: 21px; line-height: 1.5; }
.article-cta__text > p:not(.article-cta__app, .article-cta__more) { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
.article-cta .install { margin-top: 20px; }
.article-cta .install__soon { margin-top: 0; }
.article-cta__more { margin-top: 16px; font-size: 14px; font-weight: 500; }
.article-cta__more a { text-underline-offset: 3px; }
.article-cta__more a::after { content: ' →'; }
.article-cta__shot { height: 300px; overflow: hidden; }
.article-cta__shot .shot { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.article-related { max-width: 1032px; margin-inline: auto; padding-block: 72px 96px; }
.article-related h2 { margin-bottom: 28px; font-size: 21px; }
.article-related__more { margin-top: 32px; font-size: 14px; font-weight: 500; }
.article-related__more a { text-underline-offset: 3px; }
.article-related__more a::after { content: ' →'; }

/* 読み込み時に見出しから順に現れる(ページ内で 1 か所だけ) */
@media (prefers-reduced-motion: no-preference) {
    .hero__copy > *, .hero__shot { animation: rise 0.7s var(--ease) both; }
    .hero__copy > :nth-child(2) { animation-delay: 0.06s; }
    .hero__copy > :nth-child(3) { animation-delay: 0.09s; }
    .hero__copy > :nth-child(4) { animation-delay: 0.12s; }
    .hero__shot { animation-delay: 0.18s; }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

@media (max-width: 820px) {
    .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
    .guide { padding-block: 72px; }
    .article { padding-block: 32px 56px; }
    .article__body { font-size: 16px; }
    .article__body h2 { font-size: 21px; }
    .article__body h3 { font-size: 18px; }
    .article-cta { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 24px 24px 0; }
    .article-cta__shot { width: min(240px, 100%); height: 220px; margin-inline: auto; }
    .article-related { padding-block: 56px 72px; }
    .hero__grid, .neglect__grid, .step, .insights__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hero__grid { gap: 0; }
    .hero h1 { font-size: clamp(22px, 7vw, 48px); }
    .hero__copy { padding-block: 56px 0; }
    .hero__shot { width: min(340px, 100%); height: 480px; margin: 48px auto 0; }
    .neglect, .steps, .insights, .specs, .faq, .closing { padding-block: 72px; }
    .step { padding-block: 40px; }
    .step__text { position: static; }
    .step .shot, .insights .shot { width: min(340px, 100%); margin-inline: auto; }
    .insights__grid > .shot { order: 2; }
    .facts--columns { grid-template-columns: minmax(0, 1fr); }
    .neglect__grid, .faq__grid { gap: 24px; }
}

@media (max-width: 560px) {
    .article-list { grid-template-columns: minmax(0, 1fr); }
    /* 画像のない記事は 1 列のまま */
    .article-card:has(img) { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 14px; align-items: start; }
    .article-card img { grid-row: span 2; margin-bottom: 0; }
    .article-card h3 { font-size: 15px; line-height: 1.55; }
    .article-card__meta { margin-top: 4px; font-size: 12px; }
}

@media (max-width: 420px) {
    .wrap { padding-inline: 16px; }
    .install__soon { padding: 10px 14px; font-size: 14px; }
    .site-nav { gap: 12px; font-size: 13px; }
    .site-nav .button--small { padding-inline: 12px; font-size: 13px; }
}

/* 狭い端末ではロゴをマークだけにして、ナビとボタンを残す */
@media (max-width: 370px) {
    .site-header .brand__name { display: none; }
}
