@charset "UTF-8";

/* ----------------------------------------------
 *  screen と print に共通
 * ---------------------------------------------- */
* {
	margin: 0;
	padding: 0;
}

body {
	color: #000;
	background-color: #fff;
	background-image: none;
}

address span {
	display: block;
	margin-bottom: 1em;
}

.update {
	margin-top: 2em;
}

.home td,
.cv td {
	padding-bottom: 0.7em;
	vertical-align: top;
	line-height: 140%;
}
	
.pp ol {
	margin-bottom: 2em;
	line-height: 140%;
}

.pp li {
	margin-top: 1.5em;
}

.pp ol li:first-child {
	margin-top: 0.5em;
}

.pp span.title {
	font-weight: bold;
}

/* ----------------------------------------------
 *   基本構造
 * ---------------------------------------------- */
@media screen {
	body {
		max-width: 800px;
		margin: 0 auto;
		padding-bottom: 20px;
		font-size: 80%;
		font-family:  Verdana, Arial, Helvetica, sans-serif;
		background: url("img/menu_sprite.png") repeat-x 0 -306px fixed;
	}
	
	h1 a {
		position: fixed;
		top: 0px;
		display: block;
		width: 167px;
		height: 54px;
		background: url("img/menu_sprite.png") no-repeat -633px -144px;
		text-indent: -99999px;
		overflow: hidden;
		z-index: 3;
	}
	h1 a:hover { background-position: -633px -90px; }
	h1 a:active { background-position: -633px -36px; }
	
	h2 {
		font-size: 110%;
		font-weight: bold;
		margin: 12px 0;
		padding: 8px 12px;
		background: url("img/menu_sprite.png") repeat-x;
		border: 1px solid #aaa;
		border-radius: 4px;
	}
	
	a {
		text-decoration: underline;
	}
	a:visited { color: #944; }
	a:link { color: blue; }
	
	p {
		margin: 1em 0;
	}
	
	address {
		min-height: 151px;
		margin: 0 0 30px 2px;
		padding-left: 135px;
		background: url("img/YK.jpg") no-repeat;
	}
	
	address .author {
		font-weight: bold;
		font-style: normal;
	}
	
	address .appointment {
		font-style: normal;
	}
	
	.main {
		margin-top: 54px;
		padding-top: 16px;
		z-index: 1;
	}
	
	.home table,
	.cv table {
		margin: 0.3em 1px 0.8em;
	}
	
	html[lang="en"] .home .content { width: 8.5em; }
	html[lang="ja"] .home .content { width: 4em; }
	html[lang="en"] .cv .period { width: 10em; }
	html[lang="ja"] .cv .period { width: 12.5em; }
	
	.cv p.pub {
		margin: 0.5em 2px 1em;
	}
	
	.pp ol {
		padding-left: 2.8em;
	}
	
	.pp .me {
		font-weight: bold;
	}
	
	/* ギャラリー用 */
	.gallery > ul {
		list-style-type: none;
		position: fixed;
		width: 180px;
		top: 70px;
		bottom: 10px;
		overflow: auto;
	}
	
	.gallery > ul > li {
		margin-bottom: 1em;
	}
	
	.gallery > ul > li > a:first-child {
		display: block;
		height: 150px;
		width: 150px;
		color: #fff;
		background: url("img/gallerythumb.jpg") no-repeat;
	}
	.gallery > ul > li > a[href="img/nanostripes_NaCCOC.jpg"] { background-position: 0 -150px; }
	.gallery > ul > li > a[href="img/nanostripes_standing.jpg"] { background-position: 0 -300px; }
	.gallery > ul > li > a[href="img/nanostripes_NaCCOC_closeup.jpg"] { background-position: 0 -450px; }
	
	.gallery > ul span {
		display: none;
	}
	
	.gallery > div {
		position: relative;
		width: 600px;
		left: 200px;
		background-repeat: no-repeat;
	}
	
	.gallery > div > span {
		display: block;
		line-height: 1.6;
		padding-top: 20px;	/* 絵とキャプションの間隔 */
		background-color: #fff;
	}
}

@media print {
	body {
		width: 100%;
		font-family: "Times New Roman", serif;
		font-size: 12pt;
		line-height: 1.4;
	}
	
	h1, h2 {
		font-family: Arial, sans-serif;
		font-weight: normal;
	}
	
	h1 {
		margin-bottom: 0.5em;
	}
	
	h2 {
		border-bottom: 1px solid #666;
	}
	
	a {
		color: #000;
		text-decoration: none;
	}
	
	address {
		font-style: normal;
		margin-bottom: 1.5em;
		background-image: none;
	}

	.home table,
	.cv table {
		margin: 0.3em 0 0.5em;
	}
	
	html[lang="en"] .home .content { width: 7em; }
	html[lang="ja"] .home .content { width: 4em; }
	html[lang="en"] .cv .period { width: 8.5em; }
	html[lang="ja"] .cv .period { width: 11em; }
	
	address .appointment {
		display: block;
		float: left;
	}
	
	address .address {
		text-align: right;
	}
	
	address .email {
		position: relative;
		top: -1em;
	}
	
	address .author,
	.cv .pub {
		display: none;
	}

	.pp ol {
		padding-left: 2em;
	}
	
	.pp .me {
		text-decoration: underline;
	}
}

/* ----------------------------------------------
 *   ナビゲーション
 * ---------------------------------------------- */
@media screen {
	.nav, .lang {
		position: fixed;
		top: 0px;
		height: 54px;
		margin: 0 auto;
	}
	
	.nav {
		width: 360px;	/* メニュー項目の幅の合計より大きいこと */
		z-index: 2;
	}
	
	.lang {
		width: 800px;	/* body の幅 */
		z-index: 1;
		background: url("img/menu_sprite.png") repeat-x 0 -306px;
	}
	
	.nav dt, .lang dt {
		position: relative;
		left: -1000px;
		top: -1000px;
	}

	.nav dt {
		float: right;
	}
	
	.nav dd {
		position: relative;
		left: 200px;	/* "Yuhki Kohsaka" の幅の分だけ右にずらす */
	}
	
	.lang dt {
		float: left;
	}
	
	.lang dd {
		float: right;
	}
	
	.nav ul, .lang ul {
		list-style-type: none;
	}
	
	.nav li, .lang li {
		float: left;
		height: 54px;
	}
	
	.nav a, .nav span, .lang a, .lang span {
		display: block;
		height: 34px;
		padding: 20px 12px 0 12px;
	}
	
	.nav a, .lang a {
		color: #fff;
		background: url("img/menu_sprite.png") repeat-x 0 -306px;
	}
	.nav a:hover, .lang a:hover { background-position: 100% -252px; }
	.nav a:active, .lang a:active { background-position: 100% -198px; }
	
	.nav span, .lang span {
		color: #aaa;
		background: url("img/menu_sprite.png") no-repeat 50% -37px;
	}
}

@media print {
	.nav, .lang {
		display: none;
	}
}


