/* 参考
https://demo.moshashugyo.com/video-tag/
https://pulpxstyle.com/post-152/
https://codepen.io/timohausmann/pen/DGNOQR
https://codepen.io/ARS/pen/vEwEPP
https://codepen.io/egrucza/pen/gbXBQQ/
*/
@charset "UTF-8";

/* -------------------- */
/* ------ common ------ */
/* -------------------- */


html {
    color: #000;
    background: #1a202c;
}

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td {
    margin: 0;
    padding: 0
}

button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

fieldset,
img {
    border: 0
}

address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var {
    font-style: normal;
    font-weight: normal
}

ol,
ul {
    list-style: none
}

caption,
th {
    text-align: left
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-weight: normal
}

q:before,
q:after {
    content: ''
}

abbr,
acronym {
    border: 0;
    font-variant: normal
}

sup {
    vertical-align: text-top
}

sub {
    vertical-align: text-bottom
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

legend {
    color: #000
}

#yui3-css-stamp.cssreset {
    display: none
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 游ゴシック体, 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック Pro', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
    box-sizing: border-box;
}

body {
    font-size: 12px;
    line-height: 2;
    background-color: transparent;
}

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

.wrap {
    width: 100%;
    margin: 0 auto;
}

.pc {
    display: none;
}

@media screen and (min-width: 768px) {

    body {
        font-size: 14px;
    }

    .wrap {
        width: 100%;
    }

    .pc {
        display: block;
    }

}


/* -------------------- */
/* -------- Key Visual -------- */
/* -------------------- */


.key-visual-box {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.key-visual-box .copy {
    color: #CBD5E0;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
    letter-spacing: .2em;
    margin: 10px;
}

.key-visual-box .note {
    color: #CBD5E0;
    font-size: 16px;
    text-align: center;

    background-color: rgba(30, 30, 30, 0.4); /* ややグレー寄りに */

    display: inline-block;               /* テキスト幅に背景 */
    padding: 0.5em 1em;                  /* 内側余白で読みやすく */
    border-radius: 6px;                  /* 背景の角を丸く自然に */
    line-height: 1.6;                    /* 行間を広げて読みやすく */
    margin-top: 0.5em;                   /* コピーとの間に余白（必要なら） */
    backdrop-filter: blur(3px);
}


@media screen and (min-width: 768px) {
    .key-visual-box {
        min-width: 960px;
    }
}


/* ----------------------- */
/* -------- video -------- */
/* ----------------------- */
.video-box {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.video-box::after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(16, 57, 75, .3);
    display: block;
    position: absolute;
    left: 0;
    top: 0;
}

.video-box video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

@media screen and (min-width: 768px) {

    .video-box {
        min-width: 960px;
    }

}


/* -------------------- */
/* ------- main ------- */
/* -------------------- */


main {
    padding: 80px 0;
}

.block:not(:first-child) {
    margin-top: 60px;
}

.block h2 {
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    color: #CBD5E0;
}

.block p {
    width: 60%;
    margin: 20px auto 0;
    text-align: left;
    color: #CBD5E0;
}

.block table {
    margin: 20px auto 0;
    width: 60%;
    table-layout: fixed;
    margin-left: auto;
    margin-right: auto;
    border-spacing: 0;
}

.block td {
    border-bottom: solid 2px #ddd;
    color: #CBD5E0;
    padding: 30px 10px 0 10px;
}

.rule-name {
    text-align: left;
}

.rule-yes-no {
    text-align: right;
}

.block .result p {
    text-align: center;
}


/* - add - */

header {
    width: 100%;
    background-color: rgba(0, 0, 0, 0);
    padding: 20px 20px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
}

#logo img {
    width: 30px;
}

.footer-logo {
    width: 30px;
}

@media screen and (min-width: 768px) {
    #logo {
        width: 30px;
    }
}


header {
    display: flex;
    align-items: flex-end;
    vertical-align: text-bottom;
    justify-content: space-between;
}

header #user-count-box,
#total-count-box {
    display: flex;
    justify-content: flex-end;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    padding-left: 20px;
    color: #fff;
    margin-top: 0;
}

header #logo-box {
    display: flex;
    align-items: flex-end;
    vertical-align: text-bottom;
}

