<section class="s-5">
<div class="bg-inner">
<div class="container">
<header>
<div class="h-wrapper5">
<h1 class="header-logo5">
<img src="#" alt="ロゴ画像">
</h1>
<div class="h-nav5">
<ul class="h-nav-items5">
<li class="nav-item5"><a href="">ホーム</a></li>
<li class="nav-item5"><a href="">会社概要</a></li>
<li class="nav-item5"><a href="">施行事例</a></li>
<li class="nav-item5"><a href="">業務内容</a></li>
<li class="nav-item5"><a href="">お問い合わせ</a></li>
</ul>
</div>
</div>
</header>
</div>
</div>
</section>
*{
box-sizing: border-box;
}
h1,h2,h3,h4,h5,h6,p{
margin: 0;
padding: 0;
font-size: 100%;
font-weight: 400;
}
li {
list-style: none;
}
ul,ol{
margin: 0;
padding: 0;
list-style-type: 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;
}
html,body{
width: 100%;
margin: 0 auto;
padding: 0;
text-align: center;
font-size: calc((100vw - 770px) / 325 + 14px);
font-family: 'Noto Sans JP', sans-serif;
}
@media screen and (min-width:768px) {
.sp{
display: none;
}
}
@media screen and (max-width:767px) {
.pc{
display: none;
}
}
.container{
max-width: 1500px;
margin: 0 auto;
}
@media screen and (max-width:767px) {
section{
padding: 20px 0 0 0;
}
}
.header-wrap {
width: 100%;
}
.bg-inner {
background-color: rgb(0, 187, 221);
}
.h-wrapper5 {
display: flex;
justify-content: space-between;
align-items: center;
height: 100px;
padding-left: 20px;
}
.header-logo5 {
width: 150px;
/* 画像入れたら削除でOK */
height: 50px;
background-color: rgb(246, 211, 211);
}
.header-logo5 img {
width: 100%;
min-height: auto;
object-fit: cover;
vertical-align: bottom;
}
.h-nav-items5 {
display: flex;
justify-content: space-between;
}
.h-nav-items5 li {
margin-right: 20px;
}
.h-nav-items5 li a {
display: block;
font-size: 1rem;
color: rgb(49, 1, 1);
background-color: rgb(255, 255, 255);
border: 1px solid rgb(49, 1, 1);
border-radius: 10px;
text-align: center;
padding: 15px 40px;
}
.h-nav-items5 li a:hover {
background-color: rgb(126, 196, 236);
background-image: linear-gradient(102deg, rgb(126, 196, 236) 19%, rgb(153, 218, 210) 60%, #c8edf0 100%);
box-shadow: 9px 10px 18px -8px rgb(27, 24, 24);
border-radius: 10px;
}
.main-navigation li a:hover {
color: rgb(0, 187, 221);
}
@media screen and (max-width:1100px) {
.h-nav-items5 li {
margin-right: 10px;
}
.h-nav-items5 li a {
font-size: 0.8rem;
padding: 15px 20px;
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.