/**************************************/
/*	共通レイアウト
/**************************************/
/* pager */
#pagenation .pagination_box{
	line-height: 42px;
	margin: 20px auto;
}
#pagenation .pagination_box .prev_arrow,
#pagenation .pagination_box .next_arrow{
	display: block;
	color: #ABB3AF;
	font-size: 20px;
	text-align: center;
	line-height: 40px;
	width: 42px;
	height: 42px;
	border: solid 1px #ABB3AF;
	border-radius: 21px;
}
#pagenation .pagination_box .pagination_num_box{
	width: calc(100% - 84px);
}
#pagenation .pagination_box .pagination_num{
	color: #ABB3AF;
	text-align: center;
	width: 20%;
}
#pagenation .pagination_box .pagination_num.active_page{
	font-weight: bold;
	color: #0A8647;
}

/* form  */
::placeholder {
	color: #BBB;
}

#messageBox .alert-success{
	width:800px;
}
#messageBox .alert-danger{
	width:800px;
}
#messageBox .alert-close{
	position:absolute;
	right:16px;
}

/* チェックボックスのチェックが入った際にopacityしないようにする */
.form-check {
    display: flex;
    align-items: center;
    padding-left: 0;
}
.form-check-input{
	margin-right: 8px;
}
.form-check-input:checked~.form-check-label, .form-check-input[checked]~.form-check-label {
    opacity: 1!important;
}
.form-check-input:checked {
    opacity: 1!important;
}
.form-group label:has(input[type="radio"]:checked){
	color:#C00;
	font-weight: bold;
}

/* title */
h3.section_title{
	position: relative;
	padding-left:24px;
}
h3.section_title::before{
	position: absolute;
	left: 0px;
	top:0px;
	content:"■";
}
th span.required{
	position: relative;
}

th span.required::after{
	position: absolute;
	right: -10px;
	top:0;
	color: red;
	font-size: 14px;
	content:"*";
}

/* キャンバスサイズ */
.canvas_chart {
    position: relative;
    width:  calc(100% - 60px);
    height: 300px;
    overflow: hidden;
    margin:20px;
}

.canvas_chart canvas {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

/**************************************/
/*	ローディング中
/**************************************/
#loading {
	position: fixed;
	top: 0;
	z-index: 100;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
}

#loading.background-off {
	background: rgba(0, 0, 0, 0);
}

.spinner_box {
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.spinner {
	width: 40px;
	height: 40px;
	border: 4px #ddd solid;
	border-top: 4px #2e93e6 solid;
	border-radius: 50%;
	animation: spinner_anime 0.8s infinite linear;
}

@keyframes spinner_anime {
	100% {
		transform: rotate(360deg);
	}
}

/**************************************/
/*	PC　基本レイアウト
/**************************************/
/*	ヘッダー＆フッター */
footer{
	position: sticky;
	top: 100vh;
	width: 100%;
	background-color: #EBF2EE;
	height: 60px;
}
footer .footer_lang_box{
	width: 50%;
	height: 60px;
	padding: 8px 12px;
}
footer .footer_link_box{
	font-size: 12px;
	line-height: 60px;
	text-align: right;
	width: 50%;
	padding-right: 12px;
}
footer .footer_link_box a{
	position: relative;
	text-decoration: underline!important;
}

/* main */
main {
	display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    overflow: scroll;
}

#main_layout {
	padding:8px 0px;
	width: 100%
}
#main_layout .page-header h1{
	font-size:1.2rem;
	font-weight: bold;
	padding:0px;
	margin-bottom:16px;
}

.main-thumbnail {
    color: white;
    font-weight: bold;
    text-align: center;
    width: 100%;
    background-color: #999;
    border: solid 1px #AAA;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    padding-bottom: calc(100% * (4 / 3));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; 
}

