@import url(./global/_variable.css);

/* reason */
/* ============================================ */

/* reason-list */
/* ============================================ */
.reason-list {
  padding-block: clamp(3.75rem, 2.6295rem + 2.9279vw, 5.625rem); /* 90~60(1920~896) */
  background-color: #FFF;
  border-radius: 50px 50px 0 0;
  position: relative;
  @media (width <= 896px) {
    border-radius: 30px 30px 0 0;
    padding-block: 30px 60px;
  }
}
.reason-list__inner {
  max-width: 1340px;
  margin-inline: auto;
  padding-inline: 20px;
}
.reason-list__ttl {
  font-family: 'Zen Kaku Gothic New', var(--font_normal);
  font-size: clamp(1.5rem, 0.7455rem + 1.8018vw, 2.25rem); /* 36~24(1340~896) */
  font-weight: 700;
  line-height: 1.6;
  color: var(--font_c);
  text-align: center;
  word-break: keep-all;
}

/* reason-list__nav */
/* ============================================ */
.reason-list__nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 45px;
  @media (width <= 896px) {
    gap: 12px;
    margin-top: 30px;
  }
  @media (width <= 480px) {
    gap: 8px;
  }
}
.reason-list__nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 14px 28px;
  border: 1px solid var(--main_c);
  border-radius: 999px;
  transition: background-color .2s;
  @media (hover: hover) {
    &:hover {
      background-color: var(--bg02_c);
      opacity: 1;
    }
  }
  @media (width <= 480px) {
    padding: 10px 18px;
  }
  > span {
    font-family: 'Zen Kaku Gothic New', var(--font_normal);
    font-size: clamp(0.875rem, 0.13vw + 0.844rem, 1rem); /* 14~16 */
    font-weight: 700;
    line-height: 1.5;
    color: var(--font_c);
    word-break: keep-all;
  }
}

/* reason-list__list */
/* ============================================ */
.reason-list__list {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 70px;
  @media (width <= 896px) {
    gap: 50px;
    margin-top: 50px;
  }
}
.reason-list__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 60px;
  scroll-margin-top: 20px;
  @media (width <= 1025px) {
    gap: 32px;
  }
  @media (width <= 896px) {
    flex-direction: column;
    gap: 20px;
  }
  &:nth-child(even) {
    flex-direction: row-reverse;
    @media (width <= 896px) {
      flex-direction: column;
    }
  }
}
.reason-list__item-num {
  position: absolute;
  top: -20px;
  left: -20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--main_c);
  font-family: 'Zen Kaku Gothic New', var(--font_normal);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  @media (width <= 896px) {
    top: -14px;
    left: -10px;
    width: 56px;
    height: 56px;
    font-size: 22px;
  }
}
.reason-list__item:nth-child(even) .reason-list__item-num {
  left: auto;
  right: -20px;
  @media (width <= 896px) {
    left: -10px;
    right: auto;
  }
}
.reason-list__item-img {
  display: block;
  width: 45%;
  flex-shrink: 0;
  aspect-ratio: 600 / 360;
  object-fit: contain;
  @media (width <= 896px) {
    width: 100%;
  }
}
.reason-list__item-body {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 16px;
}
.reason-list__item-ttl {
  font-family: 'Zen Kaku Gothic New', var(--font_normal);
  font-size: clamp(1.375rem, 0.78vw + 1.193rem, 2.125rem); /* 24~20(1340~896) */
  font-weight: 700;
  line-height: 1.6;
  color: var(--font_c);
  word-break: keep-all;
  @media (width <= 896px) {
    word-break: normal;
  }
}
.reason-list__item-txt {
  font-family: 'Zen Kaku Gothic New', var(--font_normal);
  font-size: clamp(0.875rem, 0.6227rem + 0.4505vw, 1rem); /* 16~14(1340~896) */
  font-weight: 500;
  line-height: 1.9;
  color: var(--font_c);
  word-break: keep-all;
  @media (width <= 896px) {
    word-break: normal;
    text-align: justify;
  }
}
