/* kinenbi_calculator（記念日計算：付き合って何日?） */

.pt-kn-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.pt-kn-field {
    margin: 0;
    padding: 0;
    border: none;
}

.pt-kn-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.pt-kn-hint {
    margin: 0.3rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.pt-kn-radio {
    display: block;
    margin: 0.25rem 0;
    cursor: pointer;
}

.pt-kn-form button[type="submit"] {
    align-self: flex-start;
}

/* 結果(今日で◯日目・次の記念日) */
.pt-kn-result {
    margin: 1.5rem 0;
    padding: 1.4rem 1rem;
    border-radius: 0.8rem;
    background: #fff1f5;
    border: 1px solid #fbcfe0;
    text-align: center;
}

.pt-kn-today {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #9d174d;
}

.pt-kn-today strong {
    margin: 0 0.15em;
    font-size: 2.6rem;
    line-height: 1.1;
}

.pt-kn-ymd {
    margin: 0.3rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #be185d;
}

.pt-kn-next {
    margin: 0.9rem 0 0;
}

/* 記念日の一覧表 */
.pt-kn-caption {
    font-size: 0.9rem;
    color: #475569;
}

.pt-kn-table-wrap {
    overflow-x: auto;
}

.pt-kn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.pt-kn-table th,
.pt-kn-table td {
    padding: 0.5rem 0.4rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}

.pt-kn-table th {
    background: #f8fafc;
    font-size: 0.85rem;
}

.pt-kn-table__label {
    font-weight: 700;
}

.pt-kn-table tr.is-past td {
    color: #94a3b8;
}

.pt-kn-table tr.is-today td {
    background: #fff1f5;
    font-weight: 700;
}

/* 土日・大安の行は背景色で目立たせる(両方のときは大安の色)。今日の行がいちばん優先 */
.pt-kn-table tr.is-weekend td {
    background: #eff6ff;
}

.pt-kn-table tr.is-taian td {
    background: #fef9c3;
}

.pt-kn-table tr.is-today td {
    background: #fff1f5;
}

/* 一覧表の上の色の説明 */
.pt-kn-legend {
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-right: 0.25em;
    border: 1px solid #cbd5e1;
    border-radius: 0.2em;
    vertical-align: -0.1em;
}

.pt-kn-legend--weekend {
    background: #eff6ff;
}

.pt-kn-legend--taian {
    background: #fef9c3;
}

@media (max-width: 30rem) {
    .pt-kn-table th,
    .pt-kn-table td {
        padding: 0.45rem 0.25rem;
        font-size: 0.82rem;
    }
}
