@charset "utf-8";


#cameraDialog button {
	min-height: 44px;
	padding: 10px 16px;
	border: 0;
	border-radius: 8px;
	font: inherit;
	cursor: pointer;
}

#cameraDialog button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

#openCameraButton {
	color: #fff;
	background: #222;
}

/* カメラダイアログ */
#cameraDialog {
	width: min(720px, calc(100% - 24px));
	max-height: 95dvh;
	padding: 0;
	border: 0;
	border-radius: 16px;
	overflow: hidden;
	background: #181818;
	color: #fff;
}

#cameraDialog::backdrop {
	background: rgb(0 0 0 / 70%);
}

.dialog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
}

.dialog-header h2 {
	margin: 0;
	font-size: 2rem;
}

#closeDialogButton {
	padding: 8px 12px;
	color: #fff;
	background: #3d3d3d;
}

.mode-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 0 16px 12px;
}

.mode-button {
	color: #fff;
	background: #3d3d3d;
}

.mode-button[aria-pressed="true"] {
	color: #111;
	background: #fff;
}

.camera-view {
	position: relative;
	overflow: hidden;
	background: #000;
	aspect-ratio: 4 / 4;
}

#cameraVideo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#cameraVideo.mirrored {
	transform: scaleX(-1);
}

#status {
	position: absolute;
	right: 12px;
	bottom: 12px;
	left: 12px;
	margin: 0;
	padding: 8px 12px;
	border-radius: 8px;
	background: rgb(0 0 0 / 65%);
	font-size: 0.9rem;
	text-align: center;
}

.dialog-controls {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	padding: 16px;
}

.dialog-notice {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	padding: 10px;
}

.primary-button {
	color: #111;
	background: #fff;
}

.danger-button {
	color: #fff;
	background: #c62828;
}

.secondary-button {
	color: #fff;
	background: #3d3d3d;
}

#resultArea {
	max-width: 720px;
	margin-top: 24px;
}

#resultArea img,
#resultArea video {
	display: block;
	width: 100%;
	max-height: 70vh;
	margin-top: 12px;
	object-fit: contain;
	border-radius: 12px;
	background: #000;
}

@media (orientation: landscape) {
	.camera-view {
		aspect-ratio: 16 / 9;
	}
}

@media screen and ( max-width:800px ){
	/*title*/
	#title {
		width: 100%;
		/*display: none;*/
	    /*width: auto !important;*/
	}
	/*screen*/
	#bot-ui-frame{
	    border-radius: 0 !important;
	    width: 100% !important;
	    padding:0 !important;
	}
	#bot-ui-frame .chatScreen {
	    overflow-x:hidden !important;
	    padding:0 !important;
	}
	#bot-ui-frame .chatScreen::-webkit-scrollbar {
	    display: none !important;
	}
	/*message*/
	#bot-ui-frame .message{
	    margin:10px 10px 10px 5px !important;
	}
	#bot-ui-frame .message._bot > span ,#bot-ui-frame .message._me > span {
	    padding: 10px !important;
		margin-left: 0px !important;
		max-width: 330px !important;
	}
	#bot-ui-frame .welcome_message._bot > span {
		margin:auto !important;
	    max-width: 500px;
	    width: auto;
	}
	#bot-ui-frame .message._bot img {
	    max-width: 310px !important;
	}
	#bot-ui-frame .message._bot .bot_face{
    	display: none !important;	
	}
	#bot-ui-frame .welcome_message._bot .welcome_bot_face{
    	display: none !important;	
	}
	#bot-ui-frame .message._bot .mobi_bot_face{
    	display: none !important;	
	}
	/*button*/
	#bot-ui-frame .assesYes,#bot-ui-frame .assesNo,#bot-ui-frame .assesInit {
	    display:block !important;
	    width:95% !important;
	    margin:5px 0 !important;
	}
}

@media screen and ( max-width:397px ){
#last-login{
    font-size: 10px;
}
#logout-btn {
    padding: 4px 9px;
}
}

@media screen and ( max-width:500px ){
	.header{
		height:40px; 
    margin-right: -4px;
    display: flex;
    justify-content: center;
    align-items: center;
	}

	.header_title{
		/* font-size: 1em; */
    	font-size: 14px;
		/* position: absolute; */
		margin: auto;
		margin-left: 2rem;
		word-break: keep-all;
		max-width: 40%;
	}

	#chatStartBtn {
		font-size: 10px;
		/* position: unset;
		right: unset;
		height: unset; */
	}

	#chatStartBtn img {
		width: 3rem;
	}
}

/* footer */
@media screen and ( max-width:700px ){
	.footer_item{
		display: none; 
	}
	.footer_logo{
		height: 31px;
		width: 110px;
	}
}

@media screen and ( max-width:510px ){
	/* .footer_menu{
    display: flex;
    justify-content: left;
    position: relative;
		margin-left: 15px;
	} */

	.footer_logo{
		display: none;
	}
	.footer_no-logo{
		display: block;
		margin-top: 15px;
		margin-right: 5px;
		height:  auto;
    width:   35px;
	}
}

@media screen and ( max-width:429px ){
	.footer_in{
		height: 42px;
		/* height: 44px; */
	}
	.footer_ul{
		font-size: 8.5pt;
		/* font-size: 9pt; */
		padding: 5px 0px 0px 10px;

	}
	.footer_link{
		margin-top: 2px;
	}

	.footer_box{
    right: 5px;
}

	.footer_logo{
		height:  31px;
    width:   100px;
    /* margin-bottom: 1px; */
	}

	.footer_no-logo{
		margin-top: 15px;
		margin-right: 5px;
		height: auto;
		width: 35px;
	}

}


@media screen and ( max-width:360px ){
	.footer_menu{
		margin-left: 5px;
	}

}

@media (max-height: 720px) {
  #cameraDialog button {
	max-height: unset;
	padding: 5px 16px;

  }
  .camera-view {
	width: 70%;
	margin: auto;
  }

  .dialog-controls{
	padding: 5px 16px;
  }
}