:root {
	--ojlt-bg: #f5f7fb;
	--ojlt-surface: #ffffff;
	--ojlt-surface-muted: #f8fafc;
	--ojlt-text: #1f2937;
	--ojlt-muted: #667085;
	--ojlt-line: #d8dee9;
	--ojlt-line-strong: #c5cedb;
	--ojlt-accent: #2563eb;
	--ojlt-accent-dark: #1d4ed8;
	--ojlt-accent-soft: #eff6ff;
	--ojlt-danger: #b91c1c;
	--ojlt-success: #047857;
	--ojlt-sidebar: #ffffff;
	--ojlt-sidebar-text: #1f2937;
	--ojlt-sidebar-muted: #667085;
	--ojlt-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
}

body {
	margin: 0;
	background: var(--ojlt-bg);
	color: var(--ojlt-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	line-height: 1.7;
}

a {
	color: var(--ojlt-accent);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
a,
input,
select,
textarea {
	transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.ojlt-site {
	min-height: 100vh;
}

.ojlt-login-screen {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 24px;
}

.ojlt-login-panel {
	width: min(100%, 520px);
	padding: clamp(28px, 5vw, 42px);
	border-radius: 24px;
	background: var(--ojlt-surface);
	box-shadow: var(--ojlt-shadow);
}

.ojlt-login-kicker {
	margin: 0 0 8px;
	color: var(--ojlt-muted);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.ojlt-login-panel h1 {
	margin: 0 0 24px;
	font-size: clamp(2rem, 8vw, 3rem);
	letter-spacing: -0.05em;
}

.ojlt-login-links {
	margin: 12px 0 0;
	font-size: 14px;
}

.ojlt-login-links a {
	font-weight: 700;
}

.ojlt-login-error {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #fef2f2;
	color: var(--ojlt-danger);
	font-weight: 700;
}

.login-username,
.login-password,
.login-remember,
.login-submit {
	margin: 0 0 18px;
}

.login-username label,
.login-password label {
	display: block;
	margin-bottom: 6px;
	color: var(--ojlt-muted);
	font-size: 0.92rem;
	font-weight: 700;
}

.input,
.ojlt-login-panel input[type="text"],
.ojlt-login-panel input[type="password"],
.ojlt-login-panel input[type="email"] {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--ojlt-line-strong);
	border-radius: 12px;
	background: var(--ojlt-surface);
	color: var(--ojlt-text);
	outline: none;
}

.input:focus,
.ojlt-login-panel input[type="text"]:focus,
.ojlt-login-panel input[type="password"]:focus,
.ojlt-login-panel input[type="email"]:focus {
	border-color: var(--ojlt-accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.button,
.olp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.65em 1.05em;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--ojlt-accent);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.button:hover,
.button:focus,
.olp-button:hover,
.olp-button:focus {
	background: var(--ojlt-accent-dark);
	color: #fff;
	text-decoration: none;
}

.olp-button--small {
	min-height: 34px;
	padding: 0.45em 0.9em;
	font-size: 0.92rem;
}

.olp-button--secondary {
	border-color: var(--ojlt-line-strong);
	background: var(--ojlt-surface);
	color: var(--ojlt-text);
}

.olp-button--secondary:hover,
.olp-button--secondary:focus {
	background: var(--ojlt-surface-muted);
	color: var(--ojlt-text);
}

.olp-app {
	min-height: 100vh;
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	background: var(--ojlt-bg);
}

.olp-sidebar {
	position: sticky;
	top: 0;
	min-height: 100vh;
	padding: 28px 20px;
	background: var(--ojlt-sidebar);
	color: var(--ojlt-sidebar-text);
	display: flex;
	flex-direction: column;
	gap: 28px;
	border-right: 1px solid var(--ojlt-line);
}

.olp-brand {
	display: grid;
	gap: 4px;
}

.olp-brand__main {
	font-size: 1.25rem;
	font-weight: 800;
}

.olp-brand__sub {
	color: var(--ojlt-sidebar-muted);
	font-size: 0.82rem;
}

.olp-nav {
	display: grid;
	gap: 4px;
}

.olp-nav__item {
	display: block;
	padding: 10px 12px;
	border-radius: 12px;
	color: var(--ojlt-sidebar-text);
	font-weight: 700;
}

.olp-nav__item:hover,
.olp-nav__item:focus,
.olp-nav__item.is-active {
	background: var(--ojlt-accent-soft);
	color: var(--ojlt-accent-dark);
	text-decoration: none;
}

.olp-sidebar__footer {
	margin-top: auto;
	display: grid;
	gap: 8px;
	color: var(--ojlt-sidebar-muted);
	font-size: 0.92rem;
}

.olp-user {
	color: var(--ojlt-text);
	font-weight: 700;
}

.olp-logout {
	color: var(--ojlt-sidebar-text);
}

.olp-footer-nav {
	display: grid;
	gap: 8px;
	padding-bottom: 8px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--ojlt-line);
}

.olp-footer-nav__item {
	display: block;
	padding: 8px 10px;
	border-radius: 10px;
	color: var(--ojlt-text);
}

.olp-footer-nav__item:hover,
.olp-footer-nav__item:focus,
.olp-footer-nav__item.is-active {
	background: var(--ojlt-accent-soft);
	color: var(--ojlt-accent-dark);
	text-decoration: none;
}

.olp-main {
	width: min(100%, 1180px);
	padding: clamp(24px, 4vw, 48px);
	background: var(--ojlt-bg);
}

.olp-page-header {
	margin-bottom: 32px;
}

.olp-page-header h1 {
	margin: 0;
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 1.15;
	letter-spacing: -0.04em;
}

.olp-page-header p {
	margin: 8px 0 0;
	color: var(--ojlt-muted);
}

.olp-kicker,
.olp-meta {
	margin: 0 0 4px;
	color: var(--ojlt-muted);
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.olp-section {
	margin: 0 0 42px;
}

.olp-section-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 16px;
}

.olp-section h2,
.olp-section-header h2 {
	margin: 0 0 16px;
	font-size: 1.35rem;
}

.olp-section-header h2 {
	margin: 0;
}

.olp-section h3 {
	margin: 0 0 4px;
	font-size: 1.05rem;
}

.olp-form {
	display: grid;
	gap: 18px;
	max-width: 760px;
}

.olp-form-row {
	display: grid;
	gap: 6px;
}

.olp-form-row label,
.olp-label {
	color: var(--ojlt-muted);
	font-weight: 700;
}

.olp-form input[type="text"],
.olp-form input[type="email"],
.olp-form input[type="url"],
.olp-form input[type="password"],
.olp-form input[type="number"],
.olp-form input[type="date"],
.olp-form input[type="datetime-local"],
.olp-form select,
.olp-form textarea {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid var(--ojlt-line-strong);
	border-radius: 12px;
	background: var(--ojlt-surface);
	color: var(--ojlt-text);
	outline: none;
}

.olp-form textarea {
	min-height: 120px;
	resize: vertical;
}

.olp-form input:focus,
.olp-form select:focus,
.olp-form textarea:focus {
	border-color: var(--ojlt-accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.olp-datetime-parts,
.olp-time-parts {
	display: grid;
	gap: 8px;
}

.olp-datetime-parts {
	grid-template-columns: minmax(160px, 1.5fr) minmax(82px, 0.8fr) minmax(82px, 0.8fr);
}

.olp-time-parts {
	grid-template-columns: minmax(82px, 1fr) minmax(82px, 1fr);
	max-width: 220px;
}

.olp-datetime-parts select,
.olp-time-parts select {
	min-width: 0;
}

.olp-form-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}

.olp-form-inline input[type="number"] {
	width: 120px;
	margin-left: 8px;
}

.olp-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ojlt-text);
}

.olp-check-list {
	display: grid;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--ojlt-surface-muted);
}

.olp-check-list label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--ojlt-text);
	font-weight: 400;
}

