@import "reset.css";
/*-------------------------------------------
 *	共通CSS
 *
 * @copyright 2023 Flex.co
 *-------------------------------------------*/
/* レイアウト */
header {
	position:fixed;
	display: block;
	width: 100%;
	height: 140px;
	padding: 20px 20px 5px;
	border-top: 1px solid #CCC;
	border-bottom: 1px solid #CCC;
	background-color: #FFF;
	z-index: 999;
}
main {
	display: block;
	width: 100%;
	padding: 150px 20px 20px;
}
footer {
	display: block;
	width: 100%;
	padding: 20px;
	border-top: 1px solid #CCC;
	border-bottom: 1px solid #CCC;
}
p {
	margin-bottom: 30px;
}

.left-txt {
	text-align: left;
}
.center-txt {
	text-align: center;
}
.right-txt {
	text-align: right;
}

.sub-font {
	font-size: 80%;
	color:#999;
}

.err-font{
	color:#F00;
}
.form-item p.err-font{
	display: block;
	margin-left:16%;
	font-size: 80%;
}

.need-item {
	display: inline-block;
	width: 1em;
}
.need-item:before {
	content: "*";
	color: #F00;
}

.flex-normal {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}
.flex-normal-pc {
	display: flex;
	flex-direction: column;
}
.checkbox-item.flex-normal {
	display: flex;
}
.col6-flex {
	flex: 1 0 16%;
}
.explain {
	text-align: right;
	margin-bottom: 0;
}

.emphasis {
	font-weight: bold;
}

/* ヘッダー */
header .back_toppage{
	position: absolute;
	top: 5px;
	left: 10px;
}
header .timestamp{
	position: absolute;
	top: 5px;
	right: 5px;
	display: flex;
	width: 300px;
	justify-content: flex-end;
}
#today {
	margin-right: 5px;
}

#nowtime {
	margin-right: 5px;
}
#reload {
	margin-right: 5px;
}

#logo h1{
	text-align: center;
	font-size: 2rem;
	line-height: 2rem;
	padding: 10px;
}

/* ナビ */
nav ul.menu {
	display: flex;
	width: 700px;		/* iPad基準 */
	margin: 0 auto;
}

nav ul.menu li {
	flex: 1 0 auto;
}

nav ul.menu li a{
	display: block;
	width: 96%;
	margin: 10px auto;
	text-align: center;
	padding: 0.5rem;
	border:1px solid #CCC;
	border-radius: 6px;
	background-color: #c1e4e9;
	color: #666;
}

nav ul.menu li a.current-menu,
nav ul.menu li a:hover,
nav ul.menu li a:active{
	background-color: #84b9cb;
	color: #000;
}

/* メイン */
main section {
	width: 700px;		/* iPad基準 */
	margin: 0 auto 30px;
}

/* 見出し */
main section h2 {
	position: relative;
	font-size: 1.2rem;
	padding: 10px 10px 3px;
	border-bottom: 1px solid #CCC;
	margin-bottom: 20px;
}
main section h2:before{
	display:inline-block;
	width: 25px;
	height:25px;
	margin-right: 5px;

	/* <i class="fa-solid fa-diamond"></i>*/
	font-family: 'Font Awesome 6 Free','Font Awesome 6 Brands';
	font-weight: 900;
	content:"\f219";
	color:#AAA;
}
.right-parts {
	position: absolute;
	bottom: 2px;
	right: 2px;
	display: flex;
	justify-content: flex-end;
}


/* フォーム */
.form-item {
	margin-bottom: 20px;
}
.form-item p{
	display: inline-block;
	margin-bottom: 0;
}
.form-item p.check-item{
	margin: 0 0 20px 20px;
}
.form-item p.check-item.auth-check{
	display: block;
}
.form-item p.check-item input[type="checkbox"] {
	vertical-align:middle;
	margin-right: 5px;
}

