@charset "utf-8";
@media screen and (min-width: 700px){
h2{
    margin: 10px 0px 0px 0px;
    border-top: 3px solid #b70000;
    border-bottom: 3px solid #b70000;
    padding: 0px 0px 0px 20px;
    width: 980px;
    font-weight: normal;
    font-size: 25px;
    line-height: 40px;
    background-color: #ffffff;
    margin-left: auto;
    margin-right: auto;
}
.link{
    font-size: 20px;  
    float: right;
    margin-right: 50px; 
}
.link a{
    text-decoration: none;
    color: #333333;
}
.tabs{
    width: 1000px;
    margin-top: 5px;
    margin-left: auto;
    margin-right: auto;
}
.tab_item{
    height: 35px;
    padding: 5px;
    background-color: #c77777;
    border-right: 2px solid #fff;
    line-height: 35px;
    font-size: 22px;
    text-align: center;
    color: #fff;
    display: block;
    float: left;
    cursor: pointer;
}
input[name="tab_item"]{
    display: none;
}
.tab_content{
    display: none;
    clear: both;
    overflow: hidden;
}
#firstquarter:checked ~ #firstquarter_content,
#secondquarter:checked ~ #secondquarter_content,
#thirdquarter:checked ~ #thirdquarter_content,
#fouthquarter:checked ~ #fouthquarter_content {
    display: block;
}
.tabs input:checked + .tab_item{
    background-color: #b70000;
    color: #fff;
}
.return-a{
    border: 2px solid #b70000;
    text-align: center;
    width: 250px;
    height: 35px;
    font-size: 20px; 
    line-height: 35px; 
    float: right;
    margin-right: 0px; 
}
.return-a a{
    text-decoration: none;
    color: #333333;
    display: block;
}
.kyo{
    text-align: center;
    font-size: 22px;
    color: red;
}
.hizuke{
    margin-top: 10px;
    margin-bottom: 3px;
    text-align: center;
    font-size: 17px;
    color: #0000FF;
}
.nikki{
    text-align: justify;
}
.aisatsu{
    text-align: center;
    color: red;
}
.container{
    width: 950px;
    margin-top: 0px;
    padding: 15px 25px 15px 25px;
    border-top: 2px solid #b70000;
    background-color: #FFFF99;
}
.omachi{
    font-size: 40px;
    text-align: center;
}
.nondisplay{
    display: none;
}
.return{
    margin: 10px 0px 0px 0px;
    border: 3px solid #b70000;
    text-align: center;
    width: 994px;
    height: 50px;
    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 10px;
    width: 100%;
    box-sizing: border-box;
    font-weight: normal;
    font-size: 20px;
    line-height: 30px;
    background-color: #ffffff;
}
.link{
    font-size: 15px; 
    float: right;   
}
.link a{
    text-decoration: none;
    color: #333333;
}
.tabs{
    width: 100%;
    margin-top: 5px;
}
.tab_item{
    height: 30px;
    margin-left: 2px;
    padding: 3px;
    background-color: #c77777;
    line-height: 30px;
    font-size: 15px;
    text-align: center;
    color: #fff;
    display: block;
    float: left;
    cursor: pointer;
}
input[name="tab_item"]{
    display: none;
}
.tab_content{
    display: none;
    clear: both;
    overflow: hidden;
}
#firstquarter:checked ~ #firstquarter_content,
#secondquarter:checked ~ #secondquarter_content,
#thirdquarter:checked ~ #thirdquarter_content,
#fouthquarter:checked ~ #fouthquarter_content {
    display: block;
}
.tabs input:checked + .tab_item{
    background-color: #b70000;
    color: #fff;
}
.return-a{
    display: none;
}

.kyo{
    text-align: center;
    font-size: 18px;
    color: red;
}
.hizuke{
    text-align: center;
    font-size: 17px;
    margin-top: 10px;
    color: #0000FF;
}
.nikki{
    text-align: justify;
}
.aisatsu{
    color: red;
}
.container{
    width: 100%;
    box-sizing: border-box;
    margin-top: 0px;
    padding: 5px 10px 10px 10px;
    border-top: 1.5px solid#b70000;
    background-color: #ffff99;
}
p{
    font-size: 15px;
}
.omachi{
    font-size: 30px;
    text-align: center;
}
.nondisplay{
    display: none;
}
.return{
    margin: 5px 0px 0px 0px;
    border: 2px solid #b70000;
    text-align: center;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
    height: 30px;
    font-size: 18px;
    line-height: 30px;
    background-color: #ffffff;
}
.return a{
    text-decoration: none;
    color: #333333;
    display: block;
}
}