/* 紹介のサイトの見た目。白い地・黒い太い字の見出し・差し色は1つ（--accent）。明るい色の形だけ。
   字体は端末のゴシック体だけ（明朝体を使わない。外の字体を読まない）。 */
:root {
  --ink: #111111;
  --sub: #3d3d3d;
  --line: #d9d9d9;
  --soft: #f4f4f2;
  --bg: #ffffff;
  --accent: #b4234a;
  --accent-soft: #fbf1f4;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  line-break: strict;
  overflow-wrap: anywhere;
  word-break: normal;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { display: block; max-width: 680px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { font-weight: 800; line-height: 1.4; letter-spacing: 0.01em; margin: 0; }
h1 { font-size: 1.625rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

/* 頭 */
.site-head { border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; flex-direction: column; justify-content: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand-name { font-weight: 800; font-size: 1.0625rem; line-height: 1.3; }
.brand-tag { font-size: 0.8125rem; color: var(--sub); line-height: 1.4; }
.head-nav { display: flex; gap: 4px; }
.head-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--ink); font-weight: 700; font-size: 0.9375rem; text-decoration: none; }

/* 運営が分かる1行（小さすぎる字・薄い色にしない） */
.operator { margin: 0; background: var(--soft); border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.9375rem; line-height: 1.7; }
.operator .wrap { padding-top: 10px; padding-bottom: 10px; }

main.wrap { padding-top: 28px; padding-bottom: 48px; }

.intro h1 { margin-bottom: 12px; }
.lead { color: var(--ink); }

.block { margin-top: 40px; }
.block > h2 { margin-bottom: 14px; }

/* 記事のカード */
.cards { display: grid; gap: 12px; }
.card { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; min-height: 44px; }
.card-title { display: block; font-weight: 800; font-size: 1.0625rem; line-height: 1.5; }
.card-desc { display: block; margin-top: 6px; color: var(--sub); font-size: 0.9375rem; line-height: 1.7; }
.card-date { display: block; margin-top: 8px; color: var(--sub); font-size: 0.875rem; }
.more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* 自分たちのアプリの枠（ほかの紹介とは、見た目ではっきり別にする） */
.own { margin: 40px 0 0; padding: 20px 18px 18px; border: 2px solid var(--accent); border-radius: 16px; background: var(--accent-soft); }
.block > .own:first-of-type { margin-top: 0; }
.pr-label { display: inline-block; margin: 0 0 12px; padding: 2px 10px; border-radius: 6px; background: var(--accent); color: #ffffff; font-size: 1rem; font-weight: 800; line-height: 1.7; }
.own-title { font-size: 1.3rem; margin-bottom: 12px; }
.own-title + .own-sub { margin-top: -10px; }
.own-sub { margin: 2px 0 14px; color: var(--sub); font-weight: 700; font-size: 0.9375rem; }
.own .facts { background: var(--bg); }
.own .facts > div { grid-template-columns: 1fr; }
.own .facts dt { padding: 8px 12px 4px; }
.own .facts dd { padding: 4px 12px 10px; }
.button { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 18px; padding: 10px 16px; border-radius: 12px; background: var(--accent); color: #ffffff; font-weight: 800; font-size: 1.0625rem; text-align: center; text-decoration: none; }
.note18 { margin: 12px 0 0; font-size: 0.9375rem; color: var(--ink); }

/* 事実の欄 */
.facts { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 9.5em 1fr; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { padding: 10px 12px; background: var(--soft); font-weight: 700; font-size: 0.9375rem; }
.facts dd { margin: 0; padding: 10px 12px; }

/* 記事 */
.crumbs ol { display: flex; flex-wrap: wrap; margin: 0 0 12px; padding: 0; list-style: none; font-size: 0.875rem; color: var(--sub); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "›"; padding: 0 6px; color: var(--sub); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs li[aria-current] { padding: 10px 0; line-height: 1.5; }
.guide h1 { margin-bottom: 8px; }
.dates { color: var(--sub); font-size: 0.875rem; }
.dates .sep { padding: 0 4px; }

.headbox { margin: 20px 0 28px; padding: 16px 16px 4px; border: 1px solid var(--ink); border-radius: 12px; }
.headbox h2 { font-size: 1.0625rem; margin-bottom: 8px; }
.headbox ul { margin: 0 0 12px; padding-left: 1.2em; }
.headbox li { margin-bottom: 6px; }

.lead-block { margin-top: 8px; }

/* 早見の表（幅 390px でも、ページを横にはみ出させない。はみ出すときは表の中だけで横に送る） */
.quick-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.quick { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.6; }
.quick th, .quick td { padding: 10px 8px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.quick thead th { border-top: 0; background: var(--soft); font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.quick tbody th { width: 34%; font-weight: 700; }
.quick tbody th a { color: var(--ink); }
.order { margin-top: 12px; }

/* スマホの幅では、表の1行を、名前と4つの欄の小さな囲みにする（列がつぶれて、字がたてに並ぶのを防ぐ） */
@media (max-width: 560px) {
  .quick thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .quick, .quick tbody, .quick th, .quick td { display: block; width: auto; }
  /* 1件＝名前・確かめ方の札・4つの欄（2列×2行）。たてに長くなりすぎないように */
  .quick tbody tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 2px; padding: 12px 12px 10px; border-top: 1px solid var(--line); }
  .quick tbody tr:first-child { border-top: 0; }
  .quick tbody th { grid-column: 1 / -1; width: auto; padding: 0; border: 0; font-size: 1rem; }
  .quick tbody td { padding: 2px 0; border: 0; }
  .quick tbody td::before { content: attr(data-label); display: block; color: var(--sub); font-weight: 700; font-size: 0.75rem; line-height: 1.5; }
  .quick tbody td.method { grid-column: 1 / -1; padding: 2px 0 6px; }
  .quick tbody td.method::before { content: none; }
  .quick tbody td.method span { display: inline-block; padding: 1px 8px; border: 1px solid var(--ink); border-radius: 999px; font-size: 0.8125rem; line-height: 1.6; }
  .quick tbody td.method-mention span { border-style: dashed; border-color: #7a7a7a; }
}

.quick-note, .time-note { margin: 12px 0 0; }
.quick .method-item { font-weight: 700; }
.quick .method-mention { color: var(--sub); }

/* 2つの段。1段め（最後まで操作して確かめた物）と、2段め（公式サイトの表記だけの定番の物）を、見た目で分ける */
.tier { margin-top: 48px; }
.tier > h2 { padding-bottom: 8px; border-bottom: 3px solid var(--ink); }
.tier-lead { margin-top: 14px; }

.item { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.tier > .item:first-of-type { border-top: 0; padding-top: 8px; }
.item > h3, .mention > h3 { font-size: 1.2rem; margin-bottom: 14px; }
.item h4, .mention h4, .closing h4, .lead-block h4 { font-size: 1.05rem; margin: 24px 0 8px; }

.mention { margin-top: 24px; padding: 18px 16px 4px; border: 1px dashed #7a7a7a; border-radius: 14px; background: #fafaf8; scroll-margin-top: 12px; }
.mention-facts { margin-bottom: 16px; }
.source-label { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border: 1px solid #7a7a7a; border-radius: 6px; background: #ececea; font-size: 0.9375rem; font-weight: 700; line-height: 1.7; }
.source-label a { color: var(--ink); }
.mention .facts { background: var(--bg); }

/* 画面の写し（JS なしで、横に送れる並び） */
.shots-fig { margin: 0 0 20px; }
.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.shots img { flex: 0 0 auto; width: 220px; border: 1px solid var(--line); border-radius: 14px; scroll-snap-align: start; }
.shots-fig figcaption { margin-top: 6px; color: var(--sub); font-size: 0.875rem; }

.quote { margin: 0 0 1em; }
.quote blockquote { margin: 0; padding: 10px 14px; border-left: 4px solid var(--line); background: var(--soft); }
.quote blockquote p { margin: 0; }
.quote figcaption { margin-top: 4px; color: var(--sub); font-size: 0.875rem; }

.research ul { margin: 0 0 1em; padding-left: 1.2em; }

/* 文書のページ */
.doc h1 { margin-bottom: 16px; }
.doc .block { margin-top: 32px; }
.doc .block > h2 { margin-bottom: 8px; }
.signature { margin-top: 24px; color: var(--sub); }

/* 足 */
.site-foot { border-top: 1px solid var(--line); background: var(--soft); padding: 16px 0 28px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 0.9375rem; }
.foot-op { margin: 8px 0 0; font-size: 0.9375rem; color: var(--ink); }
