@charset "utf-8";

/* 共通 */
:root {
	--theme-color:  #36b9cc;
}

html, body {
	-webkit-overflow-scrolling: touch;
	font-family: 'Noto Sans JP', sans-serif;
}

select option.placeholder {
	color: #ccc;
}

.main-content {
	padding-top: 1rem;
}

.container-fluid {
	width: 100%;
	padding-right: 15px;
	padding-left: 15px;
	margin-right: auto;
	margin-left: auto;
}

.text-theme   { color: var(--theme-color); }

.bg-theme   { background-color: var(--theme-color); }

.btn-theme        { color: #fff; background-color: var(--theme-color); border-color: var(--theme-color); }
.btn-theme:active { color: #fff; background-color: #2a96a5; border-color: #278c9b; }
.btn-theme:hover  { color: #fff; background-color: #2c9faf; border-color: #2a96a5; }
.btn-theme:focus  { box-shadow: 0 0 0 0.2rem rgba(84,196,212,.5); }

.badge-theme { color: #fff; background-color: var(--theme-color); }

.fa-rotate-45 {
	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	     -o-transform: rotate(45deg);
	        transform: rotate(45deg);
}
.fa-rotate-135 {
	-webkit-transform: rotate(135deg);
	   -moz-transform: rotate(135deg);
	    -ms-transform: rotate(135deg);
	     -o-transform: rotate(135deg);
	        transform: rotate(135deg);
}
.fa-rotate-225 {
	-webkit-transform: rotate(225deg);
	   -moz-transform: rotate(225deg);
	    -ms-transform: rotate(225deg);
	     -o-transform: rotate(225deg);
	        transform: rotate(225deg);
}
.fa-rotate-315 {
	-webkit-transform: rotate(315deg);
	   -moz-transform: rotate(315deg);
	    -ms-transform: rotate(315deg);
	     -o-transform: rotate(315deg);
	        transform: rotate(315deg);
}

.label-check {
	margin: 0;
}
.label-check input[type='checkbox'] {
	display: none;
}
.label-check input[type='checkbox'] + label {
	display: inline-block;
	position: relative;
	margin: 0.1rem 0;
	padding: .25rem .5rem;
	font-size: 14px;
	cursor: pointer;
	z-index: 0;
}
.label-check input[type='checkbox'] + label::before {
	content: ' ';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 2px solid var(--theme-color);
	border-radius: 4px;
	z-index: -1;
}
.label-check input[type='checkbox']:checked + label {
	color: #fff;
}
.label-check input[type='checkbox']:checked + label::before {
	background: var(--theme-color);
}
.label-check label,
.label-check label::before {
	-webkit-transition: 0.25s all ease;
	        transition: 0.25s all ease;
}

.toggle-check {
	height: 2rem;
	padding: 0;
	margin: 0;
}
.toggle-check input[type="checkbox"] {
	display: none;
}
.toggle-check input[type="checkbox"] + label {
	display: block;
	position: relative;
	top: .5rem;
	padding: 0;
	margin: 0;
	cursor: pointer;
}
.toggle-check input[type="checkbox"] + label:before,
.toggle-check input[type="checkbox"] + label:after {
	content: '';
	position: absolute;
	top: 50%;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	margin-top: -7.5px;
}
.toggle-check input[type="checkbox"] + label:before {
	top: 0;
	left: 0;
	width: 4rem;
	height: 2rem;
	background: #fff;
	border: 1px solid #e4e3e1;
	border-radius: 15px;
}
.toggle-check input[type="checkbox"] + label:after {
	top: 0.1rem;
	left: 0.1rem;
	width: 1.8rem;
	height: 1.8rem;
	background: #bdbdbd;
	border-radius: 50%;
	-webkit-transition: all 200ms ease-out;
	        transition: all 200ms ease-out;
}
.toggle-check input[type="checkbox"]:checked + label:after {
	left: 2.1rem;
	background: var(--search-color);
}

ul.asterisk {
	width: fit-content;
	font-size: 12px;
    margin: 0 auto;
    padding: 0;
	list-style: none;
}
ul.asterisk li {
	padding-left: 1em;
	text-indent: -1em;
}
ul.asterisk li:before {
	 content: "※";
}
/* パンくずリスト */
.breadcrumb {
	font-size: .75rem;
	padding: .25rem 1rem;
	background: unset;
	border-radius: 0;
}

/* 汎用 */
.win-lose-icon {
	max-width: 10rem;
	margin: auto;
	padding: 0 .5rem;
	color: #fff;
	background: #777;
	border-radius: .25rem;
}
.win-lose-icon.win {
	background: #f33;
}
.win-lose-icon.lose {
	background: #33f;
}
.win-lose-icon.bye {
	background: #3cc;
}

/* トーナメント */
#tournament-table {
	padding: 0;
	background: #fff;
}
#tournament-table div.jQBracket .team.win div.score {
	color: #f33;
}
#tournament-table div.jQBracket .team.lose div.score {
	color: #33f;
}
#tournament-table .match-title {
	position: absolute;
	top: -1rem;
	left: 0;
	font-size: 12px;
	font-weight: bold;
}

