@charset "UTF-8";
/* =========================================
	変数定義
========================================= */
:root {
	/* カラーパレット */
	--color-main: #5F869E;
	--color-main-shadow: #405B6B;
	--color-main-hover: #6E9CB8;
	--color-black: #434343;
	--color-grey-1: #757575;
	--color-grey-hover: #8F8F8F;
	--color-light-grey: #CFCFCF;
	--color-green: #799C30;
	--color-green-shadow: #516920;
	--color-green-hover: #A0CF40;
	--color-orange: #D98027;
	--color-orange-shadow: #A6621E;
	--color-orange-hover: #F28F2C;
	--color-white: #FFFFFF;
	--color-red: #B40000;
	--color-red-shadow: #820000;
	--color-red-hover: #CF0000;

	/* 背景色 */
	--color-page-bg: var(--color-main);
	--color-list-hover-bg: #F2E6DA;
	--color-main-content-bg: #FCFAF7;
	--color-modal-overlay: rgba(0, 0, 0, 0.5);

	/* レイアウト */
	--radius-round: 999px;
	--radius-md: 16px;
	--radius-lg: 25px;
}

/* =========================================
   リセット & 基本スタイル
   ========================================= */
*, *::after, *::before {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	position: relative;
	line-height: 1.5;
}

html, body {
	height: 100%;
	font-family: "Noto Sans", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	font-size: 16px;
	color: var(--color-black);
	background: var(--color-main);
	overflow-y: hidden;
	overflow-x: hidden;
}

.app-container {
	display: flex;
}

/* 要素リセット */
h1, h2, h3, h4, h5, h6 { font-weight: bold; }
h2:not(:first-child) { margin-top: 40px; }
h2 { margin-bottom: 8px; }
h2:has(.required) {
	display: flex;
	align-items: center;
}
h3 { margin-bottom: 16px; }
ul { list-style: none; }
ol { list-style-type: none; }
a { text-decoration: none; color: var(--color-black); }
img { width: 100%; vertical-align: bottom; }

button, select, input, textarea {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	border: none;
	outline: none;
	background: transparent;
}
button { cursor: pointer; padding: 0; }

/* ユーティリティクラス */
.text-bold { font-weight: bold; }
.text-center { text-align: center; }
.text-nowrap { white-space: nowrap; }
.text-orange { color: var(--color-orange); }
.text-blue { color: var(--color-main); }
.text-red { color: var(--color-red); }
.text-grey { color: var(--color-grey-1); }
.text-min { font-size: 10px; }
.text-mid { font-size: 12px; }
.page-title {
	font-size: 40px;
	margin-bottom: 32px;
	flex-shrink: 0;
}
.menu-title {
	font-size: 24px;
	font-weight: bold;
}

.input-file-hidden {
    display: none;
}

.width-fc {
	width: fit-content;
}

