:root {
	--main-bg-color : #f1f9f9;
	--quest-bg-color : #e1f2fb;
	--btn-blue : #3498db;
}

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-radius : 20px;
	background-color : #ffffff;
}

#main p {
	margin : 0.5rem;
}
mark {
	background : linear-gradient(transparent 70%, #ffeaa7 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;
	}
}

.accordion-title {
	position : relative;
	margin : 0;
	padding : 0.5rem;
	padding-right : 3rem;
	background-color : #fff1dc;
	font-size : 1.1rem;
	cursor : pointer;
}

/*
.accordion-title:hover,
.accordion-title:active,
.accordion-title.open { 
	background-color: #00aaa7;
}
*/

.accordion-title::before {
	position : absolute;
	top : 50%;
	right : 25px;
	width : 15px;
	height : 2px;

/*縦線に*/
	background-color : #7b7b7b;
	content : "";
	transition : all 0.3s ease-in-out;
	transform : rotate(90deg);
}

.accordion-title::after {
	position : absolute;
	top : 50%;
	right : 25px;

/*横線*/
	width : 15px;
	height : 2px;
	background-color : #7b7b7b;
	content : "";
	transition : all 0.2s ease-in-out;
}

.accordion-title.open::before {
	transform : rotate(180deg);
}

.accordion-title.open::after {
	opacity : 0;
}
.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;*/
}

.submit-btn {
	background-color : #27ae60;
}

.submit-btn:hover {
	color : #ffffff;
	background-color : #2ecc71;
}

.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 th {
	padding : 0.5rem;
	background-color : var(--quest-bg-color);
}
.require li:first-child:after {
	display : inline-block;
	margin-left : 10px;
	color : var(--bs-red);
	font-size : 11px;
	font-size : 0.6875rem;
	line-height : 14px;
	content : "\5fc5\9808";	/*必須*/
	vertical-align : middle;
}
.monshin td.answer {
	padding : 1rem;
	vertical-align : middle;
}

.answer table {
	width : 100%;
}

.answer td {
	vertical-align : middle;
}

.other {
	display : flex;
	margin : 0.2rem 0;
}

.inline-form {
	display : inline-block;
	width : 90%;
}

.subquest {
	padding : 0 1rem;
	padding-bottom : 0.5rem;
	font-size : 0.9rem;
}

.subquestanswer {
	margin-bottom : 0.5rem;
}

.subquest textarea {
	margin-bottom : 0.5rem;
}
/*.subquest input {
	width : 100%;
}*/

.other .control {
	margin : auto 0;
	margin-right : 0.5rem;
}
.other .subquest {
	padding : 0;
}
.other .subquest .form-control {
	padding : 0.25rem 0.5rem;
}

.renban {
	padding : 0.5em;
	list-style-type : none;
	counter-reset : num;
}

.renban li {
	position : relative;
	padding-left : 22px;
}

.renban li::before {
	display : inline-block;
	position : absolute;
	top : 3px;
	left : 0;
	width : 20px;
	height : 20px;
	color : #555555;
	border : #555555 1px solid;
	border-radius : 50%;
	background : transparent;
	font-size : 14px;
	font-weight : bold;
	line-height : 16px;
	content : counter(num);
	counter-increment : num;
	text-align : center;
}
