/* 固定ページ汎用スタイル (Privacy Policyなど) */

.page-main {
    padding: 6rem 0 6rem; /* ヘッダ分を下げるための適正な余白（PC用約100px相当） */
    margin-top: 0;
    background-color: var(--bg-color); /* 黒背景 */
    color: var(--text-color);
    min-height: 80vh; /* コンテンツが少なくてもフッターが下に来るように */
}

/* header.cssから引き継がれる強制余白（padding-top: 100px）を固定ページでは打ち消す */
body.page .site-content-wrapper {
    padding-top: 0 !important;
}

/* 長文ページ向けの読みやすい幅 */
.page-container {
    max-width: 800px; /* 通常のコンテナより少し狭くして視線移動を減らす */
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--accent-color);
    margin: 1rem auto 0;
}

.page-content-wrapper {
    /* お洒落な背景デザイン（グラスモーフィズム） */
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4rem 5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-content {
    line-height: 2.2; /* 長文のため行間を大きく取る */
    letter-spacing: 0.08em; /* 文字間隔も少し広く開ける */
    font-size: 1rem;
}

/* 管理画面から入力される見出しのスタイル調整 */
.page-content h2 {
    font-size: 1.4rem;
    color: var(--accent-color);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3); /* ゴールドの薄い下線 */
    padding-bottom: 0.5rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-title);
    letter-spacing: 0.1em;
}

.page-content h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-top: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.page-content h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2rem;
    background-color: var(--accent-color);
    margin-right: 0.8rem;
}

.page-content h4,
.page-content h5,
.page-content h6 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.page-content p {
    margin-bottom: 2rem; /* 段落ごとの間隔を広めに */
}

.page-content ul,
.page-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.8rem;
}

.page-content a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.page-content a:hover {
    opacity: 0.8;
}

/* ユーザーが「table」を使って表を作成した時用のスタイル */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.page-content th,
.page-content td {
    padding: 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.page-content th {
    background-color: rgba(255, 255, 255, 0.05);
    font-weight: 700;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .page-main {
        padding: 5rem 0 4rem; /* スマホは上部のヘッダーが小さい分余白を減らす（約80px相当） */
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-content-wrapper {
        padding: 2.5rem 1.5rem; /* スマホは横幅を確保するため左右余白を減らす */
        border-radius: 8px;
    }
    
    .page-content {
        font-size: 0.95rem;
        line-height: 2.0;
        letter-spacing: 0.05em;
    }

    .page-content h2 {
        font-size: 1.2rem;
        margin-top: 3rem;
    }

    .page-content h3 {
        font-size: 1.1rem;
        margin-top: 2.5rem;
    }
}
