/* 会社案内ページ用スタイル */
/* 共通の装飾されたセクションタイトル */
.page-company .section-title-decorated {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-company .slash-left,
.page-company .slash-right {
    font-size: 2rem;
    color: #ccc;
    margin: 0 1rem;
}

/* 会社概要セクション */
.page-company .company-profile {
    padding: 15rem 0;
    background-color: #fff;
}

.page-company .profile-content {
    max-width: 45rem;
    /* 全体の横幅 */
    margin: 0 auto;
}

.page-company .profile-table {
    width: 100%;
    border-collapse: separate;
    /* 区切り線を分けて表示するために変更 */
    border-spacing: 0;
    /* セル間のスペースをなくす */
}

.page-company .profile-table tr:first-child th,
.page-company .profile-table tr:first-child td {
    border-top: none;
    /* 最初の行は上の線を消す（必要に応じて） */
}

.page-company .profile-table th,
.page-company .profile-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
    line-height: 1.8;
    border-bottom: none;
    /* 下の線を消す */
}

.page-company .profile-table th {
    width: 10rem;
    /* thの領域 */
    color: #333;
    font-weight: 500;
    border-top: 0.25px solid #A8A8A8;
    /* thの上に線を追加 */
}

.page-company .profile-table td {
    width: 30rem;
    /* tdの表示領域 */
    color: #666;
    border-top: 1px solid #f0f0f0;
    /* tdの上に線を追加 */
}


.page-company .location-row th {
    border-top: none;
}

.page-company .location-row td {
    border-top: none;
}


/* 最初の行のスタイル - 必要に応じて調整 */
.page-company .profile-table tr:first-child th {
    width: 10rem;
    /* thの領域 */
    color: #333;
    font-weight: 500;
    border-top: 0.25px solid #A8A8A8;
    /* thの上に線を追加 */
}

.page-company .profile-table tr:first-child td {
    border-top: 1px solid #f0f0f0;
    /* 最初の行には上の線を表示 */
}

/* メッセージセクション */
.page-company .message {
    padding: 5rem 0;
}

