/* ---------------------------------------
フロントページ(トップページ)
--------------------------------------- */

.front-page {
    display: flex;
    position: relative;
    align-items: center;
}

.front-page figure {
    margin: 0;
}


/* ---------------------------------------
走者紹介ページ
--------------------------------------- */

#runner-util {
    height: 35px;
	margin-bottom:10px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#runner-list-button {
    width: 35px;
    height: 35px;
    margin-right: .5rem;
    -webkit-appearance: none;
    background: #fff;
    color: #000;
    border: solid 2px #fff;
    border-radius: .4rem;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    align-items: center;
    justify-content: center;
}

#runner-list-button i {
    font-size: 1rem;
}

#day-select {
    padding: 5px 20px;
    margin-right: .5rem;
    background-color: #555;
    color: #fff;
    width: 200px;
}

.runner p.notes {
    text-align: right;
    padding-right: 1rem;
    font-size: .8rem;
    color: #aaa;
}

.day-container>h2 {
    color: #000;
    background-color: #fff;
    padding: 0 1rem;
    line-height: 2.2rem;
    border-bottom: none;
}

.day-container {
    margin-bottom: 1rem;
}

.runner-profile {
    position: relative;
}

.runner-profile>article {
    margin: 1.5rem 0;
}

.day-container article:first-of-type {
    padding-top: 0;
}

.runner-profile h3 i {
    /* color: orangered; */
    color: #fff;
}

.runner-profile table tbody td {
    white-space: normal;
    padding: .2rem .4rem;
    min-width: auto;
}

.runner-profile .wp-block-table+iframe {
    display: inline-block;
    margin: .5rem;
    padding: 0;
    height: 160px;
    max-width: 320px;
    width: 90%;
}

.wp-block-table.game-info-table table {
	width: 600px;
}

.game-info-table table tbody tr td:first-child {
    width: 6.5rem;
}

.youtube-image-wrapper,
.youtube .youtube-player-thumb,
.youtube iframe {
    cursor: pointer;
}

.youtube {
    margin: 0 1.5rem;
    position: relative;
}

