@charset "UTF-8";

@layer utility {
  [data-letter='uppercase'] {
    text-transform: uppercase;
  }

  [data-font='title'] {
    font-family: var(--title);
  }

  [data-font='sans-serif'] {
    font-family: 'Noto Sans JP', sans-serif;
  }

  /* =====================
    u-text-gradation
  ===================== */
  :where(.u-text-gradation) {
    inline-size: fit-content;
    background: var(--gradation);
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* =====================
    u-hero
  ===================== */
  :where(.u-hero) {
    position: relative;
    z-index: 2;
    overflow: clip;

    /* ==== slider ==== */
    .container {
      position: absolute;
      inset: 0;
      inline-size: 100%;
      block-size: var(--_block-size);
      min-block-size: inherit;
      margin-inline: auto;
      overflow: clip;
      pointer-events: none;
      touch-action: pan-y;

      @media (width <=768px) {
        inline-size: 100%;
      }

      /* ==== picture ==== */
      picture {
        position: relative;
        z-index: 1;
        display: block;
        block-size: 100%;
        min-block-size: 100%;
        pointer-events: none;
        user-select: none;

        & img {
          display: block;
          inline-size: 100%;
          block-size: var(--_block-size);
          object-fit: cover;
          object-position: center;
        }
      }

      .zoom img {
        animation: zoom 15s linear 0ms 1 normal both running;
      }
    }

    /* ==== . . . ==== */
    .bullets {
      position: absolute;
      inset-block-end: 40px;
      inset-inline: 0;
      z-index: 3;
      display: block flex;
      gap: 16px;
      justify-content: center;
      inline-size: 100%;
      margin-inline: auto;

      &[hidden] {
        display: none;
      }

      @media (width <=768px) {
        inset-block-start: 105.5vw;
        inset-block-end: unset;
        inset-inline-start: 4vw;
        gap: calc((100 / 390) * 8 * 1vw);
        justify-content: flex-start;
      }

      span {
        inline-size: 20px;
        block-size: 4px;
        margin: 0;
        background: rgb(255 255 255 / 50%);
        border-radius: 0;
        opacity: 1;

        @media (width <=768px) {
          inline-size: calc((100 / 390) * 16 * 1vw);
          block-size: calc((100 / 390) * 2 * 1vw);
          background: rgb(255 255 255 / 80%);
        }

        &.swiper-pagination-bullet-active {
          background: var(--main);

          @media (width <=768px) {
            background: var(--black);
          }
        }
      }
    }

    /* ==== (< >) ==== */
    .pagination {
      position: absolute;
      inset-block-end: 20px;
      inset-inline-end: 20px;
      z-index: 7;
      inline-size: 140px;
      aspect-ratio: 1 / 1;

      @media (width <=768px) {
        display: none;
      }

      /* ==== 円 ==== */
      .circle {
        --radius: 49;
        --circumference: calc(var(--radius) * 2 * pi * 1px);

        display: block;
        inline-size: 140px;
        aspect-ratio: 1 / 1;
        pointer-events: none;
        rotate: 0 0 1 90deg;

        @media (width <=768px) {
          inline-size: calc((100 / 390) * 87.97 * 1vw);
        }

        & circle {
          fill: none;
          stroke: white;
          stroke-width: 1px;

          &:not(.dummy) {
            stroke-dasharray: var(--circumference);
            stroke-dashoffset: var(--circumference);
            will-change: stroke-dashoffset;
          }

          &.dummy {
            stroke-opacity: 0.3;
          }
        }

        &.animation circle {
          /* Swiper delay 2000 + speed 2000 なので 4000ms で設定 */
          animation: circle 4000ms ease 0ms infinite normal forwards running;
        }

        &.animation-end circle {
          animation-name: circle-end;
          animation-duration: 1000ms;

          /* slideChange setTimeoutの秒数と一致 */
        }
      }

      /* ==== prev, next ==== */
      :where(.prev, .next) {
        --_top: 50%;

        position: absolute;
        display: grid;
        place-content: center;
        color: white;
        cursor: pointer;
        transform: translateY(-50%);
        transition: opacity 0.2s ease-in;

        @media (width <=768px) {
          inline-size: calc((100 / 750) * 13 * 1vw);
          block-size: calc((100 / 750) * 22 * 1vw);
        }
      }

      .prev {
        inset: var(--_top) auto auto 28%;
      }

      .next {
        inset: var(--_top) 28% auto auto;
        scale: -1 1;
      }
    }
  }

  /* =====================
    u-head
  ===================== */
  :where(.u-head) {
    position: relative;
    display: block flex;
    gap: 32px;
    align-items: baseline;
    align-self: flex-start;
    inline-size: fit-content;

    @media (width <=768px) {
      display: block grid;
      gap: 1.3vw;
    }

    /* ___ */
    &::after {
      position: absolute;
      inset-block-end: 0;
      inset-inline-end: 0;
      display: block flow;
      inline-size: 100vw;
      block-size: 1px;
      content: '';
      background: linear-gradient(180deg, #001636 0%, #0c7db5 100%);

      @media (width <=768px) {
        inset: unset;
        inset-block-start: 30%;
        inset-inline-start: -4.4vw;
        inline-size: 3.5vw;
      }
    }

    [lang='en'] {
      inline-size: fit-content;
      font-family: var(--title);
      font-size: 96px;
      font-weight: 400;
      line-height: 1.1;
      background: linear-gradient(180deg, rgb(0 22 54 / 20%) 0%, rgb(12 125 181 / 20%) 100%);
      background-clip: text;
      -webkit-text-fill-color: transparent;

      @media (width <=768px) {
        font-size: 12.8vw;
      }
    }

    .title {
      font-size: 18px;
      font-weight: 500;
      line-height: 1.1;
      background: var(--gradation, linear-gradient(180deg, #001636 0%, #0c7db5 100%));
      background-clip: text;
      translate: 0 -2px;
      -webkit-text-fill-color: transparent;

      @media (width <=768px) {
        font-size: calc((100 / 390) * 14 * 1vw);
        translate: unset;
      }
    }
  }

  /* =====================
    u-hgroup
  ===================== */
  :where(.u-hgroup) {
    position: relative;
    display: block grid;
    grid-template-rows: repeat(auto-fit, minmax(0, min-content));
    gap: 10px;
    align-items: flex-start;
    align-self: flex-start;
    inline-size: fit-content;
    padding-block: 18px;
    padding-inline: 31px;

    @media (width <=768px) {
      gap: calc((100 / 390) * 8 * 1vw);
      padding-block: calc((100 / 390) * 18 * 1vw);
      padding-inline: calc((100 / 390) * 32 * 1vw);
    }

    &::before,
    &::after {
      position: absolute;
      display: block flow;
      inline-size: 100%;
      block-size: 1px;
      margin-inline: auto;
      content: '';
      background: var(--gradation);
    }

    &::before {
      inset-block-start: 0;
    }

    &::after {
      inset-block-end: 0;
    }

    @media (width <=768px) {
      gap: calc((100 / 390) * 8 * 1vw);
    }

    [lang='en'] {
      inline-size: fit-content;
      padding-inline: 6px;
      margin-block: calc((1em - 1lh) / 2);
      margin-inline: auto;
      font-family: var(--title);
      font-size: 40px;
      font-weight: 400;
      line-height: 1.9;
      background: var(--gradation);
      background-clip: text;
      -webkit-text-fill-color: transparent;

      @media (width <=768px) {
        margin-block: calc((1em - 1lh) / 2);
        font-size: calc((100 / 390) * 26 * 1vw);
      }
    }

    .title {
      inline-size: fit-content;
      padding-inline-start: 6px;
      margin-block: calc((1em - 1lh) / 2);
      font-size: 18px;
      font-weight: 500;
      text-align: center;
      background: var(--gradation, linear-gradient(180deg, #001636 0%, #0c7db5 100%));
      background-clip: text;
      -webkit-text-fill-color: transparent;

      @media (width <=768px) {
        align-self: flex-start;
        font-size: calc((100 / 390) * 15 * 1vw);
      }
    }

    /* ==== white ==== */
    &[data-color='white'] {
      color: white;

      &::before,
      &::after {
        background: white;
      }

      [lang='en'] {
        color: white;
        background: unset;
        background-clip: unset;
        -webkit-text-fill-color: unset;
      }

      .title {
        color: white;
        background: unset;
        background-clip: unset;
        -webkit-text-fill-color: unset;
      }
    }

    /* ==== center ==== */
    &[data-align='center'] {
      margin-inline: auto;
      text-align: center;

      .title {
        padding-inline-start: 0;
        margin-inline: auto;
      }
    }
  }

  /* =====================
    u-anchor
  ===================== */
  :where(.u-anchor) {
    --_transition: 250ms ease 0s;
    position: relative;
    display: block flex;
    gap: 24px;
    align-items: center;
    align-self: flex-start;
    justify-content: center;
    inline-size: fit-content;
    padding-block: 13.6px;
    padding-inline: 40px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--gradation);
    background: var(--gradation);
    background-clip: text;
    border: 1px solid var(--main);
    border-image: var(--gradation) 1;
    transition:
      color var(--_transition),
      background var(--_transition);
    will-change: color, background;
    -webkit-text-fill-color: transparent;

    @media (width <=768px) {
      min-inline-size: calc((100 / 390) * 240 * 1vw);
      padding-block: 2.8vw;
      padding-inline: 6vw;
      font-size: calc((100 / 390) * 15 * 1vw);
    }

    @media (any-hover: hover) {
      &:hover {
        -webkit-text-fill-color: unset;
        color: white;
        background: var(--main);
        border-image: unset;

        &::after {
          background: white;
          transform: translateX(25%) translateY(-25%);
        }
      }
    }

    /* ==== → ==== */
    &::after {
      inline-size: 12.5px;
      aspect-ratio: 1 / 1;
      content: '';
      background: var(--gradation);
      mask-image: var(--icon-arrow);
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
      transition: all 250ms ease 0s;

      @media (width <=768px) {
        inset-inline-end: 3vw;
        inline-size: calc((100 / 390) * 12 * 1vw);
        block-size: unset;
      }
    }

    /* ==== color ==== */
    &[data-color='white'] {
      color: white;
      -webkit-text-fill-color: unset;
      background: transparent;
      background-clip: unset;
      border: 1px solid white;
      border-image: unset;

      &::after {
        background: white;
      }

      @media (any-hover: hover) {
        &:hover {
          background: color-mix(in srgb, white 40%, transparent);
        }
      }
    }

    /* ==== align ==== */
    &[data-align='center'] {
      margin-inline: auto;
    }

    /* ==== type ==== */
    &[data-type='download'] {
      gap: 14px;

      @media (width <=768px) {
        gap: calc((100 / 390) * 14 * 1vw);
      }

      &::after {
        position: relative;
        inset: unset;
        inline-size: 23px;
        block-size: 19px;
        mask-image: var(--icon-download);
        translate: unset;

        @media (width <=768px) {
          inline-size: calc((100 / 390) * 22 * 1vw);
          block-size: calc((100 / 390) * 18 * 1vw);
        }
      }
    }

    &[data-type='blank'] {
      gap: 14px;

      @media (width <=768px) {
        gap: calc((100 / 390) * 14 * 1vw);
      }

      &::after {
        inline-size: 16px;
        block-size: 16px;
        mask-image: var(--icon-blank);

        @media (width <=768px) {
          inline-size: calc((100 / 390) * 16 * 1vw);
          block-size: calc((100 / 390) * 16 * 1vw);
        }
      }
    }
  }

  /* =====================
    u-mv
  ===================== */
  :where(.u-mv) {
    position: relative;
    z-index: 3;
    min-block-size: 460px;
    padding-block-start: 24px;

    @media (width <= 768px) {
      min-block-size: calc((100 / 390) * 364 * 1vw);
      padding-block-start: calc((100 / 390) * 24 * 1vw);
    }

    &::before {
      position: absolute;
      top: 0;
      left: 0;
      inline-size: 100%;
      block-size: 460px;
      content: '';
      background-repeat: no-repeat;
      background-position: center;
      background-size: cover;
    }

    @media (width <= 768px) {
      &::before {
        block-size: calc((100 / 390) * 364 * 1vw);
      }
    }

    &::after {
      position: absolute;
      inset: 0;
      content: '';
      background: linear-gradient(0deg, rgb(0 24 56 / 10%), rgb(0 24 56 / 10%)), linear-gradient(0deg, #001636 2.21%, rgb(0 22 54 / 30%) 15.38%, rgb(255 255 255 / 0%) 40.52%);
    }

    .u-inner {
      padding-block-start: 256px;

      @media only screen and (width <= 768px) {
        padding-block-start: calc((100 / 390) * 192 * 1vw);
      }

      .u-h1-title {
        position: relative;
        z-index: 5;
        display: block grid;
        gap: 13px;

        @media (width <= 768px) {
          gap: calc((100 / 390) * 12 * 1vw);
        }

        & span[lang='en'] {
          display: block flow;
          font-family: var(--title);
          font-size: 96px;
          line-height: 1.2;
          color: #fff;
          text-transform: uppercase;

          @media (width <= 768px) {
            margin-block-start: 0;
            font-size: calc((100 / 390) * 56 * 1vw);
          }
        }

        .title {
          position: relative;
          font-size: 24px;
          font-weight: 600;
          line-height: 1.2;
          color: #fff;

          @media (width <= 768px) {
            font-size: calc((100 / 390) * 20 * 1vw);
          }
        }
      }
    }
  }

  /* =====================
    u-breadcrumb
  ===================== */
  :where(.u-breadcrumb) {
    position: absolute;
    right: 80px;
    bottom: -46px;
    z-index: 3;
    display: block flex;
    gap: 17px;
    align-items: center;
    justify-content: flex-end;
    font-size: 15px;
    color: #fff;

    @media (width <= 768px) {
      right: calc((100 / 390) * 24 * 1vw);
      bottom: calc((100 / 390) * -24 * 1vw);
      gap: calc((100 / 390) * 12 * 1vw);
      font-size: calc((100 / 390) * 13 * 1vw);
    }

    & > li {
      display: block flex;
      gap: 17px;

      @media (width <= 768px) {
        gap: calc((100 / 390) * 12 * 1vw);
      }
    }

    & li + li {
      &::before {
        display: inline-block;
        flex-shrink: 0;
        color: #fff;
        content: '/';
      }
    }
  }

  /* =====================
    u-inner
  ===================== */
  :where(.u-inner) {
    position: relative;
    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-table
  ===================== */
  :where(.u-table) {
    --_border-color: #dfe6f0;

    display: block grid;
    grid-template-columns: 310px 1fr;
    inline-size: 100%;
    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;
      min-block-size: 77px;

      @media (width <= 768px) {
        min-block-size: unset;
        padding-block: calc((100 / 390) * 16 * 1vw);
        border-block-end: 1px solid var(--_border-color);

        &:first-child {
          border-block-start: 1px solid var(--_border-color);
        }
      }

      & :where(dt, dd) {
        block-size: 100%;
        padding-block: 16px;

        @media (width <= 768px) {
          padding-block: unset;
          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 {
            text-decoration: underline;
          }
        }
      }

      &:last-child {
        & dt {
          border-block-end-color: var(--_border-color);

          @media only screen and (width <= 768px) {
            border-block-start: 1px solid transparent;
          }
        }

        & dd {
          word-break: break-all;
          border-block-end-color: var(--_border-color);

          @media only screen and (width <= 768px) {
            border-block-start: 1px solid transparent;
          }
        }
      }
    }

    /* ==== dt ==== */
    & dt {
      place-content: center;
      padding-inline-start: 88px;
      font-weight: 500;
      border-block-start: 1px solid var(--_border-color);

      @media (width <=768px) {
        padding-inline-start: 0;
        font-weight: bold;
        letter-spacing: calc((100 / 390) * 0.48 * 1vw);
        border-block-start: 1px solid transparent;
        border-block-end: none;
      }
    }

    /* ==== dd ==== */
    & dd {
      place-content: center;
      padding-inline-end: 70px;
      border-block-start: 1px solid var(--_border-color);

      @media (width <=768px) {
        padding-inline-end: 0;
        margin-block-start: calc((100 / 390) * 8 * 1vw);
        border-block-start: 1px solid transparent;
        border-block-end: none;
      }

      .address {
        display: block flex;
        gap: 16px;
        align-items: center;

        @media (width <=768px) {
          display: block flex;
          flex-direction: column;
          gap: 0;
          align-items: flex-start;
        }
      }
    }
    .indent {
      padding-left: 2em;
      text-indent: -2em;
    }
  }

  /* =====================
    u-news
  ===================== */
  :where(.u-news) {
    --_clip-path-plus: polygon(45% 0%, 55% 0%, 55% 45%, 100% 45%, 100% 55%, 55% 55%, 55% 100%, 45% 100%, 45% 55%, 0% 55%, 0% 45%, 45% 45%);
    --_clip-path-minus: polygon(45% 45%, 55% 45%, 55% 45%, 100% 45%, 100% 55%, 55% 55%, 55% 55%, 55% 100%, 55% 55%, 0% 55%, 0% 45%, 45% 45%);
    display: block grid;
    margin-inline: auto;

    @media (width <=768px) {
      inline-size: 100%;
      padding-block-end: calc((100 / 390) * 41 * 1vw);
    }

    /* ==== details ==== */
    details {
      position: relative;
      display: block grid;
      padding-inline: 40px;
      border-block-end: 1px solid var(--_border-color, '#000');

      @media (width <=768px) {
        padding-inline: calc((100 / 390) * 16 * 1vw);
      }
    }

    details[hidden] {
      display: none;
    }

    details:first-child {
      border-block-start: 1px solid var(--_border-color, '#000');
    }

    /* ==== summary ==== */
    summary {
      position: relative;
      display: block grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      justify-content: flex-start;
      inline-size: 100%;
      cursor: pointer;

      @media (width <=768px) {
        grid-template-rows: auto 1fr;
        grid-template-columns: auto;
      }

      /* (+) */
      &::after {
        position: absolute;
        inset-inline-end: 0;
        min-inline-size: 24px;
        aspect-ratio: 1 / 1;
        content: '';
        background: var(--color-text-primary, '#000');
        clip-path: var(--_clip-path-plus);
        mask-repeat: no-repeat;
        mask-position: center;
        mask-size: contain;
        translate: 0 -50%;
        transition: clip-path 150ms ease 0s;
        will-change: clip-path;

        @media (width <=768px) {
          inset-block-start: 12vw;
          inset-inline-end: 3vw;
          min-inline-size: calc((100 / 390) * 20 * 1vw);
        }
      }
    }

    /* ==== time ==== */
    time {
      align-items: center;
      inline-size: fit-content;
    }

    /* ==== h2 ==== */
    h2 {
      padding-inline-end: 27px;
      word-break: break-all;

      @media (width <=768px) {
        padding-inline-end: 8vw;
      }
    }

    /* ==== body ==== */
    .body {
      display: block grid;
      grid-template-rows: 0fr;
      grid-template-columns: 1fr;
      overflow: clip;
      transition: grid-template-rows 250ms ease 0ms;
      animation: none;
      will-change: grid-template-rows;

      .editor {
        display: block grid;
        grid-template-rows: 0fr;
        grid-auto-flow: row;
        overflow: hidden;
      }
    }

    /* ==== open ==== */
    details[open] {
      .body {
        grid-template-rows: 1fr;
      }

      /* ==== (-) ==== */
      summary::after {
        clip-path: var(--_clip-path-minus);
      }
    }
  }

  /* =====================
    u-more
  ===================== */
  :where(.u-more) {
    position: relative;
    display: block flex;
    gap: 9px;
    align-items: center;
    inline-size: fit-content;
    margin-block-start: 60px;
    margin-inline: auto;
    font-size: 16px;
    font-weight: 700;
    transition: opacity 250ms ease 0s;

    @media (any-hover: hover) {
      &:hover {
        opacity: 0.7;
      }
    }

    @media (width <=768px) {
      gap: 4vw;
      margin-block-start: 8vw;
      font-size: calc((100 / 390) * 15 * 1vw);
    }

    /* ○ */
    &::after {
      position: relative;
      z-index: 2;
      inline-size: 24px;
      aspect-ratio: 1 / 1;
      content: '';
      background: var(--main);
      border-radius: calc(infinity * 1px);

      @media (width <=768px) {
        inline-size: calc((100 / 390) * 24 * 1vw);
      }
    }

    /* ↓ */
    &::before {
      position: absolute;
      inset-block-start: 12px;
      inset-inline-end: 4.3px;
      z-index: 3;
      inline-size: 14px;
      aspect-ratio: 14 / 9;
      content: '';
      background-color: currentcolor;
      mask-image: var(--icon-bracket);
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;

      @media (width <=768px) {
        inset-block-start: 2.7vw;
        inset-inline-end: 1.2vw;
        inline-size: calc((100 / 390) * 14 * 1vw);
      }
    }

    &.on {
      display: none;
      visibility: hidden;
      pointer-events: none;
      opacity: 0;
    }
  }
}
