/*
 * フォト一覧部
 */
.photo_sidenav .select_class {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.photo_sidenav .select_wrap {
	width: 80%;
}

.photo_sidenav .select_btn_wrap {
	width: 17%;
	height: 40px;
	position: relative;
}

.photo_sidenav .btn_select_add {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80%;
	height: 80%;
	border-radius: 50%;
	background-color: #505870;
}

.photo_sidenav .btn_select_add img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60%;
	height: 60%;
}

.photo_sidenav li {
	background-color: #FFF;
	border-bottom: 1px solid #f6f5f5;
}

.photo_sidenav li.selected {
	background-color: #ddf2d8;
}

.photo_sidenav li span {
	display: block;
	font-size: 1.5vw;
	color: #515d62;
	padding: 1.0em 0.3em 1.0em 1.0em;
	position: relative;
	word-break: break-all;
}

.photo_container {
	/* サイドナビの影を消さないようマージンを取る */
	margin-left: 7px;
}

.photo_container__head {
	position: sticky;
	display: flex;
	top: 0;
	height: 70px;
	background-color: #FFF;
	border-bottom: 1px solid #d9d9d9;
}

.photo_container__head__category {
	margin: auto 0 auto 20px;
	font-size: 24px;
}

.photo_container__head input[type="file"] {
	display: none;
}

.photo_container__head__file {
	margin: auto 20px 14px auto;
}

.photo_container__head__file_dummy {
	font-size: 14px;
	/* border: 1px solid #8e8d8d; */
	/* background-color: #d3d3d3; */
	padding: 3px;
	position: relative;
	display: inline-block;
	padding: 1.0em 1em 1em 3.6em;
	background-color: #30c40c;
	border: solid 1px rgb(48, 196, 12);
	border-radius: 10em;
	cursor: pointer;
	color: #ffffff;
	letter-spacing: 0.1em;
}

.photo_container__head__file_dummy::before {
	content: "";
	width: 1.6em;
	height: 1.6em;
	position: absolute;
	background: url(../img/ic/ic_footer_camera.svg) no-repeat;
	/* background-position: left; */
	left: 1.6em;
	top: 0;
	bottom: 0;
	margin: auto;
}

.photo_container__contents {
	margin: 0 20px;
}

.photo_container__contents h1 {
  margin-top: 10px;
}

.photo_container__contents__list {
	width: 100%;
	margin-top: 15px;
	display: grid;
	grid-auto-rows: 165px;
	grid-template-columns: repeat(auto-fit, 162px);
	grid-gap: 25px 17px;
	/*justify-content: space-between;*/
}

.photo_container__contents__row span {
	margin: auto 0;
	font-size: 15px;
}

.photo_container__contents__row__header {
	display: flex;
	height: 20px;
}

.photo_container__contents__row__header span:last-child {
	margin: auto 2px auto auto;
}

.photo_container__contents__row__image {
  height: 120px;
  width: 160px;
  background: #000000;
}

.photo_container__contents__row__image_thumbnail {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: table;
  table-layout: fixed;
}

.photo_container__contents__row__image_inner {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  width: 100%;
}

.photo_container__contents__row__image img {
  max-width: 100%;
  max-height: 120px; /* 親の高さに合わせる */
  height: auto;
  vertical-align: bottom;
}

.photo_container__contents__row__footer {
	display: flex;
	height: 25px;
}

.photo_container__contents__row__footer span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo_container__contents__more {
	display: block;
	margin: 30px 0 15px 0;
	width: 100%;
	text-align: center;
	font-size: 16px;
}

/*
 * フォト詳細部（ポップアップ）
 */
.photo_popup_contents {
	height: 80vh;
}

.photo_popup_form {
	margin-top: 15px;
}

.photo_popup_form_header {
	display: flex;
	height: 35px;
	line-height: 35px;
	margin-bottom: 5px;
}

.photo_popup_form_title {
	font-size: 16px;
}

.photo_popup_form_input {
	width: 100%;
	padding: 10px;
	/*border: 1px solid #ccc;*/
	overflow: hidden;
}

.photo_popup_form_input.info_area {
	display: flex;
}

