*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  background-color: #ffffff;
  color: #333;
}

.wrapper {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}

/* ─── ヘッダー ─── */
.site-header {
  background-color: #7aacb8;
  padding: 24px 20px;
}

.site-header h1 {
  font-size: 2.2rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.05em;
}

.site-header h1 a {
  color: #fff;
  text-decoration: none;
}

/* ─── コンテンツ ─── */
.content {
  padding: 20px 24px;
}

.site-desc {
  margin-bottom: 24px;
  color: #555;
  line-height: 1.8;
}

/* ─── パンくず ─── */
.breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #c8882a;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ─── セクション見出し ─── */
.section-heading {
  background-color: #7aacb8;
  color: #fff;
  padding: 6px 12px;
  font-size: 0.95rem;
  font-weight: bold;
  margin: 20px -24px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-heading::before {
  content: "■";
}

/* ─── ページ見出し ─── */
.page-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 6px;
  border-bottom: 2px solid #7aacb8;
}

/* ─── リンク ─── */
a {
  color: #c8882a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ─── 用語集インデックス ─── */
.glossary-index {
  line-height: 2.2;
  font-size: 1rem;
}

.glossary-index a {
  display: inline-block;
  min-width: 1.8em;
  text-align: center;
}

.glossary-index .disabled {
  color: #aaa;
  display: inline-block;
  min-width: 1.8em;
  text-align: center;
}

/* ─── 定義リスト ─── */
.def-block {
  margin-bottom: 20px;
}

.def-block h3 {
  font-size: 0.95rem;
  font-weight: bold;
  color: #555;
  margin-bottom: 4px;
}

.def-block p {
  margin-left: 0;
}

/* ─── 試験内容テーブル ─── */
.exam-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.9rem;
}

.exam-table th,
.exam-table td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  text-align: left;
}

.exam-table th {
  background-color: #e8f3f6;
  font-weight: bold;
}

/* ─── マスコット ─── */
.mascot {
  font-family: monospace;
  white-space: pre;
  line-height: 1.4;
  font-size: 0.85rem;
  color: #666;
  margin: 8px 0;
}

/* ─── フォーム ─── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 4px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  padding: 8px 24px;
  background-color: #7aacb8;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #5e96a4;
}

/* ─── フッター ─── */
.site-footer {
  margin-top: 40px;
  padding: 16px 24px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.78rem;
  color: #888;
  line-height: 1.8;
}

.site-footer a {
  color: #888;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 6px;
}

.last-updated {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 24px;
}
