#kanrenLink .kanren-link-container {
  margin: 60px auto;
}
#kanrenLink .pref-heading {
  line-height: 1.2;
  background: #2161BA;
  border-radius: 4px;
  color: #fff;
  font-size: 1.125em;
  position: relative;
  padding: 0.5em 0 0.5em 1.8em;
  margin: 1em 0;
}
#kanrenLink .pref-heading::before {
  content: url(/assets/img/icon/icon-ball.svg);
  display: inline-block;
  margin-right: 0.2em;
  position: absolute;
  top: 50%;
  left: 0.5em;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 1em;
  height: 1em;
}


#kanrenLink .kanren-link-block {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
}

#kanrenLink .kanren-link-block .kanren-link-column {
  max-width: 100%;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
}


#kanrenLink .kanren-link-block .link-list-group li {
  display: block;
  position: relative;
  border-bottom: 1px solid #e3e3e3;
  border-left: 1px solid #e3e3e3;
  border-right: 1px solid #e3e3e3;
  /*padding: 0.25em 0em;*/
}
#kanrenLink .kanren-link-block .link-list-group li:first-child {
  border-top: 1px solid #e3e3e3;
  /*border-top-right-radius: 4px;
  border-top-left-radius: 4px;*/
}
#kanrenLink .kanren-link-block .link-list-group li:last-child {
  /*border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;*/
}
#kanrenLink .kanren-link-block .link-list-group li a {
  display: block;
   padding-left: 1em;
  -webkit-transition: background-color 0.25s ease-out, color 0.25s ease-out;
  transition: background-color 0.25s ease-out, color 0.25s ease-out;
  font-size: 0.875em;
  padding-top: 0.675em;
  padding-bottom: 0.675em;
  font-weight: normal;
}
#kanrenLink .kanren-link-block .link-list-group li a:hover {
  background-color: #eceeef;
  text-decoration: none;
}


#kanrenLink .facility-heading {
  background: #fff;
  color: #1F518B;
  font-weight: bold;
  padding: 0.25em 0em;
}

#kanrenLink .facility-heading::before {
  content: "●";
}

@media screen and (min-width: 61.25em) {
  #kanrenLink .kanren-link-block {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
  }
}
@media screen and (min-width: 61.25em) {
  #kanrenLink .kanren-link-block .kanren-link-column {
    max-width: calc(33%);
    margin-right: 10px;
  }
}

/* 親コンテナを2列のGridに変更 */
#kanrenLink .kanren-link-block {
  display: grid !important;
  grid-template-columns: 1fr 1fr; /* 左右等幅の2列 */
  gap: 0 20px; /* カラム間の横余白（お好みで調整可） */
}

/* 各カラムのレスポンシブ幅指定を解除 */
#kanrenLink .kanren-link-block .kanren-link-column {
  max-width: 100% !important;
  width: 100% !important;
}

/* 1つ目：病院（左列・上） */
#kanrenLink .kanren-link-block .kanren-link-column:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

/* 2つ目：介護老人保健施設（左列・下：病院の下に配置） */
#kanrenLink .kanren-link-block .kanren-link-column:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  margin-top: 1.5em; /* 病院との間の隙間調整 */
}

/* 3つ目：関連施設（右列・上から下まで跨ぐ） */
#kanrenLink .kanren-link-block .kanren-link-column:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / span 2; /* 右側の1行目〜2行目をぶち抜いて配置 */
}

/* スマホ表示（画面幅768px以下）では1列に並べる場合 */
@media screen and (max-width: 768px) {
  #kanrenLink .kanren-link-block {
    grid-template-columns: 1fr;
  }
  #kanrenLink .kanren-link-block .kanren-link-column {
    grid-column: auto !important;
    grid-row: auto !important;
    margin-top: 1.5em;
  }
  #kanrenLink .kanren-link-block .kanren-link-column:first-child {
    margin-top: 0;
  }
}

