.mainContainer,
.guardApp__section,
.seminarList,
.guardApp__subgroup {
  display: flex;
  flex-direction: column;
}

.mainContainer {
  box-sizing: content-box;
  gap: clamp(3.75rem, 7.4074vw, 5rem);
  padding: clamp(3.75rem, 7.4074vw, 5rem) 1.25rem;
}

.guardApp__section {
  gap: 2.5rem;
}

.guardApp__subgroup {
  gap: 0.5rem;
}

.largeGap {
  gap: 1rem;
}

.anchorNav__list--flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.anchorNav__list--flex .anchorNav__item {
  min-width: 20rem;
}

.anchorNav__list--flex .anchorNav__link {
  justify-content: flex-start;
  padding-left: 1.875rem;
}

.anchorNav__list--flex .anchorNav__item:first-child .anchorNav__link {
  padding-right: 4.625rem;
}

.ctaLink {
  max-width: 25rem;
}

.guardApp__subtitle {
  font-size: var(--fontMax18Min16);
  font-weight: 500;
  letter-spacing: 0.1em;
  padding-left: 1.25rem;
  position: relative;
}

.guardApp__subtitle::before {
  background: #f5a455;
  content: "";
  height: 0.125rem;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0.625rem;
}

.guardApp__link {
  color: var(--colorLink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guardApp__important {
  color: var(--colorImportant);
  font-weight: 700;
}

.guardApp__important.large {
  font-size: var(--fontMax18Min16);
}

.guardApp__label {
  background: var(--colorMain);
  color: #fff;
  letter-spacing: 0;
  padding: 0 0.625rem;
  width: fit-content;
}

.applicationPoints li {
  color: var(--colorMain);
  font-size: var(--fontMax18Min16);
  font-weight: 700;
}

.redText {
  color: var(--colorImportant);
}

.blueText {
  color: var(--colorMain);
}

@media screen and (max-width: 767px) {
  .anchorNav__list--flex {
    flex-direction: column;
  }
}

/* How To */

.howToTitle {
  background: var(--colorMain);
  color: #fff;
  font-size: var(--fontMax32Min24);
  font-weight: 700;
  letter-spacing: 0;
  padding: 0.1875rem 1.25rem;
  text-align: center;
}

.howTo__stepList {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;

  li {
    background: var(--colorBase);
    border: 1px solid #413e37;
    border-radius: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 13.75rem;
    padding: 1.125rem 1rem;
    position: relative;
    width: 100%;
  }

  li:not(:last-child)::after {
    background: url(../../images/common/icon-chevron_right_black.svg) no-repeat center / cover;
    content: "";
    height: 1.5rem;
    position: absolute;
    right: -2.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
  }

  h4 {
    color: var(--colorMain);
    font-size: var(--fontMax18Min16);
    font-weight: 700;
    text-align: center;
  }

  .blueText {
    font-weight: 700;
    white-space: normal;
    word-break: break-all;
  }

  @media screen and (max-width: 875px) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 auto;
    width: fit-content;
  }

  @media screen and (max-width: 600px) {
    grid-template-columns: 1fr;
    
    li:not(:last-child)::after {
      bottom: -2.1rem;
      right: 50%;
      top: auto;
      transform: translateX(50%) rotate(90deg);
    }
  }
}

.stepCard {
  background: var(--colorBase);
  border: 1px solid #413e37;
  border-radius: 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  padding: 1.875rem;
  position: relative;

  h3 {
    color: var(--colorMain);
    font-size: var(--fontMax18Min16);
    font-weight: 700;
    text-align: center;
  }

  .stepCard__list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
  }

  .stepCard__item {
    background: #fff;
    border-radius: 0.625rem;
    max-width: 13.75rem;
    min-height: 11.25rem;
    position: relative;
    width: 100%;
  }

  .stepCard__item:not(:last-child)::after {
    background: url(../../images/common/icon-chevron_right_black.svg) no-repeat center / cover;
    content: "";
    height: 1.5rem;
    position: absolute;
    right: -2.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
  }

  .stepCard__item.double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 27.5rem;
  }

  .stepCard__item.double::before {
    background: #413e37;
    content: "";
    height: calc(100% - 2.5rem);
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.0625rem;
  }

  figure {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    justify-content: center;
    width: 100%;
  }

  li:nth-child(4) figure,
  li:nth-child(6) figure,
  li:nth-child(7) figure {
    gap: 0;
  }

  img {
    height: 3rem;
    width: auto;
  }

  figcaption {
    font-weight: 700;
    text-align: center;
  }

  figcaption .small {
    font-size: var(--fontMax14Min12);
    font-weight: 400;
  }

  @media screen and (max-width: 900px) {
    .stepCard__list {
      justify-content: center;
    }
  }

  @media screen and (max-width: 767px) {
    .stepCard__item.double {
      max-width: 30.1rem;
    }
  }

  @media screen and (max-width: 500px) {
    .stepCard__list {
      display: grid;
      gap: 3.5rem;
      justify-content: unset;
      justify-items: center;
    }
    .stepCard__item:not(:last-child)::after {
      bottom: -2.5rem;
      right: 50%;
      top: auto;
      transform: translateX(50%) rotate(90deg);
    }
    .stepCard__item.double {
      gap: 2rem;
      grid-template-columns: 1fr;
      padding: 1rem;
    }
    .stepCard__item.double::before {
      height: 0.0625rem;
      width: calc(100% - 1.875rem);
    }
    .stepCard__item.double,
    .stepCard__item {
      max-width: 15rem;
    }
  }
}

