@charset "utf-8";
/* =========================================================================
Global
========================================================================= */
html {
font-size: 16px;
}
body {
color: #444;
font-family: "Montserrat", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
line-height: 1.6;
letter-spacing: .05em;
}
a {
text-decoration: none;
color: #444;
/* リンク全般の設定を一旦ここでやっておく */
}
.inner {
max-width: 1040px;
/* 最大幅1040px。それ以下のときはウィンドウサイズに合わせる */
margin-right: auto;
margin-left: auto;
/* ブロック要素を真ん中に寄せる */
padding: 0 20px;
/* 左右にパディングを設定することで、端っこびたびたにならない */
}
li {
list-style-type: none;
}
img {
max-width: 100%;
height: auto;
/* 画像は親要素の幅をはみ出さないようにする */
}
/* =========================================================================
Header
========================================================================= */
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
/* ページの上部に固定する。幅がなくなるので100%にしてる */
background-color: rgba(255, 255, 255, 0.6);
padding: 20px 0;
}
header .inner {
display: flex;
justify-content: space-between;
align-items: center;
}
header ul {
display: flex;
gap: 0 24px;
margin-top: 8px;
}
/* =========================================================================
Main - top
========================================================================= */
#top h2 {
margin-bottom: 32px;
letter-spacing: .1em;
}
#top .main-v {
height: 100vh;
/* 100vhは1画面の高さになる。ビューポートハイト。 */
/* 50vh は1画面の半分の高さ。 */
background-image: url(../images/top-01.jpg);
background-size: cover;
/* 背景画像をウィンドウサイズに合わせて表示 */
display: flex;
justify-content: center;
align-items: center;
/* 文字を画面中央にする */
margin-bottom: 100px;
}
#top .main-v .catch {
color: #fff;
font-size: 36px;
font-weight: 800;
text-align: center;
}
#top .main-v .catch span {
font-size: 20px;
display: block;
/* 改行してる。spanはインラインなので改行されないので、Block要素に変更した */
font-weight: 600;
}
#top .top-about {
margin-bottom: 100px;
}
#top .top-about .about-blk {
display: flex;
align-items: center;
gap: 0 40px;
}
#top .top-about .about-blk .about-lead {
line-height: 2;
}
#top .top-works {
background-color: #eee;
padding: 100px 0;
/* 上下の内側の余白。(灰色部分の余白) */
margin-bottom: 100px;
/* 下のコンタクトとの間 */
}
#top .top-works .lead {
margin-bottom: 32px;
}
#top .top-works .works-list {
display: flex;
gap: 0 20px;
}
#top .top-works .works-list li {
width: calc(100% / 3);
background-color: #fff;
padding: 10px;
}
#top .top-contact .contact-blk {
background-color: #eee;
padding: 40px 50px;
}
#top .top-contact .contact-blk a {
background-image: url(../images/email.png);
background-repeat: no-repeat;
background-position: left center;
background-size: 40px;
/* メールの画像のサイズをこれで決められる */
padding-left: 50px;
}