/* =========================================================
   綿半ソリューションズ お問い合わせフォーム専用スタイル（完全版）
   - /watahan-sl/inquire/ 用
   - HTML構造はそのままでOK
   ========================================================= */

/* 全体レイアウト */
section {
  width: 100%;
}

/* 中身のラッパー：余白だけ、背景・影は付けない */
.inrWrap {
  max-width: 920px;
  margin: 0 auto 48px;
  padding: 0 10px 40px;
  box-sizing: border-box;
  font-family: "Hiragino Sans","Yu Gothic","Meiryo",sans-serif;
}

/* 見出し */
.stagew.h2_text {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: #333;
  letter-spacing: .05em;
  text-align: left;
	line-height: 1.5em!important;
}

/* リード文 */
.inrWrap > p.taC {
  text-align: left;
  color: #555;
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.inrWrap em {
  color: #d00;
  font-style: normal;
}

/* =========================================================
   メインのお問い合わせテーブル .contactTbl
   PC：横並び / SP：縦並び
   ========================================================= */

.contactTbl {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #e2e5e8;
}

/* 行 */
.contactTbl tr {
  border-bottom: 1px solid #e2e5e8;
}

/* 見出しセル */
.contactTbl th {
  width: 26%;
  padding: 10px 12px;
  font-size: .95rem;
  font-weight: 600;
  color: #333;
  background: #f4f6f7;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  box-sizing: border-box;
}

/* 入力セル */
.contactTbl td {
  padding: 10px 12px;
  font-size: .95rem;
  background: #fff;
  vertical-align: top;
  box-sizing: border-box;
}

/* 必須ラベル */
.require {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: .72rem;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
}

/* テキスト入力系 */
.contactTbl input[type="text"],
.contactTbl input[type="email"],
.contactTbl input[type="tel"],
.contactTbl select,
.contactTbl textarea {
  width: 100%;
  max-width: 420px;
  padding: 8px 10px;
  font-size: .95rem;
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

/* テキストエリア */
.contactTbl textarea {
  max-width: 100%;
  min-height: 160px;
  resize: vertical;
}

/* フォーカス */
.contactTbl input[type="text"]:focus,
.contactTbl input[type="email"]:focus,
.contactTbl input[type="tel"]:focus,
.contactTbl select:focus,
.contactTbl textarea:focus {
  border-color: #008e50;
  box-shadow: 0 0 0 2px rgba(0,142,80,.18);
  outline: none;
  background: #fcfffd;
}

/* プレースホルダ */
.contactTbl ::placeholder {
  color: #b0bec5;
}

/* 補足テキスト（※全角で入力 等） */
.contactTbl td p {
  margin: 4px 0 0;
}

.contactTbl td p span {
  font-size: .78rem;
  color: #999;
}

/* ラジオ・チェック */
.contactTbl td ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.contactTbl td ul li {
  display: flex;
  align-items: center;
  font-size: .92rem;
}

.contactTbl input[type="radio"],
.contactTbl input[type="checkbox"] {
  margin-right: 5px;
}

/* 住所の dl */
.contactTbl dl {
  margin: 0 0 8px;
}

.contactTbl dt {
  font-size: .82rem;
  color: #666;
  margin-bottom: 2px;
}

/* リンク（プライバシーポリシーなど） */
.contactTbl a {
  color: #0075a9;
  text-decoration: underline;
}

.contactTbl a:hover {
  opacity: .85;
}

/* =========================================================
   追加入力ブロック .contactTbl2（縦型）
   PC でも SP でも「ラベルの下に入力欄」
   ========================================================= */

.contactTbl2 {
  width: 100%;
  border-collapse: collapse;

  background: #f4f6f7;
}

/* 行は常に縦ブロック風 */
.contactTbl2 tr {
  border-bottom: 1px solid #e2e5e8;
}

.contactTbl2 th,
.contactTbl2 td {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* ラベル */
.contactTbl2 th {
  padding: 10px 12px 4px;
  font-size: .95rem;
  font-weight: 600;
  color: #333;
}

/* 入力部 */
.contactTbl2 td {
  padding: 0 12px 12px;
  font-size: .95rem;
}

/* 入力パーツ */
.contactTbl2 input[type="text"],
.contactTbl2 input[type="email"],
.contactTbl2 input[type="tel"],
.contactTbl2 select,
.contactTbl2 textarea {
  width: 100%;
  max-width: 520px;
  padding: 8px 10px;
  font-size: .95rem;
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contactTbl2 textarea {
  min-height: 120px;
  resize: vertical;
}

.contactTbl2 input:focus,
.contactTbl2 select:focus,
.contactTbl2 textarea:focus {
  border-color: #008e50;
  box-shadow: 0 0 0 2px rgba(0,142,80,.18);
  outline: none;
  background: #fcfffd;
}

/* ラジオ・チェック */
.contactTbl2 td ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.contactTbl2 td ul li {
  display: flex;
  align-items: center;
  font-size: .92rem;
}

.contactTbl2 input[type="radio"],
.contactTbl2 input[type="checkbox"] {
  margin-right: 5px;
}

/* 補足テキスト */
.contactTbl2 td p span {
  font-size: .78rem;
  color: #999;
}

/* =========================================================
   注意書き／ボタン
   ========================================================= */

.agreeTxt {
  margin: 8px 0 24px;
  font-size: .88rem;
  color: #666;
  line-height: 1.7;
  text-align: left;
}

#mail_form {
  text-align: center;
}

#mail_preview {
  padding: 11px 40px;
  background: #008e50;
  border: none;
  border-radius: 999px;
  font-size: .98rem;
  letter-spacing: .15em;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

#mail_preview:hover {
  opacity: .96;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .2);
}

#mail_preview:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}

/* 確認画面用 */
.taC {
  text-align: center;
}

.btnRow {
  text-align: center;
  margin-top: 20px;
}

.btnRow input[type="button"],
.btnRow input[type="submit"] {
  padding: 9px 24px;
  margin: 0 6px;
  border-radius: 999px;
  border: 1px solid #c0c0c0;
  cursor: pointer;
  font-size: .92rem;
  background: #fff;
}

.btnRow input[type="submit"] {
  background: #008e50;
  color: #fff;
  border-color: #008e50;
}

.btnRow input[type="button"]:hover {
  background: #f5f5f5;
}

.btnRow input[type="submit"]:hover {
  opacity: .92;
}

/* =========================================================
   スマホ用：メインテーブルも縦並びに
   ========================================================= */

@media (max-width: 768px) {

  .inrWrap {
    padding: 0 10px 32px;
  }

  .contactTbl th,
  .contactTbl td {
    display: block;
    width: 100%;
  }

  .contactTbl th {
    border-bottom: none;
  }

  .contactTbl td {
    padding-top: 4px;
  }

  .contactTbl input[type="text"],
  .contactTbl input[type="email"],
  .contactTbl input[type="tel"],
  .contactTbl select {
    max-width: 100%;
  }
}





/* ---------------------------------------------------------
   必須ラベルの位置を統一（ラベル右側に揃える）
   --------------------------------------------------------- */

.contactTbl th,
.contactTbl2 th {
  display: flex;
  align-items: center;
  gap: 6px;
}

.contactTbl th .require,
.contactTbl2 th .require {
  margin: 0;            /* ずれを消す */
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   入力欄をすべてガチ左揃えにする（ズレの原因を排除）
   --------------------------------------------------------- */

/* p, dl などの余白を揃える */
.contactTbl td p,
.contactTbl2 td p {
  margin: 0;
  padding: 0;
	text-align: left;
}

.contactTbl dl,
.contactTbl2 dl {
  margin: 0 0 8px;
  padding: 0;
	
    text-align: left;
}

.contactTbl dt,
.contactTbl2 dt {
  margin: 0 0 2px;
  padding: 0;
}

/* ラジオ・チェックのULも左揃え */
.contactTbl td ul,
.contactTbl2 td ul {
  padding-left: 0;
  margin-left: 0;
}


/* ============================================
   必須バッジの位置を完全統一（右端に固定）
   ============================================ */

/* th 自体を絶対配置の基準にして、右側に余白を作る */
.contactTbl th,
.contactTbl2 th {
  display: block;          /* 以前の flex を上書き */
  position: relative;
  padding-right: 70px;     /* 必須バッジぶんのスペースを確保 */
}

/* th 内の .require を右端中央に固定 */
.contactTbl th .require,
.contactTbl2 th .require {
  position: absolute;
  right: 12px;             /* 右端からの距離（揃え位置） */
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}


/* ============================================
   最終調整：th の flex をやめて、必須位置を統一
   ============================================ */

/* th を通常表示に戻し、positionだけ基準にする */
.contactTbl th,
.contactTbl2 th {
  display: block;       /* flex をリセット（SP 基準） */
  position: relative;
  padding-right: 70px;  /* 必須バッジぶんの余白を右側に確保 */
}

/* SP ではラベルのすぐ横に並べる（今まで通り） */
@media (max-width: 768px) {
  .contactTbl th,
  .contactTbl2 th {
    padding-right: 0;   /* 余白いらない */
  }
  .contactTbl th .require,
  .contactTbl2 th .require {
    position: static;
    margin-left: 6px;
    transform: none;
  }
}

/* PC では contactTbl だけ table-cell に戻す＆必須を右端固定 */
@media (min-width: 769px) {
  .contactTbl th {
    display: table-cell;   /* 横2カラムレイアウトを復活 */
  }
  .contactTbl2 th {
    display: block;        /* contactTbl2 は縦型のまま */
  }

  .contactTbl th .require,
  .contactTbl2 th .require {
    position: absolute;
    right: 12px;           /* ここで「横位置」を完全にそろえる */
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
}
/* ----------------------------------------------------
   個人情報について の必須バッジだけ右寄せを解除する
   ---------------------------------------------------- */



/* 個人情報について だけ必須バッジの右寄せを解除 */
@media (min-width: 769px) {
  .no-require-right2 .require {
            position: absolute !important;
        left: 170px !important;
        top: 10%!important;
    transform: none !important;
    margin-left: 6px !important;
			        width: 25px;
    }


.sitemap dl dt, .sitemap dl dd:nth-child(n+2)  {
    display: inline-block;
    width: 40%!important;
    vertical-align: top;
    line-height: 2em;
}
	
	
	
  }





/* ============================================
   エラーボックス（送信内容確認画面）
   ============================================ */

.errorBox {
    background: #fff5f5;
    border: 1px solid #e57373;
    border-left: 6px solid #d63939;   /* アクセントライン（わかりやすい） */
    border-radius: 6px;
    padding: 18px 20px 20px;
    margin: 25px 0 35px;
    color: #b71c1c;
    font-size: 0.95rem;
    box-sizing: border-box;
}

/* 見出し文（最初の1行） */
.errorBox > p:first-child {
    font-weight: 600;
    margin: 0 0 12px;
    color: #b71c1c;
}

/* エラーリスト */
.errorBox ul {
    padding-left: 18px;
    margin: 0 0 16px;
}

.errorBox ul li {
    margin: 3px 0;
    line-height: 1.6;
}

/* 戻るリンク */
.errorBox a {
    color: #b71c1c;
    font-weight: 600;
    text-decoration: underline;
}

.errorBox a:hover {
    opacity: 0.8;
}

/* ============================================
   入力画面に戻る ボタン（errorBox の外）
   ============================================ */

.errorBackBtn {
    text-align: center;
    margin: 22px 0 30px;
}

.backBtn {
    display: inline-block;
    padding: 11px 38px;
    background: #008e50;            /* 綿半グリーン */
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.16);
    transition: 0.12s ease;
}

a.backBtn:hover {
    opacity: 0.92;
	color: #fff!important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.backBtn:active {
	color: #fff!important;
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.22);
}

/* =========================================================
   送信完了ページ（サンクスページ）専用スタイル
   ========================================================= */

/* p の文章調整 */
.inrWrap > p {
    font-size: 0.96rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 22px;
}

/* ボタンブロック中央寄せ */
.inrWrap .backBtn2 {
    display: inline-block;
    padding: 11px 38px;
    background: #008e50;      /* 綿半グリーン */
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.16);
    transition: 0.12s ease;
}

/* ホバー */
.inrWrap .backBtn2:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* クリック */
.inrWrap .backBtn2:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.22);
}

/* 中央揃え */
.inrWrap p:last-child {
    text-align: center;
}
/* ============================================
   送信完了ページの「お問い合わせフォームへ戻る」ボタン
   ============================================ */

.backBtn2 {
    display: inline-block;
    padding: 12px 40px;
    background: #008e50;          /* 綿半グリーン */
    color: #fff;
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.16);
    transition: 0.12s ease;
}

/* hover */
.backBtn2:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.20);
}

/* click */
.backBtn2:active {
    transform: translateY(0px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.22);
}

/* 中央配置 */
.inrWrap p:last-child {
    text-align: left;
}
/* 送信完了ページ：お問い合わせフォームへ戻るボタン化 */
.inrWrap > p:last-child a {
    display: inline-block;
    padding: 12px 40px;
    background: #008e50;            /* 綿半グリーン */
    color: #fff !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.16);
    transition: 0.15s ease;
}

/* ホバー */
.inrWrap > p:last-child a:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.20);
}

/* クリック */
.inrWrap > p:last-child a:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(0,0,0,0.22);
}

/* 中央揃え */
.inrWrap > p:last-child {
    text-align: center;
}
