Closed3

CSS+Font Awesomeで作るCTAボタン

plaincode_jpplaincode_jp

html / css


<link rel="stylesheet" media="screen" href="https://use.fontawesome.com/releases/v5.13.0/css/all.css">
<style>
	.cta{background:#ececec;padding:80px 0;}
	.c-inner{
		width:60%;background:#fff;margin:0 auto;
		-webkit-border-radius: 5px;
		-moz-border-radius: 5px;
		border-radius: 5px;
		-moz-box-shadow: 0px 0px 40px -3px rgba(66, 69, 65, 0.13);
		-webkit-box-shadow: 0px 0px 40px -3px rgba(66, 69, 65, 0.13);
		-ms-box-shadow: 0px 0px 40px -3px rgba(66, 69, 65, 0.13);
		box-shadow: 0px 0px 40px -3px rgba(66, 69, 65, 0.13);
	}
	.c-inner h5{background:#48A636;color:#fff; padding:20px 0; font-size:24px;
	-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
	}
	

*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 62.5%;
}

.btn,
a.btn,
button.btn {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
}

.btn-wrap {
  margin: 30px 0;
}

a.btn-c {
  font-size: 2.2rem;

  position: relative;

  padding: 0.25rem 2rem 1.5rem 3.5rem;

  color: #fff;
  background: #e94919;
  -webkit-box-shadow: 0 5px 0 #d44114;
  box-shadow: 0 5px 0 #d44114;
}

a.btn-c span {
  font-size: 1.5rem;

  position: absolute;
  top: -1.25rem;
  left: calc(50% - 150px);

  display: block;

  width: 300px;
  padding: 0.2rem 0;

  color: #d44114;
  border: 2px solid #d44114;
  border-radius: 100vh;
  background: #fff;
  -webkit-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
}

a.btn-c span:before,
a.btn-c span:after {
  position: absolute;
  left: calc(50% - 10px);

  content: "";
}

a.btn-c span:before {
  bottom: -10px;

  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: #d44114 transparent transparent transparent;
}

a.btn-c span:after {
  bottom: -7px;

  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

a.btn-c i {
  margin-right: 1rem;
}

a.btn-c:hover {
  -webkit-transform: translate(0, 3px);
  transform: translate(0, 3px);

  color: #fff;
  background: #eb5b30;
  -webkit-box-shadow: 0 2px 0 #d44114;
  box-shadow: 0 2px 0 #d44114;
}
	.c-tel{
		border-top:1px solid #ccc;
		padding:20px 0;
		margin:0 30px;
	}
	.c-tel p{
		font-weight:600;
		color:#48A636;
		margin-bottom:20px;
	}
	.c-tel .num{
		font-size:36px;
		color:#eb5b30;
		margin-bottom:20px;
	}

	
</style>

<div class="cta" style="text-align:center;">
<div class="c-inner">
<h5>お問い合わせ・資料請求はこちらから</h5>
	
<div class="btn-wrap">
  <a href="/contact" class="btn btn-c"><span>24時間いつでも受付中!</span><br><i class="far fa-envelope"></i>メールでお問い合わせ(無料)</a>
</div>

<div class="c-tel">
<p>お電話でのお問い合わせ</p>
<div class="num"><i class="fas fa-phone-square-alt"></i> 0120-616-663</div>
<span>受付時間:9:00〜20:00(土日祝日も受け付けております)</span>
</div>

</div>
</div><!-- END .cta-->

このスクラップは2020/12/22にクローズされました