@charset "UTF-8";

/* =====================
  policy-contents
===================== */
.policy-contents {
  display: block grid;
  gap: 60px;
  max-inline-size: 1260px;
  padding-block: 105px 101px;
  margin-inline: auto;
  border-radius: 20px;

  @media (width <= 768px) {
    gap: 7vw;
    padding-block: calc((100 / 390) * 106 * 1vw) 26.6vw;
    padding-inline: calc((100 / 390) * 16 * 1vw);
  }

  /* ==== article ==== */
  & article {
    display: block grid;
    gap: 70px;

    @media (width <= 768px) {
      gap: 13.6vw;
      padding-block: 0;
      font-size: calc((100 / 390) * 18 * 1vw);
    }
  }

  /* ==== section ==== */
  & section {
    display: block grid;
    gap: 44px;

    &:has(h3) {
      gap: 35px;

      @media (width <= 768px) {
        gap: 4.3vw;
      }
    }

    @media (width <= 768px) {
      gap: calc((100 / 390) * 37.8 * 1vw);
    }
  }

  .margin {
    margin-block-start: 32px;

    @media only screen and (width <= 768px) {
      margin-block-start: calc((100 / 390) * 19.1 * 1vw);
    }
  }

  /* ==== h2 ==== */
  & h2 {
    position: relative;
    margin-block: calc((1em - 1lh) / 2);
    font-size: 30px;
    font-weight: 500;

    /* line-height: 1.8; */
    color: var(--primary);
    letter-spacing: 1.8px;

    @media (width <= 768px) {
      padding-block-end: calc((100 / 390) * 6.4 * 1vw);
      font-size: calc((100 / 390) * 24 * 1vw);
      letter-spacing: calc((100 / 390) * 1.44 * 1vw);
    }
  }

  /* ==== h3 ==== */
  & h3 {
    padding-inline-start: 20px;
    margin-block: calc((1em - 1lh) / 2);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 1.44px;
    border-inline-start: 4px solid var(--primary);

    @media (width <= 768px) {
      padding-inline-start: calc((100 / 390) * 20 * 1vw);
      font-size: calc((100 / 390) * 20 * 1vw);
      line-height: 1.6;
      letter-spacing: calc((100 / 390) * 1.2 * 1vw);
    }

    & + p {
      @media only screen and (width <= 768px) {
        margin-block-start: 3.1vw;
      }
    }
  }

  /* ==== p ==== */
  & p {
    margin-block: calc((1em - 1lh) / 2);
    font-weight: 400;

    @media (width <= 768px) {
      font-size: calc((100 / 390) * 16 * 1vw);
      line-height: 1.8;
    }
  }

  /* ==== ol ==== */
  & ol {
    display: block grid;
    gap: 13.1px;
    margin-block: -22px calc((1em - 1lh) / 2);

    & li {
      margin-block: calc((1em - 1lh) / 2);
    }

    @media (width <= 768px) {
      gap: 3.2vw;
      margin-block-start: -0.6vw;
      font-size: calc((100 / 390) * 16 * 1vw);
    }
  }

  /* ==== h4 ==== */
  & h4 {
    display: block flow;
    margin-block: 26px 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: var(--green);
    text-align: left;

    @media (width <= 768px) {
      inline-size: 100%;
      margin-block: calc((100 / 390) * 26 * 1vw) 1.4vw;
      font-size: calc((100 / 390) * 16 * 1vw);
      white-space: nowrap;
    }
  }

  /* ==== table ==== */
  & table {
    max-inline-size: 710px;
    margin-block: -14px 29px;
    font-size: 15px;

    @media (width <= 768px) {
      inline-size: 100%;
      margin-block: 0 calc((100 / 390) * 12 * 1vw);
      font-size: calc((100 / 390) * 14 * 1vw);
      table-layout: fixed;
    }

    & :where(th, td) {
      padding-block: 7.5px;
      padding-inline: 22.4px;
      font-size: 16px;
      font-weight: 400;
      vertical-align: top;
      border: 1px solid #c3c4c7;

      @media (width <= 768px) {
        padding-block: 1.9vw 2vw;
        padding-inline: calc((100 / 390) * 15 * 1vw);
        font-size: calc((100 / 390) * 16 * 1vw);
        vertical-align: middle;
      }
    }

    & th {
      inline-size: 210px;
      font-weight: 500;
      background: #eee;

      @media (width <= 768px) {
        inline-size: calc((100 / 370) * 117 * 1vw);
        vertical-align: top;
        text-align: center;
      }
    }

    & td {
      @media (width <= 768px) {
        padding-inline: calc((100 / 390) * 23 * 1vw);
        word-break: break-all;

        & a {
          color: var(--primary);
          text-decoration: underline;
        }
      }
    }
  }
}
