<!DOCTYPE html>
<html lang="ja">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ナビゲーションサンプル</title>
    <link rel="stylesheet" href="css/style.css">
</head>

<body>
    <nav>
        <ul>
            <li><a href="#">サービス案内</a></li>
            <li><a href="#">会社概要</a></li>
            <li><a href="#">お問い合わせ</a></li>
        </ul>
    </nav>
</body>

</html>
nav {
    width: 1000px;
    margin-left: auto;
    margin-right: auto;
    background-color: #eee;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 5px solid #f00;
    display: flex;
    justify-content: space-between;
}

ul li {
    border: 3px solid #ff0;
    width: 300px;
}

a {
    text-decoration: none;
    background-color: #f77237;
    display: block;
    text-align: center;
    color: #fff;
    line-height: 70px;
    transition: 0.3s;
}

a:hover {
    opacity: 0.5;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.