:root {
  --text: #37352f;
  --muted: #787774;
  --line: #e9e9e7;
  --card: #f7f6f3;
  --accent: #0b6e99;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.cover { height: 30vh; min-height: 160px; max-height: 280px; background: var(--card) center / cover no-repeat; }
.cover.none { height: 72px; min-height: 0; background: none; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px 64px; }
.crumb { padding-top: 20px; font-size: 14px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.page-icon { display: block; width: 78px; height: 78px; margin-top: -39px; font-size: 64px; line-height: 78px; }
img.page-icon { border-radius: 6px; }
.cover.none + .wrap .page-icon { margin-top: 0; }

h1 { font-size: 2.2rem; line-height: 1.25; margin: 12px 0 20px; }
h2 { font-size: 1.5rem; line-height: 1.35; margin: 2em 0 0.4em; }
h3 { font-size: 1.15rem; line-height: 1.4; margin: 1.8em 0 0.4em; }
p { margin: 0.6em 0; }
ul, ol { margin: 0.4em 0; padding-left: 1.6em; }
li { margin: 0.25em 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
blockquote { margin: 16px 0; padding: 2px 16px; border-left: 3px solid var(--text); }
.plain { list-style: none; padding-left: 0; }
.center { text-align: center; }

.nav { display: grid; gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.nav a, .card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 6px;
  background: var(--card); color: var(--text);
  text-decoration: none; font-weight: 600;
}
.nav a:hover, a.card:hover { background: #efeeea; }
.card { font-weight: 400; align-items: flex-start; }
.card .emoji, .nav .emoji { font-size: 1.3em; line-height: 1.3; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.person { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; margin: 20px 0; }
.person img { border-radius: 4px; }
.role { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

details { margin: 16px 0; }
summary { cursor: pointer; font-weight: 600; }
details > div { padding: 4px 0 4px 20px; }

.button {
  display: inline-block; margin: 12px 0; padding: 12px 22px; border-radius: 6px;
  background: var(--text); color: #fff; text-decoration: none; font-weight: 600;
}
.button:hover { opacity: 0.88; }

.table-scroll { overflow-x: auto; margin: 16px 0 28px; }
.fee { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; font-size: 14px; line-height: 1.45; text-align: center; }
.fee th, .fee td { padding: 12px 8px; }
.fee th { background: #36454f; color: #fff; font-weight: 700; }
.fee td { background: #ededed; }
.fee td.blank { background: none; }

footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  .cols, .person { grid-template-columns: 1fr; }
  .person img { max-width: 160px; }
}
