@import "common.css";

#bookshelf_section {
	width: 100%;
	margin: 0 auto;
}

#bookshelf_main {
	padding: 10px 10px;
	max-width: 600px;
	margin: 0 auto;
}

#bookshelf_exp h1 {
	margin: 30px 0;
	padding: 5px;
	font-size: 18px;
	border: 2px solid #4d4d4d;
	border-radius: 20px;
	text-align: center;
}

#bookshelf_search {
	margin: 10px 0;
	display: flex;
}

#bookshelf_search .search_condition {
	width: 80%;
}

#bookshelf_search #search_button {
	width: 20%;
}

.search_input {
	width: 100%;
}

.search_condition label {
	padding-left: 10px;
}

.search_condition input {
	width: 70%;
}

.search_initials {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-gap: 5px;
	margin: 10px 0;
}

.search_initials input {
	display: none;
}

.search_initials label {
	color: #4d4d4d;
	font-weight: bold;
	border-radius: 100%;
}

.search_initials input[type="radio"]:checked + label {
	color: #4d4dff;
}

#search_button {
	position: relative;
}

.search {
	width: 80%;
	height: 60%;
	max-height: 40px;
	top: 15%;
	left: 12%;
	position: absolute;
	display: inline-block;
	padding: 0.25em 0.5em;
	text-decoration: none;
	color: #fff;
	background: #4d4dff; /*背景色*/
	border-bottom: solid 2px #0000a8; /*少し濃い目の色に*/
	border-radius: 4px; /*角の丸み*/
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2),
		0 2px 2px rgba(0, 0, 0, 0.19);
	font-weight: bold;
}

.search:active {
	border-bottom: solid 2px #0000a8;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

td,
th {
	border: 1px solid black;
}

#bookshelf_disp {
	width: 100%;
}

table {
	width: 100%;
	height: 100%;
	margin: 0 auto;
}

/*幅調整*/
td,
th {
	table-layout: fixed;
}

@media screen and (min-width: 500px) {
	thead.scrollHead {
		padding-right: 16.5px;
	}
}

thead.scrollHead,
tbody.scrollBody {
	width: 100%;
	display: block;
}
tbody.scrollBody {
	overflow-y: scroll;
	max-height: 400px;
}

thead.scrollHead .tbl_no,
thead.scrollHead .tbl_new,
thead.scrollHead .tbl_kbn,
thead.scrollHead .tbl_kansu,
thead.scrollHead .tbl_tana,
tbody.scrollBody .tbl_no,
tbody.scrollBody .tbl_new,
tbody.scrollBody .tbl_kbn,
tbody.scrollBody .tbl_kansu,
tbody.scrollBody .tbl_tana {
	width: 5%;
}

thead.scrollHead .tbl_title,
tbody.scrollBody .tbl_title {
	width: 30%;
}

thead.scrollHead .tbl_author,
tbody.scrollBody .tbl_author,
thead.scrollHead .tbl_publisher,
tbody.scrollBody .tbl_publisher {
	width: 15%;
}
