<form>
<p class="radio-btn"><input type="radio" name="item" value="01" id="radio01" class="c-radio"><label class="radio" for="radio01">チケットの取り置き</label></p>
</form>
/* reset */
input,label,select,button,textarea{
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
margin:0;
border:0;
padding:0;
display:inline-block;
vertical-align:middle;
white-space:normal;
background:none;
}
input:focus,
select:focus,
textarea:focus{outline:0;}
.radio-btn {
font-size: 16px;
}
.c-radio {
display: none;
}
.radio {
position: relative;
padding-left: 35px;
cursor: pointer;
}
.radio::before,
.radio::after {
position: absolute;
border-radius: 50%;
content: '';
}
.radio::before {
top: calc(50% - 11px);
left: 0;
width: 22px;
height: 22px;
border: 1px solid #cfcfcf;
background-color: #fff;
}
.radio::after {
top: calc(50% - 5px);
left: 6px;
width: 12px;
height: 12px;
background-color: #ff0000;
opacity: 0;
transform: scale(0);
}
.c-radio:checked + .radio::after {
opacity: 1;
transform: scale(1);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.