@charset "utf-8";

/* style.css
 * **************************************************
 * Body
 * Header
 * Common Elements
 * Content
 * Side
 * Login
 * Media Queries
 * **************************************************
 */

/* Body
-------------------------------------------------- */

/* Font：基本サイズ（16 * 0.625 = 10px） */
html {
	font-size: 62.5%;
}

body {
	background-color: #f2f2f2;
	color: #333333;
	font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", sans-serif;
	font-feature-settings: 'palt';
	font-size: 1.2rem;
	letter-spacing: 0.05em;
	min-width: 1200px;
}

/*
 * Body ID
 * 管理用ページ：administration
 * 閲覧用ページ：viewing
 * ログインページ：login
 */

/* Header
-------------------------------------------------- */

#header {
	background-color: #796a56;
	color: #ffffff;
	display: flex;
	font-size: 1.4rem;
	height: 80px;
	justify-content: space-between;
}

#login #header {
	height: 435px;
}

/* logo */
#header .header-logo {
	align-items: center;
	background-color: #292d30;
	display: flex;
	justify-content: space-evenly;
	width: 280px;
}

#login #header .header-logo {
	background-color: inherit;
	justify-content: center;
	width: 100%;
}

#header .header-logo p {
	font-size: 2.2rem;
}

/* link */
#header .header-link {
	flex: 1;
	padding: 17px 0;
}

#header .header-link ul {
	align-items: center;
	display: flex;
	justify-content: flex-start;
}

#header .header-link ul li {
	border-right: 1px solid #ffffff;
	text-align: center;
	max-width: 180px;
	width: 24%;
}

#header .header-link ul li a {
	display: block;
	height: 46px;
	line-height: 46px;
}

#header .header-link ul li a span {
	padding: 0 30px 0 8px;
	position: relative;
}

#header .header-link ul li a span::after {
	border-color: transparent transparent transparent #ffffff;
	border-style: solid;
	border-width: 6px 8px;
	content: '';
	display: block;
	margin-top: -6px;
	position: absolute;
	top: 50%;
	right: 0;
}

/* switch */
#header .header-switch {
	align-items: center;
	background-color: #292d30;
	display: flex;
	justify-content: center;
	width: 210px;
}

#viewing #header .header-switch span {
	background: url(../images/common/icon_gear.svg) no-repeat left center;
	background-size: 22px;
	display: block;
	padding: 5px 0 5px 34px;
}

/* Main
-------------------------------------------------- */

#content {
	display: flex;
}

/* main */
#main {
	flex: 1;
	margin: 40px 30px;
	order: 2;
	max-width: 1120px;
}

#viewing #main {
	margin-left: auto;
	margin-right: auto;
}

/* Common Elements
-------------------------------------------------- */

/* img */
img {
	vertical-align: bottom;
	max-width: 100%;
}

/* link */
a {
	color: inherit;
	text-decoration: none;
	transition: .3s;
}

a:hover {
	color: inherit;
	opacity: 0.8;
	text-decoration: none;
}

/* section */
.section+.section {
	margin-top: 30px;
}

.box-white {
	background-color: #ffffff;
	border-radius: 6px;
	box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.2);
}

/* form parts */
input {
	border: 1px solid #9fa0a0;
	border-radius: 3px;
	color: #333333;
	height: 25px;
	line-height: 25px;
	margin: 10px 5px;
	padding: 0 8px;
	width: calc(100% - 10px);
}

::placeholder {
	color: #9fa0a0;
}

input[type="checkbox"],
input[type="radio"],
label.file>input {
	display: none;
}

label {
	cursor: pointer;
	display: inline-block;
}

.checkbox,
.radio {
	margin: 10px 5px;
	padding: 0 20px 0 30px;
	position: relative;
}

.checkbox-text::before,
.radio-text::before {
	content: "";
	display: block;
	height: 24px;
	margin-top: -12px;
	position: absolute;
	top: 50%;
	left: 0;
}

.checkbox-text::before {
	border: 1px solid #9fa0a0;
	border-radius: 3px;
	width: 20px;
}

.radio-text::before {
	border: 1px solid #9fa0a0;
	border-radius: 100%;
	width: 24px;
}

input[type="checkbox"]:checked+.checkbox-text::after,
input[type="radio"]:checked+.radio-text::after {
	content: "";
	display: block;
	position: absolute;
}

input[type="checkbox"]:checked+.checkbox-text::after {
	border-bottom: 2px solid #727171;
	border-right: 2px solid #727171;
	height: 13px;
	margin-top: -8px;
	top: 50%;
	left: 6px;
	width: 8px;
	transform: rotate(40deg);
}