.form-item p#rikishi_line{
	display: inline-block;
	margin-right: 15px;
	border:1px dotted #CCC;
	border-radius:6px;
	padding: 10px;
}
.sub-form-item {
	display: block;
	flex: 1 0 auto;
}
label{
	display: inline-block;
	width: 15%;
	padding-left: 20px;
}
.sub-form-item label {
	width: 30%;
}
.checkbox-item {
	display: inline-block;
	vertical-align: middle;
}
.sub_label {
	display: inline-block;
}
.checkbox-item .sub_label {
	vertical-align: top;
	margin-left: 5px;
	margin-right: 15px;
}
input{
	border:1px solid #CCC;
	border-radius:6px;
	padding: 10px;
}
input[type="number"] {
	text-align: right;
}
input.sm_size {
	width: 100px;
}
input.stock-cnt {
	width: 60px;
	text-align: right;
}
select{
	border:1px solid #CCC;
	border-radius:6px;
	padding: 10px 50px 10px 10px;
	background-image:
		linear-gradient(45deg, transparent 50%, gray 50%),
		linear-gradient(135deg, gray 50%, transparent 50%),
		linear-gradient(to right, #ccc, #ccc);
	background-position:
		calc(100% - 20px) calc(1em + 2px),
		calc(100% - 15px) calc(1em + 2px),
		calc(100% - 2.5em) 0.5em;
	background-size:
		5px 5px,
		5px 5px,
		1px 1.5em;
	background-repeat: no-repeat;
	white-space:nowrap;
}

select:focus {
	background-image:
		linear-gradient(45deg, green 50%, transparent 50%),
		linear-gradient(135deg, transparent 50%, green 50%),
		linear-gradient(to right, #ccc, #ccc);
	background-position:
		calc(100% - 15px) 1em,
		calc(100% - 20px) 1em,
		calc(100% - 2.5em) 0.5em;
	background-size:
		5px 5px,
		5px 5px,
		1px 1.5em;
	background-repeat: no-repeat;
	border-color: #6495ed;
	outline: 0;
}

select:-moz-focusring {
	color: transparent;
	text-shadow: 0 0 0 #000;
}
input[type="checkbox"] {
	cursor: pointer;
	/* all:revert; */
}
input:checked {
	/* fill 背景色(%23=#) */
	/* stroke マーク色(%23=#) */
	background-image: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' width='16' height='16'><rect fill='%23c1e4e9' width='16' height='16'/><path fill='none' stroke='%23666' stroke-width='2' d='M12.6,5.17l-5.66,5.66L3.4,7.29'/></svg>");
	background-repeat: no-repeat;
	background-size: cover;
}
.form-button {
	display: flex;
	justify-content: center;
}
.form-button.barcodeReadBtn {
	margin: 10px auto 30px;
}

.stock-entry .form-button,
.stock-list .form-button {
	margin-top: 30px;
}
.modal__contents .form-button {
	margin-top: 30px;
}
.btn{
	display: inline-block;
	position: relative;
}

.loading-icon {
	display: none;
	position:absolute;
	top: 10px;
	left: 40px;
}
.loading-icon.load {
	display: block;
}
.BarcodeReader {
	position: relative;
}
.BarcodeReader.viewSel,
.barcodeReadBtn.viewSel {
	display: none;
}

.BarcodeReader .loading-icon {
	top: 0px;
	left: 170px;
	font-size: 2.0em;
}

.hand-entry {
	display: none;
}
.hand-entry.viewSel {
	display: block;
}
input.form-readonly:read-only {
	background-color:#CCCCCC;
	cursor: not-allowed;
}
label.label-readonly.readonly {
	color: #CCCCCC;
}

a.btn-type {
	display: block;
	padding: 5px;
	border:1px solid #CCC;
	border-radius:6px;
	text-align: center;
	background-color: #c1e4e9;
}
a.large-btn {
	width: 200px;
	display: inline-block;
	margin-left: 50px;
}
a.btn-type:hover,
a.btn-type:active {
	background-color: #84b9cb;
}

.form-button a.btn-type{
	padding: 10px 20px;
	margin: 0 10px;
}

a.btn-type.sub-btn {
	padding: 5px 10px;
}

a.btn-type.disable-btn {
	color:#999999;
	background-color: #CCC;
	cursor: default;
}

.btn-only {
	position: relative;
}

h2 a.btn-type,
.btn-only a.btn-type {
	display: inline-block;
	padding: 2px 5px;
	font-size: 0.9rem;
}

a.logout-btn {
	display: block;
	padding: 2px;
	border:1px solid #CCC;
	border-radius:6px;
	text-align: center;
	background-color: #c1e4e9;
	font-size: 80%;
}
a.logout-btn:hover,
a.logout-btn:active {
	background-color: #84b9cb;
}

.form-button.barcodeReadBtn a.btn-type {
	padding: 30px;
}

.sel_title {
	margin: 30px;
}


/* モーダルウィンドウ */
.layer {
	background: rgba(0, 0, 0, .2); /* 背景を薄くする */
	width: 100%;
	height: 100%;
	position: fixed; /* 画面に固定するために指定 */
	top: 0;
	left: 0;

	z-index: -1; 
	opacity: 0;
	visibility: hidden;
}

.layer.is-open {
	z-index: 999;
	opacity: 1;
	visibility: visible;
}

.modal {
	position: relative;
	margin-right: auto;
	margin-left: auto;
	width: 80%;
	min-width: 350px;

	opacity: 0;
	visibility: hidden;
}
.layer.is-open .modal{
	opacity: 1;
	visibility: visible;
}

.modal__inner {
	margin-top: 125px;
	margin-bottom: 125px;
	position: relative;
	margin-left: auto;
	margin-right: auto;
	background: #fff;
	box-shadow: 3px 4px 4px rgba(0, 0, 0, 0.25);/* モーダルにシャドウをかける */
	border-radius: 13px; /* モーダルの角を丸める */
	display: block;
	padding: 21px 8px 21px;
	height: auto;
}

.modal__content {
	padding: 20px 10%;
}

.modal__button-wrap {
	position: absolute;
	right: 10px;
	top: -28px;
	display: inline-flex;
}

.close-button {
	position: relative;
	width: 39px;
	height: 39px;
	background: #84b9cb;
	border-radius: 50%;
	padding: 0;
	border: 1px solid #CCC;
	cursor: pointer;
}

.close-button span {
	width: 25px;
	height: 2px;
	background: #666;
	display: inline-block;
	position: absolute;
	left: calc(50% - 12px);
	top: 50%;
	border-radius: 20px;
}

.close-button span:nth-child(1) {
	transform: rotate(45deg) translate(-1px, -1px);
}

.close-button span:nth-child(2) {
	transform: rotate(-45deg) translate(1px, -1px);
}


/* テーブル */
table.list {
	width: 100%;
	border-collapse: separate;
	border-radius:6px;
	border-left:1px solid #CCC;
	border-top:1px solid #CCC;
	overflow-y: scroll;
	max-height: calc(100vh/2);
}

table.list thead {
	background-color:#c1e4e9;
	color: #666;
	position: sticky;
	top: 140px;
	z-index:1;
}
table.list tr {
	border-bottom:1px solid #CCC;
}

table.list th,table.list td {
	padding: 5px;
	border-right:1px solid #CCC;
	border-bottom:1px solid #CCC;
}
table.list thead tr:first-child th:first-child{
	border-radius: 6px 0 0 0;
}
table.list thead tr:first-child th:last-child {
	border-radius: 0 6px 0 0;
}
table.list tbody tr:last-child td:first-child {
	border-radius: 0 0 0 6px;
}
table.list tbody tr:last-child td:last-child {
	border-radius: 0 0 6px 0;
}
table.list>tbody>tr:nth-of-type(even) {
	background-color:#EFEFEF;
}

table.list th,
table.list td {
	text-align: center;
}

table.list td.left-txt {
	text-align: left;
}
table.list td.right-txt {
	text-align: right;
}

table.list td.btntype {
	/*display: flex;*/
	justify-content:center;
}
table.list td.btntype .btn{
	margin: 5px;
}

.form-item table {
	border-collapse: separate;
	border-spacing:15px 0;
	width: auto;
	display: inline-block;
	vertical-align: middle;
}

table .sumTotal {
	border-bottom: 3px double #666;
	padding: 20px 10px 5px;
}

table .empty-cell {
	background-color:#c0c0c0;
}

.minus-cnt {
	color:#F00;
}

/* バーコード */
.barcode-list ul{
	display: flex;
	flex-wrap: wrap;
}
.barcode-list ul li{
	flex: 1 0 auto;
	border: 1px solid #CCC;
	padding: 10px;
	margin: 10px;
	display: block;
}
.barcode-list .item-barcode-title {
	display: block;
	background-color:#e6e6fa;
	padding: 5px;
}
.barcode-list .item-num {
	font-size: 90%;
}
.barcode-list .item-num:before {
	content:"(";
}
.barcode-list .item-num:after {
	content:")";
}
.barcode-list .item-name {
	font-weight: bold;
}
.barcode-list .item-price {
	font-size: 90%;
}
.barcode-list .item-genre {
	font-size: 90%;
	display: none;
}
.barcode-list .item-maker {
	font-size: 90%;
}
.barcode-list .item-barcode {
	display: block;
}
.barcode-list .item-jancode {
	font-size: 90%;
}

/* フッター */
#copyright {
	font-size: 0.8rem;
	text-align: center;
}

/***********************************
 *	RESPONSIVE（iPad基準)
 ***********************************/
/* ハンバーガーメニュー */
.header__hamburger {
	width: 28px;
	height: 30px;
	position: absolute;
	top: 30px;
	right: 8px;
}

.hamburger {
	background-color: transparent;
	border-color: transparent;
	z-index: 9999;
}

@media screen and (min-width: 600px) {
	.hamburger {
		display: none;
	}
}


.hamburger span {
	width: 100%;
	height: 1px;
	background-color: #666;
	position: relative;
	transition: ease .4s;
	display: block;
}

.hamburger span:nth-child(1) {
	top: 0;
}

.hamburger span:nth-child(2) {
	margin: 8px 0;
}

.hamburger span:nth-child(3) {
	top: 0;
}


/* ハンバーガーメニュークリック後のスタイル */
.header__nav.active {
	transform: translateX(0);
}

.hamburger.active span:nth-child(1) {
	top: 5px;
	transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
	opacity: 0;

}

.hamburger.active span:nth-child(3) {
	top: -13px;
	transform: rotate(-45deg);
}

/* スマホ */
@media screen and (max-width: 500px) {
	header {
		height: 70px;
		padding: 20px 0 5px;
		transition: ease .4s;
	}
	header.is-open {
		height: 300px;
		transition: ease .4s;
	}
	[id^="manage_"] header.is-open {
		height: 450px;
	}
	nav {
		display: none;
		transition: ease .4s;
	}
	#top nav {
		display: block;
	}
	nav.is-open {
		display: block;
		transition: ease .4s;
	}
	nav ul.menu {
		width: 350px;
		flex-flow: column;
	}
	nav ul.menu li a{
		margin: 5px auto;
	}
	main {
		padding: 70px 0 20px;
		transition: ease .4s;
	}
	main.is-open {
		padding: 300px 0 20px;
		transition: ease .4s;
	}
	main section {
		width: 350px;
	}
	label{
		padding-left: 0;
		width: 25%;
	}
	footer {
		padding: 20px 0;
	}

	table.list thead {
		top: 70px;
	}
	.rikishi-selbtn {
		width: 100%;
	}
	.rikishi-selbtn .btn-type {
		margin: 20px auto;
		width: 120px;
	}
	table.list td.btntype {
		flex-flow: column;
	}
	.modal__content {
		padding: 10px 2%;
	}

}
/* PC */
@media screen and (min-width: 920px) {
	input.stock-cnt {
		width: 80px;
	}
	nav ul.menu,
	main section {
		width: 900px;
	}
	.flex-normal-pc {
		flex-direction: row;
	}
	.form-button.barcodeReadBtn {
		justify-content: start;
		margin: 10px;
	}
}