/* 
ハンバーガーメニュー
メディアスクリーン
YahooとかgoogleのUIを真似るのもいいと思うが。そーゆー感じにしようと思う
should I use vanilla css ? 
firstly, i should use gray and white only
どんなページを作っていくのか？
ハンバーガーメニューを作成するにはjavascriptが必要になってくるのか
cssも書く順番が大事
https://www.youtube.com/watch?v=aNDqzlAKmZc
これでハンバーガーメニューを作ることができる
*/
/*
@media screen and (max-width: 480px) {
  h1{
    font-size: 8px;
  }
  .nav-child .nav-grandchild{
    display: none;
  }
  .hamburger{
    display: block;

  }
  .bar{
    display: block;
    background-color: black;
    width: 20px;
    height: 40px;
  }
}
  */
header {
  width: 100%;

  /*position: fixed;*/
}

.nav {
  /*background-color: #D9E2EC;*/
  padding: 0px;
  display: flex;
  height: 5px;

}

.title {
  padding-left: 40px;
  margin-top: 12px;
}

h1 {
  font-size: 16px;
  padding: 0;
  margin: 0;
}

.nav-child {
  display: flex;
  padding-left: 40px;

}

.nav-grandchild {
  padding-left: 128px;
  margin-top: 12px;
}

.nav-grandchild a {
  color: #627D98;
}

/*
.hamburger{
  display: none;
}
  */
@media screen and (min-width: 1200px) {
  .off-screen-menu {
    display: none;
  }

  a {
    text-decoration: none;
    /*color: #627D98;*/
  }

  body {
    margin: 0px;
    height: 800px;
  }
  hr{
    margin: 0px;
  }

  /*ここからmainContent*/
  .main-content {
    height: 1600px;
    padding-top: 47px;
  }

  .main-content1 {
    height: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: solid, #627D98;
    background-image: url("https://y-develo.com/images/y-develo_back5.png");
  }

  .main-content1 a {
    color: black;
    display: block;
    /*このおかげでaのタッチ領域が広がっている*/
  }

  .m-c1-total {
    display: flex;
    flex-direction: column;
    width: 80%;
    height: 80%;
    /*border: solid, #627D98;*/
    justify-content: center;
    align-items: center;

  }

  .m-c1-title {
    display: flex;
    /*border: solid, #627D98;*/
    min-width: 50%;
    height: 25%;
    margin-bottom: 10%;
    flex-direction: column;
    justify-content: center;
    align-items: center;

  }

  .m-c1-title h1 {
    font-size: 40px;
    font-family: Georgia, 'Times New Roman', Times, serif;
  }

  .m-c1 {
    display: flex;
    /*border: solid, #627D98;*/
    min-width: 40%;
    height: 30%;
    flex-direction: column;
    justify-content: space-around;
    margin-bottom: auto;
  }

  .m-c1-w-s {
    display: flex;
    /*border: solid, #627D98;*/

    height: 30%;
    justify-content: space-around;
    align-items: center;
  }

  .web-button {

    width: 40%;
    height: 70%;
    border: solid, #627D98;
    border-radius: 10px;
    background-color: white;

    /*margin-right: 20px;*/
  }

  .web-button a {
    /*ここでaの範囲を広げている*/
    padding-top: 6px;
    width: 100%;
    height: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
  }

  .swift-button {

    width: 40%;
    height: 70%;
    border: solid, #627D98;
    border-radius: 10px;
    background-color: white;

  }

  .swift-button a {
    /*ここでaの範囲を広げている*/
    padding-top: 6px;
    width: 100%;
    height: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
  }

  .m-c1-j {
    display: flex;
    height: 30%;
    /*border: solid, #627D98;*/
    align-items: center;
    justify-content: center;
  }

  .jet-button {

    width: 60%;
    height: 70%;
    border: solid, #627D98;
    border-radius: 10px;
    background-color: white;

  }

  .jet-button a {
    padding-top: 6px;
    width: 100%;
    height: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
  }

  .main-content2 {
    height: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: solid, #627D98;
  }

  .main-content2 h1 {
    font-size: 40px;
    padding-left: 40px;
  }

  .m-c2-title {
    border: solid, #627D98;
    width: 100%;
    margin-bottom: 5%;

  }

  .m-c2-total {
    display: flex;
    flex-direction: column;
    width: 80%;
    height: 80%;
    border: solid, #627D98;
    justify-content: center;
    align-items: center;
  }

  .m-c2 {
    display: flex;
    border: solid, #627D98;
    min-width: 40%;
    height: 30%;
    flex-direction: column;
    justify-content: space-around;
    margin-bottom: auto;
  }

  .main-content3 {
    height: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: solid, #627D98;
    background-image: url("https://y-develo.com/images/y-develo_back6.png");
  }

  .main-content3 h1 {
    font-size: 40px;
    padding-left: 40px;
  }

  .m-c3-title {
    border: solid, #627D98;
    width: 100%;
    margin-bottom: 5%;

  }

  .m-c3-total {
    display: flex;
    flex-direction: column;
    width: 80%;
    height: 80%;
    border: solid, #627D98;
    justify-content: center;
    align-items: center;
  }

  .m-c3 {
    display: flex;
    border: solid, #627D98;
    min-width: 40%;
    height: 30%;
    flex-direction: column;
    justify-content: space-around;
    margin-bottom: auto;
  }

  .main-content4 {
    height: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: solid, #627D98;

  }

  .main-content4 h1 {
    font-size: 40px;
    padding-left: 40px;
  }

  .m-c4-title {
    border: solid, #627D98;
    width: 100%;
    margin-bottom: 5%;

  }

  .m-c4-total {
    display: flex;
    flex-direction: column;
    width: 80%;
    height: 80%;
    border: solid, #627D98;
    justify-content: center;
    align-items: center;
  }

  .m-c4 {
    display: flex;
    border: solid, #627D98;
    min-width: 40%;
    height: 30%;
    flex-direction: column;
    justify-content: space-around;
    margin-bottom: auto;
  }
}

/* ↓ watching Youtube */
@media screen and (max-width: 1200px) {
  .off-screen-menu a {
    color: azure;
  }

  .off-screen-menu li {
    list-style: none;
    padding-left: 0;
  }

  .nav-child {
    display: none;
  }

  .off-screen-menu {
    background-color: rgb(34, 37, 49);
    height: 100vh;
    width: 100%;
    max-width: 450px;
    position: fixed;
    top: 0;
    right: -450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 3rem;
    transition: .3s ease;
  }

  .off-screen-menu.active {
    right: 0;
  }

  .hamburger {
    height: 50px;
    width: 50px;
    margin-left: auto;
    position: relative;
  }

  .hamburger span {
    height: 5px;
    width: 100%;
    background-color: #6F86FF;
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
  }

  .hamburger span:nth-child(1) {
    top: 25%;
  }

  .hamburger span:nth-child(3) {
    top: 75%;
  }

  .hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}