/* お受験せんせい 専用サイト（アプリの配色「画用紙とえんぴつ」：生成り・紺・くすんだテラコッタ） */
:root {
  --paper: #F5F1E7;
  --paper2: #EDE6D6;
  --card: #FFFDF8;
  --ink: #263A50;
  --ink2: #3E5268;
  --sub: #6B7480;
  --line: #E2D9C6;
  --terra: #B9765F;
  --terra-dark: #9C5E49;
  --sage: #8BA889;
  --blue: #6E8FB5;
  --pencil: #3D6FB6;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', 'Yu Gothic', 'Meiryo', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  letter-spacing: .04em;
  font-size: 16px;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-dark); }
h1, h2, h3 { line-height: 1.45; margin: 0; letter-spacing: .05em; font-feature-settings: "palt" 1; }
.nobr { white-space: nowrap; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* 頭 */
.top-bar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top-nav { display: flex; gap: 18px; font-size: 14px; }
.top-nav a { color: var(--ink2); text-decoration: none; }
.top-nav a:hover { color: var(--terra-dark); }
.brand, .top-nav a { white-space: nowrap; }
@media (max-width: 640px) { .top-nav .hide-sp { display: none; } .top-nav { gap: 14px; } }
@media (max-width: 420px) { .top-nav .hide-xs { display: none; } .brand { font-size: 16px; } }

/* ボタン */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 14px; text-decoration: none; font-weight: 700;
  font-size: 16px; line-height: 1.4; text-align: center; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; letter-spacing: .04em;
}
.btn small { font-weight: 500; font-size: 12.5px; opacity: .85; }
.btn-main { background: var(--ink); color: #fff; }
.btn-main:hover { background: #1a2a3b; }
.btn-terra { background: var(--terra); color: #fff; }
.btn-terra:hover { background: var(--terra-dark); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--paper2); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btns .btn { flex: 1 1 200px; }

/* 見出しの帯（下層の頁） */
.page-head { background: var(--paper2); padding: 40px 0 34px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 28px; }
.page-head p { margin: 6px 0 0; color: var(--sub); font-size: 15px; }
@media (max-width: 640px) { .page-head h1 { font-size: 23px; } }

/* 本文 */
.doc { padding: 36px 0 60px; }
.doc h2 { font-size: 21px; margin: 40px 0 14px; padding-left: 12px; border-left: 4px solid var(--terra); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 24px; }
.doc li { margin-bottom: 6px; }
.doc .muted { color: var(--sub); font-size: 14px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.faq-q { font-weight: 700; margin: 24px 0 4px !important; }
.faq-q::before { content: "Q. "; color: var(--terra); }
.updated { text-align: right; color: var(--sub); font-size: 14px; margin-top: 32px !important; }

/* 足 */
.foot { background: var(--ink); color: #c9d1da; font-size: 14px; padding: 34px 0 42px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .tm { font-size: 12.5px; color: #9eabb9; margin-top: 10px; line-height: 1.7; }
