/* 作り方のガイドページ（site/guide/*.html）の共通の見た目。色・書体は ../assets/tokens.css */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img, video { max-width: 100%; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }

header { border-bottom: var(--rule); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; max-width: var(--wrap); }
.logo img { height: 52px; width: auto; display: block; mix-blend-mode: multiply; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  background: var(--cta);
  color: #fff;
  white-space: nowrap;
}
.btn:hover { background: var(--cta-deep); }

main { padding: 36px 0 80px; }
.crumbs { font-size: 13px; color: var(--ink-faint); margin: 0 0 18px; }
.crumbs a { color: inherit; }
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4.2vw, 38px);
  line-height: 1.4;
  margin: 0 0 12px;
  word-break: auto-phrase;
}
.meta { font-size: 13px; color: var(--ink-faint); margin: 0 0 28px; }
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.45;
  margin: 56px 0 16px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
  word-break: auto-phrase;
}
h3 { font-size: var(--fs-h3); margin: 32px 0 8px; }
p, li { color: var(--ink); }
.soft { color: var(--ink-soft); }

/* 結論（最初に答えを書く） */
.answer {
  margin: 0 0 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--accent-wash);
  border-radius: var(--radius);
}
.answer p { margin: 0 0 8px; }
.answer p:last-child { margin: 0; }

figure { margin: 28px 0; }
figure video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #e9e2d3; border: var(--rule); border-radius: var(--radius-lg); }
/* 縦長（9:16）の動画は、PC で縦に大きくなりすぎないように幅を絞る */
figure.portrait video { aspect-ratio: 9 / 16; max-width: 340px; margin: 0 auto; }
figure.portrait figcaption { text-align: center; }
figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-faint); }

.toc { border: var(--rule); border-radius: var(--radius-lg); padding: 14px 20px; margin: 0 0 8px; }
.toc p { margin: 0 0 4px; font-weight: 700; font-size: 14px; }
.toc ol { margin: 0; padding-left: 1.4em; font-size: 15px; }

/* 比較表（狭い画面では横にスクロール） */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0 8px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; line-height: 1.6; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
thead th { background: var(--paper-deep); font-weight: 700; white-space: nowrap; }
tbody th { font-weight: 700; width: 24%; }
tbody td:nth-of-type(1) { white-space: nowrap; }
tr.ours th, tr.ours td { background: var(--accent-wash); }
.note { font-size: 13px; color: var(--ink-faint); }
/* スマホでは表をやめて、方法ごとのカードにする（横スクロールさせない） */
@media (max-width: 640px) {
  table { min-width: 0; }
  thead { display: none; }
  table, tbody, tr, th, td { display: block; width: 100%; }
  tbody tr { border: var(--rule); border-radius: var(--radius-lg); margin: 0 0 12px; overflow: hidden; }
  tbody th, tbody td { border: 0; white-space: normal; width: 100%; }
  tbody th { background: var(--paper-deep); font-size: 15px; }
  tr.ours th { background: var(--accent-wash); }
  tbody td { padding: 6px 12px; }
  tbody td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--ink-faint); }
  tbody td:last-child { padding-bottom: 12px; }
}

