/* 
01 header
02 drawer Menu
03 共通パーツdesign
04 formカスタム

----------------------------------- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
	background-color: #f9fafb;
	color: #1e293b;
	line-height: 1.5;
	min-height: 100vh;
}
a{ color:inherit; text-decoration:none; }
ol, ul {list-style: none;}
input:disabled{
	background: #eee;
	color: #888;
}

.error{
	border: 1px solid rgba(176,0,32,.25);
	color:#b00020;
	font-weight:700;
}

.flx{
	display: -webkit-flex;
	display: flex;
	align-items: center;
	gap: 8px;
}

.grid-flx{
	width: 100%;
	display: -webkit-flex;
	display: flex;
	flex-flow: row wrap;
	gap: 8px;
}
.grid-flx > *{
	flex:1 1 auto;
}


.material-symbols-outlined {font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;}

/* 01 header
-------------------------------------------------- */
header {
	padding: 5px;
	background: linear-gradient(to right, #334155, #1e293b, #0f172a);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
header.dbg{background: #400f96;}
header.dbg .header-icon-inner span{color: #793fdb;}

.header-container {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
}
.header-left {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}
.header-icon {
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.header-icon-inner {
	width: 20px;
	height: 20px;
	background: white;
	border-radius: 4px;
}
.header-icon-inner span{font-size: 20px; color:#1f2937;}
.header-title {
	color: white;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.025em;
}

.header-menu {
	display: flex;
	align-items: center;
	gap: 12px;
}
.user-info {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	border-radius: 8px;
	color: white;
}
.user-info .material-symbols-outlined {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
}
.user-name {
	font-size: 14px;
	font-weight: 500;
}
.menu-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
	font-family: inherit;
}
.menu-btn .material-symbols-outlined {font-size: 16px;}
.menu-btn:hover {background: rgba(255, 255, 255, 0.2);}

#debugging{
	padding: 6px;
	background: #fff;
	display: -webkit-flex;
	display: flex;
	align-items: center;
	flex-grow: row nowrap;
	gap: 5px;
	border-radius: 10px;
}
#debugging > p{
	font-weight: bold;
	font-size: .84rem;
	white-space: nowrap;
}
#debugging > dl{
	width: 100%;
	justify-content: space-between;
}
#debugging > dl,
#debugging > dl dt{
	display: -webkit-flex;
	display: flex;
	align-items: center;
	flex-flow: row nowrap;
}
#debugging > dl dt div{margin-right: 10px;}
#debugging .cat-btn{
	color: #000;
	border: 1px solid #ddd;
}

/* 02 drawer Menu
-------------------------------------------------- */
.mobile-menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
}

