-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
148 lines (128 loc) · 2.73 KB
/
styles.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
/* グローバルスタイル */
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
header {
background: #333;
color: #fff;
text-align: center;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px; /* 上下のパディングを最小限に */
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
background: #444;
}
nav ul li {
margin: 0 15px;
}
nav ul li a, .lang-btn {
color: #fff;
text-decoration: none;
}
.lang-btn {
background: #444;
color: #fff;
border: none;
padding: 5px 10px;
margin-left: 10px;
cursor: pointer;
}
.lang-btn:hover {
background: #555;
}
section {
padding: 40px 40px 20px 40px;
background: #fff;
margin: 10px 0;
}
footer {
background: #333;
color: #fff;
text-align: center;
padding: 10px 0;
margin-top: 20px;
}
.two-column {
display: flex;
flex-wrap: wrap;
gap: 20px;
align-items: center;
padding: 20px 0;
}
.two-column .column {
flex: 1;
min-width: 250px;
}
img {
max-width: 30%;
height: auto;
border-radius: 50%;
display: block;
margin: 0 auto;
}
/* ハンバーガーメニュー */
.menu-icon {
display: none;
font-size: 24px;
cursor: pointer;
margin-right: 20px;
}
/* モバイル向けのスタイル */
@media (max-width: 768px) {
.menu-icon {
display: block;
}
nav ul {
display: none;
flex-direction: column;
width: 100%;
text-align: left; /* 左寄せに変更 */
background: #333; /* 背景色をナビゲーションバーと統一 */
padding: 10px;
position: absolute; /* メニューが固定されるようにする */
top: 60px; /* ヘッダーの高さ分下げる */
left: 0;
z-index: 1001;
}
nav ul.active {
display: flex;
}
nav ul li {
margin: 10px 0;
}
nav ul li a, .lang-btn {
padding: 10px;
display: block;
width: 100%;
}
.two-column {
flex-direction: column; /* 1カラムに変更 */
}
.profile-img {
padding-top: 80px;
max-width: 50%; /* 画像を大きく表示するために最大幅を変更 */
}
}
p {
padding-left: 10px;
}
#about {
padding-top: 40px; /* 固定ナビゲーションバーの高さに合わせて余白を設定 */
}