.olp-help {
	margin: 0;
	color: var(--ojlt-muted);
	font-size: 0.88rem;
}

.olp-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 4px;
}

.olp-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--ojlt-line);
	border-radius: 16px;
	background: var(--ojlt-surface);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.olp-table {
	width: 100%;
	border-collapse: collapse;
}

.olp-table th,
.olp-table td {
	padding: 13px 14px;
	border-bottom: 1px solid var(--ojlt-line);
	text-align: left;
	vertical-align: top;
}

.olp-table tr:last-child td {
	border-bottom: 0;
}

.olp-table th {
	background: var(--ojlt-surface-muted);
	color: var(--ojlt-muted);
	font-size: 0.86rem;
	white-space: nowrap;
}

.olp-list {
	display: grid;
	gap: 14px;
}

.olp-list-item {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 16px;
	border-radius: 16px;
	background: var(--ojlt-surface);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.olp-list-item__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	min-width: 140px;
}

.olp-description {
	color: var(--ojlt-text);
}

.olp-description p {
	margin: 0 0 0.8em;
}

.olp-status {
	margin: 8px 0 0;
	font-weight: 700;
}

.olp-empty {
	color: var(--ojlt-muted);
}

.olp-lesson-view {
	display: grid;
	gap: 22px;
}

.olp-lesson-view__header h2 {
	margin-bottom: 0;
}

