/* 会社概要ページ専用CSS */

/* 会社概要ページ：見出しと本文の書式 */
.company-profile h2,
.company-profile h3 {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-weight: normal;
    line-height: 1.6;
    margin-top: 28px;
    margin-bottom: 14px;
}

/* 大見出し */
.company-profile h2 {
    font-size: 22px;
}

/* 小見出し */
.company-profile h3 {
    font-size: 18px;
}

/* 本文 */
.company-profile p {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 14px;
}

/* 会社概要：文章を左側に配置（PC表示） */
@media (min-width: 992px) {
    .company-profile > h2,
    .company-profile > h3,
    .company-profile > h4,
    .company-profile > p,
    .company-profile > ul,
    .company-profile > ol {
        width: 48% !important;
        max-width: 48% !important;
        margin-left: 0 !important;
    }
}

/* 会社概要：テーブルを左側48％に配置 */
@media (min-width: 992px) {
    .company-profile .wp-block-table {
        width: 48% !important;
        max-width: 48% !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}

/* 会社概要：背景画像の大きさを調整 */
@media (min-width: 992px) {
    .company-profile {
        background-size: 80% auto !important;
        background-repeat: no-repeat !important;
    }
}
/* 会社概要：本文と表の文字を少し太くする */
.company-profile p,
.company-profile .wp-block-table td {
    font-weight: 500;
}

/* 会社概要：テーブルの行間と上下余白 */
.company-profile .wp-block-table td {
    line-height: 1.5 !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

/* 会社概要：テーブル左列を左上揃え */
.company-profile .wp-block-table td:first-child {
    text-align: left !important;
    vertical-align: top !important;
}

/* 会社概要ページ：h3見出し */
.company-profile h3 {
    font-size: 26px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    margin-top: 36px !important;
    margin-bottom: 20px !important;
}

/* 会社概要：h3見出しの左右に横線を配置 */
@media (min-width: 992px) {
    .company-profile h3 {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px !important;
        background: none !important;
        border: none !important;
    }

    .company-profile h3::before,
    .company-profile h3::after {
        content: "" !important;
        display: block !important;
        position: static !important;
        transform: none !important;
        flex: 1 1 0 !important;
        width: auto !important;
        height: 1px !important;
        background: #777777 !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
}
/* 会社概要：会社沿革の表 */
.page .entry-body .company-history-table table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border-top: 1px solid #e0e0e0;
}

/* 左右両方のセル */
.page .entry-body .company-history-table th,
.page .entry-body .company-history-table td {
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 20px 22px;
    vertical-align: middle;
    text-align: left;
    line-height: 1.7;
}

/* 左側：年号の列 */
.page .entry-body .company-history-table tr > :first-child {
    width: 26%;
    text-align: left !important;
    font-weight: 700;
}