@charset "UTF-8";

/* ===========================================
   共通スタイル
=========================================== */
/* ボタンスタイル */
.btn-outline-secondary.custom-border {
	border-color: #dee2e6 !important;
}

.w-btn-sm-wide {
	width: 100%;
}

@media (min-width: 768px) {
	.w-btn-sm-wide {
		width: 18rem;
	}
}

/* ===========================================
   FullCalendar スタイル
=========================================== */
/* 基本レイアウト */
.fc-day-header,
.fc-other-month,
.fc .fc-col-header-cell,
.fc .fc-daygrid-day.fc-day-other {
	background-color: #f8f9fa;
}

.fc .fc-col-header-cell {
	font-weight: 700;
}

.fc-toolbar.fc-header-toolbar {
	align-items: center;
}

.fc .fc-daygrid-day {
	cursor: pointer;
}

.fc .fc-col-header-cell-cushion {
	text-align: center;
}

/* リンクスタイル */
.fc a {
	color: #333;
	text-decoration: none;
}

.fc a:hover {
	color: #000;
	text-decoration: underline;
}

/* ボタンスタイル */
.fc .fc-button {
	background-color: #fff;
	border: 1px solid #dee2e6;
	color: #6c757d;
	padding: 0.375rem 0.75rem;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.fc .fc-button:focus {
	outline: none !important;
	box-shadow: none !important;
}

.fc .fc-button:hover {
	background-color: #e9ecef;
	color: #495057;
	border-color: #ced4da;
}

.fc .fc-button.fc-button-active {
	background-color: #e2e6ea !important;
	color: #212529 !important;
	border-color: #adb5bd !important;
}

.fc .fc-button:disabled {
	background-color: #f8f9fa;
	color: #adb5bd;
	border-color: #dee2e6;
	cursor: not-allowed;
	opacity: 0.65;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
	.fc-toolbar-chunk {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		gap: 0.5rem;
	}

	.fc .fc-col-header-cell-cushion {
		display: block !important;
		font-size: 0.96em;
	}

	.fc .fc-toolbar-title {
		font-size: 1.2em;
	}
}

/* ===========================================
   テーブル スタイル
=========================================== */
/* 横方向ボーダー */
.table-bordered-x td+td,
.table-bordered-x th+th {
	border-right: 1px solid #dee2e6;
}

/* 最終行ボーダー制御 */
tbody tr.border-bottom:last-child {
	border-bottom: none !important;
}

tbody>tr:last-child>.sticky-col::before {
	border-bottom: none;
}

/* 固定列スタイル */
.sticky-col {
	position: sticky;
	top: 0;
	left: 0;
	z-index: 0;
	background-color: #fff;
}

.sticky-col::before {
	content: "";
	position: absolute;
	inset: 0;
	border-right: 1px solid #dee2e6;
	border-bottom: 1px solid #dee2e6;
	z-index: -1;
}

/* ===========================================
   お知らせ スタイル
=========================================== */
.notice-content {
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	line-height: 1.5;
	cursor: pointer;
}

@media (min-width: 768px) {
	.notice-content {
		-webkit-line-clamp: 4;
		line-clamp: 4;
		max-height: 6em;
	}
}

@media (max-width: 767px) {
	.notice-content {
		-webkit-line-clamp: 2;
		line-clamp: 2;
		max-height: 3em;
	}
}

/* ===========================================
   お客様情報 スタイル
=========================================== */
.button-wrapper {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 60px;
}

.button-wrapper .home-btn {
	position: absolute;
	left: 0;
}

@media (max-width: 576px) {
	.button-wrapper {
		flex-direction: column;
		align-items: stretch;
	}

	.button-wrapper .home-btn {
		position: static;
		width: 100%;
		margin-bottom: 10px;
	}

	.button-wrapper .center-buttons {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
	}
}


.form-switch .form-check-input {
	transform: scale(1.2);
}

.profile-photo {
	width: 120px;
	height: 120px;
	background-image: url('../img/dummy-profile-photo.png');
	background-size: cover;
	background-position: center;
	border: 1px solid #ddd;
	border-radius: 50%;
	margin-bottom: 8px;
}


/* ===========================================
   受講一覧・予約 スタイル
=========================================== */
@media (min-width: 768px) {
	.d-md-table-header-group {
		display: table-header-group !important;
	}
}

@media (max-width: 768px) {
	.w-sm-100 {
		width: 100% !important;
	}
}

.tr-unavailable>* {
	--bs-table-bg: #f8f9fa !important;
}

/* ===========================================
   スッタフログイン時の スタイル
=========================================== */
body.is-staff .before-magenta-glow::before {
    background-image: linear-gradient(
      to right,
      rgba(0, 102, 70, 0.9),
      rgba(10, 194, 135, 0.9)
    );
}

body.is-staff .bg-magenta-glow {
    background-image: linear-gradient(
      to right,
      rgba(0, 102, 70, 0.9),
      rgba(10, 194, 135, 0.9)
    );
}

body.is-staff .border-magenta {
    border-color: rgba(0, 132, 90, 0.9) !important;
}

body.is-staff .sub-header {
    background-color: #00845a;
}


body.is-staff .nav-custom>.nav-item .active {
    background-image: linear-gradient(
      to right,
      rgba(0, 102, 70, 0.9),
      rgba(10, 194, 135, 0.9)
    );
}

body.is-staff .nav-custom>.nav-item .nav-link {
    border-top: 1px solid rgba(0, 102, 70, 0.9);
    border-bottom: rgba(0, 102, 70, 0.9);
}

body.is-staff .nav-custom>.nav-item .nav-link:hover{
    background-color:rgba(0, 102, 70, 1);
    border-color:rgba(0, 102, 70, 0.9)
}

/* ===========================================
   顔写真のスタイル書き換え
=========================================== */
.upload-label {
    width: 120px;
    height: 120px;
    background-size: cover;
    background-position: center;
    border: 1px solid #ddd;
    border-radius: 50%;
    margin-bottom: 8px;
}

/* ===========================================
   受講カレンダー対応
=========================================== */
.fc-direction-ltr .fc-daygrid-event .fc-event-time {
    overflow: visible;
}

/* ===========================================
   お知らせスタイルの書き換え
=========================================== */
.notice-content * {
    max-width: 100%;
}

@media (min-width: 768px) {
    .is-pc-only {
        display: revert;
    }
    .is-sp-only {
        display: none;
    }
    .notice-content {
        -webkit-line-clamp: unset;
        line-clamp: unset;
        max-height: none;
        overflow: visible;
        display: block;
        -webkit-box-orient: initial;
        cursor: default;
    }
}

@media (max-width: 767px) {
    .is-pc-only {
        display: none;
    }
    .is-sp-only {
        display: revert;
    }
    .notice-content {
        -webkit-line-clamp: unset;
        line-clamp: unset;
        max-height: none;
        overflow: visible;
        display: block;
        -webkit-box-orient: initial;
        cursor: default;
    }
}

.answer-active,
.answer-active:hover {
    background-color: #53BF49;
    border-color: #409C39;
}

.answer-active:hover {
    background-color: #409C39
}

.answer-disabled,
.answer-disabled:hover {
    background-color: #CDCFCF;
    border-color: #CDCFCF;
    pointer-events: none;
}


/* ===========================================
   ダイアログ対応
=========================================== */
.modal .modal-dialog {
    width: auto !important;
}
.modal-body {
    max-height: 50vh;
    overflow: auto;
}

/* ===========================================
   公開講座対応
=========================================== */
.md-public-class {
    width: 100%;
    overflow: auto;
}

.md-public-class div.reserve {
    margin-left: 0;
    margin-bottom: 0;
    width: auto;
}

.md-public-class .ui-table-footer {
    display: none;
}

.md-public-class .columns .ui-table {
    border-collapse: separate;
    border-spacing: 0;
    border-bottom: solid 1px rgb(204, 204, 204) !important;
}

.md-public-class .columns .ui-table thead tr th {
    border-bottom-width: 2px !important;
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
    --bs-bg-opacity: 1;
    border-color: inherit;
}

.md-public-class .columns .ui-table tbody tr td {
     border-color: inherit;
     background: #FFFFFF;
}

.md-public-class .columns .ui-table tbody tr.ui-table-rows-even {
    background: inherit;
}


.md-public-class .columns .ui-table tbody tr.ui-table-rows-even td {
    background: rgb(241, 244, 248);
}

.md-public-class .bg-yellow-green {
    background: #cde8a5 !important;;
}

.md-public-class .bg-gray-out {
    background: #F0F0F0 !important;
}

.md-public-class .text-color-blue {
    color: #1E3A8A;
    font-weight: inherit;
}

/* 1列目を固定 */
.md-public-class table tr th:first-child,
.md-public-class table tr td:first-child {
    position: sticky;
    left: 0;
    z-index: 2000;
    /* 右端に1pxの線を擬似的に描く */
    box-shadow: 1px 0 0 0 rgb(204, 204, 204);
}

/* ヘッダーはさらに上に固定したい場合 */
.md-public-class table thead th {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ===========================================
   カルテ画面
=========================================== */
.karute-table {
    width: 100%;
    max-width: 500px;
    margin-left: 50%;
    transform: translateX(-50%);
    border-bottom: solid 1px rgb(204, 204, 204) !important;
}

.columns .ui-table.karute-table thead tr {
    background: rgb(248, 248, 255);
}

.select-time-item {
    padding: 0.5em;
}

.select-time-item select {
    height: 2em;
}

.ui-dialog .ui-dialog-title {
    max-width: 85vw !important;
}