@charset "UTF-8";

.type__tab--sub .emblem_title {
	background: #666;
	text-align: left;
	padding: 2px 10px;
}
.type__tab--sub .emblem_title:hover {
	opacity: 1;
}

#emblem .marking-table{
	table-layout: fixed;
	border: 1px solid #333333;
}
#emblem .marking-table.is-position-hidden .position,
#emblem .marking-table.is-position-hidden .position_td{
	display: none;
}
#emblem .marking-table thead th.status,
#emblem .marking-table td.status_td,
#emblem .marking-table thead th.type,
#emblem .marking-table td.type{
	width: 60px;
}
#emblem .marking-table thead th.position,
#emblem .marking-table td.position_td{
	width: 120px;
}
#emblem .marking-table td.position_td select{
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
	width: 100%;
}
#emblem .marking-table td.design{
	display: table-cell;
	text-align: left;
}
.emblem-summary-row{
	align-items: center;
	display: flex;
	gap: 10px;
	min-width: 0;
	position: relative;
	width: 100%;
}
.emblem-summary-row__main{
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	gap: 10px;
	min-width: 0;
}
.marking-table td.design .emblem-summary-row__main img{
	background-color: #c8c8c8;
	background-image:
		linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%),
		linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%);
	background-size: 14px 14px;
	background-position: 0 0, 7px 7px;
	border: 1px solid #ccc;
	border-radius: 12px;
	box-sizing: border-box;
	flex: 0 0 58px;
	height: 58px;
	margin: 0;
	object-fit: contain;
	padding: 7px;
	width: 58px;
}
.emblem-summary{
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	margin-top: 0;
}
.emblem-summary__label{
	font-weight: bold;
	font-size: 13px;
	line-height: 1.3;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#emblem .emblem-summary__text{
	color: #000;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	overflow-wrap: anywhere;
	white-space: normal;
	word-break: break-word;
	margin-bottom: 5px;
}
.marking-table td.design .marking_button.emblem-summary-row__button{
	align-items: center;
	background: transparent !important;
	border: 1px solid #c8c8c8;
	border-radius: 6px;
	box-sizing: border-box;
	color: #111111;
	display: inline-flex;
	font-size: 16px;
	font-weight: 700;
	gap: 6px;
	justify-content: center;
	line-height: 1.2;
	margin-right: 0;
	min-height: 42px;
	padding: 9px 16px;
	text-align: center;
	width: auto;
}
.marking-table td.design .marking_button.emblem-summary-row__button::before{
	background: currentColor;
	content: "";
	display: inline-block;
	flex: 0 0 auto;
	height: 18px;
	-webkit-mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M5 19h1.4l9.9-9.9-1.4-1.4L5 17.6V19Zm-2 2v-4.25L16.3 3.45c.2-.18.42-.32.67-.42.25-.1.5-.15.77-.15s.53.05.78.15c.25.1.47.25.66.44l1.37 1.38c.2.18.35.4.45.65.1.25.15.51.15.78 0 .25-.05.5-.14.74-.1.24-.24.46-.43.66L7.25 21H3Zm16.15-14.7-1.4-1.4 1.4 1.4Zm-3.55 2.1-.7-.7 1.4 1.4-.7-.7ZM10 21v-2h11v2H10Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M5 19h1.4l9.9-9.9-1.4-1.4L5 17.6V19Zm-2 2v-4.25L16.3 3.45c.2-.18.42-.32.67-.42.25-.1.5-.15.77-.15s.53.05.78.15c.25.1.47.25.66.44l1.37 1.38c.2.18.35.4.45.65.1.25.15.51.15.78 0 .25-.05.5-.14.74-.1.24-.24.46-.43.66L7.25 21H3Zm16.15-14.7-1.4-1.4 1.4 1.4Zm-3.55 2.1-.7-.7 1.4 1.4-.7-.7ZM10 21v-2h11v2H10Z'/%3E%3C/svg%3E") center / contain no-repeat;
	width: 18px;
}
.marking-table td.design .marking_button.emblem-summary-row__button:disabled{
	background: transparent !important;
	border-color: #d6d6d6;
	color: #888888;
}
.character__img.is-emblem-rendering .character__img__loading{
	display: block !important;
}
.character__img.is-emblem-rendering .character__img__loading::after{
	background: rgba(0, 0, 0, 0.45);
	border-radius: 999px;
	color: #fff;
	content: "エンブレム生成中...";
	font-size: 12px;
	left: 50%;
	line-height: 1;
	padding: 8px 12px;
	position: absolute;
	top: calc(24% + 42px);
	transform: translateX(-50%);
	white-space: nowrap;
	z-index: 2;
}
@media screen and (max-width: 680px) {
	#emblem .marking-table{
		table-layout: fixed;
	}
	#emblem .marking-table thead th.status,
	#emblem .marking-table td.status_td{
		padding: 6px 4px;
		width: 48px;
	}
	#emblem .marking-table thead th.type,
	#emblem .marking-table td.type{
		padding: 6px 4px;
		width: 60px;
	}
	#emblem .marking-table td.type img{
		width: 40px;
	}
	#emblem .marking-table td.type span{
		font-size: 12px;
	}
	#emblem .marking-table td.design{
		display: table-cell;
		padding: 8px;
	}
	#emblem .marking-table thead th.position,
	#emblem .marking-table td.position_td{
		padding: 6px 4px;
		width: 92px;
	}
	#emblem .marking-table td.position_td select{
		font-size: 14px;
		padding: 8px 4px;
		width: 100%;
	}
	#emblem .emblem-summary__text{
		font-size: 11px;
	}
	#emblem .marking-table td.design .marking_button.emblem-summary-row__button{
        font-size: 14px;
        min-height: 36px;
        padding: 3px 12px;
        min-width: 80px;
	}
	#emblem .marking-table td.design .marking_button.emblem-summary-row__button::before{
		height: 16px;
		width: 16px;
	}
}
.emblem_text{
	margin:5px;
}
#emblem .color{
	padding: 5px;
}
#emblem .color,
#emblem .color__tab{
	position: initial;
	width: 100%;
}
#emblem .color__tab ul{
	display: flex;
}
#emblem .color__tab a{
	position: initial;
	right: initial;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: initial;
	display: flex;
	align-items: center;
	justify-content: center;
}
#emblem .color__tab span{
	display: initial;
	font-size: 12px;
}
#emblem .color__tab ul li:not(:last-child){
	margin-right: 10px;
}
#emblem .color__tab:hover a{
	width: 45px;
}

