@charset "UTF-8";
body {
  background-image: url(../img/cropPP_aozoranotetto.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  font-size: 16px;
}
header {
  text-align: center;
}
header nav{
  margin-top: 10px;
}
.pc ul{
  margin: 0;
  background-color: rgb(142, 138, 138,0.8);
}
nav ul li{
  margin-right: 50px;
}
  main {
    width: 95%;
    margin: 0 auto;
  }
  .content {
    width: 80%;
  }
  .flex-content {
    display: flex;
    flex-wrap: wrap;
  }
  .flex-content .question {
    width: 33.33%;
    height: auto;
  }
  .flex-content a {
    margin: 30px 15px;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    text-align: center;
    display: block;
    font-size: 20px;
    background-color: rgba(232, 235, 148, 0.3);
    padding: 30px 10px;
    text-transform: uppercase;
    position: relative;
  }
  .flex-content a:hover {
    opacity: 0.8;
    color: white;
  }
  .flex-content a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: -1;
    -webkit-transform: scaleX(0.3);
    transform: scaleX(0.3);
    opacity: 0;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
  }
  .flex-content a:hover::before {
    opacity: 1;
    background-color: #6098ff;
    border-radius: 20px;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    transition: -webkit-transform 0.6s cubic-bezier(0.08, 0.35, 0.13, 1.02),
      opacity 0.4s;
    transition: transform 0.6s cubic-bezier(0.08, 0.35, 0.13, 1.02), opacity;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
  }
  .flex-content p {
    font-size: 60px;
  }
  h2 {
    font-size: 30px;
    text-align: center;
    margin: 40px 0 20px 10px;
    padding: 5px 15px;
    color: rgb(252, 248, 248);
    background-color: rgba(4, 142, 142, 0.5);
    display: inline-block;
  }
  /* 項目ボタン */
  .open {
    text-align: center;
    margin: 5px;
  }
  .open-content1,
  .open-content2,
  .open-content3,
  .open-content4{
    display: none;
  }
  button {
    background-color: rgb(245, 103, 8, 0.5);
    color: white;
    padding: 10px 100px;
    border-radius: 10px;
    margin: 15px auto;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
  }
  button:hover {
    opacity: 0.8;
  }
  
  @media (max-width: 959px){
    button{
      padding:15px 70px;
    }
    main {
      flex-direction: column;
    }
    .content {
      width: 80%;
    }
    .flex-content {
      flex-direction: column;
    }
    .flex-content .question {
      width: 100%;
      height: auto;
    }
    .flex-content a {
      width: 100%;
      padding: 25px 5px;
      margin: 15px 5px 15px 20px;
      border-radius: 5px;
      -webkit-border-radius: 5px;
      -moz-border-radius: 5px;
      -ms-border-radius: 5px;
      -o-border-radius: 5px;
    }
    .flex-content a:hover::before {
      border-radius: 5px;
      -webkit-border-radius: 5px;
      -moz-border-radius: 5px;
      -ms-border-radius: 5px;
      -o-border-radius: 5px;
    }
    a br {
      display: none;
    }
    .hagbth{
      top:50px;
      right:15px;
    }
  }
  @media (max-width: 480px){
    body{
      background-image: url(../img/cropPP_aozoranotetto\ \(1\).jpg);
    }
    main{
      margin: 0;
    }
    button {
      padding: 10px 50px;
    }
    .content {
      width: 100%;
    }
    .content {
      width: 100%;
    }
    .content h2 {
      font-size: 25px;
      margin-left: 0;
      margin-bottom: 10px;
      margin-top: 20px;
    }
    .flex-content .question {
      width: 80%;
    }
    .flex-content a {
      font-size: 18px;
      margin-left: 15px;
      background-color: rgba(232, 235, 148, 0.3);
      padding: 15px 10px;
    }
    header li {
      margin: 15px;
      padding-left: 10px;
  }
}