/* --------------------------------------------------------------------------
 * Floating nav component
 * -------------------------------------------------------------------------- */

.new-l-mv__cta {
  position: relative;
  display: block;
  width: min(100%, 39rem);
  text-decoration: none;
}

.new-l-mv__cta:link,
.new-l-mv__cta:visited,
.new-l-mv__cta:hover,
.new-l-mv__cta:active {
  color: #fff;
}

.new-l-mv__cta-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 8rem;
  padding: 1.5rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #fe5d34 0%, #f27830 100%);
  box-shadow: 0 0 15px rgba(255, 255, 223, 0.75);
  font-size: 2.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.new-l-mv__cta-label {
  position: absolute;
  top: -1.8rem;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.6rem 2.5rem;
  border: 2px solid #fe5d34;
  border-radius: 999px;
  background: #fff;
  color: #00a478;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.new-l-mv__cta-icon {
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  background: url("../../../../top-new-layout/assets-new/images/new-l-mv-cta-icon.svg") center / contain no-repeat;
  transition: transform 0.2s ease;
}

.new-l-mv__cta-text {
  flex: 0 0 auto;
  text-align: center;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (hover: hover) {
  .new-l-mv__cta:hover .new-l-mv__cta-main {
    transform: translateY(-0.4rem);
    box-shadow: 0 0.8rem 2rem rgba(242, 120, 48, 0.28);
    filter: brightness(1.04);
  }

  .new-l-mv__cta:hover .new-l-mv__cta-label {
    transform: translateX(-50%) translateY(-0.2rem);
    box-shadow: 0 0.4rem 1rem rgba(254, 93, 52, 0.16);
  }

  .new-l-mv__cta--floating-sp:hover .new-l-mv__cta-label {
    transform: translateY(-0.2rem);
  }

  .new-l-mv__cta:hover .new-l-mv__cta-icon {
    transform: scale(1.05);
  }
}

.new-l-mv__cta:active .new-l-mv__cta-main {
  transform: translateY(-0.1rem);
}

.new-l-mv-floating-cta-sp {
  display: none;
}

.new-l-floating-nav {
  position: fixed;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 40;
  display: block;
  width: auto;
  max-width: 157rem;
  margin-inline: auto;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(1.6rem);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.new-l-floating-nav.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.new-l-floating-nav.is-hidden,
.new-l-floating-nav[aria-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}

.new-l-floating-nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  min-height: 9rem;
  padding: 1.5rem 11rem 1.5rem 4rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #eefce3;
  box-shadow: 0 0.5rem 0.75rem rgba(209, 226, 232, 0.95);
}

.new-l-floating-nav__inner::before,
.new-l-floating-nav__inner::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: 0.5rem;
}

.new-l-floating-nav__inner::before {
  background: url("../../../../top-new-layout/assets-new/images/new-l-floating-nav-bg.png") center / 100% 100% no-repeat;
}

.new-l-floating-nav__inner::after {
  background: url("../../../../top-new-layout/assets-new/images/new-l-floating-nav-bg.png") center / 100% 100% no-repeat;
  opacity: 0.3;
  mix-blend-mode: multiply;
}

