body {
  font-family: 'Noto Sans JP', sans-serif;"メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, sans-serif;
}

img{
    width: 100%;
    max-width: 805px;
}
header{
    position: absolute;
    z-index: 3;
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
}
header h1{
    padding: 15px;
    background-color: #fff;
    margin: 0 auto;
    max-width: 1000px;
}


h1 img{
    width: 150px;
}
.back-top{
    background: #f6d92d;
    padding-top: 90px;
}
.back-sec{
    background-color: #FFF;
    padding-bottom: 50px;
}
.back-third{
    background-color: #A4D232;
}
.contents{
    margin: 0 auto;
    text-align: center;
}
.contents-box{
    max-width: 805px;
    margin:0 auto;
    padding: 0 10px 30px;
    color: #fff;
}
.contents-box h2{
    margin: 0;
    padding-top: 30px;
    font-size: x-large;
}
.contents-box p{
  margin: 8px 0 24px;
}

.item{
    width: 100%;
}
.tab-contents{
    max-width: 1020px;
    margin: 0 auto;
    text-align: center;
}
.container{
    max-width:1440px;
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(344px, 1fr));
    grid-template-columns:1fr 1fr;
    grid-gap:30px;
  }
.Line-friends-answer {
    background-color: #01B901;
    border-radius: 50px;
    padding: 12px 20px;
    width: 40%;
    margin: 0 auto; 
    box-shadow: 5px 5px 5px #d8d8d8;
    max-width: 550px;
}
.Line-friends-answer a{
    text-decoration: none;
}

.Line-friends-answer p{
    margin: 0 auto;
    padding: 9px 57px;
    text-align: center;
    font-size: large;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

/* Style the tab */
.tab {
  overflow: hidden;
    text-align: conter;

}

/* Style the buttons that are used to open the tab content */
.tab button {
    color: #fff;
    font-size: 16px;
    font-size: 1.6rem;
    background-color: transparent;
    border-color: #fff;
    border-radius: 100px;
    border: 2px solid;
    width: 300px;
    font-weight: bold;
    padding: 13px 25px;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #fff;
  color: #9B4CE6;
}

/* Create an active/current tablink class */
.tab button.active {
    color: #9B4CE6;
    font-size: 16px;
    font-size: 1.6rem;
    background-color: transparent;

    background-color: #fff;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
  background-color: #fff;
  margin-top: 50px;
  padding: 60px 100px;
    border-radius: 10px;
}

/* Style the Image Used to Trigger the Modal */
#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
  }
  
  #myImg:hover {opacity: 0.7;}
  
  /* The Modal (background) */
  .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 75px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    text-align: center;
  }
  
  /* Modal Content (Image) */
  .modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
  }
  
  /* Caption of Modal Image (Image Text) - Same Width as the Image */
  #caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
  }
  
  /* Add Animation - Zoom in the Modal */
  .modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
  }
  
  @keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
  }
  
  /* The Close Button */
  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
  }
  
  .close:hover,
  .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }
  
  #modal03 img{
    max-width: 700px;
  }

  /* 100% Image Width on Smaller Screens */
  @media only screen and (max-width: 700px){
    .modal-content {
      width: 100%;
    }
  }

  .block_footer{
    min-width: 100%;
    margin: 0px 0px 0px 0px;
    color: #ffffff;
    text-align: center;

  }
  
  .copy{
    font-size: 0.7rem;
    background-color: #17323F;
    padding: 10px 0;
  }
  

@media screen and (max-width: 959px){
  header h1{
    padding: 10px 15px;
  }
  .Line-friends-answer{
    width: 95%;
    padding: 15px 0;
    margin: 0 auto;
    max-width: 400px;
  }
  .container{
    grid-gap: 10px;
  }
  .prev,.next{
    top:auto;
    margin-top: 0px;
  }
  .dot{
    margin: 10px 2px;
  }
  .close {
    top: 10px;
    right: 10px;
  }
}
