/*====================================================
INTRO
====================================================*/
#intro {
  position: relative;
  border-bottom: 0.5rem solid #eb541d;

  &::after {
    content: '';
    position: static;
    display: block;
    width: 47.5%;
    height: auto;
    background-image: url(../img/intro_bg.avif);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
  .intro__texts {
    width: 52.5%;
    padding: 10.6rem min(3.6rem, 2.5vw);
    max-width: 688px;
    margin-left: auto;
  }
  .intro__title {
    color: #eb541d;
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1em;
  }

  .intro__text {
    font-size: 1.8rem;
    line-height: 1.66667;
  }
  @media screen and (max-width: 767px) {
    flex-direction: column;
    border-bottom-width: 0.25rem;
    &::after {
      width: 100%;
      height: 50vw;
    }
    .intro__texts {
      width: 100%;
      max-width: none;
      padding: 7vw 4vw;
    }
    .intro__title {
      font-size: 2rem;
      line-height: 1.25;
    }
    .intro__text {
      font-size: 1.5rem;
      line-height: 1.4667;
    }
  }
}

/*====================================================
MENU
====================================================*/
#menu {
  padding-block: 6rem 4rem;
  background: linear-gradient(180deg, #fff 0%, #ffd8aa 100%);

  .inner {
    width: 1076px;
  }

  .common-second-title {
    margin-bottom: 1.8em;
  }
  .menu__list {
    grid-template-columns: repeat(3, 31.2267658%);
    justify-content: space-between;
    row-gap: 3rem;
  }
  .menu__list_item {
    background-color: #ffffff;
    padding: 2.5rem 2rem 3.7rem;
    box-shadow: 0.8rem 0.8rem 0px 0px #ffb88b;
    grid-template-rows: subgrid;
    grid-row: span 2;
    row-gap: 3rem;
  }
  .menu__list_item_image {
    width: 84.45945946%;
    margin-inline: auto;
    align-self: center;
  }
  .menu__list_item_title {
    color: #eb541d;
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.21429;
    margin-bottom: 0.8em;
    position: relative;
  }
  .menu__list_item_title_recommend {
    position: absolute;
    color: #fff;
    font-size: 0.57142857em;
    font-weight: 700;
    background-color: #ff6b79;
    bottom: calc(100% + 1em);
    padding: 0.4em;
    border-radius: 0.3125em;
    left: -0.1em;

    &::after {
      content: '';
      position: absolute;
      aspect-ratio: 10/13;
      width: 0.9em;
      height: auto;
      background-color: #ff6b79;
      clip-path: polygon(100% 0, 0 0, 50% 100%);
      top: calc(100% - 0.2em);
      left: 1.7em;
      transform: rotateZ(15deg);
      transform-origin: right top;
    }
  }
  .menu__list_item_text {
    font-size: 1.8rem;
    line-height: 1.66667;
  }
  .common-button {
    margin-block: 4.7em 3.3em;
  }
  @media screen and (max-width: 767px) {
    padding-block: 12vw;
    .inner {
      max-width: 77.04%;
    }
    .menu__list {
      grid-template-columns: 100%;
    }
    .menu__list_item {
      box-shadow: 0.4rem 0.4rem 0px 0px #ffb88b;
    }
    .menu__list_item_title {
      font-size: 2.4075rem;
    }
    .menu__list_item_text {
      font-size: 1.5477rem;
    }
    .common-button {
      margin-block: 10vw 0;
    }
  }
}

/*====================================================
FLOW
====================================================*/
#flow {
  padding-block: 7rem 23rem;

  .common-second-title {
    margin-bottom: 2em;
  }
  .flow__list_item {
    width: 24%;
    background-color: #fff;
    position: relative;
    flex-direction: column;
    align-items: center;
    padding-block: 4.6rem 3.6rem;
    justify-content: center;
    row-gap: 2.4rem;
    box-shadow: 0.8rem 0.8rem 0px 0px #9ac4e5;
    padding-inline: 1.6rem;
    &:where(:has(> *:nth-child(3))) {
      justify-content: flex-start;
    }
  }
  .flow__list_item_index {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(160deg, #70d0f3 1.02%, #083286 96.16%);
    color: #fff;
    font-size: 1.8rem;
    padding: 0.4em 2em 0.4em 1.3em;
    clip-path: polygon(0% 0%, calc(100% - 1em) 0, 100% 50%, calc(100% - 1em) 100%, 0% 100%);
    padding-block: 0.2em;
    white-space: nowrap;
  }
  .flow__list_item_index_number {
    font-size: 1.66666667em;
    font-weight: 500;
    line-height: 1;
  }
  .flow__list_item_title {
    color: #5e97c5;
    text-align: center;
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.2857142857;
    width: 100%;
  }
  .flow__list_item_text {
    font-size: 1.6rem;
    line-height: 1.5;
  }
  @media screen and (max-width: 767px) {
    padding-block: 12vw 30vw;
    .flow__list {
      flex-direction: column;
      row-gap: 2.8rem;
    }
    .flow__list_item {
      width: 100%;
      padding-block: 2rem;
      row-gap: 1rem;
      align-items: flex-start;
      box-shadow: 0.4rem 0.4rem 0px 0px #9ac4e5;
    }
    .flow__list_item_index {
      font-size: 0.9rem;
    }
    .flow__list_item_title {
      font-size: 1.8rem;
    }
    .flow__list_item_text {
      font-size: 1.4rem;
    }
  }
}