/* =========================================
	ログイン
========================================= */
.login-card {
	background-color: var(--color-white);
	padding: 24px;
	width: auto;
	height: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.login-header {
	width: 300px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-bottom: 2px solid var(--color-main); /* 画像の下線の色 */
	padding-bottom: 12px;
	margin-bottom: 24px;
	color: var(--color-main);
	font-size: 24px;
	font-weight: bold;
	gap: 14px;
}
.login-header .login-logo { height: 40px; width: auto; }
.btn-login {
	margin-top: 8px;
}

/* =========================================
   共通レイアウト設定 (Flexbox & Scroll)
   ========================================= */
/* 縦並びフレックス */
.display-flex-column {
	display: flex;
	flex-direction: column;
}

/* 横並びフレックス (中央揃え) */
.display-flex {
	display: flex;
	align-items: center;
}

/* 完全中央揃え (アイコン、ボタン中身など) */
.display-flex-center {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* 両端揃え */
.jc-sb {
	justify-content: space-between;
}

/* 横並びの時に上のラインで揃える */
.ai-fs {
	align-items: flex-start;
}

/* gap16px（上記3つのいずれかと一緒に使用） */
.gap48 { gap: 48px; }
.gap32 { gap: 32px; }
.gap16 { gap: 16px; }
.gap8 { gap: 8px; }

.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt32 { margin-top: 32px; }
.mt48 { margin-top: 48px; }
.pb8 { padding-bottom: 8px; }
.ml48 { margin-left: 48px; }

/* オーバーフロー制御 (要素非表示) */
.overflow-hidden {
	overflow: hidden;
}

/* サイドバー固定 */
.sidebar {
	flex-shrink: 0;
	padding: 16px;
	max-height: 100vh;
}

/* メインエリア拡張 */
.main-container,
.main-content,
.list-container,
.menu {
	flex-grow: 1;
}

/* --- スクロールバー共通設定 --- */
.sidebar .menu,
.scroll-area,
.modal-body {
	overflow-y: auto;
	overflow-x: hidden;
	min-height: 0;
	padding-right: 16px; /* スクロールバーとの余白 */
}

.scroll-area-x {
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-gutter: stable;
	padding-bottom: 16px;
}
.scroll-area-x::-webkit-scrollbar {
	display: none;
}

.horizontal-bar {
  overflow-x: auto;
  overflow-y: hidden;
  height: 16px;
  padding-top: 32px;
}

.horizontal-bar-inner {
  height: 1px;
}

/* 左側に余白を持たせないスクロール (コンテンツ用) */
.sidebar .menu,
.scroll-area,
.modal-body,
.horizontal-bar {
	scrollbar-gutter: stable;
}

/* スクロールバーのデザイン */
.sidebar .menu::-webkit-scrollbar,
.scroll-area::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
	width: 16px;
	height: calc(100% - 16px);
}

.horizontal-bar::-webkit-scrollbar {
	width: calc(100% - 16px);
	height: 16px;
}

.sidebar .menu::-webkit-scrollbar-track,
.scroll-area::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.horizontal-bar::-webkit-scrollbar-track {
	background: transparent;
	border-top: 0;
	border-bottom: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	background-clip: padding-box;
	box-shadow: inset 0 0 0 1px var(--color-light-grey);
	border-radius: 8px;
}

.horizontal-bar::-webkit-scrollbar-track {
	border-left: 0;
	border-right: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
}

.scroll-area::-webkit-scrollbar-track {
	margin-left: 16px;
}
.horizontal-bar::-webkit-scrollbar-track {
	margin-top: 16px;
}

.sidebar .menu::-webkit-scrollbar-thumb,
.scroll-area::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.horizontal-bar::-webkit-scrollbar-thumb {
	border-radius: 8px;
	background-color: var(--color-light-grey);
	border-top: 0;
	border-bottom: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	background-clip: padding-box;
	transition: 2s ease;
}

.horizontal-bar::-webkit-scrollbar-thumb {
	border-left: 0;
	border-right: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
}


.sidebar .menu::-webkit-scrollbar-thumb:hover {
	background-color: var(--color-white);
	border: none;
	background-clip: border-box;
}
.scroll-area::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
.horizontal-bar::-webkit-scrollbar-thumb:hover {
	background-color: var(--color-main);
	border: none;
	background-clip: border-box;
	border-radius: 10px;
	transition: 2s ease;
}


/* =========================================
	コンポーネント: フォーム
========================================= */
/* 入力欄・プルダウン共通 */
input:not([type="checkbox"]):not([type="range"]):not([type="radio"]),
textarea,
select {
	min-width: 230px;
	padding: 4px 16px;
	height: 40px;
	background-color: var(--color-white);
	border: 1px solid var(--color-black);
	border-radius: var(--radius-round);
	font-weight: bold;
	transition: border-color 0.1s, border-bottom-width 0.1s;
	margin-bottom: 2px;
}

textarea {
	width: 100%;
	border-radius: 16px;
	min-height: 80px;
	height: auto;
	resize: none;
	padding: 12px 16px;
}

/* 必須バッチ */
span.required {
	background: var(--color-red);
	color: var(--color-white);
	padding: 2px 4px;
	margin-left: 8px;
	font-size: 10px;
}

/* プルダウン固有 */
/* プルダウン optionの角丸 (ブラウザ依存) */
select option { border-radius: 16px; }

.modal-body input:not([type="checkbox"]):not([type="range"]):not([type="radio"]):not(.half-input):not(.min-input-area),
.modal-body select,
.modal-body textarea {
    flex-grow: 1;
	padding: 4px 16px;
	min-height: 40px;
}
input:read-only {
	color: var(--color-grey-hover);
	background-color: #F9F9F9;
}
.min-input-area {
	width: 210px;
	min-width: 210px;
}

.custom-select-wrapper.inline-select select {
	min-width: 200px;
}

select {
	appearance: none;
	border-bottom-width: 3px;
	cursor: pointer;
	padding-right: 40px;
}
select:focus {
	border-bottom-width: 2px;
}

.modal-body select {
	border-bottom-width: 4px;
}
.modal-body select:focus {
	border-bottom-width: 2px;
}

/* フォーカス時の共通スタイル */
input:not([type="checkbox"]):not([type="range"]):not([type="radio"]):focus,
textarea:focus,
.modal-body input:not([type="checkbox"]):focus,
.modal-body textarea:focus {
	border-color: var(--color-black);
	outline: 2px solid var(--color-orange);
}
select:focus {
	border-color: var(--color-black);
	outline: none; /* プルダウンはoutlineなし */
}

/* 読み取り専用 */
input:read-only {
	color: var(--color-grey-hover);
}

/* 矢印アイコン (CSS描画) */
.custom-select-arrow,
.accordion-arrow,
.transfer-accordion-arrow {
	position: absolute;
	top: 50%;
	right: 16px;
	width: 16px;
	height: 16px;
	transform: translateY(-50%) scaleY(1);
	pointer-events: none;
	transition: all 0.3s ease;
	z-index: 1;
	line-height: 0;
	will-change: transform;
	backface-visibility: hidden;
}
.custom-select-arrow svg path,
.accordion-arrow svg path,
.transfer-accordion-arrow svg path {
	fill: var(--color-black);
}
.custom-select-arrow img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}
.custom-select-wrapper:has(.sort-toggle-btn) .custom-select-arrow{ right: 56px; }
.accordion-arrow { right: 0; }

