
html {
	height : 100%;
}

body {
	height : 100%;
	margin : 0;
	padding : 0;
	background-color : var(--main-bg-color);
}

header {
	width : 100%;
	padding : 10px 0;
	border-bottom : 1px solid #cccccc;
	background-color : #ffffff;
}

#header_content a {
	color : #000000;
	font-size : 1.2rem;
	font-weight : bold;
	text-decoration : none;
}

#header_content a:hover {
	color : #000000;
}

#clinictitle {
	margin : 1rem 0;
	font-size : 1.2rem;
	font-weight : bold;
	text-align : center;
}

#main {
	padding : 1rem 0.5rem;
	border : 1px solid #dfe4ea;
	border-radius : 20px;
	background-color : #ffffff;
	font-size : 0.9rem;
}

#main p {
	margin : 0.5rem;
}

#pagetitle {
	font-size : 1.1rem;
	font-weight : bold;
	text-align : center;
}

#consentform {
	font-size : 0.9rem;
	text-align : justify;
}

.list {
	margin-bottom : 0;
}
#bottom-section {
	margin : 1rem;
	text-align : center;
}

footer {
	position : sticky;
	top : 100vh;
	width : 100%;
	padding : 4px 0;
}

#footer_content {
	font-size : 0.8rem;
	text-align : center;
}

@media (max-width: 767px) {
	#header_content, #main, #footer_content {
		width : 96%;
		margin : auto;
	}
}

@media (min-width: 768px) {
	#header_content, #main, #footer_content {
		width : 680px;
		margin : auto;
	}
}

@media (min-width: 1024px) {
	#header_content, #main, #footer_content {
		width : 920px;
		margin : auto;
	}
}

.control {
	display : block;
	position : relative;
	margin-bottom : 10px;
	padding-left : 22px;
	cursor : pointer;
}

.control input {
	position : absolute;
	z-index : -1;
	opacity : 0;
}

.control__indicator {
	position : absolute;
	top : 3px;
	left : 0;
	width : 18px;
	height : 18px;
	background : #e6e6e6;
}

.control--radio .control__indicator {
	border-radius : 50%;
}

.control:hover input~.control__indicator, .control input:focus~.control__indicator {
	background : #cccccc;
}

.control input:checked~.control__indicator {
	background : var(--btn-blue);
}

.control:hover input:not([disabled]):checked~.control__indicator, .control input:checked:focus~.control__indicator {
	background : var(--btn-blue);
}

.control input:disabled~.control__indicator {
	opacity : 0.6;
	background : #e6e6e6;
	pointer-events : none;
}

.control__indicator:after {
	display : none;
	position : absolute;
	content : "";
}

.control input:checked~.control__indicator:after {
	display : block;
}

.control--checkbox .control__indicator:after {
	top : 3px;
	left : 7px;
	width : 5px;
	height : 10px;
	border : solid #ffffff;
	border-width : 0 2px 2px 0;
	transform : rotate(45deg);
}

.control--checkbox input:disabled~.control__indicator:after {
	border-color : #7b7b7b;
}

.control--radio .control__indicator:after {
	top : 6px;
	left : 6px;
	width : 6px;
	height : 6px;
	border-radius : 50%;
	background : #ffffff;
}

.control--radio input:disabled~.control__indicator:after {
	background : #7b7b7b;
}

.block-btn {
	display : block;
	position : relative;
	width : 100%;
	max-width : 300px;
	margin : 0.5rem auto;
	padding : 0.5em 0.3em;
	color : #ffffff;
	border-radius : 5px;
	font-size : 1em;
	font-weight : bold;
	-webkit-transition : none;
	        transition : none;
	text-align : center;
	text-decoration : none!important;
	/*box-shadow: 0 3px 0 #2ecc71;*/
}

.blue-btn {
	background-color : #2980b9;
}

.blue-btn:hover {
	color : #ffffff;
	background-color : #3498db;
}
.submit-btn {
	background-color : #27ae60;
}

.submit-btn:hover {
	color : #ffffff;
	background-color : #2ecc71;
}
.submit-btn:disabled {
	color : #ffffff;
	background-color : #e74c3c;
}

.back-btn {
	background-color : #95a5a6;
}

.back-btn:hover {
	color : #ffffff;
	background-color : #b2bec3;
}

#patient {
	margin : auto;
}

.pname {
	font-weight : bold;
}

.rdate {
	text-align : end;
}

#monshin {
	width : 100%;
}

#monshin .quest {
	padding : 0.5rem;
	background-color : var(--quest-bg-color);
	font-weight : bold;
}

#monshin .answer {
	padding : 1rem;
	vertical-align : middle;
}

.answer table {
	width : 100%;
}

.answer td {
	vertical-align : middle;
}

.other {
	display : flex;
	margin-bottom : 10px;
}

.inline-form {
	display : inline-block;
	width : 150px;
}
.answer input[type=date] {
	width : 150px;
}
.after-text {
	margin-left : 0.25rem;
	color : #212529;
	font-size : 0.9rem;
}
.subquest {
	padding : 0.3rem 0.7rem;
	font-size : 0.9rem;
}
.subq {
	margin-bottom : 0.5rem;
}
.subqtitle {
	margin-bottom : 0.2rem;
}
.subquest textarea {
	margin-bottom : 0.5rem;
}

