:root {
    --bg: #0b1020;
    --panel: #121933;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --brand: #22d3ee;
    --accent: #10b981;
    --danger: #ef4444;
    --ring: #60a5fa55;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f7f7fb;
        --panel: #ffffff;
        --text: #111827;
        --muted: #6b7280;
        --ring: #60a5fa55;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
    background: radial-gradient(1200px 600px at 80% -10%, #1d2648 0%, var(--bg) 50%), var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: .4px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), #6366f1);
    display: grid;
    place-items: center;
    color: #061018;
    font-weight: 900;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    appearance: none;
    border: 1px solid transparent;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: .2s ease;
    background: #1f2937;
    color: #e5e7eb;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.btn:focus-visible {
    outline: 4px solid var(--ring);
    outline-offset: 2px;
}

.btn.primary {
    background: linear-gradient(135deg, var(--brand), #3b82f6);
    color: #061018;
}

.btn.ghost {
    background: transparent;
    border-color: #303a57;
    color: var(--text);
}

.btn.accent {
    background: linear-gradient(135deg, var(--accent), #3b82f6);
    color: #061018;
}

.p_btn {
    appearance: none;
    border: 1px solid transparent;
    padding: 2px 8px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: .2s ease;
    background: #1f2937;
    color: #e5e7eb;
}

.p_btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.p_btn:focus-visible {
    outline: 4px solid var(--ring);
    outline-offset: 2px;
}

.p_btn.primary {
    background: linear-gradient(135deg, var(--brand), #3b82f6);
    color: #061018;
}

.p_btn.ghost {
    background: transparent;
    border-color: #303a57;
    color: var(--text);
}

.p_btn.accent {
    background: linear-gradient(135deg, var(--accent), #3b82f6);
    color: #061018;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    margin-top: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.15;
    margin: 0 0 12px;
}

.lead {
    color: var(--muted);
    margin: 0 0 20px;
    font-size: clamp(14px, 2.5vw, 18px);
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.note {
    font-size: 12px;
    color: var(--muted);
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid #263055;
    border-radius: 16px;
    padding: 18px;
}

.panel {
    background: var(--panel);
    border: 1px solid #24305a;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.mock {
    width: 100%;
    max-width: 173px;
    height: 350px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(500px 300px at 70% -10%, #26335f 0%, #0b1020 60%);
    border: 1px solid #2e3a66;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.03) 14px 28px);
    pointer-events: none;
}

.img-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.img-slider .slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .3s ease;
}

.img-slider .slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-slider .slide img {
    width: 100%;
    height: auto;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: var(--text);
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
}

.slide-btn.prev {
    left: 8px;
}

.slide-btn.next {
    right: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #cbd5e1;
    border: 1px solid #334155;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

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

.grid .feature {
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #283466;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.feature h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 12px;
}

.step {
    border: 1px dashed #2c3868;
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.step .n {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #0f172a;
    border: 1px solid #334155;
    margin-bottom: 8px;
    font-weight: 700;
}

details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #2b3768;
    border-radius: 12px;
    padding: 12px 14px;
}

summary {
    cursor: pointer;
    font-weight: 700;
}

details+details {
    margin-top: 10px;
}

.foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 8px;
    color: var(--muted);
    font-size: 14px;
}

.sep {
    height: 1px;
    background: linear-gradient(90deg, transparent, #2b3562, transparent);
    margin: 32px 0;
    border: 0;
}

.img-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.img-popup img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* iOS向けホーム画面追加ヘルプ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.overlay.show {
    display: flex;
}

.overlay .popup {
    background: var(--panel);
    color: var(--text);
    padding: 20px;
    border-radius: 12px;
    max-width: 280px;
    text-align: center;
}

.overlay .popup button {
    margin-top: 12px;
}

@media (max-width: 880px) {
    .hero {
        grid-template-columns: 1fr;
    }

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

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