.olp-lesson-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0;
	margin: 0;
	border: 1px solid var(--ojlt-line);
	border-radius: 16px;
	background: var(--ojlt-surface);
	overflow: hidden;
}

.olp-lesson-info > div {
	padding: 14px 16px;
	border-right: 1px solid var(--ojlt-line);
}

.olp-lesson-info > div:last-child {
	border-right: 0;
}

.olp-lesson-info dt {
	margin: 0 0 4px;
	color: var(--ojlt-muted);
	font-size: 0.88rem;
	font-weight: 700;
}

.olp-lesson-info dd {
	margin: 0;
	font-weight: 700;
}

.olp-lesson-notes {
	padding: 16px;
	border-radius: 16px;
	background: var(--ojlt-surface-muted);
}

.olp-lesson-notes h3 {
	margin-bottom: 10px;
}

.olp-lesson-viewer {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	background: #000;
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
	overflow: hidden;
}

.olp-lesson-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.olp-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 18px;
	margin-bottom: 42px;
}

.olp-stat {
	padding: 18px;
	border-radius: 18px;
	background: var(--ojlt-surface);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.olp-stat span {
	display: block;
	color: var(--ojlt-muted);
	font-weight: 700;
}

.olp-stat strong {
	display: block;
	font-size: 2.4rem;
	line-height: 1.2;
	letter-spacing: -0.04em;
}

.olp-plain-list {
	padding-left: 1.3em;
}

.olp-definition-list {
	display: grid;
	gap: 0;
	margin: 0;
	max-width: 680px;
	border: 1px solid var(--ojlt-line);
	border-radius: 16px;
	background: var(--ojlt-surface);
	overflow: hidden;
}

.olp-definition-list > div {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: 16px;
	padding: 13px 16px;
	border-bottom: 1px solid var(--ojlt-line);
}

.olp-definition-list > div:last-child {
	border-bottom: 0;
}

.olp-definition-list dt {
	color: var(--ojlt-muted);
	font-weight: 700;
}

.olp-definition-list dd {
	margin: 0;
}

.olp-course-list {
	display: grid;
	gap: 10px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.olp-course-list li {
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--ojlt-surface);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.olp-course-list strong {
	display: block;
}

.olp-course-list span {
	color: var(--ojlt-muted);
}

.olp-notice {
	margin: 0 0 24px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--ojlt-surface);
	font-weight: 700;
}

.olp-notice--success {
	color: var(--ojlt-success);
}

.olp-notice--error {
	color: var(--ojlt-danger);
}



.olp-public-notice,
.olp-public-message {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--ojlt-accent-soft);
	color: var(--ojlt-accent-dark);
	font-weight: 700;
}

.olp-public-notice--error,
.olp-public-message--error {
	background: #fef2f2;
	color: var(--ojlt-danger);
}

.olp-public-register {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--ojlt-line);
}

.olp-public-register h2 {
	margin: 0 0 8px;
	font-size: 1.25rem;
}

.olp-public-register p {
	margin: 0 0 16px;
	color: var(--ojlt-muted);
}

.olp-public-register__form {
	display: grid;
	gap: 14px;
}

.olp-public-form-row {
	display: grid;
	gap: 6px;
}

.olp-public-form-row label {
	color: var(--ojlt-muted);
	font-size: 0.92rem;
	font-weight: 700;
}

