/* ===================================
   会社情報ページ全般
=================================== */
body.page .container.company-page {
    padding-top: 50px !important;
}

.company-page .company-section {
    padding: 60px 0;
}

.company-page .section-title-company {
    font-size: 2rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 60px;
    color: #009B73;
    font-weight: bold;
}

/* -----------------------------------------
   1.ページ内メニュー
   ----------------------------------------- */
.company-page .page-anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 80px;
    padding-top: 0;
    list-style: none !important;
    padding: 0;
    margin: 50px 0;
}

.company-page .anchor-link,
.page-anchor-nav li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none !important;
    border-bottom: 1px solid #ddd;
    padding: 5px 10px 10px 0;
    flex: 1;
    min-width: 220px;
    transition: opacity 0.2s ease;
    color: #009B73 !important;
    font-weight: bold;
    font-size: 1.1rem;
}

.company-page .anchor-link:hover,
.page-anchor-nav li a:hover {
    opacity: 0.7;
    text-decoration: none !important;
    border-bottom-color: #009B73;
}

.company-page .anchor-link-arrow,
.page-anchor-nav li a::after {
    color: #009B73;
    font-size: 1.5rem;
    content: '↓';
    font-weight: bold;
    margin-left: 20px;
    transform: scaleY(0.8);
}

@media (max-width: 1199px) {
    .company-page .page-anchor-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .page-anchor-nav {
        flex-direction: column;
        gap: 20px;
    }
    .page-anchor-nav li a {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .company-page .page-anchor-nav {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------
   2.代表挨拶
----------------------------------------- */
.company-page .greeting-wrapper,
.company-page .space-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.company-page .greeting-image,
.company-page .space-image {
    flex: 0 0 300px;
}

.company-page .greeting-image img,
.company-page .space-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.company-page .greeting-text,
.company-page .space-text {
    flex: 1;
}

.company-page .greeting-signature {
    text-align: right;
    margin-top: 30px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .company-page .greeting-wrapper,
    .company-page .space-wrapper {
        flex-direction: column;
    }
    .company-page .greeting-image,
    .company-page .space-image {
        flex-basis: auto;
        width: 100%;
        max-width: 300px;
    }
}

/* -----------------------------------------
   3.会社概要
----------------------------------------- */
@media (max-width: 768px) {
    .company-page .profile-table th,
    .company-page .profile-table td {
        padding: 10px;
		font-size: 16px;
    }
}

/* -----------------------------------------
   4.沿革
----------------------------------------- */
.timeline-wrapper {
    max-width: 600px;
    margin: 30px auto 0;
    width: 100%;
    position: relative;
    border-left: 3px solid #ddd;
    padding-left: 40px !important;
    padding-top: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
}

.timeline-wrapper .wp-block-columns {
    position: relative;
    margin-bottom: 40px !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-right: 0 !important;
    align-items: flex-start !important; 
}

/* 年号 */
.timeline-wrapper .wp-block-column:first-child {
    flex-basis: 100px !important;
    flex-grow: 0 !important;
    font-size: 1.8rem;
    font-weight: bold;
    color: #009B73;
    line-height: 1.2; 
    margin-top: 0;
    transform: none; 
}

/* テキスト */
.timeline-wrapper .wp-block-column:last-child {
    padding-top: 6px; 
}

/* テキスト内の段落 */
.timeline-wrapper .wp-block-column:last-child p {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.6;
}

.timeline-wrapper .wp-block-columns::before {
    content: '';
    position: absolute;
    z-index: 1;
    left: -49.5px;
    top: 10px; 
    width: 16px;
    height: 16px;
    background-color: #fff;
    border: 3px solid #009B73;
    border-radius: 50%;
    box-sizing: border-box; 
}

@media (max-width: 600px) {
	.timeline-wrapper .wp-block-column:first-child {
    flex-basis: 20px !important;
	}
    .timeline-wrapper {
        padding-left: 30px !important;
    }
    .timeline-wrapper .wp-block-columns {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px;
        margin-bottom: 30px !important;
    }
    .timeline-wrapper .wp-block-columns::before {
        top: 10px;
        left: -39.5px;
    }
    .timeline-wrapper .wp-block-column:last-child {
        padding-top: 0;
    }
}