body, h1, h2, h3, h4, h5, h6, footer {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    color: rgba(18, 18, 18, 1);
}

body {
    font-size: 14px;
}

p {
    padding: 0 1rem 0 1rem;
    margin-top: 2rem;
}

main, footer, .nav-container {
    max-width: 1000px;
}

@media screen and (max-width: 600px) {
    main, footer, .nav-container {
        width: 95%;
    }
}

/* navi */
nav.nav {
    display: flex;
    justify-content: center;
    height: 60px;
    box-shadow: none;
    overflow: hidden;
}

nav .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    border-bottom: 2px solid rgb(213, 213, 213);
}

nav .nav-container .page-link-container {
    display: flex;
    height: calc(100% + 4px);
}

nav .nav-container .page-link-container a {
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgb(213, 213, 213);
    padding-right: 1rem;
    padding-left: 1rem;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
}

nav .nav-container .page-link-container a:hover {
    border-bottom: 2px solid rgb(117, 117, 117);
}

nav .nav-container .page-link-container a.active {
    border-bottom: 2px solid rgb(237, 28, 36, 1);
    color: rgb(237, 28, 36, 1);
}

nav h1.nav-title {
    display: flex;
    align-items: center;
    line-height: 1.2;
}

nav img {
    margin: 0 1em 0 0;
}

h1.nav-title {
    color: rgba(18, 18, 18, 1);
    transition: none;
}

/* chapter */
h2 {
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    position: relative;
}

h2:not(:first-child) {
    margin-top: 3rem;
}

h2:before {
    content: " ";
    display: block;
    border-left: solid 3px rgba(237, 28, 36, 1);
    height: 2rem;
    position: absolute;
    top: 0.5rem;
    left: 0.25rem;
}

h3, h4, h5, h6 {
    color: rgba(18, 18, 18, 0.75);
    margin: 0;
    font-size: 1rem;
    font-weight: normal;
}

/* table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 3rem;
}

table th, table td {
    border-bottom: solid 1px rgba(18, 18, 18, 0.25);
    vertical-align: middle;
}

table td {
    padding: 0.5rem 1rem;
}

table th {
    padding: 0;
}

table ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

table#systemStatus {
    position: relative;
}

table#systemStatus .domain-row {
    visibility: collapse;
}

table#systemStatus .domain-row th {
    border: none;
}

table#systemStatus .domain-row .domain-header-cell {
    position: absolute;
    visibility: visible;
    left: 115px;
    top: 100px;
}

table#systemStatus .type-header-cell {
    width: 12rem;
}

table#systemStatus .type-header-cell div {
    line-height: 120px;
    border-top: solid 1px rgba(18, 18, 18, 0.25);
    height: 221px;
    padding-top: 12px;
    padding-left: 1rem;
}

table#systemStatus .type-header-cell hr {
    position: absolute;
    top: 141px;
    left: -8px;
    width: 236px;
    transform: rotate(70deg);
    border-top-color: rgba(18, 18, 18, 0.25);
}

@media screen and (max-width: 750px) {
    table#systemStatus .type-header-cell hr {
        left: 4px;
    }
    table#systemStatus .domain-row .domain-header-cell {
        left: 62px;
    }
}

table#systemStatus dl, table#systemStatus dd {
    margin: 0;
    padding: 0;
}

table#systemStatus dd, table#systemStatus dt {
    padding: 0.5rem 1rem;
}

/* TODO L.208 同一セレクタでCSSを適用しているが、分けている理由がなければまとめる */
table#systemStatus dt {
    border-bottom: solid 1px rgba(18, 18, 18, 0.25);
}

table#systemStatus th {
    vertical-align: bottom;
}

table#systemStatus dd {
    display: flex;
    justify-content: center;
    height: 220px;
    overflow: auto;
}

table#systemStatus dd ul {
    width: fit-content;
    text-align: left;
}

/* TODO L.194と同じセレクタでCSSを適用しているが、分けている理由がなければまとめる */
table#systemStatus dt {
    height: 38px;
    white-space: nowrap;
}

table th:first-child {
    text-align: left;
}

table.vertical {
    margin-top: 2rem;
}

table.vertical th, table.vertical td {
    vertical-align: text-top;
}

table.vertical th:first-child {
    width: 10rem;
}

/* legend */
.legend {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 12px;
    margin-top: 1rem;
}

.legend > * {
    margin-right: 0.5rem;
    display: flex;
}

.legend > * .square {
    margin-right: 0.25rem;
}

/* status */
table#systemStatus th, table#systemStatus td {
    height: 3em;
}

.square {
    width: 15px;
    height: 15px;
    margin: auto;
    vertical-align: middle;
    border-radius: 100%;
}

.square img {
    width: 100%;
    height: 100%;
}

.square.small {
    width: 12px;
    height: 12px;
}

.square.status_2 {
    background-color: rgba(237, 28, 36, 1);
}

.square.status_1 {
    background-color: rgba(247, 148, 29, 1);
}

.square.status_0 {
    background-color: rgba(0, 148, 68, 1);
}

/* maintenance */
.maintenance {
    list-style: none;
    padding: 0;
    margin-top: 3rem;
}

.maintenance li {
    margin-bottom: 3rem;
}

p.box {
    border: solid 1px rgba(18, 18, 18, 0.25);
    box-shadow: 2px 2px 0 0 rgba(18, 18, 18, 0.25);
    padding: 0.5rem 1rem;
    width: calc(100% - 2px);
}

.maintenance .title {
    color: rgba(18, 18, 18, 0.75);
    display: flex;
    padding-left: 8px;
    justify-content: space-between;
}

.maintenance .title > * {
    margin-right: 0.5rem;
}

/* history */
.history {
    list-style: none;
    padding: 0;
    margin-top: 3rem;
}

.history li {
    margin-bottom: 3rem;
}

.history .time {
    color: rgba(18, 18, 18, 0.75);
    padding: 0 8px 0 8px;
    display: flex;
}

.history .time > * {
    margin-right: 0.5rem;
}

hr {
    border-bottom-style: none;
    color: rgba(18, 18, 18, 0.25);
}

/* footer */
footer {
    text-align: right;
}

footer span {
    color: rgba(18, 18, 18, 0.5);
}
