@charset "UTF-8";

/* =====================
  reset
===================== */
.u-mv {
  & .wrap {
    & .u-inner {
      @media not all and (width >= 768px) {
        padding-block-start: calc((100 / 750) * 280 * 1vw);
      }

      & hgroup {
        & [lang='en'] {
          @media not all and (width >= 768px) {
            font-size: calc((100 / 750) * 90 * 1vw);
          }
        }
      }
    }
  }
}

/* =====================
  common
===================== */
.main {
  @media not all and (width >=768px) {
    .u-head span[lang='en'] {
      word-break: break-all;
    }
  }

  .contents {
    position: relative;
    z-index: 2;
    padding-block: 90px 0;

    @media not all and (width >=768px) {
      padding-block: calc((100 / 750) * 100 * 1vw) 0;
    }
  }

  .u-nav {
    & ul {
      display: flex;
      flex-wrap: wrap;
      gap: 40px 0;

      @media not all and (width >=768px) {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: unset;
        gap: 0;
      }
    }

    @media not all and (width >=768px) {
      & a {
        font-size: calc((100 / 750) * 28 * 1vw);
      }
    }
  }

  .information {
    & hgroup {
      margin-block-end: 60px;

      @media not all and (width >=768px) {
        margin-block-end: calc((100 / 750) * 80 * 1vw);
      }
    }
  }
}

/* =====================
  index
===================== */
body[data-type='index'] .main {
  .u-bg {
    @media not all and (width >=768px) {
      padding-inline: calc((100 / 750) * 40 * 1vw);
    }

    .u-inner {
      & p {
        margin-block-end: 60px;

        @media not all and (width >=768px) {
          margin-block-end: calc((100 / 750) * 80 * 1vw);
        }
      }

      & ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 60px 30px;

        @media not all and (width >=768px) {
          grid-template-columns: repeat(1, 1fr);
          gap: calc((100 / 750) * 80 * 1vw);
        }

        & li {
          position: relative;
          display: grid;
          grid-template-columns: subgrid;
          gap: 20px;

          @media (width > 768px) {
            & img {
              block-size: 240px;
              object-fit: cover;
            }
          }

          @media not all and (width >=768px) {
            gap: calc((100 / 750) * 20 * 1vw);

            & img {
              aspect-ratio: 16 / 9;
              object-fit: cover;
            }
          }

          & h2 {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 13px;
            align-items: center;
            align-self: flex-start;
            font-family: var(--yumin);
            font-size: 20px;
            font-weight: bold;

            @media not all and (width >=768px) {
              gap: calc((100 / 750) * 13 * 1vw);
              font-size: calc((100 / 750) * 32 * 1vw);
            }

            &::after {
              display: block;
              inline-size: 60px;
              aspect-ratio: 1 / 1;
              content: '';
              background-image: url('../img/common/link.svg');
              background-repeat: no-repeat;
              background-position: center;
              background-size: contain;
            }

            @media not all and (width >=768px) {
              &::after {
                inline-size: calc((100 / 750) * 80 * 1vw);
              }
            }
          }

          & a {
            position: absolute;
            inset: 0;
            z-index: 2;
            display: block;
            inline-size: 100%;
            block-size: 100%;
          }

          .mask {
            position: absolute;
            top: 39%;
            left: 50%;
            z-index: 2;
            padding-block: 10px;
            padding-inline: 10px;
            font-size: 15px;
            font-weight: bold;
            line-height: 1.46;
            text-align: center;
            white-space: nowrap;
            background: rgb(0 0 0 / 50%);
            translate: -50% -50%;

            @media not all and (width >=768px) {
              padding-block: calc((100 / 750) * 25 * 1vw);
              padding-inline: calc((100 / 750) * 25 * 1vw);
              font-size: calc((100 / 750) * 26 * 1vw);
            }
          }
        }
      }
    }

    padding-block-end: 130px;

    @media not all and (width >=768px) {
      padding-block-end: calc((100 / 750) * 160 * 1vw);
    }
  }
}

