/* =========================
   全体
========================= */
body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f7f7f7;
    color: #333;
}

.wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    box-sizing: border-box;
}

/* =========================
   ヘッダー
========================= */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: #00a960;
}

.header p {
    margin: 4px 0;
    font-size: 0.85rem;
    color: #666;
}

/* =========================
   お知らせ
========================= */
.notice {
    background-color: #e6f6ef;
    border-left: 6px solid #00a960;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* =========================
   インフラ上部（説明＋自動更新）
========================= */
.infra-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.area-note {
    font-size: 1.00rem;
    color: #000;
}

.infra-meta {
    font-size: 0.7rem;
    color: #999;
    text-align: right;
}

/* =========================
   インフラカード
========================= */
.info-section {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.info-section a {
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.info-card {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.info-card strong {
    font-size: 0.9rem;
    color: #00a960;
    display: block;
    margin-bottom: 3px;
}

.info-card div {
    font-size: 1rem;
    line-height: 1.2;
    font-weight: bold;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.card-alert {
    border: 2px solid #d93025 !important;
    background: #fff5f5 !important;
}

.text-alert {
    color: #d93025 !important;
}

/* =========================
   バスロケ案内
========================= */
.bus-info {
    font-size: 1.00rem;
    color: #000;
    margin: 12px 0 24px;
    text-align: center;
}

.bus-info a {
    color: #00a960;
    text-decoration: underline;
    font-weight: bold;
}

/* =========================
   トピック一覧
========================= */
.topics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.topic {
    background-color: #00a960;
    color: #fff;
    padding: 14px;
    border-radius: 6px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.topic-time {
    font-size: 16px;
    margin-left: 8px;
    font-weight: normal;
}

.topic-pinned {
    border: 2px solid #d93025;
    background-color: #d93025;
}

/* =========================
   フッターリンク
========================= */
.links {
    margin-top: 32px;
    font-size: 0.9rem;
    text-align: center;
    padding-bottom: 40px;
}

.links a {
    color: #00a960;
    text-decoration: none;
}

/* =========================
   モバイル：縦1列防止（2列固定）
========================= */
@media (max-width: 420px) {
    .info-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
