/* contact */
.main__inner{
    padding: 80px 2% 0;
    max-width: 1024px;
    margin: 0 auto;
}

.title{
    font-size: 5.6rem;
    font-family: "Noto Sans JP";
    font-weight: 700;
    color: var(--main-text);
    text-align: center;
    margin-bottom: 24px;
}

.sub_title{
    font-size: 2.4rem;
    font-family: "Noto Sans JP";
    font-weight: 700;
    color: var(--main-text);
    text-align: center;
    margin-bottom: 24px;
}

.bar__box{
    position: relative;
    overflow: hidden;
    width: 3px;
    height: 40px;
    margin: 40px auto ;
  }
  
  .bar{
    position: absolute;
    top: -100%;  /* 開始は上の外に隠れる位置 */
    left: 0;
    width: 1px;
    height: 100%;
    background-color: var(--main-text);
    animation: down 1.5s linear infinite ;
  }
  
  @keyframes down{
    0%{
      top:-100%;
    }
    100%{
      top:100%;
    }
  }

.contact_txt{
    font-size: 2rem;
    font-family: "Noto Sans JP";
    font-weight: 500;
    line-height: 1.5;
    color: var(--main-text);
    text-align: center;
}

.contact_txtbtm{
  font-size: 2rem;
  font-family: "Noto Sans JP";
  font-weight: 500;
  line-height: 1.5;
  color: var(--main-text);
  margin-top: 16px;
  text-align: center;
}

.tb{
  display: none;
}

/* コンタクトフォーム */

  .contact-form {
    max-width: 800px; /* フォーム全体の幅 */
    margin: 80px auto 0;
    font-family: Arial, sans-serif;
  }
  
  .form-group {
    display: flex;
    align-items: flex-start; /* 上揃え */
    margin-bottom: 40px;
    justify-content: center;
  }
  
  .form-group label {
    width: 300px; /* ラベルの横幅 */
    font-weight: bold;
    padding-top: 8px; /* テキストエリア用 */
  }
  
  .form-group .required {
    color: red;
    margin-right: 4px;
  }

  .required{
    color: red;
    margin-right: 4px;
    padding: 4px 10px;
    border: 1px solid red;
    border-radius: 5px;
    }   
  
    label {
        display: flex;
    }
  /* input_box 共通スタイル */
  .input_box {
    flex: 1; /* 残りの幅を入力欄が占有 */
    padding: 16px;
    font-size: 14px;
    border: 1px solid #CECBCB;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  /* message_box（お問い合わせ内容用） */
  .message_box {
    flex: 1;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    height: 270px; /* 高さを大きくする */
    resize: vertical; /* ユーザーが縦にリサイズ可能 */
  }
  
  /* placeholderの文字色調整（薄いグレー） */
  .input_box::placeholder,
  .message_box::placeholder {
    color: #ccc;
  }

  .label-text{
    font-size: 2rem;
  }
  

/* プライバシー */
.checkboxItem {
    display: flex;
    align-items: center;
    column-gap: 4px;
    width: fit-content;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.13em;
    color: #333333;
    cursor: pointer;
    margin: 80px auto;
  }
  
  .checkboxItem:not(:last-of-type) {
    margin-bottom: 16px;
  }
  
  .checkbox {
    appearance: none;
    position: relative;
    width: 20px;
    height: 20px;
    border: 1px solid #333333;
    border-radius: 2px;
    background-color: #e1e3e5;
    cursor: pointer;
  }
  
  .checkbox:checked {
    background-color: #333;
  }
  
  .checkbox:checked::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 3px;
    width: 12px;
    height: 6px;
    border-bottom: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    transform: rotate(-45deg);
  }

  .blue{
    color: blue;
  }

 /* 送信ボタン */

  .form-group-btn {
  }
  
  .submit-btn {
    width: 444px;          /* 固定幅 */
    height: 67px;          /* 内包高さ */
    background-color: #333;
    color: #fff;
    border-radius: 64px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
  }
  
  /* ホバー時 */
  .submit-btn:hover {
    background-color: #e1e3e5;
    color: #333;
  }

  button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e1e3e5;
    color: #333;
  }
  
  /* =========================
   SP用（既存CSSは崩さない）
========================= */
@media screen and (max-width: 768px) {

  .contact_txt{
    font-size: 1.6rem;
}

.contact_txtbtm{
  font-size: 1.6rem;
  margin-top: 16px;
}

.tb{
  display: block;
}

  .main__inner{
    padding-top: 32px;
  }

  .title{
    font-size: 4.8rem;
}

  /* 横並び → 縦並び */
  .form-group {
    flex-direction: column;
    align-items: stretch;
  }

  /* labelの固定幅を無効化 */
  .form-group label {
    width: auto;
    padding-top: 0;
    margin-bottom: 8px;
  }

  /* 入力欄を全幅に */
  .input_box,
  .message_box {
    width: 100%;
    padding: 24px;
  }

  /* textareaの高さ調整 */
  .message_box {
    height: 300px;
    min-height: 300px;
  }

  /* 必須ラベルを少しコンパクトに */
  .required {
    font-size: 1.2rem;
    padding: 2px 6px;
  }

  /* プライバシー周り */
  .checkboxItem {
    margin: 40px auto;
    justify-content: center;
  }

  /* 送信ボタンをスマホ幅に最適化 */
  .submit-btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: block;
  }
}