/* ========================================
   会社概要ページ専用スタイル
======================================== */

/* ページヒーロー背景 */
.page-company .page-hero::before {
    background-image: url('../images/fv-slide-04.jpg');
}

/* コンテンツラッパー */
.company-section-contents-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    max-width: var(--company-section-content-width-sm);

}

@media (min-width: 1024px) {
    .company-section-contents-wrapper {
        flex-direction: row;
        align-items: center;
        max-width: var(--company-section-content-width-lg);
    }
}
/* ========================================
   理念セクション
======================================== */
.philosophy-intro-section {
    position: relative;
    background: var(--color-white);
    overflow: hidden;
    padding: 4rem 0;
}

.philosophy-intro-section .section-container::before {
    background-image: url('../images/nakamura-flag-icon.png');
}

@media (min-width: 768px) {
    .philosophy-intro-section {
        padding: 6rem 0;
    }
}

/* 理念セクションのコンテンツラッパー - 背景色とパディング */
.philosophy-intro-section .company-section-contents-wrapper {
    background: var(--color-light-blue-bg);
    padding: 2rem 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (min-width: 576px) {
    .philosophy-intro-section .company-section-contents-wrapper {
        padding: 2.5rem 2rem;
    }
}

@media (min-width: 1024px) {
    .philosophy-intro-section .company-section-contents-wrapper {
        padding: 3.5rem 3rem;
    }
}

/* 理念セクションのテキストエリア - アイテム間の間隔 */
.philosophy-intro-section .section-text {
    gap: 1.5rem;
}

/* 理念セクションの画像 - 1024px以上で4:3に */
.philosophy-intro-section .section-image img {
    aspect-ratio: 16 / 9;
}

@media (min-width: 1024px) {
    .philosophy-intro-section .section-image img {
        aspect-ratio: 4 / 3;
    }
}

/* 理念アイテム（タイトルとテキストのグループ） */
.philosophy-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 理念アイテム間の区切り線 */
.philosophy-divider {
    width: 90%;
    height: 1px;
    background: var(--color-primary);
    opacity: 0.3;
    margin: 0 auto;
}

/* 理念タイトル */
.philosophy-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 0.125rem;
    display: inline-block;
    width: max-content;
}

/* 理念タイトル下線装飾 */
.philosophy-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    opacity: 0.9;
}

