
 /* === ボタンを表示するエリア ============================== */
 .sample1Area {
    position       : relative;            /* 親要素が基点       */
    margin         : auto;                /* 中央寄せ           */
    width          : 250px;               /* ボタンの横幅       */
    height         : 40px;                /* ボタンの高さ       */
  }
   
   /* === ラジオボタン ======================================== */
  .sample1Area input[type="radio"] {
    display        : none;            /* チェックボックス非表示 */
  }
   
   /* === ラジオボタンのラベル（標準） ======================== */
  .sample1Area label {
    display        : block;               /* ボックス要素に変更 */
    position       : absolute;            /* 親要素からの相対位置*/
    top            : 0;                   /* 標準表示位置(上)   */
    bottom         : 0;                   /* 標準表示位置(下)   */
    left           : 0;                   /* 標準表示位置(左)   */
    right          : 0;                   /* 標準表示位置(右)   */
    text-align     : center;              /* 文字位置は中央     */
    /* line-height    : 60px;                1行の高さ(中央寄せ) */ 
    line-height    : 25px;                /* 1行の高さ(中央寄せ)*/
    font-size      : 16pt;                /* 文字サイズ         */
    /* font-weight    : bold;                太字               */
     border         : 2px solid #ccc;      /*枠線(一旦四方向)   */
  }
   
   /* === ON側のラジオボタンのラベル（標準） ================== */
  .sample1Area #sample1on + label {
    right          : 50%;                 /* 右端を中央に変更   */
    border-radius  : 6px 0 0 6px;         /* 角丸(左側の上下)   */
    background     : #eee;                /* 背景               */
    color          : #666;                /* 文字色             */
    border-right   : none;                /* 枠線の右側を消す   */
  }
   
   /* === ON側のラジオボタンのラベル（ONのとき） ============== */
  .sample1Area #sample1on:checked +label {
                                          /* 背景グラデーション */
    background     : #007bff;
    /* background     : linear-gradient(180deg, #00b359, #006633, #00b359); */
    color          : #fff;                /* 文字色             */
    /* text-shadow    : 1px 1px 1px #333;    文字に影を付ける   */
  }
   
   /* === OFF側のラジオボタンのラベル（標準） ================ */
  .sample1Area #sample1off + label {
    left           : 50%;                 /* 左端を中央に変更   */
    border-radius  : 0 6px 6px 0;         /* 角丸(右側の上下)   */
    background     : #eee;                /* 背景               */
    color          : #666;                /* 文字色             */
    border-left    : none;                /* 枠線の左側を消す   */
  }
   
   /* === OFF側のラジオボタンのラベル（OFFのとき） ============= */
  .sample1Area #sample1off:checked +label {
                                          /* 背景グラデーション */
    background     : linear-gradient(175deg, #ccc, #999, #ccc);
    color          : #fff;                /* 文字色             */
    text-shadow    : 1px 1px 1px #333;    /* 文字に影を付ける   */
    transition: .3s;
  }



  /* チェックボックスの非表示 */
.sample2Area input[type=checkbox] {
    display: none;
}

/* ラベル要素の中身のスタイル（具体的にはスイッチ部分） */
.sample2Area label {
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* ラベル要素の中身の直前にスイッチのON部分追加 */
.sample2Area label:before {
    padding: 6px 10px;
    content: 'ON';
    border-radius: 6px 0 0 6px;
    background: linear-gradient(to bottom, #F0F0F0 0%, #DDD 100%);
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.1) inset;
    color: #333;
}

/* ラベル要素の中身の直前にスイッチのOFF部分追加 */
.sample2Area label:after {
    padding: 6px 10px;
    content: 'OFF';
    border-radius: 0 6px 6px 0;
    background: #C30;
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.1) inset;
    color: #FFF;
}

/* スイッチがOFF状態の場合ON部分のホバーは透かしを入れる */
.sample2Area input+label:hover:before {
    opacity: 0.5;
}

