@charset "Shift_JIS";

* {
    margin: 0;
    padding: 0;
    border: 0;
    background-color: transparent;
    font-size: 100%;
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
}

body {
    text-align: center;
    background-color: #CCCCCC;
    font-size: 0.92em;
    background-image: url('../img/background.png');
    font-family: "Helvetica", "Arial", sans-serif;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    margin: 0 2em;
    padding: 0.5em 0;
    line-height: 1.5em;
    text-indent: 1em;
}

/* ソースコード */
.source {}

.source pre {
    margin: 0.5em 8%;
    overflow: auto;
    _width: 100%;  /* IE6 */
    overflow-y: hidden;
    padding: 10px;
    font-size: 10pt;
    background-color: #fff6dc;
    border: 1px solid #999999;
}

.source p.caption {
    text-align: center;
    font-size: 0.9em;
}

/* 式 */
.expression {
    display: block;
    width: 40em;
    text-align: center;
    margin: 0.5em auto;
    padding: 5px;
    background-color: #EEEEEE;
    border: 1px solid #999999;
}

/* 一日目用ナビゲーション */
#content .navigation {
    border-top: 1px solid #999999;
    margin-top: 1em;
    padding-top: 12px;
    text-align: center;
}

/* 最終更新日 */
.lastupdate {
    padding: 0;
    border: 0;
    clear: both;
    background: #FFFFFF;
    text-align: right;
    font-size: 0.8em;
}

/* ボタン */
.button {
    border-top: 1px solid #EEEEEE;
    border-left: 1px solid #EEEEEE;
    border-bottom: 1px solid #666666;
    border-right: 1px solid #666666;
    padding: 2px 0.5em;
    margin: 0 0.3em;
    background-color: #EFEBDE;
}


/* 変数 */
var {
    /* text-decoration: underline; */
}

/* 印刷用 */
hr.pagebreak {
    display: none;
}

/* 見出し */
h1 {
    display: block;
    height: 60px;
    margin-left: 10%;
    text-indent: -9999em;
}

#toppage h1 {
    height: 100px;
}

h2 {
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-size: 1.1em;
    padding: 0.3em 2em;
    border-top: 2px solid #365A87;
    border-bottom: 2px solid #365A87;
    background-color: #688BB6;
    background-image: url('../img/background_pic.gif');
    background-position: bottom right;
    background-repeat: no-repeat;
    color: #FFFFFF;
}

h3 {
    width: 50%;
    font-weight: bold;
    padding: 0.2em 1em;
    margin-left: 1em;
    margin-top: 1em;
    border-bottom: 1px solid #113399;
}


/* ------------------------------------------------------
// ページレイアウト
//------------------------------------------------------ */
#wrapper {
    width: 86%;
    min-width: 700px;
    margin: 0 auto;
    text-align: left;
    background: url('../img/shadow_l.png') top left repeat-y;
    background-color: #FFFFFF;
}

#content {
    background: url('../img/shadow_r.png') top right repeat-y;
    padding: 10px 40px;
    padding-top: 0px;
}

#toppage #content {
    padding-top: 10px;
}

#toppage #left {
    width: 49%;
    float: left;
}

#toppage #right {
    margin-left: 51%;
}
#toppage #center {
	text-align:center;
    margin-left:auto;margin-right:auto;
    text-align:left;
}
/* ------------------------------------------------------
// ヘッダ
//------------------------------------------------------ */
#header {
    display: block;
    height: 110px;
    background: url('../img/header.png') top left repeat-x;
}

#toppage #header {
    display: block;
    height: 150px;
    background: url('../img/header_toppage.png') top left repeat-x;
}

#header .navigation {
    display: block;
    height: 50px;
    margin: 0 10%;
    color: #666666;
    font-size: 14px;
    line-height: 50px;
    text-align: right;
}

#header .navigation a {
    color: #666666;
}

#header .navigation a:hover {
    color: #666666;
}

#toppage #header .navigation {
    color: #CCCCCC;
    font-size: 0px;
}

/* タイトル */
#header h1.toppage {
    background: url('../img/title_toppage.png') top left no-repeat;
}

#header h1.first {
    background: url('../img/title_first.png') top left no-repeat;
}

#header h1.experiment {
    background: url('../img/title_experiment.png') top left no-repeat;
}

#header h1.week2 {
    background: url('../img/title_week2.png') top left no-repeat;
}

#header h1.appendix {
    background: url('../img/title_appendix.png') top left no-repeat;
}

#header h1.instruction {
    background: url('../img/title_instruction.png') top left no-repeat;
}

#header h1.schematic {
    background: url('../img/title_schematic.png') top left no-repeat;
}

#header h1.oscillo {
    background: url('../img/title_oscillo.png') top left no-repeat;
}

#header h1.experiment1 {
    background: url('../img/title_experiment1.png') top left no-repeat;
}

#header h1.experiment2 {
    background: url('../img/title_experiment2.png') top left no-repeat;
}

#header h1.experiment3 {
    background: url('../img/title_experiment3.png') top left no-repeat;
}

#header h1.experiment4 {
    background: url('../img/title_experiment4.png') top left no-repeat;
}

