.header:hover,
.menu:hover {
  cursor: pointer;
}


p {
  font-size: 1.2rem;
}

ul {
  list-style: none;
}

.white {

  padding: 1% 2% 1% 2%;
}

.container {
  display: flex;
}

.size {
  background-color: #fff;
  border: 2px solid #222222;
  width: 95%;
  margin-top: 1%
}

.size2 {
  width: 95%;
  object-fit: cover;
}

.size3 {
  width: 100%;
  margin-top: 2%;
  object-fit: cover;
}

.tenhama {
  width: 150%;
  margin-left: 3%;
  margin-top: 1%;
}

.hosoe {
  margin-left: 5%;
  margin-top: 2%;
}

body {
  background-image: url(../img/haikei.png);
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

h2 {
  position: relative;
  padding: 1.5rem;
  color: #fff;
  border-radius: 10px;
  background: #202020;
  margin-bottom: 3%;
  margin-right: 5%;
}

h2:after {
  position: absolute;
  bottom: -9px;
  left: 1.5em;
  width: 0;
  height: 0;
  content: '';
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: #202020 transparent transparent transparent;
}

/* header */

.header {
  background-color: black;
  padding: 7px 0px;
  margin-top: 0px;
  text-align: left;
  color: white;
  font-size: 40px;
  margin-bottom: 5px;
  margin-left: 20px;

}

.menu {
  color: white;
  margin-left: 30px;
  margin-top: 30px;
  font-size: 20px;
}

.menu:hover, .header:hover {
  color: gray;
  font-weight: bold;
}

.head {
  display: flex;
  margin-bottom: 5px;
  border-bottom: solid white 3px;
  background-color: black;
}

body {
  margin: 0;
}

/* header */

/*tablet*/
@media(max-width:960px){

    /*header*/
    .head {
      display: block;
    }
  
    .header{
      font-size: 40px;
    }
  
    p {
      display: inline;
    }
  
      .menu {
      color: white;
      margin-left: 15px;
      margin-top: 10px;
      font-size: 20px;
    }
    /*header*/

  body{
    background-position: center;
  }

  .tenhama{
    width: 300%;
  }
}

/*smart phone*/
@media (max-width:520px) {


  /*header*/
  .head {
    display: block;
  }

  .header {
    background-color: black;
    padding: 7px 0px;
    margin-top: 0px;
    text-align: left;
    color: white;
    font-size: 27px;
    margin-bottom: 5px;
    margin-left: 5px;

  }

  p {
    display: inline;
  }

  .menu {

    color: white;
    margin-left: 5px;
    margin-top: 10px;
    font-size: 11px;
  }

  /*headerここまで*/

  .container {
    display: block;
  }

  .size {
    padding-left: 5px;
    width: 95%;
    margin-top: 1%
  }

  .size2 {
    width: 95%;
    object-fit: cover;
  }

  .size3 {
    width: 100%;
    margin-top: 2%;
    object-fit: cover;
  }

  .tenhama {
    width: 100%;
    margin-left: 3%;
    margin-top: 1%;
  }

  .hosoe {
    margin-left: 5%;
    margin-top: 2%;
  }

  body {
    background-image: url(../img/haikei.png);
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
  }

  h2 {
    position: relative;
    padding: 10px 10px;
    color: #fff;
    border-radius: 10px;
    background: #202020;
    margin-bottom: 3%;
    margin-right: 5%;
    font-size: 23px;
    text-align: center;
  }

  h2:after {
    position: absolute;
    bottom: -9px;
    left: 1.5em;
    width: 0;
    height: 0;
    content: '';
    border-width: 10px 10px 0 10px;
    border-style: solid;
    border-color: #202020 transparent transparent transparent;
  }
  .white {    
    padding: 3px 5px 5px 2%;
  }
}