/* スイッチがON状態の場合OFF部分のホバーは透かしを入れる */
.sample2Area input:checked+label:hover:after {
    opacity: 0.5;
}

/* スイッチがON状態でONに色をつける */
.sample2Area input:checked+label:before {
    background: #9C0;
    color: #FFF;
    opacity: 1;
}
/* スイッチがOFF状態でOFFに色をつける */
.sample2Area input:checked+label:after {
    background: linear-gradient(to bottom, #F0F0F0 0%, #DDD 100%);
    color: #333;
}


/* === ボタンを表示するエリア ============================== */
.sample3Area {
    margin         : auto;                /* 中央寄せ           */
    width          : 150px;               /* ボタンの横幅       */
    width          : 150px;               /* ボタンの横幅       */
  }
   
   /* === チェックボックス ==================================== */
  .sample3Area input[type="checkbox"] {
    display        : none;            /* チェックボックス非表示 */
  }
   
   /* === チェックボックスのラベル（標準） ==================== */
  .sample3Area label {
    display        : block;               /* ボックス要素に変更 */
    box-sizing     : border-box;          /* 枠線を含んだサイズ */
    text-align     : left;                /* 文字位置は中央     */
    border         : 2px solid #78bd78;   /* 枠線               */
    border-radius  : 3px;                 /* 角丸               */
    line-height    : 1;                   /* 1行の高さ          */
    height         : 50px;                /* ボタンの高さ       */
  }
   
   /* === 移動BOX（標準） ===================================== */
  .sample3Area #sample3box {
    display        :inline-block;
    height         : 46px;                /* ボタンの高さ       */
    width          : 50%;                 /* ボタンの高さ       */
    background     : rgb(233, 6, 6);                /* 背景色             */
    transition     : .3s;                 /* ゆっくり変化       */
    text-align     : center;                /* 文字位置は中央     */
  }
   /* スイッチがOFF状態の場合ON部分のホバーは透かしを入れる */
.sample3Area input+label:hover:before {
    opacity: 0.5;
}
/* スイッチがOFF状態の場合ON部分のホバーは透かしを入れる */
.sample3Area input+label:hover:before {
    opacity: 0.5;
}

   /* === ON側のチェックボックスの移動BOX（ONのとき） ========= */
  .sample3Area #sample3check:checked + label #sample3box {
    transform      : translateX(100%);    /* BOXを右に移動      */
    background     : #78bd78;             /* 背景色             */
  }


  /* === 移動BOX（標準） ===================================== */
  .sample3Area #sample4box {
    display        :inline-block;
    height         : 46px;                /* ボタンの高さ       */
    width          : 50%;                 /* ボタンの高さ       */
    background     : rgb(221, 221, 221);                /* 背景色             */
    transition     : .3s;                 /* ゆっくり変化       */
    text-align     : center;                /* 文字位置は中央     */
  }
   /* === ON側のチェックボックスの移動BOX（ONのとき） ========= */
   .sample3Area #sample4check:after + label #sample4box {
    transform      : translateX(100%);    /* BOXを右に移動      */
    background     : #78bd78;             /* 背景色             */
  }
  .sample3Area #sample4check:before + label #sample4box {
    transform      : translateX(100%);    /* BOXを右に移動      */
    background     : #9e00fa;             /* 背景色             */
  }

  /* Large toggl switches */
.custom-switch-lg .custom-control-label::before {
    left: -2.25rem;
    width: 3rem;
    border-radius: 1.5rem;
}

.custom-switch-lg .custom-control-label::after {
    top: calc(.25rem + 3px);
    left: calc(-2.25rem + 4px);
    width: calc(1.5rem - 6px);
    height: calc(1.5rem - 6px);
    border-radius: 1.5rem;
}

.custom-switch-lg .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(1.4rem);
}

.custom-switch-lg .custom-control-label::before {
    height: 1.5rem;
}

.custom-switch-lg .custom-control-label {
    padding-left: 1.5rem;
    line-height: 1.7rem;
}
