* {box-sizing:border-box}

a {
    text-decoration: none;
}

/* a:visited {
    color: inherit;
} */

header {
    height: 100px;
    border-bottom: 5px solid #5ED079;
    padding: 0 50px;
    position: relative;
}

/* .header-logo {

} */

.header-img {
    height: 50px;
    position: absolute;
    top: 50%;
    margin-top: -25px;
    display: inline-block;
}

.header-list {
    width: 750px;
    position: relative;
    position: absolute;
    top: 50%;
    right: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* text-align: right; */
}

.header-list ul {
    position: absolute;
    right: 0;
}




.header-list li {
    /* margin-left: 20px; */
    font-size: 16px;
}

.header-list a {
    color: #7E7E7E;
    padding-bottom: 5px;
}

.header-list li:hover {
    cursor: pointer;
    color: rgb(43, 41, 41);
}

.line-blueblack {
    border-bottom: 2px solid #171155;
    /* background: linear-gradient(transparent 80%, #0EFF57 100%); */
    padding: 0 10px;
}

.line-green {
    border-bottom: 2px solid #0EFF57;
    /* background: linear-gradient(transparent 80%, #0EFF57 100%); */
    padding: 0 10px;
}

.line-blue {
    border-bottom: 2px solid #00C4FF;
    padding: 0 10px;
}

.line-red {
    border-bottom: 2px solid #FF0000;
    padding: 0 10px;
}

.line-yellow {
    border-bottom: 2px solid #01740b;
    padding: 0 10px;
}

.line-purple {
    border-bottom: 2px solid #ff8800;
    padding: 0 10px;
}

.container {
    margin: 0 50px;
}

.grade {
    margin-top: 50px;
    height: 500px;
    /* background-color: #27AD84; */
    opacity: 0.6;
    position: relative;
    z-index: 1;
    /* color: #fff; */
    /* color: white; */
}

.grade-start {
    color: rgb(2, 2, 2);
    font-size: 35px;
    text-align: center;
    /* font-weight: bold; */
    padding-top: 50px;
    line-height: 1.5;
    /* padding-bottom: 15px; */
}

.grade-start span {
    color: red;
    font-weight: bold;
    font-size: 40px;
}

.nature {
    background-image: url(../img/nature1.jpg);
    background-size: cover;
    position: relative;
    border: 1px solid white;
    font-family: "Hiragino Maru Gothic Pro";
}



.grade-first {
    color: rgb(2, 2, 2);
    font-size: 25px;
    text-align: center;
    /* font-weight: bold; */
    padding-top: 20px;
    line-height: 1.5;
    padding-bottom: 20px;
    /* position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%); */
}

.grade-first span {
    color: rgb(8, 138, 8);
    font-size: 40px;
    font-weight: bold;
}

.grade-second {
    color: rgb(2, 2, 2);
    font-size: 20px;
    text-align: center;
    letter-spacing: 3px;
}

.grade-third {
    color: rgb(19, 18, 18);
    font-size: 15px;
    padding-top: 10px;
    text-align: center;
}

.btn-square-shadow {
  display: inline-block;
  width: 300px;
  height: 100px;
  /* padding: 0.5em 1em; */
  text-decoration: none;
  background: #239e13;/*ボタン色*/
  color: rgb(255, 255, 255);
  border-bottom: solid 4px #01740b;
  border-radius: 10px;
  font-size: 20px;
  /* text-shadow:
    1px 0 0 rgb(1, 88, 20),
    0 1px 0 rgb(1, 88, 20),
    -1px 0 0 rgb(1, 88, 20),
    0 -1px 0 rgb(1, 88, 20) */
  /* font-weight: bold; */
  /* font-weight: lighter; */
}
.btn-square-shadow:hover {
  /*ボタンを押したとき*/
  -webkit-transform: translateY(4px);
  transform: translateY(4px);/*下に動く*/
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.2);/*影を小さく*/
  border-bottom: none;
}

