/* Blood Pressure Time (血圧の時間) — landing page + guides
   Brand palette sampled from the App Store screenshot backgrounds (#fb7f7f coral)
   deepened for contrast on surfaces and links. */

:root {
  --brand: #ee5f68;        /* primary, hero/CTA surfaces */
  --brand-600: #c23a44;    /* link/accent text on light — 5.9:1 on white */
  --brand-700: #99242e;
  --brand-050: #fdeeee;
  --ink: #2b1820;
  --muted: #6b565e;
  --paper: #faf6f7;
  --card: #ffffff;
  --line: #eedfe4;
  --accent: #f2d047;
  --star: #f5a623;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(43, 24, 32, .06), 0 2px 8px rgba(43, 24, 32, .05);
  --shadow-md: 0 4px 12px rgba(43, 24, 32, .08), 0 12px 32px rgba(43, 24, 32, .08);
  --shadow-lg: 0 12px 28px rgba(43, 24, 32, .14), 0 32px 64px rgba(43, 24, 32, .16);

  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI",
          Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI",
          Meiryo, "Helvetica Neue", Arial, sans-serif;

  --nav-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #f4787f;
    --brand-600: #ff939b;
    --brand-700: #ffb3b8;
    --brand-050: #332122;
    --ink: #f2e9ec;
    --muted: #b3a0a7;
    --paper: #1a1316;
    --card: #241a1e;
    --line: #3c2b32;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .45);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, .5), 0 32px 64px rgba(0, 0, 0, .4);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
:lang(ja) body, body:lang(ja) { line-height: 1.85; letter-spacing: .01em; }

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.021em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.2rem; }
:lang(ja) h1 { letter-spacing: 0; line-height: 1.3; font-size: clamp(1.9rem, 4.8vw, 3rem); }
:lang(ja) h2 { letter-spacing: 0; line-height: 1.35; }
:lang(ja) h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0 0 1.1em; }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-700); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25em; }
li { margin: .35em 0; }
strong { font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--card); color: var(--ink); padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--ink); text-decoration: none; flex: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: var(--shadow-sm); }
.brand span { font-size: .96rem; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
/* Fixed brand-600 in both themes: white on var(--brand) is too low-contrast in dark mode. */
.nav-cta {
  background: #c42a53; color: #fff !important; padding: 9px 18px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm); white-space: nowrap;
}
.nav-cta:hover { background: #9c2143; color: #fff !important; }

/* Language switcher — always visible, including on mobile */
.lang-switch {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; background: var(--card); flex: none;
}
.lang-switch a, .lang-switch strong {
  padding: 6px 12px; font-size: .8rem; font-weight: 600; text-decoration: none; line-height: 1;
}
.lang-switch strong { background: var(--brand-600); color: #fff; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--ink); background: var(--brand-050); }

/* Hide only the top-level nav links on mobile — the language switcher (and the
   anchors inside it) must stay visible at every breakpoint. */
@media (max-width: 900px) { .nav-links > a:not(.nav-cta) { display: none; } }
@media (max-width: 520px) {
  .nav .wrap { gap: 10px; }
  .brand span { display: none; }
  .nav-cta { padding: 8px 14px; font-size: .84rem; }
}

/* ── Buttons / badges ────────────────────────────────── */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff; text-decoration: none;
  padding: 10px 20px 10px 17px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-md);
}
.appstore-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.appstore-badge svg { width: 26px; height: 32px; flex: none; fill: #fff; }
.appstore-badge .t { display: block; line-height: 1.1; text-align: left; }
.appstore-badge .t small { display: block; font-size: .63rem; letter-spacing: .04em; text-transform: uppercase; opacity: .82; }
.appstore-badge .t b { display: block; font-size: 1.28rem; font-weight: 600; letter-spacing: -.02em; }

/* Only ever sits on the pink hero / CTA band, so it is styled for that
   surface rather than the page theme. */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; color: #fff; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .34);
  backdrop-filter: blur(6px); transition: background .18s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .26); color: #fff; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(168deg, #fb8b85 0%, #ee5f68 42%, #d64550 100%);
  color: #fff; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); overflow: hidden; position: relative;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24);
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  letter-spacing: .01em; margin-bottom: 20px; backdrop-filter: blur(6px);
}
.hero h1 { color: #fff; margin-bottom: .35em; text-wrap: balance; }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.24rem); color: rgba(255,255,255,.93); max-width: 36ch; margin-bottom: 26px; }
@media (max-width: 900px) { .hero .lede { margin-inline: auto; } }

.rating { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: .93rem; color: rgba(255,255,255,.92); }
@media (max-width: 900px) { .rating { justify-content: center; } }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1rem; }

