/* ===== MANAGEMENT SUPPORT PAGE CSS ===== */

/* Section labels */
.ms-section-label { font-family: 'Noto Sans JP', sans-serif; font-size: 12px; font-weight: 700; color: #c5963a; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.ms-section-title { font-size: clamp(20px, 4vw, 28px); margin-bottom: 12px; color: #1b4332; }
.ms-section-lead { color: var(--text-light); font-size: 15px; max-width: 720px; margin-bottom: 40px; line-height: 1.8; }

/* Problem cards */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 0; }
.problem-card { background: var(--white); border: 2px solid #d4ddd4; border-left: 4px solid #7a6332; border-radius: 6px; padding: 20px 20px 20px 24px; cursor: pointer; transition: all 0.2s ease; position: relative; }
.problem-card:hover { border-color: #c5963a; box-shadow: 0 2px 12px rgba(27,67,50,0.08); }
.problem-card.active { border-color: #1b4332; border-left-color: #1b4332; background: #f0f7f3; box-shadow: 0 2px 16px rgba(27,67,50,0.12); }
.problem-card .pc-num { font-family: 'Noto Sans JP', sans-serif; font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.problem-card h3 { font-size: 15px; margin-bottom: 6px; color: var(--text); padding-right: 28px; }
.problem-card .pc-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.problem-card .pc-icon { position: absolute; top: 18px; right: 18px; color: #7a6332; font-size: 15px; opacity: 0.5; }
.problem-card.active .pc-icon { color: #1b4332; opacity: 1; }

/* Recommendation panel */
.rec-panel { margin-top: 32px; background: var(--white); border: 1px solid #d4ddd4; border-radius: 8px; overflow: hidden; display: none; animation: mseFadeUp 0.3s ease; }
.rec-panel.visible { display: block; }
@keyframes mseFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.rec-head { background: #1b4332; color: #fff; padding: 20px 28px; }
.rec-head h3 { font-size: 18px; margin-bottom: 4px; }
.rec-head p { font-size: 13px; color: rgba(255,255,255,0.7); }
.rec-body { padding: 28px; }
.rec-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.rec-svc { border: 1px solid #d4ddd4; border-radius: 6px; padding: 20px 16px 16px; text-align: center; position: relative; }
.rec-svc.primary { border-color: #1b4332; background: #f0f7f3; }
.rec-svc.secondary { border-color: #d4ddd4; background: var(--white); }
.rec-svc .svc-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-family: 'Noto Sans JP', sans-serif; font-size: 10px; font-weight: 700; padding: 2px 10px; border-radius: 10px; white-space: nowrap; }
.rec-svc.primary .svc-badge { background: #1b4332; color: #fff; }
.rec-svc.secondary .svc-badge { background: #eaf0ea; color: #2d6a4f; border: 1px solid #d4ddd4; }
.rec-svc .svc-icon { font-size: 22px; color: #2d6a4f; margin: 4px 0 8px; }
.rec-svc h4 { font-size: 13px; margin-bottom: 4px; line-height: 1.4; }
.rec-svc p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.rec-note { font-size: 14px; color: var(--text-light); background: #eaf0ea; border-radius: 6px; padding: 16px 20px; border-left: 3px solid #2d6a4f; line-height: 1.8; margin-bottom: 16px; }
.rec-note strong { font-family: 'Noto Sans JP', sans-serif; color: #1b4332; }
.rec-framing { font-size: 13px; color: var(--text-muted); background: #fafafa; border: 1px solid #e0dcd4; border-radius: 6px; padding: 12px 16px; line-height: 1.7; }
.rec-framing i { color: #c5963a; margin-right: 6px; }

/* Matrix table */
.matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -8px; padding: 0 8px; }
.matrix-table { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; font-family: 'Noto Sans JP', sans-serif; font-size: 13px; }
.matrix-table th, .matrix-table td { padding: 12px 10px; text-align: center; border-bottom: 1px solid #d4ddd4; }
.matrix-table thead th { background: #1b4332; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.matrix-table thead th:first-child { text-align: left; border-radius: 6px 0 0 0; min-width: 200px; }
.matrix-table thead th:last-child { border-radius: 0 6px 0 0; }
.matrix-table tbody tr { transition: background 0.15s; }
.matrix-table tbody tr:hover { background: #f0f7f3; }
.matrix-table tbody tr.highlighted { background: #e4f0e8; }
.matrix-table tbody td:first-child { text-align: left; font-weight: 500; color: var(--text); }
.mark-primary { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #1b4332; color: #fff; border-radius: 50%; font-size: 13px; font-weight: 700; }
.mark-secondary { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #eaf0ea; color: #2d6a4f; border-radius: 50%; font-size: 13px; }
.mark-none { color: #ccc; font-size: 12px; }
.matrix-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; font-family: 'Noto Sans JP', sans-serif; font-size: 12px; color: var(--text-muted); }
.matrix-legend span { display: inline-flex; align-items: center; gap: 6px; }
.leg-dot { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.leg-dot.primary { background: #1b4332; color: #fff; }
.leg-dot.secondary { background: #eaf0ea; color: #2d6a4f; }

/* Note banner */
.note-banner { background: #fdf8f0; border: 1px solid #e8d5b0; border-radius: 6px; padding: 16px 20px; font-size: 14px; color: var(--text-light); line-height: 1.8; margin-top: 24px; font-family: 'Noto Sans JP', sans-serif; }
.note-banner i { color: #c5963a; margin-right: 8px; }

/* Composition cards */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.comp-card { background: var(--white); border: 1px solid #d4ddd4; border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s; }
.comp-card:hover { box-shadow: 0 4px 20px rgba(27,67,50,0.08); }
.comp-head { background: linear-gradient(135deg, #0f2b1e, #1b4332); color: #fff; padding: 20px 24px; }
.comp-head .comp-tag { font-family: 'Noto Sans JP', sans-serif; font-size: 11px; font-weight: 700; color: #e0b35a; margin-bottom: 4px; letter-spacing: 0.08em; }
.comp-head h3 { font-size: 17px; }
.comp-body { padding: 24px; }
.comp-target { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #d4ddd4; }
.comp-target i { color: #7a6332; margin-right: 6px; }
.comp-items { list-style: none; margin-bottom: 16px; }
.comp-items li { font-family: 'Noto Sans JP', sans-serif; font-size: 14px; padding: 8px 0; border-bottom: 1px dotted #d4ddd4; display: flex; align-items: center; gap: 10px; }
.comp-items li:last-child { border-bottom: none; }
.ci-icon { width: 24px; height: 24px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.ci-icon.base { background: #1b4332; color: #fff; }
.ci-icon.add { background: #eaf0ea; color: #2d6a4f; }
.comp-est { font-family: 'Noto Sans JP', sans-serif; font-size: 13px; color: var(--text-muted); background: #eaf0ea; padding: 12px 16px; border-radius: 6px; }
.comp-est strong { color: #1b4332; }
.th-sub { font-weight: 400; font-size: 11px; }

@media (max-width: 640px) {
  .problem-grid { grid-template-columns: 1fr; }
  .rec-services { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
  .matrix-legend { flex-direction: column; gap: 8px; }
  .rec-body { padding: 20px; }
  .rec-head { padding: 16px 20px; }
}
