/* ==========================================================================
   読めるページ（guide/*.html・about・privacy・terms・contact）のスタイル。
   アプリ本体と同じステッカー調。tools/build-pages.mjs が書き出すHTML専用。
   ========================================================================== */

:root {
  --cream: #FFF4DA;
  --ink:   #2A1708;
  --muted: #5A4330;
  --white: #FFFFFF;
  --beer:  #FFC72C;

  --line: 3px solid var(--ink);
  --drop: 4px 4px 0 var(--ink);

  --display: 'Dela Gothic One', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --body: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN',
          'Yu Gothic UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- 枠 */

.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 760px; margin: 0 auto; padding: 14px 16px;
}
.site-head__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 18px; text-decoration: none;
}
.site-head__brand img { display: block; border-radius: 8px; }
.site-head__nav { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 700; }
.site-head__nav a { text-decoration: none; }
.site-head__play {
  background: var(--beer); border: var(--line); border-radius: 999px;
  padding: 4px 14px; box-shadow: 3px 3px 0 var(--ink);
}

.crumbs {
  max-width: 760px; margin: 0 auto; padding: 0 16px;
  font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px;
}

.doc { max-width: 760px; margin: 0 auto; padding: 16px 16px 48px; }

.site-foot {
  border-top: var(--line); background: var(--white);
  padding: 24px 16px 32px; font-size: 13px; color: var(--muted); text-align: center;
}
.site-foot nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  margin-bottom: 12px; font-weight: 700; color: var(--ink);
}

/* ------------------------------------------------------------- 本文 */

.eyebrow { font-size: 13px; font-weight: 800; color: var(--muted); margin-top: 8px; }

h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(24px, 6vw, 34px); line-height: 1.35;
  margin: 4px 0 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
h2 {
  font-family: var(--display); font-weight: 400; font-size: 20px;
  margin: 36px 0 12px; padding-bottom: 6px; border-bottom: var(--line);
}
h3 { font-size: 17px; font-weight: 800; }
p + p { margin-top: 12px; }

.mark {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border: var(--line); border-radius: 14px;
  background: var(--beer); box-shadow: var(--drop); font-size: 24px;
}

.lead { font-size: 17px; }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 12px;
}
.facts div {
  background: var(--white); border: var(--line); border-radius: 14px;
  padding: 10px 12px; box-shadow: var(--drop);
}
.facts dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.facts dd { font-weight: 800; }

.tags { font-size: 14px; color: var(--muted); }
.tags a {
  display: inline-block; margin: 4px 6px 0 0; padding: 0 10px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--white);
  color: var(--ink); font-weight: 700; text-decoration: none;
}

.steps { padding-left: 1.4em; }
.steps li + li, .tips li + li { margin-top: 8px; }
.tips { padding-left: 1.2em; }

.faq dt { font-weight: 800; margin-top: 14px; }
.faq dt::before { content: 'Q. '; }
.faq dd { margin-top: 4px; }
.faq dd::before { content: 'A. '; font-weight: 800; }

.cta, .mail { margin: 32px 0 8px; text-align: center; }
.btn {
  display: inline-block; background: var(--beer); border: var(--line); border-radius: 18px;
  padding: 12px 24px; box-shadow: var(--drop);
  font-family: var(--display); font-size: 18px; text-decoration: none;
  word-break: break-all;
}
.btn:active { transform: translate(4px, 4px); box-shadow: none; }

/* --------------------------------------------------------- カード類 */

.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card {
  display: flex; align-items: center; gap: 12px; height: 100%;
  background: var(--white); border: var(--line); border-radius: 16px;
  padding: 10px 12px; box-shadow: var(--drop); text-decoration: none;
}
.card__mark {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px;
  border: 2px solid var(--ink); border-radius: 10px; background: var(--beer); font-size: 18px;
}
.card__name { display: block; font-weight: 800; }
.card__line { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }

.scenes { list-style: none; display: grid; gap: 10px; }
.scenes a {
  display: block; background: var(--white); border: var(--line); border-radius: 16px;
  padding: 12px 14px; box-shadow: var(--drop); text-decoration: none;
}
.scenes__name { display: block; font-family: var(--display); font-size: 17px; }
.scenes__line { display: block; font-size: 13px; color: var(--muted); }

.picks { list-style: none; }
.picks li { padding: 14px 0; border-bottom: 2px dashed rgba(42, 23, 8, .25); }
.picks h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.picks h3 span { font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.picks p { margin-top: 4px; font-size: 15px; }

.info { width: 100%; border-collapse: collapse; background: var(--white); border: var(--line); }
.info th, .info td { text-align: left; padding: 10px 12px; border-bottom: 2px solid rgba(42, 23, 8, .15); vertical-align: top; }
.info th { width: 8em; font-size: 14px; color: var(--muted); }

.dated { margin-top: 32px; font-size: 14px; color: var(--muted); }

@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:last-child { grid-column: span 2; }
  .site-head__nav a:not(.site-head__play) { display: none; }
}
