/* 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%;
  /* min-width: 1000px; */
}

p {
  line-height: 2.2;
  /* font-family: sans-serif; */
  font-family: "myFont";
}

a {
  font-family: "myFont";
}

#nav-open {
  display: none;
}
.logoHeader{
  width:20%
}

.farming-logo {
  /* width: 250px; */
  width: 100%
}

/* 共通で使用しているCSS */

.service-system{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.base-title p {
  text-align: center;
  font-size: 60px;
  line-height: 2.2;
  padding-bottom: 60px;
  padding-top: 60px;
}

.buttonDesign{
  background-color: #52d880;
  text-decoration: none;
  color: #fff;
  display: flex;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 40px;
  width: 40%;
  margin-top: 100px;
  border-radius: 10px;
  transition: transform 0.3s linear;
  font-size: 1.5rem;
}

.buttonDesign:hover{
  transform: translate(-20px,-20px);
}

.overlayDetail {
  background-color: #52d880;
  text-decoration: none;
  color: #fff;
  display: block;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
  width: 40%;
  margin: 0 40px;
  margin-top: 200px;
  border-radius: 10px;
  position:absolute;
}

.buttonDetail:hover{
  transform: translate(-15px,-15px);
}

.buttonDetail{
  background-color: black;
  text-decoration: none;
  color: #fff;
  display: block;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
  width: 90%;
  margin: 0 40px;
  margin-top: 200px;
  border-radius: 10px;
  position:relative;
  transition: transform 0.3s linear;
}

/* 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;
} */
.title-li {
  font-size: 2rem;
}

.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;
}

.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;
}

.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{
  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;
}



/* header画像 */

/* 背景画像 */
.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: 70px;
  font-weight: bold;
  /* text-shadow: 10px 10px 30px #3d3d3d; */
}

.b-img-grape {
  width: 100%;
  height:100%;
  -o-object-fit: cover;
  object-fit: cover;
  background-repeat: no-repeat;
  background-size: cover;
  background-position-y: 50%;
  background-image: url("../image/P9070151.JPG");
  /* overflow: hidden; */
}

.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;
}

/* トップコンテンツ */
.top-title {
  text-align: center;
  font-size: 60px;
  padding-top: 50px;
  padding-bottom: 25px;
}

.top-p {
  line-height: 3;
  font-size: 1.2rem;
}

.top-expalin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.top-expalin p {
  text-align: center;
  display: inline-block;
  /* padding-bottom: 50px; */
}

/* サブタイトルのCSS */
.sub-title {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}
.sub-title img {
  width: 50%;
  object-fit: contain;
  height: 200px;
}
.sub-title div {
  width: 50%;
  /* font-size: 40px; */
  /* text-align: center; */
  text-align: left;
  padding-left: 30px;

  /* padding-bottom: 40px; */
}

.service-name{
  font-size: 40px;
}
.note{
  font-size: 30px;
}

/* 中心コンテンツ */
.middle-sentence {
  width: 50%;
  padding-top: 30px;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}