#match-detail-modal .modal-body {
	color: #fff;
	background: #333;
}

/* ログインフォーム */
.form-signin {
	width: 100%;
	max-width: 330px;
	padding: 15px;
	margin: auto;
}
.form-signin .checkbox {
	font-weight: 400;
}
.form-signin .form-control {
	position: relative;
	box-sizing: border-box;
	height: auto;
	padding: 10px;
	font-size: 16px;
}
.form-signin .form-control:focus {
	z-index: 2;
}
.form-signin input[type="email"] {
	margin-bottom: -1px;
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
	margin-bottom: 10px;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}
.login-error-message {
	background-color: #e6e6e6;
	padding: .5rem;
	margin: .5rem 0;
	border-radius: .25rem;
}
.login-error-message p {
	color: #f00;
	font-size: 14px;
	margin: 0;
	text-align: center;
}

/* マイページ */
.user-info table {
	table-layout: fixed;
}
.user-info table th {
	width: 140px;
	vertical-align: middle;
	white-space: nowrap;
}
.user-info table td {
	word-break: break-all;
}

/* 対戦結果 */
.tournament-info table,
.entry-info table {
	table-layout: fixed;
}
.tournament-info table th,
.entry-info table th {
	width: 140px;
	vertical-align: middle;
	white-space: nowrap;
}
.tournament-info table td,
.entry-info table td {
	word-break: break-all;
}

.match-detail {
	margin: 1rem 0;
	padding: .5rem;
	color: #fff;
	background: #333;
	border: 1px solid #ccc;
	border-radius: 1rem;
}

#match-detail-modal .win-lose-between,
#match-detail-modal .combination-between,
#match-detail-modal .score-between,
#match-detail-modal .score-sub-between,
.match-detail .win-lose-between,
.match-detail .combination-between,
.match-detail .score-between,
.match-detail .score-sub-between,
#confirm-report-result-modal .win-lose-between,
#confirm-report-result-modal .combination-between,
#confirm-report-result-modal .score-between,
#confirm-report-result-modal .score-sub-between {
	display: flex;
	min-width: 2rem;
	padding: 0;
	-webkit-align-items: center;
	        align-items: center;
	-webkit-justify-content: center;
	        justify-content: center;
}

.match-detail .score-input input[name="self-score"],
.match-detail .score-input input[name="opponent-score"],
.match-detail .score-input input[name="self-score-sub"],
.match-detail .score-input input[name="opponent-score-sub"] {
	max-width: 5rem;
	margin: auto;
	text-align: center;
}

#match-detail-modal .combination combination-1,
#match-detail-modal .combination combination-2,
.match-detail .combination .combination-self,
.match-detail .combination .combination-opponent,
#confirm-report-result-modal .combination .combination-self,
#confirm-report-result-modal .combination .combination-opponent {
	display: inline-block;
	width: fit-content;
	margin: auto;
	text-align: left;
	word-break: break-all;
}

#confirm-report-result-modal .modal-body {
	color: #fff;
	background: #333;
}
#confirm-report-result-modal .modal-body .message {
	font-size: 14px;
	color: #fff;
}
#confirm-report-result-modal .modal-body .message.error {
	color: #f00;
}

.btn.confirm-report-result.bye-win        { color: #fff; background-color: #f33; border-color: #f33; }
.btn.confirm-report-result.bye-win:active { color: #fff; background-color: #c33; border-color: #f33; }
.btn.confirm-report-result.bye-win:hover  { color: #fff; background-color: #c33; border-color: #f33; }
.btn.confirm-report-result.bye-win:focus  { box-shadow: 0 0 0 0.2rem rgba(255,51,51,.5); }

.btn.confirm-report-result.bye-lose        { color: #fff; background-color: #33f; border-color: #33f; }
.btn.confirm-report-result.bye-lose:active { color: #fff; background-color: #33c; border-color: #33f; }
.btn.confirm-report-result.bye-lose:hover  { color: #fff; background-color: #33c; border-color: #33f; }
.btn.confirm-report-result.bye-lose:focus  { box-shadow: 0 0 0 0.2rem rgba(51,51,255,.5);; }
