@charset "UTF-8";
/*--------------------------------------------
	検索ウィンドウ
--------------------------------------------*/
.overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 20
}

.search-container {
	display: none;
	position: fixed;
	top: -100%;
	left: 50%;
	transform: translateX(-50%);
	width: 90%;
	max-width: 800px;
	padding: 20px;
	background: var(--base-color);
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	z-index: 21;
	transition: top 0.4s ease
}

@media (max-width: 400px) {
	.search-container {
		width: 95%;
		padding: 20px 10px
	}
}

.search-container .category-labels {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px
}

.search-container .label-item {
	display: flex;
	align-items: center;
	background: #e0e0e0;
	border-radius: 16px;
	padding: 2px 5px;
	font-size: 0.95em
}

.search-container .label-item span {
	margin-right: 5px
}

.search-container .label-item span {
	cursor: pointer;
	color: #333
}

.search-container select,
.search-container input {
	padding: 5px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: var(--base-color)
}

.search-container table {
	width: 100%;
	text-align: left;
	border-collapse: collapse;
	margin: 20px auto
}

.search-container th,
.search-container td {
	padding: 10px;
	border: 1px solid #ddd
}

.search-container th {
	background-color: var(--main-color-4);
	text-align: left;
	width: 30%
}

.search-container td {
	background-color: var(--base-color)
}

.search-container td #startDate,
.search-container td #categoryDropdown {
	margin-right: 5px
}

.search-container td #endDate {
	margin-left: 5px
}

@media screen and (max-width: 500px) {
	.search-container table {
		display: block
	}

	.search-container tr {
		display: flex;
		flex-direction: column;
		margin-bottom: 5px;
	}

	.search-container th,
	.search-container td {
		display: block;
		width: 100%
	}

	.search-container th {
		font-weight: bold;
		padding-top: 10px
	}

	.search-container td {
		padding-bottom: 10px
	}
}

/* 閉じるボタン */
.search-container .close-button {
	display: block;
	position: fixed;
	top: 10px;
	right: 10px;
	transform: translateX(0%);
	width: 30px;
	height: 30px;
	cursor: pointer
}

.search-container .close-button span {
	position: absolute;
	display: block;
	left: 0;
	width: 30px;
	height: 2px;
	background-color: var(--text-color);
	border-radius: 4px;
	z-index: 2
}

.search-container .close-button span:nth-child(1) {
	top: 4px;
	transform: translateY(10px) rotate(-315deg)
}

.search-container .close-button span:nth-child(2) {
	bottom: 4px;
	transform: translateY(-10px) rotate(315deg)
}

.search-container .close-button .circle {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 46px;
	height: 46px;
	background-color: var(--base-color);
	border: 2px solid var(--text-color);
	border-radius: 50%;
	z-index: 1
}

/* その他ボタン */
.search-container #addCategoryButton {
	border: 2px solid #ddd;
	color: var(--text-color);
	background-color: var(--main-color-4);
	font-weight: bold;
	border-radius: 4px;
	text-align: center;
	padding: 2px 10px;
	cursor: pointer
}

.search-container .submit-botton {
	border: none;
	width: 90px;
	height: 35px;
	color: var(--base-color);
	background-color: var(--main-color);
	font-weight: bold;
	border-radius: 4px;
	cursor: pointer;
	margin-left: 10px;
}

.search-container #resetButton {
	border: 2px solid #ddd;
	width: 90px;
	height: 35px;
	font-weight: bold;
	background-color: #ccc;
	border-radius: 4px;
	cursor: pointer;
	margin-right: 10px;
}

/* サーチアイコン */
.fixed-icon {
	position: fixed;
	bottom: 20px;
	right: 20px;
	cursor: pointer;
	z-index: 1
}

.fixed-icon svg {
	width: 100px;
	height: 100px
}

.fixed-icon:hover svg {
	transform: scale(1.1);
	transition: transform 0.3s ease
}

@media screen and (max-width: 600px) {
	.fixed-icon {
		bottom: 10px;
		right: 10px
	}

	.fixed-icon img {
		width: 80px;
		height: 80px
	}
}


/*--------------------------------------------
	アルバムとフォト
--------------------------------------------*/
.album {
	display: -webkit-flexbox;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	padding: 25px;
	gap: 25px;
	width: 100%;
	-webkit-overflow-scrolling: touch;
	text-align: left
}

.album h5 {
	margin: 0 auto
}

.album form {
	margin: 0;
	padding: 0;
	display: block
}

