.divider {
  display: block;
  position: relative;
  width: 100%;
  height: 5px;
}
.divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--line);
}
.divider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  right: 0;
  height: 1px;
  background: var(--line);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  padding: 0 8px 0 20px;
  border-radius: 30px;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
}

.btn__label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.btn__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--white);
}

.btn--secondary {
  background: var(--white);
  color: var(--primary);
}
.btn--tertiary {
  background: var(--gray-100);
  color: var(--primary);
}
.btn--secondary::before,
.btn--tertiary::before {
  background: var(--primary);
}
.btn--secondary:hover,
.btn--secondary:focus-visible,
.btn--tertiary:hover,
.btn--tertiary:focus-visible {
  color: var(--white);
}

.btn--36 {
  height: 36px;
}
.btn--36 .btn__icon {
  width: 24px;
  height: 24px;
}

.footer__body {
  background: #f6f5f6 url("../assets/images/footer-bg.jpg") center / cover no-repeat;
  padding: 36px 10px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 370px);
  column-gap: var(--gutter);
  row-gap: var(--gutter);
  align-items: start;
}

.fcard {
  display: grid;
  grid-template-columns: 100px 1fr;
}

.fcard__num {
  display: flex;
  flex-direction: column;
  width: 70px;
  padding: 4.5px 0;
  text-align: center;
}
.fcard__chapter {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
}
.fcard__num .num--ch {
  line-height: 38px;
}

.fcard__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fcard__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fcard__label {
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  letter-spacing: var(--h3-ls);
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}
.fcard__label:hover,
.fcard__label:focus-visible {
  color: var(--primary);
}
.fcard[data-chapter="4"] .fcard__label {
  font-family: var(--font-alt);
  letter-spacing: -0.84px;
}

html[lang="en"] .fcard__label {
  min-height: 72px;
}

body[data-chapter="1"] .fcard[data-chapter="1"] .fcard__label,
body[data-chapter="2"] .fcard[data-chapter="2"] .fcard__label,
body[data-chapter="3"] .fcard[data-chapter="3"] .fcard__label,
body[data-chapter="4"] .fcard[data-chapter="4"] .fcard__label,
body[data-chapter="5"] .fcard[data-chapter="5"] .fcard__label,
body[data-chapter="6"] .fcard[data-chapter="6"] .fcard__label {
  color: var(--primary);
}

.footer a[data-link-todo] {
  cursor: default;
}
.footer a[data-link-todo]:hover,
.footer a[data-link-todo]:focus-visible {
  color: inherit;
}
body[data-chapter="5"] .fcard[data-chapter="5"] .fcard__label[data-link-todo]:hover,
body[data-chapter="6"] .fcard[data-chapter="6"] .fcard__label[data-link-todo]:hover {
  color: var(--primary);
}

.fcard__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.fcard__item {
  text-align: left;
  transition: color 0.2s ease;
}
.fcard__item:hover,
.fcard__item:focus-visible {
  color: var(--primary);
}

.footer__sub {
  height: 72px;
  background: var(--white);
}
.footer__sub-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.copyright {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--muted);
}
.copyright b {
  font-weight: 700;
}

.mmenu {
  display: none;
}

