/* Shared styles for legal / document sub-pages
   藤原実税理士事務所 — brand-consistent with index.html */
:root {
    --ink: #060912;
    --ink-soft: #0c1120;
    --ink-2: #11182c;
    --surface: #ffffff;
    --surface-muted: #f5f7fc;
    --surface-elevated: #eaeef7;
    --paper: #fcfdff;
    --text: #0a1020;
    --text-secondary: #4a5568;
    --text-muted: #8790a4;
    --accent: #2545c4;
    --accent-bright: #4769ee;
    --accent-glow: rgba(71, 105, 238, 0.38);
    --gold: #b8923c;
    --gold-bright: #d4b15f;
    --gold-soft: rgba(184, 146, 60, 0.15);
    --border: rgba(10, 16, 32, 0.08);
    --border-strong: rgba(10, 16, 32, 0.14);
    --shadow-sm: 0 6px 22px rgba(6, 9, 18, 0.07);
    --shadow-md: 0 18px 50px rgba(6, 9, 18, 0.1);
    --gradient-brand: linear-gradient(120deg, #1d38ad 0%, #2545c4 46%, #4769ee 100%);
    --gradient-dark: linear-gradient(165deg, #060912 0%, #0c1120 52%, #11182c 100%);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --font-display: 'Outfit', 'Noto Sans JP', system-ui, sans-serif;
    --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic Medium', 'Meiryo', system-ui, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text);
    background: var(--surface-muted);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* Header */
.legal-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 9, 18, 0.9);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.legal-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    max-width: 1080px;
}

.legal-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
}

.legal-logo::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--gradient-brand);
    box-shadow: 0 0 0 4px rgba(71, 105, 238, 0.18), 0 0 16px var(--accent-glow);
    transform: rotate(45deg);
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.25s var(--ease-out), color 0.2s, border-color 0.25s;
}

.legal-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

/* Page hero */
.legal-hero {
    background: var(--gradient-dark);
    color: #fff;
    padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 3.5rem);
    position: relative;
    overflow: hidden;
}

.legal-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 18% 0%, rgba(71, 105, 238, 0.3) 0%, transparent 58%),
                radial-gradient(ellipse 40% 40% at 92% 30%, rgba(184, 146, 60, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.legal-hero .container { position: relative; z-index: 1; }

.legal-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 0.85rem;
}

.legal-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.legal-hero p {
    margin-top: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    max-width: 42rem;
}

/* Document body */
.legal-main {
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
}

.legal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.75rem, 5vw, 3.25rem);
}

.legal-card h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--border-strong);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.legal-card h2:first-child { margin-top: 0; }

.legal-card h2 .num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: var(--gradient-brand);
    border-radius: 8px;
}

.legal-card h3 {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.75rem 0 0.6rem;
}

.legal-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.legal-card ul, .legal-card ol {
    margin: 0 0 1.1rem 1.25rem;
    color: var(--text-secondary);
}

.legal-card li { margin-bottom: 0.5rem; }

.legal-card a { color: var(--accent); }

.legal-card strong { color: var(--text); font-weight: 600; }

.intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.updated {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
}

/* Definition table for 特商法 */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 1rem;
    font-size: 0.95rem;
}

.spec-table th, .spec-table td {
    text-align: left;
    vertical-align: top;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border);
    line-height: 1.7;
}

.spec-table th {
    width: 32%;
    background: var(--surface-muted);
    font-weight: 600;
    color: var(--text);
    border-right: 1px solid var(--border);
}

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

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

@media (max-width: 600px) {
    .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td {
        display: block;
        width: 100%;
    }
    .spec-table th {
        border-right: none;
        border-bottom: none;
        padding-bottom: 0.35rem;
    }
    .spec-table td { padding-top: 0.35rem; }
}

/* Phone number rendered via CSS to avoid exposing a contiguous,
   crawlable phone string in the HTML source (anti-harvesting). */
.tel-guard {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    -webkit-user-select: none;
    user-select: none;
}
.tel-guard i { font-style: normal; }
.tel-guard .p1::before { content: "0"; }
.tel-guard .p2::before { content: "3\2013"; }
.tel-guard .p3::before { content: "33"; }
.tel-guard .p4::before { content: "60\2013 7370"; }

/* Highlight for fields the owner must fill in before launch */
.fillin {
    background: var(--gold-soft);
    border-bottom: 2px dashed var(--gold);
    color: #8a6d20;
    font-weight: 600;
    padding: 0 0.25em;
    border-radius: 3px;
}

/* Footer */
.legal-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.25rem;
}

.legal-footer nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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