@charset "UTF-8";

/* =========================================
   Legal Page: 上下対称テーブルデザイン
   ========================================= */

/* 基本設定 (about.css 継承) */
.sub-page {
    background-color: #153828;
}

.legal-section {
    padding: 100px 0; /* about-profile-section と同期 */
}

/* 偶数番目のセクションの背景を少し変えてメリハリを出す（About同様の演出） */
.legal-section:nth-of-type(odd) {
    background: rgba(0, 0, 0, 0.2);
}

/* --- カード設定 (about.cssから完全継承) --- */
.about-card {
    padding: 80px 60px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

/* 番号演出 (service.css 継承) */
.about-card .service-num {
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.08);
    line-height: 1;
    z-index: 0;
}

.card-title {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    color: var(--gold);
    text-align: center;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.legal-intro-text {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* --- 共通テーブルスタイル (about.css を 100% 適用) --- */
.about-info-table {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.info-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    margin: 0;
}

.info-row dt {
    width: 25%; /* Legal用に少し幅を調整 */
    font-weight: 700;
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.info-row dd {
    width: 75%;
    color: var(--white);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* プライバシーポリシー内のリスト (service.css 継承) */
.policy-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.policy-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.policy-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.7rem;
    top: 4px;
}

@media (max-width: 768px) {
    /* 1. 固定ヘッダー対策：アンカーリンクの着地位置 */
    /* HTMLで指定している id="tokushoho" 等の要素がヘッダーに被らないように調整 */
    #tokushoho, 
    #privacy-policy {
        scroll-margin-top: 100px; /* ヘッダーの高さ分、停止位置を上にずらす */
    }

    /* 2. セクション・カードの余白調整 */
    .legal-section {
        padding: 60px 0; /* 上下余白をスマホ向けに凝縮 */
    }

    .about-card {
        padding: 40px 20px; /* カード内の左右余白を削り、文字の表示幅を最大化 */
    }

    /* 3. 背面の巨大な番号演出の抑制 */
    .about-card .service-num {
        font-size: 3.5rem; /* サイズダウン */
        top: 10px;
        left: 20px;
        opacity: 0.04; /* 文字と重なっても邪魔にならないよう、さらに薄く */
    }

    /* 4. タイトル・導入文の調整 */
    .card-title {
        font-size: 1.5rem; /* 視認性の高いサイズへ */
        margin-bottom: 20px;
    }

    .legal-intro-text {
        font-size: 0.9rem;
        text-align: left; /* スマホでは中央揃えより左寄せの方が可読性が高い */
        margin-bottom: 35px;
        line-height: 1.7;
    }

    /* 5. テーブル（定義リスト）の縦並び化 */
    .info-row {
        flex-direction: column; /* 横並びを解除 */
        padding: 18px 0;
    }

    .info-row dt {
        width: 100%;
        color: var(--gold-bright); /* 項目名を少し明るい金にして「見出し」感を強調 */
        font-size: 0.95rem;
        margin-bottom: 6px;
        font-weight: 700;
    }

    .info-row dd {
        width: 100%;
        font-size: 0.95rem;
        line-height: 1.65;
        color: var(--text-light);
        padding-left: 4px; /* 項目名から少しインデントさせて読みやすく */
    }

    /* 6. リスト形式（プライバシーポリシー内）の微調整 */
    .policy-list li {
        font-size: 0.85rem;
        padding-left: 18px;
        margin-bottom: 10px;
    }

    .policy-list li::before {
        top: 3px;
        font-size: 0.6rem;
    }
}

/* 375px以下の超小型デバイス向けの最終微調整 */
@media (max-width: 375px) {
    .card-title {
        font-size: 1.35rem;
    }
    .about-card {
        padding: 35px 15px;
    }
}