.page-company .section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.page-company .message-content {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.page-company .message-image-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.page-company .message-image {
    width: 100%;
    height: auto;
    display: block;
}

.page-company .message-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.page-company .message-text-area {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 2.5rem;
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-company .message-text {
    overflow-y: auto;
    max-height: 70%;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    /* Firefox */
}

/* Chrome, Edge, Safariのスクロールバーのスタイル */
.page-company .message-text::-webkit-scrollbar {
    width: 5px;
}

.page-company .message-text::-webkit-scrollbar-track {
    background: transparent;
}

.page-company .message-text::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 3px solid transparent;
}

.page-company .message-headline {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-company .message-body {
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: left;
}

.page-company .message-signature {
    text-align: right;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.page-company .position {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.page-company .signature-image {
    max-width: 150px;
    margin-bottom: 0.5rem;
}

.page-company .name-en {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .page-company .message-overlay {
        width: 70%;
    }
}

@media (max-width: 768px) {
    .page-company .company-profile {
        padding: 10rem 0;
    }

    .page-company .message-overlay {
        position: relative;
        width: 100%;
        padding: 1rem;
    }

    .page-company .message-text-area {
        margin-top: -50px;
        z-index: 2;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-company .section-title-decorated {
        font-size: 1.5rem;
    }

    .page-company .slash-left,
    .page-company .slash-right {
        font-size: 1.5rem;
        margin: 0 0.5rem;
    }

    .page-company .message-headline {
        font-size: 1.2rem;
    }
}

/* 沿革セクション */
.page-company .history {
    padding: 5rem 0;
}

/* タイムライン全体のレイアウト */
.page-company .history-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

/* 縦線をなくし、個別のエントリー間で線を表現 */
/* .history-timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 110px;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
} */

/* 年表示の共通コンテナ */
.page-company .timeline-year-container {
    display: flex;
    margin-bottom: 1.5rem;
}

/* 年表示のスタイル */
.page-company .timeline-year {
    width: 120px;
    text-align: right;
    padding-right: 2rem;
}

.page-company .year {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    display: inline-block;
}

.page-company .year-suffix {
    font-size: 0.9rem;
    margin-left: 0.1rem;
    vertical-align: super;
}

/* タイムラインエントリー全体のコンテナ */
.page-company .timeline-entries {
    flex: 1;
    position: relative;
    background-image: linear-gradient(#e0e0e0, #e0e0e0);
    background-repeat: no-repeat;
    background-position: 0.4rem 0;
    background-size: 2px 100%;
    padding-bottom: 1.5rem;
}

/* 個別のタイムラインエントリー */
.page-company .timeline-entry {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    display: flex;
    align-items: center;
}

.page-company .timeline-year-container:last-child .timeline-entries {
    padding-bottom: 0;
}

/* タイムラインの丸いドット */
.page-company .timeline-dot {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background-color: #999;
    z-index: 1;
}

/* 最初のエントリーの線は表示しない */
.page-company .timeline-entries .timeline-entry:first-child::before {
    display: none;
}

/* タイムラインのコンテンツ */
.page-company .timeline-content {
    padding: 0.5rem 0;
}

.page-company .timeline-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.page-company .timeline-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-company .timeline-year {
        width: 60px;
        padding-right: 1rem;
    }

    .page-company .year {
        font-size: 1.4rem;
    }

    .page-company .timeline-entries {
        background-position: 0.35rem 0;
    }
}

@media (max-width: 576px) {

    .page-company .timeline-dot {
        width: 0.7rem;
        height: 0.7rem;
    }

    .page-company .timeline-entries {
        background-position: 0.35rem 0;
    }
}

/* オフィスセクション */
.page-company .office-section {
    padding: 5rem 0;
}

/* オフィス表示用コンテナ */
.page-company .branch-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

/* 支店ボタンエリア */
.page-company .branch-buttons {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 2rem;
    align-self: flex-start;
    /* コンテナの上部に配置 */
    height: fit-content;
}

/* 支店ボタンのスタイル */
.page-company .branch-button {
    background-color: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 30px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    text-decoration: none;
    display: block;
}

.page-company .branch-button::after {
    content: '>';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.page-company .branch-button:hover {
    background-color: #e0e0e0;
}

.page-company .branch-button.active {
    background-color: #333;
    color: white;
}

/* 支店情報表示エリア */
.page-company .branch-info-area {
    width: 70%;
    position: relative;
}

/* 個別の支店情報 */
.page-company .branch-info {
    display: none;
    /* 非アクティブな支店情報は非表示 */
    border-bottom: none;
    /* 区切り線を削除 */
    padding-bottom: 0;
    margin-bottom: 0;
}

.page-company .branch-info.active {
    display: block;
    /* アクティブな支店情報のみ表示 */
}

/* 地図コンテナ */
.page-company .map-container {
    width: 100%;
    height: 300px;
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.page-company .map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Google Mapリンク */
.page-company .google-map-link {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-company .google-map-link:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.page-company .map-arrow {
    margin-left: 0.5rem;
}

/* オフィス詳細情報 */
.page-company .office-details {
    display: flex;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    /* 地図と詳細情報の間に線を追加 */
}

.page-company .office-address,
.page-company .office-tel {
    width: 50%;
}

.page-company .office-details h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.page-company .office-details p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    white-space: pre-wrap;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .page-company .branch-container {
        flex-direction: column;
    }

    .page-company .branch-buttons {
        width: 100%;
        padding-right: 0;
        margin-bottom: 2rem;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }

    .page-company .branch-info-area {
        width: 100%;
    }

    .page-company .branch-button {
        width: auto;
    }
}

@media (max-width: 768px) {
    .page-company .branch-buttons {
        flex-direction: column;
    }

    .page-company .office-address,
    .page-company .office-tel {
        width: 100%;
    }
}

@media (max-width: 576px) {

    .page-company .map-container {
        height: 200px;
    }
}
