.hero {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: #4695D4;
  position: relative;
  overflow: hidden;
  background-image: url("../img/hero-bg.svg");
  background-size: cover;
  gap: 32px;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__content--tag {
  color: #0F58A4;
  font-weight: bold;
  background-color: #BEE2FF;
  border-radius: 4px;
  width: fit-content;
  font-size: 12px;
  padding: 4px 20px;
}

.hero__content h1 {
  font-size: 40px;
  line-height: 150%;
  margin-bottom: 8px;
}

.hero__content p {
  line-height: 180%;
  font-size: 20px;
}

.hero__nav {
  display: flex;
  width: 100%;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

.hero__nav--link:last-child {
  border-right: none;
}

.hero__nav--link.current {
  background-color: #EDF4FA;
}

.hero__nav--link {
  flex: 1;
  padding: 8px 16px;
  border-right: 1px solid #D9D9D9;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #0F58A4;
  text-decoration: none;
  position: relative;
}

.hero__nav--linktxt p{
  margin: 0;
}

.hero__nav--linktxtsub {
  color: #4695D4;
  font-size: 12px;
}

.hero__nav--linktxtmain {
  color: #212A67;
  font-size: 16px;
  font-weight: bold;
}

.forwardBtn,
.outerLink {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 16px;
  background-repeat: no-repeat;
  background-position: calc(50% + 1px) center; /* 中心より1pxぶん右にずらして表示する */
  background-size: auto;
}

.forwardBtn {
  background-color: #0F58A4;
  border-radius: 50%;
  background-image: url("../img/caret-forward.svg");
}

.current .forwardBtn {
  background-color: #D6E4F1 !important;
}

.outerLink {
  background-image: url("../img/outer-link.svg");
}

@media screen and (max-width: 768px) {
  .hero__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px;
  }

  .hero__nav--link {
    flex: none;
    width: 50%;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
  }
  
  /* 偶数個目のリンクに対して、右側の線を解除する */
  .hero__nav--link:nth-child(2n) {
    border-right: none;
  }

  /* 1～2個目のリンクに対して、下線を設定する */
  .hero__nav--link:nth-child(-n+2) {
    border-bottom: 1px solid #D9D9D9;
  }

  .hero__nav--linktxtsub {
    font-size: 10px;
  }

  .hero__nav--linktxtmain {
    font-size: 14px;
  }

  .forwardBtn,
  .outerLink {
    width: 16px;
    height: 16px;
  }
  
  .forwardBtn {
    background-size: 6px;
  }
}