/* Glossary (用語集): index and single term pages. */

.glossary {
  color: #3908c4;
}

.glossary__inner {
  z-index: 1;
  width: min(calc(100% - 360px), 900px);
  margin-right: 40px;
  margin-left: max(320px, calc((100% - 900px) / 2));
  padding: 170px 0 140px;
}

.glossary__breadcrumb {
  margin-bottom: 30px;
  font-size: 13px;
}

.glossary__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.glossary__breadcrumb li + li::before {
  margin-right: 6px;
  content: "›";
  color: #ae99ea;
}

.glossary__breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.glossary__eyebrow {
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: .1em;
  color: #25147e;
}

.glossary__title {
  font-family: kinuta-maruminshinano-stdn, "Noto Serif JP", serif;
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 400;
  line-height: 1.4;
}

.glossary__title dfn {
  font-style: normal;
}

.glossary__title-sub {
  margin-left: .2em;
  font-size: .6em;
}

.glossary__en {
  display: block;
  margin-top: 4px;
  font-family: cochin-lt-pro, serif;
  font-size: 18px;
  letter-spacing: .04em;
  color: #6653a8;
}

.glossary__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.glossary__cats a {
  display: inline-block;
  padding: 1px 10px 2px;
  border: 1px solid #ae99ea;
  border-radius: 999px;
  font-size: 12px;
}

.glossary__short {
  margin-top: 26px;
  padding: 20px 24px;
  border-left: 3px solid #3908c4;
  background: rgba(255, 255, 255, .6);
  color: #25147e;
  font-size: 17px;
  line-height: 1.9;
}

.glossary__lead {
  max-width: 48em;
  margin-top: 20px;
  color: #25147e;
  font-size: 16px;
  line-height: 1.8;
}

/* ---- Body of a term ---- */
.glossary__content {
  margin-top: 40px;
  color: #19152a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.glossary__content > * + * {
  margin-top: 1.2em;
}

.glossary__content h2,
.glossary__content h3 {
  color: #3908c4;
  font-family: kinuta-maruminshinano-stdn, "Noto Serif JP", serif;
  font-weight: 400;
}

.glossary__content h2 {
  margin-top: 2.4em;
  padding-bottom: .4em;
  border-bottom: 1px solid #ae99ea;
  font-size: 26px;
  line-height: 1.5;
}

.glossary__content h3 {
  margin-top: 2em;
  padding-left: 12px;
  border-left: 3px solid #7454d8;
  color: #292532;
  font-size: 20px;
  font-weight: 500;
}

.glossary__content ul,
.glossary__content ol {
  padding-left: 1.5em;
}

.glossary__content ul li {
  list-style: disc;
}

.glossary__content ol li {
  list-style: decimal;
}

.glossary__content li::marker {
  color: #3908c4;
}

.glossary__content a {
  color: #3908c4;
  text-decoration: underline;
  text-decoration-color: rgba(57, 8, 196, .45);
  text-underline-offset: 3px;
}

.glossary__content a.is-external::after {
  display: inline-block;
  margin-left: .18em;
  font-size: .78em;
  content: "↗";
}

.glossary__content img {
  width: auto;
  max-width: 100%;
}

/* ---- Related terms / columns / back / CTA ---- */
.glossary__related,
.glossary__columns {
  margin-top: 64px;
}

.glossary__related h2,
.glossary__columns h2 {
  margin-bottom: 18px;
  font-family: kinuta-maruminshinano-stdn, "Noto Serif JP", serif;
  font-size: 26px;
  font-weight: 400;
}

.glossary__related ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.glossary__related li {
  padding: 14px 18px;
  border: 1px solid #ae99ea;
  background: rgba(255, 255, 255, .55);
}

.glossary__related li a {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 500;
}

.glossary__related-short {
  display: block;
  margin-top: 4px;
  color: #4a4261;
  font-size: 13px;
  line-height: 1.7;
}

.glossary__columns-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.glossary__back {
  margin-top: 40px;
  font-size: 14px;
}

.glossary__back a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.glossary__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 36px;
  align-items: center;
  margin-top: 70px;
  padding: 34px 40px;
  background: #25147e;
  color: #fff;
}

.glossary__cta h2 {
  font-family: kinuta-maruminshinano-stdn, "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 400;
}

.glossary__cta p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
}

.glossary__cta > a {
  display: grid;
  min-height: 56px;
  place-content: center;
  background: #6ec0f9;
  color: #25147e;
  font-size: 16px;
}

/* ---- Index page ---- */
.glossary__filter {
  margin-top: 36px;
}

.glossary__filter ul,
.glossary__index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.glossary__filter a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 16px;
  border: 1px solid #ae99ea;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  font-size: 14px;
}

.glossary__filter a[aria-current="page"] {
  border-color: #3908c4;
  background: #3908c4;
  color: #fff;
}

.glossary__filter-count {
  font-family: cochin-lt-pro, serif;
  font-size: 13px;
  opacity: .75;
}

.glossary__index {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-top: 40px;
  padding: 12px 0;
  background: rgba(244, 244, 245, .92);
  backdrop-filter: blur(6px);
}

.glossary__index a,
.glossary__index span {
  display: grid;
  min-width: 40px;
  min-height: 40px;
  place-content: center;
  border: 1px solid #ae99ea;
  background: rgba(255, 255, 255, .58);
  font-family: "Noto Serif JP", serif;
  font-size: 15px;
}

.glossary__index span {
  color: #ae99ea;
}

.glossary__group {
  margin-top: 44px;
  scroll-margin-top: 90px;
}

.glossary__group-title {
  padding-bottom: 8px;
  border-bottom: 1px solid #ae99ea;
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 500;
}

.glossary__list {
  margin-top: 6px;
}

.glossary__item {
  display: grid;
  grid-template-columns: minmax(180px, 30%) minmax(0, 1fr);
  gap: 6px 28px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(174, 153, 234, .5);
}

.glossary__item dt {
  font-family: "Noto Serif JP", serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

.glossary__item dt a {
  text-decoration: underline;
  text-decoration-color: rgba(57, 8, 196, .35);
  text-underline-offset: 4px;
}

.glossary__item-en {
  display: block;
  font-family: cochin-lt-pro, serif;
  font-size: 13px;
  font-weight: 400;
  color: #6653a8;
}

.glossary__item dd {
  color: #4a4261;
  font-size: 14.5px;
  line-height: 1.8;
}

.glossary__empty {
  margin-top: 40px;
  font-size: 16px;
}

@media (hover: hover) {
  .glossary__filter a:hover,
  .glossary__index a:hover {
    border-color: #3908c4;
    background: rgba(255, 255, 255, .9);
  }

  .glossary__filter a[aria-current="page"]:hover {
    background: #3908c4;
  }

  .glossary__item dt a:hover,
  .glossary__content a:hover {
    text-decoration-color: currentColor;
  }
}

@media screen and (max-width: 1024px) {
  .glossary__inner {
    width: min(88%, 780px);
    margin-right: auto;
    margin-left: auto;
    padding: 130px 0 100px;
  }

  .glossary__columns-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .glossary__inner {
    width: calc(100% - 40px);
    padding-top: 100px;
  }

  .glossary__title {
    font-size: 30px;
  }

  .glossary__short {
    padding: 16px 18px;
    font-size: 16px;
  }

  .glossary__related ul,
  .glossary__columns-grid {
    grid-template-columns: 1fr;
  }

  .glossary__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .glossary__index a,
  .glossary__index span {
    min-width: 34px;
    min-height: 34px;
    font-size: 14px;
  }

  .glossary__cta {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 24px;
  }
}
