/* ==========================================
   ポリシーページ固有CSS
   privacy-policy.html, site-policy.html, ai-policy.html で共有

   site.css, nav.css を先に読み込む前提。
   ここにはポリシーページ固有のスタイルのみ記述する。
   ========================================== */

/* ==========================================
   ポリシーナビ（site.css .nav-menu 相当）
   ========================================== */
.policy-nav {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2vw, 2rem);

    & a {
        font-family: 'Noto Sans JP', sans-serif;
        font-size: clamp(0.7rem, 1.2vw, 0.85rem);
        font-weight: 500;
        color: #ffffff;
        text-decoration: none;
        transition: color 0.3s ease;
        white-space: nowrap;
        position: relative;

        &::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent-gradient);
            transition: width 0.3s ease;
        }
        &:hover {
            color: var(--secondary-color);
            &::after { width: 100%; }
        }
        &.active {
            color: var(--secondary-color);
            &::after { width: 100%; }
        }
    }
}

/* ==========================================
   ヒーローセクション
   ========================================== */
.hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem 2rem 0;
    margin-bottom: -2rem;
}
.hero-content { position: relative; z-index: 5; }
.company-name-label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.2;
}
.page-title-label {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.3s forwards;
}

/* ==========================================
   文書パネル（ガラスモーフィズム）
   ========================================== */
.document-section {
    position: relative;
    z-index: 1;
    padding: 0 2rem 6rem;
}
.document-panel {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: clamp(1rem, 3vw, 2rem);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 白紙面（法的文書レイヤー） */
.doc-paper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: clamp(2rem, 5vw, 3.5rem);
    color: #1a1a1a;

    & .doc-header {
        text-align: center;
        margin-bottom: 3rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    & .doc-title {
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 1.6rem;
        font-weight: 700;
        color: #1a1a1a;
        letter-spacing: 0.15em;
        margin-bottom: 1rem;
    }
    & .doc-preamble {
        font-size: 0.95rem;
        color: #333;
        line-height: 2;
        text-align: left;
    }
}

/* ==========================================
   条文（section.article）
   site.css の section { padding: 5rem 2rem } を打ち消す
   ========================================== */
.article {
    margin-bottom: 2.5rem;
    padding: 0;
}
.article-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--primary-color);
}
.article-body {
    font-size: 0.92rem;
    color: #444;
    line-height: 2;
    padding-left: 0.5rem;

    & p { margin-bottom: 0.8rem; }
    & ol {
        padding-left: 1.5rem;
        margin-bottom: 0.8rem;
        & li { margin-bottom: 0.5rem; }
    }
    & ul {
        list-style: none;
        padding-left: 1rem;
        margin-bottom: 0.5rem;
        & li::before {
            content: "\2022";
            color: var(--primary-color);
            font-weight: bold;
            display: inline-block;
            width: 1em;
            margin-left: -1em;
        }
    }
    & .sub-list {
        padding-left: 1.5rem;
        margin-top: 0.3rem;
        & li { margin-bottom: 0.3rem; font-size: 0.88rem; }
    }
}

/* 末尾署名 */
.doc-signature {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: right;

    & p {
        font-size: 0.92rem;
        color: #444;
        margin-bottom: 0.3rem;
    }
}

/* ==========================================
   レスポンシブ
   ========================================== */
@media (width <= 768px) {
    /* ヘッダー: ナビを折り返し＋中央揃え */
    .nav-container {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    .policy-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
        width: 100%;
    }

    /* ヒーロー */
    .hero { padding: 2rem 1rem 0; }

    /* 文書パネル: 左右余白を縮小 */
    .document-section { padding: 0 1rem 4rem; }
    .document-panel {
        border-radius: 16px;
        padding: clamp(0.75rem, 2vw, 1.5rem);
    }
    .doc-paper { padding: clamp(1.5rem, 4vw, 2.5rem); }
    .doc-title { font-size: 1.3rem; }
}

@media (width <= 480px) {
    /* スマホ最小幅: さらに余白縮小 */
    .nav-container { padding: 0 0.75rem; }
    .document-section { padding: 0 0.5rem 3rem; }
    .document-panel { padding: 0.5rem; }
    .doc-paper { padding: 1.25rem; }
    .hero { padding: 2rem 0.75rem 0; }
}

/* ==========================================
   prefers-reduced-motion
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    .hero-subtitle { animation: none; opacity: 1; }
}
