/**
 * プライバシーポリシーページ専用スタイルシート
 * 株式会社リング
 */

 /* ページヒーロー */
.page-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 0.6s ease 0.2s both;
}


/* ==========================================================================
   ポリシーセクション
   ========================================================================== */

.policy-section {
    padding: 60px 0;
    background: #fff;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
}

/* 目次 */
.toc-section {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: var(--shadow);
}

.toc-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.toc-title i {
    color: var(--primary-color);
    margin-right: 10px;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.toc li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.toc a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
}

.toc a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* 前文 */
.policy-intro {
    background: #e7f3ff;
    border-left: 5px solid var(--primary-color);
    padding: 25px 30px;
    margin-bottom: 50px;
    border-radius: 0 8px 8px 0;
    line-height: 2;
}

/* 各条文 */
.policy-article {
    margin-bottom: 50px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    scroll-margin-top: 100px; /* スクロール時のヘッダー分のマージン */
}

.article-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.article-content {
    font-size: 15px;
    line-height: 1.9;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* リスト */
.purpose-list,
.clause-list {
    list-style: none;
    counter-reset: clause-counter;
    padding: 0;
}

.purpose-list > li,
.clause-list > li {
    counter-increment: clause-counter;
    margin-bottom: 20px;
    padding-left: 35px;
    position: relative;
    line-height: 1.9;
}

.purpose-list > li::before,
.clause-list > li::before {
    content: counter(clause-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
}

.sub-clause-list {
    list-style: none;
    counter-reset: sub-clause-counter;
    margin-top: 15px;
    padding-left: 20px;
}

.sub-clause-list > li {
    counter-increment: sub-clause-counter;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.sub-clause-list > li::before {
    content: '(' counter(sub-clause-counter) ')';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.condition-list {
    list-style: none;
    margin-top: 10px;
    padding-left: 20px;
}

.condition-list > li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.condition-list > li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 20px;
    line-height: 1;
}
/* ==========================================================================
   レスポンシブデザイン
   ========================================================================== */

@media (max-width: 768px) {
    /* ヘッダー */
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 99;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .nav-list li {
        border-bottom: 1px solid #eee;
    }
    
    .nav-list a {
        display: block;
        padding: 15px 10px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* ヒーロー */
    .hero {
        padding: 50px 0 40px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    /* ポリシーコンテンツ */
    .toc-section {
        padding: 20px;
    }
    
    .policy-intro {
        padding: 20px;
    }
    
    .policy-article {
        padding: 20px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .article-content {
        font-size: 14px;
    }
    
    .purpose-list > li,
    .clause-list > li {
        padding-left: 30px;
    }
    
    .purpose-list > li::before,
    .clause-list > li::before {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
    
    .sub-clause-list {
        padding-left: 10px;
    }
}
