/* 太字スタイル */
#office .content p strong {
    font-weight: bold;
}

/* ギャラリーセクション */
#office .gallery-section {
    margin-top: 40px;
}

@media (max-width: 599px) {
    #office .gallery-section {
        margin-top: 40px;
        padding: 0 4%;
    }
}

#office .gallery-section h2 {
    color: #36328b;
    font-size: 17px;
    padding: 14px 17px;
    border-left: 2px solid #817FA7;
    border-bottom: 1px solid #ecf2f7;
    line-height: 1.5;
    margin-bottom: 0;
}

#office .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    padding: 0 4%;
}

@media (max-width: 599px) {
    #office .gallery-grid {
        padding: 0;
    }
}

@media (max-width: 768px) {
    #office .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 599px) {
    #office .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

#office .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4 / 3;
}

#office .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

#office .gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#office .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#office .gallery-item:hover img {
    transform: scale(1.05);
}

/* ライトボックス */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
    cursor: pointer;
    z-index: 10000;
    padding: 0;
}

.lightbox-close {
    top: 20px;
    right: 30px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    margin-top: -25px;
    user-select: none;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-icon {
    color: #fff;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-2px);
}

.lightbox-close .lightbox-icon {
    font-size: 40px;
}

.lightbox-prev .lightbox-icon,
.lightbox-next .lightbox-icon {
    font-size: 30px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 599px) {
    .lightbox-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

