@layer components {
  :where(.c-prose) :is(h1, h2, h3, h4, h5, h6) {
    font-feature-settings: "palt";
    line-height: 1.3;
  }

  :where(.c-prose) p {
    text-align: justify;
  }

  :where(.c-prose) :is(th, td) p {
    margin-bottom: 0;
    text-align: left;
  }

  :where(.c-prose) img {
    max-width: 100%;
    height: auto;
  }

  :where(.c-prose) a {
    vertical-align: top;
  }

  :where(.c-prose) a:is(:hover, :focus, :active) {
    background-color: transparent;
    text-decoration: none;
  }

  :where(.c-prose) h2 {
    margin: 0 0 2em;
    color: var(--c-green-deep);
    font-size: 1.9em;
    font-weight: 700;
    text-align: center;
  }

  :where(.c-prose) h3 {
    position: relative;
    margin-top: 1em;
    margin-bottom: 0.6em;
    padding-bottom: 8px;
    border-bottom: 4px solid rgb(0 151 44 / 0.3);
    color: var(--c-ink);
    font-size: 1.7em;
    font-weight: 700;
  }

  :where(.c-prose) h3::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    border-bottom: 4px solid var(--c-green);
  }

  :where(.c-prose) h4 {
    position: relative;
    margin-top: 1.5em;
    padding: 4px 8px 4px 26px;
    background-color: rgb(0 151 44 / 0.3);
    color: var(--c-ink);
    font-size: 1.3em;
    font-weight: 700;
  }

  :where(.c-prose) h4::after {
    content: "";
    position: absolute;
    top: 0.8em;
    left: 0;
    width: 18px;
    height: 4px;
    background-color: var(--c-green);
  }

  .c-prose__phrase {
    display: inline-block;
  }

  .c-prose__img {
    display: block;
  }

  .c-prose__center {
    text-align: center;
  }

  .c-prose__right {
    text-align: right;
  }

  .c-prose__left {
    text-align: left;
  }

  @media (min-width: 768px) {
    .c-prose__br-sp {
      display: none;
    }
  }

  @media (min-width: 992px) {
    .c-prose__large {
      font-size: 2em;
    }
  }

  @media (max-width: 767px) {
    :where(.c-prose) h2 {
      font-size: 22px;
    }

    :where(.c-prose) h3 {
      font-size: 18px;
    }

    :where(.c-prose) h4 {
      font-size: 17px;
    }

    .c-prose__br-pc {
      display: none;
    }
  }

  :where([data-site="recruit"] .c-prose) h2 {
    color: var(--c-teal);
    font-family: var(--f-mincho);
    font-size: 1.85em;
    font-weight: 500;
    text-align: start;
  }

  :where([data-site="recruit"] .c-prose) h3 {
    margin-top: 1em;
    margin-bottom: 0.6em;
    padding: 4px 10px 6px;
    border-top: 3px solid var(--c-blue);
    border-bottom: 0;
    background-color: var(--c-teal-pale);
    color: var(--c-blue);
    font-size: 1.4em;
  }

  :where([data-site="recruit"] .c-prose) h3::before {
    content: "";
    position: absolute;
    top: -3px;
    width: 67px;
    border-bottom: 3px solid var(--c-teal);
  }

  :where([data-site="recruit"] .c-prose) h3::after {
    top: -3px;
    bottom: auto;
    left: 67px;
    width: 1px;
    border-bottom: 3px solid var(--c-white);
  }

  :where([data-site="recruit"] .c-prose) h4 {
    padding: 4px 0 4px 26px;
    background-color: transparent;
  }

  :where([data-site="recruit"] .c-prose) h4::after {
    top: 45%;
    width: 28px;
    height: 2px;
    background-color: var(--c-blue);
    transform: rotate(-64deg);
  }

  :where([data-site="recruit"] .c-prose) h5 {
    position: relative;
    margin-top: 1.5em;
    padding: 4px 0;
    color: var(--c-blue);
    font-size: 1.2em;
    font-weight: 700;
  }

  @media (min-width: 768px) {
    :where([data-site="recruit"]) .c-prose__large {
      font-size: 2.2em;
    }
  }

  @media (max-width: 767px) {
    :where([data-site="recruit"] .c-prose) h2 {
      font-size: 22px;
    }

    :where([data-site="recruit"] .c-prose) h3 {
      font-size: 18px;
    }

    :where([data-site="recruit"] .c-prose) h4 {
      font-size: 17px;
    }

    :where([data-site="recruit"] .c-prose) :is(h5, h6) {
      font-size: 16px;
    }
  }
}
