/* ページ全体のコンテナ設定 */
.nursing-facility-single {
  line-height: 1.6;
  max-width: 1200px; /* 横幅制限 */
  margin: 0 auto;   /* 中央寄せ */
  padding: 2rem 5rem;
  box-sizing: border-box;
}

.section-title {
  font-size: 1.2rem;
  color:#505050;
  font-weight: bold;
}

.facility-info{
  margin-bottom: 24px;
}

.facility-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 基本情報部分ここから */
.facility-info-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #D2497E;
}

.facility-info-action {
  display: flex;
  align-items: center;
  gap: 20px;
}

.facility-info-evaluation {
  display: flex;
  align-items: center;
  gap: 10px;
}

.facility-info-evaluation-icon {
  width: 32px;
  height: 32px;
  fill: #25A1CA;
}

.facility-info-evaluation-text{
  color: #25A1CA;
}

.facility-info-evaluation-label {
  font-size: 10px;
}

.facility-info-evaluation-value {
  font-size: 14px;
}
/* 基本情報部分ここまで */

.facility-meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.capacity {
  background-color: #D2497E;
  color: #FFFFFF;
  padding: 4px 16px;
  border-radius: 6px;
  font-weight: bold;
}

.capacity strong {
  font-weight: bold;
  font-size: 1.5rem;
}

.facility-policy,
.facility-overview,
.facility-availability,
.facility-map,
.facility-promo {
  color: #505050;
  margin-bottom: 2rem;
}

/* テーブルデザイン */
.facility-overview .overview-grid {
  display: grid;
  grid-template-columns: 220px 1fr; /* 左:固定幅 / 右:残り */
  border: 1px solid #D6D9DE;
  background: #fff;
  font-weight: bold;
}

.facility-overview .overview-item {
  display: contents; /* labelとvalueをgridのセル扱いに */
}

.facility-overview .overview-label {
  display: flex;              /* フレックスに変更 */
  align-items: center;        /* 縦中央揃え */
  background: #F6F7F9;
  padding: 14px 16px;
  border: 1px solid #D6D9DE;
  font-weight: 600;
}

.facility-overview .overview-value {
  padding: 14px 16px;
  border: 1px solid #D6D9DE;
  font-size: 0.95rem;
}

.facility-overview .overview-value .overview-service-type-value {
  display: flex;
  gap: 16px;
}

/* 新規受け入れ状況枠 */
.availability-content {
  display: flex;
  justify-content: stretch;
  gap: 1rem;
}

.availability-content table{
    height: 100%;
}

.availability-left {
  flex: 0 0 60%;
  max-width: 60%;
}

.availability-right {
  flex: 0 0 40%;
  max-width: 40%;
}

/* マップ枠 */
.facility-map iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* プロモーション枠 */
.facility-promo {
  background: #f3f6fb;
  border-radius: 6px;
}

.facility-promo-header {
    text-align: center;
    background-color: #1565C0;
    border-radius: 12px 12px 0 0;
    color: white;
    font-weight: bold;
    padding: 1rem;
}

.facility-promo-body {
    padding: 1rem;
    background-color: #F2F2F2;
    border-radius: 0px 0px 12px 12px;
}

