/* 個人情報保護方針ページのスタイル */
.privacy-policy-page {
    padding: 15rem 0 40px;
}

.page-header {
    text-align: center;
    position: relative;
    padding: 40px 0;
    margin-bottom: 2rem;
}

.privacy-policy-page .section-title-decorated {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-policy-page .slash-left,
.privacy-policy-page .slash-right {
    font-size: 2rem;
    color: #ccc;
    margin: 0 1rem;
}

.privacy-policy-page .section-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

.page-header:before {
    left: 25%;
}

.page-header:after {
    right: 25%;
}

.page-title {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 14px;
    color: #666;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.privacy-intro {
    margin-bottom: 40px;
    line-height: 1.8;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
}

.privacy-section-content {
    line-height: 1.8;
    font-size: 15px;
    color: #333;
}

.privacy-list {
    padding-left: 20px;
    margin-top: 12px;
}

.privacy-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.privacy-list li:before {
    position: absolute;
    left: 0;
    color: #666;
}

.privacy-links {
    list-style: none;
    padding-left: 0;
    margin: 16px 0;
}

.privacy-links li {
    margin-bottom: 8px;
}

.privacy-links a {
    color: var(--primary);
    text-decoration: none;
}

.privacy-links a:hover {
    text-decoration: underline;
}

.contact-info {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.contact-form-link {
    margin: 20px 0;
}

.contact-form-link a {
    color: var(--primary);
    text-decoration: none;
}

.policy-date {
    margin-top: 30px;
    text-align: right;
    font-size: 14px;
    color: #666;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    /* セルの境界線を結合 */
    margin: 20px 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    /* テーブル全体のボーダー */
}

/* ヘッダーセルとデータセルの共通スタイル */
.responsive-table th,
.responsive-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    /* セルごとのボーダー */
    text-align: left;
    white-space: pre-wrap;;
}

/* ヘッダーセルのスタイル */
.responsive-table thead th {
    background-color: #ECECEC;
    color: #333;
    font-weight: bold;
}

/* データセルの背景色（ストライプなど不要なら削除） */
.responsive-table tbody tr:nth-child(even) {
    background-color: #f8f8f8;
    /* 偶数行の背景色 */
}

.responsive-table tbody tr:hover {
    background-color: #f1f1f1;
    /* ホバー時の背景色 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-header:before {
        left: 10%;
    }

    .page-header:after {
        right: 10%;
    }

    .privacy-section-title {
        font-size: 16px;
    }

    .privacy-section-content {
        font-size: 14px;
    }
}

@media screen and (max-width: 767px) {
    .responsive-table {
        border: none;
        /* スマホではテーブル全体のボーダーをなくす */
        box-shadow: none;
        /* スマホではテーブル全体のシャドウをなくす */
    }

    /* ヘッダー行を非表示にする */
    .responsive-table thead {
        display: none;
    }

    /* テーブル、tbody、tr、tdを全てブロック要素にする */
    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
        /* 幅を100%に設定 */
    }

    /* 各支社情報（tr）をカード形式にする */
    .responsive-table tr.branch-entry {
        margin-bottom: 20px;
        /* 各カード間の余白 */
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        /* カードのような影 */
        overflow: hidden;
        /* 角丸を適用するため */
    }

    /* データセルのスタイル */
    .responsive-table td {
        border: none;
        /* セルごとのボーダーをなくす */
        padding-left: 110px;
        /* data-label表示のために左に余白を設ける */
        position: relative;
        /* data-labelを絶対配置するために必要 */
        padding-top: 8px;
        padding-bottom: 8px;
        min-height: 30px;
        /* 行の最小高さを確保 */
    }

    /* 各エントリのヘッダー部分のスタイル */
    .responsive-table .branch-name-header {
        background-color: #ECECEC;
        color: #333;
        text-align: center;
        font-weight: bold;
        padding: 15px;
        /* 上下左右にパディング */
        /* data-labelが不要なので、position関連の調整をリセット */
        position: static;
        padding-left: 15px;
        /* 親の padding-left を上書き */
    }

    /* 支社名セルのdata-labelは表示しない */
    .responsive-table .branch-name-header::before {
        display: none;
    }

    /* data-labelの表示 */
    .responsive-table td::before {
        content: attr(data-label);
        /* data-label属性の値を表示 */
        font-weight: bold;
        position: absolute;
        left: 15px;
        /* 左からの位置 */
        width: 90px;
        /* 見出しラベルの幅 */
        white-space: nowrap;
        /* テキストの折り返しを防ぐ */
        color: #333;
        /* 見出しラベルの色 */
    }
}