.philosophy-title i {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ビューポートに入ったら下線を描画 */
.philosophy-item.in-view .philosophy-title::after {
    width: 100%;
}

/* 理念テキスト */
.philosophy-text {
    font-size: var(--body-font-size-sp);
    line-height: var(--body-line-height-sp);
    margin: 0;
    text-align: left;
}

@media (min-width: 768px) {
    .philosophy-text {
        font-size: 1.1rem!important;
        line-height: var(--body-line-height-pc);
    }
    
}

.philosophy-list-wrapper {
    display: flex;
    justify-content: flex-start;
}

/* 理念リスト（チェックマークなし） */
.philosophy-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.philosophy-list li {
    color: var(--color-text);
    font-size: 1rem;
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
    padding-left: 1.5rem;
    position: relative;
}

@media (min-width: 768px) {
    .philosophy-list li {
        font-size: 1.1rem;
        line-height: var(--body-line-height-pc);
    }
}

@media (min-width: 576px) {

    .philosophy-list-wrapper {
        justify-content: center;
    }

    .philosophy-list {
        width: max-content;
    }

    .philosophy-text {
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .philosophy-list {
        width: auto;
    }
}

/* シンプルな黒丸 */
.philosophy-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* ========================================
   代表挨拶セクション
======================================== */
.message-intro-section {
    position: relative;
    background-image: url('../images/fv-slide-04.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 4rem 0;
    z-index: 1;
}

/* 代表挨拶セクション - グラデーションオーバーレイ */
.message-intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(3, 155, 229, 0.4) 0%,
        rgba(2, 136, 209, 0.67) 40%,
        rgba(25, 118, 210, 0.94) 100%
    );
    z-index: 1;
}

/* ========================================
   代表挨拶セクション - ジグザグ装飾（個別スタイル）
======================================== */
.message-intro-section .divider-svg {
    display: block;
    width: 100%;
    height: 34px;
    opacity: 0.9;
    visibility: hidden;
    z-index: 2;
}

.message-intro-section .divider-svg.ready {
    visibility: visible;
}

/* ジグザグの色を白に設定 */
.message-intro-section .divider-path {
    stroke: #ffffff;
    stroke-width: 2;
}

/* ========================================
   代表挨拶セクション - 右側アイコン装飾（個別スタイル）
======================================== */
/* 代表挨拶セクション - コンテナを前面に */
.message-intro-section .section-container {
    position: relative;
    z-index: 2;
}

/* 代表挨拶セクション - 右側にアイコン配置 */
.message-intro-section .section-container::before {
    background-image: url('../images/nakamura-white-ceo-icon.png');
    opacity: 0.25;
    border-color: var(--color-white);
}

/* 代表挨拶セクション - 英語タイトルを白色に */
.message-intro-section .section-title-en {
    opacity: 0.9;
    color: var(--color-white);
    background-color: transparent;
    border: 1px solid var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    /* 背景色とテキスト色を変化 */
    transition: color 0.6s ease 2.3s, background-color 0.6s ease 2.3s;
}

/* 代表挨拶セクション - ビューポートに入ったら背景を真っ白に、テキストを青に */
.message-intro-section.section.in-view .section-title-en {
    background-color: var(--color-white) !important;
    color: var(--color-primary);
}

/* 代表挨拶セクション - 左から伸びる線を白に */
.message-intro-section .section-title-wrapper:not(.section-title-right) .section-title-en::before {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* 代表挨拶セクション - 日本語タイトルのスタイル（カスタマイズ可能） */
.message-intro-section .section-title-ja {
    opacity: 0.9;
    color: var(--color-white);
    /* 必要に応じてアニメーションを追加可能 */
}

@media (min-width: 768px) {
    .message-intro-section {
        padding: 6rem 0;
    }
}

/* ========================================
   会社情報セクション
======================================== */
.company-info-intro-section {
    position: relative;
    background: var(--color-white);
    overflow: hidden;
    padding: 4rem 0;
}

/* 会社情報セクション - 右上にアイコン配置 */
.company-info-intro-section .section-container::before {
    background-image: url('../images/nakamura-nipper-icon.png');
}

@media (min-width: 768px) {
    .company-info-intro-section {
        padding: 6rem 0;
    }
}

/* 会社情報テーブルラッパー */
.company-info-table-wrapper {
    width: 100%;
    padding: 2rem 1.25rem;
    background: var(--color-light-blue-bg);
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (min-width: 576px) {
    .company-info-table-wrapper {
        padding: 2.5rem 2rem;
    }
}

@media (min-width: 1024px) {
    .company-info-table-wrapper {
        padding: 3.5rem 3rem;
    }
}

/* ========================================
   テーブルスタイル
======================================== */
.company-table {
    width: 100%;
    border-collapse: collapse;
    max-width: 800px;
    margin: 0 auto;
}

.company-table th,
.company-table td {
    padding: 1.25rem 1rem;
    text-align: left;
    vertical-align: middle;
    position: relative;
}

/* thの下線（太い青、左側を丸く） */
.company-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(25, 118, 210, 0.8);
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

/* tdの下線（細いグレー、右側を丸く） */
.company-table td::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

@media (min-width: 576px) {

    .company-table td {
        padding-left: 1.25rem;
    }
    
}

@media (min-width: 768px) {
    .company-table th,
    .company-table td {
        padding: 1.5rem;
    }


    
    .company-table td {
        padding-left: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .company-table td {
        padding-left: 2.75rem;
    }
}

.company-table th {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    width: 30%;
    letter-spacing: var(--body-letter-spacing);
    text-align: center;
}

@media (min-width: 768px) {
    .company-table th {
        font-size: 1rem;
    }
}

.company-table td {
    font-size: 1rem;
    line-height: var(--body-line-height-sp);
    color: #666666;
    letter-spacing: var(--body-letter-spacing);
}

@media (min-width: 768px) {
    .company-table td {
        font-size: 1.05rem;
        line-height: var(--body-line-height-pc);
    }
}

@media (min-width: 1024px) {
    .company-table td {
        font-size: 1.1rem;
    }
}

/* ========================================
   代表挨拶・会社情報テキストスタイル
======================================== */
/* 代表挨拶テキストラッパー */
.message-text-wrapper {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (min-width: 576px) {
    .message-text-wrapper {
        padding: 2.5rem 2rem;
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .message-text-wrapper {
        padding: 3.5rem 3rem;
    }
}

/* 各段落のスタイル */
.message-text {
    font-size: 1.05rem!important;
    line-height: var(--body-line-height-sp);
    margin: 0;
    opacity: 0.95;
}

@media (min-width: 768px) {
    .message-text {
        font-size: 1.1rem!important;
        line-height: var(--body-line-height-pc);
    }
}

/* テキストの各行に罫線を引く */
.message-text-paragraph {
    margin: 0;
    padding: 0;
    position: relative;
    background-image: 
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent calc(1em * 1.8 - 1px),
            rgba(255, 255, 255, 0.25) calc(1em * 1.8 - 1px),
            rgba(255, 255, 255, 0.25) calc(1em * 1.8),
            transparent calc(1em * 1.8),
            transparent calc(1em * 1.8 * 2 - 1px),
            rgba(255, 255, 255, 0.25) calc(1em * 1.8 * 2 - 1px),
            rgba(255, 255, 255, 0.25) calc(1em * 1.8 * 2)
        );
    background-position: 0 0;
}

@media (min-width: 768px) {
    .message-text-paragraph {
        background-image: 
            repeating-linear-gradient(
                to bottom,
                transparent 0,
                transparent calc(1em * 1.9 - 1px),
                rgba(255, 255, 255, 0.25) calc(1em * 1.9 - 1px),
                rgba(255, 255, 255, 0.25) calc(1em * 1.9),
                transparent calc(1em * 1.9),
                transparent calc(1em * 1.9 * 2 - 1px),
                rgba(255, 255, 255, 0.25) calc(1em * 1.9 * 2 - 1px),
                rgba(255, 255, 255, 0.25) calc(1em * 1.9 * 2)
            );
    }
}

.message-signature {
    font-size: 1.2rem!important;
    line-height: var(--body-line-height-sp);
    text-align: right;
    color: var(--color-white)!important;
    font-weight: 500;
    margin-top: 1rem;
}

@media (min-width: 768px) {  
    .message-signature {
        font-size: 1.3rem!important;
        line-height: var(--body-line-height-pc);
        margin-top: 2rem;
    }
}
