/* src/public/css/date-calculator.css */

.calc-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.dcal-section-title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dcal-section-desc {
    margin: 0 0 20px;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
}

.input-group {
    margin-bottom: 20px;
}
.input-group label,
.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #1e3c72;
}
.input-group input[type="date"],
.input-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* 日付欄＋「今日」ボタン */
.dcal-date-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.dcal-date-row input[type="date"] {
    flex: 1;
    min-width: 0;
}
.btn-today {
    flex: 0 0 auto;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #2a5298;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}
.btn-today:hover { background: #e2e8f0; }

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #334155;
}

.check-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #334155;
    cursor: pointer;
}
.check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

/* ボタン群 */
.btn-group {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.btn-calc {
    flex: 2;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: #2a5298;
    color: white;
}
.btn-calc:hover { background-color: #1e3c72; }

.btn-clear-tool {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: #e9ecef;
    color: #495057;
}
.btn-clear-tool:hover { background-color: #dee2e6; }

/* 結果表示 */
.result-box {
    background-color: #f1f3f5;
    padding: 20px;
    border-radius: 8px;
}
.result-card { text-align: center; }
.res-title {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: bold;
    margin-bottom: 5px;
}
.res-big-val {
    display: block;
    font-size: 1.9rem;
    font-weight: bold;
    color: #2a5298;
    margin-bottom: 10px;
}
.result-sub {
    font-size: 0.9rem;
    color: #475569;
    border-top: 1px solid #dee2e6;
    padding-top: 12px;
    min-height: 1.4em;
    white-space: pre-line;
}

/* === スマホ・タブレット対応 === */
@media (max-width: 768px) {
    .calc-box { padding: 20px; }
    .input-group { margin-bottom: 16px; }
    .radio-group { gap: 12px; flex-wrap: wrap; }
    .btn-group { gap: 10px; }
    .btn-calc, .btn-clear-tool { padding: 12px; font-size: 0.95rem; }
    .res-big-val { font-size: 1.5rem; }
    .dcal-date-row { flex-wrap: wrap; }
    .btn-today { flex: 1; padding: 10px; }
}
