:root {
    --bg-base: #16171a;
    --bg-surface: #202226;
    --bg-surface-2: #252526;
    --bg-surface-3: #2d2d30;
    --border-color: #3a3d45;
    --text-primary: #f3f4f6;
    --text-secondary: #b4b8c2;
    --text-muted: #8b919e;
    --accent: #0078d7;
    --accent-hover: #1c8ce3;
    --accent-soft: rgba(0, 120, 215, 0.16);
    --accent-light: #5cb8ff;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: "Yu Gothic UI", "Segoe UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-light);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    background-color: var(--bg-surface-3);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.12em 0.45em;
    font-family: "Consolas", "Cascadia Mono", monospace;
    font-size: 0.9em;
    color: #9cdcfe;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ヘッダー */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(22, 23, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.01em;
}

.brand:hover {
    text-decoration: none;
}

.brand-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.94rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links a.btn {
    color: #ffffff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

/* ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
    text-decoration: none !important;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.88rem;
}

.btn-lg {
    padding: 13px 22px;
    font-size: 0.98rem;
}

.btn-block {
    width: 100%;
    padding: 13px 20px;
}

.btn-primary {
    background-color: var(--accent);
    border-color: #005a9e;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 120, 215, 0.35);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: var(--bg-surface-3);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: #38383c;
    border-color: #5a5d66;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* ヒーロー */
.hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 88px;
}

.hero-glow {
    position: absolute;
    top: -180px;
    right: -120px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(0, 120, 215, 0.24) 0%, rgba(0, 120, 215, 0) 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 44px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
}

.badge-version {
    background-color: var(--accent-soft);
    border-color: rgba(0, 120, 215, 0.45);
    color: var(--accent-light);
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(2rem, 3.6vw, 2.85rem);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.accent-text {
    color: var(--accent-light);
}

.hero-subtitle {
    margin: 0 0 28px;
    color: var(--text-secondary);
    font-size: 1.03rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.hero-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* アプリ スクリーンショット */
.hero-screenshot-frame {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #3f3f46;
    background-color: #1e1e1e;
    box-shadow: var(--shadow-lg);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-screenshot-frame:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.screenshot-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.hero-screenshot {
    display: block;
    width: 100%;
    height: auto;
}

.screenshot-zoom-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(22, 23, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.9;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.screenshot-trigger:hover .screenshot-zoom-hint {
    background-color: var(--accent);
    opacity: 1;
}

/* 画像拡大モーダル (ライトボックス) */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 11, 14, 0.88);
    backdrop-filter: blur(6px);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-content {
    max-width: min(92vw, 1280px);
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #3f3f46;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.75);
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(32, 34, 38, 0.9);
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.lightbox-close:hover {
    background-color: var(--accent);
}

/* セクション共通 */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--bg-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.section-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.section-title {
    margin: 0 0 12px;
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    font-weight: 700;
}

.section-desc {
    margin: 0;
    color: var(--text-secondary);
}

/* 機能カード */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.feature-card {
    background-color: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: var(--accent-soft);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ステップ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.step-card {
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 26px;
}

.step-num {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 10px;
}

.step-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.step-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.94rem;
}

/* ショートカット表 */
.shortcut-table-wrap {
    max-width: 760px;
    margin: 0 auto;
    background-color: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.shortcut-table {
    width: 100%;
    border-collapse: collapse;
}

.shortcut-table th,
.shortcut-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.shortcut-table th {
    background-color: var(--bg-surface-3);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.shortcut-table tr:last-child td {
    border-bottom: none;
}

kbd {
    display: inline-block;
    padding: 2px 7px;
    font-family: "Consolas", monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    background-color: var(--bg-surface-3);
    border: 1px solid #555a66;
    border-bottom-width: 2px;
    border-radius: 4px;
}

/* ダウンロードボックス */
.download-box {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 36px;
    background-color: var(--bg-surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.download-info h2 {
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.download-info p {
    margin: 0 0 18px;
    color: var(--text-secondary);
}

.spec-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 0.94rem;
}

.spec-list li + li {
    margin-top: 6px;
}

.download-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* フッター */
.site-footer {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 600;
}

.footer-icon {
    width: 20px;
    height: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: var(--text-muted);
}

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

.copyright {
    margin: 0;
}

/* レスポンシブ */
@media (max-width: 900px) {
    .hero-grid,
    .download-box {
        grid-template-columns: 1fr;
    }

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

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

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 18px 24px 24px;
        background-color: var(--bg-surface-2);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        padding: 48px 0 60px;
    }

    .download-box {
        padding: 24px;
    }
}
