/* 高尾山 天気・服装ガイド */

.twg-weather-card {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    border: 1px solid #b8d4e8;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

.twg-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.twg-icon {
    font-size: 40px;
    line-height: 1;
}

.twg-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a5c;
}

.twg-subtitle {
    font-size: 13px;
    color: #5a7a9a;
    margin-top: 2px;
}

.twg-temps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.twg-temp-block {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.twg-temp-summit {
    border: 2px solid #2e86c1;
}

.twg-temp-base {
    border: 2px solid #85c1e9;
}

.twg-temp-label {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.twg-temp-value {
    font-size: 36px;
    font-weight: 700;
    color: #1a3a5c;
    line-height: 1.2;
}

.twg-unit {
    font-size: 18px;
    font-weight: 400;
    color: #5a7a9a;
}

.twg-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.twg-detail-item {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.twg-detail-label {
    color: #555;
}

.twg-detail-value {
    font-weight: 600;
    color: #1a3a5c;
}

.twg-rain {
    color: #2874a6;
    font-weight: 700;
}

.twg-no-rain {
    color: #27ae60;
}

.twg-wind-strong {
    color: #c0392b;
    font-size: 12px;
    font-weight: 700;
}

.twg-wind-moderate {
    color: #d68910;
    font-size: 12px;
}

.twg-clothing {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #27ae60;
    margin-bottom: 16px;
}

.twg-clothing-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.twg-clothing-icon {
    font-size: 24px;
}

.twg-clothing-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a5c3a;
}

.twg-clothing-list {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: disc;
}

.twg-clothing-list li {
    font-size: 14px;
    color: #333;
    padding: 2px 0;
    line-height: 1.6;
}

.twg-footer {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid #d5e8f0;
}

.twg-footer small {
    font-size: 11px;
    color: #888;
}

.twg-stale-notice {
    background: #fff8e6;
    border: 1px solid #e8d49a;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #8a6d1a;
}

.twg-error {
    background: #fef3f3;
    border: 1px solid #e8b4b4;
    border-radius: 8px;
    padding: 16px;
    color: #8b3a3a;
    font-size: 14px;
}

@media (max-width: 480px) {
    .twg-weather-card {
        padding: 16px;
    }

    .twg-temps {
        grid-template-columns: 1fr;
    }

    .twg-details {
        grid-template-columns: 1fr;
    }

    .twg-temp-value {
        font-size: 28px;
    }
}

/* --- 気象庁の天気予報（2026-09-17 追加） --- */
.twg-forecast-card {
    background: #f4f9ff;
    border: 1px solid #b8d4e8;
    border-radius: 16px;
    padding: 20px 22px;
    margin: 20px 0 24px;
}

.twg-fc-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.twg-fc-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a3a5c;
}

.twg-fc-issued {
    font-size: 13px;
    color: #5a7a9a;
}

.twg-forecast-card .twg-fc-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    margin: 0 0 8px;
    font-size: 14px;
    table-layout: fixed;
}

.twg-forecast-card .twg-fc-table th,
.twg-forecast-card .twg-fc-table td {
    border: 1px solid #d5e8f0;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
    word-break: break-word;
}

.twg-forecast-card .twg-fc-table thead th {
    background: #e8f4fd;
    color: #1a3a5c;
    font-weight: 700;
}

.twg-forecast-card .twg-fc-short tbody th {
    width: 6.5em;
    background: #f7fbfe;
    color: #555;
    font-weight: 600;
}

.twg-fc-icon {
    margin-right: 4px;
}

.twg-fc-pop {
    display: block;
    white-space: nowrap;
}

.twg-fc-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 14px 0 6px;
}

.twg-forecast-card .twg-fc-week td:nth-child(3),
.twg-forecast-card .twg-fc-week td:nth-child(5),
.twg-forecast-card .twg-fc-week th:nth-child(3),
.twg-forecast-card .twg-fc-week th:nth-child(5) {
    width: 5em;
    text-align: center;
}

.twg-fc-notes p {
    font-size: 12px;
    color: #5a7a9a;
    line-height: 1.7;
    margin: 6px 0 0;
}

.twg-fc-notes a {
    color: #2874a6;
}

@media (max-width: 480px) {
    .twg-forecast-card {
        padding: 14px;
    }
    .twg-forecast-card .twg-fc-table {
        font-size: 12.5px;
    }
    .twg-forecast-card .twg-fc-table th,
    .twg-forecast-card .twg-fc-table td {
        padding: 6px 6px;
    }
    .twg-forecast-card .twg-fc-short tbody th {
        width: 4.5em;
    }
}
