@charset "UTF-8";
/* CSS Document */
html {
font-size: 62.5%; /* 16px * 62.5% = 10px */
width: 100%;
}
body {
color: #333; /* RGB */
font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
font-weight: 300;
font-size: 1.6em;
line-height: 2.4rem;
text-align: center;
}
section h2 {
font-size: 2.4rem;
}
a:hover {
text-decoration: none;
opacity: 0.5;
}
*, *:before, *:after {
box-sizing: border-box;
}
ul,ol {
list-style: none;
}
p {
letter-spacing: 0.2rem;
line-height: 1.5rem;
}
.wrapper {
max-width: 1300px;
margin: 0 auto;
}
【Common.css】
サイト全体で共通して使いたいスタイルを指定。
@charset "UTF-8";
/* CSS Document */
html {
font-size: 62.5%; /* 16px(=デフォルトサイズ)× * 62.5% = 10px */ (←このhtmlのフォントサイズ1個分は10pxになる。)
width: 100%;
box-sizing: border-box; (=border+padding でコンテンツサイズを計算する。)
}
body {
color: #333; /* RGB */
font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", sans-serif; (左から優先)
font-weight: 500;
font-size: 1.6em;
line-height: 2.4rem;
text-align: center;
}
section h2 {
font-size: 2.4rem; (←=24pxになる)
}
a:hover {
opacity: 0.5;
}
.none {
display: none; (classでnoneを指定すると表示がnoneになる)
}
*,*:before,*:after { (全ての要素に対して指定する。『*(全ての要素),*:before,*:after』 )
box-sizing: border-box;
}