.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
@media (max-width: 900px) { .hero-actions { justify-content: center; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) { .chips { justify-content: center; } }
.chip {
  font-size: .8rem; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); color: #fff;
}

/* スクショカードは切らずに丸ごとヒーロー内に収める。わずかな傾きで表情をつける */
.hero-shot { justify-self: center; position: relative; }
.hero-shot img {
  width: 264px; border-radius: 26px; border: 6px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-lg); transform: rotate(1.4deg);
}
/* 狭い画面では傾きが左右の余白を食って窮屈になるため、真っ直ぐに戻す */
@media (max-width: 900px) { .hero-shot img { width: 220px; transform: none; } }

/* ── Stats strip ─────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-block: 1px solid var(--line); margin-top: clamp(48px, 6vw, 80px);
}
.stat { background: var(--paper); padding: 24px 16px; text-align: center; }
.stat b { display: block; font-size: 1.6rem; letter-spacing: -.02em; color: var(--ink); }
.stat span { font-size: .82rem; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ── Sections ────────────────────────────────────────── */
section { padding: clamp(56px, 8vw, 104px) 0; }
.sec-head { max-width: 62ch; margin-bottom: 44px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker {
  text-transform: uppercase; letter-spacing: .11em; font-size: .74rem; font-weight: 700;
  color: var(--brand-600); margin-bottom: 12px;
}
.sec-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* ── Download strip ──────────────────────────────────── */
#download { padding: clamp(28px, 4vw, 44px) 0; background: var(--card); border-bottom: 1px solid var(--line); }
.dl-row { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.dl-row .meta { font-size: .88rem; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.dl-row .meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ── Screenshots ─────────────────────────────────────── */
/* PC: 5枚を横一列。〜980px: 横スライド式カルーセル（半透明の◀▶ボタン付き） */
.shots-wrap { position: relative; }
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 980px) {
  .shots {
    display: flex; overflow-x: auto; gap: 14px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding-bottom: 8px; scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 26%; scroll-snap-align: center; }
}
@media (max-width: 640px) { .shot { flex: 0 0 44%; } }
.shot figure { margin: 0; }
.shot img { border-radius: 18px; box-shadow: var(--shadow-md); border: 1px solid var(--line); width: 100%; }
.shot figcaption { margin-top: 12px; font-size: .89rem; color: var(--muted); text-align: center; }
.shot figcaption b { display: block; color: var(--ink); font-size: .93rem; }

.shots-nav {
  display: none; position: absolute; top: 42%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(43, 24, 32, .38); color: #fff; font-size: 1rem; line-height: 1;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
@media (max-width: 980px) { .shots-nav { display: flex; } }
.shots-nav[hidden] { display: none; }
.shots-nav.prev { left: 4px; }
.shots-nav.next { right: 4px; }
.shots-nav:hover { background: rgba(43, 24, 32, .55); }

/* ── How it works ────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 24px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative;
}
.step .num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--brand-050); color: var(--brand-600);
  display: grid; place-items: center; font-weight: 700; font-size: .95rem; margin-bottom: 16px;
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* 特徴カード: PC 4枚横並び → タブレット 2×2 → モバイル 1列 */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .feature-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-row { grid-template-columns: 1fr; } }

/* こんな方におすすめ（.stepsを流用、番号なし） */
.rec-grid { margin-bottom: 0; }

/* 固定ページ(faq.html / useful-tips.html): カテゴリ見出し付きの開閉式リスト。
   見出し・説明文・本文をすべて同じ800px幅の中央カラムに揃える（.page-narrow） */
.page-narrow { max-width: 800px; margin-inline: auto; }
.page-narrow .article-head { max-width: none; }
.page-narrow .prose { max-width: none; }
.faq-page h2 { margin: 44px 0 16px; font-size: 1.3rem; }
.faq-page h2:first-child { margin-top: 0; }
/* パンくずも同じカラムに合わせる */
.crumbs-narrow { max-width: 800px; margin-inline: auto; }

/* FAQ下の「そのほかの質問→」/ ガイド一覧リンク */
.faq-more { text-align: center; margin: 26px 0 0; }
.faq-more a { font-weight: 600; }

/* 使い方ガイド記事のアプリ紹介: アイコンを見出しの左に置くヘッダー型。
   .app-block(grid 2カラム)より後勝ちさせるため複合セレクタで上書きする */
.app-block.app-intro { display: block; grid-template-columns: none; }
.app-intro-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.app-intro-head img {
  width: 56px; height: 56px; border-radius: 13px;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); flex: none;
}
.app-intro-head h2 { margin: 0 !important; font-size: 1.3rem; }
.app-intro p { color: var(--muted); font-size: .95rem; }
.app-intro-meta { font-size: .88rem !important; margin-bottom: 18px; opacity: .72; }

/* ── 使い方ガイド記事（スクショ付き手順書） ──────────── */
.howto-steps { display: grid; gap: 18px; margin-top: 8px; }
.howto-step {
  display: grid; grid-template-columns: 1fr 230px; gap: 26px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.howto-step.prep { background: var(--brand-050); }
.howto-step .shot-wrap { width: 230px; justify-self: center; position: relative; display: block; }
.howto-step img {
  width: 100%; height: auto; border-radius: 16px;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); display: block;
}
/* スクショ上の「ここをタップ」マーカー（画像に焼き込まず重ねる） */
.tap-mark {
  position: absolute; pointer-events: none; box-sizing: border-box;
  border: 3px solid #e0364f; box-shadow: 0 0 0 3px rgba(224, 54, 79, .25);
}
.tap-circle { border-radius: 50%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.tap-box { border-radius: 12px; }
.howto-step h2 { font-size: 1.15rem; margin: 10px 0 8px; }
.howto-step p { margin: 0; font-size: .95rem; color: var(--muted); }
.howto-step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand-050);
  color: var(--brand-600); display: grid; place-items: center;
  font-weight: 700; font-size: .92rem;
}
.howto-step.prep .num, .howto-label {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .09em;
  color: var(--brand-600); background: var(--card); border-radius: 999px; padding: 4px 12px;
}
.howto-h2 { font-size: 1.2rem; margin-top: 40px; }
@media (max-width: 640px) {
  .howto-step { grid-template-columns: 1fr; padding: 22px 20px; }
  .howto-step .shot-wrap { width: min(240px, 78%); }
}
.feature {
  background: var(--brand-050); border-radius: var(--radius-lg); padding: 30px 26px;
  border: 1px solid var(--line);
}
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ── Guides ──────────────────────────────────────────── */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 940px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); color: inherit; }
.guide-card .tag { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-600); }
.guide-card h3 { font-size: 1.06rem; margin: 0; letter-spacing: -.012em; }
.guide-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.guide-card .more { margin-top: auto; padding-top: 10px; font-size: .86rem; font-weight: 600; color: var(--brand-600); }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { max-width: 800px; margin-inline: auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 54px 20px 22px; position: relative;
  font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--brand-600); line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p { margin: 0 0 14px; }
