<div class="container">
<div class="header-wrap">
<div class="header-innner1">
<h1 class="h-title1">
<a href="">
<img class="h-logo" src="#" alt="ロゴ画像">
</a>
</h1>
<div class="h-btn1">
<a href="#" class="h-btn-text1">
お問い合わせ
</a>
</div>
</div>
</div>
</div>
li {
list-style: none;
}
a {
text-decoration: none;
color: rgb(0, 0, 0);
transition: 0.6s;
transition: 0.6s;
transition: 0.6s;
transition: 0.6s;
transition: 0.6s;
}
.header-wrap {
width: 100%;
/* topに固定の場合ONにする
position: fixed;
top: 0;
left: 0; */
}
.header-innner1 {
display: flex;
justify-content: space-between;
align-items: center;
height: 100px;
padding: 0 20px;
}
.h-title1 {
width: 200px;
margin-right: 10px;
/* 画像入れたら削除でOK */
height: 50px;
background-color: #9e9b9b;
}
.h-title1 img {
/* display: block; */
width: 100%;
object-fit: cover;
vertical-align: bottom;
}
.h-btn1 {
background: #63B13C;
border-radius: 30px;
}
.h-btn-text1 {
display: block;
color: #fff;
font-size: 1.5rem;
text-decoration: none;
padding: 15px 50px;
}
/* ================ */
.h-btn1 {
position: relative;
display: inline-block;
background: linear-gradient(to bottom, #1b1c3f, #4a4e91);
color: white;
font-weight: bold;
font-size: 1.5rem;
border: none;
border-radius: 30px;
cursor: pointer;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
animation: button-shimmer 2s infinite;
transition: all 0.3s ease-in-out;
}
/* Hover animation */
.h-btn1:hover {
background: linear-gradient(to bottom, #2c2f63, #5b67b7);
animation: button-particles 1s ease-in-out infinite;
transform: translateY(-2px);
}
/* Click animation */
.h-btn1:active {
transform: scale(0.95);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
/* Shimmer animation */
@keyframes button-shimmer {
0% {
background-position: left top;
}
100% {
background-position: right bottom;
}
}
/* Particle animation */
@keyframes button-particles {
0% {
background-position: left top;
}
100% {
background-position: right bottom;
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.