/*
 * Cocomiru Matching - フロントエンド共通スタイル
 * ダッシュボード・案件検索・登録フォーム・チャット等、全ページに共通適用します。
 * カラー: ティール〜グリーン系をプライマリカラーに、職種ごとに色分けしたタグ/バッジを使用。
 */

/* ---------- 変数定義 ---------- */
:root {
	--ccm-primary: #3ec9b0;
	--ccm-primary-dark: #2a9d8a;
	--ccm-primary-light: #e6f7f4;
	--ccm-accent-green: #4caf50;

	--ccm-text: #2f3a3a;
	--ccm-text-light: #74807e;
	--ccm-bg: #ffffff;
	--ccm-bg-soft: #f4f7f6;
	--ccm-border: #e3e9e8;

	--ccm-radius-lg: 16px;
	--ccm-radius-md: 10px;
	--ccm-radius-sm: 6px;
	--ccm-radius-pill: 999px;

	--ccm-shadow: 0 2px 14px rgba(30, 40, 40, 0.07);
	--ccm-shadow-hover: 0 8px 22px rgba(30, 40, 40, 0.12);

	--ccm-error-bg: #fdecec;
	--ccm-error-text: #d6455a;
	--ccm-success-bg: #e9f8ee;
	--ccm-success-text: #2a9d4f;
	--ccm-warning-bg: #fff6e5;
	--ccm-warning-text: #8a5a12;

	--ccm-tag-medical-bg: #ffe3ea;
	--ccm-tag-medical-text: #d6336c;
	--ccm-tag-dental-bg: #e0f0ff;
	--ccm-tag-dental-text: #1c7ed6;
	--ccm-tag-pharmacy-bg: #e2f8e6;
	--ccm-tag-pharmacy-text: #2b8a3e;

	--ccm-footer-bg: #20282a;
	--ccm-footer-text: #c7d1d0;
}

/* ---------- 共通レイアウト ---------- */
.ccm-dashboard,
.ccm-shift-search,
.ccm-chat-thread,
.ccm-auth-wrap {
	max-width: 1000px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	line-height: 1.7;
	color: var(--ccm-text);
	font-size: 16px;
}
.ccm-auth-wrap {
	max-width: 460px;
}
.ccm-dashboard *,
/*
 * v0.29.42: プラグインが出す要素はすべて border-box にする。
 *
 * これまでカードや検索の中だけに掛けていたため、
 * カードの外に置かれた表やフォームでは padding の分だけ幅が増え、
 * スマホで右にはみ出していた
 * (760px以下で表を1件=1カードに組み替えると tr に左右16pxの余白が付き、
 *  width:100% と合わさって画面から出ていた)。
 */
[class*="ccm-"],
[class*="ccm-"] * {
	box-sizing: border-box;
}

.ccm-shift-search *,
.ccm-chat-thread *,
.ccm-auth-wrap *,
.ccm-card * {
	box-sizing: border-box;
}

.ccm-card {
	background: var(--ccm-bg);
	border: 1px solid var(--ccm-border);
	border-radius: var(--ccm-radius-lg);
	box-shadow: var(--ccm-shadow);
	padding: 26px 28px;
}
.ccm-auth-wrap .ccm-card {
	padding: 34px 30px;
}

.ccm-section-title {
	font-size: 1.2em;
	margin: 40px 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--ccm-border);
	color: var(--ccm-text);
}
.ccm-section-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 40px 0 16px;
	flex-wrap: wrap;
	gap: 10px;
}
.ccm-section-head .ccm-section-title {
	margin: 0;
	border-bottom: none;
	padding-bottom: 0;
}
.ccm-form-title {
	font-size: 1.3em;
	text-align: center;
	margin: 0 0 22px;
}
.ccm-link {
	color: var(--ccm-primary-dark);
	font-weight: 600;
	text-decoration: none;
}
.ccm-link:hover {
	text-decoration: underline;
}

/* ---------- 通知・トースト ---------- */
.ccm-notice {
	padding: 14px 18px;
	border-radius: var(--ccm-radius-md);
	margin-bottom: 18px;
	font-size: 0.92em;
	font-weight: 600;
}
.ccm-notice-success { background: var(--ccm-success-bg); color: var(--ccm-success-text); }
.ccm-notice-error { background: var(--ccm-error-bg); color: var(--ccm-error-text); }
/* v0.29.94: 退会画面の報酬残高のお知らせ。禁止ではなく注意喚起のため、赤ではなく黄系。 */
.ccm-notice-warning { background: var(--ccm-warning-bg, #fff6e5); color: var(--ccm-warning-text, #8a5a12); }

/* ---------- ボタン ---------- */
.ccm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 24px;
	border-radius: var(--ccm-radius-pill);
	border: none;
	font-size: 0.95em;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.4;
	transition: filter 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ccm-btn-primary {
	background: linear-gradient(135deg, var(--ccm-primary), var(--ccm-accent-green));
	color: #fff;
	box-shadow: 0 4px 14px rgba(62, 201, 176, 0.32);
}
.ccm-btn-primary:hover { filter: brightness(1.06); }
.ccm-btn-outline {
	background: #fff;
	color: var(--ccm-primary-dark);
	border: 2px solid var(--ccm-primary);
}
.ccm-btn-outline:hover { background: var(--ccm-primary-light); }
.ccm-btn-ghost {
	background: var(--ccm-bg-soft);
	color: var(--ccm-text);
}
.ccm-btn-ghost:hover { background: var(--ccm-border); }
.ccm-btn-block { width: 100%; }
.ccm-btn-small { padding: 7px 16px; font-size: 0.84em; }

/* ---------- フォーム ---------- */
.ccm-form { margin-bottom: 8px; }
.ccm-field { margin-bottom: 18px; }
.ccm-field-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: stretch; }
/*
 * v0.29.33: 横並びの入力欄の高さと位置をそろえる。
 *
 * 説明文の行数が欄ごとに違うと下端がばらつき、
 * プルダウンや小さい入力欄は高さ自体も違っていたため、
 * 1行のなかで入力欄がずれて見えていた。
 * 各欄を縦のフレックスにして、説明文を下端へ寄せる。
 */
.ccm-field-row .ccm-field {
	flex: 1 1 200px;
	margin-bottom: 18px;
	display: flex;
	flex-direction: column;
}
.ccm-field-row .ccm-field > .ccm-form-hint { margin-top: auto; padding-top: 6px; }
.ccm-field-row-checkbox { align-items: center; gap: 10px 14px; }
.ccm-field label,
.ccm-field-row > label {
	display: block;
	font-weight: 700;
	font-size: 0.88em;
	margin-bottom: 6px;
	color: var(--ccm-text);
}
.ccm-required {
	color: var(--ccm-error-text);
	font-size: 0.72em;
	font-weight: 700;
	margin-left: 6px;
	vertical-align: middle;
}
.ccm-form-hint { font-size: 0.82em; color: var(--ccm-text-light); margin: 6px 0 0; }

/*
 * v0.29.31: 見落とすと金額に直結するご案内(休憩時間の扱いなど)を目立たせる。
 */
.ccm-form-hint-strong {
	background: var(--ccm-primary-light);
	border-left: 3px solid var(--ccm-primary);
	border-radius: 8px;
	padding: 10px 12px;
	color: var(--ccm-text);
	font-size: 0.86em;
	line-height: 1.7;
}
.ccm-form-footnote { text-align: center; font-size: 0.88em; margin-top: 20px; color: var(--ccm-text-light); }

.ccm-input {
	width: 100%;
	padding: 12px 14px;
	border-radius: var(--ccm-radius-md);
	border: 1px solid var(--ccm-border);
	background: var(--ccm-bg-soft);
	font-size: 0.95em;
	color: var(--ccm-text);
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
	font-family: inherit;
}
.ccm-input:focus {
	outline: none;
	border-color: var(--ccm-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(62, 201, 176, 0.16);
}
textarea.ccm-input { resize: vertical; min-height: 90px; }
/*
 * v0.29.33: 入力欄・プルダウンの高さをそろえる。
 * 余白だけで高さを決めていたため、種類ごとに数pxずつ違っていた。
 */
input.ccm-input, select.ccm-input { min-height: 46px; }
.ccm-input-small { max-width: 170px; }
/* 単体で置くプルダウンは、行いっぱいに伸ばさない */
.ccm-input-inline { max-width: 280px; }

/* ---- 応募者の氏名リンク・稼働実績(v0.29.41) ---- */
.ccm-applicant-name-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--ccm-text);
	text-decoration: none;
	font-weight: 700;
	border-bottom: 1px solid var(--ccm-border);
	padding-bottom: 1px;
	transition: color .15s, border-color .15s;
}
.ccm-applicant-name-link:hover,
.ccm-applicant-name-link:focus-visible {
	color: var(--ccm-primary-dark);
	border-color: var(--ccm-primary);
}
.ccm-applicant-name-link svg { flex: 0 0 auto; opacity: .65; }
.ccm-applicant-profile-open { margin: 10px 0 0; }

.ccm-worker-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	margin: 14px 0 18px;
}
.ccm-worker-stat {
	background: var(--ccm-bg-soft);
	border-radius: var(--ccm-radius-md);
	padding: 10px 14px;
	min-width: 0;
}
.ccm-worker-stat-label {
	display: block;
	font-size: 0.76em;
	font-weight: 600;
	color: var(--ccm-text-light);
	margin-bottom: 2px;
}
.ccm-worker-stat-value {
	display: block;
	font-size: 1.12em;
	font-weight: 700;
	color: var(--ccm-text);
	font-variant-numeric: tabular-nums;
}
.ccm-worker-stat-unit {
	font-size: 0.68em;
	font-weight: 500;
	color: var(--ccm-text-light);
	margin-left: 3px;
}
.ccm-worker-stat-none { font-size: 0.72em; font-weight: 500; color: var(--ccm-text-light); }

/* ---- 医療機関の評価(v0.29.41) ---- */
.ccm-clinic-name-link {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--ccm-border);
	padding-bottom: 1px;
	transition: color .15s, border-color .15s;
}
.ccm-clinic-name-link:hover,
.ccm-clinic-name-link:focus-visible { color: var(--ccm-primary-dark); border-color: var(--ccm-primary); }
.ccm-clinic-name-link svg { flex: 0 0 auto; opacity: .6; }

.ccm-clinic-score {
	background: var(--ccm-primary-light);
	border-radius: var(--ccm-radius-md);
	padding: 16px 18px;
	margin: 0 0 18px;
	text-align: center;
}
.ccm-clinic-score-label {
	display: block;
	font-size: 0.8em;
	font-weight: 600;
	color: var(--ccm-primary-dark);
	margin-bottom: 4px;
}
.ccm-clinic-score-value {
	display: block;
	font-size: 2em;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ccm-text);
	font-variant-numeric: tabular-nums;
}
.ccm-clinic-score-scale { font-size: 0.45em; font-weight: 600; color: var(--ccm-text-light); margin-left: 4px; }
.ccm-clinic-score-count { display: block; font-size: 0.78em; color: var(--ccm-text-light); margin-top: 4px; }
.ccm-clinic-score-none { display: block; font-size: 0.9em; color: var(--ccm-text-light); }

.ccm-review-voices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ccm-review-voice {
	border: 1px solid var(--ccm-border);
	border-radius: var(--ccm-radius-md);
	padding: 12px 14px;
	background: #fff;
}
.ccm-review-voice-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 6px;
}
.ccm-review-voice-who { font-weight: 700; font-size: 0.9em; }
.ccm-review-voice-score {
	flex: 0 0 auto;
	font-size: 0.76em;
	font-weight: 600;
	color: var(--ccm-primary-dark);
	background: var(--ccm-primary-light);
	border-radius: var(--ccm-radius-pill);
	padding: 2px 10px;
}
.ccm-review-voice-body { margin: 0 0 6px; font-size: 0.9em; line-height: 1.8; color: var(--ccm-text); }
.ccm-review-voice-date { margin: 0; font-size: 0.76em; color: var(--ccm-text-light); }

/* ---- 稼働履歴カード(v0.29.40) ---- */
.ccm-history-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.ccm-history-card {
	background: #fff;
	border: 1px solid var(--ccm-border);
	border-radius: var(--ccm-radius-md);
	padding: 16px 18px;
}
.ccm-history-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.ccm-history-title {
	font-weight: 700;
	font-size: 1em;
	line-height: 1.6;
	color: var(--ccm-text);
	text-decoration: none;
	/* 単語の途中で折り返さない(医療機関名が読めなくなるため) */
	word-break: normal;
	overflow-wrap: anywhere;
	flex: 1 1 auto;
	min-width: 0;
}
.ccm-history-title:hover { color: var(--ccm-primary-dark); text-decoration: underline; }
.ccm-history-head .ccm-status-badge { flex: 0 0 auto; }

.ccm-history-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px 20px;
	margin: 0 0 14px;
	padding: 12px 14px;
	background: var(--ccm-bg-soft);
	border-radius: var(--ccm-radius-sm, 8px);
}
.ccm-history-meta > div { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.ccm-history-meta dt {
	flex: 0 0 auto;
	font-size: 0.78em;
	font-weight: 600;
	color: var(--ccm-text-light);
	margin: 0;
}
.ccm-history-meta dd {
	margin: 0;
	font-size: 0.9em;
	color: var(--ccm-text);
	min-width: 0;
	word-break: normal;
	overflow-wrap: anywhere;
}

.ccm-history-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px;
}
.ccm-history-actions > * { margin: 0; }
.ccm-history-actions .ccm-inline-details { margin: 0; }

@media (max-width: 600px) {
	.ccm-history-head { flex-direction: column; gap: 8px; }
	.ccm-history-meta { grid-template-columns: 1fr; }
	.ccm-history-actions { flex-direction: column; align-items: stretch; }
}

/* ---- クリニックの評価 一覧(v0.29.37) ---- */
.ccm-review-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.ccm-review-list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--ccm-border);
	border-radius: var(--ccm-radius-md);
}
.ccm-review-list-item.is-done { background: var(--ccm-bg-soft); }
.ccm-review-list-body { flex: 1 1 240px; min-width: 0; }
.ccm-review-list-title { margin: 0 0 4px; font-weight: 700; font-size: 0.95em; }
.ccm-review-list-meta {
	margin: 0;
	font-size: 0.82em;
	color: var(--ccm-text-light);
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* ---- 最寄駅・バス停(複数登録) v0.29.33 ---- */
.ccm-station-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.ccm-station-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 120px auto;
	gap: 10px;
	align-items: end;
}
.ccm-station-row .ccm-station-label {
	display: block;
	font-size: 0.76em;
	font-weight: 600;
	color: var(--ccm-text-light);
	margin-bottom: 4px;
}
.ccm-station-row .ccm-input { width: 100%; }
/* 2件目以降は見出しを繰り返さない(同じ語が縦に並ぶと読みにくいため) */
.ccm-station-row:not(:first-child) .ccm-station-label { display: none; }
.ccm-station-remove { display: flex; align-items: flex-end; }
.ccm-station-remove .ccm-btn { min-height: 46px; white-space: nowrap; }
@media (max-width: 600px) {
	.ccm-station-row { grid-template-columns: minmax(0, 1fr) 100px; }
	.ccm-station-remove { grid-column: 1 / -1; justify-content: flex-end; }
}

.ccm-input-wrap { position: relative; }
.ccm-input-wrap-icon .ccm-input { padding-left: 42px; }
.ccm-input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ccm-text-light);
	display: flex;
	align-items: center;
	pointer-events: none;
	font-weight: 700;
}

.ccm-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--ccm-bg-soft);
	border: 1px solid var(--ccm-border);
	padding: 8px 14px;
	border-radius: var(--ccm-radius-pill);
	cursor: pointer;
	font-size: 0.88em;
	font-weight: 600;
}
.ccm-checkbox input { accent-color: var(--ccm-primary); }

