﻿body.authenticated {
	background: white;
}

h1 {
	font-size: 14px;
}
button,
input[type="submit"] {
	margin: .5em;
	line-height: 1.25em;
}

#content {
	width: auto;
	margin: 0;
	padding: 0;
}

#nav-container {
	transition-duration: .5s;
	top: auto;
	bottom: 0;
	height: auto;
	width: 100%;

}
#nav-container nav {
	text-align: center;
}
#nav-container nav ul {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
}
#nav-container nav li+li:before {
	display: none;
}
#nav-container nav a {
	height: 53px;
	width: 53px;
	padding-bottom: 10%;
}

#footer {
	padding-bottom: 60px;
	color: black;
	font-size: 12px;
}
#footer span {
	white-space: nowrap;
}

.messages p {
	margin: 0 0 .75em 0;
}

.panel2,
.panel3,
.panel4 {
	width: 100%;
}
.flex-panel {
	display: block;
}
section {
	margin: 0;
	box-shadow: none;
}
section > div {
	padding: 1em;
}

.list-table li {
	white-space: unset;
}
.list-table li > span {
	float: none;
}
.list-table li > div {
	margin-left: 0;
}

.money:after {
	vertical-align: middle;
}

/**
 * ダイアログ
 */
.dialog-base {
	min-width: 300px;
	max-width: 94%;
}
.dialog-base .dialog {
	padding: 0 1.25em 1.25em;
}
.dialog button {
	padding: .5em 2em;
}


/*****************************************/

/**
 * ログイン前
 */
#login-container {
	padding-top: 50px;
}
#panel-login {
	display: flex;
	flex-direction: column;
	width: 90%;
}
#panel-login-main,
#panel-login-sub,
#panel-login-small {
	transition-duration: .5s;
	float: none;
	margin: 0 auto;
	height: auto;
	width: 100%;
	min-height: auto;
	max-width: 100%;
}
#panel-login-main {
	order: 1;
	margin-bottom: 2em;
	padding: 2em;
}
#panel-login-sub {
	order: 2;
}
#panel-login-small {
	order: 3;
}

/*****************************************/

/**
 * CSV出力ボタン
 */
#csv-download {
	display: none;
}

/**
 * メニュー画面
 */
div#go-mainsite {
	bottom: 55px;
	right: 10px;
	background-color: rgba(0, 0, 0, .66);
	border-radius: 100%;
	font-size: 12px;
}
.dashboard-content li span {
	display: block;
	text-align: left;
}
/**
 * 出金申請
 */
.withdrawal-content #withdrawal {
	width: calc(100% - 2em);
	padding-right: 2px;
}

/**
 * リベート計上明細
 */
#content.history-content .history-table th:nth-child(2),
#content.history-content .history-table td:nth-child(2),
#content.history-content .history-table th:nth-child(4),
#content.history-content .history-table td:nth-child(4) {
	display: none;
}
@media(max-width: 670px) {
	#content.history-content .history-table th:nth-child(5),
	#content.history-content .history-table td:nth-child(5) {
		display: none;
	}
}
@media(max-width: 380px) {
	#content.history-content .history-table th:nth-child(3),
	#content.history-content .history-table td:nth-child(3) {
		display: none;
	}
}


/**
 * 取引履歴
 */
#content.trading-content .trading-table th:nth-child(2),
#content.trading-content .trading-table td:nth-child(2),
#content.trading-content .trading-table th:nth-child(4),
#content.trading-content .trading-table td:nth-child(4) {
	display: none;
}
@media(max-width: 670px) {
	#content.trading-content .trading-table th:nth-child(5),
	#content.trading-content .trading-table td:nth-child(5) {
		display: none;
	}
}
@media(max-width: 380px) {
	#content.trading-content .trading-table th:nth-child(3),
	#content.trading-content .trading-table td:nth-child(3) {
		display: none;
	}
}

/**
 * 口座申請
 */
.account-content .result-table th:nth-child(4),
.account-content .result-table td:nth-child(4) {
	display: none;
}
@media(max-width: 670px) {
	.account-content .result-table th:nth-child(5),
	.account-content .result-table td:nth-child(5) {
		display: none;
	}
}

/**
 * 出金申請
 */
.withdrawal-content .long {
	width: 99%;
}
.withdrawal-content .result-table thead {
	display:none;
}
.withdrawal-content .result-table table,
.withdrawal-content .result-table tbody,
.withdrawal-content .result-table tr,
.withdrawal-content .result-table th,
.withdrawal-content .result-table td {
	display: block;
	padding: 0;
	border: none;
}
.withdrawal-content .result-table tr {
	padding: .5em .75em;
	border: 1px solid rgb(129, 131, 175);
}

/**
 * 登録情報変更
 */
.user_modify-content .small {
	font-size: 100%;
}

/**
 * ナビ7つが表示できない場合
 * 53 * 7 = 371 - 1
 */
@media(max-width: 370px) {

	#nav-toggle {
		position: absolute;
		top: -28px;
		right: 10px;
		display: inline-block;
		height: 28px;
		width: 48px;
		border-radius: 8px 8px 0 0;
		background: rgba(39, 21, 21, 0.9);
	}
	#nav-toggle::after {
		content: '';
		position: absolute;
		top: 12px;
		left: calc(50% - 4px);
		display: block;
		height: 10px;
		width: 10px;
		border-top: 3px solid white;
		border-left: 3px solid white;
		transform: rotate(45deg);
		transition-duration: .5s;
	}
	#nav-container {
		transform: translate(0, 53px);
	}
	#nav-container.open {
		transform: translate(0, 0);
	}
	#nav-container.open #nav-toggle::after {
		transform:
			translate(0, -3px)
			rotate(225deg);
	}
}