:root {
  --main: #2e7fd4; --main-dark: #1a6cbf; --main-pale: #e8f2fc;
  --bg: #f4f8fd; --bg-white: #ffffff; --text: #2a3540; --text-soft: #5a6c7a; --line: #d0e0ef;
  --serif: 'Noto Serif JP', serif; --sans: 'Noto Sans JP', sans-serif;
}
body { font-family: var(--sans); background: var(--bg); color: var(--text); margin: 0; line-height: 1.7; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; padding: 12px 20px; }
.hdr-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.hdr-title { font-weight: 700; color: var(--main-dark); }
.hdr-title small { display: block; font-size: 0.75rem; color: var(--text-soft); }
.btn-inquiry { background: var(--main); color: #fff; text-decoration: none; padding: 8px 18px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; }
.hero { background: linear-gradient(135deg, #4a90d9, #2e7fd4, #1a6cbf); color: #fff; padding: 60px 20px; text-align: center; }
.hero h1 { font-family: var(--serif); font-size: 2rem; margin-bottom: 10px; }
.filter-area { background: #fff; border-bottom: 1px solid var(--line); padding-top: 20px; }
.filter-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 15px; }
.search-box { flex: 1; min-width: 250px; }
.search-box input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.select-row { display: flex; gap: 10px; }
.select-row select { padding: 10px; border-radius: 8px; border: 1px solid var(--line); }
.topic-nav { max-width: 1200px; margin: 20px auto 0; padding: 0 20px 15px; display: flex; gap: 10px; overflow-x: auto; }
.topic-btn { white-space: nowrap; padding: 10px 20px; border-radius: 25px; border: 1px solid var(--line); cursor: pointer; transition: 0.3s; }
.topic-btn.active { background: var(--main); color: #fff; border-color: var(--main); }
.main-content { max-width: 1200px; margin: 0 auto; padding: 20px; }
.status-bar { margin-bottom: 20px; font-size: 0.9rem; color: var(--text-soft); display: flex; justify-content: space-between; }
#reset-btn { border: 1px solid var(--line); padding: 5px 12px; border-radius: 5px; cursor: pointer; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }
.q-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); cursor: pointer; transition: 0.3s; }
.q-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.q-head { height: 50px; display: flex; align-items: center; padding: 0 20px; }
.q-chip { color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.3); }
.q-body { padding: 20px; }
.q-title { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 15px; }
.q-status { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 700; }
.status-chk { background: #e3f0fd; color: #1565C0; }
.status-prog { background: #e0f2f1; color: #00695c; }
.status-done { background: #e6f4ec; color: #1b7a3e; }
.q-foot { padding: 12px 20px; background: #f8f9fa; font-size: 0.8rem; color: var(--text-soft); border-top: 1px solid #eee; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; backdrop-filter: blur(5px); }
.modal-overlay.active { display: flex; }
.modal-box { background: #fff; width: 100%; max-width: 800px; max-height: 90vh; border-radius: 15px; overflow-y: auto; }
.modal-head { padding: 20px; display: flex; justify-content: space-between; border-bottom: 1px solid #eee; position: sticky; top: 0; background: #fff; z-index: 10; }
.modal-title { font-family: var(--serif); font-size: 1.3rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.modal-body { padding: 30px; }
.modal-section { margin-bottom: 25px; }
.modal-section h3 { font-size: 0.9rem; color: var(--main-dark); margin-bottom: 10px; border-left: 4px solid var(--main); padding-left: 10px; }
.modal-section-highlight { background: var(--main-pale); padding: 20px; border-radius: 10px; border: 1px solid var(--main-light); }
.modal-tags span { display: inline-block; background: #eee; padding: 4px 10px; border-radius: 5px; font-size: 0.8rem; margin: 0 5px 5px 0; }
.site-footer { background: #2a3540; color: #fff; padding: 40px 20px; text-align: center; }