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

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
    line-height: 1.7;
    color: var(--text, #1e1e2e);
    background-color: var(--bg-off, #faf9f7);
    -webkit-font-smoothing: antialiased;
}

:root {
    --orange: #eb5505;
    --orange-dark: #c94500;
    --orange-pale: #fff4ee;
    --text: #1e1e2e;
    --text-sub: #52525e;
    --text-muted: #8a8a9a;
    --bg: #ffffff;
    --bg-off: #faf9f7;
    --bg-section: #f4f3f0;
    --border: #e6e5e2;
    --border-light: #eeede9;
    --radius-sm: 8px;
    --radius: 14px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.07);
    --transition: 0.2s ease;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* メインエリア */
.legal-main {
    padding: 2.5rem 0 4rem;
    min-height: 60vh;
}

.legal-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ページタイトル */
.legal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    position: relative;
}

.legal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
}

/* コンテンツカード */
.legal-content {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    line-height: 1.8;
    color: var(--text);
}

/* セクション */
.legal-section {
    margin-bottom: 2.25rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* セクション見出し */
.legal-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-left: 0.875rem;
    border-left: 3px solid var(--orange);
    line-height: 1.4;
}

/* 本文 */
.legal-section p {
    font-size: 0.9rem;
    line-height: 1.85;
    margin-bottom: 0.875rem;
    color: var(--text-sub);
}

.legal-section p:last-child {
    margin-bottom: 0;
}

/* リスト */
.legal-list {
    margin: 0.75rem 0 0.75rem 1.25rem;
    padding: 0;
    list-style: none;
}

.legal-list li {
    font-size: 0.9rem;
    line-height: 1.85;
    margin-bottom: 0.5rem;
    color: var(--text-sub);
    padding-left: 1rem;
    position: relative;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    background: var(--orange);
    border-radius: 50%;
}

.legal-list li:last-child {
    margin-bottom: 0;
}

/* リンク */
.legal-link {
    color: var(--orange);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.legal-link:hover {
    border-bottom-color: var(--orange);
}

/* 会社情報テーブル */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.info-table th,
.info-table td {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.info-table tr:first-child th,
.info-table tr:first-child td {
    border-top: 1px solid var(--border-light);
}

.info-table th {
    font-weight: 600;
    color: var(--text);
    width: 120px;
    white-space: nowrap;
    background: var(--bg-off);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

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

/* お問い合わせボックス */
.legal-contact-box {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 0;
    margin-top: 1.5rem;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.legal-contact-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--orange);
    color: #fff;
}

.legal-contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legal-contact-icon svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.legal-contact-box .legal-contact-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 0;
}

.legal-contact-box p {
    font-size: inherit;
    line-height: inherit;
    margin-bottom: 0;
    color: inherit;
}

.legal-contact-body {
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.legal-contact-box .legal-contact-company {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 0.75rem;
}

.legal-contact-box .legal-contact-num {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--orange);
    letter-spacing: 0.03em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.legal-contact-box .legal-contact-hours {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

/* 制定日・改定日 */
.legal-dates {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    text-align: right;
}

.legal-dates p {
    font-size: 0.8rem;
    line-height: 1.7;
    margin-bottom: 0.125rem;
    color: var(--text-muted);
}

.legal-dates p:last-child {
    margin-bottom: 0;
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: #0f0f1a;
    color: rgba(255, 255, 255, 0.9);
    padding: 20px 20px 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 12px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-copyright {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    padding-bottom: 4px;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 768px) {
    .legal-main {
        padding: 2rem 0 3rem;
    }

    .legal-content {
        padding: 1.5rem 1.25rem;
    }

    .legal-section {
        margin-bottom: 1.75rem;
        padding-bottom: 1.75rem;
    }

    .legal-heading {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .legal-main {
        padding: 1.5rem 0 2.5rem;
    }

    .legal-title {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }

    .legal-content {
        padding: 1.25rem 1rem;
        border-radius: var(--radius-sm);
    }

    .legal-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .legal-heading {
        font-size: 0.95rem;
        padding-left: 0.75rem;
    }

    .legal-section p,
    .legal-list li {
        font-size: 0.85rem;
        line-height: 1.8;
    }

    .info-table th {
        width: 90px;
        font-size: 0.85rem;
    }

    .info-table td {
        font-size: 0.85rem;
    }

    .info-table th,
    .info-table td {
        padding: 0.75rem;
    }

    .legal-contact-header {
        padding: 0.875rem 1.125rem;
        gap: 0.625rem;
    }

    .legal-contact-icon {
        width: 32px;
        height: 32px;
    }

    .legal-contact-icon svg {
        width: 16px;
        height: 16px;
    }

    .legal-contact-box .legal-contact-label {
        font-size: 0.8rem;
    }

    .legal-contact-body {
        padding: 1rem 1.125rem;
    }

    .legal-contact-box .legal-contact-num {
        font-size: 1.35rem;
    }

    .legal-dates {
        margin-top: 2rem;
        padding-top: 1.25rem;
    }

    .footer {
        padding: 16px 16px 10px;
    }
}
