/* プライバシーポリシー専用スタイル */

/* メインコンテナ */
.privacy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    min-height: calc(100vh - 70px);
}

/* ヘッダーセクション */
.privacy-header {
    background: linear-gradient(135deg, #003E5E 0%, #005A9E 50%, #80C0FF 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.privacy-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.privacy-hero {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.privacy-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.privacy-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin: 0 0 30px;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.privacy-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.8;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* コンテンツエリア */
.privacy-content {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

/* 目次サイドバー */
.privacy-toc {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 90px;
    z-index: 10;
    width: 350px;
    min-width: 350px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* メインコンテンツエリア */
.privacy-main-content {
    flex: 1;
    min-width: 0;
}

/* イントロダクション */
.privacy-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 60px;
    border-left: 6px solid #003E5E;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.privacy-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 62, 94, 0.05) 0%, transparent 70%);
    transform: rotate(45deg);
}

.privacy-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
    position: relative;
    z-index: 2;
}

.toc-title {
    font-size: 1.3rem;
    color: #003E5E;
    margin: 0 0 20px 0;
    padding: 0 0 15px 0;
    border-bottom: 2px solid #80C0FF;
    text-align: center;
    font-weight: 600;
    flex-shrink: 0;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
}

.toc-list li {
    position: relative;
}

.toc-list a {
    display: block;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    font-size: 0.85rem;
    line-height: 1.4;
    background: #ffffff;
}

.toc-list a:hover {
    background: #f8f9fa;
    border-color: #80C0FF;
    color: #003E5E;
    transform: translateX(2px);
}

.toc-list a:focus {
    outline: 2px solid #005A9E;
    outline-offset: 2px;
}

/* セクション */
.privacy-section {
    margin-bottom: 80px;
    scroll-margin-top: 120px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.privacy-section:nth-child(even) {
    animation-delay: 0.1s;
}

.privacy-section:nth-child(odd) {
    animation-delay: 0.2s;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #003E5E;
    margin: 0 0 40px;
    padding: 20px 0;
    border-bottom: 3px solid #80C0FF;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px 40px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 40px;
    width: 80px;
    height: 3px;
    background: #003E5E;
}

.section-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 0 0 12px 12px;
    border: 1px solid #e9ecef;
    border-top: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.section-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

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

/* サブセクション */
.subsection {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #80C0FF;
    position: relative;
    overflow: hidden;
}

.subsection::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(128, 192, 255, 0.1) 0%, transparent 70%);
    transform: translate(30px, -30px);
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 1.3rem;
    color: #003E5E;
    margin: 0 0 20px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.subsection p {
    position: relative;
    z-index: 2;
}

/* リスト */
.info-list,
.purpose-list,
.exception-list,
.shared-use-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.info-list li,
.purpose-list li,
.exception-list li,
.shared-use-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.info-list li:hover,
.purpose-list li:hover,
.exception-list li:hover,
.shared-use-list li:hover {
    background: rgba(128, 192, 255, 0.05);
    padding-left: 35px;
}

.info-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #80C0FF;
    font-weight: bold;
}

.purpose-list li::before,
.exception-list li::before,
.shared-use-list li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 20px;
    width: 8px;
    height: 8px;
    background: #80C0FF;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.purpose-list li:hover::before,
.exception-list li:hover::before,
.shared-use-list li:hover::before {
    background: #003E5E;
    transform: scale(1.2);
}

/* お問い合わせ情報 */
.contact-info {
    background: linear-gradient(135deg, #003E5E 0%, #005A9E 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.contact-details {
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.contact-details h4 {
    font-size: 1.3rem;
    margin: 0 0 20px;
    color: #80C0FF;
    font-weight: 600;
}

.address,
.email {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.address p,
.email p {
    margin: 0;
    color: white;
}

/* トップに戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.back-to-top-btn {
    background: linear-gradient(135deg, #003E5E 0%, #005A9E 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #005A9E 0%, #80C0FF 100%);
}

.arrow-up {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.btn-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* スクロールアニメーション用クラス */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .privacy-content {
        flex-direction: column;
        gap: 30px;
        padding: 40px 15px;
    }

    .privacy-toc {
        position: static;
        width: 100%;
        min-width: auto;
        max-height: none;
        order: -1;
    }

    .toc-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 10px;
    }

    .toc-list a {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .privacy-container {
        padding: 0;
    }

    .privacy-header {
        padding: 60px 0 40px;
    }

    .privacy-content {
        padding: 40px 15px;
    }

    .privacy-intro {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .privacy-toc {
        padding: 20px;
        margin-bottom: 30px;
    }

    .toc-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .toc-list a {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .privacy-section {
        margin-bottom: 60px;
    }

    .section-title {
        padding: 20px 20px;
        font-size: 1.3rem;
    }

    .section-title::after {
        left: 20px;
        width: 60px;
    }

    .section-content {
        padding: 30px 20px;
    }

    .subsection {
        padding: 20px;
        margin-bottom: 30px;
    }

    .subsection-title {
        font-size: 1.1rem;
    }

    .contact-info {
        padding: 30px 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }

    .back-to-top-btn {
        width: 50px;
        height: 50px;
    }

    .arrow-up {
        font-size: 1rem;
    }

    .btn-text {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .privacy-hero {
        padding: 0 15px;
    }

    .privacy-title {
        font-size: 2rem;
    }

    .privacy-subtitle {
        font-size: 1.1rem;
    }

    .privacy-description {
        font-size: 0.9rem;
    }

    .section-content p {
        font-size: 0.9rem;
    }

    .info-list li,
    .purpose-list li,
    .exception-list li,
    .shared-use-list li {
        font-size: 0.9rem;
        padding: 10px 0 10px 25px;
    }
}

/* 印刷用スタイル */
@media print {
    .privacy-header {
        background: none !important;
        color: #000 !important;
        padding: 20px 0 !important;
    }

    .privacy-toc {
        position: static !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    .back-to-top {
        display: none !important;
    }

    .section-content {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    .contact-info {
        background: none !important;
        color: #000 !important;
        border: 1px solid #ccc !important;
    }

    .contact-details h4 {
        color: #000 !important;
    }

    .address,
    .email {
        background: none !important;
        border: 1px solid #ccc !important;
    }

    .address p,
    .email p {
        color: #000 !important;
    }
}

/* アクセシビリティ向上 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .privacy-header {
        background: #000000 !important;
        color: #ffffff !important;
    }

    .section-title {
        background: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #000000 !important;
    }

    .toc-list a {
        border: 2px solid #000000 !important;
    }

    .toc-list a:hover {
        background: #000000 !important;
        color: #ffffff !important;
    }
}

