/* Berton Report
   色：霧の灰緑、濃い緑の文字、煉瓦色の差し色、淡い金の光
   書体：欧文は細い大文字（Cormorant）、和文は明朝（Zen Old Mincho）、小さい文字はゴシック（Noto Sans JP） */

:root {
  --bg: #EEF0ED;
  --ink: #20302B;
  --ink-head: #1B2A25;
  --ink-2: #3F4F49;
  --label: #4A645A;
  --brick: #9A4A22;
  --brick-dark: #7A3413;
  --gold-ink: #6A3E12;
  --rule: #C3CBC6;
  --block: #E0E5E1;
  --foot-bg: #20302B;
  --foot-ink: #D3DAD5;
  --latin: 'Cormorant', 'Times New Roman', serif;
  --mincho: 'Zen Old Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --gothic: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 18px;
  line-height: 2.05;
}
p, ol, ul, h1, h2, h3, table, pre { margin: 0; }
a { color: var(--brick); }
a:hover { color: var(--gold-ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }

/* 欧文の見出し：細い大文字、広い字間 */
.latin {
  font-family: var(--latin);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ---------- 上の帯 ---------- */
.site-header {
  color: var(--ink-head);
  background: linear-gradient(180deg, #C6CECA 0%, #A9B7B0 55%, var(--bg) 100%);
}
.site-header.is-top {
  background: linear-gradient(180deg, #C6CECA 0%, #A9B7B0 38%, #8A9C93 72%, var(--bg) 100%);
}
.bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 32px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.bar a { color: var(--ink-head); text-decoration: none; }
.bar a:hover { color: var(--brick); }
.brand { font-family: var(--latin); font-weight: 300; text-transform: uppercase; font-size: 20px; letter-spacing: 0.08em; }
.bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: var(--gothic);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.bar nav a { padding: 10px 0; }

/* ---------- トップ ---------- */
.hero { max-width: 1080px; margin: 0 auto; padding: 210px 32px 0; text-align: center; }
.hero h1 {
  font-family: var(--latin);
  font-weight: 300;
  text-transform: uppercase;
  font-size: min(84px, calc((100vw - 64px) / 11.5));
  line-height: 1.1;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
/* 光は「Berton」の文字に固定する。画面の幅が変わっても位置がずれない */
.glow { position: relative; display: inline-block; }
.glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.6em;
  height: 4.6em;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #F8EAB6 0%, rgba(240,219,153,0.8) 30%, rgba(240,219,153,0) 68%);
  pointer-events: none;
}
.glow > span, .hero h1 > span:not(.glow) { position: relative; }
.tagline { margin-top: 22px; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.4; color: var(--gold-ink); }
.subtitle { max-width: 1080px; margin: 0 auto; padding: 170px 32px 56px; text-align: center; font-size: clamp(16px, 1.8vw, 19px); letter-spacing: 0.14em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.home { font-size: 16px; line-height: 2; font-weight: 400; }
.section-label { font-size: 17px; letter-spacing: 0.22em; color: var(--label); }
.section-body { margin-top: 20px; border-top: 1px solid var(--rule); }
.split { padding-top: 40px; display: flex; flex-wrap: wrap; gap: 40px; }
.split .side { flex: 0 0 auto; min-width: 160px; }
.split .side.wide { flex-basis: 260px; }
.split .main { flex: 999 1 480px; min-width: 0; }
.take-big { white-space: nowrap; font-size: 56px; line-height: 1; font-weight: 400; color: var(--brick); }
.small { font-family: var(--gothic); font-weight: 400; font-size: 13px; color: var(--label); }
.home h2 { font-weight: 500; font-size: clamp(23px, 2.8vw, 32px); line-height: 1.6; }
.home h2 a { color: inherit; text-decoration: none; }
.home h2 a:hover { color: var(--brick); }
.muted { color: var(--ink-2); }
.read-more {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
}
.series { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 48px; }
.series > div { padding: 40px 0; }
.series h3 { font-size: 32px; line-height: 1.15; }
.series p { margin-top: 16px; color: var(--ink-2); }
.credit-role { font-family: var(--gothic); font-weight: 400; font-size: 13px; letter-spacing: 0.14em; color: var(--label); }
.credit-name { margin-top: 4px; font-size: 42px; line-height: 1.1; font-weight: 400; }

/* ---------- 記事 ---------- */
.article-head { max-width: 760px; margin: 0 auto; padding: 110px 32px 64px; }
.take { font-size: 44px; line-height: 1; color: var(--brick-dark); }
.article-head h1 { margin-top: 28px; font-weight: 500; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.55; }
.byline { margin-top: 28px; font-family: var(--gothic); font-weight: 400; font-size: 14px; letter-spacing: 0.06em; color: var(--ink-2); }

.article { max-width: 760px; margin: 0 auto; padding: 0 32px 96px; }
.article p + p, .article .legend + p, .article ul + p, .article ol + p, .article .table-wrap + p, .article .prompt + p { margin-top: 24px; }
.article h2 {
  margin-top: 88px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.6;
}
.article h2 + p, .article h3 + p { margin-top: 20px; }
.article h3 { margin-top: 56px; font-weight: 600; font-size: 20px; line-height: 1.7; }
.article ol, .article ul { margin-top: 12px; padding-left: 1.4em; }
.article li + li { margin-top: 8px; }
.article strong { font-weight: 600; }

/* 3つの印：四角で囲まない。小さな文字に細い下線だけ */
.mark {
  display: inline-block;
  margin-right: 16px;
  padding-bottom: 1px;
  border-bottom: 1px solid currentColor;
  font-family: var(--gothic);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.2em;
  white-space: nowrap;
}
.mark.tried { color: var(--ink); }
.mark.spec { color: var(--label); }
.mark.next { color: var(--brick-dark); }
td .mark { margin-right: 0; }
.legend { margin-top: 20px; display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: start; }
.legend .mark { margin: 9px 0 0; }

.note { font-family: var(--gothic); font-weight: 400; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.article .table-wrap + p.note { margin-top: 16px; }

.table-wrap { margin-top: 28px; overflow-x: auto; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-family: var(--gothic); font-weight: 400; font-size: 15px; line-height: 1.8; }
th { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--ink); font-weight: 500; }
td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th:last-child, td:last-child { padding-right: 0; }
td.blank { color: var(--label); }

/* コピーできる指示文。ここだけ枠を残す */
.prompt { margin-top: 24px; background: var(--block); }
.prompt-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 20px; border-bottom: 1px solid var(--rule); }
.prompt-bar span { font-family: var(--gothic); font-weight: 400; font-size: 13px; letter-spacing: 0.08em; color: var(--ink-2); }
.prompt-bar button {
  min-height: 44px;
  padding: 0 18px;
  background: transparent;
  border: 0;
  font-family: var(--gothic);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.prompt-bar button:hover { color: var(--brick); }
.prompt pre { padding: 20px; overflow-x: auto; white-space: pre-wrap; font-family: var(--mono); font-weight: 400; font-size: 14px; line-height: 1.9; }

.coming { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--brick); }
.coming .latin { font-size: 26px; line-height: 1.2; color: var(--brick-dark); }
.coming ul { margin-top: 12px; }

.credits { margin-top: 88px; padding-top: 28px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; }
.credits .name { font-size: 34px; line-height: 1.1; }
.credits .bio { flex: 1 1 360px; font-size: 15px; color: var(--ink-2); }

/* ---------- 下の帯 ---------- */
.site-footer { background: var(--foot-bg); color: var(--foot-ink); }
.site-footer .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--gothic);
  font-weight: 400;
  font-size: 13px;
  line-height: 2;
}
.site-footer p { max-width: 560px; }
.site-footer a { color: var(--foot-ink); }
.site-footer .brand { font-size: 16px; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { padding-top: 140px; }
  .hero h1 { font-size: clamp(30px, 9vw, 44px); white-space: normal; }
  .subtitle { padding-top: 120px; }
  .article-head { padding-top: 72px; }
  .bar, .wrap, .hero, .subtitle, .article-head, .article { padding-left: 22px; padding-right: 22px; }
  .site-footer .inner { padding-left: 22px; padding-right: 22px; }
}

/* ---------- データのページ（料金表・変更履歴） ---------- */
.series h3 a { color: inherit; text-decoration: none; }
.series h3 a:hover { color: var(--brick); }
.series .small { margin-top: 12px; }
td a { color: var(--ink); }
td a:hover { color: var(--brick); }

.article .changes { list-style: none; margin-top: 20px; padding-left: 0; }
.changes > li { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.changes > li + li { margin-top: 0; }
.changes p + p { margin-top: 8px; }
.change-meta { font-family: var(--gothic); font-weight: 400; font-size: 13px; letter-spacing: 0.06em; color: var(--label); }

/* 表の多いページは本文を広げる */
.article.wide { max-width: 1080px; }
.article.wide > p, .article.wide > ul, .article.wide > h2, .article.wide > .credits { max-width: 696px; margin-left: auto; margin-right: auto; }

/* ---------- 計算機 ---------- */
.calc { margin: 32px auto 0; max-width: 696px; display: flex; flex-wrap: wrap; gap: 20px 40px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-family: var(--gothic); font-weight: 400; font-size: 14px; color: var(--ink-2); }
.calc input { width: 140px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--rule); background: #fff; font-family: var(--gothic); font-size: 18px; color: var(--ink); }
.calc input:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }

/* ---------- 英語のページ ---------- */
.en { font-family: var(--gothic); font-weight: 400; }
.en .article-head h1, .en .article h2 { font-family: var(--latin); font-weight: 400; letter-spacing: 0.02em; }
.en .article h2 { font-size: 30px; }

@media (max-width: 600px) {
  .bar nav { gap: 4px 20px; }
  .bar nav a { padding: 6px 0; }
}