.olp-public-form-row input[type="text"],
.olp-public-form-row input[type="email"],
.olp-public-form-row input[type="password"],
.olp-public-form-row select {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--ojlt-line-strong);
	border-radius: 12px;
	background: var(--ojlt-surface);
	color: var(--ojlt-text);
	outline: none;
}

.olp-public-form-row input:focus,
.olp-public-form-row select:focus {
	border-color: var(--ojlt-accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.olp-password-setup-panel .olp-help {
	margin: -4px 0 0;
}

.olp-inline-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.olp-inline-actions form {
	margin: 0;
}

.olp-required-panel {
	margin: 0 0 18px;
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--ojlt-accent-soft);
	color: var(--ojlt-accent-dark);
}

.olp-required-panel h2 {
	margin: 0 0 6px;
}

.olp-required-panel p {
	margin: 0;
}

.olp-birthdate-form {
	margin-top: 20px;
}

.olp-calendar {
	display: grid;
	gap: 16px;
}

.olp-calendar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.olp-calendar__header h2 {
	margin: 0;
}

.olp-calendar__table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border: 1px solid var(--ojlt-line);
	border-radius: 16px;
	background: var(--ojlt-surface);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.olp-calendar__table th,
.olp-calendar__table td {
	width: 14.285%;
	border-right: 1px solid var(--ojlt-line);
	border-bottom: 1px solid var(--ojlt-line);
	vertical-align: top;
}

.olp-calendar__table th:last-child,
.olp-calendar__table td:last-child {
	border-right: 0;
}

.olp-calendar__table tr:last-child td {
	border-bottom: 0;
}

.olp-calendar__table th {
	padding: 10px;
	background: var(--ojlt-surface-muted);
	color: var(--ojlt-muted);
	font-size: 0.86rem;
	text-align: center;
}

.olp-calendar__table td {
	min-height: 118px;
	padding: 10px;
	background: var(--ojlt-surface);
}

.olp-calendar__table td.is-outside {
	background: var(--ojlt-surface-muted);
}

.olp-calendar__table td.is-today {
	box-shadow: inset 0 0 0 2px var(--ojlt-accent);
}

.olp-calendar__day {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	border-radius: 999px;
	font-weight: 800;
}

.olp-calendar__events {
	display: grid;
	gap: 6px;
	padding: 0;
	margin: 8px 0 0;
	list-style: none;
	font-size: 0.86rem;
	line-height: 1.45;
}

.olp-calendar__events a {
	display: block;
	padding: 6px 7px;
	border-radius: 8px;
	background: var(--ojlt-accent-soft);
	color: var(--ojlt-accent-dark);
	font-weight: 700;
}

.olp-calendar__events a:hover,
.olp-calendar__events a:focus {
	text-decoration: none;
	background: #dbeafe;
}


@media (max-width: 860px) {
	.olp-app {
		grid-template-columns: 1fr;
	}

	.olp-sidebar {
		position: static;
		min-height: auto;
		padding: 18px;
		border-right: 0;
		border-bottom: 1px solid var(--ojlt-line);
	}

	.olp-nav {
		display: flex;
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.olp-nav__item {
		white-space: nowrap;
	}

	.olp-sidebar__footer {
		margin-top: 0;
	}

	.olp-main {
		padding: 24px 18px;
	}

	.olp-stat-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.olp-list-item {
		display: grid;
	}

	.olp-list-item__actions {
		justify-content: flex-start;
	}

	.olp-definition-list > div {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.olp-lesson-info {
		grid-template-columns: 1fr;
	}

	.olp-lesson-info > div {
		border-right: 0;
		border-bottom: 1px solid var(--ojlt-line);
	}

	.olp-lesson-info > div:last-child {
		border-bottom: 0;
	}

	.olp-calendar__header {
		align-items: stretch;
	}

	.olp-calendar__table {
		font-size: 0.88rem;
	}

	.olp-calendar__table th,
	.olp-calendar__table td {
		padding: 7px;
	}

	.olp-calendar__table td {
		min-height: 86px;
	}

	.olp-calendar__events {
		font-size: 0.78rem;
	}
}


.olp-form-row--split {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.olp-link-button {
	display: inline;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ojlt-accent);
	font: inherit;
	cursor: pointer;
}

.olp-link-button:hover,
.olp-link-button:focus {
	text-decoration: underline;
}

.olp-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.olp-modal:target,
.olp-modal.is-open {
	display: flex;
}

.olp-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.48);
}

.olp-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 720px);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: clamp(22px, 4vw, 32px);
	border-radius: 22px;
	background: var(--ojlt-surface);
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.olp-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 22px;
}

