/* ========================================
   障害福祉ナビ 拡張スタイル v1.1.0
   ======================================== */

/* プランバッジ */
.snf-plan-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
}
.snf-badge-premium  { background: #1e3a8a; color: #fff; }
.snf-badge-standard { background: #2563eb; color: #fff; }
.snf-badge-light    { background: #60a5fa; color: #fff; }
.snf-badge-free     { background: #9ca3af; color: #fff; }

/* 一覧ページ：プレミアム強調 */
.provider-plan-premium {
    border: 2px solid #1e3a8a !important;
    border-radius: 8px;
    background: #f0f4ff;
    position: relative;
}
.provider-plan-premium::before {
    content: "🥇 プレミアム";
    position: absolute;
    top: -11px; left: 12px;
    background: #1e3a8a; color: #fff;
    padding: 2px 10px; border-radius: 10px;
    font-size: 10px; font-weight: 700;
}
.provider-plan-standard { border-left: 4px solid #2563eb; }
/* grayout廃止：無料プランでも読みやすく表示 */
.provider-grayout { opacity: 1; filter: none; }
.provider-grayout .entry-title a { color: inherit; }

/* ロックコンテンツ */
.snf-locked {
    background: #f9fafb; border: 2px dashed #d1d5db;
    border-radius: 8px; padding: 20px; text-align: center;
    margin: 20px 0; color: #374151;
}
.snf-plan-link {
    display: inline-block; margin-top: 8px;
    background: #1e3a8a; color: #fff !important;
    padding: 7px 18px; border-radius: 6px;
    text-decoration: none; font-weight: 700; font-size: 13px;
}

/* 詳細ページ */
.snf-detail { margin-top: 28px; }

/* 管理番号 */
.snf-provider-id {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.snf-provider-id span {
    font-family: monospace;
    font-weight: 700;
    color: #6b7280;
    background: #f3f4f6;
    padding: 1px 6px;
    border-radius: 4px;
}
.snf-block { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.snf-block-title { font-size: 14px; font-weight: 700; color: #1e3a8a; border-bottom: 2px solid #e5e7eb; padding-bottom: 6px; margin-bottom: 12px; }
.snf-pr-block { background: #eff6ff; border-left: 4px solid #2563eb; padding: 12px 16px; border-radius: 0 8px 8px 0; margin-bottom: 16px; }
.snf-pr-block h3 { font-size: 13px; color: #1e3a8a; margin-bottom: 6px; }

.snf-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (max-width: 600px) { .snf-grid-2 { grid-template-columns: 1fr; } }
.snf-item { padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.snf-yes { background: #ecfdf5; color: #065f46; }
.snf-no  { background: #f9fafb; color: #6b7280; }

.snf-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.snf-table th { width: 180px; padding: 6px 10px; background: #f8faff; border-bottom: 1px solid #e5e7eb; text-align: left; font-weight: 600; color: #1f2937; }
.snf-table td { padding: 6px 10px; border-bottom: 1px solid #e5e7eb; color: #1f2937; }
@media (max-width: 600px) { .snf-table th, .snf-table td { display: block; width: 100%; } .snf-table th { background: #f0f4ff; } }

.snf-ok  { color: #059669; font-weight: 700; }
.snf-ask { color: #d97706; font-weight: 700; }
.snf-ng  { color: #dc2626; font-weight: 700; }

.snf-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.snf-photo-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; }
@media (max-width: 600px) { .snf-photo-grid { grid-template-columns: repeat(2, 1fr); } }

.snf-contact-wrap { text-align: center; margin: 20px 0; }
.snf-contact-btn { display: inline-block; background: #1e3a8a; color: #fff !important; padding: 12px 28px; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 700; }
.snf-contact-btn:hover { background: #1d4ed8; }

/* ========================================
   フィルターフォーム
   ======================================== */
.snf-wrap { max-width: 960px; margin: 0 auto; }

.snf-form {
    background: #f8faff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

/* ① 基本バー（常に見える） */
.snf-basic-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #e0e7ff;
    flex-wrap: wrap;
}
.snf-basic-item { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 160px; }
.snf-bar-label { font-size: 12px; font-weight: 700; color: #1e3a8a; }
.snf-select {
    width: 100%; padding: 8px 10px;
    border: 1px solid #d1d5db; border-radius: 6px;
    background: #fff; font-size: 14px; height: 38px;
}
.snf-basic-btns { display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.snf-btn-search {
    background: #1e3a8a; color: #fff; border: none;
    padding: 0 20px; height: 38px; border-radius: 6px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    white-space: nowrap;
}
.snf-btn-search:hover { background: #1d4ed8; }
.snf-btn-reset {
    background: #fff; border: 1px solid #d1d5db;
    padding: 0 14px; height: 38px; border-radius: 6px;
    font-size: 14px; cursor: pointer; color: #374151;
}
.snf-btn-reset:hover { background: #f3f4f6; }

/* ② 詳細フィルタートグル */
.snf-detail-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    font-size: 13px; font-weight: 600; color: #4338ca;
    cursor: pointer;
    background: #f0f4ff;
    border-bottom: 1px solid #e0e7ff;
    user-select: none;
    transition: background 0.15s;
}
.snf-detail-toggle:hover { background: #e0e7ff; }
.snf-toggle-icon { font-size: 10px; transition: transform 0.2s; display: inline-block; }
.snf-detail-toggle.open .snf-toggle-icon { transform: rotate(180deg); }
.snf-active-count {
    margin-left: auto;
    background: #1e3a8a; color: #fff;
    font-size: 11px; padding: 1px 8px; border-radius: 10px;
    display: none;
}
.snf-active-count.show { display: inline-block; }

/* ② 詳細パネル（折りたたみ） */
.snf-detail-panel {
    display: none;
    padding: 16px 20px 0;
}
.snf-detail-panel.open { display: block; }

.snf-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
@media (max-width: 700px) { .snf-detail-grid { grid-template-columns: 1fr; } }

.snf-detail-wide { grid-column: span 3; }
@media (max-width: 700px) { .snf-detail-wide { grid-column: span 1; } }

.snf-detail-section { }
.snf-detail-title {
    font-size: 12px; font-weight: 700; color: #1e3a8a;
    margin-bottom: 6px; padding-bottom: 4px;
    border-bottom: 1px solid #e0e7ff;
}

/* チェックボックス：3列グリッド（医療的ケア用） */
.snf-check-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px 8px;
}
@media (max-width: 700px) { .snf-check-grid-3 { grid-template-columns: 1fr 1fr; } }

.snf-check-label {
    display: flex; align-items: center; gap: 5px;
    padding: 3px 0; font-size: 12px; cursor: pointer;
    line-height: 1.3;
}
.snf-check-label:hover { color: #1e3a8a; }
.snf-check-label input[type=checkbox] { flex-shrink: 0; width: 14px; height: 14px; }

.snf-detail-apply {
    padding: 14px 0 16px;
    text-align: right;
    border-top: 1px solid #e0e7ff;
    margin-top: 14px;
}
.snf-detail-apply .snf-btn-search { padding: 0 24px; height: 40px; font-size: 14px; }

/* 検索結果 */
.snf-count { font-size: 13px; color: #374151; margin-bottom: 14px; }
.snf-count strong { color: #1e3a8a; font-size: 17px; }

.snf-card {
    display: flex; gap: 14px;
    border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 14px; margin-bottom: 10px;
    background: #fff; text-decoration: none; color: inherit;
    transition: box-shadow 0.2s;
}
.snf-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.snf-card.plan-premium  { border-color: #1e3a8a; background: #f0f4ff; }
.snf-card.plan-standard { border-left: 4px solid #2563eb; }
.snf-card.plan-free     { opacity: 1; }   /* 薄くしない */

.snf-card-thumb { width: 90px; height: 70px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.snf-card-body  { flex: 1; }
.snf-card-title { font-size: 15px; font-weight: 700; color: #1e3a8a; margin-bottom: 3px; }
.snf-card-address { font-size: 12px; color: #4b5563; margin-bottom: 3px; }
.snf-card-pr  { font-size: 12px; color: #1f2937; }
.snf-card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.snf-tag { font-size: 11px; padding: 2px 7px; border-radius: 10px; background: #eff6ff; color: #1e3a8a; }
.snf-tag-accepting { background: #ecfdf5; color: #065f46; }

/* ページネーション */
.snf-pager { text-align: center; margin-top: 20px; display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.snf-pager-btn { padding: 6px 12px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; }
.snf-pager-btn.active { background: #1e3a8a; color: #fff; border-color: #1e3a8a; }
.snf-pager-btn:hover:not(.active) { background: #f0f4ff; }

/* ── 無料期間 CTAバナー（詳細ページ） ── */
.snf-free-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff7f9;
    border: 2px solid #d4698a;
    border-left: 6px solid #d4698a;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 0 0 24px;
    flex-wrap: wrap;
}
.snf-free-cta-left {
    flex: 1;
    min-width: 200px;
}
.snf-free-cta-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 6px;
    line-height: 1.4;
}
.snf-free-cta-title strong {
    color: #d4698a;
    font-size: 19px;
}
.snf-free-cta-sub {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}
.snf-free-cta-btn {
    display: inline-block;
    background: #d4698a;
    color: #fff !important;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}
.snf-free-cta-btn:hover { background: #c45a7a; }

/* ========================================
   申告フォーム：サービス種別別セクション
   ======================================== */
.snf-form-section {
    display: none;
    animation: snf-fadein 0.25s ease;
}
@keyframes snf-fadein {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
