/* アラフォー男のマチアプ課金検証 — 共通スタイル */

:root {
  --ink: #1f2330;
  --ink-sub: #5b6072;
  --line: #e6e1d8;
  --bg: #ffffff;
  --bg-warm: #fbf7f0;
  --navy: #26344f;      /* スワイプ太郎のジャケット */
  --red: #d9482b;       /* 赤字・課金 */
  --brown: #8a5a2b;     /* 財布くん */
  --radius: 12px;
  --max: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}
a { color: var(--navy); }
img { max-width: 100%; height: auto; }

/* ---- ヘッダー・フッター ---- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header__inner {
  max-width: 1040px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); }
.brand__name { font-weight: 800; font-size: 17px; line-height: 1.3; }
.brand__name small { display: block; font-weight: 600; font-size: 11px; color: var(--ink-sub); }
.site-nav { display: flex; gap: 14px; font-size: 14px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.site-nav a:hover { color: var(--red); }
@media (max-width: 600px) {
  .site-nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 16px; padding-bottom: 2px; }
  .site-nav a { white-space: nowrap; }
}

.site-footer {
  margin-top: 56px; background: var(--bg-warm); border-top: 1px solid var(--line);
  padding: 24px 16px 32px; font-size: 13px; color: var(--ink-sub); text-align: center; line-height: 1.9;
}
.site-footer a { color: var(--ink-sub); }
.site-footer .notice { font-weight: 700; color: var(--ink); }

/* ---- 記事本文 ---- */
.page { max-width: var(--max); margin: 0 auto; padding: 8px 16px 0; }
.breadcrumb { font-size: 12px; color: var(--ink-sub); margin: 12px 0 0; }
.breadcrumb a { color: var(--ink-sub); }
h1 { font-size: 26px; line-height: 1.45; margin: 12px 0 6px; letter-spacing: .01em; }
.page-meta { font-size: 13px; color: var(--ink-sub); margin: 0 0 16px; }
.series-tag {
  display: inline-block; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; margin-right: 6px; text-decoration: none;
}
.page h2 {
  font-size: 21px; line-height: 1.5; margin: 44px 0 14px; padding: 8px 0 8px 14px;
  border-left: 6px solid var(--red); background: linear-gradient(90deg, var(--bg-warm), transparent);
}
.page h3 { font-size: 18px; margin: 28px 0 10px; }
.page p { margin: 0 0 1.1em; }
.article-hero { display: none; } /* OGP・一覧サムネ専用 */
@media (max-width: 600px) { h1 { font-size: 22px; } .page h2 { font-size: 19px; } }

