/* 全体フォント設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 天候ボタンのアクティブ状態のクラス設定 */
.weather-btn.active {
    border-color: #009944;
    background-color: #e6f5eb;
    color: #111111;
}

/* ローディングスピナー (現場の回転灯イメージ) */
.spinner-light {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #FF0000;
    box-shadow: 0 0 20px #FF0000, 0 0 40px #FF0000;
    animation: pulseLight 0.8s infinite alternate;
}

@keyframes pulseLight {
    0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 10px #FF0000; }
    100% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 30px #FF0000, 0 0 50px #FF0000; }
}

/* トラ柄テキストエフェクト */
.stripe-text {
    text-shadow: 2px 2px 0 #111, -1px -1px 0 #111, 1px -1px 0 #111, -1px 1px 0 #111, 1px 1px 0 #111;
}

/* トーストのアニメーション */
.toast-enter { animation: slideUp 0.3s ease-out forwards; }
.toast-leave { animation: fadeOut 0.3s ease-in forwards; }

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: scale(0.9); }
}

/* カードおよびレイアウト設定 */
.ky-card {
    border: 3px solid #009944;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #ffffff;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 選択状態のカードハイライト */
.ky-card.selected-card {
    border-style: dashed;
    border-color: #FFCC00;
    background-color: #fffaeb;
}

/* 改修: チェックボックス用UI（カード下部配置） */
.ky-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #ccc;
}

.ky-checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 2px solid #d1d5db;
    transition: all 0.2s;
}

.ky-checkbox-wrapper:hover {
    background-color: #e5e7eb;
}

.ky-checkbox-wrapper.selected {
    background-color: #e6f5eb;
    border-color: #009944;
}

.ky-checkbox {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    accent-color: #009944;
}

.ky-checkbox-label {
    margin-left: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #4b5563;
}

.ky-checkbox-wrapper.selected .ky-checkbox-label {
    color: #009944;
}

.ky-header-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.ky-item-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    background-color: #009944;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
}

.ky-status-badge {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    white-space: nowrap;
    border: 2px solid;
}

.ky-status-badge.risk {
    color: #dc2626;
    border-color: #dc2626;
    background-color: #fef2f2;
}

.ky-status-badge.freq {
    color: #d97706;
    border-color: #d97706;
    background-color: #fffbeb;
}

.ky-label {
    text-align: left;
    color: #009944;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

.ky-divider {
    border-bottom: 2px solid #009944;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.ky-text {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.6;
    color: #111111;
    margin-bottom: 1rem;
}

.ky-list-item {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.6;
    color: #111111;
    margin-bottom: 0.5rem;
    display: list-item;
    list-style-type: none;
    position: relative;
    padding-left: 1.25rem;
}

.ky-list-item::before {
    content: "・";
    position: absolute;
    left: 0;
    color: #111111;
}

.mt-4 { margin-top: 1rem; }

/* 改修: スマホ版の最外枠廃止 */
@media (max-width: 768px) {
    #result-area {
        background-color: transparent !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
}