/* モーダルスタイル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 40px;
    border-radius: 5px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.modal-container.active {
    display: block;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    top: 50%;
    left: 0;
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
    text-align: center;
}

.modal-content {
    margin-bottom: 30px;
}

/* ナビゲーションモーダル */
.nav-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-modal.active {
    display: block;
    opacity: 1;
}

.nav-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.nav-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-close span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nav-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-logo {
    margin-bottom: 60px;
}

.modal-logo img {
    width: 120px;
    height: auto;
}

.modal-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.modal-nav-item {
    color: var(--color-light);
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.modal-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-light);
    transition: width 0.3s ease;
}

.modal-nav-item:hover {
    color: var(--color-secondary);
}

.modal-nav-item:hover::after {
    width: 100%;
    background-color: var(--color-secondary);
}

.modal-social {
    margin-top: 60px;
    display: flex;
    gap: 30px;
}

.modal-social-icon {
    color: var(--color-light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.modal-social-icon:hover {
    color: var(--color-secondary);
    transform: translateY(-3px);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .modal-nav-item {
        font-size: 1.2rem;
    }
    
    .modal-logo img {
        width: 100px;
    }
    
    .modal-social {
        margin-top: 40px;
    }
    
    .modal-social-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .modal-container {
        padding: 30px 20px;
    }
    
    .modal-nav-item {
        font-size: 1rem;
    }
    
    .nav-close {
        top: 20px;
        right: 20px;
        width: 30px;
        height: 30px;
    }
}