#header h1.experiment5 {
    background: url('../img/title_experiment5.png') top left no-repeat;
}

#header h1.experiment6 {
    background: url('../img/title_experiment6.png') top left no-repeat;
}

#header h1.experiment7 {
    background: url('../img/title_experiment7.png') top left no-repeat;
}


/* ------------------------------------------------------
// フッタ
//------------------------------------------------------ */
#footer {
    clear: both;
    display: block;
    height: 37px;
    text-align: center;
    background: #666666 url("../img/footer.png") top left repeat-x;
    border-top: 1px solid #666666;
    border-bottom: 1px solid #444444;
}

#footer .wrapper {
    width: 88%;
    min-width: 600px;
    margin: 0 auto;
    text-align: left;
}

#footer ul.navigation {
    list-style-image: url("../img/arrow.png");
}

#footer ul.navigation li {
    float: left;
    margin-right: 40px;
}

#footer ul.navigation a {
    font-size: 12px;
    color: #FFFFFF;
}


/* ------------------------------------------------------
// 画像
//------------------------------------------------------ */
.image {
    margin: 20px;
    text-align: center;
}

.image p.caption {
    margin: 0 auto;
    padding: 3px;
    width: 40%;
    font-size: 0.9em;
    /*
    border: 1px solid #CCCCCC;
    background-color: #CCCCCC;
    */
}


/* ------------------------------------------------------
// 表
//------------------------------------------------------ */
table {
    margin: 10px auto;
    text-align: center;
    font-size: 0.9em;
    empty-cells: show;
    border-spacing: 0;
    border-collapse: collapse;
}

table .caption {
    margin: 5px;
    font-size: 0.9em;
}

table th, td {
    padding: 0.4em 0;
}

table th {
    color: #FFFFFF;
    background-color: #999999;
    border-right: 1px solid #FFFFFF;
    border-bottom: 1px solid #CCCCCC;
}

table td {
    background-color: #EEF0F4;
    border-right: 1px solid #FFFFFF;
    border-bottom: 1px solid #CCCCCC;
}

/* 実験日程 */
table.schedule td {
    width: 10em;
    padding-left: 1em;
    text-align: left;
}

/* 表1(接続) */
table.connect {
    border-top: 1px solid #CCCCCC;
}

table.connect th {
    width: 100px;
    border-right: 1px hidden #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
}

table.connect td {
    width: 45px;
    background-color: #eef0f4;
    border-right: 1px hidden #FFFFFF;
    border-bottom: 1px solid #CCCCCC;
}

table.connect td.end {
    width: 1px;
    text-indent: -9999em;
    border-right: 1px solid #CCCCCC;
}

/* 表2 */
table.table2 th {
    width: 12em;
}

/* 表3 */
table.table3 th {
    width: 10em;
}

/*  表6 */
table.table6 th {
    width: 8em;
}

table.table6 td {
    width: 5em;
} 

/* サブルーチン */
table.subroutine {
    border: 1px solid #999999;
}

table.subroutine th {
    border-width: 0;
    padding: 3px 0;
}

table.subroutine td {
    padding: 0.3em 0.5em;
    border-bottom-width: 0px;
    border-right-width: 0px;
    background-color: #fff6dc;
    text-align: left;
    font-family: monospace;
}

table.subroutine th.label {
    width: 8em;
}

table.subroutine th.opcode {
    width: 8em;
}

table.subroutine th.operand {
    width: 8em;
}

table.subroutine th.cycle {
    width: 6em;
}

table.subroutine th.note {
    width: 18em;
    border-right: 1px solid #999999;
}

table.subroutine tr.loop td {
    background-color: #CCFFCC;
}

table.subroutine tr.abridgement td {
    padding-left:110px;
}

/* PICのアセンブラ命令一覧 */
table.pic_instructions td {
    text-align: left;
    padding-left: 1em;
}

table.pic_instructions th.instruction {
    width: 8em;
}

table.pic_instructions th.function {
    width: 20em;
}

table.pic_instructions th.flag {
    width: 9em;
}

table.pic_instructions th.cycle {
    width: 9em;
}

/* PIC16F84Aレジスタ */
table.register th {
    width: 7em;
}

/* ------------------------------------------------------
// リスト
//------------------------------------------------------ */
ol {
    line-height: 1.4em;
    margin-left: 5em;
    padding: 0.5em 0;
}

ul {
    line-height: 1.4em;
    margin-left: 4em;
    margin-right: 2em;
    padding: 0.5em 0;
}

ol ul {
    margin-left: 1em;
}

ul.section {
    margin-left: 3em;
    width: 22em;
    border-left: 5px solid #688BB6;
    padding: 1em 0;
}

ul.section li {
    list-style: none;
    line-height: 1.2em;
}

ul.section li a {
    display: block;
    padding: 0.3em 1.5em;
    _width: 100%;  /* IE6 */
}

ul.section li a:hover {
    color: #FFFFFF;
    text-decoration: none;
    background-color: #688BB6;
}

li {
    line-height: 1.5em;
}

/* ------------------------------------------------------
// その他
//------------------------------------------------------ */
.overline {
    text-decoration: overline;
}

.center {
    text-align: center;
}
