:root {
    --bg: #f4efe6;
    --surface: #fffdf8;
    --surface-strong: #f7f1e7;
    --text: #1f1a14;
    --muted: #5f5548;
    --border: #d9cfbf;
    --accent: #9a3412;
    --accent-soft: #f3dfcf;
    --shadow: 0 20px 40px rgba(31, 26, 20, 0.08);
    --max-width: 980px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(154, 52, 18, 0.08), transparent 28%),
        linear-gradient(180deg, #f9f5ee 0%, var(--bg) 100%);
    color: var(--text);
    line-height: 1.75;
}

a {
    color: var(--accent);
}

.page {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    padding: 32px 0 72px;
}

.hero,
.card {
    background: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(217, 207, 191, 0.75);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hero {
    padding: 32px;
    margin-bottom: 24px;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.08;
}

.hero p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff8f0;
}

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    padding: 24px;
}

.card h2,
.card h3 {
    margin-top: 0;
}

.meta-list,
.quick-links {
    display: grid;
    gap: 12px;
}

.meta-row {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--surface-strong);
}

.meta-label {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.meta-value {
    font-weight: 700;
}

.bullet-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text);
}

.bullet-list li + li {
    margin-top: 10px;
}

.card-note {
    margin: 18px 0 0;
    color: var(--muted);
}

.document-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
}

.document-shell {
    padding: 28px;
}

.document-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.document-header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.15;
}

.document-header p {
    margin: 6px 0 0;
    color: var(--muted);
}

.language-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.language-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.document {
    display: grid;
    gap: 20px;
}

.notice {
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--accent-soft);
    color: #5a210d;
}

.section {
    padding: 22px 22px 6px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
}

.section h2 {
    margin-top: 0;
    font-size: 1.4rem;
}

.section h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.section p,
.section li {
    color: var(--text);
}

.section ul,
.section ol {
    padding-left: 1.3rem;
}

.section table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 18px;
    font-size: 0.96rem;
}

.section th,
.section td {
    padding: 12px 10px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.section th {
    background: var(--surface-strong);
}

.document-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer {
    margin-top: 24px;
    color: var(--muted);
    text-align: center;
    font-size: 0.92rem;
}

@media (max-width: 720px) {
    .page {
        width: min(calc(100% - 20px), var(--max-width));
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .hero,
    .card,
    .document-shell {
        padding: 20px;
        border-radius: 22px;
    }

    .section {
        padding: 18px 16px 4px;
    }

    .section table,
    .section thead,
    .section tbody,
    .section th,
    .section td,
    .section tr {
        display: block;
    }

    .section thead {
        display: none;
    }

    .section tr {
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: 16px;
        overflow: hidden;
    }

    .section td {
        border: none;
        border-bottom: 1px solid var(--border);
    }

    .section td:last-child {
        border-bottom: none;
    }
}
