/* ガイド記事（静的HTML）の見た目。アプリの「このサイトについて」などと同じ生成りの紙の色にそろえる。 */
:root {
  --paper: #f3efe8;
  --ink: #1c1915;
  --muted: #6f675d;
  --line: #ddd5c8;
  --card: #fbf9f5;
  color-scheme: light;
  font-family: "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", sans-serif;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.g-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(16px, 4vw, 32px);
}
.g-brand img { height: 32px; width: auto; }
.g-open {
  font-size: 13px;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
}
.g-open:hover { background: var(--ink); color: var(--paper); }

.g-main {
  width: min(720px, 100% - 32px);
  margin: 24px auto 0;
}
.g-crumbs { display: flex; gap: 8px; font-size: 12px; color: var(--muted); }
.g-crumbs a { text-decoration: none; }
.g-crumbs a:hover { text-decoration: underline; }

h1 {
  margin: 16px 0 0;
  font-size: clamp(22px, 4.6vw, 30px);
  line-height: 1.45;
  font-weight: 600;
}
.g-date { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.g-lead { font-size: 15px; line-height: 1.8; margin: 16px 0 0; }

.g-hero { margin: 24px 0 0; }
.g-hero img { width: 100%; border-radius: 12px; }
.g-hero figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }

.g-prose { font-size: 16px; line-height: 1.9; }
.g-prose h2 {
  margin: 48px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
}
.g-prose p { margin: 16px 0; }
.g-prose ul, .g-prose ol { padding-left: 1.4em; margin: 16px 0; }
.g-prose li { margin: 6px 0; }
.g-prose a { text-underline-offset: 3px; }
.g-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
  display: block;
  overflow-x: auto;
}
.g-prose th, .g-prose td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px 10px 0;
  text-align: left;
  vertical-align: top;
}
.g-prose th { font-weight: 600; white-space: nowrap; }
.g-prose td:first-child { min-width: 5.5em; }

.g-cta {
  margin: 48px 0 0;
  padding: 24px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
}
.g-cta p { margin: 0 0 12px; font-size: 14px; line-height: 1.8; }
.g-cta .g-cta-title { font-size: 18px; font-weight: 600; line-height: 1.5; }
.g-button {
  display: inline-block;
  margin-top: 4px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.g-button:hover { opacity: 0.85; }

.g-faq, .g-sources, .g-related { margin-top: 48px; }
.g-faq h2, .g-sources h2, .g-related h2 { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.g-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.g-faq summary { cursor: pointer; font-weight: 600; font-size: 15px; line-height: 1.6; }
.g-faq details p { margin: 10px 0 0; font-size: 15px; line-height: 1.8; }
.g-sources ul, .g-related ul { padding-left: 1.2em; margin: 0; }
.g-sources li, .g-related li { margin: 8px 0; font-size: 14px; line-height: 1.6; }
.g-sources p { font-size: 13px; color: var(--muted); line-height: 1.7; }

.g-cards {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}
.g-cards a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
}
.g-cards a:hover { border-color: var(--ink); }
.g-cards img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.g-card-title { padding: 14px 16px 0; font-weight: 600; font-size: 15px; line-height: 1.55; }
.g-card-desc { padding: 8px 16px 16px; font-size: 13px; line-height: 1.7; color: var(--muted); }

.site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 64px auto 32px;
  padding: 0 16px;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.site-links a { text-decoration: none; opacity: 0.62; }
.site-links a:hover, .site-links a[aria-current='page'] { opacity: 1; }
.site-version { opacity: 0.62; }