/* 要点3つ */
.keypoints { background: #f3f5fa; border: 1px solid #d8deec; border-radius: var(--radius); overflow: hidden; margin: 18px 0 22px; font-size: 15px; }
.keypoints::before { content: "💡 まずはここだけ！3つの要点"; display: block; background: var(--navy); color: #fff; font-weight: 700; padding: 10px 16px; }
.keypoints ul { list-style: none; margin: 0; padding: 12px 16px; }
.keypoints li { position: relative; padding-left: 28px; margin: 8px 0; line-height: 1.75; }
.keypoints li::before { content: "✅"; position: absolute; left: 0; top: .05em; font-size: 14px; }

/* ---- 吹き出し ---- */
.speech { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0; }
.speech--right { flex-direction: row-reverse; }
.speech__avatar { flex: 0 0 64px; margin: 0; text-align: center; }
.speech__avatar img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: block; }
.speech__avatar figcaption { font-size: 10.5px; line-height: 1.3; color: var(--ink-sub); margin-top: 4px; font-weight: 700; }
.speech__bubble {
  position: relative; padding: 11px 15px; border-radius: 14px; font-size: 15px; line-height: 1.75;
  background: #eef2f9; border: 1px solid #d5dcea; max-width: calc(100% - 80px);
}
.speech__bubble::before {
  content: ""; position: absolute; top: 20px; left: -8px; width: 14px; height: 14px;
  background: inherit; border-left: 1px solid; border-bottom: 1px solid; border-color: inherit; transform: rotate(45deg);
}
.speech--right .speech__bubble::before { left: auto; right: -8px; transform: rotate(-135deg); }
.speech--saifu .speech__bubble { background: #f7eee4; border-color: #e3cfb8; }
.speech--tomo .speech__bubble  { background: #f3eef8; border-color: #ddd1ea; }
.speech--kohai .speech__bubble { background: #eaf5fb; border-color: #cbe3ef; }

/* ---- 表 ---- */
.table-wrap { overflow-x: auto; margin: 14px 0 20px; }
.table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.table th, .table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.table th { background: var(--bg-warm); font-weight: 700; white-space: nowrap; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- レシート（体験記事の収支まとめ・このサイトの顔） ---- */
.receipt {
  max-width: 420px; margin: 28px auto; background: #fffdf8; padding: 22px 24px 18px;
  font-family: "SFMono-Regular", "Menlo", "Osaka-Mono", monospace; font-size: 14px; line-height: 1.7;
  border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.06);
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 16px 100%;
          mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 16px 100%;
}
.receipt__title { text-align: center; font-weight: 800; font-size: 15px; letter-spacing: .15em; margin: 0 0 4px; }
.receipt__date { text-align: center; font-size: 12px; color: var(--ink-sub); margin: 0 0 10px; }
.receipt dl { margin: 0; border-top: 1px dashed #bbb; padding-top: 8px; }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; }
.receipt dt { margin: 0; }
.receipt dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt .total { border-top: 1px dashed #bbb; margin-top: 8px; padding-top: 8px; font-weight: 800; font-size: 16px; }
.receipt .total dd { color: var(--red); }
.receipt__note { border-top: 1px dashed #bbb; margin: 10px 0 0; padding-top: 8px; font-size: 12px; color: var(--ink-sub); text-align: center; }

/* ---- 注記 ---- */
.disclaimer { margin: 32px 0 0; padding: 12px 14px; background: var(--bg-warm); border-radius: 8px; font-size: 13px; color: var(--ink-sub); }
.disclaimer p { margin: .3em 0; }
.next-up { margin: 28px 0 0; padding: 14px 16px; border: 2px dashed var(--line); border-radius: var(--radius); font-size: 15px; }
.next-up strong { color: var(--red); }

/* ---- トップページ ---- */
.hero { background: var(--bg-warm); border-bottom: 1px solid var(--line); }
.hero__inner { max-width: 1040px; margin: 0 auto; padding: 28px 16px 30px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.hero__title { font-size: 30px; line-height: 1.35; margin: 0 0 8px; font-weight: 900; }
.hero__title span { color: var(--red); }
.hero__catch { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.hero__lead { font-size: 14.5px; color: var(--ink-sub); margin: 0; }
.hero__cast { display: flex; gap: 8px; margin-top: 16px; }
.hero__cast img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); background: #fff; }
@media (max-width: 760px) { .hero__inner { grid-template-columns: 1fr; } .hero__title { font-size: 24px; } }

.scoreboard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 14px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.scoreboard__label { font-size: 12px; font-weight: 700; color: var(--ink-sub); margin: 0 0 10px; letter-spacing: .05em; }
.scoreboard__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.scoreboard__item b { display: block; font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.scoreboard__item small { font-size: 12px; color: var(--ink-sub); }
.scoreboard__item--money b { color: var(--red); }
.progress { margin-top: 14px; font-size: 13px; }
.progress__bar { height: 10px; background: #eee; border-radius: 999px; overflow: hidden; margin: 4px 0; }
.progress__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), #f08a4b); }
.progress__meta { display: flex; justify-content: space-between; color: var(--ink-sub); font-size: 12px; }

.section { max-width: 1040px; margin: 0 auto; padding: 8px 16px 0; }
.section h2 { font-size: 20px; margin: 36px 0 14px; display: flex; align-items: center; gap: 8px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); background: #fff; }
.card:hover { border-color: var(--red); }
.card__cat { font-size: 12px; font-weight: 700; color: var(--red); margin: 0; }
.card__title { font-size: 16px; font-weight: 800; line-height: 1.5; margin: 4px 0 6px; }
.card__desc { font-size: 13px; color: var(--ink-sub); margin: 0; line-height: 1.7; }
.app-card__status { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #eee; color: var(--ink-sub); }
.app-card__status--paid { background: #fde8e3; color: var(--red); }
.app-card__stat { font-size: 13px; margin-top: 8px; color: var(--ink-sub); }
.app-card__stat b { color: var(--ink); }

.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cast__item { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cast__item img { width: 64px; height: 64px; border-radius: 50%; flex: 0 0 64px; }
.cast__item p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-sub); }
.cast__item strong { display: block; color: var(--ink); font-size: 15px; }
.cast-note { font-size: 12px; color: var(--ink-sub); margin: 10px 0 0; }

/* ---- アプリ画面のスクショ ---- */
.shot { margin: 18px 0 22px; text-align: center; }
.shot img { border: 1px solid var(--line); border-radius: 10px; max-height: 560px; width: auto; }
.shot figcaption { font-size: 12px; color: var(--ink-sub); margin-top: 6px; }

/* ---- 記事カード（大判サムネ） ---- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 16px 0 0; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.article-card a { display: block; color: var(--ink); text-decoration: none; }
.article-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.article-card__image img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--bg-warm); border-bottom: 1px solid var(--line); }
.article-card__body { padding: 14px 16px 16px; }
.article-card__cat { font-size: 11px; color: var(--red); font-weight: 700; letter-spacing: .04em; margin: 0 0 4px; }
.article-card__title { font-size: 15px; font-weight: 800; margin: 0 0 6px; line-height: 1.45; }
.article-card__desc { font-size: 13px; color: var(--ink-sub); margin: 0; line-height: 1.65; }
.article-card__date { font-size: 11px; color: #a0a4ae; margin: 8px 0 0; }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ---- お問い合わせフォーム（Googleフォームの埋め込み） ---- */
.form-embed { margin: 20px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.form-embed iframe { display: block; width: 100%; height: 900px; border: 0; }
@media (max-width: 600px) { .form-embed iframe { height: 1000px; } }
