:root {
  --blue: #0078d1;
  --navy: #172b57;
  --text: #333333;
  --muted: #6f7785;
  --line: #e4e6ea;
  --white: #ffffff;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  line-height: 2;
}

a {
  color: var(--navy);
  text-underline-offset: 3px;
}

a:hover { text-decoration-thickness: 2px; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

main { padding: 0 0 80px; }

.breadcrumb {
  padding: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  margin-right: 8px;
  color: #95a39b;
  content: ">";
}

.hero { padding: 48px 0 42px; }

.hero__panel {
  padding-left: 24px;
  border-left: 6px solid var(--blue);
}

.glossary-page h1,
.glossary-page h2,
.glossary-page h3,
.glossary-page strong,
.glossary-page b {
  font-weight: bold;
}

h1 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.45;
  letter-spacing: .01em;
}

.hero__lead {
  max-width: 880px;
  margin: 0;
  font-size: 16px;
}

.glossary-list {
  display: grid;
  gap: 28px;
}

.term-card {
  scroll-margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.term-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  background: #d8eefb;
}

.term-card__title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.term-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.4;
}

.reading {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.term-card__body { padding: 26px 30px; }

.term-card__body p {
  margin: 0;
  font-size: 16px;
}

.term-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 18px 30px 22px;
  border-top: 1px solid var(--line);
  background: #fafafa;
  font-size: 14px;
}

.meta-item {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.meta-label {
  color: var(--navy);
  font-weight: 800;
}

.meta-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-links a {
  padding: 2px 8px;
  border-radius: 2px;
  background: #eef0f3;
  text-decoration: none;
  transition: color .3s, background-color .3s;
}

.meta-links a:hover {
  color: var(--white);
  background: var(--blue);
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1120px); }
  .hero { padding-top: 28px; }
  .hero__panel { padding-left: 18px; }
  .term-card__header,
  .term-card__body,
  .term-card__meta {
    padding-right: 20px;
    padding-left: 20px;
  }
  .term-card h2 { font-size: 25px; }
}