.other .control {
	margin : auto 0;
	margin-right : 0.5rem;
}
.other .subquest {
	padding : 0;
}
.other .subquest .form-control {
	padding : 0.25rem 0.5rem;
}

.tph[readonly], .tpm[readonly] {
	background-color : #ffffff;
}

.renban {
	/*padding : 0.5em;*/
	list-style-type : none;
	counter-reset : num;
}

.renban .qno {
	position : relative;
	padding-left : 1.5em;
}

.renban .qno::before {
	position : absolute;
	top : 3px;
	left : 0;
	width : 16px;
	height : 16px;
	border : 1px solid #555555;
	border-radius : 50%;
	font-size : 12px;
	line-height : 1.1;
	content : counter(num);
	counter-increment : num;
	text-align : center;
	/*display : inline-block;*/
	/*color : #555555;*/
	/*background : transparent;*/
	/*font-weight : bold;*/
}

.subqno {
	position : relative;
	padding-left : 1.3em;
}

.subqno::before {
	position : absolute;
	top : 5px;
	left : 3px;
	width : 0;
	height : 0;
	color : #d35400;
	border-width : 0.375em 0.64952em;
	border-style : solid;
	border-color : transparent;
	border-right : 0;
	border-left-color : currentColor;
	line-height : 1;
	content : "";
}

.fileupload {
	width : 200px;
	padding : 0.3em;
	color : #ffffff;
	border : 2px solid #ffffff;
	border-radius : 5px;
	background-color : #2589d0;
	box-shadow : 0 0 0 3px #2589d0;
	font-weight : 500;
	cursor : pointer;
	text-align : center;
}
.fileupload>input {
	display : none; /* アップロードボタンのスタイルを無効にする */
}
.require::after {
	display : inline-block;
	margin-left : 10px;
	color : #e74c3c;
	font-size : 0.8rem;
	line-height : 14px;
	content : "\5fc5\9808";	/*必須*/
	vertical-align : middle;
}
.require.en::after {
	content : "Required";	/*必須*/
}

.list-radio {
	border : none;
}

.list-radio label {
	display : flex;
	align-items : center;
	position : relative;
	max-width : 200px;
	margin-bottom : 0.4em;
	padding : 0.5em 0.7em;
	border : 1px solid #227093;
	border-radius : 3px;
	background-color : #ffffff;
	cursor : pointer;

	gap : 0 0.5em;
}

.list-radio label:has(:checked) {
	color : #ffffff;
	background-color : #227093;
}

.list-radio label:has(:disabled) {
	background-color : #e9ecef;
}

.list-radio label::before, .list-radio label:has(:checked)::after {
	border-radius : 50%;
	content : "";
}

.list-radio label::before {
	width : 14px;
	height : 14px;
	border : 1px solid #227093;
	background-color : #ffffff;
}

.list-radio label:has(:checked)::after {
	position : absolute;
	top : 50%;
	left : calc(7px + 0.7em);
	width : 7px;
	height : 7px;
	background-color : #0984e3;
	transform : translate(-50%, -50%);
}

.list-radio input {
	display : none;
}

.list-checkbox {
	border : none;
}

.list-checkbox label {
	display : flex;
	align-items : center;
	position : relative;
	max-width : 200px;
	margin-bottom : 0.4em;
	padding : 0.5em 0.7em;
	border : 1px solid #227093;
	border-radius : 3px;
	background-color : #e9ecef;
	cursor : pointer;

	gap : 0 0.5em;
}

.list-checkbox label:has(:checked) {
	color : #ffffff;
	background-color : #227093;
}

.list-checkbox label::before {
	width : 14px;
	height : 14px;
	border-radius : 1px;
	background-color : #ffffff;
	content : "";
}

.list-checkbox label:has(:checked)::after {
	position : absolute;
	top : 14px;
	left : 15px;
	width : 4px;
	height : 8px;
	border : solid #227093;
	border-width : 0 2px 2px 0;
	content : "";
	transform : rotate(45deg);
}

.list-checkbox input {
	display : none;
}
@-moz-document url-prefix() {
	.list-radio input {
		display : block;
	}
}

.canvas-container {
	margin : auto;
}
#canvas {
	border : solid 2px  #2c3e50;
}

.horizontal-radio {
	float : left;
	width : 100%;
	margin : 0 0 10px 0;
}
.horizontal-radio input {
	display : none;
}
.horizontal-radio label {
	display : block;
	float : left;
	width : 50%;
	padding : 0.5rem;
	color : #555e64;
	border : 0;
	background : #e5e5e5;
	font-weight : bold;
	cursor : pointer;
	transition : 0.2s;
	text-align : center;
}

.horizontal-radio label:nth-of-type(n+3) {
	border-top : 1px solid #d7d7d7;
}
.horizontal-radio label:nth-of-type(2n+1) {
	border-right : 1px solid #d7d7d7;
}
.horizontal-radio input[type="radio"]:checked+label {
	color : #ffffff;
	background-color : #16a085;
}
