/* 飛び出すARハブ — 「遊び方」ポップアップ */
.howto-overlay {
    position: fixed;
    inset: 0;
    z-index: 10002;
    background: rgba(45, 52, 54, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.howto-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.howto-panel {
    max-width: min(92vw, 480px);
    max-height: min(85vh, 640px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    color: #2d3436;
    box-sizing: border-box;
}

.howto-panel h2 {
    margin: 0 0 14px 0;
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.howto-panel ol {
    margin: 0;
    padding-left: 1.25em;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #636e72;
}

.howto-panel li {
    margin-bottom: 10px;
}

.howto-panel li:last-child {
    margin-bottom: 0;
}

.howto-body-short,
.howto-actions-short {
    display: none;
}

.howto-steps-compact {
    margin: 0;
    padding-left: 1.2em;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #636e72;
}

.howto-steps-compact li {
    margin-bottom: 8px;
}

.howto-panel .howto-note {
    margin: 14px 0 0 0;
    padding: 10px 12px;
    background: rgba(0, 114, 255, 0.06);
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #636e72;
}

.howto-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 16px;
    gap: 10px;
}

.howto-actions a.howto-close {
    line-height: 1.2;
}

.howto-close {
    padding: 8px 18px;
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 0.9rem;
    cursor: pointer;
}

.howto-close:hover {
    opacity: 0.9;
}

.howto-hub-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 300;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.85);
    color: #0072ff;
    border: 1px solid rgba(0, 114, 255, 0.2);
    border-radius: 50px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 114, 255, 0.12);
}

.howto-hub-btn:hover {
    background: #fff;
}

@media (max-width: 768px) {
    .howto-hub-btn {
        top: 12px;
        right: 10px;
        padding: 8px 14px;
        font-size: 0.78rem;
    }

    .howto-body-full {
        display: none;
    }

    .howto-body-short {
        display: block;
    }

    .howto-actions-full {
        display: none;
    }

    .howto-actions-short {
        display: flex;
        justify-content: center;
        margin-top: 14px;
    }

    .howto-actions-short .howto-close {
        min-width: 120px;
        padding: 10px 28px;
    }

    .howto-panel h2 {
        font-size: 1.05rem;
        margin-bottom: 10px;
        text-align: center;
    }

    .howto-steps-compact {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .howto-steps-compact li {
        margin-bottom: 6px;
    }

    .howto-note-optional {
        font-size: 0.75rem;
        padding: 6px 0 0;
        margin-top: 8px;
        background: none;
    }
}
