/* えらべる介護 施設一覧 v1.4.0 */
.efc-list,
.efc-dir {
  --efc-orange: #E86A17;
  --efc-orange-dark: #C9550B;
  --efc-link-blue: #0057B8;
  --efc-brown: #4A2C14;
  --efc-cream: #FFF7F0;
  --efc-border: #F0D3B8;
  --efc-sub: #8a6a4d;
  --efc-note: #555;
  max-width: 1080px;
  margin: 1.75em auto;
  color: var(--efc-brown);
  font-size: 1em;
  line-height: 1.7;
}
.efc-dir {
  max-width: 1080px;
  margin: 1.75em auto;
  color: var(--efc-brown);
  font-size: 1em;
  line-height: 1.7;
}

.efc-group { margin-bottom: 2em; }
.efc-group-title {
  font-size: 1.3em;
  font-weight: 800;
  margin: 0 0 0.9em;
  padding-left: 0.5em;
  border-left: 5px solid var(--efc-orange);
  line-height: 1.4;
}
.efc-count { font-size: 0.85em; font-weight: 700; color: var(--efc-sub); }

.efc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20em), 1fr));
  gap: 1.1em;
  align-items: start;
}

.efc-card {
  background: #fff;
  border: 1px solid var(--efc-border);
  border-radius: 1em;
  box-shadow: 0 10px 34px rgba(190, 95, 20, 0.12);
  overflow: hidden;
}

