/* 生活バスよっかいち 共通スタイル（トップ・ブログ） */
:root {
    --c-time: #2E9E4F;
    --c-map: #F79231;
    --c-view: #2A6FC9;
    --c-text: #222;
    --c-link: #0645AD;
}
body {
    margin: 0 auto;
    max-width: 960px;
    padding: 0 12px 24px;
    color: var(--c-text);
    line-height: 1.7;
    background-image: url('../images/bg2.gif');
}
img { max-width: 100%; height: auto; }
a { color: var(--c-link); }

#header { text-align: center; font-size: larger; }
#content { text-align: center; }
.text1 { font-size: large; font-weight: bold; color: #FF00FF; }
.text2 { color: #008000; font-weight: bold; }
#update { margin: 8px 0 24px; }

/* 大ボタン */
.bigbtns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin: 24px 0 12px;
}
.bigbtn {
    flex: 1 1 260px;
    max-width: 300px;
    min-height: 90px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .25);
}
.bigbtn:hover, .bigbtn:focus { filter: brightness(1.1); }
.bigbtn-ttl { font-size: 1.6rem; font-weight: bold; }
.bigbtn-sub { font-size: .85rem; }
.bigbtn-time { background-color: var(--c-time); }
.bigbtn-map { background-color: #D9701A; }
.bigbtn-view { background-color: var(--c-view); }

/* お知らせ・記事一覧 */
.news, .cards, .history {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 12px 18px;
    margin: 24px 0;
    text-align: left;
}
.news h2, .cards h2, .history h2 {
    font-size: 1.2rem;
    margin: 0 0 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid #F79231;
}
.postlist { list-style: none; margin: 0; padding: 0; }
.postlist li { padding: 8px 0; border-bottom: 1px dotted #bbb; }
.postlist li:last-child { border-bottom: none; }
.postlist time { display: inline-block; min-width: 9.5em; color: #555; }

/* リンクカード */
.cardlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
.cardlist a {
    display: block;
    height: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: #FFFFEE;
    border: 1px solid #d8d8a0;
    border-radius: 8px;
    text-decoration: none;
}
.cardlist a:hover { background: #FFF8C8; }
.cardlist small { display: block; color: #555; }

#ensen table { margin: auto; background-color: #FFFFCC; }
#ensen { text-align: center; }

/* ブログ */
.blog-head { text-align: center; padding: 12px 0 4px; }
.blog-head p { margin: 0; font-weight: bold; }
.post {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 12px 20px 20px;
    margin: 16px 0;
}
.post h1 { font-size: 1.5rem; margin: 8px 0; }
.post-date { color: #555; margin: 0 0 12px; }
.post ul { padding-left: 1.4em; }
.post-nav { text-align: center; margin: 16px 0; }

@media (max-width: 600px) {
    .bigbtn { max-width: none; }
    .postlist time { display: block; }
}

/* 本文ページ共通（Bootstrap 5 併用） */
.post h2 {
    font-size: 1.25rem;
    margin: 28px 0 10px;
    padding-left: 10px;
    border-left: 6px solid #000080;
}
.post .table { background: #fff; }
.table-sbus th { --bs-table-bg: #CCFFCC; width: 11em; }
.table-timeline th { --bs-table-bg: #FFFFCC; font-weight: normal; width: 10em; }
.timetable th { --bs-table-bg: #FFFFCC; font-weight: normal; white-space: nowrap; }
.timetable td { text-align: center; }
.timetable tr.major-stop > * { --bs-table-bg: #f6dfd2; font-weight: bold; }
.photos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 12px 0;
}
.photos figure { margin: 0; text-align: center; }
.photos figcaption { font-size: .9rem; }
a .fa-file-pdf { color: #D32F2F; margin-right: .3em; }
.bigbtn .fa-file-pdf { color: #fff; }
.post iframe[src$=".pdf"] { width: 100%; height: 70vh; }

@media (max-width: 575.98px) {
    .table-timeline, .table-timeline tbody, .table-timeline tr,
    .table-timeline th, .table-timeline td { display: block; width: 100%; }
    .table-timeline th { border-bottom: 0; }
    .table-sbus th { width: 7em; }
}