.ccm-role-picker { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.ccm-role-option {
	flex: 1 1 220px;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	border: 2px solid var(--ccm-border);
	border-radius: var(--ccm-radius-md);
	padding: 14px 16px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}
.ccm-role-option:has(input:checked) {
	border-color: var(--ccm-primary);
	background: var(--ccm-primary-light);
}
.ccm-role-option input { margin-top: 4px; accent-color: var(--ccm-primary); }
.ccm-role-option-body strong { display: block; font-size: 0.92em; margin-bottom: 2px; }
.ccm-role-option-body small { color: var(--ccm-text-light); font-size: 0.82em; }

/* ---------- テーブル ---------- */
.ccm-table-wrap {
	overflow-x: auto;
	margin-bottom: 32px;
	border-radius: var(--ccm-radius-md);
	border: 1px solid var(--ccm-border);
}
.ccm-table { width: 100%; border-collapse: collapse; background: var(--ccm-bg); }
.ccm-table th,
.ccm-table td {
	padding: 12px 14px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--ccm-border);
	font-size: 0.92em;
}
.ccm-table th { background: var(--ccm-bg-soft); font-weight: 700; color: var(--ccm-text-light); white-space: nowrap; }
.ccm-table tr:last-child td { border-bottom: none; }
.ccm-entry-actions > * { margin-bottom: 6px; }
.ccm-inline-form { display: inline-block; }
.ccm-worker-cell { display: flex; align-items: center; gap: 8px; }
.ccm-worker-cell img { border-radius: 50%; }

