@charset "utf-8";
/* タイトル箇所 */
.page_top {
  background: url(../img/page_heading_bg.webp) no-repeat center / cover;
}

/* ページ内リンク */
.page_link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-20);
  flex-wrap: wrap;
  counter-reset: num;
}
.page_link--item {
  width: calc((100% - 60px) / 3);
  a {
    width: 100%;
    padding: 10px;
    background: var(--main-color);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    &::before {
      counter-increment: num 1;
      content: ''counter(num) ' ';
      color: var(--main-color);
      font-weight: 700;
      background: var(--sub-color);
      border-radius: 100px;
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
  @media screen and (max-width: 767px) {
    width: calc((100% - 15px) / 2);
    a {
      &::before {padding: 1.2rem;}
    }
    
  }
}
/* 選ばれる理由 */
.reason_all {
  counter-reset: num;
}
.reason_item {
  max-width: var(--contents-w);
  width: 100%;
  padding: var(--space-65) 0;
  display: flex;
  align-items: center;
  margin-inline: auto;
  position: relative;
  @media screen and (max-width: 767px) {
    flex-direction: column-reverse;
  }
}
.reason_item {
  &:nth-child(even) {
    flex-direction: row-reverse;
    .reason_item--img {
      left: 40px;
    }
    @media screen and (max-width: 767px) {
      flex-direction: column-reverse;
    }
  }
}
.reason_item + .reason_item {
  padding-top: 0;
}
.reason_box {
  min-height: 424px;
  height: 100%;
  max-width: 793px;
  width: 100%;
  padding: var(--space-30) var(--space-45);
  background: var(--main-color);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .more_btn a {
    background-color: #fff;
    color: var(--main-color);
  }
  @media screen and (max-width: 767px) {
    min-height: initial;
  }
}
.reason_box--title {
  font-size: var(--font-32);
  font-weight: 700;
  line-height: 2;
  white-space: nowrap;
  border-bottom: 1px solid #fff;
  padding-bottom: 10px;
  margin-bottom: var(--space-20);
  display: flex;
  align-items: center;
  gap: var(--space-20);
  &::before {
    counter-increment: num 1;
    content: ''counter(num) ' ';
    color: var(--main-color);
    font-size: var(--font-32);
    font-weight: 700;
    background: var(--sub-color);
    border-radius: 100px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0.3rem;
    padding: 2.1rem;
  }
  @media screen and (max-width: 767px) {
    white-space: normal;
  }
}
.reason_box--txt {
  letter-spacing: var(--letter-08);
  @media screen and (max-width: 767px) {
    padding-bottom: var(--space-30);
  }
}
.reason_item--img {
  border: 1px solid var(--main-color);
  position: absolute;
  right: 40px;
  pointer-events: none;
  @media screen and (max-width: 767px) {
    position: static;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin: 0;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}