input[type="radio"]:checked+.radio-text::after {
	background-color: #727171;
	border-radius: 100%;
	height: 14px;
	margin-top: -7px;
	top: 50%;
	left: 5px;
	width: 14px;
}

.select-wrap {
	position: relative;
	width: 140px;
}

.select-wrap::after {
	border-color: #9fa0a0 transparent transparent transparent;
	border-style: solid;
	border-width: 8px 5px;
	content: '';
	display: block;
	margin-top: -3px;
	position: absolute;
	top: 50%;
	right: 4px;
}

select {
	border: 1px solid #9fa0a0;
	border-radius: 3px;
	height: 25px;
	line-height: 25px;
	margin: 10px 5px;
	padding: 0 8px;
	width: 100%;
}

label.file {
	border: 1px solid #9fa0a0;
	border-radius: 3px;
	height: 25px;
	line-height: 25px;
	margin: 10px 5px;
	padding: 0 8px;
	text-align: center;
	width: 140px;
}

textarea {
	border: 1px solid #9fa0a0;
	height: 150px;
	margin: 10px 5px;
	padding: 5px 8px;
	width: 100%;
}

input.form-button {
	background-color: #727171;
	border: none;
	color: #ffffff;
	cursor: pointer;
	height: 45px;
	line-height: 45px;
	margin: 0;
	text-align: center;
	transition: .3s;
	width: 140px;
}

input.form-button:hover {
	opacity: 0.8;
}

/* 検索フォーム ------------------------------------ */

.search-section {
	padding: 25px 40px;
	position: relative;
}

/* 初期表示箇所 */
.search-default {
	margin: 0 -5px;
}

.input-search {
	background: url(../images/common/icon_search.svg) no-repeat 12px center;
	background-size: 18px;
	border-radius: 5px;
	height: 45px;
	line-height: 45px;
	padding-left: 50px;
	max-width: 620px;
	width: calc(100% - 170px);
}

/* 詳細表示箇所 */
.search-detail {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	margin: 0 -25px;
}

@media only screen and (min-width: 1500px) {

	.search-detail {
		justify-content: space-between;
	}
}

/* 各項目 */
.input-item {
	color: #9fa0a0;
	margin: 5px 0;
}

.search-detail .input-item {
	margin-left: 20px;
	margin-right: 20px;
}

.input-item p {
	margin: 0 0 -2px 5px;
}

.input-item input.size-ss {
	width: 50px;
}

.input-item input.size-s {
	width: 85px;
}

.input-item input.size-m {
	width: 260px;
}

.input-item input.size-l {
	width: 550px;
}

/* 詳細を開く */
.search-open {
	color: #9fa0a0;
	cursor: pointer;
	margin: 10px 0 0 0;
	text-align: center;
}

.search-open span {
	display: block;
	padding: 0 0 20px;
	position: relative;
}

.search-open span::after {
	border-color: #727171 transparent transparent transparent;
	border-style: solid;
	border-width: 8px 5px;
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
}

.search-open.active span::after {
	border-color: transparent transparent #727171 transparent;
	bottom: 8px;
}

/* 検索ボタン */
.search-button {
	position: absolute;
	top: 40px;
	right: 40px;
}

/* タブコンテンツ ---------------------------------- */

/* 切替部分 */
.tab-header {
	background-color: #796a56;
	border-radius: 6px 6px 0 0;
	color: #ffffff;
	padding: 20px 15px 0 15px;
}

ul.tab {
	display: flex;
}

ul.tab li {
	width: 172px;
}

ul.tab li a {
	display: block;
	font-size: 1.4rem;
	padding: 13px 1px;
	position: relative;
	text-align: center;
	width: 100%;
}

ul.tab li a::after {
	background-color: #ffffff;
	content: '';
	display: block;
	height: calc(100% - 6px);
	position: absolute;
	bottom: 0;
	right: -1px;
	width: 1px;
}

ul.tab li.active a {
	background-color: #ffffff;
	border-radius: 6px 6px 0 0;
	color: #333333;
	opacity: 1;
}

ul.tab li.active a::after {
	content: none;
}

/* コンテンツ */
.tab-content {
	display: none;
	padding: 40px 150px;
}

.tab-content.show {
	display: block
}

/* 各項目 */
.table-input {
	margin: 0 -5px;
}

.table-input dl {
	display: table;
	width: 100%;
}

.table-input dl+dl {
	margin-top: 20px;
}

.table-input dl dt,
.table-input dl dd {
	display: table-cell;
	text-align: left;
	vertical-align: top;
}

.table-input dl dt {
	padding: 14px 5px;
	width: 180px;
}

.table-input dl dd {
	width: calc(100% - 180px);
}