.olp-modal__header h2 {
	margin: 0;
}

.olp-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--ojlt-surface-muted);
	color: var(--ojlt-text);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
}

.olp-modal__close:hover,
.olp-modal__close:focus {
	text-decoration: none;
	background: var(--ojlt-line);
}

.olp-preview-bar {
	margin: 0 0 22px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--ojlt-accent-soft);
	color: var(--ojlt-accent-dark);
	font-weight: 800;
}

@media (max-width: 640px) {
	.olp-form-row--split {
		grid-template-columns: 1fr;
	}

	.olp-modal {
		padding: 14px;
	}

	.olp-modal__dialog {
		max-height: calc(100vh - 28px);
	}
}


.olp-password-change-form {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--ojlt-line);
}


.olp-filter-form--inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.olp-filter-form--inline label {
	margin: 0;
	font-weight: 700;
	color: var(--ojlt-muted);
}

.olp-filter-form--inline select {
	min-width: 150px;
}

.olp-student-detail-header {
	margin-bottom: 24px;
}

.olp-student-detail-header h2 {
	margin-top: 2px;
}

.olp-course-add-form {
	max-width: 720px;
}

.olp-table td form {
	margin: 0;
}

.olp-table .olp-button--small {
	white-space: nowrap;
}

@media (max-width: 720px) {
	.olp-filter-form--inline {
		align-items: stretch;
	}

	.olp-filter-form--inline select,
	.olp-filter-form--inline button {
		width: 100%;
	}
}


.olp-course-detail-header {
	margin-bottom: 22px;
}

.olp-course-detail-header .olp-section-header {
	align-items: flex-start;
}

.olp-status-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 96px;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--ojlt-accent-soft);
	color: var(--ojlt-accent-dark);
	font-size: 0.88rem;
	font-weight: 800;
	white-space: nowrap;
}

.olp-collapsible-panel {
	margin: 18px 0 24px;
	padding: 18px;
	border: 1px solid var(--ojlt-line);
	border-radius: 18px;
	background: var(--ojlt-surface-muted);
}

.olp-collapsible-panel h3,
.olp-bulk-box h3 {
	margin-top: 0;
}

.olp-bulk-box {
	margin: 24px 0;
	padding: 18px;
	border-radius: 18px;
	background: var(--ojlt-surface-muted);
}

.olp-bulk-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 14px;
}

.olp-bulk-grid label {
	display: block;
	margin: 0 0 6px;
	font-weight: 800;
	color: var(--ojlt-text);
}

.olp-bulk-grid input,
.olp-bulk-grid select {
	width: 100%;
}

@media (max-width: 900px) {
	.olp-bulk-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.olp-course-detail-header .olp-section-header {
		display: grid;
	}

	.olp-bulk-grid {
		grid-template-columns: 1fr;
	}
}


.olp-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
	border-bottom: 1px solid var(--ojlt-line);
}

.olp-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border: 1px solid var(--ojlt-line);
	border-bottom: 0;
	border-radius: 14px 14px 0 0;
	background: var(--ojlt-surface-muted);
	color: var(--ojlt-muted);
	font-weight: 800;
	text-decoration: none;
}

.olp-tab:hover,
.olp-tab:focus {
	text-decoration: none;
	background: var(--ojlt-accent-soft);
	color: var(--ojlt-accent-dark);
}

.olp-tab.is-active {
	position: relative;
	margin-bottom: -1px;
	background: var(--ojlt-surface);
	color: var(--ojlt-accent-dark);
	border-color: var(--ojlt-line-strong);
}

.olp-tab-panel {
	margin-top: 0;
}

.olp-primary-action-row {
	display: flex;
	justify-content: flex-start;
	margin: 18px 0 20px;
}

.olp-button--main {
	font-size: 1rem;
	padding: 11px 18px;
}

@media (max-width: 640px) {
	.olp-tabs {
		display: grid;
		border-bottom: 0;
	}

	.olp-tab,
	.olp-tab.is-active {
		margin-bottom: 0;
		border: 1px solid var(--ojlt-line);
		border-radius: 14px;
	}
}


