@charset "utf-8";
@media screen and (min-width: 700px){

h2{
    margin-top: 10px;
    margin-bottom: 0px;
    border-top: 4px solid #b70000;
    border-bottom: 3px solid #b70000;
    padding: 0px 0px 0px 50px;
    width: 950px;
    height: 55px;
    margin-left: auto;
    margin-right: auto;
    font-size: 35px;
    font-family: serif;
    line-height: 55px;
    background-color: #ffffff;
}
.banzuke{
    font-size: 20px;
}
.namae{
    font-size: 30px
}
.yomi{
    font-size: 20px
}
.yomi2{
    font-size: 17px;
}
.profile img{
    width: 270px;
    
}
.main{
    width: 1000px;
    margin-left: auto;
    margin-right: auto;   
}
.data{
    width:580px;
    height: 360px;
    border-spacing: 0px 0px;
    margin-left: 40px;
    font-size: 19px;
}
.komoku{
    width: 145px;
}
.data td{
    padding: 0px 0px 0px 10px;
    border-bottom: 1px solid;
}
.profile{
    width: 948px;
    padding: 20px 0px 20px 50px;
    background-color: #ffffff;
    border: 1px solid #b2b2b2;
    border-top: 1px solid #b70000;
    display: flex;
}
ul {
    list-style-type: none; 
    padding: 0; 
}
.photo {
    width: 998px;
    height: 520px;
    background-color: #fff;
    border: 1px solid #b2b2b2;
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
}
.main-img {
    width: 580px;
    height: 500px;
    margin: 10px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.main-img img {
    width: 500px; 
}
.sub-img {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    width: 420px;
    height: 500px;
    margin-top: 19px;
    margin-right: 0px;
}
.sub-img img {
    width: 110px;
    margin-right: 20px;
    border: 3px solid #b2b2b2; 
    cursor: pointer;  
}
h3{
    margin-top: 10px;
    margin-bottom: 0px;
    border-top: 3px solid #b70000;
    border-bottom: 2px solid #b70000;
    background-color: #ffffff;
    padding: 0px 0px 0px 20px;
    width: 980px;
    height: 40px;
    margin-left: auto;
    margin-right: auto;
    font-size: 25px;
    font-weight: normal;
    line-height: 40px;
    display: flex;
}
.gallery{
    display: inline-block;
    margin-right: auto;
}
.yasuko{
    display: inline-block;
    display: flex;
    margin-top: 10px;
    padding-right: 15px;
    font-size: 10px;
    text-decoration: none;
}
.yasuko a{
    text-decoration: none;
    color: #333333;
}
.seiseki{
    width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0px 10px 15px 10px;
    border-spacing: 0px 0px;
    border: 1px solid #b2b2b2;
    border-top: 1px solid #b70000;
    background-color: #ffffff;
}
.seiseki th{
    padding: 10px 0px 0px 15px;
    text-align: left;
    border-bottom: 2.3px solid #b70000;
    font-weight: bold;
    font-size: 20px;
}
.seiseki tr:nth-child(odd) td{
    background-color: #eff2ff;
}
.seiseki tr:nth-child(even) td{
    background-color: #ffffff;
}
.seiseki td{
    height: 30px;
    padding: 0px 0px 0px 15px;
    font-size: 20px;
}
.basho{
    width: 155px;
}
.tii{
    width: 210px;
}
.hoshi{
    width: 125px;
}
.shikona{
    width: 105px;
}
.return{
    margin: 20px 0px 0px 0px;
    border: 3px solid #b70000;
    text-align: center;
    width: 994px;
    height: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-size: 25px;
    line-height: 50px;
    background-color: #ffffff;
}
.return a{
    text-decoration: none;
    color: #333333;
    display: block;
}
}












@media screen and (max-width: 699px){

h2{
    margin: 3px 0px 0px 0px;
    border-top: 2px solid #b70000;
    border-bottom: 2px solid #b70000;
    padding: 0px 0px 0px 8px;
    width: 100%;
    box-sizing: border-box;
    font-family: serif;
    font-size: 27px;
    height: auto;
    line-height: 1.3;
    background-color: #ffffff;
}
.namae{
    font-size: 23px
}
.yomi{
    font-size: 15px
}
.yomi2{
    font-size: 11px;
}
.img img{
    width: 80%;
    border: 1px solid #b2b2b2;
    margin-top: 5px;
}
.img{
    text-align: center;
}
.data{
    width: 100%;
    border-spacing: 0px 0px;
    font-size: 13px
}
.data td{
    height: 30px;
    padding: 0px 5px 0px 5px;
    border-bottom: 1px solid;
    background-color: #ffffff;
}
ul {
    list-style: none; 
    padding: 0; 
}
.photo {
    width: 100%;
    background-color: #fff;
    margin-top: 0px;
    margin-bottom: 0px;
}
.main-img {
    width: 100%; 
    text-align: center;  
}
.main-img img {
    width: 95%;
    margin-top: 5px;
    
}
.sub-img {
    width: 95%;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
}
.sub-img img {
    width: 95%;
    border: 1.5px solid #b2b2b2;    
}
.sub-img > li{
    width: 16.6%;
}
h3{
    margin-top: 5px;
    margin-bottom: 0px;
    padding-left: 10px;
    border-top: 2px solid #b70000;
    border-bottom: 2px solid #b70000;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    height: 30px;
    font-size: 20px;
    font-weight: normal;
    line-height: 26px;
    display: flex;
}
.gallery{
    display: inline-block;
    margin-right: auto;
}
.yasuko{
    display: inline-block;
    display: flex;
    margin-top: 7px;
    padding-right: 5px;
    font-size: 7px;
    
}
.yasuko a{
    text-decoration: none;
    color: #333333;
}
.seiseki{
    width: 100%;
    border-spacing: 0px 0px;
    background-color: #ffffff;
}
.seiseki th{
    padding: 10px 0px 0px 5px;
    text-align: left;
    border-bottom: 1.5px solid #b70000;
    font-weight: bold;
    font-size: 13px;
}
.komoku{
    width: 30%;  
}
.seiseki tr:nth-child(odd) td{
    background-color: #eff2ff;
}
.seiseki tr:nth-child(even) td{
    background-color: #ffffff;
}
.seiseki td{
    height: 30px;
    padding-left: 5px;
    font-size: 12px;
}
.basho{
    width: 20%;
}
.tii{
    width: 30%;
}
.hoshi{
    width:22%;
}
.shikona{
    width: 15%;
}
.return{
    margin: 3px 0px 0px 0px;
    border: 2px solid #b70000;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    height: 30px;
    font-size: 20px;
    line-height: 25px;
    background-color: #ffffff;
}
.return a{
    text-decoration: none;
    color: #333333;
    display: block;
}
}