/* Glorious page */

#glorious_page {
    padding-bottom: 80px;
}

.glorious_wrap {
    width: 80%;
    max-width: 1030px;
    margin: 0 auto;
    overflow: hidden;
}

.glorious_page_title {
    font-size: 36px;
    margin: 40px 0 60px;
    text-align: center;
    font-family: '游明朝 Medium', serif;
    color: #006600;
    position: relative;
    padding-bottom: 15px;
}

.glorious_page_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #006600;
}

.glorious_content {
    line-height: 1.8;
    color: #333;
}

/* Heading text immediately before a wrapped table */
.glorious_content > *:has(+ .glorious_table_scroll_box) {
    font-size: 20px;
    font-weight: bold;
    color: #006600;
    margin-bottom: 12px;
}

.glorious_table_scroll_box {
    overflow-x: auto;
    margin-bottom: 50px;
}

/* Table base */
.glorious_content table {
    border-collapse: collapse;
    margin-bottom: 0;
    border: 1px solid #ddd;
    table-layout: fixed;
    margin-left: 0;
    margin-right: auto;
}

.glorious_content th,
.glorious_content td {
    border: 1px solid #ddd;
    padding: 12px 8px;
    text-align: center;
    vertical-align: middle;
    word-break: break-all;
}

.glorious_content th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* Strong text inside table cells */
.glorious_content td strong,
.glorious_content th strong {
    color: #d00000;
    font-weight: bold;
}

/* =======================================
   8-column tables
   ======================================= */
.glorious_content table:has(tr > *:nth-child(8)) {
    width: 1010px !important;
}

.glorious_content table:has(tr > *:nth-child(8)) th:nth-child(1),
.glorious_content table:has(tr > *:nth-child(8)) td:nth-child(1) {
    width: 80px;
}

.glorious_content table:has(tr > *:nth-child(8)) th:nth-child(2),
.glorious_content table:has(tr > *:nth-child(8)) td:nth-child(2) {
    width: 140px;
    text-align: left;
}

.glorious_content table:has(tr > *:nth-child(8)) th:nth-child(3),
.glorious_content table:has(tr > *:nth-child(8)) td:nth-child(3) {
    width: 140px;
}

.glorious_content table:has(tr > *:nth-child(8)) th:nth-last-child(-n+5),
.glorious_content table:has(tr > *:nth-child(8)) td:nth-last-child(-n+5) {
    width: 130px;
}

/* =======================================
   7-column tables
   ======================================= */
.glorious_content table:has(tr > *:nth-child(7)):not(:has(tr > *:nth-child(8))) {
    width: 980px !important;
}

.glorious_content table:has(tr > *:nth-child(7)):not(:has(tr > *:nth-child(8))) th:nth-child(1),
.glorious_content table:has(tr > *:nth-child(7)):not(:has(tr > *:nth-child(8))) td:nth-child(1) {
    width: 80px;
}

.glorious_content table:has(tr > *:nth-child(7)):not(:has(tr > *:nth-child(8))) th:nth-child(2),
.glorious_content table:has(tr > *:nth-child(7)):not(:has(tr > *:nth-child(8))) td:nth-child(2) {
    width: 150px;
}

.glorious_content table:has(tr > *:nth-child(7)):not(:has(tr > *:nth-child(8))) th:nth-last-child(-n+5),
.glorious_content table:has(tr > *:nth-child(7)):not(:has(tr > *:nth-child(8))) td:nth-last-child(-n+5) {
    width: 150px;
}

/* =======================================
   3-column tables
   ======================================= */
.glorious_content table:not(:has(tr > *:nth-child(4))) {
    width: 360px !important;
}

.glorious_content table:not(:has(tr > *:nth-child(4))) th:nth-child(1),
.glorious_content table:not(:has(tr > *:nth-child(4))) td:nth-child(1) {
    width: 80px;
}

.glorious_content table:not(:has(tr > *:nth-child(4))) th:nth-child(2),
.glorious_content table:not(:has(tr > *:nth-child(4))) td:nth-child(2) {
    width: 100px;
}

.glorious_content table:not(:has(tr > *:nth-child(4))) th:nth-child(3),
.glorious_content table:not(:has(tr > *:nth-child(4))) td:nth-child(3) {
    width: 180px;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .glorious_wrap {
        width: 95%;
    }
}

@media screen and (max-width: 768px) {
    .glorious_wrap {
        width: 95%;
    }

    .glorious_page_title {
        font-size: 28px;
        margin: 30px 0 40px;
    }

    .glorious_content th,
    .glorious_content td {
        padding: 10px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .glorious_page_title {
        font-size: 24px;
    }

    .glorious_content {
        overflow-x: auto;
    }
}
