/* ========================================
   Company Page Styles - Page Company Only
======================================== */
/* Section Common Styles */
.page-company section {
    border-bottom: 1px solid #171717;
    padding: 0px 20px 100px 20px;
    margin-bottom: 80px;
}

.page-company section:last-child {
    margin-bottom: 136px;
}

/* Company Philosophy */
.page-company .philosophy-subtitle {
    font-size: 15px;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.page-company .company-philosophy .section-title {
    font-family: var(--font-family-shippori-mincho), serif;
}

.page-company .philosophy-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #171717;
    text-align: justify;
}

/* Corporate Spirit */
.page-company .spirit-title {
    font-size: 18px;
    font-weight: 600;
    color: #171717;
    margin-bottom: 20px;
}

.page-company .spirit-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #171717;
    text-align: justify;
}

/* President's Message */
.page-company .president-message {
    margin-bottom: 80px;
    /* padding: 0 20px; */
}

.page-company .message-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-company .message-text {
    flex: 1;
}

.page-company .message-text p {
    font-size: 15px;
    color: #171717;
    margin-bottom: 20px;
    text-align: justify;
}

.page-company .message-text p:first-child {
    margin-bottom: 22px;
}

.page-company .message-text .signature {
    text-align: right;
    font-weight: 600;
    margin-top: 20px;
    font-size: 14px;
    margin-bottom: 0;
}

.page-company .message-image {
    flex: 1;
    text-align: center;
}

.page-company .message-image img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

.page-company .president-placeholder {
    width: 100%;
    max-width: 300px;
    height: 300px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.page-company .placeholder-content {
    text-align: center;
    color: #999;
}

.page-company .placeholder-content i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.page-company .placeholder-content p {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* Company Information */
.page-company .info-table table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.page-company .info-table th,
.page-company .info-table td {
    padding: 20px 0;
    vertical-align: top;
    text-align: left;
    border: none;
}

.page-company .info-table th {
    font-weight: 500;
    font-size: 15px;
    width: 23%;
    color: #171717;
}

.page-company .info-table td {
    font-size: 15px;
    line-height: 1.7;
    color: #171717;
}

.page-company .info-table ul li {
    list-style-type: disc;
    margin-left: 20px;
}
.page-company .info-table ul li a {
    color: #171717;
}

/* Company History */
.page-company .history-timeline {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 40px;
}

.page-company .timeline-item {
    display: flex;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.page-company .timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.page-company .timeline-year {
    width: 100px;
    font-size: 18px;
    font-weight: 600;
    color: #171717;
    flex-shrink: 0;
}

.page-company .timeline-content {
    flex: 1;
    padding-left: 30px;
}

.page-company .timeline-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #171717;
    margin-bottom: 10px;
}

.page-company .timeline-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #171717;
    margin-bottom: 15px;
}

.page-company .timeline-content p:last-child {
    margin-bottom: 0;
}

/* Access */
.page-company .access-content {
    overflow: hidden;
}

.page-company .access-map {
    flex: 1.5;
    margin-bottom: 20px;
}

.page-company .access-map iframe {
    display: block;
    width: 100%;
    height: 400px;
}

.page-company .access-info {
    flex: 1;
    padding: 40px;
}

.page-company .access-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #171717;
    margin-bottom: 30px;
}

.page-company .access-details p {
    font-size: 14px;
    line-height: 1.7;
    color: #171717;
    margin-bottom: 20px;
}

.page-company .access-details strong {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-company .message-content {
        flex-direction: column;
    }
    
    .page-company .message-image {
        order: -1;
        text-align: center;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .page-company .access-content {
        flex-direction: column;
    }
    
    .page-company .access-map iframe {
        height: 300px;
    }
}
@media (max-width: 960px) {
    .page-company .container {
        font-size: 14px;
    }

    .page-company .message-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .page-company .message-image {
        order: -1;
        text-align: center;
        width: 100%;
        margin-bottom: 0;
    }

    /* モバイル向けテーブル：縦並び表示 */
    .page-company .info-table table {
        border: none;
    }
    .page-company .info-table table,
    .page-company .info-table thead,
    .page-company .info-table tbody,
    .page-company .info-table th,
    .page-company .info-table td,
    .page-company .info-table tr {
        display: block;
    }
    
    .page-company .info-table th {
        width: 100%;
        padding: 10px 0 0;
        font-size: 14px;
        margin-top: -1px;
    }

    .page-company .info-table td {
        width: 100%;
        padding: 10px 0;
        font-size: 14px;
        margin-top: -1px;
    }

    .page-company .info-table tr:first-child th {
        padding-top: 0;
    }
    
    .page-company .access-content {
        flex-direction: column;
    }
    
    .page-company .access-map iframe {
        height: 300px;
    }
    
    .page-company .timeline-item {
        flex-direction: column;
    }
    
    .page-company .timeline-content {
        padding-left: 0;
        padding-top: 10px;
    }
    
    .page-company section {
        padding: 0 0 60px 0;
        margin-bottom: 50px;
    }

    .page-company section:last-child {
        margin-bottom: 96px;
    }

    .page-company .president-message{
        margin-bottom: 50px;
    }
    
    .page-company .philosophy-subtitle {
        padding-left: 17.39px;
    }
    .page-company .section-subtitle{
        padding-left: 17.39px;
    }
}

@media (max-width: 640px) {
    .page-company .philosophy-subtitle {
        font-size: 12px;
        padding-left: 16.75px;
    }
    .page-company .section-subtitle{
        font-size: 14px;
        padding-left: 16.75px;
    }
}

@media (max-width: 480px) {
    .page-company section {
        padding: 0 0 40px 0;
        margin-bottom: 30px;
    }

    .page-company section:last-child {
        margin-bottom: 76px;
    }

    .page-company .section-subtitle{
        font-size: 12px;
        padding-left: 14.82px;
        margin-bottom: 1.5rem;
    }
    
    .page-company .philosophy-content p,
    .page-company .spirit-content p,
    .page-company .message-text p {
        font-size: 13px;
        line-height: 1.7;
    }

    .page-company .info-table th,
    .page-company .info-table td {
        font-size: 13px;
        margin-top: -1px;
    }

    .page-company .philosophy-subtitle {
        margin-bottom: 1.5rem;
    }

    .page-company .spirit-title {
        margin-bottom: 1.5rem;
    }

    .page-company .message-text .signature{
        margin-bottom: 0;
    }

    .page-company .president-message {
        margin-bottom: 30px;
    }
    
    .page-company .access-map iframe {
        height: 250px;
    }
    
    .page-company .access-details p {
        font-size: 12px;
    }
}