/* 写真から資材を提案(garmentproposal.php、AX-9 P2)。ボタンは送信ボタン(richbutton_blue)、カードと見出しは紹介ページ(style_referral.css)にそろえる */
#contents [hidden] {
	display: none !important;
}
.gpmessage {
	max-width: 760px;
	margin: 20px auto 60px;
	padding: 0 16px;
	text-align: center;
	font-size: 16px;
	line-height: 28px;
	color: #424242;
}
.gpmain {
	box-sizing: border-box;
	width: 100%;
	max-width: 1180px;
	margin: 10px auto 60px;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	gap: 22px;
	color: #212121;
	font-size: 15px;
	line-height: 1.7;
}
.gptrial {
	margin: 0;
	padding: 10px 14px;
	border-left: 3px solid #FF3EE6;
	background-color: #FFF5FD;
	font-size: 13px;
	color: #424242;
}
.gpsection {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.gpheading {
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid #FFE8FF;
	font-size: 20px;
	line-height: 28px;
	font-weight: bold;
	color: #757575;
}
.gpsmall {
	margin: 0;
	font-size: 13px;
	color: #616161;
}
.gpdrop {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	padding: 28px 16px;
	border: 2px dashed #BDBDBD;
	border-radius: 10px;
	background-color: #FAFAFA;
	text-align: center;
	cursor: pointer;
}
.gpdrop:hover, .gpdrop:focus, .gpdrop.dragover {
	border-color: #448BFF;
	background-color: #F5F9FF;
	outline: none;
}
.gpdropicon {
	width: 56px;
	height: 56px;
}
.gpdroptitle {
	font-size: 17px;
	font-weight: bold;
}
.gpdrophint {
	font-size: 13px;
	color: #757575;
}
.gppreview {
	display: flex;
	justify-content: center;
}
.gppreview img {
	max-width: 100%;
	max-height: 360px;
	border-radius: 6px;
}
.gpactions, .gpfeedbackrow {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.gpbutton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0 24px;
	border: none;
	border-radius: 2px;
	background-color: #448BFF;
	color: #FFFFFF;
	font-size: 14px;
	font-weight: bold;
	text-decoration: none;
	box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .26);
	cursor: pointer;
	transition: box-shadow .3s, background-color .3s, transform .3s;
}
.gpbutton:hover, .gpbutton:focus {
	background-color: #357DF2;
	color: #FFFFFF;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .4);
	transform: translate3d(0, -1px, 0);
}
.gpbutton:disabled {
	background-color: #D8DCE3;
	box-shadow: none;
	transform: none;
	cursor: default;
}
.gpbutton_secondary, .gpbutton_secondary:hover, .gpbutton_secondary:focus {
	border: 1px solid #448BFF;
	background-color: #FFFFFF;
	color: #1E6FD9;
	font-weight: normal;
	box-shadow: none;
}
.gpbutton_secondary:hover {
	background-color: #F5F9FF;
}
.gpbutton_secondary.selected {
	background-color: #448BFF;
	color: #FFFFFF;
}
.gpprogress {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #424242;
}
.gpspinner {
	width: 18px;
	height: 18px;
	border: 3px solid #E3F2FD;
	border-top-color: #448BFF;
	border-radius: 50%;
	animation: gpspin 1s linear infinite;
}
@keyframes gpspin {
	to {
		transform: rotate(360deg);
	}
}
.gpnotice {
	padding: 10px 14px;
	border-radius: 6px;
	background-color: #F5F9FF;
	font-size: 14px;
}
.gpnotice.error {
	background-color: #FFEBEE;
	color: #C62828;
}
.gpnotice a {
	color: #1E6FD9;
}
.gpresult {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.gpresultside, .gpresultmain {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}
.gpresultside {
	position: sticky;
	top: 10px;
}
.gpphotobox {
	position: relative;
}
.gpphotobox img {
	display: block;
	width: 100%;
	border-radius: 6px;
}
.gpboxes {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	pointer-events: none;
}
.gpboxes span {
	position: absolute;
	border: 2px solid #FF3EE6;
	border-radius: 2px;
	pointer-events: none;
}
.gpboxes span.button {
	border-color: #448BFF;
}
.gpsummary {
	font-size: 14px;
	color: #424242;
}
.gpchips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.gpchip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 4px 2px 10px;
	border: 1px solid #E0E0E0;
	border-radius: 999px;
	background-color: #FFFFFF;
	font-size: 13px;
}
.gpchip.assumed {
	border-style: dashed;
}
.gpchip.changed {
	border-color: #448BFF;
	background-color: #F5F9FF;
}
.gpchip .key {
	color: #757575;
	white-space: nowrap;
}
.gpchip select {
	max-width: 160px;
	border: none;
	background: transparent;
	font-size: 13px;
	color: #212121;
}
.gpchip label {
	white-space: nowrap;
}
.gpowned {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
}
.gpparts {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.gppart {
	border: 1px solid #E0E0E0;
	border-radius: 10px;
	padding: 12px 14px;
}
.gppart.removed {
	opacity: .55;
}
.gpparthead {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
}
.gppartname {
	font-size: 17px;
	font-weight: bold;
}
.gplevel {
	padding: 0 8px;
	border-radius: 999px;
	background-color: #ECEFF1;
	font-size: 12px;
	color: #455A64;
}
.gplevel.required {
	background-color: #FCE4EC;
	color: #AD1457;
}
.gpquantity {
	font-size: 13px;
	color: #424242;
}
.gppartlinks {
	margin-left: auto;
	display: flex;
	gap: 12px;
}
.gplink {
	padding: 0;
	border: none;
	background: none;
	color: #1E6FD9;
	font-size: 13px;
	cursor: pointer;
	text-decoration: underline;
}
.gplink.active {
	color: #C62828;
	font-weight: bold;
}
.gppartdesc {
	margin: 4px 0 8px;
	font-size: 13px;
	color: #616161;
}
.gpcards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}
.gpcard {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	box-sizing: border-box;
	padding: 8px;
	border: 1px solid #E0E0E0;
	border-radius: 8px;
	background-color: #FFFFFF;
	cursor: pointer;
}
.gpcard.selected {
	border: 2px solid #448BFF;
	padding: 7px;
}
.gpcard input {
	position: absolute;
	opacity: 0;
}
.gpcardphoto {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 4px;
	background-color: #F5F5F5;
}
.gpcardname {
	font-size: 14px;
	font-weight: bold;
	line-height: 1.4;
	overflow-wrap: anywhere;
}
.gpcardmeta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-size: 12px;
	color: #616161;
}
.gpswatch {
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 1px solid #BDBDBD;
	border-radius: 2px;
	vertical-align: middle;
}
.gpbadges {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.gpbadges span {
	padding: 0 6px;
	border-radius: 999px;
	background-color: #F3E5F5;
	font-size: 11px;
	color: #6A1B9A;
}
.gpcardprice {
	font-size: 14px;
	font-weight: bold;
	color: #212121;
}
.gpcardprice a {
	font-weight: normal;
	font-size: 12px;
	color: #1E6FD9;
}
.gpcardlink {
	font-size: 12px;
	color: #1E6FD9;
}
.gpmorecards {
	margin-top: 10px;
}
.gpfeedback, .gpconsult {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.gpcomment, .gpmissingpart {
	box-sizing: border-box;
	margin: 0;
	border: 1px solid #BDBDBD;
	border-radius: 2px;
	background-color: #FFFFFF;
	color: #212121;
	font-family: inherit;
	font-size: 14px;
}
.gpcomment {
	display: block;
	width: 100%;
	max-width: 560px;
	padding: 12px 14px;
	line-height: 1.6;
	resize: vertical;
}
.gpmissingpart {
	min-width: 0;
	max-width: 280px;
	height: 48px;
	padding: 0 14px;
}
.gpcomment:focus, .gpmissingpart:focus {
	border-color: #448BFF;
	outline: none;
}
.gpbagbar {
	grid-column: 1 / -1;
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid #E0E0E0;
	background-color: rgba(255, 255, 255, .96);
}
.gpbagcount {
	font-size: 14px;
	color: #424242;
}
#gpbagresult {
	grid-column: 1 / -1;
}
.gphistorylist {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
}
.gphistorylist a {
	color: #1E6FD9;
}
@media (max-width: 800px) {
	.gpresult {
		grid-template-columns: minmax(0, 1fr);
	}
	.gpresultside {
		position: static;
	}
	.gpphotobox {
		max-width: 320px;
	}
}
@media (max-width: 600px) {
	.gpmain {
		padding: 0 12px;
	}
	.gpcards {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 6px;
	}
	.gpcard {
		flex: 0 0 72%;
		scroll-snap-align: start;
	}
	.gppartlinks {
		margin-left: 0;
	}
	.gpbagbar {
		justify-content: space-between;
		padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
	}
	.gpbagbar .gpbutton {
		flex: 1 1 auto;
	}
	.gpmissingpart, #gpmissingsend {
		flex: 1 1 100%;
		max-width: none;
	}
}
