/* top-refresh.css v2 -- サイトトップの見た目の改善
 * 元に戻す方法: index.html の <link ... top-refresh.css ...> の1行を消すだけ。
 * 事業所データ・検索・マップ・問い合わせ・各ID/リンクは変更しません。 */

:root {
  --navy: #12263f; --green: #0b6b57; --green-d: #095646; --bg: #f6f8f7; --border: #e1e8e4;
  --ink: #26323f; --muted-t: #5d6b78; --radius: 12px;
  --tr-shadow: 0 1px 2px rgba(18,38,63,.05), 0 6px 20px rgba(18,38,63,.06);
}
body { font-family: "Noto Sans JP","Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI",Meiryo,sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
br.pc { display: inline; }
@media (max-width: 860px) { br.pc { display: none; } }
.hero-intro, .gs-bar { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; min-width: 0; max-width: 100%; }
.hero-stage { overflow-x: clip; }
.hero-intro h2 { text-wrap: balance; }
.hero-intro p, .gs-note { text-wrap: pretty; }

/* ===== ヘッダー：白地・文字リンク・主役は1つだけ ===== */
header.site { background: #fff !important; border-bottom: 1px solid var(--border) !important; box-shadow: none !important; }
header.site .header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 24px; }
header.site .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
header.site .logo svg { width: 40px; height: 40px; flex: 0 0 auto; }
.logo-text h1 { font-size: 1.12rem !important; line-height: 1.25 !important; color: var(--navy) !important; font-weight: 900 !important; letter-spacing: .03em !important; margin: 0 !important; white-space: nowrap; }
.logo-text p, .logo-text .logo-trust-line { font-size: .68rem !important; color: var(--muted-t) !important; margin: 2px 0 0 !important; letter-spacing: .03em; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.header-actions a { background: transparent !important; border: 0 !important; box-shadow: none !important; transform: none !important; color: var(--navy) !important; font-size: .86rem !important; font-weight: 700 !important; padding: 10px 14px !important; border-radius: 6px !important; white-space: nowrap; text-decoration: none; }
.header-actions a:hover { background: #eef3f0 !important; }
.header-actions .btn-search-header { color: var(--green) !important; }
.header-actions .btn-provider-cta { color: #a85408 !important; }
.header-actions .btn-facility-login { background: var(--navy) !important; color: #fff !important; padding: 10px 18px !important; margin-left: 8px; }
.header-actions .btn-facility-login:hover { background: #0c1b2e !important; }

/* ===== ヒーロー：カードをやめ、写真の上に直接配置 ===== */
.hero-stage { min-height: 500px !important; border-bottom: 1px solid var(--border) !important; padding: 56px max(24px, calc((100vw - 1200px) / 2 + 24px)) !important; }
.hero-overlay { background: linear-gradient(100deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.93) 44%, rgba(255,255,255,.62) 58%, rgba(255,255,255,0) 74%) !important; }
.hero-stage::after { background: none !important; }
.hero-intro { background: transparent !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 0 !important; margin: 0 !important; max-width: 44rem !important; }
.hero-tagline-text { display: inline-block; color: var(--green) !important; background: transparent !important; border: 0 !important; border-left: 3px solid var(--green) !important; border-radius: 0 !important; padding: 2px 0 2px 10px !important; font-size: .84rem !important; font-weight: 700; letter-spacing: .06em !important; }
.hero-block-brand { margin: 18px 0 18px !important; }
.hero-brand-text { color: var(--navy) !important; font-size: clamp(2rem, 3.3vw, 2.6rem) !important; line-height: 1.4 !important; font-weight: 900 !important; letter-spacing: .01em !important; text-shadow: none !important; }
.hero-lead-line { color: var(--ink) !important; font-size: 1.06rem !important; line-height: 1.95 !important; font-weight: 500; }
.nw { white-space: nowrap; }
.hero-em, .hero-em-accent { white-space: nowrap; font-style: normal; color: var(--green) !important; font-weight: 800; background: linear-gradient(transparent 62%, #cdeee0 62%); }
.hero-area { margin-top: 6px; font-size: .88rem; color: var(--muted-t); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 8px; font-weight: 800; font-size: 1rem; text-decoration: none; letter-spacing: .02em; transition: background .15s, border-color .15s; }
.hero-btn-main { background: var(--green); color: #fff; border: 1px solid var(--green); }
.hero-btn-main:hover { background: var(--green-d); }
.hero-btn-sub { background: #fff; color: var(--navy); border: 1px solid #b9c6c0; }
.hero-btn-sub:hover { border-color: var(--navy); }

/* ===== はじめての方へ：1本の細い帯にコンパクト化 ===== */
.guide-section { padding: 22px 24px 6px !important; max-width: 1200px; margin: 0 auto; }
.gs-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 22px; }
.gs-title { flex: 0 0 auto; margin: 0; font-size: 1rem; font-weight: 900; color: var(--navy); line-height: 1.4; }
.gs-title span { display: block; font-size: .72rem; font-weight: 700; color: var(--green); letter-spacing: .02em; margin-top: 2px; }
.gs-steps { list-style: none; margin: 0; padding: 0; display: flex; flex: 1 1 auto; gap: 30px; justify-content: center; counter-reset: gs; }
.gs-steps li { counter-increment: gs; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; position: relative; padding-right: 14px; }
.gs-steps li::before { content: counter(gs); flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.gs-steps li + li::after { content: ""; position: absolute; left: -20px; top: 50%; width: 6px; height: 6px; border-top: 2px solid #b8c5be; border-right: 2px solid #b8c5be; transform: translateY(-50%) rotate(45deg); }
.gs-steps b { display: block; white-space: nowrap; font-size: .9rem; color: var(--navy); font-weight: 800; line-height: 1.35; }
.gs-steps span { display: block; font-size: .75rem; color: var(--muted-t); line-height: 1.45; }
.gs-link { flex: 0 0 auto; color: var(--green); font-weight: 800; font-size: .88rem; text-decoration: none; white-space: nowrap; padding: 8px 4px; border-bottom: 2px solid transparent; }
.gs-link:hover { border-bottom-color: var(--green); }
.gs-note { margin: 8px 4px 0; font-size: .72rem; color: var(--muted-t); }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 16px 0 0; padding: 0; }
.hero-points li { font-size: .82rem; font-weight: 800; color: var(--green); background: #e6f3ed; border: 1px solid #cbe5d8; border-radius: 999px; padding: 4px 13px 4px 28px; position: relative; }
.hero-points li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 4px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: translateY(-65%) rotate(-45deg); }

/* ===== サービス切替タブ ===== */
.tab-pill { border: 1px solid #cfd9d4 !important; background: #fff !important; color: var(--navy) !important; font-weight: 700 !important; box-shadow: none !important; }
.tab-pill:hover { border-color: var(--green) !important; color: var(--green) !important; }
.tab-pill.active { background: var(--navy) !important; color: #fff !important; border-color: var(--navy) !important; }

/* ===== 事業所カード・絞り込み ===== */
.facility-card, .pr-card { border-width: 1px !important; border-radius: var(--radius) !important; box-shadow: var(--tr-shadow) !important; }
.facility-card:hover, .pr-card:hover { box-shadow: 0 10px 30px rgba(18,38,63,.12) !important; }
.card-name { color: var(--navy) !important; font-weight: 800 !important; }
.filters-sidebar { border-radius: var(--radius) !important; border: 1px solid var(--border) !important; box-shadow: var(--tr-shadow) !important; }

/* ===== タブレット・スマホ ===== */
@media (max-width: 1024px) {
  .hero-stage { min-height: 0 !important; padding: 0 0 28px !important; background: #fff; }
  .hero-overlay { background: none !important; }
  .hero-intro { max-width: none !important; margin: 20px 20px 0 !important; }
  .hero-brand-text { font-size: clamp(1.5rem, 6.2vw, 2.2rem) !important; }
  .hero-lead-line { font-size: 1rem !important; }
}
@media (max-width: 860px) {
  .gs-bar { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 16px 12px; }
  .gs-steps { flex-direction: column; align-items: flex-start; gap: 10px; }
  .gs-steps li + li::after { display: none; }
  .gs-steps b { white-space: normal; }
  .gs-link { align-self: flex-start; padding: 6px 0; }
  .guide-section { padding: 16px 14px 4px !important; }
}
@media (max-width: 1024px) {
  header.site .header-inner { flex-wrap: wrap; gap: 8px; padding: 10px 14px 0; }
  .logo-text h1 { font-size: .98rem !important; white-space: normal !important; text-wrap: balance; }
  .logo-text p, .logo-text .logo-trust-line { white-space: normal !important; font-size: .64rem !important; }
  .header-actions { width: 100%; justify-content: space-between; gap: 0; border-top: 1px solid var(--border); margin: 0 -14px; width: calc(100% + 28px); padding: 0 8px; }
  .header-actions a { font-size: .82rem !important; padding: 12px 10px !important; }
  .header-actions .btn-facility-login { background: transparent !important; color: var(--navy) !important; padding: 12px 10px !important; margin-left: 0; }
}
@media (max-width: 768px) {
  .header-actions { gap: 8px !important; padding: 10px 14px !important; border-top: 1px solid var(--border); background: #f6f8f7; margin: 0 -14px !important; width: calc(100% + 28px) !important; justify-content: stretch !important; }
  .header-actions a { flex: 1 1 0; text-align: center; border-radius: 8px !important; padding: 11px 6px !important; font-size: .8rem !important; }
  .header-actions .btn-guide-header { background: #fff !important; color: var(--navy) !important; border: 1px solid #c9d6cf !important; }
  .header-actions .btn-map-header { background: var(--green) !important; color: #fff !important; border: 1px solid var(--green) !important; }
  .header-actions .btn-facility-login { background: var(--navy) !important; color: #fff !important; border: 1px solid var(--navy) !important; padding: 11px 6px !important; }
  .hero-cta { gap: 10px; }
  .hero-btn { flex: 1 1 100%; }
  .hero-tagline-text { font-size: .78rem !important; }
}