/* =====================
  detail
===================== */
body:not([data-type='index']) .main {
  /* ==== information ==== */
  .information {
    padding-block: 130px;

    @media not all and (width >=768px) {
      padding-block: calc((100 / 750) * 160 * 1vw);

      .u-inner {
        padding-inline: calc((100 / 750) * 40 * 1vw);
      }
    }

    .unit[data-id='1'] {
      position: relative;
      display: grid;
      grid-template-columns: 600px 1fr;
      grid-auto-flow: column;
      gap: 40px;
      align-items: flex-start;
      justify-content: flex-start;
      margin-block-end: 90px;

      @media not all and (width >=768px) {
        grid-template-columns: auto;
        grid-auto-flow: row;
        gap: calc((100 / 750) * 60 * 1vw);
        margin-block-end: calc((100 / 750) * 120 * 1vw);
      }

      & img {
        @media not all and (width >=768px) {
          grid-area: 1 / 1 / 1 / 1;
          aspect-ratio: 16 / 9;
          object-fit: cover;
        }
      }

      .body {
        display: grid;
        gap: 60px;

        & p {
          margin-block: calc((1em - 1lh) / 2);

          & a {
            color: var(--orange);
            text-decoration: underline;
          }
        }

        @media not all and (width >=768px) {
          gap: calc((100 / 750) * 80 * 1vw);
        }

        & ul {
          display: grid;
          grid-auto-flow: column;
          gap: 9px;
          justify-content: center;

          @media not all and (width >=768px) {
            gap: calc((100 / 750) * 24 * 1vw);
          }

          & a {
            display: block;
          }

          & img {
            display: block;
            inline-size: 24px;
            max-inline-size: 100%;
            block-size: auto;
            aspect-ratio: 1 / 1;
            object-fit: contain;
            opacity: 0.4;

            @media not all and (width >=768px) {
              inline-size: calc((100 / 750) * 52 * 1vw);
            }
          }
        }
      }

      & small {
        position: absolute;
        top: 50%;
        left: 27.6%;
        padding-block: 10px;
        padding-inline: 10px;
        font-size: 15px;
        font-weight: bold;
        line-height: 1.46;
        text-align: center;
        white-space: nowrap;
        background: rgb(0 0 0 / 50%);
        translate: -50% -50%;

        @media not all and (width >=768px) {
          top: 22%;
          left: 50.6%;
          padding-block: calc((100 / 750) * 25 * 1vw);
          padding-inline: calc((100 / 750) * 25 * 1vw);
          font-size: calc((100 / 750) * 26 * 1vw);
        }
      }
    }

    .unit[data-id='2'] {
      & iframe {
        display: block;
        inline-size: 100%;
        block-size: 400px;

        @media not all and (width >=768px) {
          block-size: calc((100 / 750) * 460 * 1vw);
        }
      }

      & address {
        padding-block: 14px;
        padding-inline: 20px;
        font-size: 14px;
        font-weight: bold;
        background: #2f2b2b;

        @media not all and (width >=768px) {
          & a {
            color: var(--orange);
            text-decoration: underline;
          }

          padding-block: calc((100 / 750) * 20 * 1vw);
          padding-inline: calc((100 / 750) * 30 * 1vw);
        }
      }
    }
  }

  /* ====  ==== */
  .staff-list {
    padding-block: 130px;
    background: var(--gray);

    .u-head {
      margin-block-end: 60px;

      @media not all and (width >=768px) {
        padding-inline: calc((100 / 750) * 40 * 1vw);
        margin-block-end: calc((100 / 750) * 80 * 1vw);
      }
    }

    @media not all and (width >=768px) {
      padding-block: calc((100 / 750) * 160 * 1vw);

      .u-inner {
        padding-inline: calc((100 / 750) * 0 * 1vw);
      }
    }

    & ul {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 60px;

      @media not all and (width >=768px) {
        grid-template-columns: repeat(1, 1fr);
        gap: calc((100 / 750) * 30 * 1vw);
      }

      & li {
        display: grid;
        grid-template: auto auto 1fr / 200px 1fr;
        grid-template-areas:
          'img h2'
          'img category'
          'p p';
        grid-row: span 4;
        gap: 20px;
        align-items: center;

        @media not all and (width >=768px) {
          grid-template: auto auto 1fr / 35vw 1fr;
          grid-template-areas:
            'img h2'
            'img category'
            'p p';
          grid-row: span 4;
          gap: calc((100 / 750) * 40 * 1vw);
          align-items: center;
          padding-block: calc((100 / 750) * 60 * 1vw);
          padding-inline: calc((100 / 750) * 40 * 1vw);

          &:nth-child(even) {
            background: var(--mouse);
          }
        }

        & h2 {
          grid-area: h2;
          align-self: flex-end;
          margin-block: calc((1em - 1lh) / 2);
          font-family: var(--yumin);
          font-size: 25px;
          font-weight: 600;

          @media not all and (width >=768px) {
            font-size: calc((100 / 750) * 37 * 1vw);
          }
        }

        .category {
          display: block;
          grid-area: category;
          align-self: flex-start;
          inline-size: fit-content;
          padding-block: 2px;
          padding-inline: 10px;
          margin-block: calc((1em - 1lh) / 2);
          font-size: 14px;
          font-weight: bold;
          background: var(--orange);
          border-radius: 5px;

          @media not all and (width >=768px) {
            padding-block: calc((100 / 750) * 4 * 1vw);
            padding-inline: calc((100 / 750) * 22.8 * 1vw);
            font-size: calc((100 / 750) * 22 * 1vw);
            line-height: 1.3;
          }

          &.visibility {
            visibility: hidden;
          }
        }

        & img {
          grid-area: img;
          aspect-ratio: 1 / 1;
          object-fit: contain;
        }

        & p {
          grid-area: p;
          align-self: flex-start;
          margin-block: 10px calc((1em - 1lh) / 2);
          font-size: 15px;

          @media not all and (width >=768px) {
            margin-block: calc((1em - 1lh) / 2);
            font-size: calc((100 / 750) * 26 * 1vw);
          }

          & a {
            color: var(--orange);
            text-decoration: underline;
          }
        }
      }
    }
  }
}
