@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");
}

html,
body {
    font-family: "UD-ShinGo-Colon-Fixed", "UD新ゴ", "Noto Sans JP", sans-serif;
    background: #000;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
    display: inline-block;
    width: 100%;
    height: 100%;
    cursor: none;
    overflow: hidden;
}

.header {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    height: 14%;
    background-color: #222222;
    font-size: 5rem;
    font-weight: bold;
    line-height: 1;
    justify-content: space-between;
}

.header__direction {
    color: white;
    max-width: 100%;
    align-items: baseline;
}

.header__direction__text {
    transform-origin: left center;
}

.header__direction-wrap {
    display: inline-flex;
    min-width: 0;
    overflow: hidden;
}

.header__line {
    display: flex;
    gap: 1rem;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.header__line-bar {
    width: 0.5em;
    flex: 0 0 auto;
    border-radius: 2px;
    margin-left: 1rem;
}

.header__clock {
    background: orange;
    color: black;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
}

.header__clock--placeholder {
    visibility: hidden;
}

.header__clock__icon {
    width: 4rem;
    height: 4rem;
    fill: black;
}

.table-head {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 8%;
    line-height: 1;
    font-size: 3.5rem;
    white-space: nowrap;
    overflow: hidden;
    background-color: #222222;
}

.table-head__type {
    width: 25%;
}

.table-head__time {
    width: 25%;
}

.table-head__destination {
    width: 40%;
}

.table-head__destination__no__platform {
    width: 50%;
}

.table-head__platform {
    width: 10%;
}

.train-list {
    height: 100%;
}

.train {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 20%;
    line-height: 1;
    font-size: 8rem;
    white-space: nowrap;
    overflow: hidden;
}

.train__type {
    width: 25%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.train__type-wrap {
    position: relative;
    display: flex;
    width: 20rem;
    justify-content: center;
    align-items: center;
    border-radius: 0.75rem;
    padding: 0 0.5em;
    flex-shrink: 0;
    font-size: 6rem;
}

.train__type__local {
    background-color: #333;
    color: white;
}

.train__type__r-rapid {
    background-color: coral;
    color: white;
}

.train__type__rapid {
    background-color: #4169e1;
    color: white;
}

.train__type__ltdexp {
    background-color: #b22222;
    color: white;
}

.train__time {
    width: 25%;
}

.train__destination {
    position: relative;
    display: flex;
    width: 40%;
    justify-content: center;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.train__destination__no__platform {
    position: relative;
    display: flex;
    width: 50%;
    justify-content: center;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.train__platform {
    width: 10%;
}

.train__delay {
    color: yellow;
    width: 40%;
    text-align: left;
}

.train__delay__no__platform {
    color: yellow;
    width: 50%;
    text-align: left;
}

.train__time__delayed,
.train__platform__changed {
    color: yellow;
}

.train-item {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 10%;
    font-size: 3.5rem;
    white-space: nowrap;
    flex-wrap: wrap;
}

.train__notes {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    line-height: 1.4;
    width: 100%;
    overflow: visible;
}

.train__dummy {
    position: relative;
    flex: 1;
}

.train::before,
.footer__scroll::before,
.footer__icon::before,
.train__dummy::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

.train::after,
.train-item::after,
.table-head::after,
.train__dummy::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #000;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 8%;
    font-size: 4rem;
}

.footer__icon {
    height: 100%;
    width: auto;
    flex-shrink: 0;
    background: red;
    color: white;
    justify-content: left;
    align-items: center;
    border-radius: 0;
    z-index: 1000;
    display: inline-block;
    line-height: 1;
    aspect-ratio: 1;
}

.footer__scroll {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    overflow: hidden;
    font-size: 3.5rem;
    margin-left: 0.5rem;
}

.label {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.label__jp {
    font-size: 0.85em;
}

.label__en {
    font-size: 0.35em;
    margin-top: 0em;
    margin-bottom: 0.2em;
}