/* ---------- ビジュアルエリア（地図・ストリートビュー） ---------- */
.efc-visual {
  background: linear-gradient(150deg, #FFF3E4 0%, #FFE7CF 100%);
  border-bottom: 1px solid var(--efc-border);
}
/* v1.3.3: 地図は常時表示（旧トグル・プレースホルダーは廃止） */
.efc-map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  background: #fff;
}
/* ストリートビューリンクは主役の地図に添える小さなテキストリンクにする（v1.3.3） */
.efc-sv-link {
  display: inline-block;
  margin: 0.45em 1em 0.9em;
  font-size: 0.85em;
  color: var(--efc-orange-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.efc-sv-link:hover { color: var(--efc-orange); }

/* ---------- カード本体 ---------- */
.efc-card-body { padding: 1.1em 1.25em 1.3em; }

.efc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7em;
  margin-bottom: 0.5em;
}
.efc-name {
  /* v1.3.1: 施設名を従来（1.3em）より 2px 大きくし、青のリンク色にした */
  font-size: calc(1.3em + 2px);
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
  color: var(--efc-link-blue);
}
.efc-name-link {
  color: var(--efc-link-blue);
  text-decoration: none;
}
.efc-name-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.efc-name-link:focus { outline: 3px solid rgba(0, 87, 184, 0.3); outline-offset: 1px; }
.efc-name-text { color: var(--efc-link-blue); }
.efc-badge {
  flex: 0 0 auto;
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  font-size: 0.82em;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  margin-top: 0.25em;
}
.efc-badge--kaigo { background: var(--efc-orange); color: #fff; }
.efc-badge--jutaku { background: var(--efc-brown); color: #fff; }
.efc-badge--sako {
  background: #FFF1E2;
  color: var(--efc-orange-dark);
  border: 1px solid var(--efc-orange);
}
.efc-badge--other { background: var(--efc-cream); color: var(--efc-brown); border: 1px solid var(--efc-border); }

.efc-feature {
  margin: 0 0 0.9em;
  line-height: 1.75;
}

/* 施設の特色文（公式HP等をもとにした紹介文。v1.3.1） */
.efc-feature-text {
  font-size: 0.94em; /* 本文16px相当で約15px */
  line-height: 1.85;
  margin: 0 0 0.9em;
}

/* ---------- 料金ブロック ---------- */
.efc-fee {
  background: var(--efc-cream);
  border: 1px solid var(--efc-border);
  border-radius: 0.75em;
  padding: 0.85em 1em;
  margin: 0 0 0.9em;
}
.efc-fee-line {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  flex-wrap: wrap;
  margin: 0 0 0.2em;
}
.efc-fee-line:last-of-type { margin-bottom: 0; }
.efc-fee-label {
  flex: 0 0 auto;
  font-size: 0.9em;
  font-weight: 700;
  color: var(--efc-brown);
  background: #FFE8D2;
  border-radius: 0.4em;
  padding: 0.1em 0.6em;
}
.efc-fee-value {
  font-size: 1.5em;
  font-weight: 800;
  color: var(--efc-orange-dark);
  line-height: 1.25;
}
.efc-fee-breakdown {
  font-size: 0.88em;
  color: var(--efc-note);
  margin: 0.35em 0 0;
  line-height: 1.6;
}
.efc-fee-pending {
  margin: 0;
  color: var(--efc-note);
}

/* 参考相場（v1.3.2）: 施設自身の料金が未判明のカードに、集計済みの
   地域×種別相場を出す。金額の文字サイズは実額（.efc-fee-value）と同一に保ち、
   実額と誤認させないよう、ラベルの色分け＋ブロックの破線枠で視覚的に区別する。 */
.efc-fee-ref {
  border: 1.5px dashed #7FA6C4;
  border-radius: 0.6em;
  padding: 0.6em 0.75em;
  background: #F5F9FC;
}
.efc-fee-label--ref {
  color: #274B63;
  background: #DCEBF5;
  border: 1px solid #7FA6C4;
}
.efc-fee-value--ref {
  color: #274B63; /* サイズは .efc-fee-value の 1.5em をそのまま使う */
}
.efc-fee-ref-range {
  font-size: 0.88em;
  color: var(--efc-note);
  margin: 0.3em 0 0;
  line-height: 1.6;
}
.efc-fee-ref-note {
  font-size: 0.94em; /* 本文16px相当で約15px。本文サイズで読める大きさにする */
  line-height: 1.7;
  color: var(--efc-brown);
  margin: 0.45em 0 0;
}

/* ---------- 所在地・最寄り駅 ---------- */
.efc-place-line {
  display: flex;
  gap: 0.6em;
  margin: 0 0 0.35em;
}
.efc-place-line:last-child { margin-bottom: 0; }
.efc-place-label {
  flex: 0 0 4.2em;
  font-weight: 700;
  color: var(--efc-sub);
}
.efc-place-value { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }

/* ---------- メタ情報・資料請求リンク ---------- */
.efc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15em 1.1em;
  font-size: 0.85em;
  color: var(--efc-note);
  margin: 1em 0 0;
  overflow-wrap: break-word;
}
.efc-meta a { color: var(--efc-orange-dark); }

.efc-doc-link {
  margin: 0.6em 0 0;
  font-size: 0.92em;
}
.efc-doc-link a {
  display: inline-block;
  padding: 0.35em 0;
  font-weight: 700;
  color: var(--efc-orange-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 資料請求ボタン（v1.3.1） ---------- */
/* 基調色 #E86A17 のグラデーション＋下方向の濃い影で、浮き出た立体感を出す。
   押したときは 2px 沈み、影も薄くなって「押した感」を返す。 */
.efc-cta-wrap { margin: 1em 0 0; }
.efc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.7em 1.2em;
  font-size: 1.12em;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(180deg, #F68A2E 0%, var(--efc-orange) 55%, #D95F0E 100%);
  border-radius: 0.8em;
  box-shadow: 0 3px 0 #B34E0E, 0 10px 22px rgba(190, 95, 20, 0.32);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
}
.efc-cta:hover { color: #fff; filter: brightness(1.05); }
.efc-cta:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #B34E0E, 0 5px 12px rgba(190, 95, 20, 0.28);
}
.efc-cta:focus { outline: 3px solid rgba(232, 106, 23, 0.35); outline-offset: 2px; }

.efc-note {
  font-size: 0.9em;
  color: var(--efc-note);
  background: var(--efc-cream);
  border: 1px solid var(--efc-border);
  border-radius: 0.75em;
  padding: 1em 1.2em;
  margin: 1.5em 0 0;
}

@media (max-width: 640px) {
  .efc-grid { grid-template-columns: 1fr; }
  .efc-card { border-radius: 0.9em; }
  .efc-card-body { padding: 1em; }
  .efc-card-head { flex-direction: column; gap: 0.35em; }
  .efc-badge { margin-top: 0; }
  .efc-name { font-size: calc(1.22em + 2px); }
  .efc-fee-value { font-size: 1.35em; }
  .efc-group-title { font-size: 1.2em; }
}

/* ---------- 検索ディレクトリ [eraberu_directory]（v1.2.0） ---------- */
.efc-dir-controls {
  background: var(--efc-cream);
  border: 1px solid var(--efc-border);
  border-radius: 1em;
  padding: 1em 1.2em;
  margin: 0 0 1.4em;
}
.efc-dir-filter {
  display: flex;
  align-items: flex-start;
  gap: 0.8em;
  margin: 0 0 0.8em;
}
.efc-dir-filter-label {
  flex: 0 0 3.2em;
  font-weight: 800;
  padding-top: 0.45em;
}
.efc-dir-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
.efc-chip {
  appearance: none;
  font: inherit;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.4;
  color: var(--efc-orange-dark);
  background: #fff;
  border: 2px solid var(--efc-orange);
  border-radius: 999px;
  padding: 0.4em 1.1em;
  min-height: 2.6em;
  cursor: pointer;
}
.efc-chip:hover { background: #FFF1E2; }
.efc-chip:focus { outline: 3px solid rgba(232, 106, 23, 0.3); outline-offset: 1px; }
.efc-chip.is-active {
  background: var(--efc-orange);
  color: #fff;
}
.efc-dir-sortrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6em 1.2em;
  border-top: 1px dashed var(--efc-border);
  padding-top: 0.8em;
}
.efc-dir-sort-label {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.efc-dir-sort {
  font: inherit;
  font-size: 1em;
  color: var(--efc-brown);
  background: #fff;
  border: 2px solid var(--efc-border);
  border-radius: 0.6em;
  padding: 0.45em 0.7em;
  min-height: 2.8em;
  max-width: 100%;
}
.efc-dir-count {
  margin: 0;
  font-weight: 800;
  font-size: 1.05em;
}
.efc-dir-count-num {
  color: var(--efc-orange-dark);
  font-size: 1.3em;
}
.efc-dir-item { min-width: 0; }
.efc-dir-item .efc-card { height: 100%; }
.efc-dir-item[hidden] { display: none; }
.efc-dir-grid[hidden] { display: none; }

.efc-dir-empty-box {
  background: #fff;
  border: 2px dashed var(--efc-border);
  border-radius: 1em;
  padding: 1.6em 1.4em;
  text-align: center;
}
.efc-dir-empty-title {
  font-size: 1.15em;
  font-weight: 800;
  margin: 0 0 0.6em;
}
.efc-dir-empty-text {
  margin: 0;
  color: var(--efc-note);
}
.efc-dir-empty-box .efc-doc-link { text-align: center; }

/* ---------- 区見出し・追加読み込み（v1.3.0） ---------- */
.efc-ward-title {
  grid-column: 1 / -1;
  font-size: 1.2em;
  font-weight: 800;
  margin: 0.7em 0 0;
  padding-left: 0.5em;
  border-left: 5px solid var(--efc-orange);
  line-height: 1.4;
}
.efc-grid > .efc-ward-title:first-child { margin-top: 0; }

.efc-more-wrap {
  margin: 1.4em 0 0.4em;
  text-align: center;
}
.efc-more {
  appearance: none;
  border: 2px solid var(--efc-orange);
  background: var(--efc-orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.05em;
  line-height: 1.4;
  padding: 0.75em 2.2em;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(190, 95, 20, 0.22);
}
.efc-more:hover { background: var(--efc-orange-dark); border-color: var(--efc-orange-dark); }
.efc-more:focus { outline: 3px solid rgba(232, 106, 23, 0.3); outline-offset: 2px; }
.efc-more[hidden] { display: none; }
.efc-more-rest { font-size: 0.85em; font-weight: 700; }
.efc-dir-status {
  margin: 0.6em 0 0;
  min-height: 1.2em;
  color: var(--efc-note);
  font-size: 0.92em;
}

@media (max-width: 640px) {
  .efc-dir-controls { padding: 0.9em 1em; }
  .efc-dir-filter { flex-direction: column; gap: 0.4em; }
  .efc-dir-filter-label { padding-top: 0; }
  .efc-dir-sortrow { flex-direction: column; align-items: stretch; }
  .efc-dir-sort { width: 100%; }
  .efc-dir-count { text-align: right; }
}

/* ===== 施設個別ページ（v1.4.0 プロトタイプ） ===== */
.efc-detail-link { margin: 0.6em 0 0; font-size: 0.92em; }
.efd-page {
  --efc-orange: #E86A17;
  --efc-brown: #4A2C14;
  --efc-cream: #FFF7F0;
  --efc-border: #F0D3B8;
  --efc-note: #555;
  color: var(--efc-brown);
  line-height: 1.7;
}
.efd-bread { font-size: 0.85em; color: var(--efc-note); margin: 0 0 0.8em; }
.efd-title { margin: 0 0 0.3em; }
.efd-badges { display: flex; flex-wrap: wrap; gap: 0.4em; align-items: center; margin: 0 0 1em; }
.efd-cond {
  background: #F5F9FC;
  border: 1px solid #DCEBF5;
  border-radius: 999px;
  padding: 0.1em 0.7em;
  font-size: 0.82em;
}
.efd-section { margin: 1.6em 0; }
.efd-feature {
  background: var(--efc-cream);
  border-left: 4px solid var(--efc-orange);
  padding: 0.4em 1em 0.8em;
}
.efd-intro { margin: 1em 0; }
.efd-fee-note { font-size: 0.9em; color: var(--efc-note); margin: 0.4em 0 0; }
.efd-table { width: 100%; border-collapse: collapse; }
.efd-table th {
  background: #FFF1E2;
  text-align: left;
  vertical-align: top;
  width: 9em;
  padding: 0.5em 0.7em;
  border: 1px solid var(--efc-border);
  font-weight: 700;
}
.efd-table td { padding: 0.5em 0.7em; border: 1px solid var(--efc-border); word-break: break-all; }
.efd-map iframe { height: 340px; }
.efd-access-line { margin: 0 0 0.6em; }
.efd-similar-list { list-style: none; margin: 0; padding: 0; }
.efd-similar-list li { padding: 0.55em 0; border-bottom: 1px solid var(--efc-border); }
.efd-similar-meta { display: block; font-size: 0.88em; color: var(--efc-note); }
.efd-hub-link { margin: 0.8em 0 0; }
.efd-note { font-size: 0.85em; color: var(--efc-note); margin: 1.6em 0 0; }

@media (max-width: 640px) {
  .efd-table th { width: 7em; }
  .efd-map iframe { height: 260px; }
}
