:root {
    --bg: #f5efe3;
    --bg-deep: #efe4cf;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 251, 245, 0.92);
    --ink: #101828;
    --muted: #5f6b7b;
    --line: rgba(16, 24, 40, 0.1);
    --accent: #ff8a00;
    --accent-strong: #ff6a00;
    --accent-soft: rgba(255, 138, 0, 0.14);
    --cool: #3f76ff;
    --cool-soft: rgba(63, 118, 255, 0.12);
    --shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 177, 66, 0.22), transparent 32%),
        radial-gradient(circle at 85% 15%, rgba(63, 118, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #fbf7ef 0%, var(--bg) 40%, #f2eadb 100%);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}

.page-glow {
    position: fixed;
    inset: auto;
    width: 32rem;
    height: 32rem;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.45;
    pointer-events: none;
    z-index: -2;
}

.glow-a {
    top: -8rem;
    right: -10rem;
    background: rgba(255, 148, 32, 0.28);
}

.glow-b {
    bottom: -12rem;
    left: -8rem;
    background: rgba(63, 118, 255, 0.18);
}

.page-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 24, 40, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 40, 0.028) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 75%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 75%);
    pointer-events: none;
    z-index: -1;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: min(1200px, calc(100% - 1.5rem));
    margin: 1rem auto 0;
    padding: 1rem 1.2rem;
    background: rgba(255, 249, 240, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

.brand {
    font-weight: 800;
    letter-spacing: -0.04em;
}

.topnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
}

.topnav a {
    font-size: 0.94rem;
    color: var(--muted);
}

.topnav a:hover {
    color: var(--ink);
}

main {
    width: min(1200px, calc(100% - 1.5rem));
    margin: 0 auto;
    padding: 2rem 0 5rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    min-height: calc(100vh - 7rem);
    padding: 4rem 0 2rem;
}

.hero-copy h1,
.section-heading h2,
.summary-banner h2 {
    margin: 0;
    letter-spacing: -0.06em;
    line-height: 0.96;
}

.hero-copy h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    max-width: 8ch;
}

.lead {
    margin: 1.5rem 0 0;
    max-width: 40rem;
    font-size: clamp(1.05rem, 2vw, 1.18rem);
    line-height: 1.8;
    color: var(--muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    margin-bottom: 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7b5c2e;
}

.hero-actions,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-actions {
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fffaf4;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    box-shadow: 0 14px 28px rgba(255, 106, 0, 0.24);
}

.button-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.66);
    border-color: rgba(16, 24, 40, 0.08);
}

.detail-card,
.setting-card,
.summary-banner,
.device-shot,
.section-heading {
    background: var(--surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
}
.detail-card strong,
.setting-card strong {
    display: block;
    font-size: 1rem;
}

.device-shot {
    position: relative;
    padding: 0.7rem;
    border-radius: calc(var(--radius-xl) + 6px);
}

.device-shot img {
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.12);
}

.annotation-panel {
    position: absolute;
    background: rgba(255, 251, 245, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 22px;
    padding: 1rem 1rem 0.95rem;
}

.annotation-panel strong {
    display: block;
    margin-top: 0.55rem;
    font-size: 1rem;
    line-height: 1.45;
}

.annotation-panel p {
    margin: 0.45rem 0 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--muted);
}

.side-note {
    left: 1.15rem;
    right: 1.15rem;
    bottom: 1.15rem;
}

.center-note,
.profile-note {
    left: 1.15rem;
    right: 1.15rem;
    bottom: 1.15rem;
}

.top-note {
    top: 1.15rem;
    bottom: auto;
}

.swipe-overlay {
    left: 1rem;
    right: 1rem;
    text-align: center;
}

.swipe-up {
    top: 12%;
}

.swipe-down {
    bottom: 27%;
}

.chip,
.setting-label,
.gesture-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.chip {
    background: var(--accent-soft);
    color: #9a5600;
}

.gesture-result {
    background: var(--cool-soft);
    color: #2147ac;
}

.content-section {
    padding: 3rem 0 0;
}

.content-section + .content-section {
    margin-top: 2rem;
}

.section-heading {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.section-heading h2,
.summary-banner h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-heading p,
.summary-banner p,
.feature-list,
.detail-card p,
.setting-card p {
    color: var(--muted);
}

.section-heading p {
    margin: 1rem 0 0;
    max-width: 44rem;
    line-height: 1.75;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    gap: clamp(1.4rem, 3vw, 2.4rem);
    align-items: start;
    margin-top: 1.5rem;
}

.reverse-layout {
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
}

.gesture-preview {
    max-width: 390px;
    margin: 1.5rem auto 0;
}

#gestures .section-heading {
    margin-bottom: 1.5rem;
}

#gestures .gesture-preview {
    margin-top: 0;
}

.section-copy {
    display: grid;
    gap: 1rem;
}

.detail-card {
    padding: 1.3rem;
    border-radius: var(--radius-lg);
}

.detail-card p {
    margin: 0.55rem 0 0;
    line-height: 1.7;
}

.feature-list {
    margin: 0;
    padding-left: 1.15rem;
    line-height: 1.8;
}

.feature-list li + li {
    margin-top: 0.35rem;
}

.settings-layout {
    align-items: center;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.setting-card {
    padding: 1.2rem;
    border-radius: var(--radius-lg);
}

.setting-label {
    margin-bottom: 0.65rem;
    background: rgba(255, 255, 255, 0.74);
    color: #7b5c2e;
}

.setting-card p {
    margin: 0;
    line-height: 1.7;
}

.summary-banner {
    margin-top: 3rem;
    padding: clamp(1.5rem, 4vw, 2.6rem);
    border-radius: calc(var(--radius-xl) + 8px);
    text-align: center;
}

.summary-banner p {
    max-width: 44rem;
    margin: 1rem auto 0;
    line-height: 1.8;
}

.summary-banner .button {
    margin-top: 1.8rem;
}

.site-footer {
    width: min(1200px, calc(100% - 1.5rem));
    margin: 0 auto;
    padding: 0 0 3rem;
    color: var(--muted);
}

.site-footer p {
    margin: 0;
}

.footer-links {
    margin-top: 0.8rem;
}

.footer-links a:hover {
    color: var(--ink);
}

.js [data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js [data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .hero,
    .split-layout,
    .reverse-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 2rem;
    }

    .hero-visual,
    .device-shot {
        max-width: 420px;
        margin: 0 auto;
    }

    .settings-grid,
    .settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .topbar {
        border-radius: 28px;
        padding: 0.9rem 1rem;
    }

    .topnav {
        display: none;
    }

    main {
        padding-top: 1rem;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .detail-card,
    .setting-card,
    .section-heading,
    .summary-banner {
        border-radius: 22px;
    }

    .annotation-panel {
        left: 0.9rem;
        right: 0.9rem;
        width: auto;
        padding: 0.9rem;
    }

    .side-note,
    .center-note,
    .profile-note {
        right: 0.9rem;
        left: 0.9rem;
        bottom: 0.9rem;
    }

    .top-note {
        top: 0.9rem;
        bottom: auto;
    }

    .swipe-up {
        top: 13%;
    }

    .swipe-down {
        bottom: 27%;
    }
}