/* 矢印アニメーション (パタパタ) */
select:focus + .custom-select-arrow,
select:active + .custom-select-arrow {
	transform: translateY(-50%) scaleY(-1);
}
.menu-group:not(.closed) .accordion-arrow {
	transform: translateY(-50%) scaleY(-1);
}

/* =========================================
   コンポーネント: ボタン
   ========================================= */
.btn {
	min-width: 128px;
	height: 40px;
	padding: 0 24px;
	font-weight: bold;
	white-space: nowrap;
	border: 1px solid;
	border-bottom-width: 3px;
	border-radius: var(--radius-lg);
	gap: 8px;
	cursor: pointer;
	transition: transform 0.1s ease, border-bottom-width 0.1s ease, line-height 0.1s ease;
	line-height: 35px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.btn:hover {
	transform: translateY(1px);
	border-bottom-width: 1px;
	line-height: 38px;
}
.btn:active { transform: translateY(2px); }
.btn-min {
	min-width: 128px;
	width: 100%;
	height: 30px;
	padding: 0;
	white-space: nowrap;
}

/* 色バリエーション */
.btn-orange {
	background-color: var(--color-orange);
	border-color: var(--color-orange-shadow);
	color: var(--color-white);
}
.btn-orange:hover { background-color: var(--color-orange-hover); }

.btn-grey {
	background-color: var(--color-grey-1);
	border-color: var(--color-black);
	color: var(--color-white);
}
.btn-grey:hover {
	background-color: var(--color-grey-hover);
	border-bottom-width: 2px;
}

.btn-white {
	background: var(--color-white);
	border-color: var(--color-black);
}
.btn-white svg { width: 16px; }
.btn-white svg path { fill: var(--color-black); }
.btn-white:hover {
	background-color: var(--color-white);
	color: var(--color-grey-hover);
}
.btn-white:hover svg { opacity: 0.5; }

.btn-red {
	background-color: var(--color-red);
	border-color: var(--color-red-shadow);
	color: var(--color-white);
}
.btn-red:hover { background-color: var(--color-red-hover); }

.btn-blue {
	background-color: var(--color-main);
	border-color: var(--color-main-shadow);
	color: var(--color-white);
}
.btn-blue:hover {
	background-color: var(--color-main-hover);
	color: var(--color-white);
}

.btn-green{
	background-color: var(--color-green);
	border-color: var(--color-green-shadow);
	color: var(--color-white);
}
.btn-green svg { width: 16px; }
.btn-green:hover { background-color: var(--color-green-hover); }

/* 特殊ボタン */
.btn-back {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	min-width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--color-black);
	border-bottom-width: 3px;
	background-color: var(--color-grey-1);
	color: var(--color-white);
	border-radius: 50%;
	z-index: 1;
}
.btn-back svg { width: 14px; }
.btn-back path { fill: var(--color-white); }
button.btn-back:not(.btn-white) .fas { color: var(--color-white); }

