@charset "UTF-8";

@layer utility {
  /* =====================
    data
  ===================== */
  [data-writing='vertical'] {
    font-feature-settings: 'vrt2' on;
    @media only screen and (width <= 768px) {
      writing-mode: vertical-rl;
      text-orientation: upright;
    }
  }
  [data-align='center'] {
    margin-inline: auto;
  }

  /* =====================
    u-head
  ===================== */
  .u-head {
    text-align: center;
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.6;
    display: block flex;
    flex-direction: column;
    @media only screen and (width <= 768px) {
      font-size: calc((100 / 390) * 24 * 1vw);
    }

    &::before {
      content: '';
      order: 3;
      background-repeat: no-repeat;
      background-size: contain;
      background-position: center;
      background-image: url('../img/icon/piece/01.webp');
      inline-size: 154px;
      block-size: 192px;
      margin-block-start: 15px;
      display: block flow;
      margin-inline: auto;
    }
    @media only screen and (width <= 768px) {
      &::before {
        background-image: url('../img/icon/piece/01_sp.webp');
        inline-size: calc((100 / 390) * 258 / 2 * 1vw);
        block-size: calc((100 / 390) * 320 / 2 * 1vw);
        margin-block-start: 3.9vw;
      }
    }
    &::after {
      content: '';
      order: 2;
      background-repeat: no-repeat;
      background-size: contain;
      background-position: center;
      background-image: url('../img/_common/head.webp');
      inline-size: 800px;
      block-size: 144px;
      display: block flow;
      margin-inline: auto;
    }
    @media only screen and (width <= 768px) {
      &::after {
        background-image: url('../img/_common/head_sp.webp');
        inline-size: calc((100 / 390) * 696 / 2 * 1vw);
        block-size: calc((100 / 390) * 126 / 2 * 1vw);
      }
    }
  }

  /* =====================
    u-note
  ===================== */
  .u-note {
    max-inline-size: 923px;
    margin-inline: auto;
    font-weight: 700;
    border-radius: 16px;
    background: rgba(236, 236, 236, 0.8);
    border: 2px dashed #b7b7b7;
    font-size: 32px;
    padding-block: 30px 31px;
    @media only screen and (width <= 768px) {
      border: calc((100 / 390) * 2 * 1vw) dashed #b7b7b7;
      padding-block: 3.8vw 3.9vw;
      padding-inline: 4vw;
      border-radius: calc((100 / 390) * 16 * 1vw);
      font-size: calc((100 / 390) * 18 * 1vw);
      max-inline-size: calc((100 / 390) * 348 * 1vw);
    }

    & strong {
      color: var(--red);
    }
  }

  /* =====================
    u-hover
  ===================== */
  .u-hover {
    transition: opacity 250ms ease 0s;
    @media (any-hover: hover) {
      &:hover {
        opacity: 0.7;
      }
    }
  }
}
