/* =====================================================================
 * 会員マイページ（top/mypage/）のデザイン（2026-10-16 第 1 段階）
 *   公開サイトと同じ色合い（濃い青緑の帯・オレンジのボタン）。文字は大きめ・濃い色で読みやすさを優先
 * ===================================================================== */
:root {
	--mp-main: #0b3a4c;
	--mp-main-dark: #072a38;
	--mp-main-soft: #e8f1f4;
	--mp-accent: #e8761c;
	--mp-bg: #f5f7f8;
	--mp-line: #d3dde2;
	--mp-text: #1a2329;
	--mp-sub: #3d4b54;
	--mp-red: #b42318;
	--mp-font: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--mp-bg);
	color: var(--mp-text);
	font-family: var(--mp-font);
	font-size: 16px;
	line-height: 1.7;
}

a { color: var(--mp-main); }

/* 上部の帯 */
.mp-head { background: var(--mp-main); color: #fff; }
.mp-head__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 20px;
}
.mp-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; color: #fff; text-decoration: none; }
.mp-brand__org { font-size: 15px; opacity: 0.9; }
.mp-brand__title { font-size: 22px; font-weight: bold; letter-spacing: 0.06em; }
.mp-user { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px 16px; min-width: 0; max-width: 100%; }
/* 所属（大学名など）と小さいメールを 1 行で出す。長いときは「…」で省略して、改行しない */
.mp-user__name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; white-space: nowrap; }
.mp-user__org { flex-shrink: 3; min-width: 3em; max-width: 20em; overflow: hidden; text-overflow: ellipsis; }
.mp-user__mail { min-width: 0; max-width: 16em; overflow: hidden; text-overflow: ellipsis; font-size: 12px; opacity: 0.85; }
.mp-user__name .kdu-badge { flex: none; }
/* 2026-10-19：ヘッダーは「会員コード　名前」。コードは小さめの枠で */
.mp-user__code { flex: none; padding: 1px 8px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 4px; font-size: 13px; letter-spacing: 0.04em; }
.mp-logout { flex: none; }
.mp-logout { margin: 0; }
.mp-logout button {
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 6px;
	background: transparent;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	cursor: pointer;
}
.mp-logout button:hover { background: rgba(255, 255, 255, 0.12); }

