:root {
    color-scheme: dark;
    --bg: #0c1220;
    --surface: #131d30;
    --text: #f1f3fa;
    --muted: #b4bed1;
    --accent: #b5a5ff;
    --border: #2b3851;
    font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.8; }
a { color: inherit; text-decoration: none; }
a:hover { color: #d8cdff; }
a:focus-visible, select:focus-visible { outline: 3px solid #e8cb7c; outline-offset: 5px; }
button, select { font: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 10; padding: .6rem 1rem; background: var(--surface); }
.skip-link:focus { top: 1rem; }
.site-header { max-width: 1440px; margin: auto; padding: 1.3rem 4%; display: flex; align-items: center; gap: 2rem; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: .8rem; font-size: .85rem; font-weight: 650; }
.brand-mark { background: #5b46bd; color: white; border-radius: .5rem; padding: .3rem .65rem; letter-spacing: .05em; }
nav { display: flex; gap: 1.5rem; margin-left: auto; font-size: .85rem; }
.language-control { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); }
select { border: 1px solid var(--border); border-radius: .5rem; padding: .3rem; color: var(--text); background: var(--surface); max-width: 9rem; }
.section-wrap { width: min(1160px, 90%); margin: auto; padding: 5rem 0; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; padding-top: 5rem; padding-bottom: 6rem; }
.eyebrow { color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .13em; margin: 0 0 1rem; }
.intro-label { color: var(--muted); font-size: .85rem; margin-bottom: .6rem; }
h1, h2, h3 { line-height: 1.4; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.4rem, 4.1vw, 4.1rem); margin: .6rem 0 1.4rem; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.65rem); margin: .4rem 0 1.25rem; }
h3 { font-size: 1.12rem; margin: .6rem 0; }
.accent { color: #c6b5ff; }
.lead, .section-lead { color: var(--muted); max-width: 760px; font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; padding: .8rem 1.2rem; border-radius: .7rem; font-size: .9rem; font-weight: 700; border: 1px solid transparent; }
.primary { background: #c7b5ff; color: #201b35; }
.primary:hover { background: #ddd1ff; color: #201b35; }
.secondary { border-color: #56617b; }
.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2rem; }
.stats div { display: flex; flex-direction: column; color: var(--muted); font-size: .8rem; }
.stats strong { color: var(--text); font-size: 2.9rem; line-height: 1.25; font-weight: 650; }
.muted { font-size: .8rem; color: var(--muted); }
.hero-art { border: 1px solid #665e80; border-radius: 1.15rem; padding: .8rem; background: #22243d; box-shadow: 0 30px 100px #050915; transform: rotate(3deg); min-width: 0; }
.art-toolbar, .art-footer { display: flex; align-items: center; gap: .3rem; padding: .3rem .4rem .9rem; color: #c9c6df; font-size: .55rem; letter-spacing: .08em; }
.art-toolbar i { width: .4rem; height: .4rem; border-radius: 50%; background: #b3a0ce; }
.art-toolbar span { margin-left: auto; }
.art-canvas { position: relative; aspect-ratio: 1; overflow: hidden; background: #f5eddb; border-radius: .4rem; color: #263446; }
.art-note { position: absolute; z-index: 2; top: 7%; left: 8%; font: bold clamp(1.3rem, 3.4vw, 3rem)/1.1 Georgia, serif; letter-spacing: -.04em; transform: rotate(-7deg); }
.art-note em { color: #675491; }
.art-canvas canvas { position: absolute; border: 6px solid white; box-shadow: 0 5px 18px #28374b30; }
.art-ocean { width: 62%; height: 53%; right: -4%; top: 16%; transform: rotate(12deg); }
.art-flower { width: 52%; height: 52%; left: 5%; top: 40%; transform: rotate(-12deg); }
.art-stripe { width: 34%; height: 35%; right: 7%; bottom: 9%; transform: rotate(10deg); }
.art-ribbon { position: absolute; width: 34%; height: 34%; right: 5%; top: 0; transform: rotate(-15deg); }
.art-tag { position: absolute; bottom: 3%; left: 8%; font-size: .55rem; letter-spacing: .08em; font-weight: 700; }
.art-footer { justify-content: space-between; padding-bottom: 0; padding-top: .9rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.feature-card { border: 1px solid var(--border); border-radius: 1rem; padding: 1.7rem; background: var(--surface); }
.feature-card p:not(.eyebrow), .compact p { color: var(--muted); font-size: .9rem; }
.material-section { background: #111b2b; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.texture-grid, .stamp-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .8rem; margin: 2rem 0 1rem; }
figure { margin: 0; min-width: 0; }
.texture-grid canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: .6rem; border: 1px solid #ffffff20; }
figcaption { margin-top: .5rem; font-size: .7rem; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.compact { gap: 2rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.stamp-grid { gap: 1.1rem; margin-bottom: 2rem; }
.stamp-image { background: #f7f2e9; aspect-ratio: 1; border-radius: .7rem; display: flex; align-items: center; justify-content: center; }
.stamp-image img { width: 87%; height: 87%; object-fit: contain; }
.ideas { border-top: 1px solid var(--border); }
.closing { text-align: center; padding-top: 4rem; }
.closing > p { color: var(--muted); }
.closing > .button { margin: 1rem 0 2rem; }
.saving-note { text-align: left; color: var(--muted); font-size: .8rem; max-width: 800px; margin: 2rem auto 0; padding: 1.3rem 1.6rem; border: 1px solid var(--border); border-radius: .8rem; }
.saving-note h3 { color: var(--text); font-size: .9rem; }
.site-footer { width: min(1160px, 90%); margin: auto; padding: 1.8rem 0; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--muted); }
.notice { color: #f4dbaa; padding: .8rem; border: 1px solid #8a7550; border-radius: .5rem; }
@media (max-width: 1000px) {
    .site-header { flex-wrap: wrap; gap: .8rem 1.5rem; }
    nav { order: 3; margin-left: 0; width: 100%; }
    .language-control { margin-left: auto; }
    .hero { gap: 2rem; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .texture-grid, .stamp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .brand > span:last-child { display: none; }
    .section-wrap { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .hero { grid-template-columns: 1fr; }
    .hero-art { width: min(400px, 95%); margin: 1rem auto; transform: rotate(2deg); }
    h1 { font-size: clamp(2.3rem, 8vw, 3.2rem); }
    .art-note { font-size: 2.5rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 1.3rem; }
    .stamp-grid { gap: .6rem; }
    .compact { gap: 1rem; }
    .actions .button { width: 100%; }
    .language-control { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
}