/* v1.8.1: 講座一覧フィルターと操作ボタン調整 */
.olp-section-header--course-list {
	align-items: flex-end;
}

.olp-course-filter-form {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: 10px;
	max-width: none;
	width: auto;
}

.olp-course-filter-form label {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	margin: 0;
}

.olp-course-filter-form select {
	width: auto;
	min-width: 150px;
}

.olp-course-filter-form .olp-button,
.olp-course-filter-form button {
	width: auto;
	min-width: 82px;
	flex: 0 0 auto;
	padding-left: 16px;
	padding-right: 16px;
}

.olp-row-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.olp-row-actions form {
	margin: 0;
}

.olp-row-actions .olp-button {
	white-space: nowrap;
}

@media (max-width: 720px) {
	.olp-section-header--course-list {
		align-items: stretch;
	}

	.olp-course-filter-form {
		flex-wrap: wrap;
		width: 100%;
	}

	.olp-course-filter-form select,
	.olp-course-filter-form .olp-button,
	.olp-course-filter-form button {
		width: auto;
	}
}

@media (max-width: 520px) {
	.olp-course-filter-form label,
	.olp-course-filter-form select,
	.olp-course-filter-form .olp-button,
	.olp-course-filter-form button {
		width: 100%;
	}
}


/* v1.8.2: 講座一覧フィルターを必ず横並びにする */
.olp-section-header--course-list {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.olp-section-header--course-list .olp-course-filter-form {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-start;
	gap: 10px;
	width: auto !important;
	max-width: none !important;
	margin: 0;
}

.olp-section-header--course-list .olp-course-filter-form label {
	display: inline-flex !important;
	align-items: center;
	flex: 0 0 auto;
	width: auto !important;
	min-height: 40px;
	margin: 0;
	white-space: nowrap;
}

.olp-section-header--course-list .olp-course-filter-form select {
	flex: 0 0 150px;
	width: 150px !important;
	min-width: 150px;
	max-width: 150px;
}

.olp-section-header--course-list .olp-course-filter-form .olp-button,
.olp-section-header--course-list .olp-course-filter-form button {
	display: inline-flex;
	flex: 0 0 auto;
	width: auto !important;
	min-width: 68px !important;
	max-width: 80px;
	padding-left: 16px;
	padding-right: 16px;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.olp-section-header--course-list {
		align-items: stretch;
	}

	.olp-section-header--course-list .olp-course-filter-form {
		overflow-x: auto;
		max-width: 100% !important;
	}
}

@media (max-width: 560px) {
	.olp-datetime-parts,
	.olp-time-parts {
		grid-template-columns: 1fr;
		max-width: none;
	}
}


/* v1.10.0 授業視聴画面・質問対応・学年表示調整 */
.olp-lesson-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
}

.olp-lesson-main {
	min-width: 0;
}

.olp-lesson-side {
	display: grid;
	gap: 18px;
}