/* メニュー＋本文の 2 列（スマホは縦に並べる） */
.mp-wrap {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 28px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 20px 48px;
}
.mp-nav ul { margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--mp-line); border-radius: 8px; }
/* 角丸は最初と最後の項目に付ける（枠で切り取ると「利用限定メニューです」の吹き出しが切れるため） */
.mp-nav li:first-child, .mp-nav li:first-child > * { border-top-left-radius: 7px; border-top-right-radius: 7px; }
.mp-nav li:last-child, .mp-nav li:last-child > * { border-bottom-left-radius: 7px; border-bottom-right-radius: 7px; }
.mp-nav li + li { border-top: 1px solid var(--mp-line); }
.mp-nav a,
.mp-nav__off { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; font-size: 16px; text-decoration: none; }
.mp-nav a { color: var(--mp-text); border-left: 4px solid transparent; }
.mp-nav a:hover { background: var(--mp-main-soft); }
.mp-nav a.is-current { border-left-color: var(--mp-main); background: var(--mp-main-soft); color: var(--mp-main); font-weight: bold; }
.mp-nav__off { color: #7a868d; }
.mp-nav__off small { padding: 1px 6px; border-radius: 4px; background: #eef1f3; color: #5d6970; font-size: 12px; white-space: nowrap; }
/* 使えないメニュー（権限が足りない）：グレーで押せない。マウスを乗せる・タップすると「利用限定メニューです」 */
.mp-nav__locked { position: relative; background: #f5f6f7; color: #9aa3a8; cursor: not-allowed; }
.mp-nav__locked svg { flex: none; color: #9aa3a8; }
.mp-nav__locked:hover::after,
.mp-nav__locked:focus::after { content: attr(data-tip); position: absolute; left: 16px; top: calc(100% - 4px); z-index: 20; padding: 6px 10px; border-radius: 6px; background: #1f2937; color: #fff; font-size: 13px; white-space: nowrap; pointer-events: none; }
.mp-nav__locked:focus { outline: 2px solid var(--mp-main); outline-offset: -2px; }

.mp-title { margin: 0 0 20px; padding: 0 0 10px; border-bottom: 2px solid var(--mp-main); color: var(--mp-main); font-size: 24px; line-height: 1.4; }

/* カード・表 */
.mp-card { margin: 0 0 24px; padding: 20px 22px; background: #fff; border: 1px solid var(--mp-line); border-radius: 8px; }
.mp-card h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; font-size: 20px; color: var(--mp-main); }
.mp-table { width: 100%; border-collapse: collapse; background: #fff; }
.mp-table th,
.mp-table td { padding: 10px 12px; border: 1px solid var(--mp-line); text-align: left; vertical-align: top; }
.mp-table th { width: 12em; background: var(--mp-main-soft); color: var(--mp-main); font-weight: bold; white-space: nowrap; }
.mp-table td { overflow-wrap: anywhere; }
.mp-table--list th { width: auto; }
.mp-table--list tr:first-child th { text-align: center; }
/* 一覧の表は 1 行で表示し、入りきらないときは表の中だけ横にスクロールする（大学名だけは折り返してよい） */
.mp-table--list td { white-space: nowrap; overflow-wrap: normal; }
.mp-table--list td.mp-cellwrap { white-space: normal; min-width: 10em; }
.mp-table--list td.mp-cellwrap--name { min-width: 7em; }
/* 列の多い一覧（会員一覧）は、セルの左右の余白を少し詰めて、横にスクロールしないで収まるようにする */
.mp-table--compact th,
.mp-table--compact td { padding: 10px 8px; vertical-align: middle; }
/* 2026-10-20：会員一覧に連番（No.）の列を足したので、横スクロールが出ないよう少し詰める。No. の列は細く */
.mp-table--members th,
.mp-table--members td { padding-left: 5px; padding-right: 5px; }
.mp-table--members th:first-child,
.mp-table--members td:first-child { padding-left: 4px; padding-right: 4px; }
.mp-table--compact td.mp-cellwrap { min-width: 8em; }
.mp-table--compact td.mp-cellwrap--name { min-width: 6em; }
/* 掲示板メールの配信先：メールアドレスは長ければ折り返す。操作のボタンは少し小さくして横に並べる */
.mp-table--ml td.mp-break { min-width: 12em; overflow-wrap: anywhere; }
.mp-ml-ops form + form { margin-left: 6px; }
.mp-ml-ops .mp-btn { padding: 6px 12px; font-size: 14px; }
.mp-scroll { overflow-x: auto; }
.mp-nowrap { white-space: nowrap; }
.mp-break { overflow-wrap: anywhere; }
.mp-center { text-align: center !important; }
.mp-empty { color: #9aa3a8; }   /* 会員情報の「未登録」 */
.mp-small { font-size: 12px; }
/* 会員一覧：メールは封筒のボタン。押すとコピーして、画面の下に「コピーしました」と出す */
.mp-mailcopy { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 34px; padding: 0; border: 1px solid var(--mp-line); border-radius: 6px; background: #fff; color: var(--mp-main); cursor: pointer; vertical-align: middle; }
.mp-mailcopy:hover, .mp-mailcopy:focus-visible { background: var(--mp-main-soft); border-color: var(--mp-main); }
.mp-mailcopy.is-copied { background: #dcfce7; border-color: #16a34a; color: #15803d; }
.mp-toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 8px; background: #1f2937; color: #fff; font-size: 16px; overflow-wrap: anywhere; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.mp-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.mp-row-warn td { background: #fff7ed; }

.mp-tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 14px; font-weight: bold; white-space: nowrap; }
.mp-tag--sei { background: var(--mp-main); color: #fff; }
.mp-tag--ko { background: #dbeafe; color: #1e3a8a; }
.mp-tag--role { background: #0f766e; color: #fff; }
.mp-tag--option { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
.mp-tag small { font-weight: normal; }
/* 会員情報の「ご自身の権限・役職」 */
.mp-mybadges__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }   /* 2026-10-21：会員情報とヘルプの両方で、バッジの間に余白 */
.mp-mybadges .kdu-badge { font-size: 14px; }
.mp-tag--withdraw { background: #fdecec; color: var(--mp-red); border: 1px solid var(--mp-red); }

.mp-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; padding: 0; list-style: none; }
.mp-stats li { min-width: 200px; padding: 12px 16px; border: 1px solid var(--mp-line); border-radius: 8px; background: var(--mp-bg); }
.mp-stats span { display: block; color: var(--mp-sub); font-size: 14px; }
.mp-stats b { font-size: 26px; color: var(--mp-main); }

/* メッセージ */
.mp-msg { margin: 0 0 18px; padding: 12px 14px; border-radius: 6px; line-height: 1.6; }
.mp-msg--ok { background: var(--mp-main-soft); color: var(--mp-main); }
.mp-msg--ng { background: #fdecec; color: var(--mp-red); }
.mp-msg--master { background: #fff7ed; color: #7c2d12; border: 1px solid #fed7aa; }
.mp-note { color: var(--mp-sub); font-size: 15px; }
.mp-count { color: var(--mp-sub); font-size: 15px; }

/* ボタン・入力欄 */
.mp-btn {
	display: inline-block;
	padding: 9px 20px;
	border: 1px solid var(--mp-main);
	border-radius: 6px;
	background: var(--mp-main);
	color: #fff !important;
	font-family: inherit;
	font-size: 16px;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
}
.mp-btn:hover { background: var(--mp-main-dark); }
.mp-btn--sub { background: #fff; color: var(--mp-main) !important; }
.mp-btn--sub:hover { background: var(--mp-main-soft); }
.mp-btn--wide { width: 100%; margin-top: 16px; padding: 12px; }
.mp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mp-linkbtn { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--mp-main); font-family: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; }

input[type="email"],
input[type="text"],
input[type="search"],
input[type="tel"],      /* 2026-10-21：電話番号・FAX の欄にも同じ見た目を当てる（漏れていた） */
input[type="date"],
input[type="number"],
input[type="url"] {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #8fa2ad;
	border-radius: 6px;
	background: #fff;
	color: var(--mp-text);
	font-family: inherit;
	font-size: 16px;
}
input:focus { outline: 2px solid rgba(11, 58, 76, 0.35); outline-offset: 1px; border-color: var(--mp-main); }

.mp-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.mp-search input { flex: 1 1 260px; width: auto; }
.mp-pager { margin-top: 16px; }
.mp-pager a, .mp-pager b { display: inline-block; min-width: 2em; margin: 0 2px 4px; text-align: center; }

/* ログイン画面 */
.mp-login { max-width: 460px; margin: 48px auto; padding: 32px 28px; background: #fff; border: 1px solid var(--mp-line); border-radius: 10px; }
.mp-login h1 { margin: 0 0 8px; color: var(--mp-main); font-size: 22px; }
.mp-login__sub { margin: 0 0 20px; color: var(--mp-sub); font-size: 15px; }
.mp-login__note { margin: 24px 0 0; color: var(--mp-sub); font-size: 14px; }
.mp-login__note a { font-weight: bold; }
.mp-login__mail { font-size: 13px; user-select: all; }   /* 宛先をクリック 1 回で選べるように（メールソフトが開かないとき、コピーして使う） */
.mp-login label { display: block; margin: 0 0 6px; font-weight: bold; }
.mp-code { letter-spacing: 0.4em; font-size: 24px !important; text-align: center; }
/* 2026-10-19：ログインの入口（正会員・個人会員・所属教員）のタブ */
/*   入口ごとに色を分ける（正会員＝濃い青緑、個人会員＝青、所属教員＝緑）。選んでいる入口はその色で塗り、ほかは薄い色 */
.mp-entry__item--sei { --tab: var(--mp-main); --tab-soft: #e8f1f4; }
.mp-entry__item--ko  { --tab: #1d4ed8; --tab-soft: #e8efff; }
.mp-entry__item--sub { --tab: #0f766e; --tab-soft: #e3f4f1; }
.mp-entry { display: flex; gap: 6px; margin: 16px 0 22px; }
.mp-entry__item { flex: 1 1 0; padding: 10px 4px; border: 1px solid var(--tab); border-radius: 6px; background: var(--tab-soft); color: var(--tab); font-weight: bold; text-align: center; text-decoration: none; }
/* 選んでいる入口：その色で塗り、名前の前に「✓」、下に入力欄を指す「▼」。選んでいない入口は少し薄く */
.mp-entry__item { position: relative; }
.mp-entry__item.is-on { background: var(--tab); color: #fff; box-shadow: 0 0 0 2px var(--tab); }
.mp-entry__item.is-on::before { content: "✓ "; }
.mp-entry__item.is-on::after { content: ""; position: absolute; left: 50%; bottom: -10px; margin-left: -9px; border: 9px solid transparent; border-bottom: 0; border-top-color: var(--tab); }
.mp-entry__item:not(.is-on) { opacity: 0.75; }
.mp-entry__item:not(.is-on):hover { background: #fff; opacity: 1; }
/* コードで入れたときの確認の画面：一部を伏せた送り先のメール */
.mp-confirm-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--mp-line); border-radius: 8px; background: var(--mp-main-soft); }
.mp-confirm-mail span { color: var(--mp-sub); font-size: 14px; }
.mp-confirm-mail b { font-size: 19px; letter-spacing: 0.02em; word-break: break-all; }
/* 「まだ送っていません」の赤い注意と、押してほしいオレンジのボタン（2026-10-19 user の指示） */
.mp-confirm-warn { margin: 0; color: var(--mp-red); font-weight: bold; font-size: 15px; }
.mp-btn--send { margin-top: 10px; padding: 14px; border-color: var(--mp-accent); background: var(--mp-accent); font-size: 18px; }
.mp-btn--send:hover { border-color: #c95f0c; background: #c95f0c; }
/* 同じメールで複数の登録があるときに、どれで入るかを選ぶボタン */
.mp-choose { display: grid; gap: 10px; margin: 0 0 16px; }
.mp-choose__item { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--mp-line); border-radius: 8px; background: #fff; color: var(--mp-text); font-family: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.mp-choose__item:hover { border-color: var(--mp-main); background: var(--mp-main-soft); }
.mp-choose__kind { padding: 1px 8px; border-radius: 4px; background: var(--mp-main); color: #fff; font-size: 13px; font-weight: bold; }
.mp-choose__code { font-weight: bold; }

.mp-foot { padding: 20px; text-align: center; font-size: 14px; }

@media (max-width: 760px) {
	.mp-wrap { grid-template-columns: 1fr; gap: 18px; padding: 18px 16px 40px; }
	.mp-nav ul { display: flex; flex-wrap: wrap; }
	.mp-nav li { flex: 1 1 50%; min-width: 0; }
	.mp-nav li.mp-nav__head { flex-basis: 100%; }   /* グループの見出しは横幅いっぱい、その下にメニューを 2 列 */
	.mp-nav li + li { border-top: 0; }
	.mp-user__mail { max-width: 9em; }
	.mp-entry__item { font-size: 14px; }
	.mp-nav li { border-bottom: 1px solid var(--mp-line); }
	.mp-table th { width: 8.5em; white-space: normal; }
	.mp-login { margin: 24px 16px; padding: 24px 18px; }
	.mp-brand__title { font-size: 20px; }
}

/* =====================================================================
 * 第 2 段階（2026-10-16）：変更申込のフォーム・事務局への連絡（トーク画面）
 * ===================================================================== */
.mp-subtitle { margin: 28px 0 12px; color: var(--mp-main); font-size: 20px; }
.mp-form .mp-field { margin: 0 0 16px; }
.mp-form label { display: block; margin: 0 0 6px; font-weight: bold; }
.mp-field__note { margin: 6px 0 0; color: var(--mp-sub); font-size: 14px; }
.mp-field__fixed { margin: 0; padding: 10px 12px; border-radius: 6px; background: var(--mp-bg); }
.mp-form select,
.mp-form textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #8fa2ad;
	border-radius: 6px;
	background: #fff;
	color: var(--mp-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.7;
}
.mp-form textarea { resize: vertical; }
.mp-form select:focus,
.mp-form textarea:focus { outline: 2px solid rgba(11, 58, 76, 0.35); outline-offset: 1px; border-color: var(--mp-main); }
.mp-new { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: var(--mp-accent); color: #fff; font-size: 12px; font-weight: bold; white-space: nowrap; }
.mp-nav a .mp-new { margin-left: auto; }

/* トーク画面：左が会員、右が事務局 */
.kdu-chat { display: flex; flex-direction: column; gap: 14px; }
.kdu-chat__row { display: flex; flex-direction: column; max-width: 78%; }
.kdu-chat__row--member { align-self: flex-start; align-items: flex-start; }
.kdu-chat__row--office { align-self: flex-end; align-items: flex-end; }
.kdu-chat__who { margin: 0 4px 4px; color: var(--mp-sub); font-size: 13px; }
.kdu-chat__bubble { padding: 12px 16px; border-radius: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.kdu-chat__row--member .kdu-chat__bubble { background: #eef1f3; color: var(--mp-text); border-top-left-radius: 4px; }
.kdu-chat__row--office .kdu-chat__bubble { background: #fde68a; color: #1f1a00; border-top-right-radius: 4px; }
.kdu-chat__time { margin: 4px 6px 0; color: #6b7780; font-size: 12px; }
@media (max-width: 760px) {
	.kdu-chat__row { max-width: 92%; }
}

/* 大事な注意（赤文字）：ログイン用メールの変更など */
.mp-warn-text { color: var(--mp-red); font-weight: bold; }
/* 確認のチェック欄（退会の申込など）：押しやすい大きさにする */
.mp-form label.mp-check { display: flex; align-items: center; gap: 10px; font-weight: normal; cursor: pointer; }
.mp-form .mp-check input[type="checkbox"] { width: 22px; height: 22px; margin: 0; flex: none; }

/* =====================================================================
 * 事務局の権限（2026-10-16）：メニューの見出し・承認画面・状態の色
 * ===================================================================== */
.mp-nav__head { padding: 8px 16px; background: var(--mp-main); color: #fff; font-size: 14px; font-weight: bold; letter-spacing: 0.04em; }
.mp-nav li.mp-nav__head + li { border-top: 0; }
.mp-table--diff th { width: 14em; }
.mp-table--diff tr:first-child th { width: auto; }
.mp-diff-new { background: #fff7ed; font-weight: bold; }
.mp-ops { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 0; }
.mp-ops form { margin: 0; }
.mp-ops.mp-form select,
.mp-ops.mp-form input[type="text"] { width: auto; min-width: 16em; flex: 1 1 16em; }
.mp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.mp-tabs a { padding: 6px 14px; border: 1px solid var(--mp-main); border-radius: 6px; background: #fff; color: var(--mp-main); font-weight: bold; text-decoration: none; }
.mp-tabs a.is-current { background: var(--mp-main); color: #fff; }
/* 連絡の状態のバッジ：未対応＝赤・対応中＝オレンジ・完了＝緑（2026-10-16 完了を色違いに） */
.mp-status { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 13px; font-weight: bold; white-space: nowrap; }
.mp-status--open { background: #fdecec; color: var(--mp-red); border: 1px solid #f5c2c0; }
.mp-status--progress { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.mp-status--done { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.mp-row-off td { color: #6b7280; background: #f3f4f6; }

/* =====================================================================
 * 第 3 段階（2026-10-16）：会員交流サイト（掲示板）・所属教員
 * ===================================================================== */
.mp-btn--danger { background: #fff; border-color: var(--mp-red); color: var(--mp-red) !important; }
.mp-btn--danger:hover { background: #fdecec; }
.mp-mlbox p { margin: 0 0 10px; }
.mp-on { color: #166534; }
.mp-off { color: var(--mp-red); }
.mp-post__meta { margin: 0 0 14px; padding: 0 0 10px; border-bottom: 1px solid var(--mp-line); color: var(--mp-sub); font-size: 15px; }
.mp-post__body { line-height: 1.9; overflow-wrap: anywhere; }
.mp-post__file { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--mp-line); }
.mp-post__file img { display: block; max-width: 100%; height: auto; margin: 0 0 8px; border-radius: 6px; }

.mp-file { display: block; margin: 0 0 8px; }

/* =====================================================================
 * 第 4 段階（2026-10-16）：役員一覧・役員のバッジ・役員の管理
 * ===================================================================== */
.kdu-badge { display: inline-block; margin: 0 0 0 6px; padding: 1px 8px; border-radius: 10px; background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; font-size: 12px; font-weight: bold; line-height: 1.6; white-space: nowrap; vertical-align: middle; }
.kdu-badge--chair { background: #b45309; color: #fff; border-color: #b45309; }
.mp-head .kdu-badge { font-size: 12px; }
.mp-table--officers th:first-child { width: 14em; }
.mp-table--officers tr:first-child th { text-align: center; width: auto; }
.mp-officers__section td { background: var(--mp-main-soft); color: var(--mp-main); font-weight: bold; text-align: center; }
.mp-mark { color: var(--mp-sub); font-size: 14px; }
.mp-table--edit td { padding: 6px; }
.mp-table--edit input { padding: 6px 8px; font-size: 15px; }
.mp-in-xs { width: 4em !important; }
.mp-in-s { width: 8em !important; }
.mp-in-m { width: 12em !important; }
.mp-in-l { width: 16em !important; }

/* 掲示板の一覧（2026-10-16 修正）：カード全体がリンク。左の列に日付（下は空白）、右の列の 1 行目に投稿者（様）・添付の印、2 行目にタイトル
 *   投稿ごとに 1px の濃い線で区切る。スマホは縦に並べる */
.mp-postlist { margin: 0 0 16px; padding: 0; list-style: none; background: #fff; border: 1px solid #7f95a1; border-radius: 8px; overflow: hidden; }
.mp-postlist li { border-bottom: 1px solid #7f95a1; }
.mp-postlist li:last-child { border-bottom: 0; }
.mp-postlist__card { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 0 16px; align-items: start; padding: 14px 18px; color: var(--mp-text) !important; text-decoration: none !important; }
.mp-postlist__card:hover, .mp-postlist__card:focus-visible { background: var(--mp-main-soft); }
.mp-postlist__card:hover .mp-postlist__title { text-decoration: underline; }
.mp-postlist__body { display: block; min-width: 0; }
.mp-postlist__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 4px; }
.mp-postlist__date { padding-top: 2px; color: var(--mp-accent); font-size: 14px; font-weight: bold; white-space: nowrap; }
.mp-postlist__name { color: var(--mp-sub); font-size: 14px; }
.mp-postlist__clip { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; padding: 2px 10px 2px 6px; border-radius: 12px; background: #e0f2fe; color: #075985; border: 1px solid #7dd3fc; font-size: 13px; font-weight: bold; white-space: nowrap; }
.mp-postlist__title { display: block; color: var(--mp-main); font-size: 17px; font-weight: bold; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 760px) { .mp-postlist__card { grid-template-columns: 1fr; } .mp-postlist__date { margin: 0 0 2px; } }

/* ページの切り替え：四角いボタンにする */
.mp-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.mp-pager a, .mp-pager b { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6em; height: 2.6em; margin: 0; padding: 0 8px; border: 1px solid var(--mp-main); border-radius: 6px; box-sizing: border-box; font-weight: bold; text-decoration: none; }
.mp-pager a { background: #fff; color: var(--mp-main); }
.mp-pager a:hover { background: var(--mp-main-soft); }
.mp-pager b { background: var(--mp-main); color: #fff; }

/* 年配の先生にも使いやすく（2026-10-16）：掲示板の一覧の文字と、押す場所を少し大きく */
.mp-postlist__date { font-size: 16px; }
.mp-postlist__name { font-size: 16px; }
.mp-postlist__title { font-size: 18px; }
.mp-postlist__clip { font-size: 14px; padding: 3px 12px 3px 8px; }
.mp-postlist__clip svg { width: 20px; height: 20px; }
.mp-postlist__card { padding: 16px 20px; }
.mp-pager { gap: 8px; }
.mp-pager a, .mp-pager b { min-width: 3em; height: 3em; font-size: 17px; }
.mp-pager a.mp-pager__step { padding: 0 16px; }
.mp-pager__gap { display: inline-flex; align-items: center; padding: 0 4px; color: var(--mp-sub); }

/* =====================================================================
 * 2026-10-19：会員情報の変更履歴（history.php）
 *   名前・所属・メールなど、事務局で把握しておくべき項目は色を付ける。まだ見ていない変更の行は薄い色で「新」
 * ===================================================================== */
.mp-table--hist td { vertical-align: top; }
.mp-hist { margin: 0; padding: 0; list-style: none; }
.mp-hist li { padding: 2px 0; font-size: 14px; }
.mp-hist li + li { border-top: 1px dashed var(--mp-line); }
.mp-hist__label { display: inline-block; min-width: 7em; margin-right: 8px; color: var(--mp-sub); font-size: 13px; }
.mp-hist li.is-imp { margin: 0 -6px; padding: 2px 6px; border-radius: 4px; background: #fff4e5; }
.mp-hist li.is-imp .mp-hist__label { color: #9a4a00; font-weight: bold; }
.mp-hist-imp-label { padding: 0 6px; border-radius: 4px; background: #fff4e5; color: #9a4a00; }
.mp-row-new td { background: #f3f8ff; }
.mp-tag--new { margin-top: 4px; background: var(--mp-red); color: #fff; }

/* 2026-10-20：掲示板メールの配信先の、切り替えの前の点検 */
.mp-mlcheck__h { margin: 20px 0 8px; color: var(--mp-main); font-size: 16px; }
.mp-mlcheck textarea { width: 100%; font-family: inherit; font-size: 14px; }
.mp-mlcheck .mp-table th { width: 40%; white-space: normal; }
.mp-mlcheck .mp-table--list th { width: auto; }
.mp-rawmail { padding: 1px 4px; border-radius: 3px; background: #fff4e5; font-family: inherit; white-space: pre-wrap; }   /* 空白も見えるように */
/* 2026-10-20：届かなくなるアドレスを所属教員としてまとめて登録する（マスター） */
.mp-table--bulk select { max-width: 15em; padding: 6px; font-size: 14px; }
.mp-table--bulk input[type="text"] { width: 9em; padding: 6px; font-size: 14px; }
.mp-table--bulk input[type="checkbox"] { width: 20px; height: 20px; }
/* 2026-10-20：掲示板メールの配信先（切り替えの後）のまとめ */
.mp-ml-sum { margin-bottom: 8px; }
.mp-ml-sum th { width: 40%; white-space: normal; }

/* 2026-10-21：掲示板の「一覧へ戻る」「戻る」を、押しやすい大きめのボタンに */
.mp-backbar { margin: 0 0 16px; }
.mp-backbar--bottom { margin-top: 20px; }
.mp-btn--back { padding: 12px 24px; border: 2px solid var(--mp-main); background: #fff; color: var(--mp-main) !important; font-size: 16px; font-weight: bold; }   /* .mp-btn の白い文字（!important）より優先 */
.mp-btn--back:hover { background: var(--mp-main-soft); }
@media (max-width: 760px) {
	.mp-btn--back { display: block; text-align: center; }
}
.mp-staff-reg { color: var(--mp-sub); font-size: 12px; white-space: nowrap; }   /* 2026-10-21：権限の設定の事務局一覧で、登録の区分とコード */

/* =====================================================================
 * 2026-10-21：使い方（ヘルプ）help.php
 * ===================================================================== */
.mp-help-toc { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 16px; }
.mp-help-toc a { padding: 6px 12px; border: 1px solid var(--mp-main); border-radius: 20px; background: #fff; color: var(--mp-main); font-size: 14px; text-decoration: none; }
.mp-help-toc a:hover { background: var(--mp-main-soft); }
.mp-help { scroll-margin-top: 16px; }
.mp-help ul { margin: 0; padding-left: 1.4em; }
.mp-help li { margin: 4px 0; }
.mp-help .mp-table th { width: 9em; }
.mp-help-table { width: 100%; table-layout: fixed; }
.mp-help-table th, .mp-help-table td { vertical-align: middle; white-space: normal; padding: 8px 6px; font-size: 14px; }
.mp-help-table th:nth-child(1) { width: 26%; }
.mp-help-table th:nth-child(n+3) { width: 9%; text-align: center; }
.mp-help-table td:nth-child(n+3) { text-align: center; font-weight: bold; }
.mp-help-table tr.mp-help-group td { background: var(--mp-main-soft); color: var(--mp-main); font-weight: bold; text-align: left; }
/* よくある質問：Q は濃い青緑の丸、A はオレンジの丸（2026-10-21）。質問ごとに薄い区切りの線 */
.mp-faq { margin: 0; }
.mp-faq dt, .mp-faq dd { position: relative; padding-left: 38px; }
.mp-faq dt { margin: 0; padding-top: 14px; border-top: 1px solid var(--mp-line); font-weight: bold; color: var(--mp-main); }
.mp-faq dt:first-of-type { border-top: 0; padding-top: 0; }
.mp-faq dd { margin: 8px 0 14px; color: var(--mp-text); }
.mp-faq dt::before, .mp-faq dd::before { position: absolute; left: 0; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: bold; line-height: 1; }
.mp-faq dt::before { content: "Q"; top: 12px; background: var(--mp-main); }
.mp-faq dt:first-of-type::before { top: -2px; }
.mp-faq dd::before { content: "A"; top: -2px; background: var(--mp-accent); }
/* 2026-10-21：ヘッダーの「？ 使い方」ボタン（ログアウトの隣）。目立つように明るい色 */
.mp-helpbtn { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border: 1px solid #fff; border-radius: 6px; background: #fff; color: var(--mp-main); font-size: 15px; font-weight: bold; text-decoration: none; white-space: nowrap; }
.mp-helpbtn span { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mp-accent); color: #fff; font-size: 13px; }
.mp-helpbtn:hover, .mp-helpbtn.is-on { background: var(--mp-main-soft); }
.mp-help-form select { width: 100%; max-width: 24em; padding: 10px; border: 1px solid #8fa2ad; border-radius: 6px; font-family: inherit; font-size: 16px; }
.mp-help-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #8fa2ad; border-radius: 6px; font-family: inherit; font-size: 16px; }

/* 会員名簿の取り込み（2026-10-22・マスター専用 import.php） */
.mp-imp-stats li { min-width: 150px; }
.mp-imp-stats li.is-warn { border-color: var(--mp-accent); background: #fff7ed; }
.mp-imp-stats li.is-warn b { color: var(--mp-accent); }
.mp-imp-h { margin: 26px 0 8px; color: var(--mp-main); font-size: 18px; }
.mp-imp-list { margin: 6px 0 0 1.2em; padding: 0; }
.mp-imp-kind { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.mp-table--import { table-layout: fixed; width: 100%; min-width: 760px; }
.mp-table--import th, .mp-table--import td { vertical-align: top; overflow-wrap: anywhere; }
.mp-table--import th { white-space: normal; }
.mp-table--import tr:first-child th:nth-child(1) { width: 6.5em; }
.mp-table--import tr:first-child th:nth-child(2) { width: 12em; }
.mp-table--import tr:first-child th:nth-child(3) { width: 11em; }
.mp-table--import tr:first-child th:nth-child(6) { width: 4.5em; }
.mp-table--import tr.mp-imp-login td, .mp-table--import tr.mp-imp-login th { box-shadow: inset 0 2px 0 var(--mp-red), inset 0 -2px 0 var(--mp-red); }
.mp-table--import tr.mp-imp-login th { color: var(--mp-red); }
.mp-table--import input[type="checkbox"] { width: 20px; height: 20px; }
span.mp-imp-login { padding: 0 4px; border: 2px solid var(--mp-red); border-radius: 3px; color: var(--mp-red); font-weight: bold; }
.mp-imp-ops { margin: 24px 0 8px; }
.mp-imp-flags { border-color: var(--mp-accent); }
.mp-imp-flagops { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-imp-flagops form { margin: 0; }
.mp-imp-flagops .mp-btn { padding: 6px 12px; font-size: 14px; }
.mp-flagmark { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; background: var(--mp-accent); color: #fff; font-size: 12px; font-weight: bold; white-space: nowrap; }
.mp-imp-fromsub { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 4px; padding: 6px 8px; border: 2px solid var(--mp-accent); border-radius: 6px; background: #fff; color: var(--mp-text); font-weight: bold; cursor: pointer; }
.mp-imp-fromsub input { flex: none; width: 20px; height: 20px; margin: 0; }
.mp-imp-fromsub + .mp-small { display: block; font-weight: normal; color: var(--mp-sub); }

/* 養成大学一覧の点検（2026-10-22・マスター専用 univ_check.php） */
.mp-uc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.mp-uc-head .mp-note { flex: 1 1 24em; margin: 0; }
.mp-uc-form { display: inline; margin: 0; }
.mp-uc-form .mp-btn { padding: 6px 12px; font-size: 14px; }

/* 代表メールの転送先（2026-10-22・forward.php） */
.mp-fw-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--mp-line); }
.mp-fw-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.mp-fw-form input, .mp-fw-form select { padding: 8px 10px; border: 1px solid #8fa2ad; border-radius: 6px; font-family: inherit; font-size: 15px; }
.mp-fw-form .mp-fw-role { width: 9em; }
.mp-fw-form .mp-fw-name { width: 9em; }
.mp-fw-form .mp-fw-email { width: 17em; }
.mp-fw-form .mp-fw-note { width: 12em; }
.mp-fw-form .mp-fw-sort { width: 5em; }
.mp-fw-form .mp-btn { padding: 8px 14px; font-size: 14px; }
