@layer components {
  .btn-primary {
    display: block;
    width: 100%;
  }
}

@layer components {
  .footer-c2a {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background-color: var(--color-white);

    @media (max-width: 1024px) {
      grid-template-columns: 100%;
    }

    >.item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: min(83px, calc(83 / 1832 * 100vw)) 20px;
      color: var(--color-white);
      text-align: center;
      background: var(--color-new-reno-alpha);
      transition: background-color 0.2s ease-out;

      @media (max-width: 1024px) {
        padding: 44px 10px;
      }

      @media (hover: hover) {
        &:hover {
          background-color: var(--color-light-brown);
        }
      }

      &[data-theme="renoera"] {
        background-color: var(--color-new-renoera);

        @media (hover: hover) {
          &:hover {
            background-color: var(--color-black);
          }
        }
      }
    }

    >.item>.name {
      font-size: min(1.25rem, calc(20 / 1832 * 100vw));
      font-weight: bold;
      font-feature-settings:
        "palt" on,
        "kern" off;
      line-height: calc(30 / 20);
      letter-spacing: 0.08em;

      @media (max-width: 1024px) {
        font-size: 1rem;
      }
    }

    >.item>.logo {
      display: block;
      width: auto;
      height: min(80px, calc(80 / 1832 * 100vw));
      margin-top: min(24px, calc(24 / 1832 * 100vw));

      @media (max-width: 1024px) {
        height: 80px;
        margin-top: 24px;
      }
    }

    >.item>.text {
      margin-top: min(45px, calc(45 / 1832 * 100vw));
      font-size: min(1.5rem, calc(24 / 1832 * 100vw));
      font-weight: bold;
      font-feature-settings:
        "palt" on,
        "kern" off;
      line-height: calc(36 / 40);
      letter-spacing: 0.12em;

      @media (max-width: 1024px) {
        margin-top: 24px;
        font-size: 1.25rem;
      }

      &::after {
        display: inline-block;
        width: 32px;
        height: 32px;
        margin-left: 4px;
        content: "";
        background: url("/renovation/assets/images/icon-new-window.svg") no-repeat;
        background-size: contain;
        transform: translateY(5px);

        @media (max-width: 1024px) {
          width: 24px;
          height: 24px;
          transform: translateY(3px);
        }
      }
    }
  }
}

@layer components {
  .footer {
    position: relative;
    z-index: 6;
    padding: 80px 20px;
    background-color: var(--color-white);

    @media (max-width: 1024px) {
      padding: 64px 20px 20px;
    }

    >.footer-in {
      max-width: 1792px;
      margin: 0 auto;
    }

    >.footer-in>.logo {
      display: block;
      width: 356px;
      margin: 0 auto;

      @media (max-width: 1024px) {
        width: 208px;
        margin-left: 0;
      }
    }

    >.footer-in>.logo>img {
      display: block;
      width: 100%;
      height: auto;
    }

    >.footer-in>.footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 24px;
      justify-content: center;
      margin-top: 60px;

      @media (max-width: 1024px) {
        flex-direction: column;
        gap: 6px;
      }
    }

    >.footer-in>.footer-links>li {
      position: relative;
      padding-left: 20px;
      line-height: 1.1;

      &::before {
        position: absolute;
        top: 10px;
        left: 4px;
        display: block;
        width: 8px;
        height: 1px;
        content: "";
        background-color: var(--color-dark);
      }
    }

    >.footer-in>.footer-links>li>a {
      font-size: 0.875rem;

      @media (max-width: 1024px) {
        font-size: 0.75rem;
      }

      @media (hover: hover) {
        &:hover {
          text-decoration: underline;
        }
      }
    }

    >.footer-in>.copyright {
      margin-top: 28px;
      font-family: var(--font-family-inter);
      font-size: 0.75rem;
      color: var(--color-basic-brown);
      text-align: center;

      @media (max-width: 1024px) {
        font-size: 0.6875rem;
        text-align: left;
      }
    }
  }
}

@layer components {
  .header {
    padding: 0 20px;

    @media (max-width: 1024px) {
      height: 48px;
      padding: 0;
    }

    .header-in {
      max-width: 1792px;
      height: 64px;
      padding: 11px 16px 0;
      margin: 0 auto;
      background-color: var(--color-white);

      @media (max-width: 1024px) {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10;
        width: 100%;
        max-width: none;
        height: 48px;
        padding: 8px 20px 0;
      }
    }

    >.header-in>.logo {
      display: block;
      width: 223px;

      @media (max-width: 1024px) {
        width: 178px;
      }
    }

    >.header-in>.logo>img {
      display: block;
      width: 100%;
      height: auto;
    }
  }
}

@layer components {
  h1 {
    font-size: 1.5em;
  }
}

