* {
    box-sizing: border-box;
}

body {
    font-family:"Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
    background: -webkit-linear-gradient(top,#ffffff,#ffffff);
    background: -moz-linear-gradient(top,#ffffff,#ffffff);
    background: -o-linear-gradient(top,#ffffff,#ffffff);
    background: -ms-linear-gradient(top,#ffffff,#ffffff);
    box-shadow: 3px 3px 3px rgba(0,0,0,0.5);
    font-family: Yu Gothic,Hiragino Kaku Gothic Pro,MS UI Gothic;
    
}

a {
    text-decoration: none;
}

#container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
}

#naMain img {
    width: 50%;
    max-width: 300px;
}

h1 img {
    max-width:960px;
    width: 100%;
    height: auto;
    box-shadow: 3px 3px 7px rgba(0,0,0,0.5);
}

nav {
    margin-bottom: 0px;
}

.navi li a {
    display: inline-block;
    color: #ffffff;
    border: 2px;
    border-color: #000000;
    border-style: solid;
    border-width: 3px;
    border-color: #666666;
    margin-bottom: 5px;
    padding: 5px 10px;
    font-size: 125%;
    font-weight: bolder;
    width: 150px;
    text-align: center;
    text-shadow: 2px 2px 1px rgba(0,0,0,1);
    box-shadow: 3px 3px 7px rgba(0,0,0,0.5);
    background: -webkit-linear-gradient(top left,#888888,#dddddd);
    background: -moz-linear-gradient(top left,#888888,#dddddd);
    background: -o-linear-gradient(top left,#888888,#dddddd);
    background: -ms-linear-gradient(top left,#888888,#dddddd);
}

.navi li {
    list-style:none;
    display: inline-block;
}

.navi > li:hover> a {
    text-decoration: none;
    color:#ffe295;
    background: -webkit-linear-gradient(top,#444444,#aaaaaa);
    background: -moz-linear-gradient(top,#444444,#aaaaaa);
    background: -o-linear-gradient(top,#444444,#aaaaaa);
    background: -ms-linear-gradient(top left,#444444,#aaaaaa);
        
}

h2 {
    float: left;
    color: #ffffff !important;
    font-size: 150%;
    font-weight: bolder !important;
    display: inline-block;
    padding: 5px 20px;
    width: 250px;
    margin-right: 20px;
    text-align: center;
    text-shadow: 2px 2px 1px rgba(0,0,0,1);
    box-shadow: 3px 3px 7px rgba(0,0,0,0.5);
    background: -webkit-linear-gradient(left,#0073B3,#CEDDF1);
    background: -moz-linear-gradient(left,#0073B3,#CEDDF1);
    background: -o-linear-gradient(left,#0073B3,#CEDDF1);
    background: -ms-linear-gradient(left,#0073B3,#CEDDF1);
}

h3 {
    float: left;
    color: #ffffff !important;
    font-size: 110%;
    font-weight: bolder !important;
    display: inline-block;
    padding: 5px 20px;
    width: 400px;
    margin-right: 20px;
    text-align: center;
    text-shadow: 2px 2px 1px rgba(0,0,0,1);
    box-shadow: 3px 3px 7px rgba(0,0,0,0.5);
    background: -webkit-linear-gradient(left,#B55DFF,#FFE3FF);
    background: -moz-linear-gradient(left,#B55DFF,#FFE3FF);
    background: -o-linear-gradient(left,#B55DFF,#FFE3FF);
    background: -ms-linear-gradient(left,#B55DFF,#FFE3FF);
}

h4 {
    float: none;
    clear: both;
    color: #ffffff !important;
    font-size: 110%;
    font-weight: bolder !important;
    display: block;
    padding: 5px 20px;
    width: 200px;
    margin-right: 20px;
    text-align: center;
    text-shadow: 2px 2px 1px rgba(0,0,0,1);
    box-shadow: 3px 3px 7px rgba(0,0,0,0.5);
    background: -webkit-linear-gradient(left,#888888,#ffffff);
    background: -moz-linear-gradient(left,#888888,#ffffff);
    background: -o-linear-gradient(left,#888888,#ffffff);
    background: -ms-linear-gradient(left,#888888,#ffffff);
}

#photo img {
    display: inline-block;
    max-width: 381px;
    max-height: 254px;
    width: 100%;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.5);
}

table {
    margin-top: 0px;
    display:inline-block;
    border-collapse: collapse;
}

#prof tr {
    border-bottom: 1px solid #666666;
}

.tdem li {
    list-style: none;
    padding-left: 1em;
}

.tdem td {
    text-indent: -1em;
}

table th {
    width: 150px;
}

.icon img {
    width: 100px;
    height: 100px;
    box-shadow: 3px 3px 5px rgba(150,150,150,0.5);
}

.icon {
    border-color: #000000;
    border-style:solid;
    border-width: 2px;
    border-color: #666666;
    padding: 5px 5px;
    text-align: center;
    background: -webkit-linear-gradient(top left,#cccccc,#ffffff);
    background: -moz-linear-gradient(top left,#cccccc,#ffffff);
    background: -o-linear-gradient(top left,#cccccc,#ffffff);
    background: -ms-linear-gradient(top left,#cccccc,#ffffff);
}

.title {
    border-color: #000000;
    border-style:solid;
    border-width: 2px;
    border-color: #666666;
    text-align: center;
    font-size: 18px;
    font-weight: bolder;
    text-shadow: 1px 1px 1px rgba(100,100,100,0.5);
    background: -webkit-linear-gradient(top,#CEDDF1,#ffffff);
    background: -moz-linear-gradient(top,#CEDDF1,#ffffff);
    background: -o-linear-gradient(top,#CEDDF1,#ffffff);
    background: -ms-linear-gradient(top left,#CEDDF1,#ffffff);
}

.title a {
    color:blue;
}

.title:hover > a {
    color: #ff8800;
}

.text {
    border-color: #000000;
    border-style:solid;
    border-width: 2px;
    border-color: #666666;
    padding: 0px 10px;
    text-align:left;
    height: 65px;
    background: #ffffff;
}

.mainPhoto img {
    max-width: 900px;
    max-height: 600px;
    width: 100%;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.photo {
    float: left;
    max-width: 300px;
    max-height: 230px;
    width: 100%;
    margin-right: 10px;
    margin-bottom: 20px;
}

.photo img {
    max-width: 300px;
    max-height: 200px;
    margin-bottom: 0px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.photo p {
    margin-top: 0;
    margin-bottom: 0;
}

.mainText {
    clear: both;
}

.line {
    clear: both;
    display: block;
    max-width: 960px;
    height: 20px;
    border-bottom: 1px solid #999999;
}