/* 見た目はアプリと同じトークン(設計書 v1 §7-4)。字は端末に入っている丸ゴシックだけを使う */
:root {
  --paper: #F8F3EC;
  --paper2: #F1E9DD;
  --card: #fff;
  --ink: #2E2823;
  --gray: #9B9086;
  --line: #E4DBCF;
  --orange: #E8813A;
  --tint: #FBEADB;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "ヒラギノ丸ゴ ProN W4",
    "Hiragino Sans", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .01em;
}
.col { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* 頭 */
.top { background: var(--paper2); border-bottom: 1px solid var(--line); }
.top .col { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; }
.mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: conic-gradient(var(--orange) 0 62%, var(--tint) 62% 100%);
  -webkit-mask: radial-gradient(circle, transparent 5.5px, #000 6px);
  mask: radial-gradient(circle, transparent 5.5px, #000 6px);
}
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--gray); text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.here { color: var(--ink); border-bottom-color: var(--orange); }

/* 本文 */
main { padding: 40px 0 56px; }
h1 { font-size: 27px; line-height: 1.5; margin: 0 0 6px; letter-spacing: .02em; }
.sub { margin: 0 0 24px; color: var(--gray); font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
h2 {
  font-size: 18px; line-height: 1.6; margin: 36px 0 12px; padding-left: 12px;
  border-left: 4px solid var(--orange); border-radius: 2px;
}
.card > h2:first-child { margin-top: 0; }
p { margin: 0 0 16px; }
p.meta { color: var(--gray); font-size: 14px; }
strong { font-weight: 700; }
ul, ol { margin: 0 0 16px; padding-left: 1.4em; }
ol li { padding-left: 2px; }
li { margin-bottom: 6px; }
a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: #C96A27; }
main a[href^="http"]::after { content: " ↗"; font-size: .85em; color: var(--gray); }

/* 表 */
.tablewrap { margin: 0 0 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 15px; line-height: 1.8; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--paper2); font-weight: 700; white-space: nowrap; }
td:first-child { white-space: nowrap; }
td:nth-child(2), td:nth-child(3) { white-space: normal; }

/* 脚 */
.foot { border-top: 1px solid var(--line); background: var(--paper2); padding: 24px 0 40px; color: var(--gray); font-size: 14px; }
.foot p { margin: 0 0 4px; }

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  main { padding: 28px 0 40px; }
  h1 { font-size: 23px; }
  .card { padding: 20px 16px; border-radius: 14px; }
  .nav { width: 100%; margin-left: 0; }
  /* 横に切れると読めないので、1 行ずつ積み上げる。見出しは各マスの上に出す */
  .tablewrap { overflow: visible; }
  table { display: block; min-width: 0; }
  table tr:first-child { display: none; }
  tr { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 4px 0; margin-bottom: 12px; }
  td { display: block; border: 0; padding: 6px 14px; white-space: normal; }
  td::before { content: attr(data-label); display: block; font-size: 12.5px; line-height: 1.6; color: var(--gray); }
  td:first-child { font-weight: 700; }
  td:first-child::before { display: none; }
}