.olp-lesson-side-card {
	padding: 18px;
	border: 1px solid var(--ojlt-line);
	border-radius: 18px;
	background: var(--ojlt-surface);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.olp-lesson-side-card h3,
.olp-lesson-side-card h4 {
	margin-bottom: 10px;
}

.olp-lesson-side .olp-lesson-info {
	display: grid;
	grid-template-columns: 1fr;
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: visible;
}

.olp-lesson-side .olp-lesson-info > div {
	padding: 10px 0;
	border-right: 0;
	border-bottom: 1px solid var(--ojlt-line);
}

.olp-lesson-side .olp-lesson-info > div:first-child {
	padding-top: 0;
}

.olp-lesson-side .olp-lesson-info > div:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.olp-lesson-viewer {
	max-width: 980px;
	margin: 0;
}

.olp-question-submit-form .olp-form-row,
.olp-question-reply-form .olp-form-row {
	margin-bottom: 12px;
}

.olp-question-submit-form textarea,
.olp-question-reply-form textarea {
	min-height: 120px;
}

.olp-student-question-history {
	display: grid;
	gap: 12px;
	margin-top: 18px;
}

.olp-student-question,
.olp-question-card {
	padding: 16px;
	border: 1px solid var(--ojlt-line);
	border-radius: 16px;
	background: var(--ojlt-surface-muted);
}

.olp-student-question__reply,
.olp-question-card__reply {
	margin-top: 12px;
	padding: 12px;
	border-radius: 14px;
	background: var(--ojlt-surface);
}

.olp-question-list {
	display: grid;
	gap: 18px;
}

.olp-question-card {
	background: var(--ojlt-surface);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.olp-question-card__header {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 16px;
}

.olp-question-card__header h3 {
	margin-bottom: 6px;
}

.olp-question-card__meta.olp-definition-list {
	max-width: none;
	margin-bottom: 16px;
}

.olp-question-card__body {
	margin-bottom: 16px;
}

.olp-question-text {
	line-height: 1.8;
	overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
	.olp-lesson-layout {
		grid-template-columns: 1fr;
	}

	.olp-lesson-viewer {
		max-width: 100%;
	}

	.olp-lesson-side {
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	}
}

@media (max-width: 720px) {
	.olp-question-card__header {
		display: grid;
	}

	.olp-lesson-side {
		grid-template-columns: 1fr;
	}
}


/* 1.11.0: 保護者ログイン切替・オンライン校拡張 */
.ojlt-login-switch {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0 0 18px;
	padding: 6px;
	border-radius: 999px;
	background: var(--ojlt-surface-muted);
}

.ojlt-login-switch__button {
	min-height: 42px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ojlt-muted);
	font-weight: 800;
	cursor: pointer;
}

.ojlt-login-switch__button.is-active {
	background: var(--ojlt-accent);
	color: #fff;
}

.ojlt-login-panel-section[hidden] {
	display: none;
}

.olp-check-list--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
}

.olp-level-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(46px, 1fr));
	gap: 4px;
	max-width: 440px;
	padding: 8px;
	border: 1px solid var(--ojlt-line);
	border-radius: 12px;
	background: var(--ojlt-surface);
}

.olp-level-grid label {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border: 1px solid var(--ojlt-line);
	border-radius: 8px;
	background: var(--ojlt-surface-muted);
	font-weight: 800;
}

.olp-card-element {
	min-height: 48px;
	padding: 12px;
	border: 1px solid var(--ojlt-line-strong);
	border-radius: 12px;
	background: var(--ojlt-surface);
}

.olp-invoice-items {
	margin: 0;
	padding-left: 1.2em;
}

.olp-preview-bar {
	margin: 0 0 18px;
	padding: 10px 14px;
	border-radius: 12px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	font-weight: 800;
}

@media (max-width: 720px) {
	.ojlt-login-switch {
		grid-template-columns: 1fr;
		border-radius: 18px;
	}

	.olp-level-grid {
		grid-template-columns: repeat(3, minmax(46px, 1fr));
	}
}


/* v1.11.1: 共通ログイン、保護者登録オーバーレイ、料金設定・授業カレンダー調整 */
.ojlt-login-lead {
	margin: -10px 0 22px;
	color: var(--ojlt-muted);
	font-size: 0.95rem;
}

.ojlt-login-footer-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
}

.ojlt-login-footer-actions > a:first-child {
	font-weight: 700;
}

.ojlt-register-modal .olp-public-register > h2 {
	display: none;
}

.ojlt-register-modal__dialog {
	width: min(100%, 680px);
}

.olp-section--wide {
	width: 100%;
}

.olp-billing-settings-form {
	max-width: none;
	gap: 22px;
}

.olp-settings-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	gap: 18px;
}