.faq .answer a { font-weight: 600; }

/* ハブ項目 → 画像つき詳細記事（/tips/<slug>/）への導線 */
.answer-detail-link { margin: 0 0 18px; }
.answer-detail-link a {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--brand-050); color: var(--brand-600);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.answer-detail-link a:hover { background: var(--brand-600); color: #fff; }

/* ── CTA band ────────────────────────────────────────── */
.cta {
  background: linear-gradient(160deg, #ee5f68 0%, #c23a44 100%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 60px);
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: rgba(255,255,255,.9); margin-bottom: 26px; max-width: 46ch; }
.cta-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
@media (max-width: 860px) { .cta-actions { justify-content: center; } }
.qr {
  background: #fff; border-radius: var(--radius); padding: 14px; text-align: center;
  box-shadow: var(--shadow-md);
}
.qr img { width: 132px; height: 132px; }
.qr span { display: block; font-size: .72rem; color: #6b565e; margin-top: 8px; font-weight: 600; }
@media (max-width: 860px) { .qr { display: none; } }

/* ── Footer ──────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--card); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand p { color: var(--muted); font-size: .89rem; max-width: 34ch; margin: 14px 0 0; }
footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 14px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 0 0 9px; }
footer li a { color: var(--ink); text-decoration: none; font-size: .91rem; }
footer li a:hover { color: var(--brand-600); text-decoration: underline; }
.foot-base {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: .82rem; color: var(--muted);
}

/* ── Guide article pages ─────────────────────────────── */
.crumbs { font-size: .82rem; color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-600); text-decoration: underline; }
.crumbs span { margin: 0 7px; opacity: .5; }

.article { padding: 20px 0 clamp(56px, 8vw, 96px); }
.article-head { max-width: 760px; margin-bottom: 40px; }
.article-head h1 { text-wrap: balance; margin-bottom: .3em; }
.article-meta { font-size: .85rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }

.article-body { display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 56px; align-items: start; }
@media (max-width: 1040px) { .article-body { grid-template-columns: minmax(0, 1fr); gap: 0; } }

.prose { max-width: 760px; }
.prose h2 { margin-top: 2em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h3 { margin-top: 1.6em; }
.prose > p:first-child { font-size: 1.1rem; }

.answer-box {
  background: var(--brand-050); border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 24px; margin: 0 0 34px;
}
.answer-box .lbl {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 8px;
}
.answer-box p { margin: 0; font-size: 1.04rem; }

.callout {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin: 30px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

table.data { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: .93rem; }
table.data th, table.data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.data th { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
table.data tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.toc {
  position: sticky; top: calc(var(--nav-h) + 24px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
/* 1カラムに折り返す幅では本文の最後尾に来てしまい、スクロール後に触られないため非表示に */
@media (max-width: 1040px) { .toc { display: none; } }
.toc h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { margin: 0 0 9px; counter-increment: t; }
.toc a { color: var(--ink); text-decoration: none; font-size: .88rem; display: block; }
.toc a::before { content: counter(t) ". "; color: var(--brand-600); font-weight: 700; }
.toc a:hover { color: var(--brand-600); }

.app-block {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; margin: 40px 0; display: grid; grid-template-columns: 1fr 190px; gap: 32px; align-items: center;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 700px) { .app-block { grid-template-columns: 1fr; } .app-block img { justify-self: center; max-width: 190px; } }
.app-block h2 { margin-top: 0 !important; font-size: 1.45rem; }
.app-block img { border-radius: 14px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.app-block .appstore-badge { margin-top: 18px; }

/* 関連サービス: アイコンは小さめのバッジとして表示、リンクはボタン2つを横並び */
.related-block { grid-template-columns: 1fr 84px; }
.related-block img { border-radius: 18px; width: 84px; height: 84px; }
/* .app-block の700px以下ルールは定義順の都合で上書きされるため、ここで明示し直す */
@media (max-width: 700px) {
  .related-block { grid-template-columns: 1fr; }
  .related-block img { justify-self: start; margin: 0; }
}
.related-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; margin-bottom: 0 !important; }
.related-links .appstore-badge { margin-top: 0; padding: 9px 16px 9px 13px; }
.related-links .appstore-badge svg { width: 21px; height: 26px; }
.related-links .appstore-badge .t b { font-size: 1.05rem; }
.btn-solid {
  display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 12px;
  font-weight: 600; font-size: .95rem; text-decoration: none; color: #fff;
  background: var(--brand); box-shadow: var(--shadow-sm); transition: background .18s ease;
}
.btn-solid:hover { background: var(--brand-700); color: #fff; }

.related { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 40px; }
.related h2 { font-size: 1.3rem; }

.guide-cta {
  background: linear-gradient(160deg, #ee5f68 0%, #c23a44 100%); color: #fff;
  border-radius: var(--radius-lg); padding: 34px; margin: 44px 0 0; text-align: center;
}
.guide-cta h2 { color: #fff; margin-top: 0 !important; font-size: 1.5rem; }
.guide-cta p { color: rgba(255,255,255,.92); max-width: 48ch; margin-inline: auto; }
.guide-cta .appstore-badge { margin-top: 8px; }

.disclaimer { font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 44px; padding-top: 20px; }
