@charset "UTF-8";

@layer utility {
  /* =====================
    u-inner
  ===================== */
  .u-inner {
    max-inline-size: 1280px;
    margin-inline: auto;

    @media (width <= 768px) {
      padding-inline: calc((100 / 390) * 32 * 1vw);
    }
  }

  /* =====================
    u-hover
  ===================== */
  .u-hover {
    transition: opacity 0.3s ease-in-out;
    will-change: opacity;

    @media (any-hover: hover) {
      &:hover {
        opacity: 0.7;
      }
    }
  }

  /* =====================
    u-anchor
  ===================== */
  .u-anchor {
    display: block grid;
    grid-auto-flow: column;
    gap: 47px;
    align-items: center;
    justify-content: flex-start;
    inline-size: fit-content;
    padding-block: 18px;
    padding-inline: 40px;
    font-weight: 500;
    line-height: 2;
    color: var(--green);
    background: var(--gray100);
    border: 1px solid var(--green);
    border-radius: calc(infinity * 1px);
    transition: all 250ms ease 0s;

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

    /* ==== arrow ==== */
    &::after {
      inline-size: 23px;
      aspect-ratio: 23 / 12;
      content: '';
      background-color: currentcolor;
      mask-image: var(--icon-arrow);
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
      transition: inherit;
    }

    @media (width <= 768px) {
      &::after {
        inline-size: calc((100 / 390) * 19 * 1vw);
      }
    }

    @media (any-hover: hover) {
      &:hover {
        color: white;
        background: var(--green);
        box-shadow: 0 0 5px 5px color-mix(in srgb, var(--black), transparent 90%);

        &::after {
          background: white;
          transform: translateX(5%);
        }
      }
    }
  }

  .u-anchor[data-color='green'] {
    color: white;
    background: var(--green);
    border-color: var(--green);

    @media (any-hover: hover) {
      &:hover {
        color: var(--green);
        background: white;

        &::after {
          background: var(--green);
          transform: translateX(5%);
        }
      }
    }
  }

  /* ==== blank ==== */
  .u-anchor[target='_blank'] {
    pointer-events: auto;

    &::after {
      inline-size: 30px;
      aspect-ratio: 1 / 1;
      mask-image: var(--icon-blank);
    }

    @media (width <= 768px) {
      &::after {
        inline-size: calc((100 / 390) * 24 * 1vw);
      }
    }
  }

  /* ==== download ==== */
  .u-anchor[data-type='download'] {
    &::after {
      inline-size: 16px;
      aspect-ratio: 16 / 17;
      mask-image: var(--icon-download);
    }

    @media (width <= 768px) {
      &::after {
        inline-size: calc((100 / 390) * 16 * 1vw);
      }
    }
  }

  /* =====================
    u-mv
  ===================== */
  .u-mv {
    position: relative;
    min-block-size: 581px;
    padding-block: 172px 0;
    padding-inline-start: 0;

    .inner {
      max-inline-size: 1280px;
      margin-inline: auto;

      @media (width > 768px) {
        position: relative;
      }
    }

    @media (width <= 768px) {
      display: block flex;
      flex-direction: column;
      gap: 0;
      min-block-size: 136.5vw;
      padding-block: 0;
      padding-block-start: 24.6vw;
      padding-inline-start: calc((100 / 390) * 16 * 1vw);
      padding-inline-start: 0;
    }

    /* ==== bg ==== */
    &::before {
      position: absolute;
      inset-block-start: 0;
      inset-inline-start: 0;
      inline-size: 38.5%;
      block-size: 581px;
      pointer-events: none;
      content: '';
      background-image: url('../img/_common/mv-bg.webp');
      background-repeat: no-repeat;
      background-position: center right;
      background-size: cover;
    }

    @media (width > 1440px) {
      &::before {
        inline-size: 44.5%;
      }
    }

    @media (width <= 768px) {
      &::before {
        position: absolute;
        inset: unset;
        inset-block-start: 76.5vw;
        inset-inline-start: 50%;
        inline-size: 100%;
        block-size: calc((100 / 390) * 470 * 1vw);
        background-image: url('../img/_common/mv-bg_sp.webp');
        background-position: top center;
        background-size: contain;
        translate: -50% 0;
      }
    }

    /* ==== hgroup ==== */
    & hgroup {
      position: relative;
      z-index: 2;
      display: block grid;
      gap: 27px;

      @media (width <= 768px) {
        display: block flex;
        flex-direction: column;
        gap: 4.8vw;
        align-items: flex-start;
        padding-block-start: 13.4vw;
        padding-inline: calc((100 / 390) * 16 * 1vw);
        margin-block-end: 0;
      }

      /* en */
      & [lang='en'] {
        inline-size: fit-content;
        font-family: var(--title);
        font-size: 80px;
        font-weight: 500;
        line-height: 1;
        background: linear-gradient(102deg, #274827 15.2%, #aad59a 135.62%);
        background-clip: text;
        -webkit-text-fill-color: transparent;

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

      /* title */
      .title {
        inline-size: fit-content;
        margin-block: calc((1em - 1lh) / 2);
        font-family: var(--jp);
        font-size: 20px;
        font-weight: 500;
        line-height: 1;
        color: var(--gray400);

        @media (width > 768px) {
          translate: 0 -5px;
        }

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

    /* ==== picture ==== */
    .picture {
      position: absolute;
      inset-block-start: -72px;
      inset-inline-end: 0;
      pointer-events: none;

      @media (width <= 768px) {
        position: relative;
        inset: unset;
        display: block;
        inline-size: calc((100 / 390) * 358 * 1vw);
        margin-inline: auto;
      }
    }
  }

  /* =====================
    breadcrumb
  ===================== */
  .breadcrumb {
    position: absolute;
    inset-block-end: 60px;
    z-index: 2;
    display: block flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    inline-size: fit-content;
    padding-inline-start: 3px;

    @media (width > 768px) {
      inset-block-end: -221px;
    }

    @media (width <= 768px) {
      position: relative;
      inset-block-end: 0;
      gap: 0;
      padding-inline: calc((100 / 390) * 32 * 1vw);
      margin-block-start: 4.8vw;
    }

    @media (width <= 768px) {
      gap: calc((100 / 390) * 15.6 * 1vw);
      padding-inline: calc((100 / 390) * 18 * 1vw);
      margin-block-start: 9.5vw;
      font-size: calc((100 / 390) * 12 * 1vw);
    }

    /* lang */
    [lang='en'] {
      text-transform: uppercase;
    }

    & li {
      display: block flex;
      gap: 16px;
      margin-block: calc((1em - 1lh) / 2);

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

    & li + li::before {
      flex-shrink: 0;
      inline-size: 6px;
      aspect-ratio: 6 / 16;
      content: '';
      background-color: var(--green);
      mask-image: var(--icon-breadcrumb);
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
    }

    @media (width <= 768px) {
      & li + li::before {
        inline-size: calc((100 / 390) * 5 * 1vw);
      }
    }

    .item {
      display: block flex;
      gap: 7px;
      font-weight: 500;

      @media (width <= 768px) {
        gap: calc((100 / 390) * 7 * 1vw);
        font-size: calc((100 / 390) * 14 * 1vw);
        word-break: break-all;
      }

      /* home */
      &[aria-label='ホーム'] {
        transition: all 250ms ease 0s;

        @media (any-hover: hover) {
          &:hover {
            opacity: 0.7;
          }
        }

        &::before {
          inline-size: 18px;
          aspect-ratio: 18 / 19;
          content: '';
          background-color: var(--green);
          mask-image: var(--icon-home);
          mask-repeat: no-repeat;
          mask-position: center;
          mask-size: contain;
        }

        @media (width <= 768px) {
          &::before {
            inline-size: calc((100 / 390) * 16.5 * 1vw);
          }
        }
      }

      /* a */
      &:is(a) {
        transition: all 250ms ease 0s;

        @media (any-hover: hover) {
          &:hover {
            opacity: 0.7;
          }
        }
      }
    }
  }

  /* =====================
    u-head
  ===================== */
  .u-head {
    display: block grid;
    gap: 16px;
    inline-size: fit-content;
    font-family: var(--title);

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

    /* ==== [lang='en'] ==== */
    & [lang='en'] {
      margin-block: calc((1em - 1lh) / 2);
      font-size: 17px;
      font-weight: 500;
      line-height: 1;
      color: var(--green);

      &::before {
        content: '[';
      }

      &::after {
        content: ']';
      }

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

    /* ==== title ==== */
    .title {
      margin-block: calc((1em - 1lh) / 2);
      font-size: 23px;
      font-weight: 500;
      color: var(--gray400);

      @media (width <= 768px) {
        font-size: calc((100 / 390) * 21 * 1vw);
        line-height: 1.5;
        word-break: auto-phrase;
      }
    }
  }

  .u-head[data-type='large'] {
    gap: 24px;

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

    & [lang='en'] {
      @media (width <= 768px) {
        font-size: calc((100 / 390) * 14 * 1vw);
      }
    }

    & .title {
      font-size: 26px;
      letter-spacing: 1.28px;

      @media (width <= 768px) {
        font-size: calc((100 / 390) * 19 * 1vw);
        letter-spacing: calc((100 / 390) * 0.87 * 1vw);
      }
    }
  }

  /* ==== center ==== */
  .u-head[data-align='center'] {
    margin-inline: auto;
    text-align: center;
  }

  /* =====================
    u-table
  ===================== */
  .u-table {
    --_border-color: var(--gray300);

    display: block grid;
    grid-template-columns: 214px 1fr;
    inline-size: 1134px;
    margin-inline: auto;

    @media (width <= 768px) {
      grid-template-columns: 23vw 1fr;
      inline-size: 100%;
    }

    /* ==== tr ==== */
    .tr {
      display: block grid;
      grid-template-columns: subgrid;
      grid-column: 1 / -1;
      align-items: self-start;

      & :where(dt, dd) {
        block-size: 100%;
        padding-block: 19px 23.2px;
        line-height: 2 !important;

        @media (width <= 768px) {
          padding-block: calc((100 / 390) * 13 * 1vw) calc((100 / 390) * 14.9 * 1vw);
          word-break: break-all;
        }

        & a:not([href^='tel:']) {
          color: var(--green);
          text-decoration: underline;

          @media (any-hover: hover) {
            &:hover {
              text-decoration: none;
            }
          }
        }

        @media (width <= 768px) {
          & a {
            color: var(--green);
            text-decoration: underline;
          }
        }
      }

      &:last-child {
        & dt {
          border-block-end-color: var(--_border-color);
        }

        & dd {
          word-break: break-all;
          border-block-end-color: var(--_border-color);
        }
      }
    }

    /* ==== dt ==== */
    & dt {
      place-content: start;
      padding-inline-start: 24px;
      font-weight: 500;
      color: var(--green);
      border-block-start: 1px solid var(--_border-color);
      border-block-end: 1px solid transparent;

      @media (width <= 768px) {
        padding-inline-start: calc((100 / 390) * 15.7 * 1vw);
      }
    }

    /* ==== dd ==== */
    & dd {
      padding-inline: 10px;
      border-block-start: 1px solid var(--_border-color);
      border-block-end: 1px solid transparent;

      @media (width <= 768px) {
        padding-inline: calc((100 / 390) * 10 * 1vw);
      }
    }
  }

  /* =====================
    u-tabs
  ===================== */
  .u-tabs {
    margin-block: 104px 0;

    @media (width <= 768px) {
      margin-block: calc((100 / 390) * 49 * 1vw) 0;
    }

    .u-inner {
      display: block flex;
      gap: 24px;
      padding-inline: 40px;
      border-block-end: 1px solid var(--green);

      @media (width <= 768px) {
        gap: calc((100 / 390) * 14 * 1vw);
        justify-content: center;
        inline-size: calc((100 / 390) * 326 * 1vw);
        padding-inline: calc((100 / 390) * 16 * 1vw);
        text-align: center;
      }

      & a {
        position: relative;
        z-index: 2;
        display: block grid;
        place-content: center;
        min-inline-size: 292px;
        padding-block: 21.5px;
        padding-inline: 64px;
        font-weight: 500;
        line-height: 2;
        color: var(--green);
        letter-spacing: 0.48px;
        background: var(--gray200);
        border-top: 1px solid var(--green, #274827);
        border-right: 1px solid var(--green, #274827);
        border-left: 1px solid var(--green, #274827);
        border-radius: 10px 10px 0 0;
        transition: all 250ms ease 0s;

        @media (width <= 768px) {
          min-inline-size: calc((100 / 390) * 140 * 1vw);
          padding-block: calc((100 / 390) * 10 * 1vw);
          padding-inline: 0;
          font-size: calc((100 / 390) * 14 * 1vw);
          line-height: 1.4;
          letter-spacing: calc((100 / 390) * 0.42 * 1vw);
        }

        @media (any-hover: hover) {
          &:hover {
            color: white;
            background: var(--green);
          }
        }

        &::after {
          position: absolute;
          inset-block-end: -1px;
          inset-inline-start: 0;
          inline-size: 100%;
          block-size: 1px;
          pointer-events: none;
          content: '';
          background: white;
          opacity: 0;
        }

        &[aria-current='page'] {
          pointer-events: none;
          background: white;

          &::after {
            opacity: 1;
          }
        }
      }
    }
  }

  /* =====================
    .u-subhead
  ===================== */
  .u-subhead {
    position: relative;
    display: block flex;
    inline-size: fit-content;
    padding-block: 11px 12px;
    padding-inline: 48px 25px;
    font-size: 18px;
    font-weight: 500;
    color: var(--gray400);
    background: var(--lightgreen);
    border-radius: 6px;

    @media (width <= 768px) {
      display: block flex;
      flex-direction: column;
      inline-size: 100%;
      padding-block: 2.9vw 3.6vw;
      padding-inline: 9.8vw 4vw;
      font-size: calc((100 / 390) * 16 * 1vw);
      line-height: 1.4;
      border-radius: calc((100 / 390) * 6 * 1vw);
    }

    &::before {
      position: absolute;
      inset-block-start: 20px;
      inset-inline-start: 24px;
      inline-size: 16px;
      aspect-ratio: 1 / 1;
      content: '';
      background-image: url('../img/_common/circle.svg');
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
    }

    @media (width <= 768px) {
      &::before {
        inset-block-start: calc((100 / 390) * 16 * 1vw);
        inset-inline-start: calc((100 / 390) * 16 * 1vw);
        inline-size: calc((100 / 390) * 14 * 1vw);
      }
    }
  }

  /* =====================
    u-list
  ===================== */
  .u-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 33px 24px;

    @media (width <= 768px) {
      display: block flex;
      flex-direction: column;
      gap: 35px;
    }

    & li {
      position: relative;
      display: block grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
      gap: 0;
      transition: all 250ms ease 0s;

      &:has(a):hover {
        opacity: 0.7;
      }

      & img {
        block-size: 219px;
        object-fit: cover;
        object-position: center;
        border-radius: 10px;
        transition: all 300ms ease 0s;

        @media (width <= 768px) {
          inline-size: 100%;
          block-size: calc((100 / 390) * 200 * 1vw);
          border-radius: calc((100 / 390) * 10 * 1vw);
        }
      }

      @media (any-hover: hover) {
        &:hover {
          & img {
            box-shadow: 0 4px 2px rgb(0 0 0 / 25%);
            scale: 1.02;
          }
        }
      }

      /* ==== type ==== */
      .type {
        display: block grid;
        place-content: center;
        align-self: flex-start;
        inline-size: fit-content;
        padding-inline: 12px;
        margin-block-start: 21px;
        font-size: 13px;
        color: white;
        word-break: break-all;
        background: linear-gradient(102deg, #274827 15.2%, #aad59a 135.62%);
        border-radius: calc(infinity * 1px);

        @media (width <= 768px) {
          padding-inline: calc((100 / 390) * 10.6 * 1vw);
          margin-block-start: calc((100 / 390) * 13.9 * 1vw);
          font-size: calc((100 / 390) * 11 * 1vw);
        }

        &[data-type='other'] {
          background: var(--gray300);
        }
      }

      /* ==== .title ==== */
      .title {
        display: block grid;
        gap: 1px;
        line-height: 1.6;

        @media (width <= 768px) {
          display: block flow;
          margin-block-start: calc((100 / 390) * 8.1 * 1vw);
        }
      }

      /* ==== .anchor ==== */
      & .anchor {
        display: inline;
        margin-block-start: 9px;
        word-break: break-all;

        @media (width <= 768px) {
          display: inline;
        }

        &:is(a)::before {
          position: absolute;
          inset: 0;
          z-index: 1;
          inline-size: 100%;
          block-size: 100%;
          content: '';
        }
      }

      /* ==== series ==== */
      .series {
        word-break: break-all;
      }
    }
  }

  /* ==== u-scroll-table ==== */
  .u-scroll-table {
    position: relative;

    @media (width <= 768px) {
      max-inline-size: calc(infinity * 1px);
      padding-block-end: calc((100 / 390) * 32 * 1vw);
      overflow-x: auto;

      &::before {
        position: absolute;
        inset-block-start: 10%;
        inset-inline-start: 50%;
        z-index: 4;
        inline-size: calc((100 / 750) * 254 * 1vw);
        block-size: calc((100 / 750) * 177 * 1vw);
        pointer-events: none;
        content: '';
        background-image: url('../img/_common/scrollable.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        animation: scrollable 2500ms linear 0ms infinite normal forwards running;
      }

      &.touched {
        &::before {
          display: none;
        }
      }
    }

    & table {
      inline-size: 100%;
      table-layout: fixed;
      border-collapse: collapse;

      @media (width <= 768px) {
        inline-size: 100%;
      }

      & tr.self :where(th, td) {
        color: var(--green);
      }

      & th {
        font-weight: 500;
        vertical-align: top;
        background: var(--lightgreen);
      }

      & td {
        vertical-align: middle;
      }

      & :where(th, td) {
        padding-block: 13px;
        padding-inline: 16px 14px;
        line-height: 2;
        word-break: break-all;
        border: 1px solid var(--gray300);

        @media (width <= 768px) {
          padding-block: calc((100 / 390) * 10 * 1vw);
          padding-inline: calc((100 / 390) * 17 * 1vw);
        }
      }
    }
  }
}
