/* ===== 情報モーダル（使い方・免責事項） ===== */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #E0E0E0;
    background: linear-gradient(135deg, #FFF5F8 0%, #FFFFFF 100%);
    border-radius: 16px 16px 0 0;
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666666;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 107, 157, 0.1);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: white;
    border-radius: 0 0 16px 16px;
}

/* スクロールバーのスタイリング */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #F0F0F0;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #CCCCCC;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* 使い方セクション */
.usage-section {
    margin-bottom: 2rem;
}

.usage-section:last-child {
    margin-bottom: 0;
}

.usage-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FFE0EC;
}

.usage-section ol,
.usage-section ul {
    margin: 0;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.usage-section li {
    margin-bottom: 0.5rem;
    color: #333333;
}

.tool-description {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.tool-description h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.tool-description p {
    margin: 0;
    color: #333333;
    line-height: 1.6;
}

/* 免責事項セクション */
.disclaimer-section {
    margin-bottom: 2rem;
}

.disclaimer-section:last-child {
    margin-bottom: 0;
}

.disclaimer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #FFE8F0 0%, #FFD0E0 100%);
    border-radius: 8px;
}

.disclaimer-section p {
    line-height: 1.8;
    color: #333333;
    margin-bottom: 1rem;
    text-align: justify;
}

.disclaimer-section ul {
    margin: 0;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.disclaimer-section li {
    margin-bottom: 0.75rem;
    color: #333333;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .usage-section h3,
    .disclaimer-section h3 {
        font-size: 1rem;
    }
    
    .tool-description {
        padding: 0.75rem;
    }
}

/* タブレット対応 */
@media (min-width: 769px) and (max-width: 1024px) {
    .modal-content {
        max-width: 600px;
    }
}

/* アニメーション終了時のスタイル */
.info-modal.closing .modal-overlay {
    animation: fadeOut 0.3s ease-out;
}

.info-modal.closing .modal-content {
    animation: slideDown 0.3s ease-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
}