.onlineMail__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.25rem;

  li {
    border: 1px solid #a8a399;
    max-width: 13.25rem;
    min-height: 12.9375rem;
    padding: 1rem 0.375rem 0.625rem;
    text-align: center;
    width: 100%;
  }

  figure {
    display: grid;
    gap: 0.5rem;
    grid-template-rows: 3rem 1fr;
    justify-items: center;
  }

  figure img {
    height: 100%;
    width: auto;
  }

  figcaption {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .figHeading {
    font-weight: 700;
  }

  .figText,
  .figText a {
    font-size: 0.875rem;
  }

  .figText .red {
    color: var(--colorImportant);
    font-size: 1rem;
    font-weight: 500;
  }

  .figText .small {
    font-size: 0.75rem;
  }

  @media screen and (max-width: 900px) {
    justify-content: center;
  }
  @media screen and (max-width: 467px) {
    li {
      max-width: 100%;
    }
  }
}

.guardApp__tableContainer {
  .guardApp__table {
    border: 1px solid #d2d2d2;
    width: 100%;
  }

  thead th,
  tbody td {
    border-right: 1px solid #fff;
    color: #2e2e2e;
    font-family: "Noto Sans JP", sans-serif;
    font-size: var(--fontMax16Min14);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.5;
    padding: 1.25rem;
    text-align: start;
  }

  thead th {
    background: #50d5ea;
  }

  tbody td {
    border-right-color: #d2d2d2;
  }

  thead th:last-child,
  tbody td:last-child {
    border-right: none;
  }

  .type1 th:nth-child(1) {
    width: 23%;
  }

  .type1 th:nth-child(2) {
    width: auto;
  }

  .type1 th:nth-child(3) {
    width: 20%;
  }

  .type1 th:nth-child(4) {
    width: 14%;
  }

  .type2 th:nth-child(1) {
    width: 23%;
  }

  .type2 th:nth-child(2) {
    width: auto;
  }

  .type2 th:nth-child(3) {
    width: 10%;
  }

  .type2 th:nth-child(4) {
    width: 10%;
  }

  .type2 th:nth-child(5) {
    width: 14%;
  }

  @media screen and (max-width: 1000px) {
    overflow-x: scroll;
    padding-bottom: 1rem;

    .guardApp__table {
      min-width: 56.25rem;
    }
  }
}

.addressCard {
  background: var(--colorBase);
  margin: 0 auto;
  max-width: 26.625rem;
  padding: 1.5rem 2rem;
  text-align: center;
  width: 100%;

  h4 {
    font-weight: 700;
  }

  address {
    font-style: normal;
    margin-top: 0.5rem;
  }
}

/* Seminar Fees */

.postageNotice {
  display: grid;
  grid-template-columns: auto 1fr;
}

.postage__dl {
  display: grid;
  grid-template-columns: 46% 54%;
  max-width: 20.8125rem;
  text-align: center;

  dd,
  dt {
    border: 1px solid #d2d2d2;
  }

  dt {
    background: var(--colorBase);
    font-weight: 700;
    padding: 1.25rem;
  }

  dd {
    border-left: none;
    font-weight: 700;
    padding: 1.25rem 1rem;
  }

  dt:nth-child(3),
  dd:nth-child(4) {
    border-top: none;
  }
}

.fees__dl {
  display: grid;
  grid-template-columns: 33.7% 1fr;

  dt {
    background: var(--colorBase);
    border: 1px solid #d2d2d2;
    font-weight: 700;
    padding: 1.25rem;
  }

  dt:not(.last) {
    border-bottom: none;
  }

  dd {
    font-weight: 700;
  }

  dd {
    display: grid;
    grid-template-columns: 35% 1fr;
  }

  dd span {
    border: 1px solid #d2d2d2;
    border-left: none;
    font-weight: 700;
    padding: 1.25rem 1rem;
  }

  dd:not(.last) span {
    border-bottom: none;
  }

  @media screen and (max-width: 500px) {
    grid-template-columns: 1fr;

    dd span:first-child {
      border-left: 1px solid #d2d2d2;
    }

    dt.last {
      border-bottom: none;
    }
  }
}
