@charset "UTF-8";
/* CSS Document */
/*---------------------------------------------------------------------
 変数内を編集すれば、基本的なところは変わるようになっているので、こちらを触ってくださればOKです
----------------------------------------------------------------------*/

.header-inner{
    margin-bottom: 3rem;
}
footer{
    margin-top: 3rem;
}
header h1,header p{
    width: min(80%,1200px);
    margin-bottom: 10px;
    margin-inline:auto;
} 
header h1::after{
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #FDB52B;
    margin-top: 10px;
}
main{
    width: min(80%,1200px);
  margin:0 auto 10px;
}
/*カスタムプロパティ*/
:root {
  /*文字の大きさ*/
  --font-base-size: 1rem;
  /*必須項目の文字色*/
  --required-color: hsl(0, 100%, 40%);
  /*------------------------------------------
    入力項目関係
  -------------------------------------------*/
  /*お名前、E-Mailの幅*/
  --input-width: min(600px, 100%);
  /*電話番号の幅*/
  --telephone-width: min(400px, 90%);
  /*お問合せ内容の幅*/
  --textarea-width: 100%;
  /*角丸の大きさ*/
  --radius-size: 6px;
  /*入力項目の枠設定*/
  --input-border: 2px solid hsl(0, 0%, 40%);
  /*必須項目の背景色*/
  --required-bk: hsl(50, 100%, 95%);
  /*------------------------------------------
    ラジオボタン・チェックボックス関係
  -------------------------------------------*/
  /*通常の背景色*/
  --checkbtn-bk: hsl(0, 0%, 95%);
  /*ラジオボタン・ホバーやフォーカス時の背景*/
  --checkbtn-focus-bk: hsl(0, 0%, 75%);
  /*選択時などの背景*/
  --checkbtn-select-bk: hsl(81, 59%, 43%);
  /*選択時のチェックやマルの色*/
  --checkbtn-icon: hsl(0, 0%, 100%);
  /*チェックボックス選択時のテキスト背景*/
  --check-text-bk: hsla(0, 0%, 0%, .05);
  /*------------------------------------------
    ボタン関係
  -------------------------------------------*/
  /*ボタンの幅*/
  --button-width: 300px;
  /*ボタンの高さ*/
  --button-height: 60px;
  /*ボタンの角丸の大きさ*/
  --button-radius: 10px;
  /*送信ボタン背景色*/
  --send-btn: var(--sub-color);
  /*送信ボタン文字の色*/
  --send-btn-text-color: hsl(0, 0%, 100%);
  /*送信ボタン：ホバー背景色*/
  --send-btn-hover: #a3660a;
  /*取り消し・戻るボタン背景色*/
  --reset-btn: hsl(0, 0%, 90%);
  /*取り消し・戻る：ホバー背景色*/
  --reset-btn-hover: hsl(0, 0%, 98%);
}
/*---------------------------------------------------------------------
 フォーム関係リセット
----------------------------------------------------------------------*/
input, button, textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  border-radius: 0;
  font: inherit;
  outline: none;
}
textarea {
  resize: vertical;
}
/*---------------------------------------------------------------------
 フォーム用レイアウト
----------------------------------------------------------------------*/
.message {
  margin-bottom: 2rem;
  border: 1px dotted #ccc;
}
.message p {
  padding: 2rem;
  font-size: var(--font-base-size);
  line-height: 1.7;
}
.form-box {
  margin-bottom: 1.5rem;
}
.form-box p, .form-box dt, .form-box dd {
  font-size: var(--font-base-size);
  line-height: 1.7;
}
.form-box dl {
/*  width: 95%;*/
  margin: auto auto 60px;
  font-size: var(--font-base-size);
}
.form-box dt {
  margin-bottom: 0.1rem;
  font-weight: bold;
  strong {
    color: var(--required-color);
    padding-left: 0.5rem;
    font-size: 0.8em;
    &::before {
      content: "※";
      padding-right: 0.1rem;
      font-weight: normal;
      font-size: 1.3em;
    }
  }
}
.form-box dd {
/*  margin-left: 2%;*/
  margin-bottom: 1.8rem;
}
/*ボタンのグループ*/
#buttonArea {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0 30px;
  margin-bottom: 60px;
}
/*---------------------------------------------------------------------
 送信完了後のサンクス画面
----------------------------------------------------------------------*/
.thanksmessage p {
  font-size: 1.3rem;
  line-height: 1.8;
  text-align: justify;
}
.thanksmessage a{
}
.mail-info {
  margin-bottom: 2rem;
}
.mail-info p {
  font-size: 1.8rem;
  line-height: 1.7;
  font-weight: bold;
  text-align: center;
}
/*---------------------------------------------------------------------
 各フォームのデザイン
 ここから先は、特に編集する必要はありませんが、編集する際は自己責任でお願いします。
----------------------------------------------------------------------*/
/*入力項目のデザイン　お名前、電話番号、E-Mail共通*/
.form-box input[type="text"], .form-box input[type="email"], .form-box input[type="tel"] {
  padding: 0 1rem;
  border: var(--input-border);
  border-radius: var(--radius-size);
  font-size: var(--font-base-size);
  line-height: 2;
}
.form-box input[type="text"], .form-box input[type="email"] {
  width: var(--input-width);
}
.form-box input[type="tel"] {
  width: var(--telephone-width);
}
/*必須項目に対してのデザイン*/
.form-box input[required] {
  background: var(--required-bk);
}
/*ラジオボタン、チェックボックスを横並び*/
.select-btn {
  display: flex;
  flex-direction: row !important;
}
/*ラジオボタン用　ここから----------------*/
.ECM_RadioInput {
  padding: 12px 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.ECM_RadioInput-Input {
  opacity: 0;
  width: 0;
  margin: 0;
}
/*ラジオボタン背景*/
.ECM_RadioInput-DummyInput {
  position: relative;
  top: 0;
  left: 0;
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--checkbtn-bk);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4) inset;
}
/*ラジオボタンの文字*/
.ECM_RadioInput-LabelText {
  margin-left: 12px;
  display: block;
  font-size: var(--font-base-size);
}
/*ラジオボタンホバー・フォーカス時の背景色*/
.ECM_RadioInput:hover > .ECM_RadioInput-DummyInput, .ECM_RadioInput-Input:focus + .ECM_RadioInput-DummyInput {
  background: var(--checkbtn-focus-bk);
}
/*ラジオボタン選択時*/
.ECM_RadioInput-Input:checked + .ECM_RadioInput-DummyInput {
  background: var(--checkbtn-select-bk);
}
/*ラジオボタン選択時の中のマル*/
.ECM_RadioInput-Input:checked + .ECM_RadioInput-DummyInput::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--checkbtn-icon);
}
/*ラジオボタン用 ここまで*/
/*チェックボックス用　ここから----------------------*/
.ECM_CheckboxInput {
  padding: 12px 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.ECM_CheckboxInput-Input {
  margin: 0;
  width: 0;
  opacity: 0;
}
/*チェックボックスの背景*/
.ECM_CheckboxInput-DummyInput {
  position: relative;
  top: 0;
  left: 0;
  display: block;
  width: 32px;
  height: 32px;
  background: var(--checkbtn-bk);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4) inset;
  border-radius: 4px;
}
/*チェックボックスの文字*/
.ECM_CheckboxInput-LabelText {
  margin-left: 12px;
  display: block;
  font-size: var(--font-base-size);
}
/*チェックボックホバー：テキスト部分の背景色*/
.ECM_CheckboxInput:hover {
  background: var(--check-text-bk) !important;
}
/*チェックボックスフォーカス時の背景色*/
.ECM_CheckboxInput-Input:focus + .ECM_CheckboxInput-DummyInput {
  border: dashed 2px var(--checkbtn-select-bk);
}
/*チェックボックス選択時*/
.ECM_CheckboxInput-Input:checked + .ECM_CheckboxInput-DummyInput {
  background: var(--checkbtn-select-bk);
}
/*チェックされたアイコン*/
.ECM_CheckboxInput-Input:checked + .ECM_CheckboxInput-DummyInput::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  height: 4px;
  border-radius: 2px;
  transform: translate(-6px, 5px) rotateZ(-135deg);
  transform-origin: 2px 2px;
  background: var(--checkbtn-icon);
}
.ECM_CheckboxInput-Input:checked + .ECM_CheckboxInput-DummyInput::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76%;
  height: 4px;
  border-radius: 2px;
  transform: translate(-6px, 5px) rotateZ(-45deg);
  transform-origin: 2px 2px;
  background: var(--checkbtn-icon);
}
/*お問い合わせ内容*/
.form-box textarea {
  width: var(--textarea-width);
  height: 15rem;
  padding: 0 1rem;
  border: var(--input-border);
  border-radius: var(--radius-size);
  font-size: var(--font-base-size);
  line-height: 1.5;
}
/*ボタン*/
#buttonArea button {
  display: block;
  cursor: pointer;
  width: var(--button-width);
  height: var(--button-height);
  border-radius: var(--button-radius);
  font-size: var(--font-base-size);
  font-weight: bold;
}
/*送信用ボタン*/
#buttonArea button.send-btn {
  background: var(--send-btn);
  color: var(--send-btn-text-color);
  &:hover {
    background: var(--send-btn-hover);
  }
}
/*取り消し・戻るボタン*/
#buttonArea button.reset-btn {
  background: var(--reset-btn);
  &:hover {
    background: var(--reset-btn-hover);
  }
}
/*---------------------------------------------------------------------
 レスポンシブ処理
----------------------------------------------------------------------*/
@media screen and (max-width:720px) {
  .select-btn {
    flex-direction: column !important;
  }
  #buttonArea {
    flex-direction: column-reverse;
  }
  #buttonArea button {
    margin: 0 auto;
    width: 80%;
  }
  #buttonArea button:last-child {
    margin-bottom: 30px;
  }
}
/*---------------------------------------------------------------------
 確認画面
----------------------------------------------------------------------*/
#formWrap {
  width: 90%;
  margin: 0 auto;
  color: #555;
  font-size: var(--font-base-size);
  line-height: 1.7;
}
table.formTable {
  width: 100%;
  margin: 0 auto 30px auto;
  border-collapse: collapse;
}
table.formTable td, table.formTable th {
  border: 1px solid #ccc;
  padding: 10px;
}
table.formTable th {
  width: 30%;
  font-weight: normal;
  background: #efefef;
  text-align: left;
}
p.error_messe {
  margin: 5px 0;
  color: red;
}