-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
195 lines (158 loc) · 4.1 KB
/
style.css
File metadata and controls
195 lines (158 loc) · 4.1 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #ffffff;
color: #333;
line-height: 1.6; /* テキストの読みやすさを向上させるための行間(gptアドバイス) */
}
.wrapper {
max-width: 960px;
margin: 0 auto;
padding: 0 4%;
}
header {
padding: 20px 0;
}
nav {
display: flex;
}
nav ul {
list-style: none;
display: flex;
justify-content: center;
padding: 5px 10px;
margin-left: 350px;
}
nav .active {
background-color: rgb(52,66,84);
color: #fff;
padding: 5px 10px;
white-space: nowrap;/* テキストを改行しない(gptアドバイス) */
margin-right: 200px;
}
nav ul li {
margin: 0 20px;
white-space: nowrap;/* li内のテキストを改行しない(gptアドバイス) */
}
main {
padding: 20px 0;
text-align: center;
}
.main-visual {
margin-top: 0;
}
.main-visual img {
width: 100%;
height: 600px;
justify-content: center;
align-items: center;
margin: 20px 0;
object-fit: cover; /* 画像を枠にフィットさせて切り取る(gptアドバイス) */
object-position: center; /* 画像の中央部分を表示(gptアドバイス) */
overflow: hidden; /* 高さを超えた部分を非表示にする(gptアドバイス) */
margin-top: 0; /* 上のマージンを取り除く */
}
.introduction {
text-align: center;
margin-top: 40px;
}
.introduction h4 {
margin-top: 40px;
}
.introduction p {
text-align: left;
}
.introduction h2 {
border-bottom: 2px solid #333;
display: inline-block; /* 文字の長さに合わせる(gptアドバイス) */
}
.profile-images h2 {
text-align: center;
margin-bottom: 50px;
border-bottom: 2px solid #333;
display: inline-block; /* 文字の長さに合わせる(gptアドバイス) */
}
.profile {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 100px;
flex-wrap: wrap;
align-items: center; /* 名前とテキストを垂直方向に中央揃えにする (後で消すかも)*/
}
.profile-left {
text-align: left;
}
.profile img {
border-radius: 50%;
margin-left: 20px;
}
.images {
display: flex;
justify-content: center; /* 中央に配置(gptアドバイス) */
justify-content: space-between; /* 要素の間を均等にスペースを取る(gptアドバイス) */
align-items: flex-start; /* 上揃え(gptアドバイス) */
}
.profile-images .image-item {
text-align: center; /* 画像のタイトルや説明を中央揃えに(gptアドバイス) */
}
footer {
text-align: center;
margin-top: 40px;
padding: 20px 0;
}
.image-item {
margin: 0 10px; /* 必要に応じてスペースを設定(gptアドバイス) */
flex: 1; /* アイテムを均等な幅で配置(gptアドバイス) */
text-align: center;
}
.image-item img {
width: 100%; /* 画像がアイテムに収まるように幅を設定 */
height: auto;
}
@media (max-width: 600px) {
header {
display: flex;
justify-content: center;
}
nav .active {
margin-right: 0;
}
nav ul {
margin-left: 0;
}
.profile {
flex-direction: column; /* 縦に並べる */
align-items: center;
justify-content: center;
}
.profile h4 {
align-items: center;
}
.profile-left {
text-align: center; /* スマホ版で中央に揃える */
}
.images {
flex-direction: column;
align-items: center;
}
.image-item {
width: 100%;
margin-bottom: 50px;
}
.main-visual {
width: 100%;
height: 600px; /* 表示エリアの高さを調整 */
overflow: hidden; /* 画像のオーバーフロー部分を隠す */
}
.main-visual img {
height: 100%
object-fit: cover; /* 画像を中央部分だけ表示させる */
width: 100%;
object-position: center;
}
}