@charset "UTF-8";

@property --_primary-color {
  syntax: '<color>';
  inherits: false;
  initial-value: transparent;
}

@property --_secondary-color {
  syntax: '<color>';
  inherits: false;
  initial-value: transparent;
}

@layer utility {
  /* =====================
    u-inner
  ===================== */
  :where(.u-inner) {
    max-inline-size: 1280px;
    margin-inline: auto;

    @media (width <= 768px) {
      padding-inline: calc((100 / 390) * 16 * 1vw);
    }
  }

  /* =====================
    u-hover
  ===================== */
  :where(.u-hover) {
    transition: opacity 0.3s ease-in-out;
    will-change: opacity;

    @media (any-hover: hover) {
      &:hover {
        opacity: 0.7;
      }
    }
  }

  /* =====================
  u-h2-title
  ===================== */
  :where(.u-h2-title) {
    display: block grid;
    align-items: start;
    inline-size: fit-content;
    grid-template-rows: repeat(2, max-content);
    gap: 16px;

    @media (width <= 768px) {
      gap: calc((100 / 390) * 8 * 1vw);
    }

    & > span[lang='en'] {
      font-family: var(--title);
      font-size: 18px;
      text-transform: uppercase;
      background: linear-gradient(180deg, #1990bc 0%, #4ae296 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      line-height: 1.1;
      display: block flex;
      align-items: center;
      gap: 8px;

      @media (width <= 768px) {
        font-size: calc((100 / 390) * 16 * 1vw);
        gap: calc((100 / 390) * 4 * 1vw);
      }

      &::before {
        content: '';
        display: block;
        inline-size: 8px;
        aspect-ratio: 1/1;
        border-radius: 2px;
        background: linear-gradient(180deg, #1990bc 0%, #4ae296 100%);
      }

      @media (width <= 768px) {
        &::before {
          inline-size: calc((100 / 390) * 6 * 1vw);
          border-radius: calc((100 / 390) * 2 * 1vw);
        }
      }

      &[lang='en'].sdgs-txt {
        text-transform: unset;
      }
    }

    & > h2.title {
      position: relative;
      font-family: var(--serif);
      font-size: 28px;
      background: linear-gradient(180deg, #1990bc 0%, #4ae296 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      line-height: 1.1;

      @media (width <= 768px) {
        font-size: calc((100 / 390) * 20 * 1vw);
      }
    }

    &[data-align='center'] {
      justify-content: center;
      text-align: center;
      margin-inline: auto;

      & span[lang='en'] {
        justify-content: center;

        &::after {
          content: '';
          display: block;
          inline-size: 8px;
          aspect-ratio: 1/1;
          border-radius: 2px;
          background: linear-gradient(180deg, #1990bc 0%, #4ae296 100%);
        }

        @media (width <= 768px) {
          &::after {
            inline-size: calc((100 / 390) * 6 * 1vw);
            border-radius: calc((100 / 390) * 2 * 1vw);
          }
        }
      }

      & > h2.title {
        justify-content: center;
      }
    }

    &[data-color='white'] {
      & > span[lang='en'] {
        background: unset;
        -webkit-background-clip: unset;
        background-clip: unset;
        -webkit-text-fill-color: unset;
        color: #fff;

        &::before {
          background: #fff;
        }
      }
      & > h2.title {
        background: unset;
        -webkit-background-clip: unset;
        background-clip: unset;
        -webkit-text-fill-color: unset;
        color: #fff;
      }
      &[data-align='center'] {
        & > span[lang='en'] {
          &::after {
            background: #fff;
          }
        }
      }
    }
  }

  /* =====================
    u-anchor
  ===================== */
  :where(.u-anchor) {
    --_border-radius: 8px;
    --_primary-color: white;
    --_secondary-color: white;

    @media (width <= 768px) {
      --_border-radius: calc((100 / 390) * 8 * 1vw);
    }

    display: block flex;
    position: relative;
    gap: 16px;
    inline-size: fit-content;
    font-family: 'Noto Sans JP', serif;
    font-weight: 400;
    text-decoration: none;
    color: #12728d;
    isolation: isolate;
    align-items: center;
    padding-block: 11px;
    padding-inline: 32px;
    transition:
      color 250ms ease 0s,
      --_primary-color 250ms ease 0s,
      --_secondary-color 250ms ease 0s;
    overflow: clip;
    background: linear-gradient(180deg, var(--_primary-color) 0%, var(--_secondary-color) 100%);
    border-radius: var(--_border-radius);

    @media (width <= 768px) {
      font-size: calc((100 / 390) * 15 * 1vw);
      padding-block: 2.3vw;
      padding-inline: calc((100 / 390) * 28 * 1vw);
      gap: calc((100 / 390) * 16 * 1vw);
    }

    &::before {
      content: '';
      position: absolute;
      inset: 0;
      z-index: -1;
      mask-image: conic-gradient(white), conic-gradient(white);
      mask-clip: padding-box, border-box;
      mask-composite: exclude;
      border: 1px solid transparent;
      border-radius: var(--_border-radius);
      background-image: linear-gradient(to bottom in oklab, #1990bc, #4ae296);
      background-origin: border-box;
    }
    &::after {
      content: '';
      display: block flow;
      background-repeat: no-repeat;
      background-size: contain;
      background-position: center;
      background-image: url('../img/_common/arrow.svg');
      inline-size: 20px;
      block-size: 5px;
      transition: all 250ms ease 0s;
    }
    @media (width <= 768px) {
      &::after {
        inline-size: calc((100 / 390) * 20 * 1vw);
        block-size: calc((100 / 390) * 4 * 1vw);
      }
    }

    @media (any-hover: hover) {
      &:hover {
        color: white;
        --_primary-color: #1990bc;
        --_secondary-color: #4ae296;
        &::after {
          background-image: url('../img/_common/arrow-white.svg');
        }
      }
    }

    /* ==== white ==== */
    &[data-color='white'] {
      --_primary-color: transparent;
      --_secondary-color: transparent;

      color: white;
      &::before {
        background-image: linear-gradient(to bottom in oklab, white, white);
      }
      &::after {
        background-image: url('../img/_common/arrow-white.svg');
      }
      @media (any-hover: hover) {
        &:hover {
          --_primary-color: #1990bc;
          --_secondary-color: #4ae296;
          &::before {
            background-image: linear-gradient(to bottom in oklab, transparent, transparent);
          }
        }
      }
    }
    /* ==== line ==== */
    &[data-color='line'] {
      --_primary-color: transparent;
      --_secondary-color: transparent;

      @media (any-hover: hover) {
        &:hover {
          color: white;
          --_primary-color: #1990bc;
          --_secondary-color: #4ae296;
          &::after {
            background-image: url('../img/_common/arrow-white.svg');
          }
        }
      }
    }

    /* ==== center ==== */
    &[data-align='center'] {
      margin-inline: auto;
    }

    /* ==== Map ==== */
    &.map-link {
      &::after {
        background-image: url('../img/_common/link.svg');
        inline-size: 16px;
        block-size: 16px;

        @media (width <= 768px) {
          inline-size: calc((100 / 390) * 16 * 1vw);
          block-size: calc((100 / 390) * 16 * 1vw);
        }
      }
      @media (any-hover: hover) {
        &:hover {
          &::after {
            background-image: url('../img/_common/link-white.svg');
          }
        }
      }
    }
    /* ==== PDF ==== */
    &.dl-btn {
      &::after {
        background-image: url('../img/_common/dl.svg');
        inline-size: 23px;
        block-size: 19px;
      }

      @media (width <= 768px) {
        &::after {
          inline-size: calc((100 / 390) * 22 * 1vw);
          block-size: calc((100 / 390) * 18 * 1vw);
        }
      }
      @media (any-hover: hover) {
        &:hover {
          &::after {
            background-image: url('../img/_common/dl-white.svg');
          }
        }
      }
    }
  }

  /* =====================
    u-title
  ===================== */
  .u-title {
    position: relative;
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
    padding-block-end: 7px;

    @media (width <= 768px) {
      font-size: calc((100 / 390) * 18 * 1vw);
      padding-block-end: calc((100 / 390) * 8 * 1vw);
    }

    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      inline-size: 100%;
      block-size: 1px;
      background: linear-gradient(180deg, #1990bc 0%, #4ae296 100%);
    }
  }
  /* =====================
  u-mv
===================== */
  :where(.u-mv) {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    inline-size: 100%;
    block-size: 440px;
    padding-block-start: 176px;

    @media (width <= 768px) {
      block-size: calc((100 / 390) * 240 * 1vw);
      padding-block-start: calc((100 / 390) * 92 * 1vw);
    }

    &::before {
      content: '';
      position: absolute;
      inline-size: 100%;
      block-size: 440px;
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center;
      background-image: url('../img/_common/mv_bg.png');
      top: 0;
      left: 0;
      pointer-events: none;
    }

    @media (width <= 768px) {
      &::before {
        background-position: center calc((100 / 390) * -280 * 1vw);
        background-image: url('../img/_common/mv_bg_2x.png');
        block-size: calc((100 / 390) * 1977 / 2 * 1vw);
        opacity: 0.6;
      }
    }

    .u-inner {
      & > hgroup {
        position: relative;
        display: block grid;
        row-gap: 16px;
        z-index: 5;

        @media (width <= 768px) {
          row-gap: calc((100 / 390) * 8 * 1vw);
        }

        .title {
          position: relative;
          font-family: var(--serif);
          font-size: 24px;
          font-weight: bold;
          line-height: 1.1;
          color: #fff;

          @media (width <= 768px) {
            font-size: calc((100 / 390) * 16 * 1vw);
          }
        }

        & span[lang='en'] {
          display: block flow;
          font-family: var(--title);
          text-shadow: 0 0 20px rgba(0, 45, 8, 0.8);
          font-size: 64px;
          line-height: 1.1;
          text-transform: uppercase;
          color: #fff;

          @media (width <= 768px) {
            text-shadow: 0 0 calc((100 / 390) * 20 * 1vw) rgba(0, 45, 8, 0.8);
            font-size: calc((100 / 390) * 48 * 1vw);
          }
        }
      }
    }
  }

  /* =====================
  bread
===================== */
  :where(.breadcrumb) {
    position: relative;
    display: block flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    padding-inline: 40px;
    margin-block-start: 112px;
    z-index: 3;

    @media (width <= 768px) {
      font-size: calc((100 / 390) * 13 * 1vw);
      gap: calc((100 / 390) * 12 * 1vw);
      padding-inline: calc((100 / 390) * 16 * 1vw);
      margin-block-start: calc((100 / 390) * 42 * 1vw);
    }

    & > li {
      display: block flex;
      gap: 20px;

      @media (width <= 768px) {
        gap: calc((100 / 390) * 12 * 1vw);
      }
    }

    & li + li {
      &::before {
        content: '/';
        display: inline-block;
        flex-shrink: 0;
      }
    }
  }

  /* =====================
    u-table
  ===================== */
  :where(.u-table) {
    --_border-color: #e0e0e0;

    display: block grid;
    grid-template-columns: 271px 1fr;
    inline-size: 960px;
    margin-inline: auto;

    @media (width <= 768px) {
      grid-template-columns: 1fr;
      inline-size: 100%;
    }

    /* ==== tr ==== */
    .tr {
      display: block grid;
      grid-template-columns: subgrid;
      grid-column: 1 / -1;
      align-items: self-start;

      @media (width <= 768px) {
        border-block-start: 1px solid var(--_border-color);
        padding-block: calc((100 / 390) * 16 * 1vw);
      }

      & :where(dt, dd) {
        block-size: 100%;
        padding-block: 15.2px;

        @media (width <= 768px) {
          padding-block: unset;
          word-break: break-all;
        }

        & a:not([href^='tel:']) {
          text-decoration: underline;

          @media (any-hover: hover) {
            &:hover {
              text-decoration: none;
            }
          }
        }

        @media (width <= 768px) {
          & a {
            text-decoration: underline;
          }
        }
      }

      &:last-child {
        @media (width <= 768px) {
          border-block-end: 1px solid var(--_border-color);
        }

        & dt {
          border-block-end-color: var(--_border-color);

          @media (width <= 768px) {
            border-block-end-color: transparent;
          }
        }

        & dd {
          word-break: break-all;
          border-block-end-color: var(--_border-color);

          @media (width <= 768px) {
            border-block-end-color: transparent;
          }
        }
      }
    }

    /* ==== dt ==== */
    & dt {
      place-content: center;
      font-weight: 500;
      border-block-start: 1px solid var(--_border-color);
      border-block-end: 1px solid transparent;
      padding-inline: 40px 31px;

      @media (width <= 768px) {
        border-block-start: 1px solid transparent;
        padding-inline: calc((100 / 390) * 16 * 1vw);
      }
    }

    /* ==== dd ==== */
    & dd {
      border-block-start: 1px solid var(--_border-color);
      border-block-end: 1px solid transparent;
      padding-inline: 31px 40px;

      @media (width <= 768px) {
        border-block-start: 1px solid transparent;
        padding-inline: calc((100 / 390) * 16 * 1vw);
      }
    }
  }

  /* =====================
    u-bg
  ===================== */
  :where(.u-bg) {
    background-color: #e8f8f5;
  }
}