.olp-settings-card {
	display: grid;
	gap: 14px;
	padding: 20px;
	border: 1px solid var(--ojlt-line);
	border-radius: 18px;
	background: var(--ojlt-surface);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.olp-settings-card h3,
.olp-pricing-header h3 {
	margin: 0;
}

.olp-checkbox--card {
	align-items: flex-start;
	padding: 12px;
	border-radius: 14px;
	background: var(--ojlt-surface-muted);
}

.olp-checkbox--card span {
	display: grid;
	gap: 4px;
}

.olp-checkbox--card small {
	color: var(--ojlt-muted);
	font-weight: 400;
}

.olp-pricing-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

.olp-pricing-table-wrap {
	width: 100%;
}

.olp-pricing-table {
	min-width: 1120px;
	table-layout: fixed;
}

.olp-pricing-table th,
.olp-pricing-table td {
	padding: 10px 8px;
	text-align: center;
	vertical-align: middle;
}

.olp-pricing-table__grade {
	width: 86px;
	text-align: left !important;
	font-weight: 800;
}

.olp-pricing-table__enabled {
	width: 58px;
}

.olp-price-input {
	width: 100%;
	min-width: 82px;
	text-align: right;
}

.olp-price-input--wide {
	min-width: 110px;
}

.olp-calendar__header h3 {
	margin: 0;
	font-size: 1.2rem;
}

.olp-manager-calendar {
	margin: 0 0 28px;
}

.olp-manager-calendar__table td {
	height: 132px;
}

.olp-manager-calendar__events a {
	display: grid;
	gap: 2px;
}

.olp-manager-calendar__event--cancelled {
	background: #fff7ed !important;
	color: #9a3412 !important;
}

.olp-manager-calendar__event--makeup {
	background: #f0fdf4 !important;
	color: #166534 !important;
}

.olp-manager-calendar__event.is-inactive {
	opacity: 0.62;
}

.olp-manager-calendar__event-time,
.olp-manager-calendar__event-title,
.olp-manager-calendar__event-meta {
	display: block;
}

.olp-manager-calendar__event-time {
	font-weight: 800;
}

.olp-manager-calendar__event-title {
	word-break: break-word;
}

.olp-manager-calendar__event-meta {
	color: inherit;
	font-size: 0.78rem;
	opacity: 0.78;
}

@media (max-width: 900px) {
	.olp-settings-grid {
		grid-template-columns: 1fr;
	}

	.ojlt-login-footer-actions {
		display: grid;
		justify-items: start;
	}
}


/* v1.11.2: 独自ログインPOST・独自パスワードリセット */
.ojlt-login-form {
	display: grid;
	gap: 0;
}

.olp-password-reset-panel .olp-public-message {
	font-weight: 600;
}

.olp-auth-back {
	margin: 18px 0 0;
	font-weight: 700;
}

.olp-hidden-form {
	display: none;
}


/* v1.11.4: スマホ表示時の枠はみ出し抑制 */
@media (max-width: 860px) {
	.olp-app {
		display: block;
		width: 100%;
		overflow-x: hidden;
	}

	.olp-main {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		padding: 18px 12px;
	}

	.olp-section,
	.olp-form,
	.olp-list-item,
	.olp-settings-card,
	.olp-manager-edit-block,
	.olp-modal__dialog {
		min-width: 0;
		max-width: 100%;
	}

	.olp-table-wrap,
	.olp-schedule-matrix-wrap,
	.olp-pricing-table-wrap,
	.olp-parent-courses-wrap,
	.olp-parent-students-wrap {
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.olp-table {
		max-width: none;
	}

	.olp-table th,
	.olp-table td {
		overflow-wrap: anywhere;
	}

	.olp-calendar {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.olp-calendar__table,
	.olp-manager-calendar__table {
		min-width: 720px;
		max-width: none;
	}

	.olp-section-header,
	.olp-actions,
	.olp-row-actions,
	.olp-table-actions {
		align-items: stretch;
	}

	.olp-actions .olp-button,
	.olp-row-actions .olp-button,
	.olp-table-actions .olp-button,
	.olp-table-actions button {
		max-width: 100%;
		white-space: normal;
	}
}

@media (max-width: 640px) {
	.olp-main {
		padding: 14px 10px;
	}

	.olp-section {
		margin-bottom: 24px;
	}

	.olp-form-row--split,
	.olp-form-row--three,
	.olp-settings-grid,
	.olp-student-basic-grid,
	.olp-parent-profile-summary,
	.olp-manager-parent-info-grid,
	.olp-parent-profile-form-grid {
		grid-template-columns: 1fr !important;
	}

	.olp-form input,
	.olp-form select,
	.olp-form textarea,
	.olp-course-info-form input,
	.olp-course-info-form select,
	.olp-course-info-form textarea {
		width: 100%;
		min-width: 0;
	}

	.olp-calendar__header {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.olp-calendar__header h2,
	.olp-calendar__header h3 {
		grid-column: 1 / -1;
		order: -1;
		text-align: center;
	}

	.ojlt-login-screen {
		padding: 14px;
	}

	.ojlt-login-panel {
		border-radius: 18px;
	}
}
