@charset "UTF-8";
/* 医療画像処理工学演習 共通スタイル（市川研究室サイトに合わせた簡素なデザイン）
 * 参考：https://www.clg.niigata-u.ac.jp/~sichikawa/
 *   見出し：太字の黒文字＋ティール（#137e89）の下線のみ
 *   区切り：薄い灰色（#e5e5e5）の線
 *   リンク：朱色（#c93f1f）
 * 背景色・帯・囲み・ラベルは使わない．
 */

:root {
	--text: #212529;
	--teal: #137e89;
	--accent: #c93f1f;
	--sep: #e5e5e5;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: #ffffff;
	color: var(--text);
	font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "Hiragino Sans", sans-serif;
	font-size: 16px;
	line-height: 1.85;
}

a { color: var(--accent); }

/* ---- ヘッダー ---- */
.site-header { border-bottom: 1px solid var(--sep); }
.site-header .inner {
	max-width: 860px;
	margin: 0 auto;
	padding: 12px 20px 10px;
}
.site-title {
	font-weight: bold;
	color: var(--text);
	text-decoration: none;
}
.site-nav {
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
}
.site-nav li { display: inline; }
.site-nav li + li::before { content: "｜"; color: #cccccc; margin: 0 0.2em; }
.site-nav .current { font-weight: bold; }
.site-nav .off { color: var(--text); }   /* 未公開の回：リンクなし（黒） */

/* ---- 本文 ---- */
main {
	max-width: 860px;
	margin: 0 auto;
	padding: 32px 20px 48px;
}

h1 {
	margin: 0 0 32px;
	padding-bottom: 10px;
	font-size: 1.75rem;
	line-height: 1.4;
	border-bottom: 2px solid var(--teal);
}

h2 {
	margin: 56px 0 20px;
	padding-bottom: 10px;
	font-size: 1.45rem;
	line-height: 1.4;
	border-bottom: 2px solid var(--teal);
}

h3 {
	margin: 0 0 12px;
	font-size: 1.1rem;
	line-height: 1.6;
}

h4 {
	margin: 18px 0 4px;
	font-size: 1rem;
}

p { margin: 0 0 1em; }

h2, .exercise, figure { scroll-margin-top: 20px; }

strong { font-weight: bold; }

.formula { text-align: center; margin: 14px 0 18px; }
.calc { margin: 8px 0 14px 2em; }

/* ---- 図 ---- */
figure { margin: 28px 0; text-align: center; }
figure img { max-width: 100%; height: auto; }
figcaption { font-size: 0.95rem; margin-top: 6px; }
.legend {
	font-size: 0.9rem;
	color: var(--text);
	text-align: left;
	margin: 4px auto 0;
	max-width: 680px;
}

/* ---- 演習：上下を薄い線で区切るだけ ---- */
.exercise {
	margin: 36px 0;
	padding: 24px 0 8px;
	border-top: 1px solid var(--sep);
	border-bottom: 1px solid var(--sep);
}
.exercise h3 {                  /* 演習のタイトル：ティールの細い下線 */
	font-size: 1.15rem;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--teal);
}
.exercise h4 {                  /* 使用する画像・方法・考察：ティールの文字のみ */
	margin: 24px 0 6px;
	font-size: 1.1rem;
	color: var(--teal);
}
.exercise .images { margin: 0 0 4px 1em; }

/* 手順・考察（本文の「１．」「⇒」「・」をそのまま表示） */
.steps { margin: 0 0 8px; }
.step { margin: 0 0 12px 1em; }
.step > p { margin-bottom: 2px; }
.step > p:not(.step-head) { margin-left: 1em; }
.step-head { text-indent: -1em; padding-left: 1em; }
.menu-path { margin: 0 0 4px; }

.discussion { margin: 0 0 12px 1em; }
.discussion p { text-indent: -1em; padding-left: 1em; margin: 0 0 8px; }

.note { font-size: 0.9rem; color: var(--text); margin: 2px 0 6px 1em; }

/* ---- ページ下部 ---- */
.page-nav {
	margin-top: 48px;
	padding-top: 12px;
	border-top: 1px solid var(--sep);
	font-size: 0.95rem;
}

.reference { margin-top: 36px; font-size: 0.85rem; color: var(--text); line-height: 1.6; }

@media (max-width: 640px) {
	main { padding: 20px 16px 36px; }
	h1 { font-size: 1.4rem; }
	h2 { font-size: 1.2rem; margin-top: 44px; }
}

@media print {
	.site-header { display: none; }
}

/* ---- 演習トップ ---- */
.top-links { margin: 0 0 24px 1em; padding: 0; list-style: none; }
.top-links li { margin-bottom: 4px; }
.session-list {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
	font-size: 1.1rem;
}
.session-list li {
	padding: 10px 4px;
	border-bottom: 1px solid var(--sep);
}
.session-list .off { color: var(--text); }

.images-row { text-align: center; }
.images-row img { max-width: 100%; height: auto; margin: 4px; vertical-align: top; }

/* 複数の画像を横に並べ，それぞれに説明を付ける */
.fig-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 12px 32px; margin: 20px 0; }
.fig-row figure { margin: 0; }
/* 1枚の図の中の (a)(b)(c) などのラベル */
.legend-row { display: flex; justify-content: space-around; max-width: 600px; margin: 2px auto 0; font-size: 0.9rem; }
.legend-center { font-size: 0.9rem; margin: 2px 0 0; }
