/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 4 version
*/

/* PC用のCSS　*/
* {
    margin: 0;
    font-size: 110%;
  }
  
  @font-face {
    font-family: "myFont";
    src: url("../Font/HuiFont29.woff") format("woff"),
    url("../Font/HuiFont29.ttf") format("truetype");
  }
  
  body {
    background-color: #fff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    font-size: 62.5%;
    min-width: 100%;
  }
  
  p {
    line-height: 2.2;
    font-family: "myFont";
  }
  
  a {
    font-family: "myFont";
  }

  i{
    font-family: "FontAwesome";
  }

  input{
    font-size: 200%;
  }
  
  #nav-open {
    display: none;
  }
  .farming-logo {
    width: 250px;
  }
  
  /* headerのHTML */
  header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
  }
  
  .header-ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    display: -webkit-flex;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    background-color: rgb(255, 255, 255, 0.8);
    align-items: center;
  }
  
  /* .header-ul li:nth-of-type(6) {
        margin-left: auto;
      } */
  
  .header-list {
    list-style: none;
  }
  
  .nav-unshown {
    display: none;
  }
  
  .header-a {
    display: block;
    text-decoration: none;
    color: black;
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 30px;
  }
  
  .nav {
    padding: 20px 30px;
    transition: color 0.5s;
  }
  
  .nav:hover {
    color: #52d880;
  }

  .lang-dropdown{
    position: relative;
    padding: 0px;
    display: flex; 
    justify-content: space-between;
  }
  
  .lang-button{
    border: solid 1px #52d880;
    background-color: #52d880 !important;
    padding: 20px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    background-image: url("../image/language.png");
    background-size: 70%;
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
  }
  
  .drop-button{
    border: solid 1px #52d880;
    background-color: #52d880 !important;
    padding: 20px 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  
  .lang-content{
    position: absolute;
    display:none;
    flex-direction: row;
    left:100%;
    top:0%;
    width: 100%;
    transition: all .5s;
  }
  
  .language{
    font-family: "myFont";
    display: none;
    padding: 15px 10px;
    background-color: #52d880;
  }
  
  .flag{
    height: 30px;
    width: 30px;
    /* padding: 20px 10px; */
  }
  
  .start{
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }
  
  .end{
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  
  .downloadtext {
    padding: 20px 30px;
    background-color: black;
    border-radius: 10px;
    color: white;
    position: absolute;
  }
  
  .overlayDownload:hover{
    transform: translate(-10px,-10px);
  }
  
  .overlayDownload {
    padding: 20px 30px;
    background-color: #52d880;
    border-radius: 10px;
    color: white;
    position: relative;
    transition: transform 0.5s;
  }
  
  .header-contacts {
    padding: 20px 30px;
    background-color: black;
    color: #52d880;
    border: 1px solid #52d880;
    border-radius: 10px;
    position: absolute;
  }
  
  .overlay-contacts:hover{
    transform: translate(-10px,-10px);
  }
  
  .overlay-contacts {
    padding: 20px 30px;
    background-color: white;
    color: #52d880;
    border: 1px solid #52d880;
    border-radius: 10px;
    position: relative;
    transition: transform 0.5s;
  }

  /* Title image */
  .b_image {
    position: relative;
  }
  
  .b_image p {
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    color: white;
    /* font-family: serif; */
    font-family: "myFont";
    font-size: 55px;
    font-weight: bold;
    text-shadow: 0px 0px 10px black;
  }
  
  .b-img-grape {
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: 0 100%;
    object-position: 0 100%;
    background-size: 100%;
    background-position-y: 25%;
    background-repeat: no-repeat;
    background-image: url("../image/IMG_0535.JPG");
  }
  
  .b-img-grape .overlay-grape{
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s;
  }
  
  .b-img-grape:hover .overlay-grape{
    opacity: 0.5;
  }

  /* FORM */
  .form{
    border:solid 1px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    margin:50px 400px;
    padding:20px 50px;
  }
  .question{
    padding:30px 0px;
    display: flex;
    flex-direction: column;
  }
  
  .question-title{
    margin: 30px 0px;
    font-family: "myFont";
    font-size: 30px;
  }

  .question-text{
    border-width: 0px 0px 1px 0px;
    border-color:rgba(0, 0, 0, 0.15);
    font-family: "myFont";
  }

  .question-text:focus-visible{
    border-width: 0px 0px 1px 0px;
    border-color:rgba(0, 0, 0);
    outline:0px;
  }

  .question-text::placeholder{ /* Chrome, Firefox, Opera, Safari 10.1+ */
    font-family: "myFont";
    font-size: 27px;
  }

  .question-text:-ms-input-placeholder { /* Internet Explorer 10-11 */
    font-family: "myFont";
    font-size: 27px;
  }
  
  .question-text::-ms-input-placeholder { /* Microsoft Edge */
    font-family: "myFont";
    font-size: 27px;
  }
  
  .question-checkbox{
    padding: 10px 0px;
    font-family: "myFont";
    font-size:27px;
  }
  .checkbox{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.5);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    margin: 0 20px;
  }

  .checkbox:checked{
    background-color: #52d880;
  }

  .other-question{
    display: flex;
    flex-direction: row;
  }

  .other{
    width: 70%;
    margin-left: 20px;
  }

  .link{
    font-family: "myFont";
    font-size:30px;
    color: #52d880;
    text-decoration: none;
  }

  .link:hover{
    text-decoration: underline;
  }

  .submit{
    text-align: center;
  }

  .submit-btn{
    position: relative;
    margin: 50px 0;
    width: 40%;
    height: 90px;
    border: none;
    background-color: #52d880;
    border-radius: 15px;
  }

  .submit-content{
    position: absolute;
    bottom: 25%;
    left: 45%;
    color:white;
    transition: 0.5s;
    font-family: "myFont";
    font-size: 30px;
  }

  .hover-content{
    position: absolute;
    left: -50%;
    bottom: 25%;
    color:white;
    transition: 0.5s;
    font-size: 30px;
  }

  .submit-btn:hover .hover-content{
    left: 45%;
    transition: 0.5s;
  }

  .submit-btn:hover .submit-content{
    left: 150%;
    transition: 0.5s;
  }

  /* 中心コンテンツ */
  footer {
    background-color: #52d880;
    height: 500px;
  }
  
  footer ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    padding-top: 80px;
  }
  
  footer li {
    list-style: none;
  }
  
  .footer-a {
    text-decoration: none;
    color: white;
    font-size: 25px;
  }
  
  .footer-title p {
    font-size: 40px;
    padding-top: 60px;
    padding-left: 100px;
    color: white;
    font-weight: bold;
  }

  .warning{
     font-size: 200%
  }

  .caution{
     font-size: 200%
  }
  /* スマホ用のCSS */
  @media screen and (max-width: 640px) {
    body {
      max-width: 640px;
      width: 100%;
      min-width: 1401px;
    }
    .b-img-grape {
      width: 100%;
      height: 1200px;
    }
  
    p {
      /* font-family: sans-serif; */
      font-family: "myFont";
    }
  
    /* ハンバーガーメニューのCSS */
    header {
      padding: 80px;
      background: rgb(255, 255, 255);
      /* position: sticky; */
      /* position: relative; */
      position: relative;
    }
  
    .header-ul {
      display: block;
      background-color: #cfffe0;
      position: fixed;
      z-index: 9999;
      top: 0;
      left: 0;
    }
  
    .farming-logo {
      width: 500px;
      height: 300px;
      object-fit: contain;
    }
  
    .header-a {
      font-size: 1.8rem;
    }
  
    #nav-drawer {
      position: relative;
    }
  
    /*チェックボックス等は非表示に*/
    .nav-unshown {
      display: none;
    }
  
    /*アイコンのスペース*/
    #nav-open {
      display: inline-block;
      width: 50px;
      height: 22px;
      vertical-align: middle;
    }
  
    /*ハンバーガーアイコンをCSSだけで表現*/
    #nav-open span,
    #nav-open span:before,
    #nav-open span:after {
      position: absolute;
      height: 3px; /*線の太さ*/
      width: 60px; /*長さ*/
      border-radius: 3px;
      background: #555;
      display: block;
      content: "";
      cursor: pointer;
    }
    #nav-open span:before {
      bottom: -8px;
    }
    #nav-open span:after {
      bottom: -16px;
    }
  
    /*閉じる用の薄黒カバー*/
    #nav-close {
      display: none; /*はじめは隠しておく*/
      position: fixed;
      z-index: 99;
      top: 0; /*全体に広がるように*/
      left: 0;
      width: 100%;
      height: 100%;
      background: black;
      opacity: 0;
      -webkit-transition: 0.3s ease-in-out;
      -o-transition: 0.3s ease-in-out;
      transition: 0.3s ease-in-out;
    }
  
    /*中身*/
    #nav-content {
      overflow: auto;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 9999; /*最前面に*/
      width: 80%; /*右側に隙間を作る（閉じるカバーを表示）*/
      /* max-width: 600px; 最大幅（調整してください） */
      height: 100%;
      background-color: #cfffe0; /*背景色*/
      -webkit-transition: 0.3s ease-in-out;
      -o-transition: 0.3s ease-in-out;
      transition: 0.3s ease-in-out; /*滑らかに表示*/
      -webkit-transform: translateX(-105%);
      -ms-transform: translateX(-105%);
      transform: translateX(-105%); /*左に隠しておく*/
    }
    .header-list {
      list-style: none;
      padding-top: 150px;
    }
  
    .header-a {
      text-decoration: none;
      color: black;
      font-size: 55px;
      /* font-family: sans-serif; */
      font-family: "myFont";
    }
  
    .header-contacts {
      background-color: #52d880;
    }
  
    /*チェックが入ったらもろもろ表示*/
    #nav-input:checked ~ #nav-close {
      display: block; /*カバーを表示*/
      opacity: 0.5;
    }
  
    #nav-input:checked ~ #nav-content {
      -webkit-transform: translateX(0%);
      -ms-transform: translateX(0%);
      transform: translateX(0%); /*中身を表示（右へスライド）*/
      -webkit-box-shadow: 6px 0 25px rgba(0, 0, 0, 0.15);
      box-shadow: 6px 0 25px rgba(0, 0, 0, 0.15);
    }
    .downloadtext {
      background-color: #cfffe0;
    }
    .header-contacts {
      background-color: #cfffe0;
      border: none;
    }
  
    /* ここから追加 */

    .lang-dropdown{
      position: relative;
      padding: 0px;
      display: flex; 
      justify-content: flex-start;
    }
  
    .lang-button{
      padding: 50px;
      background-color: transparent !important;
      border: none 0px transparent !important;
    }
  
    .drop-button{
      padding: 70px 10px;
      background-color: transparent !important;
      border: none 0px transparent !important;
    }
  
    .language{
      padding: 70px 10px;
      background-color: transparent !important;
      border: none 0px transparent !important;
    }
  
    .flag{
      height:70px;
      width: 70px;
      padding: 0 70px;
    }

    .overlayDownload{
      background-color: transparent;
    }

    .overlay-contacts{
      background-color: transparent;
      border-color: transparent;
    }
  }
  