.hamburger-btn {
	padding: 8px;
	color: white;
	background: transparent;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hamburger-btn .material-symbols-outlined {font-size: 20px;}
.hamburger-btn:hover {background: rgba(255, 255, 255, 0.1);}

.mobile-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 40;
}
.mobile-overlay.active {display: block;}
.mobile-drawer {
	position: fixed;
	top: 0;
	right: -256px;
	bottom: 0;
	width: 256px;
	background: white;
	box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
	z-index: 50;
	transition: right 0.3s ease;
	display: flex;
	flex-direction: column;
}
.mobile-drawer.active {right: 0;}
.mobile-drawer-header {
	background: linear-gradient(to right, #334155, #1e293b, #0f172a);
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: white;
	font-weight: 600;
}
.mobile-drawer-header button {
	padding: 4px;
	color: white;
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mobile-drawer-header .material-symbols-outlined {font-size: 20px;}
.mobile-drawer-content {
	flex: 1;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.mobile-user-info {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: #f9fafb;
	border-radius: 8px;
	margin-bottom: 16px;
	color: #1f2937;
	font-weight: 500;
	font-size: 14px;
}
.mobile-user-info .material-symbols-outlined {
	font-size: 20px;
	color: #4b5563;
}
.mobile-menu-item {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	color: #374151;
	background: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	transition: all 0.2s;
}

.mobile-menu-item .material-symbols-outlined {font-size: 20px;}
.mobile-menu-item:hover {background: #f3f4f6;}

@media (max-width: 768px) {
	.desktop-menu {display: none !important;}
	.mobile-menu-toggle {display: flex;}
}


/* 03 共通パーツdesign
-------------------------------------------------- */

/* カード -------------------------------------------------- */
.card {
	background: white;
	border-radius: 12px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	border: 1px solid #e5e7eb;
	overflow: hidden;
	margin-bottom: 16px;
}
.card-header {
	padding: 8px 12px;
	color: white;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #3f5574;
}
.card-header dl dt{font-weight: bold;}
/* .card-header-attendance {background: linear-gradient(to right, #475569, #334155);}
.card-header-category {background: linear-gradient(to right, #475569, #334155);}
.card-header-message {background: linear-gradient(to right, #475569, #334155);} */

.card-icon {
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.card-icon .material-symbols-outlined {
	font-size: 20px;
	color: white;
}
.card-header h2 {
	font-size: 16px;
	font-weight: 600;
	margin: 0;
}
.card-subtitle {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.8);
	margin-top: 2px;
}
.subtitle-icon {font-size: 12px !important;}
.card-content {padding: 16px;}


.badge{
	padding: 6px 10px;
	background: #f0f2ff;
	border-radius: 999px;
	font-size:  12px;

	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.countbadge{
	background: #e0e1fb;
	color: #0a0080;
	border-radius: 1em;
	width: 16px;
	height: 16px;
	line-height: 16px;
	text-align: center;
}
.suspend{
	background:rgba(176,0,32,.08);
	color:#b00020;
}

/* btn -------------------------------------------------- */
.btn {
	width: 100%;
	position: relative;
	overflow: hidden;
	padding: 12px 16px;
	font-size: 14px;
	/*font-weight: 600;*/
	border: none;
	border-radius: 8px;
	background: #eee;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
}
.btn .material-symbols-outlined {font-size: 16px;}
.btn:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
	transform: scale(1.02);
}
.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.btn:disabled:hover {
	transform: scale(1);
	box-shadow: none;
}
.btn::after{
	content: '';
	width: 100%;
	height: 100%;
	display: block;
	position: absolute;
	inset: 0;
	background: white;
	opacity: 0;
	transition: opacity 0.2s;
}
.btn:hover::after {opacity: 0.3;}
.btn-content {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* override -------------------------- */
.checkin {
	background: linear-gradient(to bottom right, #059669, #047857);
	color: white;
}
.checkout {
	background: linear-gradient(to bottom right, #64748b, #475569);
	color: white;
}
.viewall {
	width: 100%;
	background: #f9fafb;
	color: #334155;
	font-weight: 500;
}
.viewall:hover {
	background: #f3f4f6;
	transform: scale(1);
}
.btn-post {
	width: 100%;
	background: #1e293b;
	color: white;
	padding: 12px;
	font-size: 14px;
	font-weight: 500;
}
.btn-post:hover {
	background: #0f172a;
	transform: scale(1);
}

.back{
	background: #f3f4f6;
	color: #6b7280;
}
.edit{
	background: #dbeafe;
	color: #2563eb;
}
.delete{
	background: #fee2e2;
	color: #dc2626;
}
.send{ /* or post_add*/
	background: #dcfce7;
	color: #16a34a;
}
.save{
	background: #d1fae5;
	color: #059669;
}

/* func -------------------------------------------------- */
.func{
	margin-bottom: 10px;
	display: -webkit-flex;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: 8px;
	justify-content: space-between;
}


/* 外部link -------------------------------------------------- */
.ext {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}
.ext .material-symbols-outlined {
	font-size: 14px;
	transition: transform 0.2s;
}
.ext:hover {color: #1d4ed8;}
.ext:hover .material-symbols-outlined {transform: translate(2px, -2px);}

/* ページネーション -------------------------------------------------- */
.pager{
	padding: 0;
	margin: 15px 0;
	display: -webkit-flex;
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	align-items: center;
	gap: 3px;
	list-style: none;
}
.pager li.current span,
.pager li a{
	width: 3em;
	height: 3em;
	/*padding: 5px;*/
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 12px;
	transition: all 0.2s;
}
.pager li.current span{
	color: #fff;
	background: #4c4c4c;
}
.pager li a:hover:not(:disabled) {
	background: #ececec;
	color: #4c4c4c;
}
.pager .material-symbols-outlined {font-size: 16px;}


/* arrow -------------------------------------------------- */
.arR,.arL{
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: 8px;
}
.arR:after{
	content: '';
	width: 6px;
	height: 6px;
	/*margin-top: -3px;*/
	border-width: 1px 1px 0 0 ;
	border-style: solid;
	border-color: #000;
	transform: rotate(45deg);
	display: block;
	/* position: absolute;
	top: 50%;
	right: -12px; */
}
.arL:before{
	content: '';
	width: 6px;
	height: 6px;
	/*margin-top: -3px;*/
	border-width: 1px 0 0 1px;
	border-style: solid;
	border-color: #000;
	transform: rotate(-45deg);
	display: block;
	/* position: absolute;
	top: 50%;
	left: 8px; */
}
.arTriR{position: relative;}
.arTriR:after {
	content:'';
	position: absolute;
	top:50%;
	right:-16px;
	margin:-10px 0 0 0;
	width:0;
	height:0;
	border-style: solid;
	border-width: 8px 0 8px 14px;
	border-color: transparent transparent transparent #000;
}

.cross{
	padding-left: 15px;
	position: relative;
}
.cross:before,
.cross:after{
	width: 9px;
	height: 1px;
	margin-top: -1px;
	background: #fff;
	border-radius: 4px;
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
}
/*.cross:before{  transform: rotate(90deg);}*/
.cross:after{ transform: rotate(-90deg);}

/* select -------------------------------------------------- */
input:disabled{
	background: #eee !important;
	color: #888 !important;
}
input[type="text"],
textarea {
	width:100%;
	padding: 11px 12px;
	border-radius: 8px;
	border:1px solid rgba(0,0,0,.14);
	background:#fff;
	font-size: 16px;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
input[type="text"] {vertical-align: middle;}
textarea {
	height: 14rem;
	padding: 10px;
	resize:vertical;
}
select {
	width: 100%;
	padding: 8px 12px;
	background: white;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
	font-family: inherit;
	color: #1f2937;
}
select:focus {
	outline: none;
	border-color: #475569;
	box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
}

