*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Helvetica, Arial, sans-serif; }
button, input, select, textarea { font-family: inherit; }
svg { max-width: 100%; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 2px solid #1D4A78; outline-offset: 3px; }
@media (max-width: 520px) {
  #site [style*="minmax(340px"], #site [style*="minmax(360px"], #site [style*="minmax(320px"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #site [style*="flex: 1 1 360px"], #site [style*="flex: 1 1 340px"] {
    min-width: 0 !important;
  }
}

.site-footer {
  margin-top: 32px;
  padding: 28px 0 32px;
  border-top: 1px solid #D6E2EE;
  color: #4B5D72;
  font-size: 14px;
}
.site-footer__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: 22px;
}
.site-footer nav,
.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.site-footer a {
  color: #1D4A78;
  text-decoration: none;
  text-underline-offset: 4px;
}
.site-footer a:hover,
.site-footer a:focus-visible { text-decoration: underline; }
.site-footer__brand {
  font-size: 20px;
  font-weight: 700;
}
@media (max-width: 600px) {
  .site-footer__main { flex-direction: column; }
}

.vol-two-cover {
  display: flex;
  width: min(168px, 100%);
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 148 / 210;
  margin: 0;
  padding: 12px;
  gap: 6px;
  border: 1px solid #78434b;
  background: #171316;
  color: #f3e8dd;
  text-align: center;
  container-type: inline-size;
}
.vol-two-cover img { display: block; width: 100%; height: auto; margin: 4px 0 8px; }
.vol-two-cover__brand { font-size: 6cqw; letter-spacing: 0.12em; }
.vol-two-cover__title { font-size: 12cqw; font-weight: 600; }
.vol-two-cover__subtitle { font-size: 7cqw; font-style: italic; }
.vol-two-cover__detail { font-size: 6cqw; }
.vol-two-cover-page { display: grid; place-items: center; padding: 24px; }
.vol-two-cover-page .vol-two-cover { width: min(100%, 592px); padding: clamp(16px, 6vw, 52px); }

.math-diagram {
  display: grid;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  margin-block: 4px;
  border: 1px solid #1D4A78;
  background: #FFFFFF;
  color: #13243A;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.math-diagram--9 {
  grid-template: repeat(9, 1fr) / repeat(9, 1fr);
  font-size: 10px;
}
.math-diagram--3 {
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  font-size: 19px;
}
.math-diagram span {
  display: grid;
  place-items: center;
  box-shadow: inset -1px -1px #D6E2EE;
}
.math-diagram .block-right { border-right: 1px solid #1D4A78; }
.math-diagram .block-bottom { border-bottom: 1px solid #1D4A78; }
.math-diagram .marked { background: #DCE8F3; color: #1D4A78; }

.matsusa-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.matsusa-topics a {
  padding: 12px 18px;
  border: 1px solid #A9BED3;
  border-radius: 999px;
  color: #1D4A78;
  text-decoration: none;
}
.matsusa-topics a:hover { text-decoration: underline; }
.matsusa-topics a[aria-current="page"] {
  background: #1D4A78;
  color: #FFFFFF;
}

.guide { background: #fff; color: #13243A; line-height: 1.6; }
.guide-wrap { width: min(100% - 40px, 1200px); margin-inline: auto; }
.guide-intro { max-width: 800px; padding: clamp(32px, 6vw, 72px) 0 28px; }
.guide-intro h1 { margin: 0; font-size: clamp(32px, 5vw, 58px); line-height: 1.08; }
.guide-intro p { margin: 14px 0 0; color: #4B5D72; font-size: 18px; }
.guide-topics,
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 16px; }
.guide-topics a {
  display: grid;
  align-content: start;
  gap: 4px;
  border: 1px solid #D6E2EE;
  padding: 16px 20px;
  color: #1D4A78;
  text-decoration: none;
}
.guide-topics a:hover,
.guide-topics a[aria-current="page"] { background: #EDF4FB; border-color: #A9BED3; }
.guide-topics span, .guide-meta { color: #4B5D72; font-size: 14px; }
.guide-reading { margin: 40px 0 64px; }
.guide-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.guide-card { border: 1px solid #D6E2EE; min-width: 0; }
.guide-card img, .guide-card__mark { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.guide-card img { display: block; object-fit: cover; }
.guide-card__mark { display: grid; place-items: center; background: #F3F7FB; color: #1D4A78; font-size: 40px; font-weight: 600; }
.guide-card__body { padding: 18px; }
.guide-card__body > * { margin: 0 0 8px; }
.guide-card a, .guide-crumb a, .guide-next a { color: #1D4A78; text-underline-offset: 3px; }
.guide-crumb ol { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 0; margin: 24px 0 0; list-style: none; font-size: 14px; }
.guide-crumb li + li::before { content: "/"; margin-right: 12px; color: #687F96; }
.guide-article { max-width: 740px; margin: 32px auto 64px; display: grid; gap: 18px; font-size: 17px; }
.guide-article > h1 { overflow-wrap: break-word; }
.guide-article figure img { display: block; width: 100%; height: 100%; object-fit: contain; }
.guide-next { border-top: 1px solid #D6E2EE; margin-top: 20px; }
