/*
 Theme Name:   Medilux-Child Theme
 Description:  Twenty Twelve Child Theme
 Template:     twentytwelve
*/

/* ---
    日本語⇔英語　切替トグルスイッチ
---------------------------------------------- */

.knob,
.btn-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.btn {
  position: relative;
  top: 50%;
  width: 74px;
  height: 36px;
  margin: -20px auto 0 auto;
  overflow: hidden;
}

.btn.btn-pill,
.btn.btn-pill > .btn-bg {
  border-radius: 100px;
}

.btn.btn-rect {
  border-radius: 2px;
}

.checkbox {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.knob {
  z-index: 2;
}

.btn-bg {
  width: 100%;
  background-color: #ebf7fc;
  transition: 0.3s ease all;
  z-index: 1;
}

/* Button 1 */
#button-1 .knob:before{
  content: "JP";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  background-color: #03a9f4;
  border-radius: 50%;
  transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#button-1 .checkbox:checked + .knob:before {
  content: "EN";
  left: 42px;
  background-color: #f44336;
}

#button-1 .checkbox:checked ~ .btn-bg {
  background-color: #fcebeb;
}

#button-1 .knob,
#button-1 .knob:before,
#button-1 .btn-bg  {
  transition: 0.3s ease all;
}