.youtube-player-thumb i {
    color: #f00;
    background-image: radial-gradient(at center, #fff 35%, transparent 40%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.runner-profile {
    padding-bottom: .5rem;
}

.runner-group {
    min-width: 540px;
}

.svg-niconico-runner {
    fill: #fff;
    background-color: #252525;
    border-radius: .2rem;
    padding: 0 .2rem;
    width: 1rem;
    height: 1.2rem;
}

.runner-icon {
    margin: 0;
    border-radius: .2rem;
}

.runner-icon>img {
    max-width: 150px;
    max-height: 150px;
}

.runner-name {
    padding: .4rem 0 .2rem 0;
    line-height: 1rem;
}

.runner-links {
    margin: 0;
    position: relative;
}

.runner-links p {
    display: none;
}

.runner-link-button .fa-twitter {
    background-color: #1b9bf0;
    color: #fff;
}

.runner-link-button .fa-youtube {
    background-color: #f00;
    color: #fff;
}

.runner-link-button .fa-twitch {
    background-color: #9147ff;
    color: #fff;
}

.runner-link-button .fa-broadcast-tower {
    background-color: #5bb88b;
    color: #fff;
}

.runner-link-button {
    border: none;
    background-color: transparent;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.runner-link-balloon {
    display: none;
	z-index: 2;
    position: absolute;
    background-color: rgba(0, 0, 0, .8);
    border-radius: .5rem;
    border: 2px solid #fff;
    bottom: 1.5rem;
}

.runner-link-icon-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 5.6rem;
    padding: .2rem;
}

.runner-links .fa-twitter,
.runner-links .fa-youtube,
.runner-links .fa-twitch,
.runner-links .fa-broadcast-tower {
    font-size: 1rem;
    padding: .1rem;
    margin: 0 .1rem;
    border-radius: .2rem;
}

.runner-links .fa-broadcast-tower {
    font-size: .9rem;
    padding: .15rem;
    margin: 0 .1rem;
    border-radius: .2rem;
}

.runner-link-icon-wrapper .fa-twitter,
.runner-link-icon-wrapper .fa-youtube,
.runner-link-icon-wrapper .fa-twitch {
    width: 2.1rem;
    font-size: 1.5rem;
    padding: .2rem;
}

.runner-link-icon-wrapper .fa-broadcast-tower {
    width: 2.1rem;
    font-size: 1.3rem;
    padding: 0.4rem 0.2rem;
}

.runner-link-icon-wrapper .fa-twitter,
.runner-link-icon-wrapper .fa-youtube,
.runner-link-icon-wrapper .fa-twitch,
.runner-link-icon-wrapper .niconico-link,
.runner-link-icon-wrapper .fa-broadcast-tower {
    margin: .2rem;
    height: 1.9rem;
}

.runner-link-balloon .svg-niconico-runner {
    border-radius: .2rem;
    background-color: #252525;
    width: 1.5rem;
    padding: 0 .25rem;
    height: 1.9rem;
}

.twitter-link>i {
    color: #fff;
    background-color: #1b9bf0;
}

.youtube-link>i {
    background-color: #f00;
    color: #fff;
}

.twitch-link>i {
    background-color: #9147ff;
    color: #fff;
}

.other-link>i {
    background-color: #5bb88b;
    color: #fff;
}

.runner-info-youtube-wrapper>div {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.runner-group>div {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
    flex-wrap: wrap;
    max-width: 550px;
}

.runner-info-wrapper {
    padding: .4rem;
}

.runner-3 .runner-info-wrapper,
.runner-5 .runner-info-wrapper,
.runner-6 .runner-info-wrapper {
    width: 33%;
}

.runner-2 .runner-info-wrapper,
.runner-4 .runner-info-wrapper {
	width: 40%;
}

.runner-info>.wp-block-group__inner-container,
.commentator-info>.wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
}

figure.runner-icon {
    position: relative;
}

figure.runner-icon {
    margin: 0;
}

figure.commentator::before {
    position: absolute;
    bottom: .5rem;
    right: .5rem;
    z-index: 2;
    color: #444;
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, -1px 1px 0 #fff, 1px -1px 0 #fff, 0px 1px 0 #fff, 0-1px 0 #fff, -1px 0 0 #fff, 1px 0 0 #fff;
    font-weight: bold;
    content: "";
}

figure.commentator::before {
    content: "解説";
}

figure.commentator::after {
    border-color: transparent rgba(0, 0, 0, .7) rgba(0, 0, 0, .7) transparent;
    border-style: solid;
    border-width: 1.2rem;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    white-space: nowrap;
    content: "";
}

/* ---------------------------------------
支援イラスト紹介ページ
--------------------------------------- */

.wp-block-gallery.fan-art-gallery {
    display: block;
    width: 100%;
}

.wp-block-gallery.fan-art-gallery ul {
    display: flex;
    margin: 0 auto;
}

.fan-art-gallery .blocks-gallery-grid .blocks-gallery-item {
    margin: 0;
    width: 200px;
    margin-bottom: 10px;
}

.fan-art-gallery .blocks-gallery-item,
.fan-art-gallery .blocks-gallery-item figure {
    display: block;
}

.blocks-gallery-item__caption {
    display: none;
}

.art-wrapper a img {
    margin: 5px;
    width: 160px;
    height: auto;
}

.mfp-bottom-bar>.mfp-title {
    white-space: nowrap;
    padding-right: 0;
}

.mfp-bottom-bar>.mfp-counter {
    position: relative;
}


/* ---------------------------------------
PhotoSwipe
--------------------------------------- */

.ps_area {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

.ps_area:after {
    content: "";
    display: block;
    width: 32.5%;
}

.ps_area a {
    width: 32.5%;
    margin-bottom: 1.25%;
    transition-duration: .3s;
}

.ps_area a:hover {
    opacity: .7;
    cursor: zoom-in;
}

.ps_area a img {
    width: 100%;
    height: auto;
    vertical-align: top;
}

.ps_area figure {
    display: none;
}

.pswp__bg {
    opacity: .92 !important;
}

.pswp__counter {
    font-size: 16px;
    top: 10px;
    left: 10px;
}

.pswp__caption__center {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.5rem;
	max-width: 600px;
}

.pswp__description {
    font-size: .9rem;
}

.wp-block-table table {
    width: auto;
}


/* ---------------------------------------
ゲームレビュー一覧ページ
--------------------------------------- */

.game-review-index article h2 {
    margin-bottom: 1rem;
}

.game-review-index img.game-review-thumb {
    width: 240px;
    height: auto;
}

.game-review-index .more-link {
    line-height: 2rem;
    margin: .5rem 0 0 1rem;
}


/* ---------------------------------------
ゲームレビュー個別ページ
--------------------------------------- */

.to-index {
    position: absolute;
    top: .2rem;
    right: 2rem;
    display: block;
}

ul.pagination {
    list-style-type: none;
    margin-left: 1rem;
}

ul.pagination a {
    padding: 1rem .3rem;
}


/* ---------------------------------------
ミニゲーム紹介ページ
--------------------------------------- */

.mini-game-index p.notes {
    padding: 0 0 0 1rem;
    font-size: .8rem;
    line-height: 1rem;
    color: #aaa;
}

.mini-game-index article {
    display: inline-block;
    position: relative;
    border: solid 1px rgba(1, 1, 1, 0);
}

.mini-game-index article>* {
    padding: 0;
}

.mini-game-index article:hover {
    border: solid 1px #fff;
    border-radius: .5rem;
}

img.mini-game-thumb {
    width: 100%;
    height: auto;
}

.mini-game-wrapper a {
    margin: 5px;
    width: 200px;
    height: 150px;
    position: relative;
    overflow: hidden;
}

.mini-game-title {
    background-color: rgba(0, 0, 0, .5);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    bottom: 0;
    width: 100%;
    height: 2.5rem;
}

.mini-game-title>p {
    width: 90%;
    color: #fff;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
    text-overflow: Ellipsis;
    overflow: hidden;
}


/* ---------------------------------------
ミニゲーム個別ページ
--------------------------------------- */

.mini-game-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-game-container iframe {
    width: 926px;
    height: 516px;
    padding: 0;
    border: none;
}

@media screen and (max-width: 1024px) {
	.runner-icon>img {
    	max-width: 120px;
    	max-height: 120px;
	}
    #youtube-bg i,
    .youtube {
        width: min(calc(var(--vh)*100 / 9 * 16), 100vw);
        max-width: none;
    }
    .youtube {
        height: calc(100vw / 16 * 9);
    }
    .art-wrapper>a>img {
        max-width: 22vw;
        max-height: 22vw;
    }
}

@media screen and (max-width: 600px) {
	.runner-group {
    	min-width: auto;
		width: 100%;
	}
	.runner-icon>img {
    	max-width: 100px;
    	max-height: 100px;
	}
    .youtube-player-thumb img,
    .runner .youtube-player-thumb img {
        margin: 5px auto;
        width: 100%;
    }
    #runner-util {
        height: 30px;
    }
    #runner-list-button {
        width: 30px;
        height: 30px;
    }
    #day-select {
        right: Calc(30px + 1rem);
        top: 0;
    }
    .actor-youtube-thumb-wrapper {
        width: 100%;
        display: block;
    }
    .actor-info-wrapper,
    .runner-info,
    .commentator-info {
        width: 100%;
    }
    .runner-info,
    .commentator-info {
        align-content: flex-start;
    }
    .runner-info .wp-block-image>img,
    .commentator-info .wp-block-image>img {
        width: 100px;
    }
    .runner-info-youtube-wrapper>div {
        flex-direction: column;
    }
    .runner-2 .runner-info-wrapper,
    .runner-3 .runner-info-wrapper,
    .runner-4 .runner-info-wrapper {
        min-width: auto;
    }
    .runner-2 .runner-info-wrapper,
    .runner-4 .runner-info-wrapper {
        width: 50%;
    }
    .runner-3 .runner-info-wrapper,
    .runner-5 .runner-info-wrapper,
    .runner-6 .runner-info-wrapper {
        width: 33.33%;
    }
    .runner-profile .wp-block-table+iframe {
        display: block;
        margin: 0 auto;
    }
    .runner table tbody tr td:first-child {
        width: 5.5rem;
    }
	
	.wp-block-table.game-info-table table{
		width:auto;
		min-width: 80%;
	}
    .fan-art-gallery>ul.blocks-gallery-grid>li.blocks-gallery-item {
        width: 150px;
    }
    .game-review-index img.game-review-thumb {
        display: table;
        margin: 0 auto;
    }
    .to-index {
        right: 1rem;
    }
    .mini-game-index article {
        margin: 5px;
        padding: 5px;
        width: 45%;
        height: Calc(45vw * .75);
    }
    .mini-game-index article a,
    .mini-game-index article>img {
        margin: 0;
        width: 100%;
        height: 100%;
    }
}