@charset "utf-8";


.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-container {
    background-image: url("../img/contact_object1.png");
    background-size: 100% 100%; /* 縦横いっぱいに広げる */
    background-repeat: no-repeat;
    width: 100%;
    max-width: 1100px;
    min-height: 1700px;
    padding: 120px 230px 180px; /* 下側の余白を広めにとる */
    box-sizing: border-box;
    text-align: center;
    margin-top: -100px;
}

.contact-text1{
    margin: 200px 0px 50px;
    display: inline-block;
    text-align: left;
    line-height: 1.56;
    font-size: 18px;
}

/* 入力欄の並び（横並び） */
.input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 40px 0px 60px;
    
}

.input-group label {
  width: 30%;
  text-align: left;
  font-size: 14px;
  padding-top: 7px;
}

.input-group input, 
.input-group textarea {
  width: 65%;
  border: none;
  border-radius: 20px;
  padding: 12px;
  background-color: #fff;
}

.input-group textarea {
  height: 120px;
}

.required-label::after {
  content: "＊";
  padding-left: 3px;
  color: #a3b35a;
  font-size: 0.7rem;
  
}

/* 投函するボタン */
.submit-button {
  display: inline-block;
  background-color: #a3b35a;
  color: white;
  padding: 10px 40px;
  border-radius: 25px;
  text-decoration: none;
  margin-top: 60px;
  position: relative;
  z-index: 99998;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}


.submit-button:hover {
  background-color: #666b1c; /* ここに濃い緑のカラーコードを指定 */
  color: #f2e9a5;            /* ホバー時に文字を白くするなど */;            /* ホバー時に文字を白くするなど */
  transform: translateY(-2px); 
  opacity: 1;
}


.contact-footer-nav ul{
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: -160px;
    
}



.contact-footer-nav a{
    color:#f9f7e4; 
    font-size: 17px;
    font-weight: bold;
  
    
}

.contact-footer-container {
  display: flex;
  flex-direction: column; /* 縦に並べる場合 */
  align-items: center;
  margin-top: -750px; /* ★これだけで上に引き上げる */
  position: relative; /* 重なり順を指定するために必要 */
  z-index: 2;   
}


/* 3. ここが重要：aタグをインラインブロックにする */
.contact-footer-nav li a {
  display: inline-block;
  text-decoration: none;
  font-size: 17px;
  position: relative; /* 線の基準点 */
  padding-bottom: 8px; /* 文字と線の距離 */
}

/* 4. ホバー時の線（初期状態：幅0） */
.contact-footer-nav li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #683c40;
  border-radius: 50% 20%; /* 手書き風の歪み */
  
  /* アニメーションの準備 */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* 5. マウスをかざした時に線を出す */
.contact-footer-nav li a:hover::after {
  transform: scaleX(1);
}

.sp-add-midashi{
  display: none;
}

@media screen and (max-width: 1100px) {

  
.contact-text1{
    font-size: 14px;
}
.form-container {
  padding: 120px 160px 180px; /* 下側の余白を広めにとる */
}

.contact-footer-nav ul{
  gap: 70px;
}


}


@media screen and (max-width: 980px) {
    .contact-footer-container {
        margin-top: -600px;

}
}

@media screen and (max-width: 900px) {

   .sp-add-midashi{
    display: block;
    font-size: 55px;
    color: #a3b35a;
    margin-bottom: 20px;
  }
 
  .form-container {
    background-image: none;
    /* 背景がなくなるので、余白をリセットして左右に少し余裕を持たせる */
    padding: 50px 80px; 
    margin-top: 0;
    min-height: auto;
  }

  .contact-text1 {
    margin: 20px 0 30px;
    font-size: 17px; /* 少し読みやすく調整 */
    text-align: left;
    width: 100%; /* 幅をいっぱいに使う */
  }

  /* 入力項目を縦並びにする */
  .input-group {
    flex-direction: column;
    align-items: flex-start; /* 左寄せ */
    padding: 20px 0; /* 上下の余白 */
    border-bottom: 1px dotted #a3b35a; /* 項目間の区切り線（色はボタンに合わせました） */
  }

  .input-group label {
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px; /* ラベルと入力欄の間の隙間 */
  }

  .input-group input, 
  .input-group textarea {
    width: 100%;
    box-sizing: border-box; /* paddingが幅を突き破らないように */
    border-radius: 20px; /* 少し丸みを調整 */
  }

  /* 最後の項目の下の線は消す */
  .textarea-group {
    border-bottom: none;
  }


  .input-group textarea{
    height: 200px;
  }

  .contact-footer-container {
    margin-top: -190px; /* マイナスマージンを解除して重なりを防ぐ */
  }

  .form-container {
    text-align: left; /* コンテナ全体を左寄せの基準にする */
  }

  .submit-button {
    display: inline-block; /* blockではなくinline-blockを維持 */
    margin-top: 40px;
    margin-left: 0;       /* 念のため左マージンをリセット */
    width: auto;         /* 文字量に合わせた幅にする（お好みで100%でもOK） */
    text-align: center;  /* ボタン内の文字は中央に */
  }


}


@media screen and (max-width: 768px) {
  .contact-footer-nav{
    display: none;
  }

}

@media screen and (max-width: 590px) {

  .contact-text1{
    font-size: 16px;
}

}

@media screen and (max-width: 565px) {

  .contact-text1{
    font-size: 15px;
}
  
  .sp-br{
    display: none;
  }

  .sp-add-midashi{
    font-size: 30px;
    margin-bottom: 20px;
  }
 

}

@media screen and (max-width: 400px) {
   .contact-text1{
    font-size: 14px;
}
}
