.override-with-new-ui-body .c-lower-kv {
    height: 500px;
}

.override-with-new-ui-body .c-head-layout::before {
    top: 0px;
    height: 21px;
}

.override-with-new-ui-body .c-lower-nav {
    display: none !important;
}

.override-with-new-ui-body .p-news-detail-contents__wrap .p-news-detail-contents__head .c-index-title {
    display: none;
}

.override-with-new-ui-body .p-news-detail-contents__wrap .p-news-detail-contents__head {
    padding-left: 20%;
}

.override-with-new-ui .c-wp-contents .summary {
    border: 1px solid black;
    padding: 20px;
    margin: 10px;
}

.override-with-new-ui {
    padding-right: 30.5%;
}

.override-with-new-ui table,
.override-with-new-ui figure {
    margin-bottom: 30px;
}

.override-with-new-ui-body table {
    text-align: left;
}

.override-with-new-ui .c-wp-contents img {
    max-width: 100% !important;
}

.override-with-new-ui .c-wp-contents p,
.override-with-new-ui .c-wp-contents h4,
.override-with-new-ui .c-wp-contents h3,
.override-with-new-ui .c-wp-contents h2 {
    margin-right: 0px;
}

.override-with-new-ui .c-wp-contents p,
.override-with-new-ui .c-wp-contents h4,
.override-with-new-ui .c-wp-contents h3 {
    padding-top: 10px;
    padding-bottom: 30px;
}

.override-with-new-ui .c-wp-contents h3,
.override-with-new-ui .c-wp-contents h4 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.override-with-new-ui .c-wp-contents .wp-block-image img {
    margin-top: 20px;
}

.override-with-new-ui .c-wp-contents .wp-block-media-text {
    gap: 20px;
}

.override-with-new-ui .c-wp-contents .wp-block-media-text img {
    margin-top: 0px;
}

.override-with-new-ui .c-wp-contents .wp-block-media-text .wp-block-media-text__media {
    padding: 0px;
}

.override-with-new-ui .c-wp-contents .wp-block-media-text .wp-block-media-text__content {
    padding: 0px;
}

.override-with-new-ui .c-wp-contents .wp-block-media-text .wp-block-media-text__content p,
.override-with-new-ui .c-wp-contents .wp-block-media-text .wp-block-media-text__content h3,
.override-with-new-ui .c-wp-contents .wp-block-media-text .wp-block-media-text__content h4 {
    padding-top: 5px;
}

.override-with-new-ui h2+p,
.override-with-new-ui h3+p,
.override-with-new-ui h5+p,
.override-with-new-ui h4+p {
    padding-left: 0px;
}

.override-default-ui .output img,
.override-default-ui .output h3,
.override-default-ui .output h4,
.override-default-ui .output h5,
.override-default-ui .output h6 {
    padding-top: 20px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.override-with-new-ui .c-wp-contents h2::before {
    content: "";
    display: none;
    position: unset;
}

.override-with-new-ui .c-wp-contents h2 {
    padding-top: 10px;
}

.override-with-new-ui .c-wp-contents td,
.override-with-new-ui .c-wp-contents th,
.override-with-new-ui .c-wp-contents tfoot td {
    padding-top: 32px;
    padding-bottom: 32px;
    padding-left: 40px;
    padding-right: 40px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: normal;
}

@media (max-width: 767px) {

    .override-with-new-ui .c-wp-contents td,
    .override-with-new-ui .c-wp-contents th,
    .override-with-new-ui .c-wp-contents tfoot td {
        padding-left: 4px;
        padding-right: 4px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

.override-with-new-ui .c-wp-contents table thead tr th,
.override-with-new-ui .c-wp-contents table tfoot tr td {
    width: 270px;
    background-color: #272727;
    color: white;
}

@media (max-width: 767px) {

    .override-with-new-ui .c-wp-contents table thead tr th,
    .override-with-new-ui .c-wp-contents table tfoot tr td {
        width: 40%;
        background-color: #272727;
        color: white;
    }
}

.override-with-new-ui .c-wp-contents table thead tr th:nth-child(2n),
.override-with-new-ui .c-wp-contents table tfoot tr td:nth-child(2n) {
    max-width: calc(100% - 270px);
    background-color: #434343;
    color: white;
}

@media (max-width: 767px) {

    .override-with-new-ui .c-wp-contents table thead tr th:nth-child(2n),
    .override-with-new-ui .c-wp-contents table tfoot tr td:nth-child(2n) {
        max-width: 60%;
        background-color: #434343;
        color: white;
    }
}

.override-with-new-ui .c-wp-contents ol li,
.override-with-new-ui .c-wp-contents ul li {
    opacity: 0.7;
    padding-inline-start: 6px;
    padding-bottom: 8px;
}

.override-with-new-ui .c-wp-contents ol,
.override-with-new-ui .c-wp-contents ul {
    padding-left: 2em;
    margin-top: 13px;
    margin-bottom: 13px;
}

.override-with-new-ui .c-wp-contents ol {
    padding-left: 1em;
}

.override-with-new-ui .c-wp-contents ol li::before {
    padding-right: 6px;
}

.override-with-new-ui .c-wp-contents ul li {
    list-style-type: "■";
}

.override-with-new-ui .c-wp-contents figure {
    width: unset;
}

/*
 * In some pages the table items from external library overflows, this is the fix
 */
.js-pjax-page .js-contents.is-fixed .p-ir__body-item.yearSelect+.p-ir__body-item #xj-mainlist {
    max-height: 100vh;
    overflow-y: auto;
}

.min-height-fix {
    min-height: 175px;
}

@media (max-width: 767px) {
    .min-height-fix {
        min-height: 125px;
    }
}

/*
 * page-company.php name and position gap
 */

.custom-position {
    display: flex;
    column-gap: 20px;
}

@media (max-width: 767px) {
    .custom-position {
        display: block;
        margin-bottom: 10px;
    }
}

.custom-position>.head {
    min-width: 160px;
    line-break: anywhere;
}

.custom-position>span {
    display: inline-block;
}