@media (max-width: 767px) {
  .footer__body {
    background-image: url("../assets/images/footer-bg-mobile.jpg");
    padding: 16px 0;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }
  .footer__grid > .fcard:first-child {
    min-height: 120px;
  }

  .footer__sub {
    height: auto;
    margin-top: 16px;
    padding: 0 0 16px;
  }
  .footer__sub-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .copyright {
    text-align: center;
  }
  .footer__sub .btn {
    justify-content: space-between;
  }

  .mmenu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: #fff;
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 0.3s ease,
      visibility 0.3s ease;
    overflow-y: auto;
  }
  body.menu-open {
    overflow: hidden;
  }
  body.menu-open .mmenu {
    transform: translateX(0);
    visibility: visible;
  }

  .mmenu__bar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid #ececec;
  }
  .mmenu__brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mmenu__logo {
    width: 26px;
    height: auto;
    display: block;
  }
  .mmenu__title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: var(--ink);
  }
  .mmenu__title b {
    color: var(--primary);
    font-weight: 700;
  }
  .mmenu__close {
    display: flex;
    padding: 6px;
    background: none;
    border: 0;
    cursor: pointer;
  }

  .mmenu__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .macc {
    border-bottom: 1px solid #ececec;
  }
  .macc__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    text-align: left;
  }
  .macc__chev {
    flex: none;
    transition: transform 0.25s ease;
  }
  .macc.is-open .macc__chev {
    transform: rotate(180deg);
  }
  .macc__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .macc.is-open .macc__panel {
    max-height: 640px;
  }
  .macc__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
  }
  .macc__link span {
    flex: 1;
  }
  .macc__arrow {
    flex: none;
  }
  .macc__link[data-link-todo] {
    cursor: default;
  }

  .macc--lang {
    position: relative;
    margin-top: auto;
    border-top: 0;
    border-bottom: 0;
  }
  .macc__head--lang {
    justify-content: flex-start;
    gap: 8px;
  }
  .macc__head--lang .mlang__globe {
    flex: none;
    color: var(--ink);
  }
  .macc--lang .macc__panel {
    position: absolute;
    left: 16px;
    bottom: calc(100% - 8px);
    min-width: 150px;
    max-height: none;
    overflow: visible;
    padding: 6px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }
  .macc--lang.is-open .macc__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .mlang__opt {
    display: block;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
  }
  .mlang__opt.is-active {
    color: var(--primary);
  }

  .nav__burger {
    display: none;
  }
  @media (max-width: 767px) {
    .nav__burger {
      display: flex;
    }
  }
}

.cinfo {
  width: 370px;
  padding: 24px 24px 48px;
  box-sizing: border-box;
}

.cinfo__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cinfo__label {
  font-family: var(--font);
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink);
}

.cinfo__value {
  font-family: var(--font-num);
  font-size: 72px;
  line-height: 72px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cinfo__desc {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cinfo__desc-icon {
  display: block;
  flex-shrink: 0;
  width: 9px;
  height: 7px;
}

.cinfo__mid-divider {
  width: 40px;
  height: 1px;
  background: var(--line);
}

.cinfo__bot-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.cinfo--on-red {
  display: flex;
  flex-direction: column;
  gap: 47px;
  width: 370px;
  padding: 24px 0 0 1.5px;
}
.cinfo--on-red .cinfo__body {
  flex: 1;
  padding-inline: 24px;
}
.cinfo--on-red .cinfo__label,
.cinfo--on-red .cinfo__value {
  color: var(--white);
}
.cinfo--on-red .cinfo__mid-divider {
  margin-bottom: -1px;
}
.cinfo__note {
  align-self: stretch;
  text-align: center;
}

@media (max-width: 767px) {
  .cinfo--on-red {
    width: 100%;
  }
}

.quote {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.quote__content {
  position: relative;
  align-self: stretch;
  width: 570px;
  flex-shrink: 0;
}

.quote__mark {
  display: block;
  width: 43px;
  height: 35px;
  color: var(--primary);
  margin-bottom: 48px;
}

.quote__body {
  font-family: var(--font);
  font-size: 32px;
  line-height: 38px;
  font-weight: 600;
  color: var(--ink);
}

.quote__sign {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--quote-sign-bottom, 48px);
}

.quote__line {
  width: 25px;
  height: 1px;
  background: var(--primary);
  margin-bottom: 11px;
}

.quote__name {
  font-family: var(--font);
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  color: var(--ink);
}

.quote__role {
  font-family: var(--font);
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink);
}

.quote__image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: -55px;
}
.quote__image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.space {
  margin-top: 24px;
}

@media (max-width: 767px) {
  .quote {
    flex-direction: column;
    gap: 0;
  }

  .quote__content {
    align-self: auto;
    width: 100%;
    padding: 16px 0;
  }

  .quote__sign {
    position: static;
  }

  .quote__mark {
    display: none;
  }

  .quote__body {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -0.02em !important;
    margin-bottom: 24px !important;
  }

  .quote__image {
    width: 100%;
    margin-top: 0;
    order: -1;
  }
}

.ccard {
  width: 370px;
}