.album .photo {
	position: relative;
	/*2pxはボーダー分*/
	width: 202px;
	height: 202px
}

.album .photo img {
	position: absolute;
	width: 200px;
	height: 200px;
	background: #222;
	color: var(--base-color);
	box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
	border: 1px solid rgba(255, 255, 255, .5);
	cursor: pointer;
	object-fit: cover;
	transition: opacity .3s ease-out, transform .3s ease-out, border-color .3s ease-out
}

.album.multiple .photo:hover img:nth-child(1) {
	-webkit-transform: rotate(4deg) translateY(-7px) translateX(9px);
	transform: rotate(4deg) translateY(-7px) translateX(9px)
}

.album.multiple .photo:hover img:nth-child(2) {
	border-color: var(--main-color)
}

.album.single .photo:hover img {
	border-color: var(--main-color)
}

@media (max-width: 495px) {
	.album {
		padding: 10px;
		gap: 15px
	}

	.album .photo {
		width: 152px;
		height: 152px
	}

	.album .photo img {
		width: 150px;
		height: 150px
	}
}


@media (max-width: 355px) {
	.album {
		justify-content: center
	}
}

/*--------------------------------------------
		ラベル
	鳥見、釣り、景色
--------------------------------------------*/
.album .photo .label {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(255, 255, 255, 0.8);
	color: var(--text-color);
	font-size: 12px;
	font-weight: bold;
	padding: 4px 10px;
	border-radius: 15px;
	text-decoration: none;
	transition: background .3s, color .3s
}

.album .photo .label.fishing:hover {
	background: var(--white3);
	color: var(--base-color)
}

.album .photo .label.bird:hover {
	background: var(--main-color);
	color: var(--base-color)
}

.album .photo .label.view:hover {
	background: var(--white);
	color: var(--base-color)
}

/*--------------------------------------------
		文字
	h6,p,name
--------------------------------------------*/
.album .photo .text {
	position: absolute;
	margin: 0 1px;
	width: 100%;
	bottom: 1px
}

.album.multiple .photo .text {
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .6))
}

.album .photo .text h6 {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: calc(100%-10px);
	margin: 0 0 5px 12px;
	color: var(--base-color);
	text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
	font-size: 1em
}

.album .photo .text p {
	display: flex;
	justify-content: space-between;
	margin: 0 0 9px 10px;
	font-size: .7em;
	color: #ccc;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

.album .photo .text .name {
	font-size: .9em;
	color: var(--base-color);
	margin-right: 9px
}

.album.single .photo .text .name {
	opacity: 0;
	transition: opacity .3s ease-out;
	text-shadow: 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000
}

.album.single .photo:hover .text .name {
	opacity: 1;
}

@media (max-width: 495px) {
	.album .photo .text h6 {
		font-size: .9em;
		margin: 0 0 3px 7px
	}
}

/*--------------------------------------------
	アルバムのモーダルログ
	album-modal
--------------------------------------------*/
.album-modal {
	display: none;
	position: fixed;
	z-index: 99;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	justify-content: center;
	align-items: center;
	transition: opacity 0.3s ease-out
}

.album-modal .toggle {
	display: block;
	position: fixed;
	bottom: 20px;
	right: 50%;
	transform: translateX(50%);
	width: 30px;
	height: 30px;
	cursor: pointer
}

.album-modal .toggle span {
	position: absolute;
	display: block;
	left: 0;
	width: 30px;
	height: 2px;
	background-color: #333;
	border-radius: 4px;
	z-index: 2
}

.album-modal .toggle span:nth-child(1) {
	top: 4px;
	transform: translateY(10px) rotate(-315deg)
}

.album-modal .toggle span:nth-child(2) {
	bottom: 4px;
	transform: translateY(-10px) rotate(315deg)
}

.album-modal .toggle .circle {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 46px;
	height: 46px;
	background-color: var(--base-color);
	border-radius: 50%;
	z-index: 1
}

/*画面全体表示させない代わりに画面外をタッチでもとに戻る
.album-modal img {
	max-width: 95%;
	max-height: calc(100% - 140px);
	object-fit: contain;
	animation: scale-up 0.3s ease-out
}*/

.album-modal img {
	width: 95%;
	height: calc(100% - 140px);
	max-width: 95%;
	max-height: calc(100% - 140px);
	object-fit: contain;
	animation: scale-up 0.3s ease-out
}

@keyframes scale-up {
	from {
		transform: scale(0.7)
	}

	to {
		transform: scale(1)
	}
}