/*
Theme Name: Care Support Lightning Child
Theme URI: https://care-support.biz/
Description: ケアサポート施設ページ用 Lightning 子テーマ
Author: Care Support
Template: lightning
Version: 1.0.1
Text Domain: care-support-lightning-child
*/

/*
 * 施設詳細は案内ページとして見せるため、ブログ用の
 * 「前の記事 / 次の記事」と New!! 表示を施設ページだけ非表示にする。
 */
.single-facility .postNextPrev {
  display: none;
}

.cs-facility-details {
  margin-top: 3rem;
}

.cs-facility-section {
  margin-bottom: 3rem;
}

.cs-facility-heading {
  margin: 0 0 1.25rem;
  padding: 0.3rem 0 0.3rem 0.8rem;
  border-left: 5px solid #24756d;
  color: #1e554f;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  line-height: 1.45;
}

.cs-facility-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.cs-facility-table th,
.cs-facility-table td {
  padding: 0.9rem 1rem;
  border: 1px solid #dce6e3;
  vertical-align: top;
  text-align: left;
}

.cs-facility-table th {
  width: 30%;
  background: #eef6f4;
  color: #244f4a;
  font-weight: 700;
}

.cs-facility-access {
  margin: 0 0 1.25rem;
}

.cs-facility-access dt {
  margin-top: 1rem;
  color: #244f4a;
  font-weight: 700;
}

.cs-facility-access dt:first-child {
  margin-top: 0;
}

.cs-facility-access dd {
  margin: 0.25rem 0 0;
}

.cs-facility-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cs-facility-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border: 2px solid #24756d;
  border-radius: 8px;
  background: #24756d;
  color: #fff !important;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
}

.cs-facility-button:hover,
.cs-facility-button:focus-visible {
  background: #195d56;
  border-color: #195d56;
}

.cs-facility-button--instagram {
  background: #b83280;
  border-color: #b83280;
}

.cs-facility-button--contact {
  background: #d96b29;
  border-color: #d96b29;
}

.cs-facility-button--outline {
  background: #fff;
  color: #24756d !important;
}

.cs-facility-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-facility-related a {
  display: block;
  padding: 1rem;
  border: 1px solid #dce6e3;
  border-radius: 8px;
  background: #f7faf9;
  font-weight: 700;
  text-decoration: none;
}

.cs-facility-feed {
  overflow: hidden;
}

@media (max-width: 575px) {
  .cs-facility-table,
  .cs-facility-table tbody,
  .cs-facility-table tr,
  .cs-facility-table th,
  .cs-facility-table td {
    display: block;
    width: 100%;
  }

  .cs-facility-table th {
    border-bottom: 0;
  }

  .cs-facility-table td {
    border-top: 0;
  }

  .cs-facility-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cs-facility-button {
    width: 100%;
  }

  .cs-facility-related {
    grid-template-columns: 1fr;
  }
}
