/**
 * ドロップエリア
 -------------------------------------------------- */
.c-droparea {
	position: relative;
	padding: 40px 20px;
	border: 1px dashed #999;
	text-align: center;
}
.js-droparea.is-dropover {
	background: rgba(0,0,0,.1);
}
.js-droparea.is-dropover > * {
	pointer-events: none;
}
.p-form_profile .js-droparea::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.2);
}
.p-form_profile .js-droparea.is-dropover::before {
	background: rgba(0,0,0,.4);
}

/* :::::: UPLOAD FILES :::::: */
.droparea_title {
	pointer-events: none;
	color: #999;
	font-size: 2rem;
	letter-spacing: .15em;
}
.droparea_title .t {
	fill: none;
	stroke: currentcolor;
	stroke-width: 2;
}
.droparea_note,
.droparea_caution {
	display: block;
	color: #999;
	font-size: 1.2rem;
	line-height: 1.6;
}
.droparea_caution {
	margin-top: .3em;
	font-size: 1rem;
}

/* ファイルをドラッグ、もしくは ファイルを選択 */
.droparea_message {
	display: inline-block;
	margin-top: 27px;
	font-size: 1.4rem;
}
.droparea_message .c-file {
	margin-left: .5em;
}

/* 選択されていません (選択したファイル名) */
.c-droparea .selected {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 4px;
	font-size: 1.2rem;
}
.c-droparea .selected_file {
	margin-top: 4px;
	padding: 1px 6px;
	border-radius: 5px;
	background: #f0f0f0;
}
.c-droparea .selected_file:nth-child(n+2) {
	margin-left: 4px;
}

/* :::::: プログレスバー :::::: */
.media_progressbar {
	display: flex;
	justify-content: center;
	align-items: baseline;
	height: 24px;
	margin-top: 32px;
	transition: height .2s, margin-top .2s, opacity .2s;
}
.media_progressbar:not(.is-active) {
	height: 0;
	margin-top: 0;
	opacity: 0;
	transition-duration: .4s;
}
.media_name {
	margin-right: 1em;
	font-size: 1.2rem;
}
.media_progressbar .bar,
.media_progressbar .progress {
	height: 6px;
	border-radius: 6px;
}
.media_progressbar .bar {
	position: relative;
	width: 100%;
	max-width: 360px;
	margin-right: 10px;
	background: #ccc;
}
.media_progressbar .progress {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	background: #00a0e9;
	transition: width .2s;
}
.media_progressbar .count {
	position: absolute;
	bottom: 100%;
	width: 3em;
	margin-left: -1.5em;
	font-size: 1.1rem;
	font-family: inherit;
	transition: left .2s;
}

/* :::::: プロフィール画像 :::::: */
.p-form_profile {
	position: relative;
	background: white;
	padding: 20px;
}
.profile_main,
.profile_thumb {
	position: relative;
}
.profile_thumb {
	max-width: 320px;
	margin-top: 20px;
}
.p-form_profile .droparea_note {
	position: absolute;
	right: 20px;
	bottom: 20px;
}
.profile_note small {
	display: block;
	padding-left: 1em;
	color: #999;
	font-size: 1.2rem;
	line-height: 1.4;
	text-indent: -1em;
}
.profile_note small:nth-child(n+2) {
	margin-top: .4em;
}
.p-form_profile .c-droparea {
	padding: 0;
	aspect-ratio: 16 / 9;
}
.p-form_profile .droparea_title {
	position: absolute;
	top: calc(50% - 39px);
	left: 0;
	width: 100%;
	color: white;
	filter: drop-shadow(0 0 20px rgba(0,0,0,.2));
}
.p-form_profile .droparea_uploaded img {
	height: auto;
}
.p-form_profile .o-error {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 1em;
	font-size: 1.2rem;
	line-height: 1.4;
	text-align: left;
}
.droparea_caption {
	position: absolute;
	top: 0;
	left: 8px;
	padding: 0 .6em;
	color: white;
	font-size: 1.2rem;
	background: rgba(0,0,0,.2);
}

/* :::::: デフォルトに戻す (追って実装) :::::: */
.c-droparea .o-delete {
	display: none;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	background: rgba(0,0,0,.4);
}
.c-droparea .o-delete::before,
.c-droparea .o-delete::after {
	left: 25%;
	width: 50%;
}
@media (hover: hover) {
	.c-droparea .o-delete {
		transition: background .4s;
	}
	.c-droparea .o-delete:hover {
		background: rgba(0,0,0,.6);
		transition-duration: .2s;
	}
}

/* :::::: キャンセル / アップロード :::::: */
.media_upload {
	margin-top: 20px;
}
.media_upload .o-button {
	font-size: 1.4rem;
}

/* :::::: アップロード済みファイル :::::: */
.p-form_uploaded {
	margin-top: 20px;
}
.c-uploaded {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	margin-top: 8px;
}
.c-uploaded.js-tilelist {
	width: auto;
	max-width: none;
}
.c-uploaded_item {
	counter-increment: item;
	flex-basis: calc(33.33333% - 40px / 3);
	position: relative;
	width: calc(33.33333% - 40px / 3);
}
.c-uploaded_item.js-tile {
	position: absolute;
}
.c-uploaded_item::after {
	content: counter(item);
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 20px;
	height: 20px;
	color: white;
	font-size: 1.1rem;
	line-height: 1;
	background: rgba(0,0,0,.5);
}
.c-uploaded_item .spacer {
	aspect-ratio: 1 / 1;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	background: #ccc;
}
.c-uploaded_item.is-delete::after,
.c-uploaded_item.is-delete .spacer,
.c-uploaded_item.is-delete .o-delete {
	pointer-events: none;
	opacity: 0;
	transform: scale(.8);
	transition: opacity .4s, transform .4s cubic-bezier(0.33, 1, 0.68, 1);
}
.c-uploaded_item img,
.c-uploaded_item video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* :::::: 並べ替え :::::: */
.c-uploaded[style] {
	transition: height .2s;
}
.c-uploaded_item[style]:not(:nth-child(3n+1)) {
	margin-left: 0;
}
.c-uploaded_item[style]:nth-child(n+4) {
	margin-top: 0;
}
.c-uploaded_item[data-order]::after {
	content: attr(data-order);
}
.c-uploaded_item.is-dragging,
.c-uploaded_item.is-positioning-post-drag {
	background: #EA0;
	z-index: 2;
}
.packery-drop-placeholder {
	outline: 1px dashed #f0f0f0;
	outline-offset: -2px;
	background: rgba(0,0,0,.05);
	transition: transform .2s;
}