.btn-circle {
	padding: 0;
	width: 40px;
	min-width: 40px;
}

.sort-toggle-btn {
	width: 24px;
	height: 24px;
	padding: 0;
	background-color: var(--color-black);
	border-radius: 50%;
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translate(0, -50%);
	margin-left: 0;
}
#icon_sort_arrow {
	width: 14px;
	transition: transform 0.2s ease;
}
#icon_sort_arrow path { fill: var(--color-white); }
.sort-toggle-btn.desc svg { transform: scaleY(-1); }

.btn-add {
	position: fixed;
	bottom: 32px;
	right: 32px;
	width: 50px;
	min-width: 50px;
	height: 50px;
	font-weight: bold;
	padding: 0;
	z-index: 10;
	border-radius: 50%;
	flex-shrink: 0;
}
.btn-add #icon_btn_add { width: 24px; }

/* =========================================
   エリア別スタイル
   ========================================= */

/* --- サイドバー --- */
.sidebar .logo {
	margin: 4px 0 32px;
	line-height: 0;
}
.sidebar .logo a { display: inline-block; }
.sidebar .logo img { width: 200px; max-width: 100%; height: auto; display: block; }

.menu-group {
	padding: 24px 0;
	border-top: 1px solid var(--color-main-shadow);
}
.special-menu:last-child {
	border-bottom: 1px solid var(--color-main-shadow);
}

.menu-title {
	margin-bottom: 8px;
	color: var(--color-black);
	position: relative;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0 1em 0 0;
	width: 100%; /* 幅確保 */
}
.special-menu .menu-title,
.menu-group.closed .menu-title {
	margin-bottom: 0;
}

.menu-title svg {
	width: 24px;
}
.menu-title .accordion-arrow svg {
	width: 16px;
}

/* アクティブグループ */
.menu-group.active-group .menu-title,
.menu-group:has(.accordion-arrow):hover .menu-title,
.menu-group.special-menu .menu-title a:hover,
.menu-group.special-menu.active-group .menu-title a {
	color: var(--color-white);
}
.menu-group.active-group #icon_arrow path,
.menu-group:hover #icon_arrow path,
.menu-group.active-group #icon_contents>*:not(rect:first-child),
.menu-group:hover #icon_contents>*:not(rect:first-child),
.menu-group.active-group #icon_course>*:not(rect),
.menu-title:hover #icon_course>*:not(rect),
.menu-group.active-group #icon_users path,
.menu-group:hover #icon_users path,
.menu-group.active-group #icon_devices>*:not(:first-child),
.menu-title:hover #icon_devices>*:not(:first-child),
.menu-group.active-group #icon_systemlog path,
.menu-title:hover #icon_systemlog path {
	fill: var(--color-white) !important;
}
/* 追加アイコン(チュートリアル / テロップエディタ):active/hover で白く。
   透明の背景 rect(fill:none)以外の図形を対象にする */
.menu-group.active-group #icon_tutorial :not([style*="none"]),
.menu-title:hover #icon_tutorial :not([style*="none"]),
.menu-group.active-group #icon_telop_editor :not([style*="none"]),
.menu-title:hover #icon_telop_editor :not([style*="none"]) {
	fill: var(--color-white) !important;
}
/* テキストリンクの場合 */
.menu-group.special-menu .menu-title a {
	display: flex;
	align-items: center;
	width: 100%;
	color: inherit;
}

/* 子メニュー */
.menu-group ul {
	margin-left: 32px;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}
.menu-group.closed ul { max-height: 0; }

.menu-group li a {
	display: block;
	padding: 3px 16px 5px;
	margin-bottom: 4px;
	color: var(--color-black);
	border-radius: var(--radius-lg);
	border: 1px solid transparent;
	white-space: nowrap;
}