.ccm-inline-details {
	margin-top: 8px;
	border: 1px dashed var(--ccm-border);
	border-radius: var(--ccm-radius-sm);
	padding: 8px 12px;
	background: var(--ccm-bg-soft);
}
.ccm-inline-details summary { cursor: pointer; font-weight: 700; font-size: 0.85em; color: var(--ccm-primary-dark); }
.ccm-inline-detail-form { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.ccm-inline-detail-form label { font-size: 0.85em; display: block; font-weight: 700; }

.ccm-billing-summary {
	margin-top: 10px;
	padding: 12px 14px;
	background: var(--ccm-primary-light);
	border-radius: var(--ccm-radius-sm);
	font-size: 0.88em;
}
.ccm-billing-summary p { margin: 3px 0; }

/* ---------- タグ・ステータスバッジ ---------- */
.ccm-tag-group { display: flex; flex-wrap: wrap; gap: 6px; }
.ccm-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	border-radius: var(--ccm-radius-pill);
	font-size: 0.78em;
	font-weight: 700;
	white-space: nowrap;
}
.ccm-tag-icon { flex-shrink: 0; }
.ccm-tag-medical { background: var(--ccm-tag-medical-bg); color: var(--ccm-tag-medical-text); }
.ccm-tag-dental { background: var(--ccm-tag-dental-bg); color: var(--ccm-tag-dental-text); }
.ccm-tag-pharmacy { background: var(--ccm-tag-pharmacy-bg); color: var(--ccm-tag-pharmacy-text); }
.ccm-tag-default { background: var(--ccm-bg-soft); color: var(--ccm-text-light); }
.ccm-tag-outline { background: #fff; border: 1px solid var(--ccm-border); color: var(--ccm-text-light); }
.ccm-tag-placeholder { font-size: 0.82em; color: var(--ccm-text-light); }

.ccm-status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: var(--ccm-radius-pill);
	font-size: 0.8em;
	font-weight: 700;
	white-space: nowrap;
}
.ccm-status-entried { background: #eef2f7; color: #5b6b7a; }
.ccm-status-chatting { background: #fff6e0; color: #a6790b; }
.ccm-status-matched { background: var(--ccm-primary-light); color: var(--ccm-primary-dark); }
.ccm-status-worked { background: #e6f0fb; color: #2464b4; }
.ccm-status-completed { background: var(--ccm-success-bg); color: var(--ccm-success-text); }
.ccm-status-direct_hired { background: #efe6fb; color: #7c4dbd; }
.ccm-status-rejected { background: var(--ccm-error-bg); color: var(--ccm-error-text); }
.ccm-status-withdrawn { background: #f0f0f0; color: #888; }
.ccm-status-no_show { background: var(--ccm-error-bg); color: var(--ccm-error-text); }
.ccm-status-cancelled { background: #fbe9e7; color: #b3411f; }

/* ---------- 運営ダッシュボード(集計カード・お知らせ) ---------- */
.ccm-stat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 20px;
}
.ccm-stat-card {
	text-align: center;
}
.ccm-stat-label {
	margin: 0 0 10px;
	font-size: 0.88em;
	font-weight: 700;
	color: var(--ccm-primary-dark);
}
.ccm-stat-value {
	margin: 0;
	font-size: 2.2em;
	font-weight: 800;
	color: var(--ccm-text);
}
.ccm-announce-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ccm-announce-item {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ccm-border);
}
.ccm-announce-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.ccm-announce-date {
	flex-shrink: 0;
	font-size: 0.82em;
	color: var(--ccm-text-light);
}
.ccm-announce-title {
	font-weight: 600;
}
.ccm-operator-note {
	margin-top: 18px;
}

/* ---------- プロフィールカード(ワーカー) ---------- */
.ccm-profile-card { display: flex; gap: 20px; align-items: center; margin-bottom: 30px; }
.ccm-profile-avatar img { border-radius: 50%; display: block; }
.ccm-profile-info h2 { margin: 0 0 8px; font-size: 1.25em; }
.ccm-star-rating { color: #f5b301; font-size: 1em; margin-bottom: 10px; }
.ccm-star-rating-value { color: var(--ccm-text-light); font-size: 0.85em; margin-left: 4px; }
.ccm-star-rating-empty { color: var(--ccm-text-light); font-size: 0.85em; }

/* ---------- 案件検索・案件カード ---------- */
.ccm-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 26px;
	align-items: center;
}
.ccm-search-keyword { flex: 2 1 260px; }
.ccm-search-form select.ccm-input { flex: 1 1 160px; width: auto; }

.ccm-shift-list { list-style: none; padding: 0; margin: 0; }
.ccm-shift-card {
	display: flex;
	gap: 22px;
	align-items: stretch;
	margin-bottom: 18px;
	transition: box-shadow 0.15s;
}
.ccm-shift-card:hover { box-shadow: var(--ccm-shadow-hover); }
.ccm-shift-card-main { flex: 1; min-width: 0; }
.ccm-shift-card-head {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}
.ccm-shift-updated { margin-left: auto; font-size: 0.78em; color: var(--ccm-text-light); }
.ccm-shift-title { font-size: 1.25em; font-weight: 800; margin: 0 0 8px; color: var(--ccm-text); }
.ccm-shift-excerpt { color: var(--ccm-text-light); font-size: 0.92em; margin-bottom: 10px; }
.ccm-shift-excerpt p { margin: 0; }

.ccm-info-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 0.9em; }
.ccm-info-table th {
	text-align: left;
	color: var(--ccm-text-light);
	font-weight: 700;
	padding: 5px 12px 5px 0;
	width: 110px;
	white-space: nowrap;
	vertical-align: top;
}
.ccm-info-table td { padding: 5px 0; color: var(--ccm-text); }

.ccm-shift-card-side {
	width: 120px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
	border-left: 1px solid var(--ccm-border);
	padding-left: 20px;
}
.ccm-shift-card-side img { border-radius: 50%; }
.ccm-shift-card-side-name { font-size: 0.82em; color: var(--ccm-text-light); }

.ccm-pagination { margin-top: 26px; display: flex; gap: 6px; flex-wrap: wrap; }
.ccm-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: var(--ccm-radius-sm);
	background: var(--ccm-bg-soft);
	color: var(--ccm-text);
	text-decoration: none;
	font-size: 0.9em;
}
.ccm-pagination .page-numbers.current { background: var(--ccm-primary); color: #fff; }

/* ---------- チャット(メッセージ) ---------- */
.ccm-chat-header {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ccm-border);
}
.ccm-chat-header img { border-radius: 50%; }
.ccm-chat-header h2 { margin: 0; font-size: 1.15em; }

.ccm-messages { margin-bottom: 18px; max-height: 480px; overflow-y: auto; }
.ccm-message {
	padding: 12px 16px;
	border-radius: 14px;
	margin-bottom: 10px;
	max-width: 72%;
}
.ccm-message-me { background: var(--ccm-primary-light); margin-left: auto; border-bottom-right-radius: 4px; }
.ccm-message-other { background: var(--ccm-bg-soft); border-bottom-left-radius: 4px; }
.ccm-message strong { display: block; font-size: 0.78em; color: var(--ccm-text-light); margin-bottom: 3px; font-weight: 700; }
.ccm-message p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.ccm-message time { display: block; font-size: 0.72em; color: var(--ccm-text-light); margin-top: 5px; }

.ccm-message-form { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.ccm-message-form textarea { flex: 1; }
.ccm-review-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ccm-review-form label { font-weight: 700; font-size: 0.88em; }

/* ---------- フッター(任意利用パーツ / [ccm_footer]) ---------- */
.ccm-footer {
	background: var(--ccm-footer-bg);
	color: var(--ccm-footer-text);
	margin-top: 48px;
	padding: 48px 24px 22px;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
.ccm-footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	/* auto-fitで幅に応じて自動的に列数が減る形にしている(cocomiru-theme側と同じ理由による対処)。 */
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 32px;
}
.ccm-footer-logo { color: #fff; font-size: 1.2em; font-weight: 800; margin: 0 0 8px; }
.ccm-footer-tagline { font-size: 0.85em; color: #93a19f; margin: 0; }
.ccm-footer h4 { color: #fff; font-size: 0.92em; margin: 0 0 14px; }
.ccm-footer ul { list-style: none; margin: 0; padding: 0; }
.ccm-footer li { margin-bottom: 9px; }
.ccm-footer a { color: var(--ccm-footer-text); text-decoration: none; font-size: 0.88em; }
.ccm-footer a:hover { color: #fff; }
.ccm-footer .ccm-footer-heading-link {
	color: #fff;
	font-size: inherit;
	font-weight: inherit;
}
.ccm-footer-copyright {
	max-width: 1100px;
	margin: 32px auto 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.78em;
	color: #93a19f;
}

/* ---------- 各種設定・退会案内の画面遷移 ---------- */
.ccm-navigation-page {
	max-width: 880px;
	margin: 0 auto;
}
.ccm-navigation-lead {
	color: var(--ccm-text-light);
	margin: 0 0 24px;
}
.ccm-navigation-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
}
.ccm-navigation-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 112px;
	padding: 24px;
	border: 1px solid var(--ccm-border);
	border-radius: var(--ccm-radius-lg);
	background: #fff;
	box-shadow: var(--ccm-shadow);
	color: var(--ccm-text);
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ccm-navigation-card:hover,
.ccm-navigation-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: var(--ccm-shadow-hover);
	border-color: var(--ccm-primary);
}
.ccm-navigation-card-title {
	display: block;
	font-size: 1.05em;
	font-weight: 800;
	margin-bottom: 5px;
}
.ccm-navigation-card-description {
	display: block;
	color: var(--ccm-text-light);
	font-size: 0.88em;
	line-height: 1.6;
}
.ccm-navigation-card-arrow {
	color: var(--ccm-primary-dark);
	font-size: 1.4em;
	font-weight: 800;
}

/* ---------- プロフィールフォーム: セクション見出し・資格カテゴリ・写真・職務経歴 ---------- */
.ccm-form-section-title {
	font-size: 1.05em;
	font-weight: 800;
	margin: 36px 0 18px;
	padding-bottom: 9px;
	border-bottom: 1px solid var(--ccm-border);
	color: var(--ccm-primary-dark);
}
.ccm-form-section-title:first-child { margin-top: 0; }

.ccm-qual-group { margin-bottom: 14px; }
.ccm-qual-group-label {
	display: block;
	font-weight: 700;
	font-size: 0.84em;
	margin-bottom: 8px;
	color: var(--ccm-text-light);
}

.ccm-photo-upload { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ccm-photo-upload-preview img { border-radius: 50%; display: block; object-fit: cover; }
.ccm-photo-empty {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--ccm-bg-soft);
	border: 1px dashed var(--ccm-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.72em;
	color: var(--ccm-text-light);
	text-align: center;
	flex-shrink: 0;
}

.ccm-pref-checkboxes {
	max-height: 220px;
	overflow-y: auto;
	border: 1px solid var(--ccm-border);
	border-radius: var(--ccm-radius-md);
	padding: 14px;
	background: var(--ccm-bg-soft);
}

.ccm-work-history-card {
	border: 1px solid var(--ccm-border);
	border-radius: var(--ccm-radius-md);
	padding: 18px 18px 4px;
	margin-bottom: 16px;
	background: var(--ccm-bg-soft);
}
.ccm-work-history-card-title { font-weight: 800; font-size: 0.92em; margin: 0 0 14px; color: var(--ccm-text); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 680px) {
	.ccm-shift-card { flex-direction: column; }
	.ccm-shift-card-side {
		border-left: none;
		border-top: 1px solid var(--ccm-border);
		flex-direction: row;
		width: 100%;
		justify-content: flex-start;
		padding-left: 0;
		padding-top: 14px;
	}
	.ccm-message { max-width: 88%; }
	.ccm-stat-grid { grid-template-columns: 1fr; }
	.ccm-announce-item { flex-direction: column; gap: 2px; }
}

/* ------------------------------------------------------------------
   v0.6.0: 運営ダッシュボードのアクセスグラフ / なりすましバー / お問い合わせ
------------------------------------------------------------------- */

.ccm-access-card { padding: 24px; }
.ccm-access-total { font-size: 15px; margin: 0 0 4px; }
.ccm-access-total strong { font-size: 30px; color: var(--ccm-primary, #028090); }
.ccm-access-period { font-size: 12px; color: var(--ccm-text-light, #5c7a80); margin: 0 0 16px; }

.ccm-access-legend { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0 0 12px; font-size: 12px; }
.ccm-access-legend li { display: flex; align-items: center; gap: 6px; }
.ccm-legend-swatch { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }
.ccm-legend-in { background: #028090; }
.ccm-legend-out { background: #9fdcd6; }

.ccm-access-chart { display: flex; align-items: flex-end; gap: 3px; height: 200px; }
.ccm-access-bar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.ccm-access-stack { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.ccm-access-stack span { display: block; width: 100%; }
.ccm-access-out { background: #9fdcd6; }
.ccm-access-in { background: #028090; }
.ccm-access-bar small { font-size: 9px; color: var(--ccm-text-light, #5c7a80); margin-top: 4px; }

/* なりすまし中であることを常に明示するバー */
.ccm-impersonation-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999;
	background: #b32d2e; color: #fff; padding: 10px 16px;
	display: flex; align-items: center; justify-content: center; gap: 16px;
	font-size: 13px; flex-wrap: wrap;
}
.ccm-impersonation-bar form { margin: 0; }
.ccm-impersonation-bar button {
	background: #fff; color: #b32d2e; border: none; border-radius: 4px;
	padding: 6px 14px; font-size: 13px; font-weight: bold; cursor: pointer;
}

.ccm-contact { max-width: 680px; margin: 0 auto; }

/* ------------------------------------------------------------------
   v0.8.0: 勤務日カレンダー / 郵便番号 / 審査ステータス
------------------------------------------------------------------- */

.ccm-zip-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.ccm-calendar {
	border: 1px solid var(--ccm-border, #d3ebe8);
	border-radius: 8px;
	padding: 12px;
	max-width: 380px;
	background: #fff;
}
.ccm-calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ccm-calendar-title { font-weight: bold; font-size: 15px; }
.ccm-calendar-nav {
	border: 1px solid var(--ccm-border, #d3ebe8); background: #fff; cursor: pointer;
	width: 32px; height: 32px; border-radius: 6px; font-size: 18px; line-height: 1;
	color: var(--ccm-primary, #028090);
}
.ccm-calendar-nav:hover { background: var(--ccm-bg-soft, #eff8f7); }

.ccm-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ccm-calendar-week { text-align: center; font-size: 11px; color: var(--ccm-text-light, #5c7a80); padding: 4px 0; }
.ccm-calendar-day {
	aspect-ratio: 1 / 1; border: 1px solid transparent; background: var(--ccm-bg-soft, #eff8f7);
	border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--ccm-text, #1a2e35);
	display: flex; align-items: center; justify-content: center; padding: 0;
}
.ccm-calendar-day:hover:not(:disabled) { border-color: var(--ccm-primary, #028090); }
.ccm-calendar-day.is-selected { background: var(--ccm-primary, #028090); color: #fff; font-weight: bold; }
.ccm-calendar-day.ccm-calendar-past { background: transparent; color: #c3d4d4; cursor: default; }
.ccm-calendar-blank { background: transparent; border: none; cursor: default; }

/* 案件の審査ステータスバッジ */
.ccm-status-pending { background: #fff4e0; color: #a86a12; }
.ccm-status-approved { background: #e3f5ef; color: #1f7a5c; }
.ccm-status-rejected { background: var(--ccm-error-bg, #fdecea); color: var(--ccm-error-text, #b32d2e); }
.ccm-status-draft { background: #eceff1; color: #566369; }
/* 募集状況(募集中 / 締切) */
.ccm-status-open { background: var(--ccm-primary-light); color: var(--ccm-primary-dark); }
.ccm-status-closed { background: #eceff1; color: #566369; }

/* タブ(マイページ / 募集情報) */
/* v0.29.8: 押せることが伝わるよう、タブをボタン(セグメント)の見た目にする */
.ccm-tabs {
	display: inline-flex; gap: 4px; padding: 5px;
	margin: 0 0 26px;
	background: var(--ccm-bg-soft, #f4f7f6);
	border: 1px solid var(--ccm-border, #e3e9e8);
	border-radius: var(--ccm-radius-pill, 999px);
	max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.ccm-tab {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 22px; border-radius: var(--ccm-radius-pill, 999px);
	text-decoration: none; font-weight: bold; font-size: 14.5px; line-height: 1.4;
	white-space: nowrap; color: var(--ccm-text-light, #74807e);
	background: transparent; border: 1px solid transparent;
	transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.ccm-tab-icon { flex: none; opacity: .9; }
.ccm-tab:hover {
	background: #fff; color: var(--ccm-primary-dark, #2a9d8a);
	border-color: var(--ccm-border, #e3e9e8);
}
.ccm-tab:focus-visible { outline: 2px solid var(--ccm-primary-dark, #2a9d8a); outline-offset: 2px; }
.ccm-tab.is-active {
	background: var(--ccm-primary-dark, #2a9d8a); color: #fff; border-color: transparent;
	box-shadow: 0 2px 8px rgba(42, 157, 138, 0.3);
}
.ccm-tab.is-active:hover { background: var(--ccm-primary-dark, #2a9d8a); color: #fff; }
.ccm-tab-count {
	flex: none; min-width: 20px; padding: 1px 7px;
	border-radius: var(--ccm-radius-pill, 999px);
	background: var(--ccm-error-text, #d6455a); color: #fff;
	font-size: 11px; font-weight: bold; text-align: center;
	font-variant-numeric: tabular-nums;
}
.ccm-tab.is-active .ccm-tab-count { background: #fff; color: var(--ccm-primary-dark, #2a9d8a); }
@media (prefers-reduced-motion: reduce) { .ccm-tab { transition: none; } }
@media (max-width: 480px) {
	.ccm-tabs { display: flex; width: 100%; border-radius: var(--ccm-radius-md, 10px); }
	.ccm-tab { flex: 1 1 0; justify-content: center; padding: 10px 12px; font-size: 13.5px; border-radius: var(--ccm-radius-sm, 6px); }
}

.ccm-table-plain th { background: transparent; font-weight: bold; color: var(--ccm-text-light, #5c7a80); text-align: left; }

/* ------------------------------------------------------------------
   v0.9.0: 保有資格・レセコンの分類表示 / ロール別登録ページ
------------------------------------------------------------------- */

.ccm-form-lead { font-size: 14px; line-height: 1.8; color: var(--ccm-text-light, #5c7a80); margin: -8px 0 20px; }

/* 資格の大分類(開閉式) */
details.ccm-qual-group {
	border: 1px solid var(--ccm-border, #d3ebe8); border-radius: 8px;
	margin-bottom: 10px; background: #fff;
}
details.ccm-qual-group > summary {
	cursor: pointer; padding: 14px 18px; font-weight: bold; font-size: 14px;
	color: var(--ccm-primary, #028090); list-style: none; position: relative; padding-right: 42px;
}
details.ccm-qual-group > summary::-webkit-details-marker { display: none; }
details.ccm-qual-group > summary::after {
	content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
	font-size: 18px; font-weight: normal;
}
details.ccm-qual-group[open] > summary::after { content: '−'; }
.ccm-qual-count {
	display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 10px;
	background: var(--ccm-primary, #028090); color: #fff; font-size: 11px; font-weight: normal;
}

/* 資格・レセコンの小分類 */
.ccm-qual-subgroup { padding: 4px 18px 14px; }
.ccm-qual-subgroup-label {
	display: block; font-size: 12px; font-weight: bold;
	color: var(--ccm-text-light, #5c7a80); margin-bottom: 8px;
}
.ccm-qual-group-other {
	border: 1px solid var(--ccm-border, #d3ebe8); border-radius: 8px;
	padding: 14px 18px; background: #fff;
}
.ccm-qual-group-other .ccm-qual-group-label {
	display: block; font-weight: bold; font-size: 14px;
	color: var(--ccm-primary, #028090); margin-bottom: 10px;
}

/* ==========================================================
 * 施設の基本情報(クリニックプロフィール)
 * ========================================================== */

.ccm-notice-info { background: var(--ccm-info-bg, #eef6f8); color: var(--ccm-info-text, #35606b); }

.ccm-form-subtitle {
	font-size: 1.02em;
	font-weight: bold;
	margin: 28px 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--ccm-border, #e2ebee);
}
.ccm-form-subtitle:first-of-type { margin-top: 4px; }

.ccm-form-static { margin: 0; font-weight: bold; }
.ccm-form-note { font-size: 0.88em; color: var(--ccm-text-light); margin: 0 0 14px; }

/* 選択肢が多い項目は、幅に応じて折り返す */
.ccm-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 6px 14px;
}
.ccm-checkbox-group-title {
	font-size: 0.86em;
	font-weight: bold;
	color: var(--ccm-text-light, #5c7a80);
	margin: 14px 0 6px;
}

.ccm-clinic-profile-form .ccm-input + .ccm-input { margin-top: 8px; }

/* 診療時間の入力表 */
.ccm-hours-table th { width: 52px; white-space: nowrap; }
.ccm-hours-table td { white-space: nowrap; }
/*
 * v0.29.42: スマホでは時刻の入力欄が2つ並ぶと画面から出てしまうため、
 * 折り返しを許して幅も詰める。
 */
@media (max-width: 760px) {
	.ccm-hours-table td { white-space: normal; }
	.ccm-hours-table .ccm-input-time {
		min-width: 0;
		width: auto;
		max-width: 46%;
		padding: 8px 6px;
	}
}
.ccm-input-time { display: inline-block; width: auto; min-width: 108px; padding: 6px 8px; }

.ccm-thumb-preview { border-radius: 10px; object-fit: cover; }
.ccm-cover-preview { max-width: 100%; height: auto; border-radius: 12px; }

/* 公開表示 */
.ccm-clinic-profile-view { margin-top: 32px; }
.ccm-clinic-cover img { width: 100%; height: auto; border-radius: 14px; display: block; }
.ccm-clinic-head { display: flex; align-items: center; gap: 14px; margin: 18px 0 10px; }
.ccm-clinic-head .ccm-section-title { margin: 0; }
.ccm-clinic-icon { border-radius: 12px; object-fit: cover; flex: none; }
.ccm-clinic-atmosphere { margin: 0 0 18px; line-height: 1.9; }
.ccm-hours-view th, .ccm-hours-view td { text-align: center; white-space: nowrap; }

@media (max-width: 600px) {
	.ccm-checkbox-grid { grid-template-columns: 1fr; }
	.ccm-input-time { min-width: 0; width: 46%; }
	.ccm-clinic-head { flex-wrap: wrap; gap: 10px; }
}

/* 応募者の経歴を開いて確認するブロック */
.ccm-worker-detail { margin-top: 6px; }
.ccm-worker-detail > summary { cursor: pointer; font-size: 0.85em; color: var(--ccm-primary); }
.ccm-worker-profile-view { margin-top: 10px; }
.ccm-worker-profile-view .ccm-table { font-size: 0.9em; }

/* -----------------------------------------------------------
   案件詳細ページ(検索結果 → 詳細 → エントリー の導線)
   ----------------------------------------------------------- */
.ccm-breadcrumb { font-size: 0.85em; color: var(--ccm-text-light); margin: 0 0 14px; }
.ccm-breadcrumb a { color: var(--ccm-text-light); text-decoration: none; }
.ccm-breadcrumb a:hover { color: var(--ccm-primary); text-decoration: underline; }
.ccm-breadcrumb span[aria-hidden] { margin: 0 6px; }

.ccm-shift-single-head { margin-bottom: 22px; }
.ccm-shift-single-title { margin: 10px 0 0; }

.ccm-shift-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	align-items: start;
}
.ccm-shift-single-main { min-width: 0; }
.ccm-shift-single-content { line-height: 1.9; }
.ccm-shift-single-back { margin-top: 28px; }

/* エントリー用の追従カード */
.ccm-shift-single-side { position: sticky; top: 90px; display: grid; gap: 14px; }
.ccm-entry-box { padding: 20px; }
.ccm-entry-box-label { font-size: 0.8em; color: var(--ccm-text-light); margin: 0; }
.ccm-entry-box-wage {
	/* v0.29.72: 金額だけを大きく見せる。「円」は控えめに添える。 */
	font-size: 2.5em;
	font-weight: 700;
	color: var(--ccm-primary);
	margin: 2px 0 8px;
	line-height: 1.15;
	letter-spacing: -0.01em;
}
.ccm-entry-box-wage .ccm-entry-box-amount { font-size: 1em; }
.ccm-entry-box-wage .ccm-entry-box-yen { font-size: 0.4em; font-weight: 500; margin-left: 3px; }
.ccm-entry-box-meta {
	margin: 14px 0 18px;
	padding-top: 14px;
	border-top: 1px solid var(--ccm-border);
	font-size: 0.88em;
}
.ccm-entry-box-meta dt { color: var(--ccm-text-light); margin-top: 8px; }
.ccm-entry-box-meta dt:first-child { margin-top: 0; }
.ccm-entry-box-meta dd { margin: 2px 0 0; }
.ccm-entry-box-status { display: block; text-align: center; margin: 0 0 10px; }
.ccm-entry-box .ccm-form-hint { margin-top: 10px; }

.ccm-entry-box-clinic { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.ccm-entry-box-clinic img { border-radius: 10px; flex: none; }
.ccm-entry-box-clinic-name { margin: 2px 0 0; font-weight: 600; }

/* 検索結果カードの操作エリア */
.ccm-shift-card-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ccm-shift-title a { color: inherit; text-decoration: none; }
.ccm-shift-title a:hover { color: var(--ccm-primary); }

@media (max-width: 860px) {
	.ccm-shift-single-layout { grid-template-columns: 1fr; }
	.ccm-shift-single-side { position: static; }
}

/* ==================================================================
   スマートフォン向けのダッシュボード最適化(v0.16.0)

   ダッシュボードは列数の多い表を使うため、狭い画面では横スクロールが
   発生して読みにくかった。760px以下では表を1件=1カード の縦積みに
   組み替え、各項目に見出し(data-label)を添えて読めるようにする。
   ================================================================== */

@media (max-width: 760px) {

	/* ---- 表をカード表示に組み替える ---- */
	.ccm-table-wrap {
		overflow-x: visible;
		border: none;
		border-radius: 0;
		margin-bottom: 24px;
	}
	.ccm-table,
	.ccm-table tbody,
	.ccm-table tr,
	.ccm-table td {
		display: block;
		width: 100%;
	}
	/* 見出し行はカード表示では不要(各セルに data-label で見出しを出す) */
	.ccm-table thead { display: none; }

	.ccm-table tr {
		background: var(--ccm-bg);
		border: 1px solid var(--ccm-border);
		border-radius: var(--ccm-radius-md);
		padding: 4px 16px;
		margin-bottom: 14px;
		box-shadow: var(--ccm-shadow);
	}
	.ccm-table tr:last-child { margin-bottom: 0; }

	.ccm-table td {
		border-bottom: 1px solid var(--ccm-border);
		padding: 10px 0;
		font-size: 0.95em;
	}
	.ccm-table tr td:last-child { border-bottom: none; }

	/* 項目名(表の見出しの代わり) */
	.ccm-table td[data-label]::before {
		content: attr(data-label);
		display: block;
		font-size: 0.78em;
		font-weight: 700;
		color: var(--ccm-text-light);
		margin-bottom: 4px;
	}
	/* 「該当なし」等の1セル行は見出しを出さず中央に */
	.ccm-table td[colspan] { text-align: center; color: var(--ccm-text-light); }

	/* 案件名など長い値は折り返す */
	.ccm-table td { word-break: break-word; }

	/* 応募者セル(アイコン+名前+経歴)の折り返し */
	.ccm-worker-cell { flex-wrap: wrap; }

	/* 操作セルのボタン・フォームは全幅にして押しやすくする */
	.ccm-entry-actions > *,
	.ccm-table .ccm-inline-form {
		display: block;
		width: 100%;
		margin-bottom: 8px;
	}
	.ccm-table .ccm-btn,
	.ccm-table .ccm-input,
	.ccm-table select.ccm-input {
		width: 100%;
		max-width: none;
	}
	/* 淡い色のボタンは白背景のカード上で沈むため、輪郭を足して押せると分かるようにする */
	.ccm-table .ccm-btn-ghost { border: 1px solid var(--ccm-border); }

	/* ---- フォーム ---- */
	/* iOSは16px未満の入力欄にフォーカスすると自動でズームするため16pxを確保 */
	.ccm-input,
	select.ccm-input,
	textarea.ccm-input { font-size: 16px; }
	.ccm-input-small { max-width: none; }

	/* ---- ボタンのタップ領域 ---- */
	.ccm-btn { min-height: 44px; padding: 12px 20px; }
	.ccm-btn-small { min-height: 40px; }

	/* 単独で置かれるボタンは全幅にする(フォーム送信・エントリー等) */
	.ccm-form > .ccm-btn,
	.ccm-inline-detail-form .ccm-btn,
	.ccm-card .ccm-inline-form .ccm-btn { width: 100%; }
	/* カード内の入力欄(振込依頼額など)も横幅いっぱいに */
	.ccm-card .ccm-inline-form { display: block; width: 100%; }
	.ccm-card .ccm-inline-form label { display: block; margin-bottom: 10px; }

	/* ---- タブ(マイページ / 募集情報) ---- */
	.ccm-tabs {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.ccm-tabs::-webkit-scrollbar { display: none; }
	.ccm-tab { padding: 12px 16px; font-size: 14px; white-space: nowrap; }

	/* ---- 見出し・余白を詰める ---- */
	.ccm-section-title { font-size: 1.1em; margin: 28px 0 12px; }
	.ccm-card { padding: 18px 16px; }

	/* 見出しと操作ボタンが横並びのブロック */
	.ccm-section-head { flex-direction: column; align-items: stretch; gap: 10px; }
	.ccm-section-head .ccm-btn { width: 100%; }

	/* ---- 統計値 ---- */
	.ccm-stat-value { font-size: 1.6em; }

	/* ---- 案件投稿フォームのカレンダー ---- */
	.ccm-calendar { width: 100%; }
	.ccm-calendar-grid { font-size: 0.9em; }

	/* ---- プロフィールの資格チェックボックス等 ---- */
	.ccm-field-row .ccm-field { flex: 1 1 100%; }
}

/* 実務経験(職種ごとの年数入力) */
.ccm-exp-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 760px; }
.ccm-exp-row[hidden] { display: none; }
.ccm-exp-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 12px;
	background: var(--ccm-bg-soft);
	border-radius: var(--ccm-radius-md);
}
.ccm-exp-label { font-size: 0.92em; }
.ccm-exp-input { display: flex; align-items: center; gap: 6px; flex: none; }
.ccm-exp-input .ccm-input { width: 90px; max-width: 90px; text-align: right; background: #fff; }
.ccm-exp-unit { font-size: 0.9em; color: var(--ccm-text-light); }

@media (max-width: 760px) {
	.ccm-exp-grid { max-width: none; grid-template-columns: 1fr; }
	.ccm-exp-input .ccm-input { width: 100px; max-width: 100px; }
}

/* 未読メッセージ件数のバッジ(ダッシュボードの一覧) */
.ccm-unread-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	margin-left: 4px;
	border-radius: 999px;
	background: #e5484d;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	vertical-align: middle;
}

/* 実働時間の承認(クリニック側) */
.ccm-hours-review {
	background: #fff8e8;
	border: 1px solid #f0d9a8;
	border-radius: var(--ccm-radius-md);
	padding: 14px 16px;
	margin-bottom: 10px;
}
.ccm-hours-review-title { font-weight: 700; margin: 0 0 8px; color: #8a6516; }
.ccm-hours-review p { margin: 0 0 8px; font-size: 0.92em; }

/* 実働時間の承認待ちステータス */
.ccm-status-hours_pending { background: #fff4e0; color: #a86a12; }

/* マッチング成立(事前お支払い)の確認欄 */
.ccm-match-confirm {
	background: #eef6ff;
	border: 1px solid #c9dffa;
	border-radius: var(--ccm-radius-md);
	padding: 14px 16px;
	margin-bottom: 10px;
}
.ccm-match-confirm p { margin: 0 0 8px; font-size: 0.92em; }
.ccm-match-confirm p:last-child { margin-bottom: 0; }
.ccm-match-confirm strong { color: var(--ccm-primary, #2f7ec9); }

/* メッセージの定型文ボタン */
.ccm-message-templates { margin: 16px 0 10px; }
.ccm-message-templates-title { font-weight: 700; font-size: 0.86em; margin: 0 0 8px; color: var(--ccm-text-light); }
.ccm-message-template-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ccm-template-btn {
	background: var(--ccm-primary-light);
	color: var(--ccm-primary-dark);
	border: 1px solid var(--ccm-primary);
	border-radius: var(--ccm-radius-pill);
	padding: 7px 14px;
	font-size: 0.84em;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.4;
}
.ccm-template-btn:hover { background: var(--ccm-primary); color: #fff; }

/* 当日のご案内(メッセージ画面の折りたたみ) */
.ccm-day-info { margin-top: 18px; }
.ccm-day-info .ccm-info-table { margin-top: 10px; }

/* 振込予定日のご案内 */
.ccm-payout-schedule {
	margin: 10px 0 0;
	padding: 10px 14px;
	background: var(--ccm-primary-light);
	border-radius: var(--ccm-radius-md);
	font-size: 0.9em;
}
.ccm-payout-schedule strong { color: var(--ccm-primary-dark); }


/* ---------- マッチング成立後のキャンセル(利用規約 第5条) ---------- */
.ccm-cancel-box > summary {
	color: #b3411f;
}

.ccm-cancel-box .ccm-cancel-rate {
	margin: 0.6rem 0 0.4rem;
	padding: 0.7rem 0.9rem;
	background: #fbe9e7;
	border-radius: 8px;
	color: #8c2f16;
	line-height: 1.7;
}

.ccm-cancel-box .ccm-cancel-rate strong {
	font-size: 1.1em;
}

.ccm-btn-danger {
	background: #c0392b;
	border: 1px solid #c0392b;
	color: #fff;
}

.ccm-btn-danger:hover,
.ccm-btn-danger:focus {
	background: #a53024;
	border-color: #a53024;
	color: #fff;
}

.ccm-cancel-summary {
	margin-top: 0.4rem;
	color: #8c2f16;
	font-size: 0.9rem;
	line-height: 1.7;
}

/* ---------- メールが届かないときのご案内(登録・ログイン) ---------- */
.ccm-mail-notice {
	margin: 1.2rem 0;
	padding: 0.9rem 1.1rem;
	background: #fffaf0;
	border: 1px solid #f0dfb8;
	border-radius: 10px;
	font-size: 0.86rem;
	line-height: 1.85;
	color: #6b5729;
}

.ccm-mail-notice-title {
	margin: 0 0 0.4rem;
	font-weight: 600;
	color: #8a6d1f;
}

.ccm-mail-notice ul {
	margin: 0;
	padding-left: 1.2rem;
}

.ccm-mail-notice li {
	margin-bottom: 0.25rem;
}

.ccm-mail-notice li:last-child {
	margin-bottom: 0;
}

.ccm-mail-notice strong {
	color: #5a4715;
}

/* ==========================================================
   v0.25.0 マイページ「対応をお願いします」
   稼働終了の報告・未読メッセージを最上部にまとめて表示する
   ========================================================== */
.ccm-todo{margin:0 0 34px;padding:22px 22px 8px;border:1px solid #ffd9a8;border-radius:14px;background:#fffaf2}
.ccm-todo-title{margin:0 0 16px;font-size:16px;color:#8a5a12;display:flex;align-items:center;gap:8px}
.ccm-todo-title::before{content:"";width:9px;height:9px;border-radius:50%;background:#f0932b;flex:none}

.ccm-todo-item{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:16px 18px;margin-bottom:14px;background:#fff;border:1px solid #f0e3cf;border-radius:10px}
.ccm-todo-body{flex:1 1 260px;min-width:0}
.ccm-todo-label{margin:0 0 5px;font-size:12px;font-weight:700;letter-spacing:.06em;color:#c2761a}
.ccm-todo-unread .ccm-todo-label{color:#028090}
.ccm-todo-text{margin:0;font-size:14px;line-height:1.75;color:#2f3a3a}
.ccm-todo-btn{flex:none;white-space:nowrap}

/* 稼働終了の報告フォームは常時表示（折りたたみの見た目だけ残す） */
.ccm-inline-details-open > summary{font-weight:700;color:#028090;cursor:default;list-style:none;margin-bottom:8px}
.ccm-inline-details-open > summary::-webkit-details-marker{display:none}

@media (max-width:600px){
  .ccm-todo{padding:18px 16px 6px}
  .ccm-todo-item{padding:14px}
  .ccm-todo-btn{width:100%;text-align:center}
}

/* ==========================================================
   v0.26.0 勤務日の選択（1日だけの勤務にも対応）
   ========================================================== */
.ccm-workday-picker{margin:0 0 18px;padding:16px 16px 10px;border:1px solid #d3ebe8;border-radius:10px;background:#f7fcfb}
.ccm-workday-legend{padding:0 4px;font-size:14px;font-weight:700;color:#2f3a3a;display:flex;align-items:center;gap:8px}
.ccm-workday-required{font-size:11px;font-weight:700;color:#fff;background:#e07a5f;border-radius:4px;padding:2px 6px;letter-spacing:.04em}
.ccm-workday-hint{margin:8px 0 12px;font-size:12.5px;color:#74807e}
.ccm-workday-option{display:flex;align-items:center;gap:10px;padding:10px 12px;margin-bottom:8px;background:#fff;border:1px solid #e2efed;border-radius:8px;cursor:pointer;transition:border-color .2s ease,background-color .2s ease}
.ccm-workday-option:hover{border-color:#3ec9b0;background:#fbfffe}
.ccm-workday-option input{width:18px;height:18px;accent-color:#028090;flex:none;margin:0}
.ccm-workday-option:has(input:checked){border-color:#3ec9b0;background:#f2fbf9}
.ccm-workday-date{font-weight:700;color:#2f3a3a;font-variant-numeric:tabular-nums}
.ccm-workday-time{margin-left:auto;font-size:12.5px;color:#74807e}

/* 一覧に出す「勤務日」 */
.ccm-entry-dates{display:block;margin-top:5px;font-size:12px;color:#74807e;font-variant-numeric:tabular-nums}

@media (max-width:600px){
  .ccm-workday-time{margin-left:0;width:100%;padding-left:28px}
  .ccm-workday-option{flex-wrap:wrap}
}

/* ==========================================================
   v0.27.0 レビュー投稿フォーム
   総合評価=3段階の数字ボタン / 詳細項目=Good・Badの二択
   ========================================================== */
.ccm-review-form{max-width:560px}
.ccm-review-lead{margin:0 0 20px;font-size:13.5px;color:#74807e}

.ccm-review-block{margin-bottom:26px}
.ccm-review-block-title{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:14px;font-weight:700;color:#2f3a3a}
.ccm-review-badge{font-size:11px;font-weight:700;color:#74807e;background:#eef2f1;border-radius:4px;padding:2px 7px;letter-spacing:.04em}
.ccm-review-badge-required{color:#fff;background:#00a896}

/* 総合評価 1〜3 */
.ccm-rating-choice{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ccm-rating-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:14px 6px;border:1px solid #dfe9e7;border-radius:10px;background:#fff;cursor:pointer;text-align:center;transition:border-color .2s ease,background-color .2s ease,color .2s ease}
.ccm-rating-option input{position:absolute;opacity:0;width:0;height:0}
.ccm-rating-num{font-size:19px;font-weight:700;color:#2f3a3a;line-height:1.2}
.ccm-rating-label{font-size:11.5px;color:#74807e}
.ccm-rating-option:hover{border-color:#3ec9b0}
.ccm-rating-option:has(input:checked){background:#00a896;border-color:#00a896}
.ccm-rating-option:has(input:checked) .ccm-rating-num,
.ccm-rating-option:has(input:checked) .ccm-rating-label{color:#fff}
.ccm-rating-option:has(input:focus-visible){outline:2px solid #3ec9b0;outline-offset:2px}

/* 詳細項目 Good / Bad */
.ccm-criteria-row{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px dashed #e6efed}
.ccm-criteria-row:last-child{border-bottom:none}
.ccm-criteria-text{flex:1 1 auto;min-width:0}
.ccm-criteria-label{display:block;font-size:13.5px;font-weight:700;color:#2f3a3a}
.ccm-criteria-hint{display:block;margin-top:2px;font-size:11.5px;color:#9aa5a3}
.ccm-criteria-recommend{margin-top:10px;padding:14px 16px;border:1px solid #dfe9e7;border-radius:10px;background:#f8fbfa;border-bottom:1px solid #dfe9e7}

.ccm-gb-choice{flex:none;display:flex;border:1px solid #dfe9e7;border-radius:8px;overflow:hidden;background:#fff}
.ccm-gb-option{position:relative;padding:7px 16px;font-size:12.5px;color:#74807e;cursor:pointer;transition:background-color .18s ease,color .18s ease}
.ccm-gb-option + .ccm-gb-option{border-left:1px solid #dfe9e7}
.ccm-gb-option input{position:absolute;opacity:0;width:0;height:0}
.ccm-gb-good:hover{background:#f1faf8}
.ccm-gb-bad:hover{background:#fdf5f1}
.ccm-gb-good:has(input:checked){background:#00a896;color:#fff;font-weight:700}
.ccm-gb-bad:has(input:checked){background:#f2b56b;color:#fff;font-weight:700}
.ccm-gb-option:has(input:focus-visible){outline:2px solid #3ec9b0;outline-offset:-2px}

.ccm-review-comment{width:100%;box-sizing:border-box}
.ccm-review-submit{width:100%;margin-top:4px;padding:13px}

/* プロフィールの評価表示（3段階） */
.ccm-rating-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px}
.ccm-rating-score{font-size:20px;font-weight:700;color:#028090}
.ccm-rating-scale{font-size:12.5px;color:#9aa5a3}
.ccm-rating-count{font-size:12.5px;color:#74807e}
.ccm-rating-recommend{margin-left:6px;font-size:12px;font-weight:700;color:#00a896;background:#e8f7f4;border-radius:99px;padding:3px 10px}

@media (max-width:600px){
  .ccm-criteria-row{flex-wrap:wrap}
  .ccm-gb-choice{width:100%}
  .ccm-gb-option{flex:1;text-align:center}
}

/* ==========================================================
   v0.28.0 ご利用状況の数字をリンク化 / 直接雇用の確定を分かりやすく
   ========================================================== */

/* 数字カード（押せることが分かるように） */
.ccm-stat-link{display:block;text-decoration:none;color:inherit;position:relative;transition:transform .22s cubic-bezier(.2,.7,.3,1),box-shadow .22s ease,border-color .22s ease}
.ccm-stat-link:hover{transform:translateY(-3px);border-color:#3ec9b0;box-shadow:0 10px 24px rgba(2,128,144,.12)}
.ccm-stat-link:focus-visible{outline:2px solid #3ec9b0;outline-offset:2px}
.ccm-stat-more{display:block;margin-top:10px;font-size:12px;font-weight:700;color:#028090;opacity:.75;transition:opacity .22s ease,transform .22s ease}
.ccm-stat-link:hover .ccm-stat-more{opacity:1;transform:translateX(3px)}

/* 直接雇用の確定 */
.ccm-hire-form{border:1px solid #f0dcc4;border-radius:10px;background:#fffaf3;padding:16px 16px 14px}
.ccm-hire-desc{margin:0 0 12px;font-size:13px;line-height:1.85;color:#2f3a3a}
.ccm-hire-fee{display:flex;align-items:baseline;gap:10px;padding:11px 14px;margin-bottom:12px;background:#fff;border:1px solid #eadcc6;border-radius:8px}
.ccm-hire-fee-label{font-size:12px;font-weight:700;color:#8a5a12}
.ccm-hire-fee-value{font-size:19px;font-weight:700;color:#c2761a;font-variant-numeric:tabular-nums}
.ccm-hire-notes{margin:0 0 14px;padding-left:1.2em;font-size:12.5px;line-height:1.9;color:#74807e}
.ccm-hire-notes li{margin-bottom:3px}
.ccm-hire-notes strong{color:#c2761a}
.ccm-hire-submit{width:100%;border-color:#e0a860;color:#a8620f}
.ccm-hire-submit:hover{background:#fdf3e6}

@media (max-width:600px){
  .ccm-hire-fee{flex-wrap:wrap;gap:4px}
}

/* ==========================================================
   v0.29.0 クライアントご指摘対応
   （アバター初期表示 / メッセージ導線 / 口コミ導線 / 案件詳細リンク）
   ========================================================== */

/* 未設定プロフィール画像の代替（外部Gravatarを使わず頭文字を表示） */
.ccm-avatar-placeholder{display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:50%;background:linear-gradient(135deg,#3ec9b0,#028090);color:#fff;font-weight:700;letter-spacing:.02em;line-height:1;text-transform:uppercase;overflow:hidden;vertical-align:middle;user-select:none}

/* メッセージボタン（「メッセージ」の文字だけでは押せると分からない、というご指摘への対応） */
/* v0.29.64: アイコン付きボタンの共通の並べ方(「メッセージを送る」と同じ形にそろえる) */
.ccm-msg-btn,
.ccm-icon-btn{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.ccm-msg-icon,
.ccm-btn-icon{flex:none;display:block;transition:transform .18s ease}
.ccm-icon-btn:hover .ccm-btn-icon{transform:translateY(-1px)}
.ccm-msg-btn:hover .ccm-msg-icon{transform:translateY(-1px)}
.ccm-msg-icon{transition:transform .18s ease}

/* 案件タイトルから募集詳細ページへ */
.ccm-shift-title-link{color:inherit;text-decoration:none;border-bottom:1px solid rgba(2,128,144,.28);transition:color .18s ease,border-color .18s ease}
.ccm-shift-title-link:hover{color:#028090;border-bottom-color:#028090}

/* やることリスト：クリニックへの口コミ（任意） */
.ccm-todo-review{border-left-color:#3ec9b0}
.ccm-todo-optional{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:#eef7f5;border:1px solid #d3ebe8;color:#5b6a68;font-size:11px;font-weight:700;vertical-align:middle}

/* v0.29.4: 見出しをクリックして開閉するセクション(ワーカーマイページのプロフィール編集) */
details.ccm-section-fold { margin: 40px 0 16px; }
details.ccm-section-fold > summary.ccm-section-title {
	cursor: pointer; list-style: none; position: relative;
	margin: 0; padding-right: 64px; font-weight: bold;
}
details.ccm-section-fold > summary.ccm-section-title::-webkit-details-marker { display: none; }
details.ccm-section-fold > summary.ccm-section-title::after {
	content: '開く +'; position: absolute; right: 0; bottom: 10px;
	font-size: 12px; font-weight: normal; color: var(--ccm-primary, #028090);
}
details.ccm-section-fold[open] > summary.ccm-section-title::after { content: '閉じる −'; }
details.ccm-section-fold > summary.ccm-section-title:hover { color: var(--ccm-primary, #028090); }
details.ccm-section-fold > summary.ccm-section-title:focus-visible {
	outline: 2px solid var(--ccm-primary, #028090); outline-offset: 3px;
}
.ccm-section-fold-body { padding-top: 16px; }

/* ---------- v0.29.4: ワーカーマイページのサイドナビゲーション ---------- */
.ccm-dash-layout {
	display: grid;
	grid-template-columns: 228px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
	margin-top: 24px;
}
.ccm-dash-nav {
	min-width: 0;
	/*
	 * v0.29.19: サイドナビがスクロールに追従しなかった不具合の修正。
	 *
	 * .ccm-dash-layout に align-items: start が入っているため、この列の高さが
	 * ナビの中身ぶんしかなく、position: sticky が動ける余地が無かった
	 * (少し下へスクロールしただけでナビが画面外へ流れてしまっていた)。
	 * 列そのものを本文と同じ高さまで伸ばすことで、最後まで追従するようになる。
	 */
	align-self: stretch;
	height: 100%;
}
.ccm-dash-main { min-width: 0; }
.ccm-dash-nav-inner {
	/*
	 * v0.29.19: スクロールしてもナビが常に見えているようにする。
	 * 項目が増えて画面の高さに収まらない場合は、ナビの中だけをスクロールさせる
	 * (そうしないと sticky が効かず、下の項目が永久に見えなくなるため)。
	 */
	position: sticky; top: 90px;
	max-height: calc(100vh - 110px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--ccm-bg-soft, #f4f7f6);
	border: 1px solid var(--ccm-border, #e3e9e8);
	border-radius: var(--ccm-radius-md, 10px);
	padding: 16px 14px;
}
.ccm-dash-nav-title {
	margin: 0 0 8px; padding: 0 10px;
	font-size: 11px; font-weight: bold; letter-spacing: 0.14em;
	color: var(--ccm-text-light, #74807e);
}
.ccm-dash-nav-list { list-style: none; margin: 0 0 4px; padding: 0; }
.ccm-dash-nav-sub { margin-bottom: 0; }
.ccm-dash-nav-list + .ccm-dash-nav-title {
	margin-top: 18px; padding-top: 16px;
	border-top: 1px solid var(--ccm-border, #e3e9e8);
}
.ccm-dash-nav-link {
	display: flex; align-items: center; gap: 8px;
	padding: 9px 10px; border-radius: var(--ccm-radius-sm, 6px);
	font-size: 13.5px; line-height: 1.5; text-decoration: none;
	color: var(--ccm-text, #2f3a3a);
}
.ccm-dash-nav-link:hover { background: #fff; color: var(--ccm-primary-dark, #2a9d8a); }
.ccm-dash-nav-link:focus-visible { outline: 2px solid var(--ccm-primary-dark, #2a9d8a); outline-offset: 2px; }
.ccm-dash-nav-link.is-current {
	background: #fff; font-weight: bold; color: var(--ccm-primary-dark, #2a9d8a);
	box-shadow: inset 3px 0 0 var(--ccm-primary-dark, #2a9d8a);
}
.ccm-dash-nav-link.is-alert { color: var(--ccm-error-text, #d6455a); font-weight: bold; }
.ccm-dash-nav-count {
	margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: var(--ccm-radius-pill, 999px);
	background: var(--ccm-error-text, #d6455a); color: #fff;
	font-size: 11px; font-weight: bold; text-align: center;
	font-variant-numeric: tabular-nums;
}
.ccm-dash-nav-count.is-quiet { background: var(--ccm-border, #e3e9e8); color: var(--ccm-text-light, #74807e); }
/* 見出しがヘッダーの下に隠れないよう、アンカー位置を調整する */
#ccm-profile, #ccm-todo, #ccm-profile-edit, #ccm-entries, #ccm-payout,
#ccm-shifts, #ccm-history, #ccm-payment, #ccm-invoices, #ccm-overview, #ccm-balance,
.ccm-applicant[id] { scroll-margin-top: 100px; }

@media (max-width: 900px) {
	.ccm-dash-layout { grid-template-columns: 1fr; gap: 16px; }
	.ccm-dash-nav { position: sticky; top: 0; z-index: 30; }
	.ccm-dash-nav-inner {
		/* v0.29.19: スマホでも横並びのバーとして画面上部に貼り付け、常に切り替えられるようにする。 */
		position: static; padding: 10px 12px;
		max-height: none;
		display: flex; align-items: center; gap: 6px;
		overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch;
		background: #fff;
		box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
	}
	.ccm-dash-nav-title { display: none; }
	.ccm-dash-nav-list { display: flex; gap: 6px; margin: 0; }
	.ccm-dash-nav-list + .ccm-dash-nav-title { border: 0; }
	.ccm-dash-nav-sub::before {
		content: ''; flex: none; width: 1px; align-self: stretch;
		background: var(--ccm-border, #e3e9e8); margin: 0 4px;
	}
	.ccm-dash-nav-link { white-space: nowrap; padding: 7px 12px; border-radius: var(--ccm-radius-pill, 999px); }
	.ccm-dash-nav-link.is-current { box-shadow: none; background: var(--ccm-primary-light, #e6f7f4); }
}

/* ---------- v0.29.4: サイドナビ項目・必須表示・ToDoリスト ---------- */
.ccm-dash-nav-label { flex: 1 1 auto; min-width: 0; }
.ccm-dash-nav-note {
	flex: none; font-size: 11px; font-weight: normal;
	color: var(--ccm-text-light, #74807e); font-variant-numeric: tabular-nums;
}
.ccm-dash-nav-link.is-alert .ccm-dash-nav-note { color: var(--ccm-error-text, #d6455a); font-weight: bold; }
.ccm-dash-nav-count { margin-left: 0; }

/* 「プロフィール編集」見出しの未入力バッジ */
.ccm-required-flag {
	display: inline-block; margin-left: 10px; padding: 2px 9px;
	border-radius: var(--ccm-radius-pill, 999px);
	background: var(--ccm-error-bg, #fdecec); color: var(--ccm-error-text, #d6455a);
	border: 1px solid #f6cdd3; font-size: 11px; font-weight: bold; vertical-align: middle;
}

/* ToDoリスト */
.ccm-todo-lead { margin: -8px 0 16px; font-size: 13px; color: #8a5a12; }
.ccm-todo-empty { margin: 0 0 14px; font-size: 14px; color: #5b6a68; }
.ccm-todo.is-clear { border-color: var(--ccm-border, #e3e9e8); background: var(--ccm-bg-soft, #f4f7f6); }
.ccm-todo.is-clear .ccm-todo-title { color: var(--ccm-text, #2f3a3a); }
.ccm-todo.is-clear .ccm-todo-title::before { background: var(--ccm-primary, #3ec9b0); }
.ccm-todo.is-clear .ccm-todo-lead { color: var(--ccm-text-light, #74807e); }

/* セクション見出しの補足文 */
.ccm-section-lead { margin: -8px 0 14px; font-size: 13px; color: var(--ccm-text-light, #74807e); }
#ccm-balance, #ccm-history { scroll-margin-top: 100px; }
.ccm-subsection-title { margin: 28px 0 10px; font-size: 15px; color: var(--ccm-text, #2f3a3a); }

/* v0.29.4: ワーカー番号 */
.ccm-worker-no { margin: 4px 0 10px; font-size: 13px; color: var(--ccm-text-light, #74807e); }
.ccm-worker-no strong {
	display: inline-block; padding: 2px 10px; margin-right: 10px;
	border-radius: var(--ccm-radius-sm, 6px);
	background: var(--ccm-primary-light, #e6f7f4); color: var(--ccm-primary-dark, #2a9d8a);
	font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
}
.ccm-worker-no-hint { font-size: 12px; }

/* ---------- v0.29.4: 応募者(エントリー)一覧のカード表示 ---------- */
.ccm-applicant-list { display: flex; flex-direction: column; gap: 18px; margin: 6px 0 0; }
.ccm-applicant {
	border: 1px solid var(--ccm-border, #e3e9e8);
	border-radius: var(--ccm-radius-lg, 16px);
	background: #fff;
	box-shadow: var(--ccm-shadow, 0 2px 14px rgba(30,40,40,.07));
	overflow: hidden;
}
.ccm-applicant-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	padding: 16px 20px;
	background: var(--ccm-bg-soft, #f4f7f6);
	border-bottom: 1px solid var(--ccm-border, #e3e9e8);
}
.ccm-applicant-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ccm-applicant-who img { border-radius: 50%; }
.ccm-applicant-who-text { min-width: 0; }
.ccm-applicant-name { margin: 0; font-size: 16px; font-weight: bold; color: var(--ccm-text, #2f3a3a); line-height: 1.4; }
.ccm-applicant-meta {
	margin: 2px 0 0; font-size: 12.5px; color: var(--ccm-text-light, #74807e);
	font-variant-numeric: tabular-nums;
}

.ccm-applicant-facts {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1px; margin: 0; padding: 0;
	background: var(--ccm-border, #e3e9e8);
	border-bottom: 1px solid var(--ccm-border, #e3e9e8);
}
.ccm-applicant-facts > div { background: #fff; padding: 13px 20px; min-width: 0; }
.ccm-applicant-facts dt {
	margin: 0 0 4px; font-size: 11px; font-weight: bold; letter-spacing: 0.08em;
	color: var(--ccm-text-light, #74807e);
}
.ccm-applicant-facts dd {
	margin: 0; font-size: 14px; line-height: 1.6; color: var(--ccm-text, #2f3a3a);
	overflow-wrap: anywhere;
}
.ccm-applicant-facts dd strong { font-size: 16px; }
.ccm-applicant-sub { display: block; font-size: 12px; color: var(--ccm-text-light, #74807e); margin-top: 2px; }
.ccm-applicant-flag {
	display: inline-block; padding: 2px 10px; border-radius: var(--ccm-radius-pill, 999px);
	font-size: 11.5px; font-weight: bold;
	background: #f1f4f3; color: var(--ccm-text-light, #74807e); border: 1px solid var(--ccm-border, #e3e9e8);
}
.ccm-applicant-flag.is-yes {
	background: var(--ccm-primary-light, #e6f7f4); color: var(--ccm-primary-dark, #2a9d8a); border-color: #bfe9e1;
}

.ccm-applicant-profile { border-bottom: 1px solid var(--ccm-border, #e3e9e8); }
.ccm-applicant-profile > summary {
	cursor: pointer; list-style: none; position: relative;
	padding: 13px 44px 13px 20px;
	font-size: 13.5px; font-weight: bold; color: var(--ccm-primary-dark, #2a9d8a);
}
.ccm-applicant-profile > summary::-webkit-details-marker { display: none; }
.ccm-applicant-profile > summary::after {
	content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
	font-size: 18px; font-weight: normal;
}
.ccm-applicant-profile[open] > summary::after { content: '−'; }
.ccm-applicant-profile > summary:focus-visible { outline: 2px solid var(--ccm-primary-dark, #2a9d8a); outline-offset: -2px; }
/* 開いた中身は横幅いっぱいに広げる(旧テーブル表示では潰れて見えなかった) */
.ccm-applicant-profile-body { display: block; width: 100%; padding: 4px 20px 20px; }
.ccm-applicant-profile-body .ccm-worker-profile-view { margin-top: 0; }
.ccm-applicant-profile-body .ccm-table-wrap { overflow-x: auto; }

.ccm-applicant-actions { padding: 16px 20px 18px; }
.ccm-applicant-actions > p:first-child { margin-top: 0; }

@media (max-width: 640px) {
	.ccm-applicant-head,
	.ccm-applicant-facts > div,
	.ccm-applicant-profile > summary,
	.ccm-applicant-profile-body,
	.ccm-applicant-actions { padding-left: 14px; padding-right: 14px; }
	.ccm-applicant-facts { grid-template-columns: 1fr; }
	.ccm-applicant-profile > summary { padding-right: 38px; }
	.ccm-applicant-profile > summary::after { right: 14px; }
}

/* ---------- v0.29.6: プロフィール編集のポップアップ ---------- */
/* JavaScript が動いたときだけモーダルになる。動かない場合は通常のセクションとして表示する。 */
.ccm-modal.is-modal {
	display: none; position: fixed; inset: 0; z-index: 10000;
	align-items: flex-start; justify-content: center;
	padding: 24px 16px; overflow-y: auto; overscroll-behavior: contain;
}
.ccm-modal.is-modal.is-open { display: flex; }
.ccm-modal-backdrop { display: none; }
.ccm-modal.is-modal .ccm-modal-backdrop {
	display: block; position: fixed; inset: 0;
	background: rgba(24, 38, 38, 0.55); backdrop-filter: blur(2px);
}
.ccm-modal.is-modal .ccm-modal-panel {
	position: relative; z-index: 1;
	width: 100%; max-width: 720px; margin: auto;
	background: #fff; border-radius: var(--ccm-radius-lg, 16px);
	box-shadow: 0 18px 50px rgba(16, 30, 30, 0.28);
	display: flex; flex-direction: column; max-height: calc(100vh - 48px);
}
.ccm-modal-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 18px 22px; border-bottom: 1px solid var(--ccm-border, #e3e9e8);
}
.ccm-modal.is-modal .ccm-modal-head {
	position: sticky; top: 0; background: #fff; z-index: 1;
	border-radius: var(--ccm-radius-lg, 16px) var(--ccm-radius-lg, 16px) 0 0;
}
.ccm-modal-title { margin: 0; font-size: 17px; color: var(--ccm-text, #2f3a3a); }
.ccm-modal-close {
	flex: none; width: 34px; height: 34px; line-height: 1; font-size: 22px;
	border: 1px solid var(--ccm-border, #e3e9e8); border-radius: 50%;
	background: #fff; color: var(--ccm-text-light, #74807e); cursor: pointer;
}
.ccm-modal.is-modal .ccm-modal-close:hover { background: var(--ccm-bg-soft, #f4f7f6); color: var(--ccm-text, #2f3a3a); }
.ccm-modal-close:focus-visible { outline: 2px solid var(--ccm-primary-dark, #2a9d8a); outline-offset: 2px; }
.ccm-modal-body { padding: 20px 22px 24px; }
.ccm-modal.is-modal .ccm-modal-body { overflow-y: auto; }
/* JavaScript未使用時は、見出しを通常のセクションタイトルとして見せる */
.ccm-modal:not(.is-modal) { margin: 40px 0 16px; }
.ccm-modal:not(.is-modal) .ccm-modal-close { display: none; }
.ccm-modal:not(.is-modal) .ccm-modal-head { padding: 0 0 12px; border-bottom: 2px solid var(--ccm-border, #e3e9e8); }
.ccm-modal:not(.is-modal) .ccm-modal-body { padding: 16px 0 0; }
body.ccm-modal-open { overflow: hidden; }

/* v0.29.51: 応募者の詳細ポップアップ下部の操作欄(マッチング確定・見送り) */
.ccm-modal-foot {
	flex: none; padding: 14px 22px 18px;
	border-top: 1px solid var(--ccm-border, #e3e9e8);
	background: var(--ccm-bg-soft, #f4f7f6);
	border-radius: 0 0 var(--ccm-radius-lg, 16px) var(--ccm-radius-lg, 16px);
}
.ccm-modal:not(.is-modal) .ccm-modal-foot {
	background: none; border-radius: 0; padding-left: 0; padding-right: 0;
}
.ccm-modal-foot-note { margin: 0 0 10px; font-size: 14px; color: var(--ccm-text, #2f3a3a); }
.ccm-modal-foot-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ccm-modal-foot-actions .ccm-inline-form { flex: 1 1 180px; margin: 0; }
.ccm-modal-foot-actions .ccm-btn { width: 100%; }
.ccm-modal-foot-actions .ccm-btn-outline { background: #fff; }
@media (max-width: 480px) {
	.ccm-modal-foot { padding-left: 16px; padding-right: 16px; }
	/* 縦並びのときは、よく使う「確定する」を上に置く */
	.ccm-modal-foot-actions { flex-direction: column-reverse; }
	.ccm-modal-foot-actions .ccm-inline-form { flex: 1 1 100%; }
}

.ccm-profile-actions { margin: 12px 0 0; }
.ccm-profile-actions .ccm-dash-nav-count { margin-left: 8px; }
.ccm-btn-alert {
	border-color: var(--ccm-error-text, #d6455a) !important;
	color: var(--ccm-error-text, #d6455a) !important;
}

@media (max-width: 640px) {
	.ccm-modal.is-modal { padding: 0; }
	.ccm-modal.is-modal .ccm-modal-panel { max-width: none; border-radius: 0; max-height: 100vh; min-height: 100vh; }
	.ccm-modal.is-modal .ccm-modal-head { border-radius: 0; }
	.ccm-modal-head, .ccm-modal-body { padding-left: 16px; padding-right: 16px; }
}
.ccm-modal-body > *:first-child { margin-top: 0; }
.ccm-modal-body .ccm-form > *:first-child,
.ccm-modal-body .ccm-form-section-title:first-child { margin-top: 0; }

/* v0.29.10: 1つの項目の中に置く小見出し(制服の種類・補足など) */
.ccm-field-sublabel { display: block; margin-top: 10px; font-size: 0.86em; color: var(--ccm-text-light, #74807e); font-weight: bold; }

/* v0.29.11: 表の中のボタンが2行に折り返して読みにくかったため、折り返さない */
.ccm-table .ccm-btn, .ccm-btn-small { white-space: nowrap; }
.ccm-btn-stop { display: inline-flex; align-items: center; gap: 6px; }
.ccm-btn-stop svg { flex: none; }
.ccm-table td[data-label="操作"] { white-space: nowrap; }
.ccm-table td[data-label="時給"], .ccm-table td[data-label="エントリー数"] { white-space: nowrap; }

/* v0.29.14: 実働時間のやりとりの履歴 */
.ccm-worklog { margin: 12px 0 0; border: 1px solid var(--ccm-border, #e3e9e8); border-radius: var(--ccm-radius-md, 10px); background: var(--ccm-bg-soft, #f4f7f6); }
.ccm-worklog > summary { cursor: pointer; padding: 10px 14px; font-size: 13px; font-weight: bold; color: var(--ccm-primary-dark, #2a9d8a); }
.ccm-worklog > summary:focus-visible { outline: 2px solid var(--ccm-primary-dark, #2a9d8a); outline-offset: -2px; }
.ccm-worklog-list { list-style: none; margin: 0; padding: 0 14px 4px; }
.ccm-worklog-item {
	display: grid; grid-template-columns: 116px 74px 70px 76px 1fr; gap: 4px 10px;
	align-items: baseline; padding: 9px 0; font-size: 13px; line-height: 1.6;
	border-top: 1px solid var(--ccm-border, #e3e9e8);
}
.ccm-worklog-when { color: var(--ccm-text-light, #74807e); font-variant-numeric: tabular-nums; }
.ccm-worklog-action { font-weight: bold; }
.ccm-worklog-item.is-rejected .ccm-worklog-action { color: var(--ccm-error-text, #d6455a); }
.ccm-worklog-item.is-approved .ccm-worklog-action,
.ccm-worklog-item.is-confirmed .ccm-worklog-action { color: var(--ccm-primary-dark, #2a9d8a); }
.ccm-worklog-who { color: var(--ccm-text-light, #74807e); }
.ccm-worklog-hours { font-variant-numeric: tabular-nums; }
.ccm-worklog-note { color: var(--ccm-text, #2f3a3a); overflow-wrap: anywhere; }
.ccm-worklog .ccm-form-hint { padding: 0 14px 12px; margin: 0; }
@media (max-width: 640px) {
	.ccm-worklog-item { grid-template-columns: 1fr 1fr; }
	.ccm-worklog-note { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------
 * 当日のご案内(マイページのエントリー一覧)  v0.29.16
 * ------------------------------------------------------------------ */
.ccm-day-info {
	margin-top: 10px;
	border: 1px solid var(--ccm-border);
	border-radius: 10px;
	background: var(--ccm-primary-light);
	padding: 8px 12px;
}
.ccm-day-info > summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	color: var(--ccm-primary-dark);
	list-style: none;
}
.ccm-day-info > summary::-webkit-details-marker { display: none; }
.ccm-day-info > summary::before {
	content: "▸";
	display: inline-block;
	margin-right: 6px;
	transition: transform .15s ease;
}
.ccm-day-info[open] > summary::before { transform: rotate(90deg); }
.ccm-day-info-list {
	margin: 8px 0 2px;
	font-size: 13px;
	line-height: 1.7;
}
.ccm-day-info-list dt {
	font-weight: 600;
	color: var(--ccm-primary-dark);
	margin-top: 6px;
}
.ccm-day-info-list dd {
	margin: 0 0 0 0;
	color: #333;
}

/* ------------------------------------------------------------------
 * クリニックのマイページ(サイドナビ構成)  v0.29.19
 * ワーカー側の .ccm-dash-* をそのまま使うため、差分だけを補う。
 * ------------------------------------------------------------------ */
.ccm-clinic-dashboard .ccm-modal-body .ccm-section-title:first-child {
	margin-top: 0;
}
.ccm-todo-empty {
	margin: 0;
	color: #5c7a80;
	font-size: 14px;
}

/* ------------------------------------------------------------------
 * 幅の広いポップアップ(案件投稿フォーム)  v0.29.21
 * 勤務日カレンダーや院内情報など、横に項目が並ぶフォーム向け。
 * ------------------------------------------------------------------ */
.ccm-modal.is-modal.ccm-modal-wide .ccm-modal-panel {
	max-width: 900px;
}
/* ポップアップの中ではカードの枠を重ねない(枠の二重線を避ける) */
.ccm-modal-body > .ccm-card.ccm-form {
	border: 0;
	box-shadow: none;
	padding: 0;
	background: transparent;
}

/* ------------------------------------------------------------------
 * エントリー一覧のレイアウト崩れの修正  v0.29.22
 *
 * 表のセルは中身の最大幅にあわせて広がるため、稼働終了の報告フォームや
 * 実働時間のやりとりが入ると列が800px以上に膨らみ、
 * サイドナビを付けて本文が狭くなったマイページで表が大きくはみ出していた。
 *
 * 列幅を割合で固定(table-layout: fixed)し、中身は折り返して収める。
 * ------------------------------------------------------------------ */
.ccm-entry-table {
	table-layout: fixed;
	width: 100%;
}
/*
 * v0.29.40: 案件の欄が狭く、案件名が何行にも折り返していたため配分を見直した。
 * ステータスはバッジ1つで足りるので、そのぶんを案件・操作へ回す。
 */
.ccm-entry-table th:nth-child(1), .ccm-entry-table td:nth-child(1) { width: 34%; }
.ccm-entry-table th:nth-child(2), .ccm-entry-table td:nth-child(2) { width: 14%; }
.ccm-entry-table th:nth-child(3), .ccm-entry-table td:nth-child(3) { width: 13%; }
.ccm-entry-table th:nth-child(4), .ccm-entry-table td:nth-child(4) { width: 39%; }

/* 長い案件名・申告メモなどは折り返して、列を押し広げない */
.ccm-entry-table td,
.ccm-entry-table td .ccm-form-hint,
.ccm-entry-table td .ccm-worklog-item,
.ccm-entry-table td .ccm-shift-title-link,
.ccm-entry-table td .ccm-entry-dates {
	overflow-wrap: anywhere;
	word-break: normal;
}

/* セル内のフォーム部品は列の幅いっぱいに収める */
.ccm-entry-table td .ccm-inline-details,
.ccm-entry-table td .ccm-inline-detail-form,
.ccm-entry-table td .ccm-worklog,
.ccm-entry-table td .ccm-day-info,
.ccm-entry-table td .ccm-inline-detail-form .ccm-input,
.ccm-entry-table td .ccm-inline-detail-form textarea,
.ccm-entry-table td .ccm-inline-detail-form .ccm-input-small {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.ccm-entry-table td .ccm-inline-detail-form .ccm-btn {
	width: 100%;
	justify-content: center;
}
.ccm-entry-table td .ccm-msg-btn {
	max-width: 100%;
}

@media (max-width: 760px) {
	/* カード表示(1件=1カード)のときは、割合指定を解除して幅いっぱいに戻す */
	.ccm-entry-table { table-layout: auto; }
	.ccm-entry-table td:nth-child(1),
	.ccm-entry-table td:nth-child(2),
	.ccm-entry-table td:nth-child(3),
	.ccm-entry-table td:nth-child(4) { width: 100%; }
}

/*
 * 狭い「操作」列に収まるよう、実働時間のやりとりは2列に折り返す。
 * 1fr は既定で minmax(auto, 1fr) となり中身の最小幅より縮まないため、
 * minmax(0, 1fr) を指定して列からはみ出さないようにする。
 */
.ccm-entry-table td .ccm-worklog-item {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.ccm-entry-table td .ccm-worklog-item > * {
	min-width: 0;
	overflow-wrap: anywhere;
}
.ccm-entry-table td .ccm-worklog-note,
.ccm-entry-table td .ccm-worklog-action {
	grid-column: 1 / -1;
}
.ccm-entry-table td .ccm-worklog-list {
	padding-left: 10px;
	padding-right: 10px;
}
/* 補足文は必ず折り返す(セルからはみ出さないように) */
.ccm-entry-table td .ccm-form-hint,
.ccm-entry-table td label > .ccm-form-hint {
	display: block;
	white-space: normal;
	max-width: 100%;
}
.ccm-entry-table td .ccm-inline-detail-form label {
	display: block;
	max-width: 100%;
}

/* ------------------------------------------------------------------
 * 未読メッセージのお知らせ(ダッシュボード上部)  v0.29.22
 *
 * 件数バッジだけでは気づかれず返信が遅れていたため、
 * 本文のいちばん上で、誰から・どの案件で・何が届いたのかを大きく出す。
 * ------------------------------------------------------------------ */
.ccm-unread-alert {
	margin: 0 0 24px;
	padding: 18px 20px;
	border: 2px solid var(--ccm-primary, #3ec9b0);
	border-radius: var(--ccm-radius-lg, 16px);
	background: var(--ccm-primary-light, #e6f7f4);
}
.ccm-unread-alert-head {
	display: flex; align-items: center; gap: 10px;
	margin-bottom: 12px;
}
.ccm-unread-alert-icon {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--ccm-primary-dark, #2a9d8a); color: #fff;
}
.ccm-unread-alert-title {
	margin: 0;
	font-size: 18px; line-height: 1.4; font-weight: 700;
	color: var(--ccm-primary-dark, #2a9d8a);
}
.ccm-unread-alert-title strong { font-size: 22px; }

.ccm-unread-alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ccm-unread-alert-item {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	padding: 12px 14px;
	background: #fff;
	border-radius: var(--ccm-radius-md, 10px);
}
.ccm-unread-alert-body { flex: 1 1 260px; min-width: 0; }
.ccm-unread-alert-meta {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	margin: 0 0 4px; font-size: 12.5px;
}
.ccm-unread-alert-from { font-weight: 700; color: var(--ccm-text, #2f3a3a); }
.ccm-unread-alert-count {
	padding: 1px 8px; border-radius: var(--ccm-radius-pill, 999px);
	background: var(--ccm-error-text, #d6455a); color: #fff; font-weight: 700;
}
.ccm-unread-alert-when { color: var(--ccm-text-light, #74807e); }
.ccm-unread-alert-shift {
	margin: 0 0 4px; font-size: 13px; font-weight: 600;
	color: var(--ccm-text-light, #74807e); overflow-wrap: anywhere;
}
.ccm-unread-alert-excerpt {
	margin: 0; font-size: 14px; line-height: 1.7;
	color: var(--ccm-text, #2f3a3a); overflow-wrap: anywhere;
}
.ccm-unread-alert-btn { flex: none; }

@media (max-width: 600px) {
	.ccm-unread-alert { padding: 14px; }
	.ccm-unread-alert-title { font-size: 16px; }
	.ccm-unread-alert-btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------------
 * 稼働履歴の表  v0.29.23
 *
 * 稼働履歴では「操作」にメッセージボタンしか無い一方、
 * ステータス欄にキャンセル理由の説明が入って縦に細長くなっていた。
 * 履歴のときだけ、ステータスを広く・操作を狭く配分し直す。
 * ------------------------------------------------------------------ */
.ccm-entry-table-history th:nth-child(1), .ccm-entry-table-history td:nth-child(1) { width: 30%; }
.ccm-entry-table-history th:nth-child(2), .ccm-entry-table-history td:nth-child(2) { width: 16%; }
.ccm-entry-table-history th:nth-child(3), .ccm-entry-table-history td:nth-child(3) { width: 32%; }
.ccm-entry-table-history th:nth-child(4), .ccm-entry-table-history td:nth-child(4) { width: 22%; }

/*
 * ステータスのラベルは既定で1行固定(white-space: nowrap)のため、
 * 「キャンセル(クリニック都合)」のような長いラベルが列からはみ出し、
 * 隣のボタンに重なって見えていた。表の中だけ折り返しを許可する。
 */
.ccm-entry-table td .ccm-status-badge {
	white-space: normal;
	max-width: 100%;
	overflow-wrap: anywhere;
	line-height: 1.5;
}
.ccm-entry-table td .ccm-cancel-summary {
	margin: 6px 0 0;
	font-size: 12.5px;
	line-height: 1.7;
	overflow-wrap: anywhere;
}
/* 履歴側のメッセージボタンは、狭い列でも文字が折れないように */
.ccm-entry-table-history td .ccm-msg-btn {
	width: 100%;
	justify-content: center;
}

@media (max-width: 760px) {
	.ccm-entry-table-history td:nth-child(1),
	.ccm-entry-table-history td:nth-child(2),
	.ccm-entry-table-history td:nth-child(3),
	.ccm-entry-table-history td:nth-child(4) { width: 100%; }
	.ccm-entry-table-history td .ccm-msg-btn { width: auto; }
}

/* 「実働時間のやりとり」の見出しも、狭い列で折り返して収める */
.ccm-entry-table td .ccm-worklog > summary {
	white-space: normal;
	overflow-wrap: anywhere;
	padding: 8px 10px;
}

/* ------------------------------------------------------------------
 * 確認ダイアログ  v0.29.25
 * ブラウザ標準の confirm() の代わりに使う、サイトの見た目に合わせた確認画面。
 * ------------------------------------------------------------------ */
.ccm-confirm {
	position: fixed; inset: 0; z-index: 10000;
	display: flex; align-items: center; justify-content: center;
	padding: 24px;
}
.ccm-confirm[hidden] { display: none; }
.ccm-confirm-backdrop {
	position: absolute; inset: 0;
	background: rgba(16, 30, 30, 0.5);
}
.ccm-confirm-panel {
	position: relative; z-index: 1;
	width: 100%; max-width: 460px;
	background: #fff;
	border-radius: var(--ccm-radius-lg, 16px);
	box-shadow: 0 18px 50px rgba(16, 30, 30, 0.3);
	padding: 24px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
}
.ccm-confirm-title {
	margin: 0 0 12px;
	font-size: 18px; line-height: 1.5; font-weight: 700;
	color: var(--ccm-text, #2f3a3a);
}
.ccm-confirm-body { margin: 0 0 20px; }
.ccm-confirm-body p {
	margin: 0 0 6px;
	font-size: 14.5px; line-height: 1.8;
	color: var(--ccm-text, #2f3a3a);
	overflow-wrap: anywhere;
}
.ccm-confirm-body p:last-child { margin-bottom: 0; }
.ccm-confirm-body .ccm-confirm-spacer { height: 8px; margin: 0; }
.ccm-confirm-actions {
	display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
}
.ccm-confirm-actions .ccm-btn { min-width: 120px; justify-content: center; }
body.ccm-confirm-open { overflow: hidden; }

@media (max-width: 480px) {
	.ccm-confirm { padding: 14px; }
	.ccm-confirm-panel { padding: 18px; }
	.ccm-confirm-actions { flex-direction: column-reverse; }
	.ccm-confirm-actions .ccm-btn { width: 100%; }
}

/* 管理画面(WordPress)で使うときの最低限の見た目 */
.wp-admin .ccm-confirm-panel { font-family: inherit; }
.wp-admin .ccm-confirm-actions .ccm-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 8px 18px; border-radius: 999px; border: 1px solid transparent;
	font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.wp-admin .ccm-confirm-actions .ccm-btn-primary { background: #2a9d8a; color: #fff; }
.wp-admin .ccm-confirm-actions .ccm-btn-outline { background: #fff; color: #2a9d8a; border-color: #2a9d8a; }

/* ==================================================================
 * プロフィール編集などの入力フォームの見た目を整える  v0.29.27
 *
 * ブラウザ既定のままだった「ファイルを選択」「プルダウン」「チェックボックス」が
 * サイトの他の部分から浮いていたため、統一した見た目にする。
 * ================================================================== */

/* ---- ファイル選択 ---- */
.ccm-photo-upload input[type="file"] {
	flex: 1 1 220px;
	min-width: 0;
	padding: 10px 12px;
	background: var(--ccm-bg-soft, #f4f7f6);
	border: 1px dashed var(--ccm-border, #e3e9e8);
	border-radius: var(--ccm-radius-md, 10px);
	font-size: 13px;
	color: var(--ccm-text-light, #74807e);
	cursor: pointer;
}
.ccm-photo-upload input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 8px 16px;
	border: 1px solid var(--ccm-primary-dark, #2a9d8a);
	border-radius: var(--ccm-radius-pill, 999px);
	background: #fff;
	color: var(--ccm-primary-dark, #2a9d8a);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.ccm-photo-upload input[type="file"]::file-selector-button:hover {
	background: var(--ccm-primary-dark, #2a9d8a);
	color: #fff;
}
.ccm-photo-empty {
	font-weight: 600;
	letter-spacing: .04em;
}

/* ---- プルダウン ---- */
select.ccm-input {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a9d8a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px 16px;
	cursor: pointer;
}

/* ---- チェックボックス(選択チップ) ---- */
.ccm-checkbox {
	position: relative;
	transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
	user-select: none;
}
.ccm-checkbox:hover {
	border-color: var(--ccm-primary, #3ec9b0);
	background: #fff;
}
.ccm-checkbox input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	flex: none;
	accent-color: var(--ccm-primary-dark, #2a9d8a);
	cursor: pointer;
}
/* 選択されたものが一目で分かるようにする */
.ccm-checkbox:has(input[type="checkbox"]:checked) {
	background: var(--ccm-primary-light, #e6f7f4);
	border-color: var(--ccm-primary, #3ec9b0);
	color: var(--ccm-primary-dark, #2a9d8a);
	font-weight: 700;
}
.ccm-checkbox:focus-within {
	outline: 2px solid var(--ccm-primary-dark, #2a9d8a);
	outline-offset: 2px;
}

/* チェックの並びに余白を持たせる */
.ccm-field .ccm-checkbox { margin: 0 6px 8px 0; }

/* ---- ポップアップ内のフォームの間隔 ---- */
.ccm-modal-body .ccm-field { margin-bottom: 20px; }
.ccm-modal-body .ccm-form-section-title,
.ccm-modal-body .ccm-section-title {
	margin: 28px 0 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--ccm-border, #e3e9e8);
	font-size: 15px;
	color: var(--ccm-primary-dark, #2a9d8a);
}
.ccm-modal-body .ccm-field > label {
	font-size: 13.5px;
}
.ccm-modal-panel { scroll-behavior: smooth; }

/*
 * v0.29.51: ブラウザ標準の表記が英語になる入力部品を、日本語で表示できる形に置き換える。
 *   ・ファイル選択  … 標準ボタン(Choose File / No file chosen)を隠し、日本語のボタンを出す
 *   ・年月の入力    … type="month" をやめ、年・月のプルダウンにする
 * (日付・数値はブラウザ標準のままにしている。カレンダーや数値の増減は
 *  端末ごとの操作に任せたほうが、入力しやすいため)
 */
.ccm-file-field { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ccm-file-field input[type="file"] {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ccm-file-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 40px; padding: 8px 18px; cursor: pointer;
	font-size: 14px; font-weight: bold; line-height: 1.2;
	color: var(--ccm-primary-dark, #2a9d8a); background: #fff;
	border: 1px solid var(--ccm-primary, #3ec9b0);
	border-radius: var(--ccm-radius-pill, 999px);
}
.ccm-file-btn:hover { background: var(--ccm-primary-light, #e6f7f4); }
.ccm-file-field input[type="file"]:focus-visible + .ccm-file-btn {
	outline: 2px solid var(--ccm-primary-dark, #2a9d8a); outline-offset: 2px;
}
.ccm-file-name { font-size: 13px; color: var(--ccm-text-light, #74807e); word-break: break-all; }

.ccm-ym-row { display: flex; gap: 8px; }
.ccm-ym-row .ccm-ym-year { flex: 1 1 62%; min-width: 0; }
.ccm-ym-row .ccm-ym-month { flex: 1 1 38%; min-width: 0; }

/*
 * v0.29.52: 案件一覧を表からカードにする。
 * 7列の表は画面幅に収まらず、右端の「操作」が横に隠れて押せなかった。
 */
.ccm-post-cards { display: grid; gap: 14px; margin: 16px 0 12px; }
.ccm-post-card {
	background: #fff; border: 1px solid var(--ccm-border, #e3e9e8);
	border-radius: var(--ccm-radius-lg, 16px); padding: 16px 18px;
}
.ccm-post-card.is-selected {
	border-color: var(--ccm-primary, #3ec9b0);
	box-shadow: 0 0 0 3px var(--ccm-primary-light, #e6f7f4);
}
.ccm-post-card-head {
	display: flex; flex-wrap: wrap; align-items: flex-start;
	justify-content: space-between; gap: 8px 12px;
}
.ccm-post-card-title {
	margin: 0; font-size: 16px; line-height: 1.5;
	color: var(--ccm-text, #2f3a3a); word-break: break-word;
}
.ccm-post-card-badges { display: flex; flex-wrap: wrap; gap: 6px; flex: none; }
.ccm-post-card-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
	margin-top: 10px; font-size: 14px; color: var(--ccm-text-light, #74807e);
}
.ccm-post-card-wage { font-weight: bold; color: var(--ccm-text, #2f3a3a); }
.ccm-post-card-dates { word-break: break-word; }
.ccm-post-card-reason { margin: 12px 0 0; }
.ccm-post-card-foot {
	display: flex; flex-wrap: wrap; align-items: center;
	justify-content: space-between; gap: 10px 14px;
	margin-top: 14px; padding-top: 13px;
	border-top: 1px solid var(--ccm-border, #e3e9e8);
}
.ccm-post-card-count { margin: 0; font-size: 14px; color: var(--ccm-text, #2f3a3a); }
.ccm-post-card-count strong { font-size: 17px; }
.ccm-post-card-sub { margin-left: 6px; font-size: 13px; color: var(--ccm-text-light, #74807e); }
.ccm-post-card-actions {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.ccm-post-card-actions .ccm-inline-form { margin: 0; display: flex; gap: 8px; align-items: center; }
@media (max-width: 560px) {
	.ccm-post-card-foot { align-items: stretch; }
	.ccm-post-card-actions { width: 100%; }
	.ccm-post-card-actions .ccm-btn,
	.ccm-post-card-actions .ccm-inline-form { width: 100%; }
	.ccm-post-card-actions .ccm-btn { justify-content: center; }
}

/* v0.29.52: 応募者一覧を案件ごとに絞り込む */
.ccm-entry-filter { margin: 14px 0 12px; }
.ccm-entry-filter-label {
	display: block; margin-bottom: 8px;
	font-size: 13px; font-weight: bold; color: var(--ccm-text-light, #74807e);
}
.ccm-entry-filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ccm-entry-filter-item {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 14px; max-width: 100%;
	font-size: 13px; line-height: 1.4; text-decoration: none;
	color: var(--ccm-text, #2f3a3a); background: #fff;
	border: 1px solid var(--ccm-border, #e3e9e8);
	border-radius: var(--ccm-radius-pill, 999px);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ccm-entry-filter-item:hover { background: var(--ccm-bg-soft, #f4f7f6); }
.ccm-entry-filter-item.is-current {
	color: #fff; font-weight: bold;
	background: var(--ccm-primary, #3ec9b0);
	border-color: var(--ccm-primary, #3ec9b0);
}
.ccm-entry-filter-count {
	flex: none; min-width: 20px; padding: 1px 6px; text-align: center;
	font-size: 12px; border-radius: var(--ccm-radius-pill, 999px);
	background: var(--ccm-bg-soft, #f4f7f6); color: var(--ccm-text-light, #74807e);
}
.ccm-entry-filter-item.is-current .ccm-entry-filter-count {
	background: rgba(255, 255, 255, 0.28); color: #fff;
}
.ccm-entry-filter-now {
	margin: 0 0 14px; padding: 10px 14px; font-size: 14px;
	background: var(--ccm-primary-light, #e6f7f4);
	border-radius: var(--ccm-radius, 10px);
}
.ccm-entry-filter-now a { margin-left: 8px; }
.ccm-entry-filter-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ccm-entry-filter-form select { flex: 1 1 320px; min-width: 0; max-width: 100%; }
.ccm-modal-foot-sub {
	display: block; margin-top: 4px; font-weight: normal;
	font-size: 12px; line-height: 1.6; color: var(--ccm-text-light, #74807e);
}
/* v0.29.54: 2列の入力欄の下にまとめて置く補足。次の項目とくっつかないよう余白をとる */
.ccm-form-hint-row { margin: -4px 0 18px; }

/* v0.29.55: 案件を投稿できたことをお知らせするポップアップ */
#ccm-posted-modal .ccm-modal-body { text-align: center; }
#ccm-posted-modal .ccm-modal-body p { margin: 0 0 10px; }
#ccm-posted-modal .ccm-modal-body p:last-child { margin-bottom: 0; }
.ccm-posted-check { color: var(--ccm-primary, #3ec9b0); line-height: 1; margin-bottom: 14px !important; }
.ccm-posted-title {
	font-weight: bold; font-size: 15px; color: var(--ccm-text, #2f3a3a);
	padding: 10px 14px; border-radius: var(--ccm-radius, 10px);
	background: var(--ccm-bg-soft, #f4f7f6); word-break: break-word;
}
#ccm-posted-modal .ccm-modal-foot-actions { justify-content: center; }

/* v0.29.58: ToDoから飛んできた行を少しのあいだ目立たせる */
.ccm-entry-highlight,
tr.ccm-entry-highlight > td {
	background: var(--ccm-primary-light, #e6f7f4) !important;
	transition: background 0.6s ease;
}
.ccm-entry-highlight {
	box-shadow: 0 0 0 3px var(--ccm-primary, #3ec9b0);
	border-radius: var(--ccm-radius, 10px);
}

/*
 * v0.29.58: ワーカーのマイページ上部が、狭い画面で横にはみ出していた。
 *
 * プロフィールカードは写真と情報を横に並べる flex だが、
 * 情報側の min-width が auto のままで、中身(職種タグ・注意書き)が
 * 縮まずに画面の外へはみ出していた。縮めるようにし、狭い画面では縦に積む。
 */
.ccm-profile-info { min-width: 0; }
.ccm-profile-info .ccm-tag-group,
.ccm-profile-info .ccm-worker-no-hint { max-width: 100%; word-break: break-word; }
@media (max-width: 480px) {
	.ccm-profile-card { flex-direction: column; align-items: flex-start; gap: 14px; }
	.ccm-profile-actions .ccm-btn { width: 100%; justify-content: center; }
}

/*
 * v0.29.59: スマホ表示の点検で見つかった読みづらさ・押しづらさの手当て。
 *
 * ・補足文(.ccm-form-hint)は相対指定(0.82em)のため、文字を小さくしている
 *   ラベルの中に入ると10.6pxまで縮み、スマホでは読みづらかった。下限を設ける。
 * ・案件登録のカレンダーは、320px幅で1マス30pxとなり指で押しづらかった。
 */
.ccm-form-hint { font-size: max(0.82em, 12px); }
@media (max-width: 400px) {
	.ccm-calendar-day { min-height: 36px; font-size: 13px; }
}

/* --------------------------------------------------------
 * 会員限定のご案内(v0.29.63)
 * 案件・施設の情報は、審査を通過してログインした会員のみ閲覧できる。
 * -------------------------------------------------------- */
.ccm-gate {
	max-width: 620px;
	margin: 40px auto;
	padding: 40px 32px;
	text-align: center;
	background: var(--ccm-bg-soft);
	border: 1px solid var(--ccm-border);
	border-radius: 16px;
}
.ccm-gate-icon {
	width: 62px;
	height: 62px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff;
	color: var(--ccm-primary-dark);
	border: 1px solid var(--ccm-border);
}
.ccm-gate-title {
	margin: 0 0 14px;
	font-size: 20px;
	line-height: 1.5;
	font-weight: 700;
}
.ccm-gate-lead {
	margin: 0 auto 26px;
	max-width: 460px;
	font-size: 14px;
	line-height: 1.9;
	color: var(--ccm-text-muted, #5e6e6a);
}
.ccm-gate-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}
.ccm-gate-foot {
	margin: 22px 0 0;
	font-size: 13px;
	color: var(--ccm-text-muted, #5e6e6a);
}
@media (max-width: 600px) {
	.ccm-gate { margin: 24px 0; padding: 30px 20px; }
	.ccm-gate-title { font-size: 18px; }
	.ccm-gate-actions .ccm-btn { width: 100%; }
}

/* --------------------------------------------------------
 * ご応募の結果のお知らせ(v0.29.64)
 * 見送りになったことが「エントリー状況」で分かるようにする。
 * -------------------------------------------------------- */
.ccm-result-card {
	position: relative;
	margin: 0 0 16px;
	padding: 22px 24px;
	border: 1px solid #efd6cf;
	border-radius: 14px;
	background: #fdf6f3;
}
.ccm-result-badge {
	display: inline-block;
	margin-bottom: 10px;
	padding: 5px 14px;
	border-radius: 999px;
	background: #c2543f;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
}
.ccm-result-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
}
.ccm-result-title a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(18,49,44,.22); }
.ccm-result-title a:hover { color: var(--ccm-primary-dark); border-bottom-color: var(--ccm-primary-dark); }
.ccm-result-lead {
	margin: 0 0 16px;
	font-size: 13.5px;
	line-height: 1.85;
	color: #6b5b56;
}
.ccm-result-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0 0 18px;
	font-size: 13px;
}
.ccm-result-meta div { display: flex; gap: 10px; align-items: baseline; }
.ccm-result-meta dt { margin: 0; color: #8a7a75; }
.ccm-result-meta dd { margin: 0; font-weight: 600; }
.ccm-result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) {
	.ccm-result-card { padding: 18px 16px; }
	.ccm-result-title { font-size: 15.5px; }
	.ccm-result-meta { gap: 6px 18px; }
	.ccm-result-actions .ccm-btn { flex: 1 1 auto; text-align: center; }
}

/* --------------------------------------------------------
 * エントリー状況のカード / 施設情報の一覧(v0.29.65)
 * 4列の表では欄が狭く、文字が何行にも折り返していたため、
 * 上から順に読める縦並びに変更した。
 * -------------------------------------------------------- */
.ccm-entry-cards { display: flex; flex-direction: column; gap: 16px; }
.ccm-entry-card {
	padding: 20px 22px;
	border: 1px solid var(--ccm-border);
	border-radius: 14px;
	background: #fff;
}
.ccm-entry-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}
.ccm-entry-card-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.55;
}
.ccm-entry-card-head .ccm-status-badge { flex: none; white-space: nowrap; }
.ccm-entry-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 30px;
	margin: 0 0 16px;
	font-size: 13.5px;
}
.ccm-entry-card-meta div { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.ccm-entry-card-meta dt { margin: 0; flex: none; color: var(--ccm-text-muted, #5e6e6a); }
.ccm-entry-card-meta dd { margin: 0; font-weight: 600; min-width: 0; }
.ccm-entry-card-actions { margin-top: 14px; }
.ccm-entry-card-actions > p:first-child { margin-top: 0; }
.ccm-entry-card .ccm-day-info { margin: 0 0 4px; }

/* 施設情報(項目名 + 内容) */
.ccm-spec-list {
	margin: 16px 0 24px;
	border-top: 1px solid var(--ccm-border);
}
.ccm-spec-row {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	gap: 16px;
	padding: 13px 4px;
	border-bottom: 1px solid var(--ccm-border);
}
.ccm-spec-row dt {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--ccm-text-muted, #5e6e6a);
}
.ccm-spec-row dd {
	margin: 0;
	font-size: 14px;
	line-height: 1.8;
	word-break: break-word;
}
@media (max-width: 720px) {
	.ccm-spec-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 2px; }
}
@media (max-width: 600px) {
	.ccm-entry-card { padding: 16px 15px; }
	.ccm-entry-card-head { flex-direction: column; gap: 8px; }
	.ccm-entry-card-title { font-size: 15px; }
	.ccm-entry-card-meta { gap: 6px 18px; }
}

/* 稼働終了の報告フォーム: 説明文の途中に入力欄が挟まって見えないよう、行を分ける(v0.29.65) */
.ccm-inline-detail-form label { display: block; margin-bottom: 14px; }
.ccm-inline-detail-form label .ccm-form-hint { display: block; margin: 4px 0 8px; }
.ccm-inline-detail-form .ccm-input-small { display: block; max-width: 200px; }

/* 報酬の内訳の補足(v0.29.69) */
.ccm-pay-note { color: var(--ccm-text-muted, #5e6e6a); }

/* --------------------------------------------------------
 * 選んだ勤務日ぶんの合計(v0.29.71)
 * エントリーボタンのすぐ上に、いま応募するといくらになるかを出す。
 * -------------------------------------------------------- */
.ccm-entry-total {
	margin: 18px 0 14px;
	padding: 16px 18px;
	border: 1px solid var(--ccm-primary);
	border-radius: 12px;
	background: var(--ccm-primary-light);
	text-align: center;
}
.ccm-entry-total-label {
	margin: 0 0 4px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ccm-primary-dark);
}
.ccm-entry-total-value {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ccm-text, #12312c);
}
.ccm-entry-total-yen { font-size: 15px; margin-left: 2px; }
.ccm-entry-total-note {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--ccm-text-muted, #5e6e6a);
}
.ccm-entry-total-note:empty { display: none; }
.ccm-entry-total.is-empty {
	border-color: var(--ccm-border);
	background: var(--ccm-bg-soft);
}
.ccm-entry-total.is-empty .ccm-entry-total-label { color: var(--ccm-text-muted, #5e6e6a); }
.ccm-entry-total.is-empty .ccm-entry-total-value { color: var(--ccm-text-muted, #5e6e6a); }

/* --------------------------------------------------------
 * 最近の動き(医療機関マイページの最上部) v0.29.72
 * -------------------------------------------------------- */
.ccm-activity {
	margin: 0 0 26px;
	padding: 20px 22px;
	border: 1px solid var(--ccm-border);
	border-radius: 14px;
	background: #fff;
}
.ccm-activity-head { margin-bottom: 14px; }
.ccm-activity-title { margin: 0; font-size: 17px; font-weight: 700; }
.ccm-activity-lead { margin: 4px 0 0; font-size: 12.5px; color: var(--ccm-text-muted, #5e6e6a); }
.ccm-activity-list { margin: 0; padding: 0; list-style: none; }
.ccm-activity-item {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 6px 14px;
	padding: 12px 2px;
	border-top: 1px solid var(--ccm-border);
	font-size: 13.5px;
}
.ccm-activity-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
	background: var(--ccm-bg-soft);
	color: var(--ccm-text-muted, #5e6e6a);
}
.ccm-activity-matched   { background: var(--ccm-primary-light); color: var(--ccm-primary-dark); }
.ccm-activity-entried   { background: #fff1e6; color: #a55a1e; }
.ccm-activity-reported  { background: #fff6e0; color: #8a6212; }
.ccm-activity-completed { background: #e8f2ff; color: #29558c; }
.ccm-activity-direct    { background: #efe9ff; color: #55399b; }
.ccm-activity-cancelled,
.ccm-activity-rejected  { background: #fbecea; color: #a1442f; }
.ccm-activity-body { line-height: 1.7; min-width: 0; }
.ccm-activity-meta {
	display: flex;
	align-items: baseline;
	gap: 12px;
	white-space: nowrap;
	font-size: 12px;
	color: var(--ccm-text-muted, #5e6e6a);
}
.ccm-activity-link { font-weight: 700; }
.ccm-activity-more { margin: 14px 0 0; font-size: 12px; color: var(--ccm-text-muted, #5e6e6a); }
@media (max-width: 782px) {
	.ccm-activity { padding: 16px 15px; }
	.ccm-activity-item {
		grid-template-columns: 1fr auto;
		grid-template-areas: "badge meta" "body body";
		gap: 8px 10px;
	}
	.ccm-activity-badge { grid-area: badge; justify-self: start; }
	.ccm-activity-meta  { grid-area: meta; justify-self: end; }
	.ccm-activity-body  { grid-area: body; }
}

/* ===== 稼働報告の時刻入力・承認(v0.29.73) ===== */
.ccm-timecard-sched {
	margin: 0 0 10px;
	padding: 8px 12px;
	background: var(--ccm-bg-soft);
	border-radius: 8px;
	font-size: 0.92em;
	color: #4a5654;
}
.ccm-timecard-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 8px 10px;
	margin-bottom: 8px;
}
.ccm-timecard-field {
	display: block;
	font-size: 0.9em;
	font-weight: 600;
	color: #3d4746;
}
.ccm-timecard-sep {
	padding-bottom: 10px;
	color: #8b9895;
	font-weight: 600;
}
.ccm-input-time {
	width: 8.5em;
	font-size: 1.15em;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}
.ccm-timecard-break .ccm-input {
	width: 6.5em;
}
.ccm-timecard-readout {
	margin: 0 0 12px;
	min-height: 1px;
}
.ccm-timecard-readout:empty {
	margin: 0;
}
.ccm-timecard-readout.is-ok,
.ccm-timecard-readout.is-diff,
.ccm-timecard-readout.is-warning {
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid var(--ccm-border);
	background: #fff;
}
.ccm-timecard-readout.is-ok {
	border-color: var(--ccm-primary);
	background: var(--ccm-primary-light);
}
.ccm-timecard-readout.is-diff {
	border-color: #f0c27a;
	background: #fff8ec;
}
.ccm-timecard-readout.is-warning {
	border-color: #e8a09a;
	background: #fdf0ef;
	color: #a4433b;
	font-size: 0.92em;
}
.ccm-timecard-readout-main {
	display: block;
	font-size: 1.1em;
	font-weight: 700;
	color: #2c3735;
}
.ccm-timecard-readout-ok {
	display: block;
	margin-top: 2px;
	font-size: 0.88em;
	color: var(--ccm-primary-dark);
}
.ccm-timecard-readout-diff {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}
.ccm-timecard-diff {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
}
.ccm-timecard-diff-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: var(--ccm-radius-pill);
	background: #fbead0;
	color: #8a5a12;
	font-size: 0.84em;
	font-weight: 700;
	line-height: 1.6;
}
.ccm-timecard-compare {
	margin: 0 0 10px;
	padding: 0;
	border: 1px solid var(--ccm-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
.ccm-timecard-compare-row {
	display: grid;
	grid-template-columns: 62px 1fr;
	gap: 10px;
	align-items: baseline;
	padding: 9px 12px;
}
.ccm-timecard-compare-row + .ccm-timecard-compare-row {
	border-top: 1px solid var(--ccm-border);
}
.ccm-timecard-compare-reported {
	background: var(--ccm-primary-light);
}
.ccm-timecard-compare dt {
	margin: 0;
	font-size: 0.85em;
	font-weight: 700;
	color: #6a7674;
}
.ccm-timecard-compare dd {
	margin: 0;
	font-size: 1.02em;
	font-variant-numeric: tabular-nums;
}
.ccm-timecard-hours {
	margin-left: 8px;
	font-size: 0.88em;
	color: #6a7674;
	font-weight: 600;
}
.ccm-timecard-note {
	margin: 0 0 10px;
	padding: 9px 12px;
	border-left: 3px solid var(--ccm-primary);
	background: var(--ccm-bg-soft);
	border-radius: 0 8px 8px 0;
	font-size: 0.93em;
}
.ccm-timecard-note-label {
	display: block;
	font-size: 0.82em;
	font-weight: 700;
	color: #6a7674;
	margin-bottom: 2px;
}
.ccm-timecard-pending {
	margin: 10px 0 0;
	padding: 12px 14px;
	border: 1px solid var(--ccm-border);
	border-radius: 10px;
	background: var(--ccm-bg-soft);
}
.ccm-timecard-pending p {
	margin: 0 0 6px;
}
.ccm-timecard-pending p:last-child {
	margin-bottom: 0;
}
.ccm-timecard-pending-title {
	font-weight: 700;
	color: var(--ccm-primary-dark);
}
@media (max-width: 480px) {
	.ccm-timecard-row {
		gap: 6px;
	}
	.ccm-input-time {
		width: 7.5em;
	}
	.ccm-timecard-break {
		width: 100%;
	}
}
.ccm-timecard-readout-times {
	display: block;
	font-size: 1.25em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	color: #2c3735;
}
.ccm-timecard-readout-times + .ccm-timecard-readout-main {
	font-size: 0.95em;
	font-weight: 600;
	color: #4a5654;
}
/*
 * 差し戻しのように、押していただくこともあるが主たる操作ではないボタン(v0.29.73)。
 * ccm-btn-ghost は背景色が薄い面の上では輪郭が消えてしまい、
 * 押せることに気づけないため、輪郭のあるものを別に用意する。
 */
.ccm-btn-quiet {
	background: #fff;
	color: #5a6664;
	border: 1px solid #c9d3d1;
}
.ccm-btn-quiet:hover {
	background: var(--ccm-bg-soft);
	border-color: #adbab7;
	color: #3d4746;
}
.ccm-timecard-rejected {
	margin: 0 0 12px;
	padding: 11px 14px;
	border: 1px solid #f0c27a;
	border-left-width: 4px;
	border-radius: 0 8px 8px 0;
	background: #fff8ec;
}
.ccm-timecard-rejected p {
	margin: 0 0 5px;
}
.ccm-timecard-rejected p:last-child {
	margin-bottom: 0;
}
.ccm-timecard-rejected-title {
	font-weight: 700;
	color: #8a5a12;
}

/* ===== 承認時の差額(v0.29.74) ===== */
.ccm-settle {
	margin: 0 0 12px;
	padding: 11px 14px;
	border: 1px solid var(--ccm-border);
	border-radius: 10px;
	background: #fff;
}
.ccm-settle p {
	margin: 0 0 4px;
}
.ccm-settle p:last-child {
	margin-bottom: 0;
}
.ccm-settle-line {
	font-size: 0.95em;
	font-variant-numeric: tabular-nums;
	color: #4a5654;
}
.ccm-settle-arrow {
	margin: 0 6px;
	color: #8b9895;
}
.ccm-settle-amount {
	font-size: 1.05em;
}
.ccm-settle-amount strong {
	font-size: 1.35em;
	font-variant-numeric: tabular-nums;
}
.ccm-settle.is-charge {
	border-color: #f0c27a;
	background: #fff8ec;
}
.ccm-settle.is-charge .ccm-settle-amount strong {
	color: #8a5a12;
}
.ccm-settle.is-refund {
	border-color: var(--ccm-primary);
	background: var(--ccm-primary-light);
}
.ccm-settle.is-refund .ccm-settle-amount strong {
	color: var(--ccm-primary-dark);
}
.ccm-settle.is-even {
	background: var(--ccm-bg-soft);
}

/* やることリストの日時(v0.29.74。新しい順に並ぶため、いつのことか分かるようにする) */
.ccm-todo-when {
	margin-left: 8px;
	font-size: 0.82em;
	font-weight: 500;
	color: #8b9895;
	font-variant-numeric: tabular-nums;
}

/* ===== 新着のお知らせ:種類の見出し(v0.29.75) ===== */
.ccm-alert-kind {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 9px;
	border-radius: var(--ccm-radius-pill);
	background: var(--ccm-primary-light);
	color: var(--ccm-primary-dark);
	font-size: 0.8em;
	font-weight: 700;
	line-height: 1.7;
}
.ccm-unread-alert-item.ccm-alert-reported .ccm-alert-kind,
.ccm-unread-alert-item.ccm-alert-rejected .ccm-alert-kind {
	background: #fbead0;
	color: #8a5a12;
}
.ccm-unread-alert-foot {
	margin: 10px 0 0;
	text-align: right;
}

/* 稼働終了の報告がまだ行えない案内(v0.29.77) */
.ccm-report-waiting {
	margin: 10px 0 0;
	padding: 9px 12px;
	border: 1px dashed var(--ccm-border);
	border-radius: 8px;
	background: var(--ccm-bg-soft);
}

/* ご応募の取り下げ(v0.29.88)。主たる操作ではないので控えめに置く */
.ccm-withdraw-details > summary {
	color: #6a7674;
	font-size: 0.88em;
}
.ccm-withdraw-details > summary:hover {
	color: #3d4746;
}

/* ===== 職務経歴の貼り付け入力補助 ===== */
.ccm-resume-import {
	margin: 0 0 22px;
	padding: 18px;
	border: 1px solid var(--ccm-border);
	border-radius: 12px;
	background: var(--ccm-bg-soft);
}
.ccm-resume-import h4 {
	margin: 0 0 8px;
}
.ccm-resume-import-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.ccm-resume-import-actions .ccm-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}
.ccm-resume-preview {
	margin-top: 14px;
	padding: 14px;
	border: 1px solid var(--ccm-border);
	border-radius: 10px;
	background: #fff;
}
.ccm-resume-preview-entry {
	margin: 0 0 14px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--ccm-border);
}
.ccm-resume-preview-entry:last-of-type {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}
.ccm-resume-preview h5 {
	margin: 0 0 8px;
	font-size: 1em;
}
.ccm-resume-preview dl {
	display: grid;
	grid-template-columns: minmax(105px, 0.35fr) 1fr;
	gap: 5px 12px;
	margin: 0;
}
.ccm-resume-preview dt {
	font-weight: 700;
}
.ccm-resume-preview dd {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
}
.ccm-resume-preview ul {
	margin-bottom: 0;
	color: #8a5a12;
}
@media (max-width: 600px) {
	.ccm-resume-import {
		padding: 14px;
	}
	.ccm-resume-preview dl {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.ccm-resume-preview dd {
		margin-bottom: 6px;
	}
}

/* ===== 本人確認（統合版v0.34.1） ===== */
.ccm-identity-card {
	margin: 0 0 24px;
	padding: 22px;
}
.ccm-identity-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 14px;
}
.ccm-identity-heading .ccm-section-title {
	margin-top: 0;
	margin-bottom: 6px;
}
.ccm-identity-status {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	padding: 5px 12px;
	border: 1px solid var(--ccm-border);
	border-radius: var(--ccm-radius-pill);
	background: var(--ccm-bg-soft);
	color: #52605e;
	font-size: 0.86em;
	font-weight: 700;
}
.ccm-identity-status-pending {
	border-color: #e7c789;
	background: #fff8e9;
	color: #7b5619;
}
.ccm-identity-status-verified {
	border-color: #8fc9b8;
	background: #eef9f5;
	color: #256754;
}
.ccm-identity-status-rejected {
	border-color: #e2a3a3;
	background: #fff1f1;
	color: #8d3333;
}
.ccm-identity-form {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--ccm-border);
}
.ccm-identity-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 16px 0;
	line-height: 1.7;
}
.ccm-identity-consent input {
	flex: 0 0 auto;
	margin-top: 0.35em;
}
@media (max-width: 640px) {
	.ccm-identity-heading {
		flex-direction: column;
		gap: 8px;
	}
}
