section#cover {
  background: url('../img/support_top-min.webp') no-repeat center;

  h1,
  h2 {
    color: #fff;
  }
}

main {
  h2 {
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    font-size: 30px;
    margin-top: 70px;
    margin-bottom: 40px;

    @media (width < 575px) {
      font-size: 18px;
    }
  }

  section#three-supports {

    &>p {
      font-size: 15px;
      text-align: center;
      line-height: 2;
      margin-bottom: 50px;
    }

    div.support-items {
      width: 80%;
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      gap: 30px;

      @media (width < 740px) {
        flex-direction: column;
      }

      figure {
        flex: 1;
        padding: 15px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border-radius: 6px;
        overflow: hidden;

        img {
          width: 100%;
        }

        figcaption {
          h3 {
            font-family: 'Noto Serif JP', serif;
            font-size: 18px;
            font-weight: bold;
            margin-top: 14px;
            text-align: center;
          }

          p {
            font-size: 14px;
            line-height: 2;
            padding: 10px;
          }
        }
      }
    }
  }

  section#choose-service {
    background-color: #f5f5f5;
    padding: 40px 0 80px;

    div#choose-service-wrapper {
      display: flex;
      width: 95%;
      max-width: 1300px;
      margin: 0 auto;
      gap: 50px;

      @media (width < 1300px) {
        gap: 20px;
      }

      @media (width < 1000px) {
        flex-direction: column;
        gap: 50px;

      }
    }

    article.card {
      flex: 1;
      border: none;
      border-radius: 0px;

      header {
        display: grid;
        grid-template-columns: 230px 1fr;
        gap: 40px;

        @media (1000px <=width < 1300px),
        (width < 740px) {
          grid-template-columns: 1fr 2fr;
          gap: 20px;
        }
      }

      img {
        width: 100%;
      }

      aside {
        display: flex;
        flex-direction: column;
        gap: 10px;

        p,
        h3 {
          flex: 1;
          margin-bottom: 0;
          display: flex;
          align-items: center;
        }

        p.category-tag {
          align-items: center;
          font-size: 13px;
          margin-top: 10px;

          span {
            background-color: #F3E6E6;
            font-weight: bold;
            padding: 10px 20px;
            border-radius: 3px;
          }
        }
      }

      ul {
        margin: 30px auto;
      }

      li {
        position: relative;
        padding-left: 1.5em;
        margin-bottom: 1.0em;
        line-height: 1.5;
        font-size: 15px;
      }

      li::before {
        content: "";
        display: block;
        position: absolute;
        top: 0.2em;
        left: 0;
        width: 1em;
        height: 1em;
        background-size: contain;
        background-repeat: no-repeat;
      }

      footer {
        height: auto;
        margin-top: auto;
        padding: 0;
        background-color: #E2E6E8;

        a.btn-detail {
          display: block;
          width: 100%;
          padding: 20px 0;
          text-align: center;
          font-size: 18px;

          &:hover {
            text-decoration: none;
          }

          span {
            margin-left: 10px;
          }
        }
      }

    }

    article.card-red {
      p.category-tag {
        span {
          color: #8C1E23;
        }
      }

      h3 {
        color: #8C1E23;
      }

      li::before {
        background-image: url('../img/check_r-min.webp');
      }

      footer a.btn-detail {
        color: #8C1E23;
      }
    }

    article.card-blue {
      p.category-tag {
        span {
          color: #034E7E;
        }
      }

      h3 {
        color: #034E7E;
      }

      li::before {
        background-image: url('../img/check_b-min.webp');
      }

      footer a.btn-detail {
        color: #034E7E;
      }
    }

    a.btn-top {
      display: block;
      width: 150px;
      margin: 60px auto 0;
      text-align: center;
      padding: 15px 0;
      background-color: #8C1E23;
      color: #fff;
      border-radius: 3px;
    }
  }

}