ol.steps { padding-left: 1.4em; }
ol.steps > li { margin: 0 0 14px; }
ol.steps b { font-weight: 700; }
/* 手順の画面のキャプチャー。Googleマップの画面は色や見た目を変えず、縮めるだけ */
figure.shot { margin: 12px 0 8px; }
figure.shot img { display: block; width: 100%; max-width: 390px; height: auto; border: var(--rule); border-radius: var(--radius); background: #fff; }

.cta-box {
  margin: 40px 0 0;
  padding: 26px 24px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  text-align: center;
}
.cta-box p { color: #cdd8ea; margin: 0 0 16px; }
.cta-box .btn { font-size: 16px; padding: 14px 26px; }

.faq { border-top: var(--rule); }
details { border-bottom: var(--rule); padding: 4px 0; }
summary { font-weight: 700; cursor: pointer; padding: 14px 2px; }
details p { margin: 0 0 14px; color: var(--ink-soft); }

footer { background: var(--ink-deep); color: #a99f8f; font-size: 13px; padding: 36px 0; }
footer .wrap { max-width: var(--wrap); display: grid; gap: 10px; }
footer a { color: #c9c0b1; text-decoration: none; margin-right: 16px; }
footer a:hover { color: var(--paper); }
footer .tm { font-size: 12px; line-height: 1.7; color: #8f8676; margin: 0; }

/* ほかの作り方へのリンク */
.related { margin: 40px 0 0; padding: 18px 20px; border: var(--rule); border-radius: var(--radius-lg); }
.related p { margin: 0 0 6px; font-weight: 700; font-size: 14px; }
.related ul { margin: 0; padding-left: 1.2em; font-size: 15px; }
/* 作例をアプリで開くリンク */
.examples { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.examples a { display: inline-block; padding: 8px 14px; border: 1px solid var(--accent); border-radius: var(--radius); text-decoration: none; font-size: 14px; font-weight: 700; }
.examples a:hover { background: var(--accent-wash); }

/* 設定のガイド（settings.html） */
/* 見出しのすぐ下の「〇〇を上げると△△になる」の 1〜2 文（検索・AI の回答に引用されやすい単位） */
p.lead-answer { margin: 0 0 10px; font-weight: 600; }
h3[id] { scroll-margin-top: 16px; }
/* 比べの動画（同じルートで値だけ変えたものを縦に並べてある）。縦に長いので幅を絞る */
figure.compare video { aspect-ratio: auto; max-width: 560px; height: auto; margin: 0 auto; }
figure.compare figcaption { max-width: 560px; margin-left: auto; margin-right: auto; }
figure.compare.still img { display: block; width: 100%; height: auto; border: var(--rule); border-radius: var(--radius); }
figure.compare.portrait-still img { max-width: 240px; margin: 0 auto; }
figure.compare.portrait-still figcaption { text-align: center; }
.settings-table th a { white-space: nowrap; }

/* ── 旅のしおりの見た目（LP の案B にそろえる。2026-11-27 ユーザーが「下部ページもトップのデザインに合わせて」）──
   生成りの紙の地・破線の区切り・紙のカード・写真のように白い縁の動画・切符の形のボタン。文と並びは変えない */
body { background: #fbf7ee; }
header { background: #f6f1e6; border-bottom: 1px dashed #cdbf9f; }
header .btn { border-radius: 4px; }
.crumbs { color: #8a7f68; }
h2 { border-top: 1.5px dashed #b9aa86; }
.answer { background: #fffdf7; border: 1px solid #e2d6bb; border-left: 4px solid var(--accent); }
figure video { background: #e9e2d3; border: 8px solid #fff; border-radius: 3px; box-shadow: 0 14px 30px -16px rgba(70, 50, 20, 0.45); }
figure.shot img { border: 6px solid #fff; border-radius: 3px; box-shadow: 0 10px 24px -14px rgba(70, 50, 20, 0.45); }
.toc, .related { background: #fffdf7; border: 1px dashed #cdbf9f; }
th, td { border-color: #e2d6bb; }
table { background: #fffdf7; }
thead th { background: #f3ecdd; }
.faq { border-top: 1px dashed #cdbf9f; }
details { border-bottom: 1px dashed #cdbf9f; }
.examples a { background: #fffdf7; }
/* 中盤の「試す」の箱: 切り取り線つきの紺の券。ボタンは切符の形（左右の切り欠きと点線のミシン目） */
.cta-box { position: relative; border-radius: 4px; }
.cta-box::before { content: ''; position: absolute; left: 0; right: 0; top: -9px; height: 9px; background: radial-gradient(circle 5px at 8px 9px, var(--navy) 4px, transparent 5px) 0 0 / 16px 9px repeat-x; }
main .btn, .cta-box .btn {
  position: relative;
  padding-right: 38px;
  -webkit-mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}
main .btn::after, .cta-box .btn::after { content: ''; position: absolute; right: 18px; top: 8px; bottom: 8px; border-left: 2px dotted rgba(255, 255, 255, 0.6); }
@media (max-width: 640px) {
  tbody tr { background: #fffdf7; border-color: #e2d6bb; }
  figure video { border-width: 5px; }
}
