﻿@charset "utf-8";

.ckbox label,
.radio label {
  padding-left: 0;
}

/* -- 日付カレンダーCSS -------------------------------------------------------------------------------- */
.date {
  margin-top: 8px;
}

/* -- チェックボックスCSS -------------------------------------------------------------------------------- */
.ckbox {
  margin: auto;
  padding: 50px;
}

input[type=checkbox] {
  display: none;
}

input[type=checkbox]+label {
  display: block;
  position: relative;
  padding-left: 20px;
  margin-bottom: 5px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

input[type=checkbox]+label:last-child {
  margin-bottom: 0;
}

input[type=checkbox]+label:before {
  content: '';
  display: block;
  width: 15px;
  height: 15px;
  border: 1px solid #999;
  background-color: #fff;
  position: absolute;
  top: 3px;
  left: 0;
  -webkit-transition: all .12s, border-color .08s;
  transition: all .12s, border-color .08s;
}

input[type=checkbox]:checked+label:before {
  width: 10px;
  top: 0px;
  left: 5px;
  border: 1px solid #13b1cd;
  border-radius: 0;
  background-color: #f5f8f9;
  opacity: 1;
  border-top-color: transparent;
  border-left-color: transparent;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}


/* -- ラジオボタンCSS -------------------------------------------------------------------------------- */
.radio {
  margin: auto;
  padding: 50px;
}

input[type=radio] {
  position: absolute;
  opacity: 0;
}

input[type=radio]+label:before {
  content: "";
  background: #f4f4f4;
  border-radius: 100%;
  border: 1px solid #999;
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
  top: 3px;
  margin-right: 5px;
  vertical-align: top;
  cursor: pointer;
  text-align: center;
  transition: all 250ms ease;
}

.radio input[type=radio]:checked+label:before {
  background-color: #13b1cd;
  box-shadow: inset 0 0 0 3px #f4f4f4;
}

.radio input[type=radio]:focus+label:before {
  outline: none;
  border-color: #13b1cd;
}

.radio input[type=radio]:disabled+label:before {
  box-shadow: inset 0 0 0 3px #f4f4f4;
  border-color: #999;
  background: #999;
}

.radio input[type=radio]+label:empty:before {
  margin-right: 0;
}

/* その他（ラジオボタン）の詳細テキスト欄 */
label[for="job-9"],
label[for="business-16"] {
  position: relative;
}

#job-other-text,
#business-other-text {
  position: absolute;
  left: 5rem;
  width: calc(100% - 5rem) !important;
}

/* その他（チェックボックス）の詳細テキスト欄 */
#knew-introduction-text,
#knew-other-text,
#inquiry-purpose-5,
#inquiry-purpose-other-text,
#plan-other-text,
#inquiry-other-text {
  left: 5rem;
  width: calc(100% - 5.3rem) !important;
}


/* -- responsive -------------------------------------------------------------------------------- */

/* 1000pixel start */
@media screen and (max-width: 959px) {

  input[type=text] {
    margin-top: 0.25em !important;
  }

  input[type=checkbox]:checked+label:before {
    background-color: #ddd;
  }

  .ckbox,
  .radio {
    padding-bottom: 1em !important;
  }

  .box {
    padding: 1em 1em 0.5em 1em !important;
  }

  /* その他（ラジオボタン）の詳細テキスト欄 */
  #job-other-text,
  #business-other-text {
    position: relative;
    left: 0;
    width: 100% !important;
  }

  /* その他（チェックボックス）の詳細テキスト欄 */
  #job-other-text,
  #business-other-text,
  #knew-introduction-text,
  #knew-other-text,
  #inquiry-purpose-5,
  #inquiry-purpose-other-text,
  #plan-other-text,
  #inquiry-other-text {
    left: 0;
    width: calc(100% - 1.4rem) !important;
    margin-left: 0.7rem;
  }

}