/* 紹介ページ(referral.php)。ボタンは送信ボタン(richbutton_blue)、ポイントは ApparelX ポイントの紫、見出しは .contentareaheader の薄いピンクの上線にそろえる */
#contents [hidden] {
	display: none !important;
}
.referralmessage {
	max-width: 760px;
	margin: 20px auto 60px;
	padding: 0 16px;
	text-align: center;
	font-size: 16px;
	line-height: 28px;
	color: #424242;
}
.referralmain {
	box-sizing: border-box;
	width: 100%;
	max-width: 1080px;
	margin: 10px auto 60px;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	gap: 28px;
	color: #212121;
	font-size: 15px;
	line-height: 1.7;
}
.referralsteps {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.referralstep {
	flex: 1 1 260px;
	min-width: 0;
	box-sizing: border-box;
	border: 1px solid #E0E0E0;
	border-radius: 10px;
	padding: 16px 18px;
}
.referralstepnumber {
	font-size: 13px;
	color: #757575;
}
.referralsteptitle {
	margin: 2px 0 4px;
	font-size: 18px;
	font-weight: bold;
}
.referralsteptext {
	font-size: 14px;
	color: #616161;
}
.referralpoint {
	color: #7E57C2;
	font-weight: bold;
	white-space: nowrap;
}
.referralsection {
	border-top: 1px solid #FFE8FF;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.referralheading {
	margin: 0;
	padding-top: 15px;
	font-size: 24px;
	line-height: 28px;
	font-weight: bold;
	color: #757575;
}
.referralsubheading {
	display: block;
	font-size: 15px;
	font-weight: bold;
	color: #212121;
}
.referrallinkrow {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.referrallinkinput {
	flex: 1 1 340px;
	min-width: 0;
	height: 48px;
	box-sizing: border-box;
	border: 1px solid #BDBDBD;
	border-radius: 2px;
	padding: 0 14px;
	background-color: #FAFAFA;
	color: #212121;
	font-family: Menlo, Consolas, monospace;
	font-size: 16px;
}
.referralbutton {
	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;
	white-space: nowrap;
	box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .26);
	cursor: pointer;
	transition: box-shadow .3s, background-color .3s, transform .3s;
}
.referralbutton:hover, .referralbutton:focus {
	background-color: #357DF2;
	color: #FFFFFF;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .4);
	transform: translate3d(0, -1px, 0);
}
.referralbutton:disabled {
	background-color: #D8DCE3;
	box-shadow: none;
	transform: none;
	cursor: default;
}
.referralbutton_secondary, .referralbutton_secondary:hover, .referralbutton_secondary:focus {
	border: 1px solid #448BFF;
	background-color: #FFFFFF;
	color: #1E6FD9;
	font-weight: normal;
	box-shadow: none;
}
.referralbutton_secondary:hover {
	background-color: #F5F9FF;
}
.referralqrarea {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}
.referralqrimage {
	width: 200px;
	height: 200px;
	border: 1px solid #EEEEEE;
}
.referralqrtext {
	flex: 1 1 240px;
	font-size: 14px;
	color: #424242;
}
.referralnote {
	margin: 0;
	font-size: 13px;
	line-height: 1.7;
	color: #616161;
}
.referralsns {
	border: 1px solid #E0E0E0;
	border-radius: 10px;
	padding: 14px 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.referralsnsbuttons, .referralbuttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.referralsnsbuttons .referralbutton, .referralbuttons .referralbutton {
	min-height: 40px;
	padding: 0 18px;
	font-size: 13px;
}
.referralcaution {
	margin: 0;
	padding: 8px 12px;
	border-radius: 6px;
	background-color: #FFFDE7;
	font-size: 12px;
	line-height: 1.7;
	color: #424242;
}
.referralcolumns {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.referralcolumn {
	flex: 2 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.referralcolumn_wide {
	flex: 3 1 420px;
}
.referralmessageinput {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #BDBDBD;
	border-radius: 2px;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.7;
	color: #212121;
	resize: vertical;
}
.referralsettings {
	box-sizing: border-box;
	margin: 0;
	padding: 16px 18px;
	border-radius: 10px;
	background-color: #FAFAFA;
}
.referraltextinput {
	height: 44px;
	box-sizing: border-box;
	border: 1px solid #BDBDBD;
	border-radius: 2px;
	padding: 0 12px;
	background-color: #FFFFFF;
	font-family: inherit;
	font-size: 15px;
	color: #212121;
}
.referralcheck {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: #424242;
	cursor: pointer;
}
.referralcheck input {
	margin: 5px 0 0;
}
.referralstats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.referralstat {
	flex: 1 1 180px;
	min-width: 0;
	box-sizing: border-box;
	border: 1px solid #E0E0E0;
	border-radius: 10px;
	padding: 12px 16px;
}
.referralstatlabel {
	font-size: 13px;
	color: #616161;
}
.referralstatvalue {
	font-size: 26px;
	line-height: 1.4;
	font-weight: bold;
}
.referralstatsub {
	font-size: 12px;
	color: #616161;
}
.referraltablewrap {
	overflow-x: auto;
	border: 1px solid #E0E0E0;
	border-radius: 10px;
}
.referraltable {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 14px;
}
.referraltable th {
	padding: 10px 14px;
	background-color: #F5F5F5;
	color: #616161;
	text-align: left;
	font-weight: bold;
}
.referraltable td {
	padding: 12px 14px;
	border-top: 1px solid #EEEEEE;
	vertical-align: top;
}
.referraltable td:first-child {
	white-space: nowrap;
}
.referraltable .referralnumber {
	text-align: right;
	white-space: nowrap;
}
.referralpill {
	display: inline-block;
	padding: 1px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: bold;
	white-space: nowrap;
}
.referralpill_active {
	background-color: #E3F2FD;
	color: #1565C0;
}
.referralpill_qualified {
	background-color: #EDE7F6;
	color: #5E35B1;
}
.referralpill_confirmed {
	background-color: #E8F5E9;
	color: #2E7D32;
}
.referralpill_other {
	background-color: #EEEEEE;
	color: #616161;
}
.referralfaq {
	margin: 0;
	font-size: 14px;
}
.referralfaq dt {
	margin-top: 12px;
	font-weight: bold;
}
.referralfaq dd {
	margin: 2px 0 0;
	color: #424242;
}
.referralterms {
	margin: 0;
	padding-left: 1.6em;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
	line-height: 1.8;
	color: #424242;
}
.referralterms b {
	margin-right: 6px;
	color: #212121;
}
.referralvisuallyhidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
@media (max-width: 600px) {
	.referralmain {
		padding: 0 12px;
		font-size: 14px;
	}
	.referralheading {
		font-size: 20px;
		line-height: 26px;
	}
	.referralbutton {
		flex: 1 1 auto;
	}
	.referralstat {
		flex-basis: 140px;
	}
	.referralstatvalue {
		font-size: 20px;
	}
	.referraltable {
		min-width: 0;
		font-size: 13px;
	}
	.referraltable th, .referraltable td {
		padding: 8px 10px;
	}
}
