@charset "UTF-8";

/* ==============================================
   コンテナの左右配置バリエーション（TOPページルール）
============================================== */
.p_service_container_left {
  background-color: #ffffff;
  width: calc(100% - 16rem);
  margin: 0 auto 16rem 0;
  /* 右をautoに */
  border-radius: 0 20rem 20rem 0;
  padding: 12rem 8rem 14rem 8rem;
  position: relative;
  z-index: 2;

}

.p_service_container_right {
  background-color: #ffffff;
  width: calc(100% - 16rem);
  margin: 0 0 16rem auto;
  /* 左をautoに */
  border-radius: 20rem 0 0 20rem;
  padding: 12rem 8rem 14rem 8rem;
  position: relative;
  z-index: 2;

  .p_service_flow_sec {
    margin-left: 0;
  }
}

.p_service_container_left_inner {
  max-width: 1440px;
  margin-left: auto;
}

.p_service_container_right_inner {
  max-width: 1440px;
}

@media screen and (max-width: 1439px) {
  .p_service_container_left {
    width: calc(100% - 8rem);
    border-radius: 0 12rem 12rem 0;
    padding: 8rem 6rem 8rem 4rem;
  }

  .p_service_container_right {
    width: calc(100% - 8rem);
    border-radius: 12rem 0 0 12rem;
    padding: 8rem 4rem 8rem 6rem;
  }
}

@media screen and (max-width: 1023px) {

  .p_service_container_left {
    width: calc(100% - 4rem);
    border-radius: 0 6rem 6rem 0;
    padding: 6.4rem 0rem 6.4rem 0rem;
    margin-bottom: 8rem;
  }

  .p_service_container_right {
    width: calc(100% - 4rem);
    border-radius: 6rem 0 0 6rem;
    padding: 6.4rem 0rem 6.4rem 0rem;
    margin-bottom: 8rem;
    .p_service_flow_sec {
      margin-left: auto;
    }
  }
}

@media screen and (max-width: 767px) {
  .p_service_container_left {
    width: calc(100% - 2rem);
    border-radius: 0 4.8rem 4.8rem 0;
    padding: 4.8rem 0rem 4.8rem 0rem;
    margin-bottom: 8rem;
  }

  .p_service_container_right {
    width: calc(100% - 2rem);
    border-radius: 4.8rem 0 0 4.8rem;
    padding: 4.8rem 0rem 4.8rem 0rem;
    margin-bottom: 8rem;
  }
}




.p_service_feature_disability {
  margin-top: 8rem;
}












/* ==============================================
   ページ内ナビゲーション（ハウス・Nホームへのジャンプ）
============================================== */
.p_disability_nav {
  display: flex;
  gap: 2.4rem;
  justify-content: center;
}

.p_disability_nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 4rem;
  background-color: #ffffff;
  border: 2px solid #C3CEDE;
  color: #2B2D33;
  /* 初期文字色を明示 */
  border-radius: 8px;
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 580px;
}

.p_disability_nav_txt span {
  display: block;
}

.p_disability_nav_sub {
  font-size: 2rem;
  font-weight: bold;
}

.p_disability_nav_main {
  font-size: 3.2rem;
  font-weight: bold;
  margin-top: 1rem;
}

/* ==============================
   右側のアイコンラッパー (追加部分)
============================== */
.p_disability_nav_icon_wrap {
  width: 76px;
  height: 76px;
  background-color: #1E40AF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.p_disability_nav_icon_wrap svg {
  width: 24px;
  height: 24px;
  position: absolute;
  color: #ffffff;
  transition: all 0.4s ease-in-out;
}

.p_disability_nav_icon_1 {
  transform: translateX(0);
  opacity: 1;
}

.p_disability_nav_icon_2 {
  transform: translateX(-50px);
  opacity: 0;
}

/* ==============================
   ホバー時の反転＆アニメーション
============================== */
.p_disability_nav a:hover {
  background-color: #1E40AF;
  border-color: #1E40AF;
  color: #ffffff;
}

.p_disability_nav a:hover .p_disability_nav_icon_wrap {
  background-color: #ffffff;
}

.p_disability_nav a:hover .p_disability_nav_icon_wrap svg {
  color: #1E40AF;
}

.p_disability_nav a:hover .p_disability_nav_icon_1 {
  transform: translateX(50px);
  opacity: 0;
}

