/* safariボタンリセット */
@media screen and (-webkit-min-device-pixel-ratio:0) {

  input[type="submit"],
  input[type="button"] {
    border-radius: 0;
    -webkit-box-sizing: content-box;
    -webkit-appearance: button;
    appearance: button;
    border: none;
    box-sizing: border-box;
    cursor: pointer;
  }

  input[type="submit"]::-webkit-search-decoration,
  input[type="button"]::-webkit-search-decoration {
    display: none;
  }

  input[type="submit"]::focus,
  input[type="button"]::focus {
    outline-offset: -2px;
  }

  select.readonly,
  input.readonly:not([type="checkbox"]) {
    -webkit-box-shadow: 0 0 0px 1000px rgb(238, 238, 238) inset !important;
    -webkit-text-fill-color: #666 !important;
    opacity: 1;
  }

  input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
    -webkit-text-fill-color: #000;
    background-color: #fff !important;
  }

  input,
  select {
    outline: none;
  }

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  input:-webkit-autofill:active {
    -webkit-transition-delay: 99999s;
    -webkit-transition: color 99999s ease-out, background-color 99999s ease-out;
  }

  input {
    padding: 0px 12px 0px 32px;
    background: transparent !important;
  }

  /* 自動入力欄の背景色リセット */
  @-webkit-keyframes autofill {
    to {
      color: #666;
      background: transparent;
    }
  }

  input:-webkit-autofill {
    animation-name: autofill !important;
    animation-fill-mode: both !important;
  }

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus {
    background-clip: content-box !important;
  }
}

header {
  background: url(/img/contact/mobile/bg.png);
  background-size: 100%;
  background-attachment: local;
  background-repeat: no-repeat;
  padding-top: 80%;
  padding-bottom: 40%;
}

.main_title {
  text-align: center;
  margin-top: -50%;
}

h1 {
  font-size: 3rem;
  font-weight: normal;
  text-shadow: 0 0 1px black;
  margin: 0;
}

header small {
  font-size: 1.5rem;
  text-shadow: 0 0 1px black;
  letter-spacing: 0.2vw;
  margin-top: 0%;
}

#describe {
  text-align: center;
  font-size: 3.5vw;
  text-shadow: 0 0 1px black;
  line-height: 2;
  letter-spacing: 0.2vw;
  margin-top: 9%;
  margin-bottom: 0%;
}

main {
  margin-top: -40%;
}

/* コンテンツ */
.contents {
  width: 85%;
  margin: auto;
  align-items: center;
}

form>div {
  width: 100%;
  margin: 0;
  padding: 2% 0;
  display: flex;
  flex-direction: column;
  line-height: 2;
  justify-content: space-between;
  align-items: left;
}

.erroebox {
  color: #d91313;
  padding: 0px;
  margin: 0;
  width: 100%;
  font-size: 3.5vw;
  margin-top: 0.5vw;
}

.checkbox .erroebox {
  width: 35vw;
  margin: auto;
  margin-top: -0.5vw;
}

.delatearea {
  position: absolute;
  left: -9999px;
}

input.readonly {
  background-color: rgb(255, 255, 255);
}

input[type="submit"] {
  margin-bottom: 10vw;
}

label {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  padding: 1rem;
  letter-spacing: 0.2vw;
  text-shadow: 0 0 1px black;
}

label::before {
  content: "必須";
  line-height: 1.7;
  font-size: 1rem;
  /* padding: 0 3vw; */
  padding: 0.6vw 3vw 0vw;
  margin-right: 4%;
  color: white;
  background: #DD0000;
}

label.any::before {
  content: "任意";
  background: gray;
}

input,
select,
textarea {
  resize: none;
  border-radius: 0px;
  box-sizing: border-box;
  border: 0.2rem solid black;
  padding: 0.8rem;
  font-size: 1rem;
}

textarea {
  padding: 2%;
  height: auto;
  font-family: 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', 'ＭＳ Ｐゴシック', sans-serif;
  overflow-y: auto;
}

textarea::placeholder {
  font-size: 1.5rem;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url(/img/contact/sankaku.png) 92% 50%;
  background-size: 4%;
  background-attachment: local;
  background-repeat: no-repeat;
}

option {
  color: black;
}

select::-ms-expand {
  display: none;
}

.button {
  display: block;
  color: white;
  font-size: 2rem;
  font-weight: bolder;
  background: black;
  width: 85%;
  margin: auto;
  margin-bottom: 25vw;
  padding: 6vw 7vw;
  text-align: center;
}

.button::before {
  content: "▶";
  font-size: 1.6rem;
  float: right;
  margin-top: 1%;
}

.check {
  clear: both;
  font-size: 3.5vw;
  font-weight: bold;
  width: 100%;
  margin: auto;
  padding: 2vw 0;
}

h2 {
  text-align: center;
  margin: 5vw 0;
  font-size: 1.5rem;
}

ol.parentheses {
  padding: 0;
}

ol.parentheses>li {
  list-style-type: none;
  list-style-position: inside;
  counter-increment: cnt;
  text-indent: -1.8rem;
  padding-left: 2rem;
}

ol.parentheses>li:before {
  display: marker;
  content: "("counter(cnt) ") ";
}

ol.parenthese>li {
  list-style-type: none;
  list-style-position: inside;
  counter-increment: cnt2;
  text-indent: -1.3rem !important;
}

#privacy {
  border: 1px solid lightgray;
  overflow-y: scroll;
  font-size: 3vw;
  width: 95%;
  height: 20vw;
  color: #3d3d3d;
  margin: auto;
  padding: 1% 2%;
  line-height: 1.8;
}

#privacy p {
  text-indent: 0rem;
  margin-top: 0;
}

#privacy table {
  border-collapse: collapse;
  margin-left: 1rem;
  font-size: 0.8rem;
  text-indent: 0rem;
}

#privacy table tr>* {
  border: 1px solid black;
  min-width: 6rem;
  padding: 0;
}


.checkbox {
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.checkbox label {
  width: auto;
  margin: 2vw 0;
  text-align: center;
}

.checkbox label::before {
  content: none;
}

#agree {
  width: 10vw;
  height: 10vw;
  margin: 1vw 0 5vw 0;
  font-weight: normal;
  border: 0.5vw solid;
}

#agree:checked {
  background: white;
}

input[type="submit"] {
  background: #000 !important;
  color: white;
  font-size: 1.8rem;
  text-shadow: 0 0 1px #fff;
  width: 80%;
  display: block;
  margin: 0 auto;
  padding: 5vw 0 4vw 0;
}

#privacy::-webkit-scrollbar {
  width: 5px;
}

#privacy::-webkit-scrollbar-thumb {
  background: lightgray;
  border-radius: 10px;
}

#privacy::-webkit-scrollbar-track {
  background: white;
}

.contents>div {
  display: block;
  text-align: center;
  width: 80%;
  padding: 0;
  margin: auto;
  margin-bottom: 10vw;
  margin-top: 5vw;
}

.contents>div button {
  width: 100%;
  height: 100%;
  color: white;
  font-size: 1.8rem;
  text-shadow: 0 0 1px #fff;
  background: #000;
  padding: 5vw 0 4vw 0;
  border: 0.4vw solid black;
}

select.readonly,
textarea.readonly,
input.readonly:not([type="checkbox"]) {
  -webkit-box-shadow: 0 0 0px 1000px rgb(238, 238, 238) inset !important;
  -webkit-text-fill-color: #666 !important;
  opacity: 1;
  pointer-events: none;
}

input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
  -webkit-text-fill-color: #000;
}

input,
select,
textarea {
  outline: none;
}