.new-l-floating-nav__message {
  position: relative;
  flex: 0 0 auto;
  z-index: 1;
  margin: 0;
  color: #148720;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.new-l-floating-nav__cta {
  position: relative;
  flex: 0 0 auto;
  z-index: 1;
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 0.5em;
  align-items: center;
  width: 32rem;
  min-height: 6rem;
  padding: 1rem 2.4rem;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: linear-gradient(90deg, #fe5d34 0%, #f27830 100%);
  box-shadow: 0 0.2rem 0.2rem rgba(197, 214, 219, 1), 0 0 2rem rgba(216, 228, 232, 1);
  color: #fff;
  font-size: 2.1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.new-l-floating-nav__cta:link,
.new-l-floating-nav__cta:visited,
.new-l-floating-nav__cta:hover,
.new-l-floating-nav__cta:active {
  color: #fff;
}

.new-l-floating-nav__cta-icon {
  grid-column: 1;
  justify-self: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2.2rem;
  background: url("../../../../top-new-layout/assets-new/images/new-l-floating-nav-download-figma.svg") center / contain no-repeat;
}

.new-l-floating-nav__cta-text {
  grid-column: 2;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.new-l-floating-nav__close {
  position: absolute;
  top: -2rem;
  right: 1.5rem;
  z-index: 2;
  display: block;
  width: 4rem;
  height: 4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: url("../../../../top-new-layout/assets-new/images/new-l-floating-nav-close.svg") center / contain no-repeat;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

@media (hover: hover) {
  .new-l-floating-nav__cta:hover {
    transform: translateY(-0.3rem);
    box-shadow: 0 0.6rem 1.6rem rgba(242, 120, 48, 0.24);
    filter: brightness(1.04);
  }

  .new-l-floating-nav__close:hover {
    filter: brightness(1.06);
  }
}

.new-l-floating-nav__cta:active {
  transform: translateY(-0.1rem);
}

.new-l-floating-nav .new-l-floating-nav__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.new-l-floating-nav .new-l-floating-nav__message {
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.new-l-floating-nav .new-l-floating-nav__cta,
.new-l-floating-nav .new-l-floating-nav__cta:visited {
  display: grid !important;
  flex: 0 0 auto;
  grid-template-columns: 2rem 1fr;
  column-gap: 0.5em;
  align-items: center;
  width: 32rem !important;
  max-width: 32rem;
  height: 6rem;
  min-height: 6rem;
  padding: 1rem 2.4rem !important;
  box-sizing: border-box;
  color: #fff;
  font-size: 2.1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.new-l-floating-nav .new-l-floating-nav__cta-icon {
  display: block;
  grid-column: 1;
  justify-self: center;
  flex: 0 0 2rem;
}

.new-l-floating-nav .new-l-floating-nav__cta-text {
  display: block;
  grid-column: 2;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

@media screen and (max-width: 1023px) {
  .new-l-floating-nav {
    left: 1.2rem;
    right: 1.2rem;
    bottom: 2rem;
    max-width: none;
  }

  .new-l-floating-nav__inner {
    gap: 2.4rem;
    padding: 1.4rem 7.2rem 1.4rem 2.4rem;
  }

  .new-l-floating-nav__message {
    font-size: 2rem;
  }

  .new-l-floating-nav__cta {
    width: 28rem;
    min-height: 5.6rem;
    padding-inline: 2rem;
  }

  .new-l-floating-nav .new-l-floating-nav__cta,
  .new-l-floating-nav .new-l-floating-nav__cta:visited {
    grid-template-columns: 2rem 1fr;
    column-gap: 0.5em;
    width: 28rem !important;
    max-width: 28rem;
    min-height: 5.6rem;
    height: 5.6rem;
    padding-inline: 2rem !important;
    font-size: 1.8rem;
  }

  .new-l-floating-nav__cta-text {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 767px) {
  .new-l-floating-nav {
    display: none !important;
  }

  .new-l-floating-nav {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 2rem;
    width: auto;
    max-width: none;
    box-sizing: border-box;
  }

  .new-l-floating-nav .new-l-floating-nav__inner,
  .new-l-floating-nav__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.2rem;
    width: 100%;
    min-height: auto;
    padding: 1.6rem 1.6rem 1.4rem;
    box-sizing: border-box;
  }

  .new-l-floating-nav .new-l-floating-nav__message,
  .new-l-floating-nav__message {
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-right: 2.8rem;
    font-size: 1.5rem;
    line-height: 1.55;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }

  .new-l-floating-nav .new-l-floating-nav__message {
    white-space: normal;
  }

  .new-l-floating-nav .new-l-floating-nav__cta,
  .new-l-floating-nav .new-l-floating-nav__cta:visited,
  .new-l-floating-nav__cta {
    display: grid !important;
    flex: 0 0 auto;
    grid-template-columns: 1.8rem 1fr;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 5rem;
    height: auto;
    height: 5rem;
    padding: 1rem 2rem !important;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }

  .new-l-floating-nav__cta-icon {
    grid-column: 1;
    justify-self: center;
    flex-basis: 1.8rem;
    width: 1.8rem;
    height: 2rem;
  }

  .new-l-floating-nav .new-l-floating-nav__cta-text,
  .new-l-floating-nav__cta-text {
    display: block;
    grid-column: 2;
    text-align: center;
    font-size: 1.7rem;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }

  .new-l-floating-nav__close {
    top: -1.4rem;
    right: 0.8rem;
    width: 3.2rem;
    height: 3.2rem;
  }

  .new-l-mv-floating-cta-sp {
    position: fixed;
    right: 1.6rem;
    bottom: 6.4rem;
    left: 1.6rem;
    z-index: 45;
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 2rem));
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
    overflow: visible;
  }

  .new-l-mv-floating-cta-sp.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.is-floating-cta-visible .new-l-mv-floating-cta-sp {
    bottom: 7.2rem;
  }

  body.is-floating-cta-visible .pagetop {
    bottom: 19rem !important;
  }

  .new-l-mv__cta--floating-sp {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: none;
    margin-top: 0;
    margin-inline: 0;
    padding-top: 0;
    padding-right: 5.6rem;
    overflow: visible;
  }

  .new-l-mv__cta--floating-sp .new-l-mv__cta-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    width: 100%;
    min-height: 5.8rem;
    margin-top: 0;
    margin-right: 0;
    padding: 1rem 1.4rem 1rem 1rem;
    font-size: 1.7rem;
    box-shadow: 0 0.4rem 1.4rem rgba(242, 120, 48, 0.2);
  }

  .new-l-mv__cta--floating-sp .new-l-mv__cta-label {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 1;
    align-self: center;
    display: block;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    min-height: auto;
    margin-inline: auto;
    margin-bottom: -1.3rem;
    padding: 0.5rem 1.2rem;
    font-size: 1.1rem;
    line-height: 1.35;
    letter-spacing: 0.04em;
    white-space: normal;
    text-align: center;
    transform: none;
  }

  .new-l-mv__cta--floating-sp .new-l-mv__cta-icon {
    flex: 0 0 auto;
    width: 3.2rem;
    height: 3.2rem;
  }

  .new-l-mv__cta--floating-sp .new-l-mv__cta-text {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    text-align: center;
    font-size: 1.7rem;
    letter-spacing: 0.02em;
  }

  @media (max-width: 374px) {
    .new-l-mv__cta--floating-sp .new-l-mv__cta-label {
      padding: 0.4rem 1rem;
      font-size: 1rem;
      letter-spacing: 0.02em;
    }

    .new-l-mv__cta--floating-sp .new-l-mv__cta-main {
      font-size: 1.5rem;
    }

    .new-l-mv__cta--floating-sp .new-l-mv__cta-icon {
      width: 2.8rem;
      height: 2.8rem;
    }

    .new-l-mv__cta--floating-sp .new-l-mv__cta-text {
      font-size: 1.5rem;
    }
  }
}