.p_disability_nav a:hover .p_disability_nav_icon_2 {
  transform: translateX(0);
  opacity: 1;
}
@media screen and (max-width: 1023px) {
  .p_disability_nav a {
    padding: 2.4rem;
    gap: 1.6rem;
  }
  
  .p_disability_nav_sub {
    font-size: 1.6rem;
  }
  
  .p_disability_nav_main {
    font-size: 2.4rem;
    margin-top: 0.8rem;
  }
  
  .p_disability_nav_icon_wrap {
    width: 64px;
    height: 64px;
  }
  
  .p_disability_nav_icon_wrap svg {
    width: 20px;
    height: 20px;
  }
  
}

@media screen and (max-width: 767px) {
  .p_disability_nav {
    flex-direction: column;
    align-items: stretch; /* スマホで100%幅に広げる */
    gap: 1.6rem;
  }

  .p_disability_nav a {
    width: 100%;
    max-width: 100%;
    padding: 2rem;
    justify-content: space-between;
    gap: 1.6rem;
  }

  .p_disability_nav_sub {
    font-size: 1.4rem;
  }

  .p_disability_nav_main {
    font-size: 2.2rem;
    margin-top: 0.4rem;
  }

  /* スマホ版での四角とアイコンサイズ */
  .p_disability_nav_icon_wrap {
    width: 48px;
    height: 48px;
  }
  
  .p_disability_nav_icon_wrap svg {
    width: 18px;
    height: 18px;
  }

  /* スマホ版での移動距離の微調整（四角が小さくなるため） */
  .p_disability_nav_icon_2 {
    transform: translateX(-40px);
  }
  .p_disability_nav a:hover .p_disability_nav_icon_1 {
    transform: translateX(40px);
  }
}


/* ==============================================
   サブサービス用ヘッダー（ハウス・Nホーム）
============================================== */
.p_sub_service_header {
  display: flex;
  align-items: flex-end;
  margin-bottom: 8rem;
}

.p_sub_service_header_left {
  width: 50%;
}

.p_sub_service_ttl {
  font-size: clamp(2.4rem, 2vw + 1rem, 4rem);
  font-weight: bold;
  color: #2B2D33;
}

.p_sub_service_header_right {
  width: 50%;
  font-size: 1.6rem;
  line-height: 1.8;
  color: #2B2D33;
  font-weight: 500;
}

@media screen and (max-width: 767px) {
  .p_sub_service_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.4rem;
  }

  .p_sub_service_header_left,
  .p_sub_service_header_right {
    width: 100%;
  }

  .p_sub_service_ttl {
    margin-top: 1.6rem;
  }
}




/*  */

#house .p_service_label {
  margin-bottom: 1rem;
}

.p_service_detail {
  margin-bottom: 14rem;
}

#house_voice .p_service_voice_list {
  gap: 4rem;
}






.bg_stage:nth-of-type(2) {
  margin-top: 105% !important;
}

.bg_stage:nth-of-type(3) {
  margin-top: 100% !important;
}

.bg_stage:nth-of-type(3) {
  margin-top: 100% !important;
}

.bg_stage:nth-of-type(4) {
  margin-top: 100% !important;
}

@media screen and (max-width: 1279px) {
  .bg_stage:nth-of-type(5) {
    margin-top: 60% !important;
  }

}



@media screen and (max-width: 1023px) {
    .bg_stage:nth-of-type(2) {
    margin-top: 130% !important;
  }
   .bg_stage:nth-of-type(8) {
    margin-top: 30% !important;

   }
  .p_service_voice_list {
    grid-template-columns: 1fr !important;
  }
  .p_service_detail {
    margin-bottom: 10rem;
  }
  .p_service_feature_disability {
    margin-top: 6rem;
  }
  #disability_welfare_services {
    .p_service_fv_content {
      margin-bottom: 0;
    }
  }

  .p_sub_service_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.4rem;
  }
  .p_sub_service_header_right {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .p_sub_service_header {
    margin-bottom: 4rem;
  }
  .p_service_detail {
    margin-bottom: 6rem;
  }
  .bg_stage:nth-of-type(2n) {
    margin-top: 150% !important;
  }
  .bg_stage:nth-of-type(8) {
    margin-top: 10% !important;
  }
}