.middle-contents {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.middle-title {
  font-size: 35px;
  line-height: 1.8;
  padding-bottom: 20px;
  font-weight: bold;
}

.middle-explain {
  font-size: 1.4rem;
}

.center2 {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -ms-flex-flow: row-reverse;
  flex-flow: row-reverse;
}

/* サービスの仕組み */
.middle-contents img {
  width: 50%;
}
.model-css {
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

/* お寄せいただいているお客様の声 */
.customer-voice{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.customer-voice-title p {
  text-align: center;
}

.customer-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.customer-contents {
  text-align: center;
}

.customer-contents-all {
  text-align: left;
  line-height: 2.2;
  /* padding-top: 60px; */
  padding-left: 90px;
  padding-right: 90px;
}

.customer-image {
  width: 50%;
  height: auto;
  -o-object-fit: cover;
  object-fit: cover;
}

.customer-contents {
  width: 50%;
}

/* ストーリー */

.story-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.story-image {
  width: 50%;
  -o-object-fit: cover;
  object-fit: cover;
}

.story-contents {
  padding-left: 90px;
}

.story-title {
  font-size: 40px;
}

/* ニュース */
.news-contents {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 70px;
}

.news-content{
  border-bottom: #CCC 1px solid;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.date{
  font-size: 25px;
  width: 20%;
  text-align: center;
}

.content{
  font-size: 1.2rem;
  width: 80%;
}

.content-link{
  color: blue;
  text-decoration: underline;
  line-height: 2.2;
}

.content-link:hover{
  text-decoration: none;
}

/* .news-contents p {
  text-align: center;
  display: inline-block;
} */

/* お寄せ頂いている期待の声 */
.customer-name {
  font-weight: bold;
  padding-bottom: 20px;
  font-size: 27px;
}

.customer-explain {
  padding-bottom: 30px;
}

/* footer */
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;
}
/* スマホ用のCSS */
@media screen and (max-width: 640px) {
  body {
    max-width: 640px;
    width: 100%;
    min-width: 1401px;
  }

  p {
    /* font-family: YuGothic, "Yu Gothic", "TsukuARdGothic-Regular", sans-serif; */
    /* font-family: "Segoe UI", Verdana, "游ゴシック", YuGothic,
      "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; */
    font-family: "myFont";
  }
  .b-img-grape {
    width: 100%;
    height: 1200px;
    z-index: -9999 !important;
  }

  .b_image p {
    font-size: 65px;
  }

  /* ハンバーガーメニューのCSS */
  header {
    padding: 80px;
    background: rgb(255, 255, 255);
    position: relative;
    /* position: sticky; */
  }

  .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: #52d880; 背景色 */
    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";
  }

  .overlayDownload {
    background-color: #cfffe0;
    border-color: none;
    border: none;
    transition: none;
  }

  .downloadtext{
    display: none;
  }

  .overlay-contacts {
    /* background-color: #52d880; */
    background-color: #cfffe0;
    border: none;
    border: none;
    transition: none;
  }

  .header-contacts{
    display: none;
  }

  /*チェックが入ったらもろもろ表示*/
  #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);
  }

  /* ここから追加 */
  .sub-title img {
    width: 40%;
    object-fit: contain;
    height: 200px;
  }

  /* サービスの仕組み */
  /* 中心コンテンツ */
  .middle-sentence {
    width: 50%;
    padding-top: 30px;
    padding-left: 30px;
  }
  .middle-contents {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .middle-title {
    font-size: 35px;
    line-height: 1.8;
    padding-bottom: 20px;
  }

  .middle-explain {
    font-size: 18px;
  }

  .center2 {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-flow: row-reverse;
    flex-flow: row-reverse;
  }
  .middle-contents img {
    width: 50%;
    height: 465px;
  }
  .model-css {
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
  }
  /* お寄せいただいているお客様の声 */
  .customer-voice-title p {
    text-align: center;
  }

  .customer-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .customer-contents {
    text-align: center;
  }

  .customer-contents-all {
    text-align: left;
    line-height: 2.2;
    padding-top: 20px;
    padding-left: 90px;
    padding-right: 90px;
  }

  .customer-image {
    width: 50%;
    height: auto;
    -o-object-fit: cover;
    object-fit: cover;
    height: 465px;
  }

  .customer-contents {
    width: 50%;
  }
  /* ストーリー */

  .story-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
  .story-image {
    width: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    height: 465px;
  }

  .story-contents {
    padding-left: 90px;
  }

  .story-title {
    font-size: 30px;
  }

  /* ニュース */
  .news-contents {
    text-align: center;
    padding-bottom: 70px;
  }

  .news-contents p {
    text-align: left;
    display: inline-block;
  }

  /* お寄せ頂いている期待の声 */

  .customer-contents-all {
    padding-top: 0;
  }
  .customer-name {
    font-weight: bold;
    font-size: 22px;
  }

  /* footer */
  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;
  }

  .footer-title p {
    font-size: 40px;
    padding-top: 60px;
    padding-left: 100px;
    color: white;
    font-weight: bold;
  }

  .buttonDesign{
    margin: 0 400px;
  }

  .overlayDesign{
    margin: 0 400px;
  }

 .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;
  }

  .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;
  }
}
