:root {
    color-scheme: light;
    --ink: #0a0a0a;
    --muted: #4a4a4a;
    --line: #d9d9d9;
    --paper: #ffffff;
    --soft: #f3f3f3;
    --brand: #000000;
    --brand-dark: #000000;
    --brand-soft: #ebebeb;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family:
        -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic",
        "YuGothic", "Noto Sans JP", sans-serif;
    line-height: 1.75;
}

a {
    color: var(--brand-dark);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
}

.nav {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1080px;
    padding: 14px 24px;
}

.brand {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    font-weight: 700;
    gap: 10px;
    text-decoration: none;
}

.brand img {
    border-radius: 10px;
    display: block;
    height: 34px;
    width: 34px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--brand-dark);
}

main {
    margin: 0 auto;
}

.hero {
    background:
        radial-gradient(circle at 82% 18%, rgba(0, 0, 0, 0.1), transparent 26%),
        linear-gradient(135deg, var(--white), var(--soft));
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) 300px;
    margin: 0 auto;
    max-width: 1080px;
    min-height: 52vh;
    padding: 72px 24px 56px;
}

.hero h1 {
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.04;
    margin: 0 0 20px;
}

.lead {
    color: var(--muted);
    font-size: 18px;
    max-width: 680px;
}

.fallback-meta {
    color: var(--muted);
    font-size: 14px;
    margin: 18px 0 0;
    word-break: break-all;
}

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

.store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.store-badge {
    align-items: center;
    display: inline-flex;
    height: 54px;
    justify-content: center;
    text-decoration: none;
    width: 162px;
}

.store-badge img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.store-badge:hover {
    filter: brightness(1.06);
}

.store-badge.is-disabled {
    cursor: not-allowed;
    opacity: 0.46;
}

.install-section .store-links {
    margin-top: 16px;
}

.button {
    align-items: center;
    border: 1px solid var(--brand);
    border-radius: 8px;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    text-decoration: none;
}

.button.primary {
    background: var(--brand);
    color: var(--white);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.62);
    color: var(--brand-dark);
}

.app-visual {
    align-self: center;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 24px;
    display: grid;
    min-height: 300px;
    place-items: center;
    position: relative;
}

.app-visual::before,
.app-visual::after {
    background: var(--brand);
    border-radius: 999px;
    content: "";
    height: 10px;
    position: absolute;
    width: 72px;
}

.app-visual::before {
    right: 34px;
    top: 36px;
}

.app-visual::after {
    bottom: 42px;
    left: 34px;
    width: 110px;
}

.app-visual img {
    border-radius: 28px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16);
    height: 156px;
    width: 156px;
}

.section {
    margin: 0 auto;
    max-width: 1080px;
    padding: 48px 24px;
}

.section h2 {
    font-size: 28px;
    line-height: 1.25;
    margin: 0 0 18px;
}

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

.panel {
    border-top: 3px solid var(--brand);
    padding-top: 18px;
}

.panel h3 {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 8px;
}

.panel p,
.section p,
.legal li {
    color: var(--muted);
}

.legal {
    max-width: 860px;
}

.legal h1 {
    font-size: 36px;
    line-height: 1.22;
    margin: 0 0 8px;
}

.legal h2 {
    border-top: 1px solid var(--line);
    font-size: 22px;
    line-height: 1.35;
    margin: 34px 0 12px;
    padding-top: 24px;
}

.legal .date {
    color: var(--muted);
    margin: 0 0 24px;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    margin: 32px auto 0;
    max-width: 1080px;
    padding: 24px;
}

@media (max-width: 760px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 48px;
    }

    .app-visual {
        min-height: 220px;
    }

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