:root {
    color-scheme: only light;
    --bg: #f9fbff;
    --surface: #ffffff;
    --accent: #2c3a56;
    --accent-light: rgba(44, 58, 86, 0.1);
    --border: #e1e4eb;
    --text: #1b1d23;
    --muted: #5c6472;
    --shadow: 0 24px 48px rgba(17, 23, 36, 0.08);
    --radius-lg: 28px;
    --radius-sm: 16px;
    --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
    --font-sans: "Hiragino Sans", "Yu Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --max-width: 760px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-serif);
    line-height: 1.8;
    letter-spacing: 0.04em;
}

.page-frame {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 24px 96px;
}

.page-card {
    width: 100%;
    max-width: var(--max-width);
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 56px);
    box-shadow: var(--shadow);
}

.page-header {
    margin-bottom: 24px;
}

.page-title {
    margin: 0 0 12px;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.25;
}

.page-lead {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.7;
}

.page-body {
    font-size: 1.05rem;
    text-align: justify;
    text-justify: inter-ideograph;
}

.page-body h2 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--accent);
    margin: 2.4em 0 1.2em;
}

.page-body p {
    margin: 0 0 1.6em;
}

.page-body ul {
    margin: 0 0 1.6em 1.6em;
    padding: 0;
}

.page-body li {
    margin: 0 0 0.75em;
    font-family: var(--font-sans);
}

.page-body a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(44, 58, 86, 0.4);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.page-body a:hover,
.page-body a:focus {
    border-bottom-color: rgba(44, 58, 86, 0.8);
}

.contact-form {
    margin: 2.4em 0;
    padding: 24px;
    background: rgba(44, 58, 86, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: grid;
    gap: 16px;
}

.contact-form label {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(17, 24, 35, 0.12);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(45, 57, 83, 0.45);
    box-shadow: 0 0 0 3px rgba(45, 57, 83, 0.18);
    outline: none;
}

.contact-form button {
    justify-self: start;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover,
.contact-form button:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(45, 57, 83, 0.3);
}

.page-footer {
    margin-top: 48px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
}

.page-footer a {
    color: var(--accent);
}

@media (max-width: 768px) {
    .page-frame {
        padding: 48px 16px 64px;
    }

    .page-card {
        padding: 32px 20px;
        border-radius: 18px;
    }

    .page-body {
        font-size: 1rem;
        line-height: 1.75;
    }
}

