/* ========== 死亡後手続きチェッカー ========== */
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;line-height:1.7;color:#1a1a1a;background:#f7f7f5}
a{color:inherit;text-decoration:none}

/* ヘッダー */
.site-header{background:#0d1b3d;color:#fff;padding:14px 0;border-bottom:3px solid #b89968}
.header-inner{max-width:980px;margin:0 auto;padding:0 20px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
.site-logo{font-size:18px;font-weight:700}
.header-nav{display:flex;gap:18px;font-size:14px}
.header-nav a{padding:4px 8px;border-radius:4px}
.header-nav a:hover{background:#16275a;color:#b89968}

/* パンくず */
.breadcrumb{max-width:980px;margin:0 auto;padding:14px 20px;font-size:13px;color:#666}
.breadcrumb a{color:#16275a;text-decoration:underline}

/* メイン */
.tool-main{max-width:980px;margin:0 auto;padding:0 20px 60px}

/* ヒーロー */
.tool-hero{background:#fff;border-radius:12px;padding:30px 28px;margin-bottom:24px;box-shadow:0 2px 12px rgba(0,0,0,.05);border-top:5px solid #b89968}
.tool-hero h1{font-size:26px;color:#0d1b3d;font-weight:800;margin-bottom:14px;line-height:1.4}
.tool-lead{font-size:15px;color:#333;margin-bottom:18px;line-height:1.8}
.tool-lead strong{color:#b89968;font-weight:700}
.tool-features{list-style:none;font-size:13px;color:#444}
.tool-features li{padding:4px 0}
@media(max-width:600px){.tool-hero h1{font-size:21px}}

/* フォームセクション */
.form-section,.result-section,.cta-section,.note-section{background:#fff;border-radius:12px;padding:30px 28px;margin-bottom:24px;box-shadow:0 2px 12px rgba(0,0,0,.05)}
.form-section h2,.result-section h2,.cta-section h2{font-size:20px;color:#0d1b3d;font-weight:700;margin-bottom:20px;padding-bottom:10px;border-bottom:2px solid #b89968}
.note-section h3{font-size:15px;color:#0d1b3d;margin-bottom:10px}
.note-section p{font-size:12px;color:#666;line-height:1.8}

.form-group{margin-bottom:22px}
.form-group label{display:block;font-size:14px;font-weight:700;color:#0d1b3d;margin-bottom:8px}
.form-group input[type="date"],.form-group select{width:100%;max-width:340px;padding:10px 12px;border:1.5px solid #d4d4d0;border-radius:6px;font-size:14px;background:#fafafa}
.form-group input[type="date"]:focus,.form-group select:focus{outline:none;border-color:#b89968;background:#fff}
.hint{font-size:12px;color:#888;margin-top:4px}

.checkbox-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
@media(max-width:600px){.checkbox-grid{grid-template-columns:1fr}}
.checkbox-grid label{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#fafafa;border:1.5px solid #e2e2dd;border-radius:6px;cursor:pointer;font-size:13px;font-weight:500;color:#333;transition:.15s}
.checkbox-grid label:hover{border-color:#b89968;background:#fcfaf5}
.checkbox-grid input{width:16px;height:16px;accent-color:#0d1b3d}

.button-group{display:flex;gap:12px;margin-top:24px;flex-wrap:wrap}
.primary-btn{background:#0d1b3d;color:#fff;border:none;padding:14px 28px;border-radius:6px;font-size:15px;font-weight:700;cursor:pointer;transition:.2s}
.primary-btn:hover{background:#b89968}
.secondary-btn{background:#f0f0ec;color:#555;border:1.5px solid #d4d4d0;padding:14px 24px;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;transition:.2s}
.secondary-btn:hover{background:#e8e8e0}

/* 結果 */
.progress-bar-wrap{background:#f5f1ea;padding:14px 18px;border-radius:8px;margin-bottom:24px;border-left:4px solid #b89968}
.progress-info{font-size:14px;font-weight:700;color:#0d1b3d;margin-bottom:8px}
.progress-info span{color:#b89968}
.progress-bar{height:10px;background:#e8e2d2;border-radius:5px;overflow:hidden}
.progress-fill{height:100%;background:linear-gradient(90deg,#b89968,#0d1b3d);width:0;transition:width .4s ease}

.deadline-group{margin-bottom:24px;border:1.5px solid #e2e2dd;border-radius:8px;overflow:hidden}
.deadline-header{background:#0d1b3d;color:#fff;padding:12px 18px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.deadline-header.urgent{background:#9b2226}
.deadline-header.warn{background:#bb6b1e}
.deadline-title{font-weight:700;font-size:15px}
.deadline-due{font-size:12px;background:rgba(255,255,255,.18);padding:3px 10px;border-radius:3px}

.task-list{padding:8px 0}
.task-item{display:flex;align-items:flex-start;gap:12px;padding:12px 18px;border-bottom:1px solid #f0f0ec;transition:.15s}
.task-item:last-child{border-bottom:none}
.task-item.checked{background:#f5faf5;opacity:.7}
.task-item.checked .task-name{text-decoration:line-through;color:#888}
.task-check{width:20px;height:20px;accent-color:#0d1b3d;margin-top:2px;flex-shrink:0;cursor:pointer}
.task-content{flex-grow:1}
.task-name{font-weight:700;font-size:14px;color:#0d1b3d;margin-bottom:3px}
.task-desc{font-size:12px;color:#666;line-height:1.6}
.task-where{font-size:11px;color:#b89968;font-weight:600;margin-top:4px}

.result-actions{display:flex;gap:12px;margin-top:24px;flex-wrap:wrap}

/* CTA */
.cta-intro{font-size:14px;color:#555;margin-bottom:20px}
.cta-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
@media(max-width:760px){.cta-grid{grid-template-columns:1fr}}
.cta-card{background:#fafafa;border:2px solid #e2d5b8;border-radius:8px;padding:20px;display:flex;flex-direction:column;gap:10px;transition:.2s;position:relative}
.cta-card:hover{background:#0d1b3d;color:#fff;border-color:#b89968;transform:translateY(-2px)}
.cta-card h3{font-size:15px;color:#0d1b3d;font-weight:700}
.cta-card:hover h3{color:#b89968}
.cta-card p{font-size:12px;color:#555;flex-grow:1}
.cta-card:hover p{color:#ddd}
.cta-pr-badge{font-size:9px;font-weight:600;padding:1px 5px;border-radius:2px;margin-right:7px;background:transparent;border:1px solid currentColor;opacity:0.7;display:inline-block;align-self:flex-start;color:#888}
.cta-card:hover .cta-pr-badge{color:#fff}
.cta-btn{display:inline-block;background:#b89968;color:#fff;padding:8px 14px;border-radius:4px;font-size:13px;font-weight:700;text-align:center;margin-top:6px}
.cta-card:hover .cta-btn{background:#fff;color:#0d1b3d}

/* フッター */
.site-footer{background:#0d1b3d;color:#aaa;padding:24px 0;margin-top:40px}
.footer-inner{max-width:980px;margin:0 auto;padding:0 20px;text-align:center;font-size:12px}
.footer-links a{color:#b89968;text-decoration:underline}
.copyright{margin-top:8px;font-size:11px;color:#888}

/* 印刷 */
@media print{
  .site-header,.breadcrumb,.tool-hero,.form-section,.cta-section,.site-footer,.result-actions,.button-group{display:none}
  .result-section{box-shadow:none;padding:0}
  .deadline-header{background:#333!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