.table-input dl dd p {
	margin: 15px 5px -2px;
}

.table-input input.size-ss {
	width: 65px;
}

.table-input input.size-s {
	width: 85px;
}

.table-input input.size-m {
	width: 100px;
}

.table-input input.size-l {
	width: 200px;
}

/* 一覧 ------------------------------------------- */

.list-section {
	padding: 40px;
}

/* テーブル */
table.table-list {
	width: 100%;
}

table.table-list tr {
	border-top: 1px solid #9fa0a0;
	border-bottom: 1px solid #9fa0a0;
}

table.table-list tr th,
table.table-list tr td {
	border-left: 1px solid #9fa0a0;
	padding: 8px 15px;
	text-align: center;
	vertical-align: middle;
	word-break: break-all;
}

table.table-list tr th:first-child,
table.table-list tr td:first-child {
	border-left: none;
}

table.table-list tr th {
	background-color: #796a56;
	color: #ffffff;
}

table.table-list tr td a {
	text-decoration: underline;
}

table.table-list tbody tr:nth-child(odd) {
	background-color: #f1f0ee;
}

/* サムネイル画像 */
.list-thumbs {
	margin: 0 auto;
	width: 127px;
}

.list-thumbs img {
	height: 97px;
	object-fit: contain;
	width: 127px;
}

/* 削除 */
.list-delete {
	text-decoration: underline;
}

/* 固定エリア ーー---------------------------------- */

#fixed-area {
	align-items: center;
	background-color: rgba(114, 113, 113, 0.7);
	border-radius: 3px;
	display: flex;
	padding: 12px 25px;
	position: fixed;
	bottom: 15px;
	right: 15px;
}

#fixed-area .form-button {
	margin-right: 20px;
}

#fixed-area .form-button[type="submit"] {
	background-color: #ff8800;
}

#fixed-area .last-updated {
	color: #ffffff;
}

/* CSVインポート ーー------------------------------- */

.csv-section {
	padding: 40px;
}

/* メッセージ欄 */
.csv-message {
	margin-bottom: 5px;
}

/* インポートボタン */
.csv-import {
	margin-left: -5px;
	margin-right: -5px;
}

/* Side
-------------------------------------------------- */

#side {
	background-color: #191d20;
	color: #ffffff;
	font-size: 1.3rem;
	min-height: calc(100vh - 80px);
	width: 280px;
}

#side>ul>li {
	padding: 25px 0;
}

#side>ul>li div {
	background-position: 40px 8px;
	background-repeat: no-repeat;
	background-size: 30px;
	padding: 15px 0 15px 90px;
}

#side ul li.side-master div {
	background-image: url(../images/common/icon_master.svg);
}

#side ul li.side-item div {
	background-image: url(../images/common/icon_item.svg);
}

#side ul li.side-csv div {
	background-image: url(../images/common/icon_csv.svg);
	background-position: 40px 12px;
}

#side>ul>li:not(:first-child) {
	border-top: 1px solid #666666;
}

#side ul li ul li a {
	display: block;
	padding: 12px 0 12px 90px;
}

#side ul li ul li a:hover,
#side ul li ul li.current a {
	background-color: #292d30;
	border-right: 5px solid #796a56;
}

#side ul li .side-button {
	background-color: #ffffff;
	border: none;
	border-radius: 6px;
	color: #333333;
	cursor: pointer;
	display: block;
	font-size: 1.2rem;
	height: 25px;
	line-height: 25px;
	margin: 0 0 10px;
	outline: none;
	padding: 0 10px;
	transition: .3s;
	width: 115px;
}

#side ul li .side-button:hover {
	opacity: 0.8;
}

/* Viewing 閲覧用ページ
-------------------------------------------------- */

/* section-title */
#viewing .section-title {
	border-left: 5px solid #796a56;
	padding: 10px 0 10px 20px;
}

/* item-list */
#viewing .item-list {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -27px;
}

#viewing .item-list .item {
	margin: 20px 27px 0;
	width: 180px;
}

#viewing .item-list .item a {
	display: block;
}

#viewing .item-list .item-image {
	margin: 0 0 10px 0;
	width: 180px;
}

#viewing .item-list .item-image img {
	height: 140px;
	object-fit: cover;
	width: 100%;
}

#viewing .item-list .item-name {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* item-section */
#viewing .item-section {
	padding: 40px 40px;
}

/* item-gallery */
#viewing .item-gallery {
	margin: 25px 0 40px;
	position: relative;
}

#viewing .gallery-main {
	height: 318px;
	width: 424px;
}

#viewing .gallery-main img {
	height: 318px;
	object-fit: contain;
	width: 424px;
}