.facility-promo-main-text {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.facility-promo .btn-detail {
  display: flex;
  justify-content: center;
  width: 400px;
  padding: 0.6rem 2rem;
  margin-top: 0.5rem;
  border-radius: 4px;
  background: #d6336c;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.facility-promo .btn-detail:hover {
  background: #e45a88;
  color: #fff;
}

.facility-availability > div > div.availability-left > table > tbody > tr:nth-child(1){
    background-color: #FFFAD9;
}

.print_btn {
  width: 100px;
  height: 40px;
  border: 2px solid #505050;   /* 枠線 */
  color: #505050;              /* 文字色 */
  background: transparent;     /* 背景はサイト背景と同じに */
  border-radius: 8px;          /* 角丸 */
  display: flex;               /* 中央寄せ用 */
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, color 0.2s;
}
.print_btn:hover {
  background-color: #505050;   /* hover時は反転 */
  color: #fff;
}
.facility-image-section {
  text-align: center;
  margin-bottom: 2rem;
}
.facility-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.cta-section {
  margin-bottom: 2rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PC: 3列 */
  gap: 16px;
  align-items: stretch;
}

.cta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 10px;
  font-weight: bold;
  padding: 12px 8px; /* 余白少し付与（必要なら削ってOK） */
}
.cta-title {
  margin: 0;
  font-size: 1rem;
}
.cta-button {
  width: 280px;
  max-width: 100%;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 2px solid #d6336c;
  background: #d6336c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .05s ease;
  user-select: none;
}
.cta-button:hover {
  background-color: #e45a88;
  color: #fff;
}
.cta-button:active {
  transform: translateY(1px);
}
.cta-button:focus-visible {
  outline: 3px solid rgba(37,102,178,.35);
  outline-offset: 2px;
}
/* 🔹 disabled 用スタイル */
.cta-button:disabled,
.cta-button[disabled] {
  background: #EFF2F6;
  color: #505050;
  border: 2px solid #EFF2F6; /* ボーダーも背景になじませる */
  opacity: 1; /* グレーにしすぎず、指定色をそのまま出す */
}

.cta-button:disabled:hover,
.cta-button[disabled]:hover {
  background: #EFF2F6; /* hoverしても変化なし */
  color: #505050;
}

/* セクション背景と余白（薄いクリーム色に） */
.staff-structure {
  background: #FFFBEA;
  border-radius: 8px;
  padding: 8px 24px;
  margin: 24px 0;
}
.staff-structure__title {
  margin: 0 0 12px;
  color: #505050;
  font-weight: 700;
  font-size: 1.1rem;
}

/* グリッド配置：PC3列/タブレット2列/モバイル1列 */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 1024px) {
  .charts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .charts-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* 各カード */
.chart-card { margin: 0; }
.chart-card__caption {
  text-align: center;
  color: #6B7280; /* グレー */
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 0.95rem;
}
/* キャンバスの高さをCSSで制御（Chart.jsは親要素に追従） */
#chartEmployment, #chartAge, #chartGender {
  width: 100% !important;
  height: 240px !important;
}

.director-interview {
  background: #FFFBEA;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  min-height: 300px;
}
.di-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}
.di-title {
  margin: 0 0 8px;
  color: #505050;
  font-size: 1.35rem;
  font-weight: 800;
}
.di-subtitle {
  margin: 0 0 8px;
  color: #D2497E;
  font-weight: 800;
}
.di-name {
  margin: 0 0 16px;
  color: #505050;
  font-weight: 700;
}
.di-body {
  color: #6B7280;
  line-height: 1.9;
  font-size: 1rem;
}
.di-body p { 
  margin: 0; 
}
.di-media {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.di-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.docs-card {
  border-radius: 10px;
  overflow: hidden;                 /* 角丸に合わせて中身をクリップ */
  box-shadow: 0 1px 2px rgba(16,24,40,.06);
  margin: 20px 0;
  border: 1px solid #e5e7eb;        /* ごく薄い境界線 */
}
.docs-card__header {
  background: #1565C0;              /* ブルー */
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 12px 16px;
  font-size: 1.05rem;
}
.docs-card__body {
  background: #f8f9fb;              /* 薄いグレー */
  padding: 20px 22px;
}
.docs-list {
  margin: 0;
  padding: 0;
}
.docs-list__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}
.docs-list__row + .docs-list__row {
  border-top: 1px dashed #e5e7eb;   /* 行の区切り（控えめ） */
}
.docs-list dt {
  margin: 0;
  color: #505050;
  font-weight: 600;
}
.docs-list dd {
  margin: 0;
}
.docs-link {
  color: #1565C0;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s, opacity .2s;
}
.docs-link:hover {
  border-color: #1565C0;
  opacity: .9;
}