.main-thumbnail > * {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pdf_download{
	transform: none;
	top:4px;
	left:4px;
	margin: 0;
}

.nav-tabs .nav-link.active{
    color: #fff!important;
    background-color: #2f5e82!important;
}

.nav-tabs .nav-link{
    color: #fff!important;
    background-color: #6c757d!important;
}

/* チェックボックスサイズ */
.inspection-check-box{
	width: 20px;
	height: 20px;
}

/* スライダーのボタンサイズ */
.slick-dots li button:before{
	font-size:20px!important;
}

/* 周知チェックボックスサイズ */
.notice-check-box{
	width: 20px;
	height: 20px;
}

/**************************************/
/* ログイン
/**************************************/
#login{
	margin:80px auto;
	width:600px;
	min-height: 420px;
	max-height: 480px;		
	background-color: #FFF;
	border: solid 1px #DDDDDD;
}
.login_2fa{
	min-height: 360px!important;
}
.login_2fa_recovery{
	min-height: 320px!important;
}
#login .login_logo_icon{
	margin-top:10px;
}
#login .login_logo_icon img{
	height: 50px;
}
#login h2{
	font-size: 13px;
	font-weight: bold;
	text-align:center;
	line-height: 48px;
}
#login .login_form{
	width: 320px;
	margin: 0px auto 16px;
	text-align: center;
}
#login .login_form h3{
	font-size: 12px;
	font-weight: inherit;
	text-align: left;
	width: 320px;
	margin:8px auto 8px auto;
}
#login .login_form input.login_form_txt{
	width: 320px;
	height: 52px;
	padding: 0px 8px 0px 24px;
	background-color: transparent;
}

#login .login_form .login_form_rememberme{
	display: block;
	padding: 8px;
	text-align:left;
}
#login .login_form .login_form_rememberme input[type=checkbox]:checked{
	background-color: #0A8647;
}

#login .login_form_password_reset{
	padding: 8px;
	text-align: right;
	margin: 0px auto 16px;
}

/**************************************/
/* サイドメニュー
/**************************************/
#side-nav {
		display: flex;
		justify-content: flex-start;
		flex-direction: column;
		min-width: 260px;
		max-width: 260px;
		min-height: 100vh;
	background-color: #2f5e82;
	float: left;
	color: #fff;
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}

#side-nav .nav_logo_box a{
	display: block;
	font-size:18px;
	font-weight: bold;
	line-height: 42px;
	text-align: left;
	padding-left:16px;
}
#side-nav .nav_logo_box img{
	height: 42px;
}

#side-nav #menu-content{
	display: block;
	font-size: 14px;
}
#side-nav #menu-content .nav_category {
	font-size: 14px;
	line-height: 42px;
	padding: 0px 16px;
	cursor: pointer;
}
#side-nav #menu-content .nav_category > i{
	margin-right:8px;
}
#side-nav #menu-content button.nav_category {
	display: block;
	color:white;
	text-align: left;
	width:100%;
	border: none;
	background-color: transparent;
	transition: all 0.3s;
}
#side-nav #menu-content button.nav_category:hover {
	color:black;
	background-color: white;
}

#side-nav #menu-content .nav_category_border {
	border-top: solid #ebf2ee 1px;
	border-bottom: solid #ebf2ee 1px;
}

#side-nav #menu-content .nav_category.activeNav{
	background-color: #2f5e82;
}
#side-nav #menu-content ul.nav_lists{
	display: block;
		margin: 0;
		background-color: #FEFEFE;
}
#side-nav #menu-content ul.nav_lists li.nav_list{
	position: relative;
	display: block;
	font-size:13px;
}
#side-nav #menu-content ul.nav_lists li.nav_list a{
	display: block;
		color: #000;	
	width: 100%;
	padding: 12px 8px 12px 16px;
	transition: all 0.3s;
}
#side-nav #menu-content ul.nav_lists li.nav_list a:hover{
	background-color:rgba(59,130,246,0.2);
}

#side-nav #menu-content ul.nav_hide {
	display: none;
}

#side-nav #menu-content li.underline {
	border-top: 2px solid #2f5e82;
}

/* ナビ用の矢印 */
.navTrigger {
	position: relative;
}
.navTrigger::after {
	border-right: solid 2px #fff;
	border-top: solid 2px #fff;
	content: "";
	display: block;
	height: 8px;
	position: absolute;
	right: 15px;
	top: 38%;
	transform: rotate(135deg);
	transition: transform .3s ease-in-out, top .3s ease-in-out;
	width: 8px;
}
.navTrigger.open::after {
	top: 45%;
	transform: rotate(-45deg);
}

/**************************************/
/* modal
/**************************************/
.modal .btn_close{
	position: absolute;
	top: 0px;
	right: 0px;
	font-size: 16px;
	text-align: center;
	width: 32px;
	height: 32px;
	background-color: #FFF;
	border: solid 2px #000;
	border-radius: 16px;
}