[id^="emblem_design"].marking__modal {
	background: rgba(18, 18, 18, 0.6);
}
.marking__modal .emblem-editor{
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 18px 50px rgba(0,0,0,0.28);
	display: flex;
	flex-direction: column;
	height: auto;
	max-height: 86vh;
	max-width: none;
	overflow: hidden;
	padding: 0;
	top: 50%;
	right: auto;
	bottom: auto;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(1160px, calc(100vw - 64px));
}
.emblem-editor__header{
	border-bottom: 1px solid #ddd;
	padding: 22px 36px;
}
.emblem-editor__header .name{
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
}
.emblem-editor__note{
	margin: 16px 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
}
.emblem-editor.is-brandlogo-emblem .emblem-editor__color-section.is-brandlogo-hidden-color{
	display: none;
}
.emblem-editor__body{
	display: grid;
	grid-template-columns: 360px 1fr;
	gap: 32px;
	max-height: 70vh;
	overflow-y: auto;
	padding: 32px;
}
.emblem-editor__preview{
	align-self: start;
	position: sticky;
	top: 0;
}
.emblem-editor__preview-slot{
	align-items: center;
	background-color: #c8c8c8;
	background-image:
		linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%),
		linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%);
	background-size: 20px 20px;
	background-position: 0 0, 10px 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	display: flex;
	height: 360px;
	justify-content: center;
	position: relative;
}
.emblem-editor__preview-slot #emblemPreview{
	background: transparent;
	display: block;
	height: 280px;
	left: auto;
	position: relative;
	top: auto;
	transform: none;
	width: 280px;
	z-index: 1;
}
.emblem-editor__preview-slot #emblemPreviewCanvas{
	height: 240px;
	width: 240px;
}
.emblem-editor__preview-slot #emblemPreview.is-loading::after{
	align-items: center;
	background: rgba(245,245,240,0.88);
	color: #333;
	content: "フォントを読み込み中です";
	display: flex;
	font-size: 14px;
	font-weight: 700;
	inset: 0;
	justify-content: center;
	line-height: 1.5;
	position: absolute;
	text-align: center;
	z-index: 2;
}
.emblem-editor__preview-slot #emblemPreview.is-loading::before{
	border: 3px solid rgba(11,130,55,0.22);
	border-top-color: #0b8237;
	border-radius: 50%;
	content: "";
	height: 28px;
	left: 50%;
	margin-left: -14px;
	margin-top: -42px;
	position: absolute;
	top: 50%;
	width: 28px;
	z-index: 3;
	animation: emblemPreviewLoading 0.8s linear infinite;
}
@keyframes emblemPreviewLoading{
	to{
		transform: rotate(360deg);
	}
}
.emblem-editor__controls{
	min-width: 0;
}
.emblem-editor__section{
	margin-bottom: 24px;
}
.emblem-editor__section-head{
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 10px;
}
.emblem-editor__section-title{
	color: #333;
	display: block;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 10px;
}
.emblem-editor__color-name{
	color: #777;
	font-size: 16px;
	font-weight: 700;
}
.emblem-editor__design-list{
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
}
.emblem-editor__swatches{
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fill, minmax(38px, 50px));
}
.emblem-editor__swatch{
	aspect-ratio: 1 / 1;
	border: 1px solid #d8d8d8;
	border-radius: 5px;
	cursor: pointer;
	display: block;
	max-width: 50px;
	min-height: 38px;
	outline: 0;
	position: relative;
	width: 100%;
}
.emblem-editor__swatch.is-active{
	box-shadow: 0 0 0 3px #4b80d9;
}
.emblem-editor__swatch span{
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}
.emblem-editor__text-row{
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(0, 1fr) 50%;
}
.emblem-editor__text-row input{
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	font-size: 18px;
	padding: 12px 14px;
	width: 100%;
}
.emblem-editor__font-picker{
	position: relative;
	width: 100%;
}
.emblem-editor__font-select{
	align-items: center;
	background: #fff;
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	font-size: 18px;
	justify-content: space-between;
	padding: 14px 12px;
	position: relative;
	text-align: left;
	width: 100%;
}
.emblem-editor__font-select:after{
	border-bottom: 2px solid #333;
	border-right: 2px solid #333;
	content: '';
	height: 8px;
	margin-left: 12px;
	transform: rotate(45deg) translateY(-2px);
	width: 8px;
}
.emblem-editor__font-select-name{
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.emblem-editor__font-list{
	background: #fff;
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	box-shadow: 0 10px 24px rgba(0,0,0,0.14);
	display: none;
	margin: 0;
	max-height: 260px;
	overflow-y: auto;
	padding: 6px;
	position: fixed;
	z-index: 1002;
}
.emblem-editor__font-picker.is-open .emblem-editor__font-list{
	display: block;
}
.emblem-editor__font-list.is-floating-open{
	display: block;
}
.emblem-editor__font-option{
	list-style: none;
}
.emblem-editor__font-option-button{
	align-items: center;
	background: #fff;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	display: grid;
	gap: 4px;
	grid-template-columns: 86px minmax(0, 1fr);
	padding: 8px 10px;
	text-align: left;
	width: 100%;
}
.emblem-editor__font-option-button:hover,
.emblem-editor__font-option.is-active .emblem-editor__font-option-button,
.emblem-editor__font-option.type__list--active .emblem-editor__font-option-button{
	background: #f3f5f4;
}
.emblem-editor__font-option-name{
	color: #555;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}
.emblem-editor__font-option-preview{
	display: block;
	line-height: 1.2;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.emblem-editor__footer{
	align-items: center;
	background: #f7f7f2;
	border-top: 1px solid #ddd;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 20px 32px;
}
.emblem-editor__cancel,
.emblem-editor__confirm{
	border-radius: 8px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 700;
	min-height: 52px;
}
.emblem-editor__cancel{
	background: #fff;
	border: 1px solid #d8d8d8;
	color: #333;
}
.emblem-editor__confirm{
	background: #0b8237;
	border: 1px solid #0b8237;
	color: #fff;
	min-width: 160px;
}

@media screen and (min-width: 680px) {
	.emblem-editor__cancel,
	.emblem-editor__confirm{
		padding: 0 34px;
	}
}
@media screen and (max-width: 980px) {
	.emblem-editor__text-row{
		grid-template-columns: 1fr;
	}
}
@media screen and (max-width: 680px) {
	.marking__modal .emblem-editor{
		border-radius: 0;
		height: 100%;
		max-height: 100%;
		width: 100%;
	}
	.emblem-editor__header{
		padding: 18px 24px;
	}
	.emblem-editor__header .name{
		font-size: 22px;
	}
	.emblem-editor__body{
		display: block;
		max-height: calc(100vh - 154px);
		padding: 0 24px 20px;
	}
	.emblem-editor__preview{
		background: #fff;
		border-bottom: 1px solid #ddd;
		margin: 0 -24px 20px;
		padding: 16px 24px;
		position: sticky;
		top: 0;
		z-index: 2;
	}
	.emblem-editor__preview-slot{
		height: 220px;
	}
	.emblem-editor__preview-slot #emblemPreview{
		height: 180px;
		width: 180px;
	}
	.emblem-editor__preview-slot #emblemPreviewCanvas{
		height: 160px;
		width: 160px;
	}
	.emblem-editor__design-list{
		display: flex;
		gap: 10px;
		overflow-x: auto;
	}
	.emblem-editor__design-list li{
		flex: 0 0 74px;
	}
	.emblem-editor__text-row{
		grid-template-columns: 1fr;
	}
	.emblem-editor__footer{
		display: grid;
		grid-template-columns: 1fr 1.6fr;
		padding: 16px 24px;
	}
}

/*---------------------------------------------
	Object - Block - emblem
---------------------------------------------*/
.emblem__zoomWindow{
	position: absolute;
	top: 15px;
	height: 100%;
	width: calc(70% - 130px);
	margin-right: 30px;
	margin-left: 100px;
}
.emblem__zoomWrap{
	display: none;
	position: absolute;
	background: rgba(0,0,0,0.6);
	width: 300px;
	height: 300px;
	border-radius: 5px;
	top: 40%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
}
#emblemPreviewCanvas,
#emblemShirtsCanvas{
	height: 200px;
	position: absolute;
	z-index: 999;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 200px;
}
#emblemPantsCanvas{
	height: 200px;
	position: absolute;
	top:200px;
	z-index: 999;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 200px;
}

@media screen and (max-width: 1024px) {
	.emblem__zoomWrap{
		width: 250px;
		height: 250px;
	}
	.emblem__zoomWindow{
		width: calc(60% - 130px);
	}
}
@media screen and (max-width: 768px) {
	.emblem__zoomWrap{
		width: 200px;
		height: 200px;
	}
	#emblemPreviewCanvas,
	#emblemShirtsCanvas,
	#emblemPantsCanvas{
		height: 150px;
		width: 150px;
	}
}
@media screen and (max-width: 680px) {
	.emblem__zoomWindow {
		width: 100%;
		height: 50%;
		margin-left: initial;
		margin-right: initial;
	}
	.emblem__zoomWrap{
		top: 50%;
		width: 240px;
		height: 240px;
	}
	#emblemPreviewCanvas,
	#emblemShirtsCanvas,
	#emblemPantsCanvas{
		height: 200px;
		width: 200px;
	}
}

@media screen and (max-width: 320px) {
	ul#emblem_front_design,
	ul#emblem_back_design,
	ul#emblem_pants_design{
		grid-template-columns: 1fr 1fr;
	}
}
