@charset "utf-8";

body {
  overflow-x: clip;
  position: relative;
  background-color: #F0F0F0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 1) 1px, transparent 1px);
  background-size: 6.25vw 6.25vw;

  @media (max-width: 768px) {
    background-size: 80px 80px;
  }
}

/* ↓↓↓ fv ↓↓↓ */
.fv {
  margin-top: min(80px, 6.25vw);
  height: min(640px, 50vw);
  overflow-x: clip;
  @media (max-width: 768px) {
    margin-top: 64px;
    height: fit-content;
    padding-inline: 24px;
  }
  .inner {
    position: relative;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    container-type: inline-size;
    @media (max-width: 768px) {
      max-width: 100%;
    }
    .fv-ttl-group {
      position: relative;
      margin: 4.6875cqw 0 0 9.6875cqw;
      z-index: 1;
      @media (max-width: 768px) {
        margin: 56px 0 0;
      }
    }
    .text {
      width: 18.75cqw;
      font-size: 1.171875cqw;
      letter-spacing: 0.1em;
      line-height: 1.8666666;
      text-align: justify;
      word-break: break-all;
      margin: 3.125cqw 0 0 9.6875cqw;
      @media (max-width: 768px) {
        width: 100%;
        font-size: 1.5rem;
        margin: 32px 0 0;
      }
    }
    .image {
      position: absolute;
      bottom: 4.6875cqw;
      right: 6.640625cqw;
      width: 60cqw;
      @media (max-width: 768px) {
        position: relative;
        bottom: unset;
        right: unset;
        width: 327px;
        margin: 40px auto 0;
      }
    }
    div[class*="deco"] {
      position: absolute;
    }
    .deco01 {
      top: -6.25cqw;
      left: 25.234374999999996cqw;
      width: 10.9375cqw;
      @media (max-width: 768px) {
        top: -54px;
        left: 86px;
        width: 99px;
      }
    }
    .deco02 {
      top: 4.375cqw;
      right: 46.25cqw;
      width: 3.75cqw;
      @media (max-width: 768px) {
        top: 50px;
        right: 76px;
        width: 34px;
      }
    }
    .deco03 {
      top: 4.765625cqw;
      right: 27.5cqw;
      width: 7.8125cqw;
      @media (max-width: 768px) {
        top: unset;
        bottom: 142px;
        right: 3px;
        width: 56px;
      }
    }
    .deco04 {
      top: 11.328125cqw;
      right: 11.484375cqw;
      width: 2.5cqw;
      @media (max-width: 768px) {
        top: 50px;
        right: 23px;
        width: 16px;
      }
    }
    .deco05 {
      top: 18.28125cqw;
      left: 0;
      width: 7.8125cqw;
      @media (max-width: 768px) {
        top: unset;
        bottom: 98px;
        left: -31px;
        width: 57px;
        z-index: -1;
      }
    }
    .deco06 {
      bottom: 9.296875cqw;
      right: -4.53125cqw;
      width: 21.09375cqw;
      @media (max-width: 768px) {
        translate: 120px 0;
        bottom: 26px;
        left: 50%;
        width: 110px;
      }
    }
    .deco07 {
      bottom: -10.15625cqw;
      left: 4.453125cqw;
      width: 15.625cqw;
      @media (max-width: 768px) {
        bottom: -54px;
        left: -32px;
        width: 124px;
        z-index: -1;
      }
    }
  }
}
/* ↑↑↑ fv ↑↑↑ */
/* ↓↓↓ map ↓↓↓ */
.map {
  position: relative;
  max-width: 1280px;
  container-type: inline-size;
  margin: min(7.8125vw,100px) auto 0;

  @media (max-width: 768px) {
    margin-top: 100px;
  }

  .deco {
    position: absolute;
    width: 2.5cqw;
    top: 6.796874999999999cqw;
    right: 5.234375cqw;

    @media (max-width: 768px) {
      display: none;
    }
  }

  .inner {
    position: relative;
    width: 70.625cqw;
    margin: 0 auto;

    @media (max-width: 768px) {
      width: 100%;
      padding-inline: 26px;
    }

    .txt {
      position: absolute;
      width: 29.140624999999996cqw;
      font-size: max(1.171875cqw,1rem);
      font-weight: 500;
      line-height: 2.1333333333333333;
      letter-spacing: 0.04em;
      text-align: justify;
      overflow-wrap: normal;
      word-break: normal;
      line-break: strict;
      top: 4.375cqw;
      left: 0;

      @media (max-width: 768px) {
        position: initial;
        width: 100%;
        font-size: 1.5rem;
      }
    }

    .img_wrap {
      position: relative;
      width: 60.23437499999999cqw;
      margin-left: auto;

      @media (max-width: 768px) {
        width: 322px;
        container-type: inline-size;
        margin: 40px auto 0;
      }

      .img {
        width: 100%;
        display: block;
      }

      a[class*="btn"] {
        position: absolute;
        width: 15.937499999999998cqw;
        font-size: max(1.171875cqw,1rem);
        font-weight: 700;
        letter-spacing: 0.04em;
        border-radius: 9999px;
        border: 1px solid #052275;
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: background-color ease .3s, color ease .3s;
        padding: 0.625cqw 0.625cqw 0.625cqw 1.875cqw;

        @media (max-width: 768px) {
          width: fit-content;
          font-size: 1.5rem;
          gap: 16px;
          padding: 8px 8px 8px 24px;
        }

        .arrow {
          position: relative;
          width: 2.5cqw;
          height: fit-content;
          aspect-ratio: 1/1;
          border-radius: 50%;
          background-color: #052275;
          transition: background-color ease .3s;

          @media (max-width: 768px) {
            width: 32px;
          }

          &::before {
            content: '';
            position: absolute;
            width: 1.40625cqw;
            height: auto;
            aspect-ratio: 18/14;
            mask-image: url(../img/office/anchor_arrow.svg);
            mask-repeat: no-repeat;
            mask-position: center;
            mask-size: contain;
            background-color: #fff;
            transition: background-color ease .3s;
            translate: -50% -50%;
            top: 50%;
            left: 50%;

            @media (max-width: 768px) {
              width: 18px;
            }
          }
        }

        @media (min-width: 769px) {
          &:hover {
            color: #fff;
            background-color: #052275;

            .arrow {
              background-color: #fff;

              &::before {
                background-color: #052275;
              }
            }
          }
        }
      }

      .btn01 {
        top: 28.203125cqw;
        right: 25.937500000000004cqw;
      }
      .btn02 {
        top: 1.09375cqw;
        right: 18.203125cqw;
      }
      .btn03 {
        top: 12.968750000000002cqw;
        right: 1.09375cqw;
      }
      .btn04 {
        top: 23.515625cqw;
        right: 25.937500000000004cqw;
      }
      .btn05 {
        top: 30.390625cqw;
        left: 0;
      }
      @media (max-width: 768px) {
        .btn01 {
          top: unset;
          bottom: 24.84472049689441cqw;
          right: 28.88198757763975cqw;
        }
        .btn02 {
          top: 0;
          right: unset;
          left: 0;
        }
        .btn03 {
          top: 25.15527950310559cqw;
          right: unset;
          left: 0;
        }
        .btn04 {
          top: unset;
          bottom: 43.47826086956522cqw;
          right: 0;
        }
        .btn05 {
          top: unset;
          left: unset;
          bottom: 0;
          right: 0;
        }
      }
    }
  }
}
/* ↑↑↑ map ↑↑↑ */
/* ↓↓↓ block ↓↓↓ */
section[class*="block"] {
  max-width: 1280px;
  container-type: inline-size;
  margin: min(3.125vw,40px) auto 0;

  @media (max-width: 768px) {
    padding-inline: 26px;
    margin-top: 40px;
  }

  &.block01 {
    margin-top: 4.375cqw;

    @media (max-width: 768px) {
      margin-top: 80px;
    }
  }

  .inner {
    position: relative;
    width: 80.625cqw;
    background-color: #fff;
    border-radius: 20px;
    padding: 7.187499999999999cqw 6.875000000000001cqw 6.25cqw;
    margin: 0 auto;

    @media (max-width: 768px) {
      width: 100%;
      padding: 44px 23px 24px;
    }

    
    &::before {
      content: '';
      position: absolute;
      translate: -50% 0;
      top: 0;
      left: 50%;
      width: 20.625cqw;
      height: 0.3125cqw;
      background-image: var(--grad01);
      background-repeat: no-repeat;
      background-size: 100%;

      @media (max-width: 768px) {
        width: 210px;
        height: 4px;
      }
    }
  }

  .flex {
    display: flex;
    gap: 24px 4.84375cqw;
    align-items: flex-start;

    @media (max-width: 768px) {
      flex-direction: column;
    }
    .txt_group {
      flex: 1;

      .ttl {
        position: relative;
        font-size: 2.1875cqw;
        font-weight: 700;
        letter-spacing: 0.04em;
        color: #052275;
        padding-left: 2.5cqw;
  
        @media (max-width: 768px) {
          font-size: 2.4rem;
          padding-left: 32px;
        }
  
        &::before {
          content: '';
          position: absolute;
          width: 1.25cqw;
          height: auto;
          aspect-ratio: 1/1;
          border-radius: 50%;
          background: var(--grad02);
          top: 1.25cqw;
          left: 0;
  
          @media (max-width: 768px) {
            width: 16px;
            top: 13px;
          }
        }
      }
  
      .txt {
        font-size: max(1.171875cqw,1rem);
        font-weight: 500;
        line-height: 2.1333333333333333;
        letter-spacing: 0.04em;
        text-align: justify;
        overflow-wrap: anywhere;
        word-break: normal;
        line-break: strict;
        margin-top: 2.5cqw;
        
        @media (max-width: 768px) {
          font-size: 1.5rem;
          margin-top: 24px;
        }
      }
    }
    .img {
      width: 34.53125cqw;
      border-radius: 20px;
      overflow: clip;
      border: 1px solid #052275;
      flex-shrink: 0;

      @media (max-width: 768px) {
        width: 100%;
      }
    }
  }

  .box {
    border-radius: 20px;
    background-color: #F0F0F0;
    display: flex;
    gap: 32px 3.125cqw;
    align-items: flex-start;
    padding: 2.96875cqw 3.75cqw;
    margin-top: 3.125cqw;

    @media (max-width: 768px) {
      flex-direction: column;
      padding: 24px 16px;
      margin-top: 24px;
    }

    .info {
      flex: 1;
      
      @media (max-width: 768px) {
        flex: unset;
        width: 100%;
      }
    }
    
    .address {
      font-size: max(1.171875cqw,1rem);
      line-height: 2.1333333333333333;
      font-weight: 500;
      letter-spacing: 0.04em;

      @media (max-width: 768px) {
        font-size: 1.5rem;
      }
    }

    .access {
      display: flex;
      gap: 3.5937499999999996cqw;
      align-items: center;
      margin-top: 1.953125cqw;

      @media (max-width: 768px) {
        gap: 26px;
        margin-top: 24px;
      }

      .place {
        width: 6.25cqw;
        height: fit-content;
        aspect-ratio: 1/1;
        font-size: max(1.171875cqw,1rem);
        font-weight: 500;
        line-height: 1.3333333333333333;
        letter-spacing: 0.04em;
        text-align: center;
        color: #fff;
        border-radius: 50%;
        background-color: #052275;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;

        @media (max-width: 768px) {
          width: 64px;
          font-size: 1.3rem;
          line-height: 1.1538461538461537;
        }
      }

      .means {
        position: relative;
        font-size: max(1.25cqw,1rem);
        font-weight: 500;
        letter-spacing: 0.04em;
        color: var(--color-navy);

        @media (max-width: 768px) {
          font-size: 1.5rem;
          letter-spacing: 0;
        }

        &::before,
        &::after {
          content: '';
          position: absolute;
          width: 2.34375cqw;
          height: auto;
          aspect-ratio: 30/15;
          background-image: url(../img/common/under-deco02.png);
          background-repeat: no-repeat;
          background-position: center;
          background-size: contain;
          translate: 0 -50%;
          top: 50%;

          @media (max-width: 768px) {
            width: 16px;
          }
        }
        &::before {
          left: -2.96875cqw;
        }
        &::after {
          right: -2.96875cqw;
        }
        @media (max-width: 768px) {
          &::before {
            left: -20px;
          }
          &::after {
            right: -20px;
          }
        }
      }
    }

    .box_map {
      width: 27.500000000000004cqw;
      height: fit-content;
      aspect-ratio: 352/225;
      flex-shrink: 0;

      @media (max-width: 768px) {
        width: 100%;
      }

      iframe {
        width: 100%;
        height: 100%;
      }
    }
  }
}
/* ↑↑↑ block ↑↑↑ */
/* ↓↓↓ other ↓↓↓ */
.other {
  margin-block: min(120px, 9.375cqw) min(160px, 12.5cqw);
  @media (max-width: 768px) {
    margin-block: 72px 80px;
    padding-inline: 26px;
  }
  .inner {
    max-width: 1280px;
    margin: 0 auto;
    container-type: inline-size;
    @media (max-width: 768px) {
      max-width: 100%;
    }
    .content {
      width: 75cqw;
      margin: 0 auto;
      @media (max-width: 768px) {
        width: 100%;
      }
      .container {
        display: flex;
        gap: 1.875cqw;
        margin-top: 3.125cqw;
        @media (max-width: 768px) {
          flex-direction: column;
          gap: 8px;
          margin-top: 40px;
        }
        .card {
          position: relative;
          width: 17.34375cqw;
          aspect-ratio: 222/266;
          border: 1px solid var(--color-navy);
          border-radius: 12px;
          overflow: hidden;
          @media (max-width: 768px) {
            width: 100%;
            height: 160px;
            aspect-ratio: unset;
          }
          &:not([href]) {
            .arrow-wrap {
              display: none;
            }
            @media (min-width: 769px) {
              &:hover {
                .image {
                  scale: 1.0;
                }
              }
            }
          }
          .image {
            position: absolute;
            top: -1px;
            left: -1px;
            width: calc(100% + 2px);
            height: calc(100% + 2px);
            z-index: -1;
            transition: scale 300ms ease;
            @media (max-width: 768px) {
              img {
                width: 100%;
                height: auto;
                object-position: center center;
                display: block;
              }
            }
          }
          .head {
            font-size: 1.25cqw;
            font-weight: 700;
            color: #fff;
            letter-spacing: 0.1em;
            padding: 0.9375cqw 0 0 0.9375cqw;
            @media (max-width: 768px) {
              font-size: 1.6rem;
              padding: 12px 0 0 12px;
            }
          }
          .arrow-wrap {
            position: absolute;
            bottom: -1px;
            right: -1px;
            width: 3.75cqw;
            aspect-ratio: 1/1;
            border-radius: 20px 0 0 0;
            border: 1px solid var(--color-navy);
            overflow: hidden;
            @media (max-width: 768px) {
              width: 48px;
            }
            &::before {
              content: '';
              position: absolute;
              top: -1px;
              left: -1px;
              width: calc(100% + 2px);
              height: calc(100% + 2px);
              background: var(--grad02);
            }
            &::after {
              content: '';
              position: absolute;
              top: -1px;
              left: -1px;
              width: calc(100% + 2px);
              height: calc(100% + 2px);
              background-color: var(--color-navy);
              transition: opacity 300ms ease;
            }
            .arrow {
              display: block;
              position: absolute;
              top: 36%;
              left: 50%;
              translate: -50% 0%;
              width: 1.71875cqw;
              height: 1.015625cqw;
              z-index: 2;
              mask-image: url(../img/about/other-arrow.svg);
              mask-repeat: no-repeat;
              mask-size: cover;
              background-color: #fff;
              transition: background-color 300ms ease;
              @media (max-width: 768px) {
                width: 22px;
                height: 13px;
              }
            }
          }
          @media (min-width: 768px) {
            &:hover {
              .image {
                scale: 1.1;
              }
              .arrow-wrap {
                &::after {
                  opacity: 0;
                }
              }
            }
          }
        }
      }
    }
  }
}
/* ↑↑↑ other ↑↑↑ */