.modal-body .form-label {
	width: 100%;
	letter-spacing: 0.05em;
	font-weight: bold;
	font-size: 18px;
}
.modal-body .form-label.mg {
	margin-top: 8px;
	margin-bottom: auto;
}
.modal-body .form-label-required {
	border-radius: 6px;
	margin-left: 8px;
	padding-top: 8px;
	padding-bottom: 8px;
	width: 80px;
	display: inline-block;
	text-align: center;
	background: #5bc8ac;
	color: #fff;
	font-size: 14px;
}
.modal-body .form-label-requireds {
	border-radius: 6px;
	margin-left: 8px;
	padding-top: 8px;
	padding-bottom: 8px;
	width: 110px;
	display: inline-block;
	text-align: center;
	background: #5bc8ac;
	color: #fff;
	font-size: 14px;
}
.modal-body .form-label-unrequired {
	border-radius: 6px;
	margin-left: 8px;
	padding-top: 8px;
	padding-bottom: 8px;
	width: 78px;
	display: inline-block;
	text-align: center;
	background: #b3b4b4;
	color: #fff;
	font-size: 14px;
}
.modal-body .form-input {
	border: 1px solid #ddd;
	border-radius: 6px;
	margin-left: 40px;
	padding-left: 1em;
	padding-right: 1em;
	height: 48px;
	flex: 1;
	width: 100%;
	max-width: 410px;
	background-color: #eaedf2;
	font-size: 18px;
}
.modal-body .form-textarea {
	border: 1px solid #ddd;
	border-radius: 6px;
	margin-left: 40px;
	padding-left: 1em;
	padding-right: 1em;
	height: 216px;
	flex: 1;
	width: 100%;
	max-width: 410px;
	background: #eaedf2;
	font-size: 18px;
}
.modal-body .text-muted.mg {
	margin-left: 40px;
}
.modal-body .detail-heading {
	width: 100%;
	max-width: 248px;
	letter-spacing: 0.05em;
	font-weight: bold;
	font-size: 18px;
}
.modal-body .detail-item {
	display: flex;
	border-bottom: solid 1px #AAA;
}
.modal-body .detail-label {
	width: 30%;
	text-align: center;
	padding: 8px;
	letter-spacing: 0.05em;
	font-weight: bold;
	background-color: #e3e3e3;	
}
.modal-body .detail-text {
	width: 70%;
	padding: 8px;
	background-color: #f5f5f5;	
}

.modal-body .detail-textarea {
	padding: 8px;
	background-color: #f5f5f5;
	height: 241px;
	overflow: scroll;
	overflow-wrap: break-word;
}

.modal-backdrop {
	z-index: 99;
}

input[type="checkbox"].switch{
	position: relative;
	appearance: none;
	background-color: #f2f2f2;
	-webkit-appearance: none;
	width: 44px;
	height: 28px;
	border: 2px solid #bababa;
	border-radius: calc(infinity * 1px);
	transition: 250ms ease-out;
	vertical-align: bottom;
	outline: 2px solid transparent;
}
input[type="checkbox"].switch:focus-visible{
	outline-color: #0043fc;
}
input[type="checkbox"].switch::after{
	content:"";
	background-color: #fff;
	position: absolute;
	top: 0px;
	left: 0px;
	box-shadow: 0px 0px 3px #6b6b6b;
	width: 24px;
	height: 24px;
	border-radius: calc(infinity * 1px);
	transition: 200ms ease-out;
}
input[type="checkbox"].switch:active::after{
	background-color: #f2f2f2;
}
input[type="checkbox"].switch:checked{
	background-color: #00db07;
	border-color: #00db07;
}
input[type="checkbox"].switch:checked::after{
	left: 16px;
}

.modal.fade.show.z-index{
	z-index: 10;
}

.modal-body .form-password-box{
	display: flex;
}

.modal-body .form-password-box{
	display: flex;
}
.modal-body .form-password-box .password-input-text {
	border-radius: 6px 0 0 6px;
}

.modal-body .form-password-box .password-input {
  border: 1px solid #ddd;
	border-radius: 0px 6px 6px 0px;
	border-left: 0px;	
  padding: 12px;
  font-size: 18px;
}

.modal-body .form-password-box .form-input{
	max-width: 364px;
}

.inline-radio {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
	border: 1px solid #ddd;
	margin-left: 40px;
	max-width: 410px;
	font-size: 12px;
}

.inline-radio div {
	position: relative;
	flex: 1;
}