.menu-group li.active a,
.menu-group li.active a:hover {
	background-color: var(--color-white);
	color: var(--color-main);
	font-weight: bold;
	border-color: var(--color-white);
}

.menu-group li a:hover {
	background-color: transparent;
	border: 1px solid;
	color: var(--color-white);
}

.user-info {
	margin-top: 16px;
	padding-top: 16px;
	padding-right: 16px;
}
.user-info span { display: block; margin-bottom: 16px; }


/* --- メインコンテンツ --- */
.main-content {
	margin: 16px;
	padding: 32px;
	border-radius: 16px;
	background-color: var(--color-main-content-bg);
	height: calc(100vh - 32px);
	width: calc(100vw - 338px);
	display: flex;
	flex-direction: column;
}

.filter-bar {
	margin-bottom: 32px;
	gap: 16px;
	padding-top: 2px;
	flex-wrap: wrap;
}
.contents-filter.filter-bar {
	justify-content: space-between;
	flex-wrap: wrap;
	width: 100%;
	overflow: hidden;
}
.filter-group {
	flex-wrap: wrap;
 }

label {
	margin-bottom: 8px;
	display: block;
	white-space: nowrap;
 }

.search-box { position: relative; }
.search-box svg {
	color: var(--color-grey-1);
	cursor: pointer;
	margin-left: 8px;
	position: absolute;
	top: 50%;
	left: 8px;
	transform: translate(0, -50%);
	z-index: 1;
	width: 16px;
}
.search-box svg path { fill: var(--color-grey-hover); }
.search-box input {
	padding-left: 40px !important;
}

.custom-select-wrapper select { max-width: 230px; }


/* --- リスト --- */
.list-wrapper {
	flex: 1;
	min-height: 0;
}
.list-container {
	padding-right: 0;
	width: 100%;
	min-width: max-content;
}
.list-container.not-scroll {
	max-height: none;
}

.scroll-area{
	min-width: 0;
	height: 100%;
}
/* 追加ボタンがある場合 */
.has-btn-space {
	height: 72px;
}
.search-wrapper {
	flex-shrink: 0;
}
.list-header {
	padding: 0 16px 8px 16px;
	border-bottom: 2px solid var(--color-light-grey);
}
.list-header::-webkit-scrollbar { width: 0; }

.list-header div { color: var(--color-grey-hover); }

.list-item {
	width: max-content;
	min-width: 100%;
	height: 80px;
	padding: 0 16px;
	border-bottom: 2px solid var(--color-light-grey);
	transition: background-color 0.2s ease;
	color: var(--color-black);
	cursor: pointer;
}
/* 横スクロールする際に必要 */
.list-item > * {
	flex-shrink: 0;
}
.list-item:hover { background-color: var(--color-list-hover-bg); }

.list-item.detail-row {cursor: default; }
.list-item.detail-row:hover {
	background-color: transparent;
	color: var(--color-black);
}
.list-detail.list-fit {
	width: 100%;
	min-width: max-content;
}

/* カラム設定 */
.list-col-btn{
	padding-right: 16px;
	width: 100%;
}
.list-col-2em {
	min-width: 2em;
	text-align: center;
}
.list-col-per15 {
	width: 150px;
	flex-shrink: 0;
}

.list-col-per20 {
	width: 200px;
	flex-shrink: 0;
}

.list-col-per50 {
	min-width: 500px;
}

.list-col-fg1 {
	flex: 1;
	min-width: 200px;
}

.list-col-link,
.list-col-btn {
	min-width: 120px;
	text-align: right;
	margin-left: auto;
	font-weight: bold;
	white-space: nowrap;
	flex-shrink: 1;
}

.list-col-btn button,
.file-input-label {
	width: fit-content;
	padding: 4px 16px;
	margin-bottom: 0;
}
.file-input-label svg { width: 24px; }

/* 詳細ページカラム */
.detail-col-label {
	width: 15%;
	min-width: 150px;
	color: var(--color-grey-1);
	font-weight: normal;
}
.detail-col-content {
	flex-grow: 1;
	font-weight: bold;
	color: var(--color-black);
}

