@charset "UTF-8";
@media screen and (min-width: 1921px) {
  .bg_stage:nth-child(1) {
    transform: translateX(0%) !important;
  }

  .bg_stage:nth-child(2) {
    transform: scaleX(-1) translateX(50%) !important;
  }
}

.bg_stage:nth-of-type(3) {
  visibility: hidden !important;
}

@media screen and (max-width: 1439px) {
  .bg_stage:nth-child(3) {
    margin-top: 0% !important;
  }


}

@media screen and (max-width: 1023px) {
  .bg_stage:nth-of-type(2) {
    margin-top: 90% !important;
  }

  .bg_stage:nth-child(3) {
    visibility: visible !important;
  }

}

.bg_stage.is_company_top {
  position: absolute;
  top: -224px;
  right: -40px;
  left: auto;
  width: 1160px;
  pointer-events: none;
  z-index: 0;

  @media screen and (min-width: 1921px) {
    right: 9%;
  }

  @media screen and (max-width: 1920px) {
    width: 60.41vw;
    top: -11.66vw;
    right: -2.08vw;
  }

  @media screen and (max-width: 1439px) {
    top: -10vw;
  }

  @media screen and (max-width: 1023px) {
    width: 80vw;
    top: 80vw;
    right: -5vw;
  }

  @media screen and (max-width: 767px) {
    width: 90vw;
    top: 12vw;
    right: -8vw;
  }

}

/* ==============================================
   ヒーローエリア（コンテナ外）
============================================== */
.p_office_hero {
  padding-top: 27.6rem;
  padding-bottom: 4rem;
  max-width: 1200px;
  width: calc(100% - 8rem);
  margin: 0 auto;
}

.p_office_title {
  font-size: clamp(3.2rem, 3.333vw, 6.4rem);
  font-weight: bold;
  color: #2B2D33;
  margin-bottom: 14rem;
  line-height: 1.5;
}

/* ==============================================
   全体コンテナ
============================================== */
.p_office_container {
  background-color: #ffffff;
  width: calc(100% - 16rem);
  max-width: 1600px;
  margin: 0 auto 16rem;
  border-radius: 10rem;
  padding: 12.5rem 0 14rem;
  position: relative;
  z-index: 2;
}

.p_office_inner {
  max-width: 1200px;
  width: calc(100% - 8rem);
  margin: 0 auto;
}

/* ==============================================
   ナビゲーション (グループ会社アンカーリンク)
============================================== */
.p_office_nav_wrap {
  display: flex;
  align-items: flex-start;
  padding-bottom: 8rem;
  margin-bottom: 14rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1203' height='3' viewBox='0 0 1203 3'%3E%3Cline id='border' x2='1200' transform='translate(1.5 1.5)' fill='none' stroke='%23c3cede' stroke-linecap='round' stroke-width='3' stroke-dasharray='1 8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom left;
}

.p_office_nav_label {
  font-size: 2.4rem;
  font-weight: bold;
  color: #1E40AF;
  flex-shrink: 0;
  margin-right: 60px;
  padding-top: 0.4rem;
}

.p_office_nav_list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 48px;
  row-gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* --- 上段3つ・下段2つの横幅制御 --- */
/* 上3つ: 均等分割 */
.p_office_nav_list li:nth-child(1),
.p_office_nav_list li:nth-child(2),
.p_office_nav_list li:nth-child(3) {
  width: calc((100% - 96px) / 3);
  /* 48pxの余白が2つ分引かれる */
}

/* 下2つ: ケアマネセンター(長) と 株式会社N(短) の比率 (約60% : 40%) */
.p_office_nav_list li:nth-child(4) {
  width: calc(60% - 24px);
}

.p_office_nav_list li:nth-child(5) {
  width: calc(40% - 24px);
}

