:root {
    --v360-bg: #fff;
    --v360-fg: #006CB8;
    --v360-dim: #000;
    --v360-accent: #2098b0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--v360-bg);
    color: var(--v360-fg);
}

main {
    padding: 20px;
}

/* ---- この .v360 ブロックだけをサイトにコピーすれば動きます ---- */
.v360 {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 85vh;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
}

.v360:active {
    cursor: grabbing;
}

.v360 canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.v360__cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 14px;
    justify-items: center;
    background: rgba(8, 10, 13, .72);
    backdrop-filter: blur(2px);
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: opacity .35s ease;
}

.v360__cover[hidden] {
    display: none;
}

.v360__disc {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid var(--v360-accent);
    display: grid;
    place-content: center;
    transition: transform .25s ease, background .25s ease;
}

.v360__cover:hover .v360__disc {
    transform: scale(1.08);
    background: rgba(94, 200, 192, .12);
}

.v360__disc::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 5px;
    border-left: 17px solid var(--v360-accent);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

.v360__label {
    font-size: 16px;
    letter-spacing: .09em;
    color: var(--v360-bg);
}

.v360__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 26px 16px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent);
    opacity: 0;
    transition: opacity .25s ease;
}

.v360:hover .v360__bar,
.v360__bar:focus-within {
    opacity: 1;
}

.v360__btn {
    background: none;
    border: 0;
    color: var(--v360-bg);
    font-size: 12px;
    letter-spacing: .06em;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.v360__btn:hover {
    background: rgba(255, 255, 255, .12);
}

.v360__btn:focus-visible {
    outline: 2px solid var(--v360-accent);
    outline-offset: 2px;
}

.v360__seek {
    flex: 1;
    accent-color: var(--v360-accent);
    cursor: pointer;
}

.v360__time {
    font-size: 12px;
    color: var(--v360-bg);
    font-variant-numeric: tabular-nums;
}

.v360__hint {
    position: absolute;
    top: 12px;
    left: 14px;
    font-size: 11px;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .55);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}

.v360.is-playing .v360__hint {
    opacity: 1;
    animation: v360fade 1s ease 3.5s forwards;
}

@keyframes v360fade {
    to {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .v360__disc,
    .v360__cover,
    .v360__bar {
        transition: none;
    }

    .v360.is-playing .v360__hint {
        animation: none;
    }
}

/* ---- コピーここまで ---- */

.page {
    max-width: 1100px;
    margin: 0 auto 20px auto;
}

.page h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .02em;
    margin: 0 0 6px;
}

.page p {
    color: var(--v360-dim);
    font-size: 16px;
    line-height: 1.75;
    margin: 0 0 26px;
}

#v360-play {
    width: 80px;
}

.error-text {
    text-align: center;
    color: var(--v360-dim);
}
@media only screen and (max-width: 768px) {
    main {
        padding: 10px;
    }

    .v360__btn {
        font-size: 8px;
        letter-spacing: 0;
        padding: 3px 5px;
    }

    .v360__bar {
        gap: 5px;
        padding: 25px 5px 10px;
    }

    .v360__time {
        font-size: 9px;
    }

    #v360-full {
        display: none;
    }

    #v360-play {
        width: 45px;
    }
}