#hand-box img,
#hand-sort-box img {
    width: 6%;
}

#play-box {
    margin: 0 auto;
    width: 100%;
    text-align: center;
    margin-top: 10%;
}

#hand-box {
    width: 100%;
    text-align: center;
    margin-top: 20%;
    margin-left: auto;
    margin-right: auto;
}

#hand-sort-box {
    width: 100%;
    text-align: center;
    margin-top: 20%;
    margin-left: auto;
    margin-right: auto;
}

.result {
    color: #CBD5E0;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
    letter-spacing: .2em;
    margin: 10px;
}

/* - /add - */

/* top play button */
.play-button-box {
    text-align: center;
    margin-top: 200px;
}

.play-button-box .play-button {
    position: relative;
    padding: 20px 90px;
    border: 1px solid #ddd;
    color: #CBD5E0;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 2px;
    -webkit-font-smoothing: antialiased;
}

.play-button-box .play-button {
    border: none;
}

.play-button-box .play-button .line-1 {
    -webkit-animation: move1 3500ms infinite ease;
            animation: move1 3500ms infinite ease;
}

.play-button-box .play-button .line-2 {
    -webkit-animation: move2 3500ms infinite ease;
            animation: move2 3500ms infinite ease;
}

.play-button-box .play-button .line-3 {
    -webkit-animation: move3 3500ms infinite ease;
            animation: move3 3500ms infinite ease;
}

.play-button-box .play-button .line-4 {
    -webkit-animation: move4 3500ms infinite ease;
            animation: move4 3500ms infinite ease;
}

.play-button-box .line-1 {
    content: "";
    display: block;
    position: absolute;
    width: 1px;
    background-color: #ddd;
    left: 0;
    bottom: 0;
}

.play-button-box .line-2 {
    content: "";
    display: block;
    position: absolute;
    height: 1px;
    background-color: #ddd;
    left: 0;
    top: 0;
}

.play-button-box .line-3 {
    content: "";
    display: block;
    position: absolute;
    width: 1px;
    background-color: #ddd;
    right: 0;
    top: 0;
}

.play-button-box .line-4 {
    content: "";
    display: block;
    position: absolute;
    height: 1px;
    background-color: #ddd;
    right: 0;
    bottom: 0;
}

@-webkit-keyframes move1 {
    0% {
        height: 100%;
        bottom: 0;
    }

    54% {
        height: 0;
        bottom: 100%;
    }

    55% {
        height: 0;
        bottom: 0;
    }

    100% {
        height: 100%;
        bottom: 0;
    }
}

@keyframes move1 {
    0% {
        height: 100%;
        bottom: 0;
    }

    54% {
        height: 0;
        bottom: 100%;
    }

    55% {
        height: 0;
        bottom: 0;
    }

    100% {
        height: 100%;
        bottom: 0;
    }
}

@-webkit-keyframes move2 {
    0% {
        width: 0;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
    }

    100% {
        width: 0;
        left: 100%;
    }
}

@keyframes move2 {
    0% {
        width: 0;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
    }

    100% {
        width: 0;
        left: 100%;
    }
}

@-webkit-keyframes move3 {
    0% {
        height: 100%;
        top: 0;
    }

    54% {
        height: 0;
        top: 100%;
    }

    55% {
        height: 0;
        top: 0;
    }

    100% {
        height: 100%;
        top: 0;
    }
}

@keyframes move3 {
    0% {
        height: 100%;
        top: 0;
    }

    54% {
        height: 0;
        top: 100%;
    }

    55% {
        height: 0;
        top: 0;
    }

    100% {
        height: 100%;
        top: 0;
    }
}

@-webkit-keyframes move4 {
    0% {
        width: 0;
        right: 0;
    }

    55% {
        width: 100%;
        right: 0;
    }

    100% {
        width: 0;
        right: 100%;
    }
}

@keyframes move4 {
    0% {
        width: 0;
        right: 0;
    }

    55% {
        width: 100%;
        right: 0;
    }

    100% {
        width: 0;
        right: 100%;
    }
}

/* /play button */

#particles-js {
    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100%;
    background-color: #1a202c;
}

#particles-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}