.grade-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.grade-item {
    margin-top: 50px;
    width: 300px;
    height: 100px;
    /* text-align: center; */
    /* background-color: #fff; */
}

.grade-item p {
    text-align: center;
    line-height: 100px;
}

.flex-item {
    margin-top: 80px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.flex-p {
    width: 360px;
    height: 230px;
    font-size: 23px;
    position: relative;
    font-weight: bold;
}

/* .img {
    width: 360px;
    height: 230px;
} */

.flex-p p {
    z-index: 1;
    /* color: #fff; */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: white;
}

.green {
    background-image: url(../img/about.jpg);
    background-size: cover;
    position: relative;
    border: 1px solid white;
}

.green::after {
    content: "";
    background-color: #0be04b;
    opacity: 0.6;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.green:hover {
    cursor: pointer;
    background-color: #fff;
    border: 20px double rgb(255, 255, 255);
    transition: 0.3s;
}

/* .green {
    display: block;
    background-color: #00FF4E;
    opacity: 0.8;
    border: solid 3px #00FF4E;
    padding: 10px 50px;
    text-decoration: none;
    font-size: 32px;
    color: #fff;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: 0.2s linear;
}

.green::before, .green::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #00FF4E;
    opacity: 0.5;
    transition: 0.2s linear;
}

.green::before{
    top: 0;
    background-image: url(../img/test.jpg);
}

.green::after{
    bottom: 0;
    color: #00FF4E;
}
.green:hover{
    color: #00FF4E;
    background-color: #fff;
    cursor: pointer;
}

.green::before, .green::after{
    height: 0;
    background-color: transparent;
} */

.blue {
    background-image: url(../img/service.jpg);
    background-size: cover;
    position: relative;
    border: 1px solid white;
}

.blue::after {
    content: "";
    background-color: #5bc1e0;
    opacity: 0.6;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.blue:hover {
    cursor: pointer;
    background-color: #fff;
    border: 20px double rgb(255, 255, 255);
    transition: 0.3s;
}

.red {
    background-image: url(../img/trouble.jpg);
    background-size: cover;
    position: relative;
    border: 1px solid white;
}

.red::after {
    content: "";
    background-color: #f00;
    opacity: 0.5;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.red:hover {
    cursor: pointer;
    background-color: #fff;
    border: 20px double rgb(255, 255, 255);
    transition: 0.3s;
}

.flex-item2 {
    margin-top: 80px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.yellow {
    background-image: url(../img/company.jpg);
    background-size: cover;
    position: relative;
    border: 1px solid white;
}

.yellow::after {
    content: "";
    background-color: #01740b;
    opacity: 0.7;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.yellow:hover {
    cursor: pointer;
    background-color: #fff;
    border: 20px double rgb(255, 255, 255);
    transition: 0.3s;
}

.purple {
    background-image: url(../img/contact.jpg);
    background-size: cover;
    position: relative;
    border: 1px solid white;
}

.purple::after {
    content: "";
    background-color: #ff8800;
    opacity: 0.6;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.purple:hover {
    cursor: pointer;
    background-color: #fff;
    border: 20px double rgb(255, 255, 255);
    transition: 0.3s;
}

.question {
    /* border: 5px double #ff8800; */
    background-color: rgb(212, 40, 40);
    height: 200px;
    margin-bottom: 50px;
    position: relative;
    color: white;
}

.question-title {
    text-align: center;
    padding-top: 20px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.question ul {
    text-align: center;
    font-size: 15px;
    font-weight: 400;
}

.question li {
    margin-top: 15px;
}

.question-subtitle {
    text-align: center;
    margin-bottom: 25px;
    line-height: 20px;
}

.question-subtitle span {
    font-weight: bold;
}

.btn2 {
    text-align: center;
}

.btn-square-shadow2 {
  display: inline-block;
  width: 300px;
  height: 70px;
  /* padding: 0.5em 1em; */
  text-decoration: none;
  background: #ffffff;/*ボタン色*/
  color: rgb(255, 0, 0);
  border-bottom: solid 4px #bebdbd;
  border-radius: 3px;
  text-align: center;
  line-height: 65px;
  font-weight: bold;
}

.btn-square-shadow2:hover {
  /*ボタンを押したとき*/
  -webkit-transform: translateY(4px);
  transform: translateY(4px);/*下に動く*/
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.2);/*影を小さく*/
  border-bottom: none;
}

.read {
    text-decoration: none;
    color: rgb(255, 255, 255);
    /* border-bottom: 1px solid gray; */
    font-size: 12px;
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%,-10%);
}

.read:hover {
    color: #7ACCB3;
    border-bottom: 1px solid #7ACCB3;
}

.footer-up {
    height: 80px;
    background-color: rgb(241, 239, 239);
    padding: 20px 50px;
    font-size: 12px;
    color: #7ACC8D;
}

.footer-up a {
    color: #7ACC8D;
}

.footer-top {
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
}

.footer-middle {
    display: flex;
    flex-direction: row;
}

.footer-bottom {
    height: 40px;
    background-color: #7ACC8D;
    color: white;
    text-align: center;
    font-size: 12px;
    line-height: 40px;
    letter-spacing: 2px;
    font-weight: lighter;
}

@media only screen and (max-width: 979px) {
    /* .flex-item {
        flex-wrap: wrap;
        display: block;
    } */
    /* .flex-item3 {
        display: flex;
        justify-content: space-evenly;
        margin-bottom: 70px;
    } */
    /* .red-center {
        text-align: center;
        margin: 0 auto;
    } */
    /* .flex-p {
        width: 330px;
    } */
}



@media (max-width: 1279px) {
    .header-img {
        height: 40px;
        top: auto;
        bottom: 25%;
    }

    .header-list li {
        font-size: 80%;
        /* margin-right: 10px; */
    }

    .header-list a {
        margin-right: 10px;
    }

    .header-list {
        justify-content: flex-end;
    }

    .flex-p {
        width: 300px;
        height: 190px;
        font-size: 20px;
    }
}

@media (max-width: 1024px) {

    header {
        width: 100%;
        /* height: 100px; */
        /* margin-bottom: 50px; */
        z-index: 100;
        background-color: #fff;
        position: fixed;
        left: 0;
        top: 0;
    }

    .grade {
        margin-top: 150px;
    }

.header-list {
    flex-direction: column;
}

    .hamburger {
  display : block;
  position: fixed;
  z-index : 3;
  right : 45px;
  top   : 30px;
  width : 42px;
  height: 42px;
  cursor: pointer;
  text-align: center;
}
.hamburger span {
  display : block;
  position: absolute;
  width   : 30px;
  height  : 2px ;
  left    : 6px;
  background : #555;
  -webkit-transition: 0.3s ease-in-out;
  -moz-transition   : 0.3s ease-in-out;
  transition        : 0.3s ease-in-out;
}
.hamburger span:nth-child(1) {
  top: 10px;
}
.hamburger span:nth-child(2) {
  top: 20px;
}
.hamburger span:nth-child(3) {
  top: 30px;
}

/* ナビ開いてる時のボタン */
.hamburger.active span:nth-child(1) {
  top : 16px;
  left: 6px;
  -webkit-transform: rotate(-45deg);
  -moz-transform   : rotate(-45deg);
  transform        : rotate(-45deg);
}

.hamburger.active span:nth-child(2),
.hamburger.active span:nth-child(3) {
  top: 16px;
  -webkit-transform: rotate(45deg);
  -moz-transform   : rotate(45deg);
  transform        : rotate(45deg);
}

nav.globalMenuSp {
  position: fixed;
  z-index : 2;
  top  : 70px;
  left : 70%;
  color: #000;
  background: #fff;
  text-align: center;
  transform: translateX(100%);
  transition: all 0.6s;
  width: 30%;
}

nav.globalMenuSp ul {
  background: rgb(255, 255, 255);
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

nav.globalMenuSp ul li {
  list-style-type: none;
  padding: 0;
  width: 100%;
  border-bottom: 1px solid #fff;
}
nav.globalMenuSp ul li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
nav.globalMenuSp ul li:hover{
  background :#ddd;
}

nav.globalMenuSp ul li a {
  height: 70px;
  line-height: 50px;
  display: block;
  color: #000;
  padding: 1em 0;
  text-decoration :none;
}

/* このクラスを、jQueryで付与・削除する */
nav.globalMenuSp.active {
  transform: translateX(0%);
}

.grade-flex {
    justify-content: space-around;
}
.grade {
    height: auto;
}
.btn-square-shadow {
    width: 240px;
    /* width: 80%; */
    height: 80px;
    font-size: 18px;
}
.grade-item {
    margin-top: 30px;
    width: 240px;
    height: 80px;
    margin-bottom: 30px;
}
.grade-item p{
    line-height: 80px;
}
.grade-start {
    font-size: 25px;
}
.grade-start span {
    font-size: 30px;
}
.grade-first {
    font-size: 25px;
}
.grade-first span {
    font-size: 30px;
}
.flex-p {
    width: 240px;
    height: 160px;
    font-size: 17px;
    /* justify-content: center; */
}
   
}

@media (max-width:900px) {
    .flex-p {
        width: 210px;
        height: 140px;
    }
}

@media (max-width:768px) {

    .btn-square-shadow {
        width: 180px;
        /* width: 80%; */
        height: 60px;
        font-size: 15px;
    }
    .grade-item {
        margin-top: 15px;
        width: 180px;
        height: 60px;
        margin-bottom: 30px;
    }
    .grade-item p{
        line-height: 60px;
    }
    .grade-start {
        font-size: 25px;
    }
    .grade-start span {
        font-size: 30px;
    }
    .grade-first {
        font-size: 25px;
    }
    .grade-first span {
        font-size: 30px;
    }

    .flex-item {
        /* position: relative; */
        flex-wrap: wrap;
        flex-direction: column;
        /* justify-content: center; */
        /* width: 500px; */
        margin-bottom: 0px;
    }
    .flex-item2 {
        margin-top: 0px;
        flex-direction: column;
        justify-content: center;
    }
    .flex-p {
        width: 400px;
        margin: auto;
        margin-bottom: 20px;
    }

    .question-subtitle {
        font-size: 15px;
    }

}

@media (min-width: 600px) {
    .br-sp {
        display: none;
    }
}

@media (max-width:599px) {
    .btn-square-shadow {
        width: 120px;
        /* width: 80%; */
        height: 40px;
        font-size: 11px;
    }
    .grade-item {
        margin-top: 15px;
        width: 120px;
        height: 40px;
        margin-bottom: 30px;
    }
    .grade-item p{
        line-height: 40px;
    }
    .grade-start {
        font-size: 18px;
    }
    .grade-start span {
        font-size: 23px;
    }
    .grade-first {
        font-size: 18px;
    }
    .grade-first span {
        font-size: 23px;
    }

    .container {
        margin: 0 20px;
    }
    .flex-p {
        width: 300px;
    }
    .flex-item {
        margin-top: 15px;
    }
    .flex-item2 {
        margin-bottom: 15px;
    }
    .question-title {
        font-size: 16px;
    }
    .question-subtitle {
        font-size: 12px;
    }
    .btn-square-shadow2 {
        width: 200px;
        height: 48px;
        line-height: 48px;
        font-size: 13px;
    }

    .footer-up {
        font-size: 10px;
    }
}

@media (min-width:1500px) {
    .flex-item {
        justify-content: space-evenly;
    }
    .question {
        width: 1300px;
        margin: 0 auto;
        margin-bottom: 50px;
    }
}

@media (min-width: 1501px) {
    .container {
        width: 1500px;
        margin: 0 auto;
        /* background-color: rgb(238, 235, 235); */
    }
    .grade {
        width: 1500px;
        margin: 0 auto;
        margin-top: 50px;
    }
}