/* ============================================================
   True Connection Legal Pages - Styles
   利用規約 / プライバシーポリシー / 特定商取引法表記
   ============================================================ */

/* リセット */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #3a3a3a;
    line-height: 1.7;
    background: #F5F1EB;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* カラー変数 */
:root {
    --color-primary: #A68B5B;
    --color-text: #3a3a3a;
    --color-text-light: #7a7a7a;
    --max-width: 1200px;
}

/* ============================================================
   ヘッダー
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(8px);
    padding: 16px 0;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

.header-logo,
.btn-login,
.btn-signup-header {
    white-space: nowrap;
}

.header-logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 2px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn-login {
    font-size: 13px;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.2s;
}

.btn-login:hover {
    color: var(--color-primary);
}

.btn-signup-header {
    display: inline-block;
    padding: 8px 40px;
    background: #F5EFE3;
    color: #9a7a4e;
    border: 1px solid #9a7a4e;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.btn-signup-header:hover {
    background: #ede4d3;
}

/* ============================================================
   フッター
   ============================================================ */
.footer {
    background: #3D2E1E;
    padding: 60px 40px 40px;
    text-align: center;
}

.footer-logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 32px;
    letter-spacing: 3px;
}

.footer-logo::after {
    content: '';
    display: block;
    width: 90%;
    height: 1.5px;
    background: #fff;
    margin: 32px auto 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    font-size: 14px;
    color: #fff;
}

/* フッター下部の注意書き（年齢/異性紹介事業/Pマーク） */
.footer-notice {
    text-align: center;
    margin: 16px auto 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.footer-notice-age {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
}

.footer-notice-cert {
    margin: 2px 0;
    font-size: 12px;
    opacity: 0.85;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-nav a {
    font-size: 14px;
    color: #fff;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #fff;
}

/* ============================================================
   法的ページ本体
   ============================================================ */
.legal-page {
    margin-top: 80px;
    padding: 60px 40px 80px;
    background: #F5F1EB;
    min-height: 100vh;
}

.legal-inner {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 60px 80px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.legal-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-primary);
}

.legal-intro {
    font-size: 14px;
    line-height: 2;
    color: var(--color-text);
    margin-bottom: 40px;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    padding-left: 16px;
    border-left: 4px solid var(--color-primary);
}

.legal-section p {
    font-size: 14px;
    line-height: 2;
    color: var(--color-text);
    margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
    font-size: 14px;
    line-height: 2;
    color: var(--color-text);
    padding-left: 24px;
    margin-bottom: 12px;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-date {
    font-size: 14px;
    color: var(--color-text-light);
    text-align: right;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e8e0d4;
}

/* テーブル（特商法表記用） */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.legal-table th,
.legal-table td {
    font-size: 14px;
    line-height: 2;
    color: var(--color-text);
    padding: 16px 20px;
    border-bottom: 1px solid #e8e0d4;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    font-weight: 600;
    background: #f9f6f1;
    width: 200px;
    white-space: nowrap;
}

/* 認証・届出アイテム（会社概要ページ用） */
.certification-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.privacy-mark-image {
    width: 100px;
    height: auto;
    flex-shrink: 0;
}

.certification-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.8;
}

/* プライバシーポリシーページ用 プライバシーマークバナー
   ※JIPDEC使用ガイドライン遵守:
   - 楕円マドの白加工なし
   - マーク自体を枠線で囲まない（バナー全体にも枠線を付けない） */
.privacy-mark-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    margin: 16px 0 32px;
}

.privacy-mark-banner-image {
    width: 88px;
    height: auto;
    flex-shrink: 0;
}

.privacy-mark-banner-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-text);
}

@media (max-width: 600px) {
    .privacy-mark-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 18px;
    }
    .privacy-mark-banner-image {
        width: 72px;
    }
    .privacy-mark-banner-text {
        font-size: 12px;
    }
}

/* 外部送信ポリシー表（横スクロール対応） */
.transmission-table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
}

.transmission-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    font-size: 13px;
}

.transmission-table th,
.transmission-table td {
    padding: 12px 10px;
    border: 1px solid #e8e0d4;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

.transmission-table th {
    background: #f9f6f1;
    font-weight: 600;
    white-space: nowrap;
}

.transmission-table td {
    color: var(--color-text);
}

.transmission-table a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* FAQページ用スタイル */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 20px;
    border: 1px solid #e8e0d4;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.faq-category-header {
    padding: 16px 20px;
    background: #f9f6f1;
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.faq-category-header:hover {
    background: #f3ede2;
}

.faq-category-arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.faq-category.open .faq-category-arrow {
    transform: rotate(180deg);
}

.faq-category-items {
    display: none;
    padding: 0;
}

.faq-category.open .faq-category-items {
    display: block;
}

.faq-item {
    border-top: 1px solid #e8e0d4;
}

.faq-question {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    user-select: none;
}

.faq-question:hover {
    background: #fafaf7;
}

.faq-q-icon {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    flex-shrink: 0;
}

.faq-q-text {
    flex: 1;
    line-height: 1.6;
}

.faq-q-arrow {
    font-size: 10px;
    color: var(--color-text-light);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-top: 5px;
}

.faq-item.open .faq-q-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 14px 20px 18px;
    background: #fafaf7;
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text);
}

.faq-item.open .faq-answer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.faq-a-icon {
    color: #c7a35a;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

/* ============================================================
   レスポンシブ - タブレット（1100px以下）
   ============================================================ */
@media (max-width: 1100px) {
    .header-inner {
        padding: 0 20px;
    }

    .header-logo {
        font-size: 18px;
    }

    .header-nav {
        gap: 12px;
    }

    .btn-signup-header {
        padding: 8px 24px;
        background: #F5EFE3;
        color: #9a7a4e;
        border: 1px solid #9a7a4e;
        border-radius: 50px;
        font-size: 12px;
    }

    .footer {
        padding: 32px 20px 20px;
    }

    .footer-logo {
        font-size: 18px;
    }

    /* column-reverse で nav を上、copyright を下に配置 */
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 20px;
    }

    /* フッターリンクを縦1列に */
    .footer-nav {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

/* ============================================================
   レスポンシブ - スマホ（768px以下）
   ============================================================ */
@media (max-width: 768px) {
    .legal-page {
        padding: 40px 16px 60px;
    }

    .legal-inner {
        padding: 40px 24px;
    }

    .legal-title {
        font-size: 24px;
    }

    .legal-section h2 {
        font-size: 16px;
    }

    .legal-table th {
        width: auto;
        display: block;
        padding-bottom: 4px;
        border-bottom: none;
    }

    .legal-table td {
        display: block;
        padding-top: 0;
    }
}

/* ============================================================
   レスポンシブ - 小さいスマホ（390px以下）
   ============================================================ */
@media (max-width: 390px) {
    .header-inner {
        padding: 0 12px;
        gap: 8px;
    }

    .header-nav {
        gap: 8px;
    }

    .header-logo {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .btn-login {
        font-size: 11px;
    }

    .btn-signup-header {
        padding: 6px 12px;
        font-size: 10px;
    }
}
