table {
    border-collapse: separate;
    border-spacing: 0;
    empty-cells: show;
}

#senkuName {
    font-weight: bold;
    font-size: 18px;
}

#conditionArea {
    margin: 10px 0;
    position: relative;
}

#d {
    font-size: 15px;
    height: 40px;
}

.direction-area {
    display: inline-block;
    margin-left: 8px;
    vertical-align: bottom;
}

.direction-button {
    padding: 5px 0;
    display: inline-block;
    width: 4em;
    text-align: center;
    border: 1px solid #b0b0b0;
    background-color: #f2f2f2;
    color: #a4a4a4;
    cursor: pointer;
}

.direction-button.selected {
    color: white;
    border: 1px solid #264413;
    background-color: #315818;
    cursor: default;
}

.link-area {
    display: inline-block;
    margin-left: 14px;
    vertical-align: bottom;
}

.link-button {
    display: inline-block;
    color: white;
    padding: 5px 10px;
    background-color: #f39c12;
    border: 1px solid #bf7b0d;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.link-button:not(:first-child) {
    margin-left: 8px;
}

.link-button:hover {
    color: #ddd;
    background-color: #c87f0a;
    border: 1px solid #945e07;
}

#printButton {
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -.5em;
    display: inline-block;
    padding: 5px 12px;
    color: #000000;
    border-radius: 6px;
    cursor: pointer;
}

#printButton:hover {
    background-color: #bfbfbf;
    border: 2px solid #1f4f17;
    color: #000000;
}

.note-area {
    padding: 1px 0;
    background-color: #303030;
}

#note {
    margin: 4px;
    padding: 5px;
    background-color: #6d6d6d;
    color: white;
    border-radius: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#timetableArea {
    position: relative;
}

#leftTop {
    position: absolute;
    display: inline-block;
    z-index: 3;
}

#topHeader {
    position: relative;
    overflow-x: hidden;
    overflow-y: scroll;/* 時刻部分とずれるので表示 */
}

#leftHeader {
    display: inline-block;
    position: absolute;
    z-index: 2;
    overflow-y: hidden;
    overflow-x: scroll; /* 時刻部分と高さがあわなくなるので表示 */
}

#timetable {
    position: relative;
    white-space: nowrap;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
}

.ekidori {
    background-color: #c4c4c4;
    font-weight: bold;
    left: 0;
}

.ekidori .row td {
    border-top: 1px solid #9f9f9f;
}

.ekirodi .row:last-child td {
    boder-bottom: 1px solid #9f9f9f;
}

.item-name {
    text-align: center;
    display: inline-block;
    width: 7em;
    padding-left: 5px;
    padding-right: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dep-arv {
    width: 1em;
    padding-left: 5px;
    padding-right: 5px;
    border-left: 1px solid #9f9f9f;
}

.time {
    background-color: white;
}

#timeHeader {
    position: relative;
    z-index: 2;
}

#timeBody {
    position: relative;
    z-index: 1;
}

.time tr td:nth-child(even) {
    background-color: #f7f7f7;
}

.time .row td {
    max-width: 60px;
    border-top: 1px solid #e5e5e5;
}

.time .row.bold-border td {
    border-top: 1px solid #adadad;
}

.time .row.under-bold-border td {
    border-bottom: 1px solid #adadad;
}

.time .B03 td > span {
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    writing-mode: tb-rl;
    line-height: 60px;    /* widthとあわせる */
    padding: 5px 0;
    white-space: nowrap;
}

.hensei-icon {
    text-align: center;
    margin: 3px 0;
}

.hensei-icon > img {
    -webkit-transform: scale(0.9, 0.9);
    transform: scale(0.9, 0.9);
}

.time .B13,
.time .B14 {
    font-size: 10px;
}

.row {
    height: 30px;
}

.B01 {
    height: 25px;
}

.row.B05 td {
    border-top: none !important;
    font-style: italic;
}

.time .C01 td {
    vertical-align: top;
}

.train {
    border-right: 1px solid #e5e5e5;
}

.train > span {
    text-align: center;
    display: inline-block;
    width: 60px;
}

.clickable {
    cursor: pointer;
}

/* dialog */
.list-item {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.list-item:hover {
    background-color: #e5e5e5;
}

#exampleDialog .dialog-window {
    width: 500px;
}

.ex-body {
    margin-left: auto;
    margin-right: auto;
}
/* dialog end */
