/* contact.css — お問い合わせページ レスポンシブ対応 */

/* ========================================
   ベースリセット
======================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ========================================
   ロゴ上部余白
======================================== */
body > center:first-of-type {
  padding-top: 5px;
}

/* ========================================
   外枠テーブル #enter
======================================== */
table#enter {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

table#enter > tbody > tr > td {
  padding: 0 16px;
  display: block;
  width: 100%;
}

/* ========================================
   中央コンテンツ #center3
======================================== */
#center3 {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.centerbox {
  padding: 20px 0;
}

h3.title1 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.mainCont > p {
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ========================================
   フォームテーブル (.layoutp3)
======================================== */
.layoutp3.center {
  width: 100%;
}

.layoutp3 table {
  width: 100%;
  border-collapse: collapse;
}

.layoutp3 th,
.layoutp3 td {
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.layoutp3 th {
  width: 180px;
  white-space: nowrap;
  font-weight: bold;
  background-color: #f5f5f5;
}

.caution {
  color: red;
  margin-left: 2px;
}

/* ========================================
   入力フィールド
======================================== */
input.text1,
textarea.text1 {
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  -webkit-appearance: none;
}

textarea.text1 {
  resize: vertical;
  min-height: 160px;
}

.layoutp3 td br + input.text1 {
  margin-top: 6px;
}

/* ========================================
   ボタン
======================================== */
input[type="button"] {
  display: inline-block;
  padding: 10px 24px;
  margin: 4px 6px 4px 0;
  font-size: 14px;
  border: 1px solid #999;
  border-radius: 4px;
  cursor: pointer;
  background-color: #444;
  color: #fff;
  -webkit-appearance: none;
}

input[type="button"][value="キャンセル"] {
  background-color: #fff;
  color: #444;
  border-color: #aaa;
}

/* ========================================
   iPad (768px〜1024px)
======================================== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  table#enter > tbody > tr > td {
    padding: 0 24px;
  }

  .layoutp3 th {
    width: 160px;
  }
}

/* ========================================
   SP (〜767px)
======================================== */
@media screen and (max-width: 767px) {
  table#enter > tbody > tr > td {
    padding: 0 12px;
  }

  /* th/td を縦積みに */
  .layoutp3 tr {
    display: block;
    margin-bottom: 12px;
  }

  .layoutp3 th,
  .layoutp3 td {
    display: block;
    width: 100%;
    padding: 8px 0;
    border-bottom: none;
  }

  .layoutp3 th {
    background-color: transparent;
    padding-bottom: 4px;
    white-space: normal;
  }

  .layoutp3 table {
    border-top: 1px solid #ddd;
  }

  .layoutp3 tr {
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
  }

  /* ボタンを横並び */
  input[type="button"] {
    display: inline-block;
    width: calc(50% - 6px);
    margin: 8px 0 0 0;
    padding: 13px 0;
    font-size: 15px;
  }

  input[type="button"][value="確認画面へ進む"] {
    margin-right: 8px;
  }

  input[type="button"][value="キャンセル"] {
    margin-right: 0;
  }

  textarea.text1 {
    min-height: 140px;
  }

}

/* ========================================
   縦幅が小さい時（横持ち・低解像度）
======================================== */
@media screen and (max-height: 500px) {
  textarea.text1 {
    min-height: 80px;
    rows: 3;
  }
}

@media screen and (max-height: 400px) {
  textarea.text1 {
    min-height: 60px;
  }

  .centerbox {
    padding: 8px 0;
  }

  h3.title1 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .mainCont > p {
    margin-bottom: 8px;
  }
}
