/* ==========================================================================
   Habitomo（ハビトモ）— 法務ページ（プライバシーポリシー・利用規約）
   モバイルファースト。ブレークポイント: 375 (base) → 768 (tablet) → 1024 (desktop)
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "BIZ UDPGothic",
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP",
        "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: #3d4a54;
    background-color: #f5f3eb;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 12px;
}

/* === Header === */
header {
    background-color: #fff;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(76, 110, 50, .08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

h1 {
    color: #58a52f;
    font-size: 20px;
}

.lang-switch {
    display: flex;
    gap: 8px;
}

.lang-switch a {
    padding: 6px 14px;
    background-color: #f2f8ea;
    color: #3d4a54;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-switch a:hover {
    background-color: #e4f1d3;
}

.lang-switch a.active {
    background-color: #6cbf3f;
    color: #fff;
}

/* === Content === */
.content {
    background-color: #fff;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(76, 110, 50, .08);
}

.content .updated {
    font-size: 13px;
    color: #6b7680;
    margin-bottom: 16px;
}

h2 {
    color: #58a52f;
    font-size: 18px;
    margin-top: 28px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e4f1d3;
}

h2:first-of-type {
    margin-top: 0;
}

h3 {
    color: #3d4a54;
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 8px;
}

.content p {
    margin-bottom: 12px;
    font-size: 14px;
}

.content ul, .content ol {
    margin: 10px 0 10px 20px;
    padding-left: 0;
}

.content li {
    margin-bottom: 6px;
    font-size: 14px;
}

.content a {
    color: #3c7e1e;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.content strong {
    color: #3d4a54;
}

/* === Footer link === */
.back-home {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

.back-home a {
    color: #3c7e1e;
    text-decoration: none;
    font-weight: 600;
}

.back-home a:hover {
    text-decoration: underline;
}

/* === Tablet: 768px === */
@media (min-width: 768px) {
    .container {
        padding: 20px;
    }

    header {
        padding: 24px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    h1 {
        font-size: 24px;
    }

    .lang-switch a {
        padding: 8px 16px;
        font-size: 14px;
    }

    .content {
        padding: 24px;
        border-radius: 16px;
    }

    h2 {
        font-size: 20px;
        margin-top: 32px;
        margin-bottom: 16px;
    }

    h3 {
        font-size: 16px;
    }

    .content p, .content li {
        font-size: 15px;
    }

    .content .updated {
        font-size: 14px;
    }
}

/* === PC: 1024px === */
@media (min-width: 1024px) {
    .container {
        padding: 30px;
    }

    header {
        padding: 28px 32px;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 26px;
    }

    .lang-switch a {
        padding: 8px 20px;
        font-size: 14px;
    }

    .content {
        padding: 32px;
    }

    h2 {
        font-size: 22px;
        margin-top: 36px;
        margin-bottom: 18px;
    }

    h3 {
        font-size: 17px;
    }

    .content p, .content li {
        font-size: 15px;
    }
}
