/* ==================== 法的ページ用CSS ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #1a1a2e;
    background: #f5f7fa;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== ナビゲーション ==================== */
.navbar {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.brand-icon {
    font-size: 2rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.back-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(124, 58, 237, 0.1);
}

.back-link:hover {
    background: rgba(124, 58, 237, 0.2);
    transform: translateX(-3px);
}

/* ==================== ページヘッダー ==================== */
.page-header {
    text-align: center;
    padding: 80px 0 40px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    margin-bottom: 60px;
    border-radius: 0 0 50px 50px;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.last-updated {
    color: #64748b;
    font-size: 0.9rem;
}

/* ==================== 法的コンテンツ ==================== */
.legal-content {
    padding-bottom: 100px;
}

.legal-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-section:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 15px rgba(0, 0, 0, 0.08),
        0 4px 6px rgba(0, 0, 0, 0.05);
}

.legal-section h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(124, 58, 237, 0.1);
    position: relative;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.legal-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #334155;
    margin: 25px 0 15px;
}

.legal-section p {
    color: #475569;
    margin-bottom: 15px;
}

.legal-section ul,
.legal-section ol {
    margin: 20px 0;
    padding-left: 30px;
}

.legal-section li {
    color: #475569;
    margin-bottom: 10px;
    position: relative;
}

.legal-section ul li::before {
    content: '▸';
    color: #7c3aed;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

/* ==================== 重要な通知 ==================== */
.important-notice {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.important-notice h3 {
    color: #7c3aed;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.important-notice p,
.important-notice ul {
    margin-bottom: 10px;
}

.important-notice li {
    color: #334155;
}

/* ==================== 連絡先情報 ==================== */
.contact-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    border: 1px dashed rgba(124, 58, 237, 0.3);
}

.contact-info p {
    margin-bottom: 8px;
    color: #334155;
}

.contact-info strong {
    color: #1a1a2e;
}

/* ==================== インラインリンク ==================== */
.inline-link {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.inline-link:hover {
    border-bottom-color: #7c3aed;
}

/* ==================== コンプライアンスセクション ==================== */
.compliance {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(124, 58, 237, 0.1);
}

/* ==================== フッター ==================== */
.legal-footer {
    background: rgba(15, 15, 30, 0.95);
    color: white;
    padding: 40px 0;
    margin-top: 100px;
}

.legal-footer .container {
    text-align: center;
}

.legal-footer p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a:hover,
.footer-links a.active {
    color: #a855f7;
}

.footer-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #a855f7;
}

/* ==================== レスポンシブ対応 ==================== */
@media (max-width: 768px) {
    .legal-section {
        padding: 25px 20px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.4rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .back-link {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* ==================== アニメーション ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section {
    animation: fadeIn 0.6s ease forwards;
}

.legal-section:nth-child(1) { animation-delay: 0.1s; }
.legal-section:nth-child(2) { animation-delay: 0.2s; }
.legal-section:nth-child(3) { animation-delay: 0.3s; }
.legal-section:nth-child(4) { animation-delay: 0.4s; }
.legal-section:nth-child(5) { animation-delay: 0.5s; }

/* ==================== アクセシビリティ ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* フォーカススタイル */
a:focus,
button:focus {
    outline: 3px solid #7c3aed;
    outline-offset: 2px;
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
    .legal-section {
        border: 2px solid #1a1a2e;
    }
    
    .important-notice {
        border: 2px solid #7c3aed;
    }
}