.inline-radio input {
	width: 100%;
	height: 48px;
	opacity: 0;
}

.inline-radio label {
	position: absolute;
	top: 0; left: 0;
	color: #b6b6b6;
	width: 100%;
	height: 100%;
	background-color: #eaedf2;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	border-right: 1px solid #b6b6b6;
}

.inline-radio div:last-child label {
	border-right: 0;
}

.inline-radio input:checked + label {
	background: 	#0d6efd;
	font-weight: 500;
	color: #fff;
}

.selected-icon-box {
	display: flex;
	justify-content: center;
}

.selected-icon-box .selected-icon {
	width: 180px;
	height: 180px;
	padding: 15px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border: 3px solid #4FACFE;
	border-radius: 3px;
	font-size: 16px;
	font-weight: 700;
	color: #4FACFE;
	background-color: #fff
}

.selected-icon-box .selected-icon img {
	width: 80px;
	height: 80px;
}

.selected-icon-box .selected-icon p {
	font-weight: 700; 
	text-align: center;
	margin-top: 10px;
}

.selected-se-box {
	display: flex;
	justify-content: center;
}

.selected-se-box .selected-se {
	padding: 15px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.modal-body .table-add-box {
	padding: 4px 2px;
}

.modal-body .form-add-box {
	margin-left: 30px;
	width: 425px;
}

.modal-body .form-add-label {
	padding: 12px 0px;
}

.modal-body .add-delete {
	align-content: space-evenly;
}


/**************************************/
/* quill
/**************************************/
.quill-editor {
	height: 250px!important;
}

.ql-snow .ql-editor img {
    max-width: 250px!important;
    width: 100%;
    height: auto;
}

/**************************************/
/* calendar
/**************************************/
#calendar{
	width: 80%;
	height: 500px;
}
.fc .fc-daygrid-day-number{
	color: #000;
}
.fc-direction-ltr .fc-daygrid-event.fc-event-end{
	color: #000;
}
.fc-direction-ltr .fc-list-day-text{
	color: #000;
}
.fc-direction-ltr .fc-list-day-side-text{
	color: #000;
}

/**************************************/
/* 新規登録
/**************************************/
.form-setup{
		background: #fff;
		width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
		padding: 20px;
}

.form-setup.modal-body .form-input{
    max-width: 560px;
}
.form-setup.modal-body .form-input.password-input-text{
    max-width: 512px;
}

/**************************************/
/* 言語切り替え
/**************************************/
.lang-switcher {
	position: fixed;
	bottom: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	background: white;
	padding: 8px 12px;
	border-radius: 6px;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
	font-size: 14px;
}
.lang-switcher form {
	margin: 0;
}

/* ====================================
 * プラン選択カード
 * ==================================== */

.plan-card {
	/* 配置とレイアウト */
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	min-height: 210px;
	position: relative; /* 子要素のplan-ribbonの基準点にする */

	/* ボックスモデル */
	padding: 2rem 1.5rem;
	border: 2px solid #dee2e6;
	border-radius: 0.75rem;
	
	/* 背景とカーソル */
	background: #fff;
	cursor: pointer;
	transition: all 0.2s ease-in-out; /* ホバー時のアニメーション */
}

/* 選択されているカード */
.plan-card.selected {
	border-color: #0d6efd;
	background-color: #f0f8ff;
}

/* ホバー時のスタイル */
.plan-card:not(.selected):hover {
	border-color: #a6caff;
}

.plan-title {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 0.5rem;
}

.plan-amount {
	font-size: 1.5rem;
	font-weight: bold;
	color: #0d6efd;
	margin: 1rem 0;
}

.plan-description {
	font-size: 1rem;
	color: #555;
	text-align: left;
	margin-bottom: 1.5rem;
}

/* 各プランの利用上限数 */
.plan-limits {
	border-top: 1px solid #e0e0e0;
	padding-top: 1rem;
	margin-top: auto;
}
.plan-limits .text-muted {
	font-size: 0.9rem;
}
.plan-limits .fw-bold {
	font-size: 1.25rem;
}
.plan-limits > div:not(:last-child) {
	margin-bottom: 0.5rem;
}

/* 「現在のプラン」などを示すリボン */
.plan-ribbon {
	position: absolute;
	top: 10px;
	right: 18px;
	
	padding: 4px 10px;
	border-radius: 4px;
	
	background-color: #0d6efd;
	color: white;
	font-size: 0.8rem;
	font-weight: bold;
}