@charset "utf-8";

.frm_forms{margin-top:25px;}
.frm_fields_container{border-top:1px solid #ccc;}
.frm_form_field{
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	position:relative;
	padding:15px 20px;
	border-bottom:1px solid #ccc;
}
.frm_form_field::before{
	content:'';
	position:absolute;
	z-index:-1;
	top:0;
	left:0;
	width:260px;
	height:100%;
	background:#F6F6F6;
}
.frm_primary_label{
	flex-shrink:0;
	width:240px;
	margin-right:20px;
	font-weight:bold;
}
.frm_required{
	float:right;
	padding:1px 10px 2px;
	margin:2px 20px 0 0;
	background:#E30000;
	color:#fff;
	font-size:1.3rem;
	font-weight:normal;
	letter-spacing:0.65px;
	line-height:1.9rem;
}
.frm_form_field input{
	display:block;
	width:calc(100% - 260px);
	padding:11px 20px 13px;
	border:1px solid #ccc;
	color:#333 !important;
	font-size:1.6rem;
	letter-spacing:0.8px;
	line-height:2.4rem;
}
.frm_form_field input::placeholder{color:#ccc;}
.frm_form_field textarea{
	display:block;
	width:calc(100% - 260px);
	min-height:250px;
	padding:11px 20px 13px;
	border:1px solid #ccc;
	font-size:1.6rem;
	letter-spacing:0.8px;
	line-height:2.4rem;
	resize:vertical;
	overflow:auto;
}
.frm_form_field select{
	display:block;
	max-width:460px;
	width:calc(100% - 260px);
	padding:11px 60px 13px 20px;
	background:url(/sangaku/img/common/arrow_b_green.svg) no-repeat center right 20px;
	border:1px solid #ccc;
	color:#333 !important;
	font-size:1.6rem;
	letter-spacing:0.8px;
	line-height:2.4rem;
	cursor:pointer;
}

.frm_form_field.doi{
	display:flex;
	justify-content:center;
	padding:0;
	margin:30px 0 50px;
	border:none;
}
.frm_form_field.doi::before, .doi .frm_primary_label{display:none;}
.frm_form_field.doi label{
	display:flex;
	align-items:center;
	letter-spacing:0.48px;
}
.frm_form_field.doi input{
	width:auto;
	margin:0 5px 0 0;
}
.frm_form_field.doi a{
	padding:0 !important;
	background:none !important;
}
.frm_submit{
	flex-direction:row-reverse !important;
	justify-content:center;
	gap:20px;
}
.frm_button_submit{
	width:220px;
	padding:15px 20px 16px !important;
	backface-visibility:hidden;
	background:#0B8083 !important;
	border-radius:8px;
	box-shadow:0px 3px 20px rgba(0,0,0,0.05);
	color:#fff !important;
	font-family:var(--font_noto);
	font-size:1.6rem;
	font-weight:bold;
	letter-spacing:0.8px;
	line-height:2.4rem;
	text-align:center;
	text-decoration:none !important;
	cursor:pointer;
	transition:background 0.3s, transform 0.3s;
}
.frm_button_submit:hover{
	background-color:#0A6F72 !important;
	transform:translateY(-2px);
}
.frm_prev_page{
	width:140px;
	padding:15px 20px 16px !important;
	backface-visibility:hidden;
	background:#666 !important;
	border-radius:8px;
	box-shadow:0px 3px 20px rgba(0,0,0,0.05);
	color:#fff !important;
	font-family:var(--font_noto);
	font-size:1.6rem;
	font-weight:bold;
	letter-spacing:0.8px;
	line-height:2.4rem;
	text-align:center;
	text-decoration:none !important;
	cursor:pointer;
	transition:background 0.3s, transform 0.3s;
}
.frm_prev_page:hover{
	background-color:#444 !important;
	transform:translateY(-2px);
}

.frm_error_style[role="alert"]{
	margin-bottom:10px;
	color:#E30000;
}
.frm_error{
	margin:5px 0 0 260px;
	color:#E30000;
}
.frm_form_field.doi .frm_error{
	width:100%;
	margin:5px 0 0;
	text-align:center;
}

.frm_page_num_2 .frm_form_field{
	display:block;
	padding:0;
	border:none;
}
.frm_page_num_2 .frm_form_field::before{display:none;}
.frm_page_back{display:none;}
.frm-line-table{
	margin:0 !important;
	border:none;
}
.frm-line-table tr{border:none !important;}
.frm-line-table tr:last-child{display:none !important;}
.frm-line-table th, .frm-line-table td{
	padding:14px 20px 16px !important;
	border-bottom:1px solid #ccc !important;
}
.frm-line-table th{
	width:260px !important;
	background:#F6F6F6 !important;
	font-size:1.6rem !important;
	opacity:1 !important;
}
.frm_page_num_2 .frm_submit{margin-top:50px;}


@media screen and (max-width:1024px){

.frm_primary_label,
.frm_form_field input, .frm_form_field textarea, .frm_form_field select,
.frm_form_field.doi label,
.frm_error_style[role="alert"], .frm_error{
	font-size:1.4rem;
	letter-spacing:0.7px;
	line-height:2rem;
}
.frm_required{
	margin-top:1px;
	font-size:1.2rem;
	letter-spacing:0.6px;
	line-height:1.7rem;
}
.frm_form_field::before{width:240px;}
.frm_primary_label{width:220px;}
.frm_form_field input, .frm_form_field textarea, .frm_form_field select{width:calc(100% - 240px);}

.frm_form_field.doi{margin-bottom:40px;}
.frm_button_submit, .frm_prev_page{
	font-size:1.3rem;
	letter-spacing:0.65px;
	line-height:1.9rem;
}
.frm_error{margin-left:240px;}

.frm-line-table th{
	width:200px !important;
	font-size:1.4rem !important;
}
.frm_page_num_2 .frm_submit{margin-top:40px;}

}


@media screen and (max-width:767px){

.frm_form_field{
	display:block;
	padding:0;
}
.frm_form_field::before{display:none;}
.frm_primary_label{
	display:block;
	width:100%;
	padding:15px 20px 17px;
	margin:0;
	background:#F6F6F6;
	border-bottom:1px solid #ccc;
}
.frm_required{margin:0;}
.frm_form_field input, .frm_form_field textarea, .frm_form_field select{
	width:calc(100% - 40px);
	margin:15px 20px 30px;
}

.frm_form_field.doi{margin-bottom:30px;}
.frm_prev_page, .frm_button_submit{padding:12px 20px 14px !important;}
.frm_button_submit{width:180px;}
.frm_prev_page{width:100px;}
.frm_error{margin:-20px 20px 30px;}

.frm-line-table{table-layout:auto;}
.frm-line-table th, .frm-line-table td{
	display:list-item;
	list-style:none;
}
.frm-line-table th{width:100% !important;}
.frm-line-table td{padding-bottom:30px !important;}
.frm_page_num_2 .frm_submit{margin-top:30px;}

}