/**
 * File Name: common-service-bpo.css
 * 2026-07-06 | スマホ画像センタリング＆下余白完全解消版
 */

/* ==============================================================================
 * 1. 2連タブナビゲーション
 * ============================================================================== */
#id-cmn-service-hero.p-cmn-service-hero__nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    to bottom,
    rgba(10, 197, 180, 1) 0%,
    rgba(10, 197, 180, 0.95) 30%,
    rgba(10, 197, 180, 0.3) 65%,
    rgba(10, 197, 180, 0) 90%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  transition: none;
}

/* #id-cmn-service-hero.p-cmn-service-hero__nav.is-open {
  right: 0;
  visibility: visible;
  pointer-events: auto;
  transition: right 0.4s cubic-bezier(0.65, 0, 0.35, 1);
} */

#id-cmn-service-hero .p-cmn-service-hero__nav-inner {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

#id-cmn-service-hero .p-cmn-service-hero__grid {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

#id-cmn-service-hero .p-cmn-service-hero__btn {
  flex: 1 1 50%;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin: 0;
  padding: 0 10px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid #0ac5b4;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

#id-cmn-service-hero .p-cmn-service-hero__btn-text {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 0.95rem;
  color: #0ac5b4;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.03em;
  display: block;
}

#id-cmn-service-hero .p-cmn-service-hero__btn.is-active {
  background: linear-gradient(135deg, #1e3a8a, #172554);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

#id-cmn-service-hero
  .p-cmn-service-hero__btn.is-active
  .p-cmn-service-hero__btn-text {
  color: #ffffff;
}

/* ==============================================================================
 * 2. タブパネル表示制御
 * ============================================================================== */
.p-rec-disability-bpo-panel {
  display: none;
  width: 100%;
}

.p-rec-disability-bpo-panel.is-active {
  display: block;
  animation: fadenum 0.4s ease forwards;
}

@keyframes fadenum {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
  }
}

/* ==============================================================================
 * 4. MEDIA QUERIES
 * ============================================================================== */

@media screen and (max-height: 500px) and (orientation: landscape) {
  #id-cmn-service-hero.p-cmn-service-hero__nav {
    position: relative;
    top: auto;
    right: 0;
    left: auto;
    width: 100%;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    visibility: visible;
    pointer-events: auto;
    padding: 20px 0;
  }
  #id-cmn-service-hero .p-cmn-service-hero__btn {
    height: 44px;
  }
  #id-cmn-service-hero .p-cmn-service-hero__btn-text {
    font-size: 0.9rem;
  }
}

@media screen and (min-width: 768px) and (min-height: 501px) {
  #id-cmn-service-hero.p-cmn-service-hero__nav {
    max-width: 720px;
    position: relative;
    top: auto;
    right: 0;
    left: auto;
    width: 100%;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: var(--z_10-content);
    visibility: visible;
    pointer-events: auto;
  }

  #id-cmn-service-hero .p-cmn-service-hero__grid {
    gap: 20px;
  }

  #id-cmn-service-hero .p-cmn-service-hero__btn {
    height: 56px;
    border-width: 2px;
  }

  #id-cmn-service-hero .p-cmn-service-hero__btn-text {
    font-size: 1.15rem;
  }

  #id-cmn-service-hero .p-cmn-service-hero__btn:not(.is-active):hover {
    background-color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }
}

@media screen and (min-width: 1024px) and (min-height: 501px) {
  #id-cmn-service-hero.p-cmn-service-hero__nav {
    max-width: 800px;
  }

  #id-cmn-service-hero .p-cmn-service-hero__grid {
    gap: 24px;
  }

  #id-cmn-service-hero .p-cmn-service-hero__btn {
    height: 64px;
    border-width: 3px;
  }

  #id-cmn-service-hero .p-cmn-service-hero__btn-text {
    font-size: 1.25rem;
  }
}
