/* 時刻表専用スタイル */
.page-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.search-area {
    border: 1px solid #ccc;
    padding: 15px;
    background-color: #f0f0f0;
    margin-bottom: 30px;
}

.tabs {
    margin-bottom: 15px;
}

.tab-btn {
    padding: 8px 20px;
    cursor: pointer;
    background: #e0e0e0;
    border: 1px solid #ccc;
}

.tab-btn.active {
    background: #fff;
    border-bottom: none;
    font-weight: bold;
}

.tab-content {
    display: none;
    background: #fff;
    padding: 15px;
    border: 1px solid #ccc;
}

.tab-content.active {
    display: block;
}

.station-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.station-btn {
    padding: 5px;
    background: #f9f9f9;
    border: 1px solid #aaa;
    cursor: pointer;
    font-family: serif;
}

.station-btn:hover {
    background: #002b62;
    color: #fff;
}

/* 時刻表本体 */
.timetable-section {
    margin-top: 40px;
    border-top: 2px solid #002b62;
    padding-top: 20px;
}

.timetable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.timetable-table {
    width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
}

.timetable-table th, .timetable-table td {
    border: 1px solid #ccc;
    padding: 10px;
}

.timetable-table th {
    background: #f0f4f8;
    width: 60px;
}

.hour-row td {
    font-size: 1.1rem;
}

.train-link {
    display: inline-block;
    margin-right: 15px;
    text-decoration: none;
    color: #000;
    cursor: pointer;
}

.train-link:hover {
    text-decoration: underline;
}

.type-express { color: #cc0000; font-weight: bold; }
.type-rapid { color: #008800; font-weight: bold; }

.dia-type-label {
    background-color: #002b62;
    color: #fff;
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-family: sans-serif;
}

.train-entry {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    margin-right: 12px;
    padding: 4px;
    border: 1px solid transparent;
}

.train-entry:hover {
    border-color: #002b62;
    background-color: #f0f4f8;
}

.t-min {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.t-desc {
    font-size: 0.65rem;
    color: #666;
}

.timetable-footer-notes {
    margin-top: 30px;
    padding: 15px;
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    font-size: 0.9rem;
}

.station-btn {
    font-family: serif;
    background: #fff;
    border: 1px solid #ccc;
    padding: 8px;
    cursor: pointer;
}

.station-btn:hover {
    background: #002b62;
    color: #fff;
}