.ccard__desc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.ccard__title {
  display: flex;
  align-items: flex-end;
  height: 48px;
  margin-top: 4px;
}

.ccard__arrow {
  display: block;
  flex: 0 0 auto;
  width: 14px;
  height: 11px;
  margin-right: 4px;
  margin-bottom: 15px;
  color: var(--primary);
}

.ccard__num {
  font-family: var(--font-num);
  font-weight: 400;
  font-size: 48px;
  line-height: 48px;
  color: var(--primary);
}

.ccard__unit {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-left: 4px;
}

.ccard__title + .ccard__desc {
  margin-top: 4px;
}

.ccard__tri {
  display: block;
  flex: 0 0 auto;
  width: 9px;
  height: 7px;
  color: var(--primary);
}

.ccard-group--v {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 370px;
}

.ccard-group--h {
  display: flex;
  align-items: stretch;
  gap: 60px;
}
.ccard-group--h > .ccard + .ccard {
  position: relative;
}
.ccard-group--h > .ccard + .ccard::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--line);
}

@media (max-width: 767px) {
  .ccard,
  .ccard-group--v {
    width: 100%;
  }
  .ccard-group--h {
    flex-direction: column;
    gap: 24px;
  }
  .ccard-group--h > .ccard + .ccard::before {
    left: 0;
    right: 0;
    top: -12px;
    bottom: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

.blist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blist--h {
  flex-direction: row;
  gap: var(--gutter);
}
.blist--h > .bitem {
  flex: 1 1 0;
  min-width: 0;
}

.bitem {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-align: justify;
}

.bitem__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0;
}

.bitem--dot .bitem__dot {
  width: 4px;
  height: 4px;
  margin-top: 10.5px;
}

@media (max-width: 767px) {
  .blist--h {
    flex-direction: column;
    gap: 16px;
  }
}

.totop {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}
.totop.is-on {
  opacity: 1;
  visibility: visible;
}
.totop:hover,
.totop:focus-visible {
  background: var(--ink);
  color: var(--white);
}
.totop__arrow {
  width: 10px;
  height: 10px;
  border-left: 1.6px solid currentColor;
  border-top: 1.6px solid currentColor;
  transform: translateY(2px) rotate(45deg);
}

@media (max-width: 767px) {
  .totop {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}

.rcard {
  padding: 24px;
  background: var(--primary) url("../assets/images/ch3-red-texture.png") repeat;
  background-size: 4.25px 4.25px;
  color: var(--white);
}

.rcard__row {
  display: grid;
  grid-template-columns: 331px 331px;
  column-gap: 60px;
  align-items: start;
}
.rcard__row > * + * {
  position: relative;
}
.rcard__row > * + *::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 0;
  bottom: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.rcard__row + .rcard__row {
  margin-top: 24px;
  padding-top: 24px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4));
  background-size:
    346px 1px,
    346px 1px;
  background-position:
    0 0,
    376px 0;
  background-repeat: no-repeat;
}

.rcard__row--1 {
  grid-template-columns: 722px;
}
.rcard .rcard__row--1 > .ccard {
  width: 722px;
}
.rcard__row--1 + .rcard__row,
.rcard__row + .rcard__row--1 {
  background-size:
    722px 1px,
    0 0;
}

.rcard .ccard {
  width: 331px;
  text-align: center;
}
.rcard .ccard__desc,
.rcard .ccard__title {
  justify-content: center;
}
.rcard .ccard__desc,
.rcard .ccard__num,
.rcard .ccard__unit,
.rcard .ccard__tri,
.rcard .ccard__arrow {
  color: var(--white);
}

@media (max-width: 767px) {
  .rcard {
    padding: 8px;
  }
  .rcard__row {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
  .rcard__row > * + *::before {
    left: 0;
    right: 0;
    top: -12px;
    bottom: auto;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
  }
  .rcard .ccard,
  .rcard .rcard__row--1 > .ccard {
    width: 100%;
  }
  .rcard__row--1 {
    grid-template-columns: 1fr;
  }
  .rcard__row + .rcard__row,
  .rcard__row--1 + .rcard__row,
  .rcard__row + .rcard__row--1 {
    background-size: 100% 1px;
    background-position: 0 0;
  }
}