/* 求人情報カード全体 */
.job-info {
  background: #FFFCE9;
  border-radius: 8px;
  padding: 24px 28px;
  margin: 24px 0;
  box-shadow: 0 1px 2px rgba(16,24,40,.06);
  color: #444;
}

/* 見出し */
.job-info__title {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0 0 20px;
  color: #333;
}
.job-info__recruitment-text {
  padding: 0px 20px;
}
.job-info-images--center {
  display: flex;
  justify-content: center;      /* 中央寄せ */
  gap: 16px;                    /* 画像間の余白 */
  margin-bottom: 20px;
  flex-wrap: wrap;              /* スマホ時は折り返し */
}
.job-info-images--center img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  background: #faf8f3;
  transition: transform 0.2s;
}
.job-info-images--center img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}
/* dlを表のように */
.job-info__list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0; /* 行間はborderで区切る */
}

.job-info__row {
  display: grid;
  grid-template-columns: 160px 1fr; /* 左見出し / 右本文 */
  border-top: 1px solid #d6d3cd;
}

.job-info__row:first-child {
  border-top: none;
}

.job-info__row dt {
  background: #FFFCE9;
  padding: 14px 16px;
  font-weight: bold;
  color: #333;
  border-right: 1px solid #d6d3cd;
}

.job-info__row dd {
  margin: 0;
  padding: 14px 16px;
  white-space: pre-line; /* 改行を反映 */
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .print_btn {
    flex: 1;
  }
  .nursing-facility-single {
    max-width: 100%;
    margin: 0 1rem;
    padding: 1rem;
  }
  .section-title {
    font-size: 1.05rem;
  }
  .facility-info-title {
    font-size: 1.5rem;
    line-break: strict;
    overflow-wrap: break-word;
  }
  .facility-info-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .facility-info-action {
    width: 100%;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }
  .facility-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.95rem;
  }
  .capacity {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }
  .capacity strong {
    font-size: 1.2rem;
  }
  .facility-overview .overview-grid {
    grid-template-columns: 1fr;
    border-radius: 6px;
  }
  .facility-overview .overview-label {
    border-right: none;
    padding: 12px 14px 4px;
    color: #374151;
  }
  .facility-overview .overview-value {
    display: flex;
    align-items: center;
  }
  .facility-availability{
    margin-top: 36px;
  }
  .availability-content {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .availability-left,
  .availability-right {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .facility-map iframe {
    height: 220px;
  }
  .facility-promo {
    border-radius: 6px;
  }
  .facility-promo-header {
    padding: 0.75rem;
    font-size: 1rem;
  }
  .facility-promo-body {
    padding: 0.75rem;
  }
  .facility-promo .btn-detail {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }
  .facility-overview,
  .facility-policy,
  .facility-availability,
  .facility-map,
  .facility-promo {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .cta-button {
    width: 100%;
  }
  .cta-title {
    font-size: 0.95rem;
  }
  .director-interview { padding: 16px; }
  .di-grid { grid-template-columns: 1fr; gap: 16px; }
  .di-title { font-size: 1.2rem; }
  .di-subtitle { margin-bottom: 6px; }
  .di-name { margin-bottom: 12px; }
  .di-media { min-height: 220px; order: -1; }
  .docs-list__row {
    grid-template-columns: 1fr;    /* 縦並びに */
    gap: 6px;
    padding: 12px 0;
  }
  .docs-card__body {
    padding: 16px;
  }

  .job-info {
    padding: 16px;
  }
  .job-info__row {
    grid-template-columns: 1fr;
  }
  .job-info__row dt {
    border-right: none;
    border-bottom: 1px solid #d6d3cd;
  }
}

.two-images {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 20px;
}

.two-images > div {
    width: 60%;        /* ← 半分ずつにする */
}

.two-images img {
    width: 100%;       /* ← 枠いっぱいに広げる */
    height: auto;      /* ← アスペクト比維持 */
    display: block;
}