@font-face {
    font-family: "UD新ゴ";
    font-weight: 400;
    src: local("UD新ゴ"),
        local("UD ShinGo Regular"),
        url("../fonts/UDShinGo-Regular.woff") format("woff");
}

@font-face {
    font-family: "UD-ShinGo-Colon-Fixed";
    font-weight: 400;
    src: local("UD-ShinGo-Colon-Fixed"),
        url("../fonts/UDShinGoPr6N-Regular.woff") format("woff");
}

@font-face {
    font-family: "UD新ゴ";
    font-weight: 700;
    src: local("UD新ゴ"),
        local("UD ShinGo Bold"),
        url("../fonts/UDShinGo-Bold.woff") format("woff");
}

@font-face {
    font-family: "UD-ShinGo-Colon-Fixed";
    font-weight: 700;
    src: local("UD-ShinGo-Colon-Fixed"),
        url("../fonts/UDShinGoPr6N-Bold.woff") format("woff");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: none;
}

body {
    background: linear-gradient(135deg, #d4916f 0%, #e8c5a8 50%, #d4916f 100%);
    font-family: "UD-ShinGo-Colon-Fixed", "UD新ゴ", "Noto Sans JP", sans-serif;
    line-height: 1.5;
}

.display-container {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(180deg, #5a7db8 0%, #4a6aa8 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 4rem;
    font-weight: bold;
}

.page-info {
    font-size: 2rem;
}

.stop-name {
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 4rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.current-time {
    background: #004ea2;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 4rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.clock-icon, .bus-stop-icon {
    width: 4rem;
    height: 4rem;
    fill: #ffffff;
}

.update-time {
    font-size: 1.5rem;
    color: #e0e0e0;
}

.table-header {
    background: #1a0f9e;
    color: white;
    display: grid;
    grid-template-columns: 10% 10% 30% 40% 10%;
    font-weight: bold;
    border-bottom: 2px solid #000;
}

.table-header>div {
    padding: 12px 10px;
    border-right: 2px solid #000;
    text-align: center;
}

.table-header>div:last-child {
    border-right: none;
}

.header-main {
    font-size: 1.5rem;
}

.header-sub {
    font-size: 1rem;
    font-weight: normal;
    margin-top: 2;
}

.bus-row {
    display: grid;
    grid-template-columns: 10% 10% 30% 40% 10%;
    background: #2a2a2a;
    border-bottom: 2px solid #000;
    height: 20%;
}

.bus-row>div {
    padding: 15px 10px;
    border-right: 2px solid #000;
    color: white;
}

.bus-row>div:last-child {
    border-right: none;
}

.bus-rows-container {
    flex: 1;
    overflow: hidden;
}

.type {
    display: flex;
    align-items: center;
    justify-content: center;
}

.express {
    background: #004ea2;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.local {
    background: #c4c4c4;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wheelchair-icon {
    color: #4db8ff;
    font-size: 3rem;
    font-weight: bold;
}

.guide-number {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.destination, .via {
    font-size: 3rem;
    font-weight: bold;
    white-space: nowrap;
}

.time-info {
    text-align: center;
}

.departure-time {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
}

.status {
    font-size: 1.5rem;
    margin-top: 4px;
}

.status.passed {
    color: #4db8ff;
}

.status.before, .garage, .soon {
    color: #ffd700;
}

.status.before-start {
    color: #ffa500;
}

.status.running, .status.suspension {
    color: #ff4d4d;
}

.notice-bar {
    display: flex;
    background: #ffffff;
    padding: 15px 20px;
    font-size: 2rem;
    border-top: 3px solid #666;
    height: 8%;
    overflow: hidden; 
}

.notice-title {
    flex: 0 0 auto; 
    color: #ff0000;
    font-weight: bold;
}

.notice {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden; 
}
