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

/* ==========================================
   レイアウト
   ========================================== */

.l_company {
    max-width: 1148px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

.l_company_inner {
    width: 100%;
}

/* ページタイトル */
.c_page_title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: 2.5rem;
    padding: 0 0 1rem 0;
    border-bottom: 1px solid var(--line-solid);
    text-align: left;
}

/* 2カラムレイアウト */
.l_company_layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* メインコンテンツ */
.l_company_main {
    flex: 1;
    min-width: 0;
}

/* サイドバー */
.l_company_sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
}

/* ==========================================
   セクション共通スタイル
   ========================================== */

.c_company_section {
    margin-bottom: 4rem;
}

.c_section_title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--cp-blue);
    position: relative;
    display: flex;
    align-items: baseline;
}

.c_section_subtitle {
    font-size: 1rem;
    color: var(--sub-text);
    margin-left: 0.5rem;
}

/* ==========================================
   チャットプラスについて
   ========================================== */

.c_company_about .c_about_content {
    font-size: 1rem;
    line-height: 2;
    color: var(--c-navy);
}

.c_company_about .c_about_content p {
    margin-bottom: 1.5rem;
}

.c_company_about .c_about_content p:first-child {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cp-blue);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.c_company_about .c_about_content p:last-child {
    margin-top: 2rem;
    font-weight: 600;
    font-size: 1.125rem;
}

/* ==========================================
   会社概要テーブル
   ========================================== */

.c_company_table {
    background-color: var(--c-white);
    border: 1px solid var(--line-solid);
    border-radius: var(--border-radius-normal);
    overflow: hidden;
}

.c_company_table dl {
    display: flex;
    margin: 0;
    border-bottom: 1px solid var(--line-solid);
}

.c_company_table dl:last-child {
    border-bottom: none;
}

.c_company_table dt {
    width: 150px;
    padding: 1rem 1.5rem;
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--c-navy);
    flex-shrink: 0;
}

.c_company_table dd {
    flex: 1;
    padding: 1rem 1.5rem;
    margin: 0;
    color: var(--c-navy);
    line-height: 1.8;
}

.c_link_map {
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--cp-blue);
    text-decoration: underline;
    font-size: 0.875rem;
}

.c_link_map:hover {
    opacity: 0.8;
}

/* ==========================================
   組織図
   ========================================== */

.c_organization_image {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius-normal);
    text-align: center;
}

.c_organization_image img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   代表メッセージ
   ========================================== */

.c_message_content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.c_message_image {
    width: 200px;
    flex-shrink: 0;
}

.c_message_image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-normal);
}

.c_message_text {
    flex: 1;
    font-size: 1rem;
    line-height: 2;
    color: var(--c-navy);
}

.c_message_text p {
    margin-bottom: 1rem;
}

/* ==========================================
   健康経営の取り組み
   ========================================== */

.c_health_content {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius-normal);
}

.c_health_image {
    margin-bottom: 1.5rem;
    text-align: center;
}

.c_health_image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-normal);
}

.c_health_text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--c-navy);
}

.c_health_text p {
    margin-bottom: 1rem;
}

.c_health_text p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   注釈
   ========================================== */

.c_company_note {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line-solid);
}

.c_note_mark {
    font-size: 0.875rem;
    color: var(--sub-text);
}

/* ==========================================
   サイドバー
   ========================================== */

.c_sidebar_nav {
    background-color: var(--c-white);
    border: 1px solid var(--line-solid);
    border-radius: var(--border-radius-normal);
    padding: 1.5rem;
}

.c_sidebar_title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--cp-blue);
}

.c_sidebar_menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.c_sidebar_menu li {
    margin-bottom: 0.75rem;
}

.c_sidebar_menu li:last-child {
    margin-bottom: 0;
}

.c_sidebar_menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--c-navy);
    text-decoration: none;
    font-size: 0.9375rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.c_sidebar_menu a:hover {
    background-color: var(--bg-light);
    border-left-color: var(--cp-blue);
    color: var(--cp-blue);
}

.c_sidebar_menu a.is-active {
    background-color: var(--bg-light);
    border-left-color: var(--cp-blue);
    color: var(--cp-blue);
    font-weight: 600;
}

/* ==========================================
   CTA セクション
   ========================================== */

.c_cta {
    margin-top: 5rem;
    margin-bottom: 0;
    padding: 3rem 0 5rem;
}

.c_cta.basic_bg {
    background-color: var(--cp-background);
}

.cta_bottom {
    padding: 3rem 1.5rem 5rem;
    margin-bottom: 0;
}

.cta_bottom.basic_bg {
    background-color: var(--cp-background);
}

.c_cta h2,
.cta_bottom h2 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: 2.5rem;
}

/* CTA内部のスタイルはcommon.cssを使用 */

.btn_icon_navy,
.btn_icon_white {
    display: flex;
    align-items: center;
    padding-right: .5rem;
    margin-right: .5rem;
}

.btn_icon_navy {
    border-right: 1px dotted var(--c-navy);
}

.btn_icon_white {
    border-right: 1px dotted var(--c-white);
}

.btn_icon_navy img,
.btn_icon_white img {
    width: 20px;
    height: 20px;
}

.btn_icon_w_fix {
    white-space: nowrap;
}

/* ==========================================
   レスポンシブ対応
   ========================================== */

@media screen and (max-width: 768px) {
    .l_company {
        padding: 0 1rem 3rem;
    }

    /* 2カラムを1カラムに */
    .l_company_layout {
        flex-direction: column;
        gap: 2rem;
    }

    .l_company_sidebar {
        width: 100%;
        position: static;
    }

    /* ページタイトル */
    .c_page_title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* セクションタイトル */
    .c_section_title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    /* 会社概要テーブル */
    .c_company_table dl {
        flex-direction: column;
    }

    .c_company_table dt {
        width: 100%;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--line-solid);
    }

    .c_company_table dd {
        padding: 0.75rem 1rem;
    }

    /* 代表メッセージ */
    .c_message_content {
        flex-direction: column;
    }

    .c_message_image {
        width: 100%;
        margin-bottom: 1rem;
    }

    /* CTA */
    .cta_bottom_inner {
        flex-direction: column;
        gap: 2rem;
    }

    .cta_bottom_dl,
    .cta_bottom_contact {
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .l_company {
        padding: 0 1rem 2rem;
    }

    .c_page_title {
        font-size: 1.25rem;
    }

    .c_section_title {
        font-size: 1.125rem;
    }

    .c_company_about .c_about_content p:first-child {
        font-size: 1.125rem;
    }

    .c_company_table dt,
    .c_company_table dd {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }

    .btn_yellow,
    .btn_navy {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        min-width: auto;
    }
}