#viewing .gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	position: absolute;
	top: -5px;
	left: 450px;
	width: 405px;
}

#viewing .gallery-thumbs::after {
	content: '';
	height: 0;
	width: 127px;
}

#viewing .gallery-thumbs>div {
	cursor: pointer;
	margin: 6px 0;
	width: 127px;
}

#viewing .gallery-thumbs>div img {
	height: 97px;
	object-fit: cover;
	width: 127px;
}

#viewing .gallery-thumbs>div.current img {
	opacity: 0.5;
}

/* 各項目 */
#viewing .item-section .table-input dl dt {
	padding-top: 0;
	padding-bottom: 0;
}

#viewing .table-input dl dd p {
	margin: 10px 0 5px;
}

/* Login ログインページ
-------------------------------------------------- */

#login .login-box {
	margin: 0 auto;
	overflow: hidden;
	padding: 70px 15px;
	width: 400px;
}

#login .input-item input[type="text"],
#login .input-item input[type="password"] {
	height: 35px;
	line-height: 35px;
}

#login .checkbox {
	float: left;
	margin: 40px 5px 0;
}

#login .form-button {
	background-color: #b50000;
	color: #ffffff;
	float: right;
	font-size: 14px;
	margin: 40px 5px 0;
}

/* Media Queries
-------------------------------------------------- */

@media only screen and (max-width: 767px) {

	body {
		min-width: 320px;
	}

	/* Header
-------------------------------------------------- */

	#header {
		flex-wrap: wrap;
		height: auto;
	}

	#login #header {
		height: 200px;
	}

	/* logo */
	#header .header-logo {
		order: 2;
		padding: 12px 0 10px;
		width: 60%;
	}

	#login #header .header-logo h1 {
		width: 80%;
	}

	/* link */
	#header .header-link {
		flex: inherit;
		order: 1;
		padding: 0;
		width: 100%;
	}

	#header .header-link ul {
		padding: 10px 0;
	}

	#header .header-link ul li {
		font-size: 11px;
		width: 25%;
	}

	#header .header-link ul li:last-child {
		border-right: none;
	}

	#header .header-link ul li a {
		height: 26px;
		line-height: 26px;
	}

	#header .header-link ul li a span {
		padding: 0;
	}

	#header .header-link ul li a span::after {
		content: none;
	}

	/* switch */
	#header .header-switch {
		order: 3;
		width: 40%;
	}

	/* Main
-------------------------------------------------- */

	#main {
		flex: inherit;
		margin: 20px 15px;
		width: calc(100% - 30px);
	}

	/* Common Elements
-------------------------------------------------- */

	/* form parts */
	input.form-button {
		width: 100%;
	}

	/* コンテンツ */
	.tab-content {
		padding: 20px 15px;
	}

	/* 各項目 */
	.table-input dl {
		display: block;
	}

	.table-input dl dt,
	.table-input dl dd {
		display: block;
	}

	.table-input dl dt {
		padding-left: 0;
		width: 100%;
	}

	.table-input dl dd {
		margin-top: 10px;
		width: 100%;
	}

	.table-input dl dd p {
		margin: 8px 0 4px;
	}

	/* 検索フォーム ------------------------------------ */

	.search-section {
		padding: 10px 20px;
	}

	/* 初期表示箇所 */
	.input-search {
		width: calc(100% - 10px);
	}

	/* 詳細表示箇所 */
	.input-item input.size-l {
		width: 100%;
	}

	/* 検索ボタン */
	.search-button {
		margin: 15px auto;
		position: static;
	}

	/* Viewing 閲覧用ページ
-------------------------------------------------- */

	/* item-list */
	#viewing .item-list {
		margin-left: 0;
		margin-right: 0;
		justify-content: space-between;
	}

	#viewing .item-list .item {
		margin-left: 0;
		margin-right: 0;
		width: 48%;
	}

	#viewing .item-list .item-image {
		width: 100%;
	}

	#viewing .item-list .item-image img {
		height: 34.13vw;
	}

	/* item-section */
	#viewing .item-section {
		padding: 25px 20px;
	}

	/* item-gallery */
	#viewing .item-gallery {
		margin-top: 15px;
		margin-bottom: 20px;
	}

	#viewing .gallery-main {
		width: 100%;
	}

	#viewing .gallery-thumbs {
		margin-top: 1%;
		position: static;
		width: 100%;
	}

	#viewing .gallery-thumbs::after {
		width: 32%;
	}

	#viewing .gallery-thumbs>div {
		margin: 1% 0;
		width: 32%;
	}

	/* Login ログインページ
-------------------------------------------------- */

	#login .login-box {
		padding-top: 35px;
		padding-bottom: 35px;
		width: 100%;
	}
}