.p_office_nav_link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #2B2D33;
  padding-bottom: 1rem;
  border-bottom: 2px solid #C3CEDE;
  transition: all 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.p_office_nav_icon {
  margin-right: 1.6rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.p_office_nav_icon svg {
  display: block;
  transition: transform 0.3s ease;
}

.p_office_nav_text {
  display: flex;
  flex-direction: column;
}

.p_office_nav_name {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.p_office_nav_desc {
  font-size: 1.4rem;
  font-weight: 500;
  color: #667080;
  line-height: 1.4;
}

.p_office_nav_link:hover {
  border-bottom-color: #1E40AF;
  opacity: 1;
}

.p_office_nav_link:hover .p_office_nav_name {
  color: #1E40AF;
}

.p_office_nav_link:hover .p_office_nav_icon svg {
  transform: translateY(4px);
}

/* ==============================================
   レスポンシブ対応 (office.cssの既存部分に上書き)
============================================== */
@media screen and (max-width: 1023px) {
  .p_office_nav_wrap {
    flex-direction: column;
  }

  .p_office_nav_label {
    width: 100%;
    margin-right: 0;
    margin-bottom: 2.4rem;
  }

  .p_office_nav_list {
    width: 100%;
  }

  /* タブレット時は一律2カラムにリセット */
  .p_office_nav_list li:nth-child(n) {
    width: calc(50% - 24px);
  }
}

@media screen and (max-width: 767px) {

  /* スマホ時は1カラムにリセット */
  .p_office_nav_list li:nth-child(n) {
    width: 100%;
  }

  .p_office_nav_name {
    font-size: 1.8rem;
  }

  .p_office_nav_desc {
    font-size: 1.2rem;
  }
}

/* ==============================================
   各会社セクション
============================================== */
.p_office_section {
  margin-bottom: 14rem;
}

.p_office_section:last-child {
  margin-bottom: 0;
}

/* 見出しの余白調整（c_sec_header を流用） */
.p_office_section .c_sec_header {
  margin-bottom: 4.8rem;
}

/* ==============================================
   事業所アイテム (カード)
============================================== */
.p_office_list {
  display: flex;
  flex-direction: column;
}

.p_office_item {
  display: flex;
  gap: 4rem;
  padding-bottom: 4rem;
  margin-bottom: 4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1203' height='3' viewBox='0 0 1203 3'%3E%3Cline id='border' x2='1200' transform='translate(1.5 1.5)' fill='none' stroke='%23c3cede' stroke-linecap='round' stroke-width='3' stroke-dasharray='1 8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom left;
}

.p_office_item:last-child {
  /* background-image: none; */
  /* padding-bottom: 0; */
  /* margin-bottom: 0; */
}

.p_office_item_img {
  width: 360px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  /* background-color: #F5F7FA; */
}

.p_office_item_img img {
  width: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1.5;
}

.p_office_item_info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.p_office_item_name {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.p_office_item_details {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.p_office_item_details p {
  font-size: 1.6rem;
  color: #2B2D33;
  line-height: 1.8;
  margin: 0;
  font-weight: 500;
}

.p_office_item_note {
  margin-top: 1.6rem !important;
      font-size: 1.4rem !important;
  /* color: #667080 !important; */
}

.p_office_item_map {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #1E40AF;
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.3s ease;
  width: fit-content;
}

.p_office_item_map svg {
  width: 24px;
  height: 24px;
  padding: 2px;
}

.p_office_item_map:hover {
  text-decoration: none;
}

/* ==============================================
   レスポンシブ対応
============================================== */
@media screen and (max-width: 1439px) {
  .p_office_hero {
    padding-top: 18rem;
    width: calc(100% - 8rem);

  }

  .p_office_container {
    width: calc(100% - 8rem);
  }

  .p_office_title {
    margin-bottom: 10rem;
    width: calc(100% - 8rem);
    margin-right: auto;
    margin-left: auto;
  }
}

@media screen and (max-width: 1023px) {
  .p_office_hero {
    padding-top: 16rem;
  }
  .p_office_title {
    margin-bottom: 8rem;
  }

  .p_office_container {
    width: calc(100% - 4rem);
    border-radius: 4.8rem 4.8rem ;
    padding: 6.4rem 0 10rem;
  }

  .p_office_nav_wrap {
    flex-direction: column;
    padding-bottom: 4rem;
  }

  .p_office_nav_label {
    margin-bottom: 2.4rem;
  }

  .p_office_item {
    flex-direction: column;
  }

  .p_office_item_img {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .c_breadcrumb {
    margin-bottom: 2rem;
  }
  .p_office_hero {
    padding-top: 12rem;
    padding-bottom: 0rem;
    width: calc(100% - 4rem);
  }

  .p_office_container {
    width: calc(100% - 4rem);
    border-radius: 4.8rem;
    padding: 4.8rem 0 4rem;
    margin-bottom: 6.4rem;
  }

  .p_office_inner {
    width: calc(100% - 4rem);
  }
  .p_office_nav_wrap {
    margin-bottom: 8rem;
  }
  .p_office_section {
    margin-bottom: 4rem ;
  }

  .p_office_title {
    font-size: 2.8rem;
    width: 100%;
    margin-bottom: 4rem;
  }

  .p_office_nav_list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .p_office_item_name {
    font-size: 1.8rem;
  }
}