/* テキスト省略・リンク */
.text-overflow {
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere; /* 折り返しが２行にならなかったため追加 */
	text-overflow: ellipsis;
	padding-right: 32px;
}
.list-item .list-col-link {
	padding-right: 0;
	display: block;
	white-space: nowrap;
	text-decoration: underline;
}
.list-item:not(.detail-row):hover .list-col-link { color: var(--color-grey-1); }


/* --- モーダル --- */
.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--color-modal-overlay);
	z-index: 100;
	justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal-container {
	background-color: var(--color-main-content-bg);
	max-width: 887px;
	width: calc(100% - 32px);
	min-height: 250px;
	max-height: calc(100vh - 64px);
	border-radius: 16px;
	border: 2px solid var(--color-black);
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0,0,0,0.2);
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
}

.modal-header {
	padding: 32px 32px 16px 32px;
	justify-content: space-between;
	position: relative;
	min-height: 108px;
	flex-shrink: 0;
}
.modal-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 32px;
	right: 32px;
	height: 1px;
	background-color: #EEE;
}
.modal-title {
	font-size: 32px;
	color: var(--color-black);
}

.modal-body {
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex-shrink: 1;
	max-height: calc(100vh - 254px);
	overflow-y: auto;
}

.delete-message {
	margin-top: 16px;
	margin-bottom: 32px;
}

.form-group:not(.modal-body .form-group) {
	align-items: flex-start !important;
}

.modal-body .form-group label,
.form-group.display-flex .p-label {
	width: 120px;
	text-align: right;
	margin-right: 1em;
	margin-bottom: 0;
}
.form-group label,
.modal-body .form-group label,
.p-label {
	font-weight: bold;
	flex-shrink: 0;
}
.search-area,
.course-filter,
.sort-filter,
.sort-area {
	display: flex;
	gap: 8px;
	align-items: center;
}
.search-label,
.filter-label,
.sort-label {
	margin: 0;
	white-space: nowrap;
}

/* モーダル内フォーム */
.modal-body select,
#course-name {
	width: 100%;
}

.modal-body .min-input-area .custom-select-arrow { right: 0px; }

.delete-link-container {
	text-align: center;
}
.delete-link {
	color: var(--color-red);
	font-weight: bold;
	text-decoration: underline;
	cursor: pointer;
	transition: color 0.2s;
}
.delete-link:hover { color: var(--color-red-hover); }
.delete-link.text-mid { margin-top: 5px; }

/* モーダルフッター */
.modal-footer {
	background-color: var(--color-main);
	padding: 0;
	margin-top: auto;
	display: flex;
	flex-shrink: 0;
}
.modal-action-btn {
	width: 100%;
	height: 50px;
	border: none;
	border-radius: 0;
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
	transition: background-color 0.2s;
	color: var(--color-white);
}
.modal-action-btn.disabled{
	background: var(--color-grey-hover);
	pointer-events: none;
}
.modal-action-btn.disabled:hover {
	background: var(--color-grey-hover);
}
.modal-action-btn.btn-blue { border-color: var(--color-main-shadow); }

.modal-footer.has-multiple-buttons .modal-action-btn,
.right-column { flex: 1; }
.right-column .delete-link-container {
	margin-top: 40px;
	transform: translateX(-25%);
}
.right-column input:not(.half-input),
.course-input-area input{
	width: 100%;
}
.half-input { width: 50%; }
.modal-btn-left {
	border-bottom-left-radius: 13px;
	border-bottom-right-radius: 0;
}
.modal-btn-right {
	border-bottom-right-radius: 13px;
	border-bottom-left-radius: 0;
	border-left: 2px solid;
}
.modal-action-btn.btn-red {
	border-color: var(--color-red-shadow);
}
.modal-action-btn.btn-grey {
	border-color: var(--color-black);
}

.btn-update { background-color: var(--color-main); }


/* --- 詳細ページ固有 --- */
.detail-nav {
	justify-content: space-between;
	margin-bottom: 32px;
	flex-shrink: 0;
}
.back-link {
	font-weight: bold;
	text-decoration: underline;
}
.back-link:hover { color: var(--color-grey-1); }

/* 処理中のぐるぐるアニメーション */
.spinner {
	width: 16px;
	height: 16px;
	animation: spin 1s linear infinite;
}
@keyframes spin {
	to { transform: rotate(360deg) }
}