@layer components {
  .hero {
    padding: 0 20px;

    @media (max-width: 1024px) {
      padding: 0;
    }

    >.inner {
      position: relative;
      max-width: 1792px;
      margin: 0 auto;
    }

    >.inner>.heading {
      position: absolute;
      top: calc(50% - min(35px, calc(35 / 1832 * 100vw)));
      left: 0;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: min(8px, calc(8 / 1832 * 100vw));
      align-items: center;
      width: 100%;
      font-size: min(2rem, calc(32 / 1832 * 100vw));
      font-weight: bold;
      font-feature-settings:
        "palt" on,
        "kern" off;
      line-height: 1.5;
      color: var(--color-white);
      text-align: center;
      letter-spacing: 0.12em;
      transform: translateY(-50%);

      @media (max-width: 1024px) {
        font-size: min(1rem, calc(16 / 375 * 100vw));
      }
    }

    >.inner>.heading>span {
      display: block;
    }

    >.inner>.heading>span>.text-lg {
      font-size: min(3.5rem, calc(56 / 1832 * 100vw));
      letter-spacing: 0.08em;

      @media (max-width: 1024px) {
        font-size: 1.375rem;
        letter-spacing: 0.04em;
      }
    }

    >.inner>.image>img {
      display: block;
      width: 100%;
      height: auto;
    }

    >.inner>.caption-l,
    >.inner>.caption-r {
      position: absolute;
      bottom: 8px;
      left: 8px;
      font-size: 0.75rem;
      line-height: 1;
      color: var(--color-white);

      @media (max-width: 1024px) {
        inset: 8px 8px auto auto;
        font-size: 0.6875rem;
      }
    }

    >.inner>.caption-r {
      right: 8px;
      left: auto;

      @media (max-width: 1024px) {
        top: auto;
        bottom: 8px;
      }
    }
  }
}

@layer components {
  .nav-global {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 5;
    display: flex;
    width: 100dvw;
    max-width: 1114px;
    box-shadow: 0 0 40px rgb(0 0 0 / 15%);
    transform: translateX(-50%);

    @media (max-width: 1024px) {
      right: 20px;
      left: 20px;
      width: auto;
      max-width: none;
      transform: none;
    }

    >.link {
      position: relative;
      display: flex;
      flex: 1;
      gap: min(16px, 16 / 1154 * 100vw);
      align-items: flex-end;
      padding: min(24px, 24 / 1154 * 100vw) min(20px, 20 / 1154 * 100vw);
      color: var(--color-dark);
      background-color: var(--color-white);
      transition:
        color 0.2s ease-out,
        background 0.2s ease-out;

      @media (hover: hover) {
        &:hover {
          color: var(--color-white);
          background-color: var(--color-new-reno-alpha);

          &:last-child {
            background-color: var(--color-new-renoera);
          }

          >.logo>img {
            opacity: 0;

            &[data-logo="white"] {
              opacity: 1;
            }
          }

          >.text::after {
            background-image: url("/renovation/assets/images/icon-new-window.svg");
          }
        }
      }

      @media (max-width: 1024px) {
        align-items: center;
        height: 39px;
        padding: 8px;
      }

      &:last-child {
        border-left: 1px solid var(--color-border-grey);
      }
    }

    >.link>.logo {
      position: relative;
      display: block;
      flex: 1;

      @media (max-width: 1024px) {
        display: none;
      }
    }

    >.link>.logo>img {
      display: block;
      width: auto;
      height: min(64px, 64 / 1154 * 100vw);
      margin: 0 auto;
      transition: opacity 0.2s ease-out;

      &[data-logo="white"] {
        position: absolute;
        top: 0;
        left: 50%;
        opacity: 0;
        transform: translateX(-50%);
      }
    }

    >.link>.text {
      display: flex;
      flex-shrink: 0;
      gap: min(4px, 4 / 1154 * 100vw);
      align-items: center;
      font-size: min(1rem, 16 / 1154 * 100vw);
      font-weight: 500;
      white-space: nowrap;

      &::after {
        display: block;
        width: min(20px, 20 / 1154 * 100vw);
        height: min(20px, 20 / 1154 * 100vw);
        content: "";
        background: url("/renovation/assets/images/icon-new-window-black.svg") no-repeat;
        background-size: contain;

        @media (max-width: 1024px) {
          position: absolute;
          right: 0;
          bottom: 0;
          width: 20px;
          height: 20px;
          background-image: url("/renovation/assets/images/icon-new-window-02.svg");
        }
      }
    }

    >.link>.text>.pc {
      @media (max-width: 1024px) {
        display: none;
      }
    }

    >.link>.text>.sp {
      display: none;

      @media (max-width: 1024px) {
        display: block;
        font-size: min(0.75rem, 12 / 375 * 100vw);
        font-weight: bold;
        font-feature-settings:
          "palt" on,
          "kern" off;
        line-height: 1;
        color: var(--color-basic-brown);
        letter-spacing: 0.02em;
      }
    }

    >.link>.text>.sp>small {
      font-size: min(0.625rem, 10 / 375 * 100vw);
      font-style: normal;
    }
  }
}