.header {
  display: flex;
  flex-direction: column;
  gap: 2em;
  width: 100%;

  h1 {
    color: #151515;
    font-size: 22px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
  }
}

.passkey-container {
  max-width: 885px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 80px;
  padding: 30px 0px 80px;

  .content {
    display: flex;
    flex-direction: column;
    gap: 100px;

    section {
      display: flex;
      flex-direction: column;
      gap: 25px;
      padding: 0;
    }

    .sub-title {
      font-weight: 700;
      font-size: 18px;
      line-height: 28px;
      color: #333333;
      width: 100%;
    }

    .with-lines {
      display: flex;
      align-items: center;
      gap: 20px;

      &::before,
      &::after {
        content: "";
        flex-grow: 1;
        border-bottom: 1px solid #cbd5e0;
      }
    }
  }

  .inquiry {
    width: 100%;
    display: grid;
    place-items: center;
  }

  @media screen and (max-width: 1024px) {
    padding: 30px 40px 60px;
    width: 100%;
  }

  @media screen and (max-width: 768px) {
    padding: 30px 20px 60px;
    width: 100%;
  }
}

.list-button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 330px;
  height: 55px;
  padding: 15px;
  background-color: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  text-decoration: none;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  color: #303036;
  transition: 0.2s;

  &:hover {
    background-color: #ececec;
  }

  &::after {
    font-family: "Font Awesome 6 Free";
    content: "\f054";
    /* biome-ignore lint/suspicious/noShorthandPropertyOverrides: */
    font: var(--fa-font-solid);
    font-size: 10px;
    color: #a0aec0;
  }

  @media screen and (max-width: 1024px) {
    max-width: 370px;
  }
}

/* パスキーの仕組み */
.how-it-works {
  p {
    width: 100%;
  }

  ol {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: login-counter;

    @media screen and (max-width: 1024px) {
      gap: 80px;
    }

    li {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 25px;

      img {
        width: 100%;
        max-width: 660px;
      }
    }

    li:nth-child(n + 2) p {
      position: relative;
      padding-left: 1.5em;

      &::before {
        position: absolute;
        left: 0;
        counter-increment: login-counter;
        content: counter(login-counter) ". ";
      }
    }
  }
}

.cards {
  display: flex;
  gap: 50px;
  padding: 0;
  margin: 0;
  list-style: none;

  @media (max-width: 768px) {
    flex-direction: column;
    gap: 80px;
    width: 100%;
    max-width: 100%;
  }
}

/* 便利なスマートフォンでのパスキー利用 */
.recommend-smartphone {
  > p {
    text-align: center;

    @media (max-width: 768px) {
      text-align: left;
    }
  }

  .cards {
    justify-content: center;
  }
}

/* パスキー作成時の注意点 */
.cautions {
  > p {
    text-align: left;
    width: 100%;
  }

  ol {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: caution-counter;

    li {
      display: flex;
      flex-direction: column;
      gap: 4px;

      h3 {
        font-weight: 700;
        font-size: 15px;
        color: #2d3748;
        margin: 4px 0;

        &::before {
          counter-increment: caution-counter;
          content: counter(caution-counter) ". ";
        }
      }

      p {
        font-size: 14px;
        line-height: 1.6;
        color: #4a5568;
      }
    }
  }
}

/* カード */
.card {
  flex: 1;
  display: flex;
  gap: 30px;
  flex-direction: column;
  align-items: center;
  max-width: 300px;

  @media (max-width: 768px) {
    max-width: 100%;
    width: 100%;

    p {
      width: 100%;
    }
  }

  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    .tag {
      background-color: #3182ce;
      color: #ffffff;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 10px;
      border-radius: 10px;
    }

    h3 {
      font-weight: 700;
      font-size: 16px;
      color: #3182ce;
    }
  }

  img {
    width: 100%;
    height: 120px;
    object-fit: contain;
  }

  p {
    font-size: 16px;
    line-height: 28px;
    color: #4a5568;
  }
}
