-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
258 lines (220 loc) · 5.13 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
/* グローバルなボックスサイズの設定 */
*, *::before, *::after {
box-sizing: border-box;
}
/* 全体のフォント設定 */
body {
font-family: 'Open Sans', sans-serif;
background-color: #f5f5f5; /* 背景色を薄いグレーに設定 */
color: #333; /* 文字色をダークグレーに設定 */
margin: 8px;
padding: 10px;
}
/* コンテナ全体のスタイル */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px 80px; /* 左右に80pxのパディングを追加 */
background-color: #ffffff; /* 背景色を白に設定 */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽いシャドウを追加 */
border-radius: 8px; /* 角を少し丸くする */
}
/* ヘッダーのスタイル */
.site-header {
background-color: #ffffff;
border-bottom: 1px solid #eaeaea;
padding: 20px 80px; /* 左右に80pxのパディングを追加 */
display: flex;
align-items: center;
justify-content: space-between;
}
/* サイトタイトルのスタイル */
.site-title {
margin: 0;
font-family: 'Roboto', sans-serif;
font-size: 1.8em;
padding-left: 20px; /* 左に20pxのパディングを追加 */
}
.site-title a {
text-decoration: none;
color: #333;
}
/* ページタイトルのスタイル */
.page-title {
margin: 20px 0;
padding-left: 20px; /* 左側に20pxのパディングを追加 */
font-size: 2em;
color: #333;
font-weight: bold;
}
/* ナビゲーションのスタイル */
.site-nav ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
gap: 20px;
}
.site-nav a {
text-decoration: none;
color: #333;
font-weight: 600;
transition: color 0.3s;
}
.site-nav a:hover {
color: #007BFF; /* ホバー時に青色に変更 */
}
/* フッターのスタイル */
.site-footer {
background-color: #ffffff;
border-top: 1px solid #eaeaea;
padding: 20px 80px; /* 左右に80pxのパディングを追加 */
text-align: center;
margin-top: 40px;
}
.site-footer p {
margin: 0;
color: #777;
font-size: 0.9em;
}
/* ページ説明のスタイル */
.page-description {
font-family: 'Roboto', sans-serif;
font-size: 1.2em;
color: #555;
margin-bottom: 30px;
text-align: center;
line-height: 1.6;
max-width: 800px;
margin-left: auto;
margin-right: auto;
padding: 0 20px; /* 左右に20pxのパディングを追加 */
}
/* 記事リストのスタイル */
.article-list {
width: 100%;
}
.topic-section {
margin-bottom: 50px;
}
.topic-title {
font-size: 1.6em;
color: #333;
margin-bottom: 20px;
text-align: center;
padding-left: 20px; /* 左に20pxのパディングを追加 */
}
/* 縦方向レイアウトのスタイル */
.articles-grid {
display: flex;
flex-direction: column;
gap: 20px;
}
/* 記事カードのスタイル */
.article-card {
background-color: #ffffff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s, box-shadow 0.3s;
display: flex;
flex-direction: column;
}
.article-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}
/* サムネイル画像のスタイル */
.thumbnail {
width: 100%;
max-width: 512px; /* サムネイルの最大幅を512pxに設定 */
height: auto;
display: block;
margin: 20px auto 0 auto; /* 上部に20pxのマージンを追加 */
border-bottom: 1px solid #ddd;
}
/* 記事コンテンツのスタイル */
.article-content {
padding: 15px;
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
/* 記事タイトルのスタイル */
.article-title {
font-family: 'Roboto', sans-serif;
font-size: 1.1em;
margin: 10px 0 0 0;
color: #333;
transition: color 0.3s;
}
.article-title:hover {
color: #007BFF; /* ホバー時に青色に変更 */
}
/* 公開日のスタイル */
.published-date {
font-size: 0.85em;
color: #999;
margin: 0;
}
/* レスポンシブ対応 */
@media (max-width: 1024px) {
.container {
padding: 20px 60px; /* 左右のパディングを80pxから60pxに減少 */
}
.site-header {
padding: 20px 60px; /* 左右に60pxのパディングを維持 */
}
.articles-grid {
gap: 15px;
}
}
@media (max-width: 768px) {
.container {
padding: 20px 40px; /* 左右のパディングを60pxから40pxに調整 */
}
.site-header {
padding: 20px 40px; /* 左右に40pxのパディングを追加 */
}
.articles-grid {
gap: 10px;
}
.thumbnail {
max-width: 300px; /* サムネイルのサイズを調整 */
}
}
@media (max-width: 480px) {
.container {
padding: 10px 20px; /* モバイルデバイス向けにパディングを調整 */
}
.site-header {
padding: 10px 20px; /* 左右に20pxのパディングを追加 */
}
.articles-grid {
gap: 10px;
}
.thumbnail {
max-width: 250px; /* サムネイルのサイズを調整 */
}
}
/* その他の基本スタイル */
h1, h2, h3 {
font-family: 'Roboto', sans-serif;
margin-top: 20px;
margin-bottom: 10px;
font-weight: 700;
line-height: 1.3em;
}
h1 {
font-size: 2.5em;
color: #333;
}
h2 {
font-size: 2em;
color: #333;
}
h3 {
font-size: 1.5em;
color: #333;
}