/* 色はアプリの constants/pos-palette.ts に合わせる */
:root {
    --bg: #F7F4EF;
    --surface: #FFFFFF;
    --border: #E3DDD1;
    --text: #1C2A39;
    --muted: #6B6B6B;
    --accent: #1C2A39;
    --accent-soft: #E8E0D4;
    --accent-text: #F7F4EF;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121212;
        --surface: #1C1C1C;
        --border: #2E2E2E;
        --text: #F1F1F1;
        --muted: #B3B3B3;
        --accent: #E2C08A;
        --accent-soft: #332D24;
        --accent-text: #1A1A1A;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
    line-height: 1.8;
    -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { opacity: .75; }

.wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px;
}

header.site {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
header.site .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 16px;
    min-height: 60px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.site { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
nav.site a { text-decoration: none; color: var(--muted); }
nav.site a[aria-current="page"] { color: var(--text); font-weight: 700; }

main { padding: 40px 0 64px; }

h1 { font-size: 26px; line-height: 1.4; margin: 0 0 24px; }
h2 { font-size: 19px; line-height: 1.5; margin: 40px 0 12px; padding-top: 16px; border-top: 1px solid var(--border); }
h3 { font-size: 16px; margin: 28px 0 8px; }
p { margin: 0 0 16px; overflow-wrap: anywhere; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 96px; height: 96px; border-radius: 22px; }
.hero h1 { margin: 16px 0 8px; font-size: 30px; }
.hero .lead { color: var(--muted); margin-bottom: 32px; }

.features { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 32px 0; }
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
}
.card h3 { margin: 0 0 4px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
    font-weight: 700;
}
.button.secondary { background: var(--accent-soft); color: var(--text); }

footer.site {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    padding: 24px 0 40px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
footer.site a { color: inherit; }
