/* 規約・権利表記のページ（terms・privacy・tokushoho・guidelines・licenses）の見た目（2026-10-20 作者の要望：アプリ本体に合わせる）。
   色は src/theme.css・src/theme.ts と同じ（原稿の紙の地・一段明るい紙・インク・朱）。暗い表示の設定でも、アプリと同じく明るいまま */
:root {
  --mw-paper: #faf8f5;
  --mw-sheet: #ffffff;
  --mw-ink: #1a202c;
  --mw-dim: #4a5568;
  --mw-shu: #d9381e;
  --mw-shu-dark: #b82b15;
  --mw-line: #e8e2d5;
  --mw-soft: #f8f1e4;
  color-scheme: light;
}

body {
  margin: 0;
  background-color: var(--mw-paper);
  /* 紙の繊維のような、ごく薄いむら（アプリと同じ） */
  background-image:
    radial-gradient(rgba(120, 95, 60, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(120, 95, 60, 0.035) 1px, transparent 1px);
  background-size: 7px 7px, 13px 13px;
  background-position: 0 0, 3px 5px;
  color: var(--mw-ink);
  font-family: "Yu Gothic UI", "Hiragino Sans", "Meiryo", system-ui, sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

/* 上の帯：一段明るい紙に、インクの細い線（アプリの上の帯と同じ） */
header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 252, 245, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--mw-line);
  box-shadow: 0 1px 0 rgba(47, 58, 72, 0.06);
}
header .bar {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
header a.brand {
  margin-right: auto;
  display: flex;
  align-items: center;
}
header a.brand img {
  display: block;
  height: 30px;
  width: auto;
}
header a:not(.brand) {
  color: var(--mw-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
header a:not(.brand):hover {
  color: var(--mw-shu);
}

/* 本文：一段明るい紙のカード */
main {
  max-width: 920px;
  margin: 24px auto 40px;
  padding: 28px clamp(16px, 4vw, 44px) 40px;
  background: var(--mw-sheet);
  border: 1px solid var(--mw-line);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(47, 58, 72, 0.04), 0 2px 8px rgba(80, 60, 30, 0.04);
  box-sizing: border-box;
}
@media (max-width: 767px) {
  main {
    margin: 12px 8px 24px;
    border-radius: 10px;
  }
}

a {
  color: var(--mw-shu);
}
a:hover {
  color: var(--mw-shu-dark);
}

/* 見出し：ページの見出しの下に、赤ペンの短い線（アプリと同じ） */
h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 4px 0 6px;
  padding-bottom: 8px;
  position: relative;
}
h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--mw-shu);
}
h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 36px 0 10px;
  padding: 0 0 6px 12px;
  border-bottom: 1px solid var(--mw-line);
  border-left: 4px solid var(--mw-ink);
  line-height: 1.5;
}
h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 22px 0 6px;
}
.date {
  color: var(--mw-dim);
  font-size: 14px;
}

/* 表 */
.wrap,
.table {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  margin: 8px 0;
}
th,
td {
  border: 1px solid var(--mw-line);
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
  /* 長いメールアドレスなどで、スマホの幅をはみ出さない */
  overflow-wrap: anywhere;
}
th {
  background: var(--mw-soft);
  white-space: nowrap;
  font-weight: 700;
}

/* 補足の枠 */
.note,
.en {
  background: var(--mw-soft);
  border: 1px solid var(--mw-line);
  border-radius: 8px;
  padding: 4px 16px;
  margin: 12px 0;
  font-size: 14px;
}
.en {
  margin-top: 40px;
  padding-bottom: 12px;
}
/* 下のリンク */
footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--mw-dim);
  font-size: 13px;
}
footer a {
  color: var(--mw-dim);
  text-decoration: none;
}
footer a:hover {
  color: var(--mw-shu);
}

/* スマホ：上の帯はロゴだけにする（リンクは下にまとめて出す。帯が3段になって本文が狭くなったため） */
@media (max-width: 767px) {
  header {
    position: static;
  }
  header a:not(.brand) {
    display: none;
  }
}
