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

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

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

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

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

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

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

/* President's Message */
.page-ohnos-room .president-message {
    margin-bottom: 80px;
}

.page-ohnos-room .president-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-ohnos-room .president-left {
    flex: 1;
}

.page-ohnos-room .president-right {
    flex: 1;
}

.page-ohnos-room .president-left .section-title {
    margin-bottom: 20px;
}

.page-ohnos-room .president-left .section-subtitle {
    margin-bottom: 30px;
}

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

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

.page-ohnos-room .message-image {
    text-align: center;
}

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

.page-ohnos-room .message-image p {
    margin-top: 10px;
    font-size: 14px;
    color: #171717;
    line-height: 1.6;
}

.page-ohnos-room .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-ohnos-room .placeholder-content {
    text-align: center;
    color: #999;
}

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

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

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

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

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

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

.page-ohnos-room .info-table tr:last-child th,
.page-ohnos-room .info-table tr:last-child td {
    padding-bottom: 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Gallery Common Styles - 共通ギャラリースタイル */
.page-ohnos-room .social-activities-gallery,
.page-ohnos-room .training-activities-gallery,
.page-ohnos-room .story-gallery {
    margin-top: 40px;
}

.page-ohnos-room .gallery-container {
    display: grid;
    gap: 20px;
}

/* SOCIAL ACTIVITIES - 4枚表示 */
.page-ohnos-room .social-activities-gallery .gallery-container {
    grid-template-columns: repeat(4, 1fr);
}

/* TRAINING ACTIVITIES - 2枚表示（4列グリッドの左2つ） */
.page-ohnos-room .training-activities-gallery .gallery-container {
    grid-template-columns: repeat(4, 1fr);
}

/* YUKO OHNO'S STORY - 4枚表示 */
.page-ohnos-room .story-gallery .gallery-container {
    grid-template-columns: repeat(4, 1fr);
}

.page-ohnos-room .gallery-item {
    text-align: center;
}

.page-ohnos-room .gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: cover;
}

.page-ohnos-room .gallery-caption-title {
    font-size: 13px;
    padding-bottom: 5px;
}

.page-ohnos-room .gallery-caption {
    font-size: 11.5px;
}

.page-ohnos-room .gallery-dots {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.page-ohnos-room .gallery-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-ohnos-room .gallery-dots .dot.active {
    background-color: #171717;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-ohnos-room .president-layout {
        flex-direction: column;
        gap: 0;
    }

    .page-ohnos-room .president-right {
        width: 100%;
        text-align: center;
    }

    .page-ohnos-room .president-right p {
        text-align: right;
    }

    .page-ohnos-room .access-content {
        flex-direction: column;
    }

    .page-ohnos-room .access-map iframe {
        height: 300px;
    }
}
@media (max-width: 960px) {
    .page-ohnos-room .container {
        font-size: 14px;
    }

    .page-ohnos-room .president-layout {
        flex-direction: column;
        gap: 0px;
    }

    .page-ohnos-room .president-right {
        width: 100%;
        text-align: center;
    }

    /* Gallery - Mobile Slider (全ギャラリー共通) */
    .page-ohnos-room .social-activities-gallery,
    .page-ohnos-room .training-activities-gallery,
    .page-ohnos-room .story-gallery{
        margin-top:20px;
    }

    .page-ohnos-room .social-activities-gallery .gallery-container,
    .page-ohnos-room .training-activities-gallery .gallery-container,
    .page-ohnos-room .story-gallery .gallery-container {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        gap: 0;
    }

    .page-ohnos-room .social-activities-gallery .gallery-container::-webkit-scrollbar,
    .page-ohnos-room .training-activities-gallery .gallery-container::-webkit-scrollbar,
    .page-ohnos-room .story-gallery .gallery-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Opera */
    }

    .page-ohnos-room .social-activities-gallery .gallery-item,
    .page-ohnos-room .training-activities-gallery .gallery-item,
    .page-ohnos-room .story-gallery .gallery-item {
        flex: 0 0 100%;
        scroll-snap-align: start;
    }

    .page-ohnos-room .social-activities-gallery .gallery-dots,
    .page-ohnos-room .training-activities-gallery .gallery-dots,
    .page-ohnos-room .story-gallery .gallery-dots {
        display: flex;
    }

    /* モバイル向けテーブル：縦並び表示 */
    .page-ohnos-room .info-table table {
        border: none;
    }
    .page-ohnos-room .info-table table,
    .page-ohnos-room .info-table thead,
    .page-ohnos-room .info-table tbody,
    .page-ohnos-room .info-table th,
    .page-ohnos-room .info-table td,
    .page-ohnos-room .info-table tr {
        display: block;
    }

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

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

    .page-ohnos-room .info-table tr:first-child th {
        padding-top: 0;
    }

    /* .page-ohnos-room .info-table td {
        padding-left: calc(10px + 1em);
    } */
    
    .page-ohnos-room .access-content {
        flex-direction: column;
    }
    
    .page-ohnos-room .access-map iframe {
        height: 300px;
    }
    
    .page-ohnos-room .timeline-item {
        flex-direction: column;
    }
    
    .page-ohnos-room .timeline-content {
        padding-left: 0;
        padding-top: 10px;
    }
    
    .page-ohnos-room section {
        padding: 0 0 60px 0;
        margin-bottom: 50px;
    }

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

    .page-ohnos-room .president-message{
        margin-bottom: 50px;
    }
    
    .page-ohnos-room .philosophy-subtitle {
        padding-left: 17.39px;
    }
    .page-ohnos-room .section-subtitle{
        padding-left: 17.39px;
    }
    .page-ohnos-room .gallery-caption-title {
        padding: 5px 0;
    }
}

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

@media (max-width: 480px) {
    .page-ohnos-room .sp-none{
        display: none;
    }
    .page-ohnos-room section {
        padding: 0 0 40px 0;
        margin-bottom: 30px;
    }

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

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

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

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

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

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

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