/* ケアマネージャーを目指す方へ ボックス */
.p_caremanager_recommend {
  background-color: #F0F5FF;
  border-radius: 8px;
  padding: 4rem;
  margin-top: 4.8rem;
}

.p_caremanager_recommend h4 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.p_caremanager_recommend h4 img {
  width: 24px;
  height: 24px;
}

.p_caremanager_recommend ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p_caremanager_recommend li {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  padding-left: 1.6rem;
  position: relative;
}

.p_caremanager_recommend li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 1px;
  background-color: #1E40AF;
  border-radius: 1px;
}

/* ラッパー要素 */
.p_caremanager_banner_wrap {
  width: 100%;
  max-width: 1200px;
  margin: 8rem auto 0;
}

/* ==========================================================================
 * バナー本体
 * ========================================================================== */
.p_caremanager_banner_link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 300px;
  padding: 0 6.2rem;
  background-color: #3583C6;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 41px 41px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  /* タッチデバイス特有のタップハイライトを無効化 */
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
 * テキストエリア
 * ========================================================================== */
.p_caremanager_banner_text {
  position: relative;
  z-index: 10;
  color: #FFFFFF;
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ==========================================================================
 * 画像エリア（ロゴ＋人物）
 * ========================================================================== */
.p_caremanager_banner_image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.p_caremanager_banner_image img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: center;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* ==========================================================================
 * アイコンエリア
 * ========================================================================== */
.p_caremanager_banner_icon {
  position: relative;
  z-index: 10;
  width: 76px;
  height: 76px;
  /* 画面幅縮小時にアイコンが潰れるのを防止 */
  flex-shrink: 0;
  background-color: #FFFFFF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2B2D33;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
 * ホバーアクション (マウス/ポインターデバイス限定)
 * ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .p_caremanager_banner_link:hover .p_caremanager_banner_image img {
    transform: scale(1.1);
  }

  .p_caremanager_banner_link:hover .p_caremanager_banner_icon {
    background-color: #F47F53;
    color: #FFFFFF;
  }
}

@media screen and (max-width: 1024px) {
  .p_caremanager_banner_link {
    height: 200px;
  }

  .p_caremanager_banner_text {
    font-size: 1.8rem;
  }

  .p_caremanager_banner_icon {
    width: 56px;
    height: 56px;
  }

  .p_caremanager_banner_image {
    left: 52%;
    height: 90%;
  }
}

@media screen and (max-width: 767px) {
  .p_caremanager_banner_link {
    align-items: flex-start;
    padding-top: 2rem;
  }

  .p_caremanager_banner_image {
    left: 50%;
    height: 60%;
  }

  .p_caremanager_banner_icon {
    width: 40px;
    height: 40px;
  }
}

/* 連携事業所エリア */
.p_caremanager_alliance {
  width: 100%;
  margin-top: 4.8rem;
}

.p_caremanager_alliance_ttl {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 2.4rem;
}

.p_caremanager_alliance_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.p_caremanager_alliance_card {
  background-color: #EAF2FF;
  border-radius: 8px;
  padding: 4rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.p_caremanager_alliance_card img {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.p_caremanager_alliance_txt h5 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.2rem;
  color: #2B2D33;
}

.p_caremanager_alliance_txt p {
  font-size: 1.6rem;
  line-height: 1.8;
  font-weight: 500;
  position: relative;
  padding-left: 1.6rem;

  &::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(0%);
    width: 8px;
    height: 1px;
    background-color: #1E40AF;
    border-radius: 2px;
  }
}







/*  */

.p_service_feature_item_current {
  flex-direction: column;
  align-items: flex-start;
  background-image: none;
}

.p_service_fv_caremanager {
  margin-bottom: 12rem;
}

#aiming .p_service_feature_item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: start;

  .p_service_feature_content {
    padding-right: 0rem;
  }

  .p_service_feature_img {
    width: 100%;
  }
}

.p_service_faq_sec {
  margin-top: 17rem;
}

@media screen and (max-width: 1024px) {
  .p_service_fv_caremanager {
    margin-bottom: 2rem;
  }

  #aiming .p_service_feature_item {
    grid-template-columns: 1fr;
    gap: 4rem;

    .p_service_feature_content {
      padding-right: 0;
    }

    .p_service_feature_img {
      width: 100%;
      margin: auto;
      max-width: 100%;

      img {
        aspect-ratio: 2;
        object-fit: cover;
      }
    }
  }

  .p_caremanager_banner_wrap {
    margin-top: 2rem;
  }
  .p_caremanager_alliance_grid {
    grid-template-columns: 1fr;
  }
  .p_caremanager_alliance_card {
    padding: 2.4rem;
    gap: 1.6rem;
  }
  .p_service_faq_sec {
    margin-top: 8rem;
  }
}



@media screen and (max-width: 767px) {
  @media screen and (min-width: 700px)  {
    .p_caremanager_banner_link {
      align-items: center;
      padding: 2rem;
    }
    .p_caremanager_banner_image {
              left: 52%;
        height: 90%;
    }
    
  }
  .p_caremanager_recommend {
    padding: 2rem;
    margin-top: 2.4rem;

  }
  .p_caremanager_alliance_grid {
    grid-template-columns: 1fr;
  }

  .p_caremanager_alliance_card {
    padding: 1rem;
    gap: 0rem;
    line-height: 1.8;
    flex-direction: column;
  }
  .p_caremanager_alliance_txt h5 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }
  .p_caremanager_alliance_ttl {
    font-size: 1.6rem;
  }
  .p_caremanager_alliance_txt p {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }
  .p_caremanager_alliance {
    margin-top: 2.4rem;
  }

}