.photo_info_area__calendar {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	font-size: 1.2vw;
	color: #515d62;
}

.photo_info_area__calendar label {
	position: relative;
}

.photo_info_area__calendar label{
	width: 13.0vw;
	margin: 0 0.5em;
}

.photo_info_area__calendar label::before {
	position: absolute;
	top: calc(50% - 1.5vw);
	right: 0;
	content: "";
	width: 3.0vw;
	height: 3.0vw;
	background-image: url(../img/ic/calender.svg);
	background-repeat: no-repeat;
	background-position: center;
}

.photo_info_area__calendar input[type="date"] {
	opacity: 1;
	background: transparent;
	border: 1px solid rgb(48, 196, 12);
	color: #515d62;
	width: 14.0vw;
	height: 3.9vw;
	font-size: 1.6vw;
	padding: 0 0.5em;
}

.photo_info_area__calendar input[type="date"]::-webkit-calendar-picker-indicator {
	position: absolute;
	right: 0px;
	top: calc(50% - 1.5vw);
	padding: 0;
	width: 3.0vw;
	height: 3.0vw;
	background: transparent;
	color: transparent;
	cursor: pointer;
}

.photo_info_area__calendar input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

.photo_info_area__calendar input[type="date"]::-webkit-inner-spin-button{
	-webkit-appearance: none;
}
.photo_info_area__calendar input[type="date"]::-webkit-clear-button{
	-webkit-appearance: none;
}

.photo_popup_form_input .switch_green.off {
  background: #4c556e;
  border: #4c556e;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2);
}

.photo_popup_form_input.info_area .photo_info_area__right {
	margin-left: auto;
	position: relative;
	display: -webkit-box;
	display: -webkit-flex;
	display: flex;
	-webkit-box-align: center;
	-webkit-align-items: center;
	align-items: center;
}

.photo_popup_form_input.info_area .photo_info_area__right button {
	margin-left: 40px;
}

.photo_popup_form_input.category_area label {
	float: left;
	margin: 0 5px;
	padding: 5px 20px;
	background: #FFFFFF;
	cursor: pointer;
	line-height: 1.3em;
	text-align: center;
	font-weight: normal;
	font-size: 16px;
}

.photo_popup_form_input.category_area input[type="radio"] {
	display: none;
}

.photo_popup_form_input.category_area input[type="radio"] + label {
	border: 1px solid #ccc;
	border-radius: 10px;
}

.photo_popup_form_input.category_area input[type="radio"]:checked + label {
	background: #30c40c;
	border: 1px solid #30c40c;
	color: #fff;
}

.photo_popup_form_input textarea {
	resize: none;
	text-align: left;
	width: 100%;
	padding: 0.5em;
}

.photo_popup_form_input textarea::placeholder {
	text-align: left;
}

.photo_popup_form_input.caption_area textarea {
	height: 200px;
}

.photo_popup_form_input.capture_area {
	display: flex;
	overflow: hidden;
	height: 325px;
}

.photo_popup_form_input .capture_area__arrow {
	width: 10%;
	margin: auto 0;
}

.photo_popup_form_input .capture_area__arrow img {
	width: 25px;
	height: 25px;
}

.photo_popup_form_input .capture_area__arrow button {
	display: block;
}

.photo_popup_form_input .capture_area__arrow_button_left {
	margin-left: auto;
  margin-right: 15px;
}

.photo_popup_form_input .capture_area__arrow_button_right {
  margin-left: 15px;
	margin-right: auto;
}

.photo_popup_form_input .capture_area__image {
  width: 80%;
  height: 300px;
  background: #000000;
}

.photo_popup_form_input .capture_area__image_thumbnail {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: table;
  table-layout: fixed;
}

.photo_popup_form_input .capture_area__image_inner {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  width: 100%;
}

.photo_popup_form_input .capture_area__image img {
  max-width: 100%;
  max-height: 300px; /* 親の高さに合わせる */
  height: auto;
  vertical-align: bottom;
}

.photo_popup_form_input .caption_area__counter {
  width: 100%;
  text-align: right;
  font-size: 80%;
  margin: 0 0 5px 0;
}
