/**
 * CSS File: hero-rcNav.css
 * 2026-06-16 | Final checked
 */

.p-cmn-rec-car-hero__content {
  position: relative;
  width: 100%;
  overflow: hidden;
  text-align: center;
  z-index: var(--z_10-content);
}

.p-cmn-rec-car-hero__nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    to bottom,
    rgba(0, 178, 169, 1) 0%,
    rgba(0, 178, 169, 0.95) 30%,
    rgba(0, 178, 169, 0.3) 65%,
    rgba(0, 178, 169, 0) 90%
  );
  backdrop-filter: blur(10px);
  transition: none;
}

.p-cmn-rec-car-hero__nav.is-open {
  right: 0;
  visibility: visible;
  transition: right 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.p-cmn-rec-car-hero__nav-inner {
  padding-top: 90px;
}

.p-cmn-rec-car-hero__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.p-cmn-rec-car-hero__grid br,
.p-cmn-rec-car-hero__grid p {
  display: none;
}

.p-cmn-rec-car-hero__btn {
  width: 85%;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 18px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.p-cmn-rec-car-hero__btn-icon {
  display: none;
}

.p-cmn-rec-car-hero__btn,
.p-cmn-rec-car-hero__btn-icon {
  transition: all 0.3s ease;
}

.p-cmn-rec-car-hero__title {
  color: #fff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-size: 2.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.2s ease,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.p-cmn-rec-car-hero__title.is-animated {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .p-cmn-rec-car-hero__nav {
    position: relative;
    right: 0;
    left: auto;
    width: 100%;
    height: auto;
    background: rgba(40, 45, 55, 0.7);
    display: block;
    padding: 25px 0;
    transition: none;
    visibility: visible;
  }

  .p-cmn-rec-car-hero__nav-inner {
    padding-top: 0;
  }

  .p-cmn-rec-car-hero__title {
    font-size: 3.5rem;
    margin-bottom: 60px;
  }

  .p-cmn-rec-car-hero__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
  }

  .p-cmn-rec-car-hero__grid:has(
    > .p-cmn-rec-car-hero__btn:nth-child(4):last-child
  ) {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
  }

  .p-cmn-rec-car-hero__btn {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    border-radius: 10px;
    padding: 10px 10px;
    min-height: 100px;
    text-decoration: none;
    border-bottom: none;
    white-space: normal;
    justify-self: center;
  }

  .p-cmn-rec-car-hero__grid .p-cmn-rec-car-hero__btn:hover {
    background: #fff;
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }

  .p-cmn-rec-car-hero__grid
    .p-cmn-rec-car-hero__btn:hover
    .p-cmn-rec-car-hero__btn-icon {
    transform: scale(1.05);
  }

  .p-cmn-rec-car-hero__btn-icon {
    display: block;
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }

  .p-cmn-rec-car-hero__btn-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .p-cmn-rec-car-hero__btn-text {
    display: block;
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .p-cmn-rec-car-hero__title {
    font-size: 4.5rem;
  }
}

.u-show-sp {
  display: none;
}

@media screen and (max-width: 767px) {
  .u-show-sp {
    display: inline;
  }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .p-cmn-rec-car-hero__nav.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .p-cmn-rec-car-hero__nav-inner {
    padding-top: 0px;
    width: 100%;
  }

  .p-cmn-rec-car-hero__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
  }

  .p-cmn-rec-car-hero__btn {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}
