/* ==================================================
   FOOTER
================================================== */

.site-footer {
  position: relative;

  width: 100%;

  margin-top: 120px;

  background-color: var(--color-button);

  border-radius: 20px 20px 0 0;
}


/* ==================================================
   INNER
================================================== */

.site-footer__inner {
  position: relative;

  width: min(
    calc(100% - 80px),
    1024px
  );

  height: 260px;

  margin: 0 auto;

  padding:
    65px
    0
    35px
    375px;
}


/* ==================================================
   BRAND
================================================== */

.site-footer__brand {
  position: absolute;

  left: 0;
  bottom: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  width: 300px;
  height: 300px;

  margin: 0;

  padding:
    38px
    34px
    28px;

  background-color: #EEF7FF;

  border-radius: 22px 22px 0 0;
}


/* ==================================================
   LOGO
================================================== */

.site-footer__logo {
  display: block;

  width: 135px;

  margin:
    0
    auto
    26px;

  flex-shrink: 0;
}

.site-footer__logo img {
  display: block;

  width: 100%;
  height: auto;
}


/* ==================================================
   ADDRESS
================================================== */

.site-footer__address {
  width: 100%;

  margin: 0;

  color: var(--color-text);

  font-size: 12px;
  font-weight: 400;

  line-height: 1.8;

  text-align: left;
}


/* ==================================================
   NAV
================================================== */

.site-footer__nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: nowrap;

  gap: clamp(28px, 3.8vw, 56px);

  width: 100%;
}

.site-footer__nav-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 8px;

  flex-shrink: 0;
}


/* ==================================================
   NAV TITLE
================================================== */

.site-footer__nav-title {
  margin: 0 0 8px;

  color: var(--color-white);

  font-size: 16px;
  font-weight: 700;

  line-height: 1.5;

  white-space: nowrap;

  transition: opacity var(--transition);
}


/* ==================================================
   NAV LINK
================================================== */

.site-footer__nav-link {
  margin: 0;

  color: var(--color-white);

  font-size: 14px;
  font-weight: 400;

  line-height: 1.5;

  white-space: nowrap;

  opacity: 0.95;

  transition: opacity var(--transition);
}


@media (hover: hover) {

  .site-footer__nav-title:hover,
  .site-footer__nav-link:hover {
    color: var(--color-white);

    opacity: 0.6;
  }

}


/* ==================================================
   COPYRIGHT
================================================== */

.site-footer__copyright {
  position: absolute;

  right: 0;
  bottom: 28px;

  margin: 0;

  color: var(--color-white);

  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 400;

  line-height: 1.5;
}


/* ==================================================
   TABLET
================================================== */

@media screen and (max-width: 1024px) {

  .site-footer {
    margin-top: 100px;
  }


  /* Inner
  ---------------------------------------- */

  .site-footer__inner {
    display: flex;
    flex-direction: column;

    width: min(
      calc(100% - 60px),
      900px
    );

    height: auto;

    padding:
      50px
      0
      0;
  }


  /* Nav
  ---------------------------------------- */

  .site-footer__nav {
    order: 1;

    display: grid;

    grid-template-columns:
      repeat(3, max-content);

    justify-content: center;

    gap:
      34px
      56px;

    width: 100%;
  }


  /* Copyright
  ---------------------------------------- */

  .site-footer__copyright {
    position: static;

    order: 2;

    width: 100%;

    margin:
      45px
      0
      28px;

    text-align: center;
  }


  /* Brand
  ---------------------------------------- */

  .site-footer__brand {
    position: relative;

    left: auto;
    bottom: auto;

    order: 3;

    align-self: center;

    width: 280px;
    height: auto;
    min-height: 230px;

    margin: 0 auto;

    padding:
      28px
      24px
      30px;

    border-radius: 18px 18px 0 0;
  }


  /* Logo
  ---------------------------------------- */

  .site-footer__logo {
    width: 110px;

    margin-bottom: 22px;
  }


  /* Address
  ---------------------------------------- */

  .site-footer__address {
    font-size: 10px;

    text-align: center;
  }

}


/* ==================================================
   SP
================================================== */

@media screen and (max-width: 768px) {

  .site-footer {
    margin-top: 90px;

    border-radius: 14px 14px 0 0;
  }


  /* Inner
  ---------------------------------------- */

  .site-footer__inner {
    width: calc(100% - 40px);

    padding:
      40px
      0
      0;
  }


  /* Nav
  ---------------------------------------- */

  .site-footer__nav {
    grid-template-columns:
      repeat(3, max-content);

    justify-content: center;

    gap:
      30px
      35px;
  }

  .site-footer__nav-column {
    gap: 7px;
  }


  /* Nav Title
  ---------------------------------------- */

  .site-footer__nav-title {
    margin-bottom: 6px;

    font-size: 14px;
  }


  /* Nav Link
  ---------------------------------------- */

  .site-footer__nav-link {
    font-size: 12px;
  }


  /* Copyright
  ---------------------------------------- */

  .site-footer__copyright {
    margin:
      40px
      0
      25px;

    font-size: 12px;

    text-align: center;
  }


  /* Brand
  ---------------------------------------- */

  .site-footer__brand {
    width: min(100%, 230px);
    min-height: 200px;

    margin: 0 auto;

    padding:
      24px
      20px
      26px;

    border-radius: 16px 16px 0 0;
  }


  /* Logo
  ---------------------------------------- */

  .site-footer__logo {
    width: 95px;

    margin-bottom: 18px;
  }


  /* Address
  ---------------------------------------- */

  .site-footer__address {
    font-size: 9px;

    line-height: 1.7;

    text-align: center;
  }

}


/* ==================================================
   SMALL SP
================================================== */

@media screen and (max-width: 480px) {
  /* Nav
  ---------------------------------------- */

  .site-footer__nav {
    grid-template-columns:
      repeat(2, max-content);

    justify-content: center;

    gap:
      30px
      35px;
  }

  .site-footer__nav-column {
    gap: 7px;
  }

  .site-footer__inner {
    width: calc(100% - 32px);
  }


  /* Nav
  ---------------------------------------- */

  .site-footer__nav {
    gap:
      26px
      28px;
  }


  /* Brand
  ---------------------------------------- */

  .site-footer__brand {
    width: 210px;
    min-height: 190px;
  }

}