質問編集履歴
1
この問題に影響を与えているかもしれないところを追加いたしました。
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -4,15 +4,77 @@
|
|
|
4
4
|
宜しくお願い致します。
|
|
5
5
|
|
|
6
6
|
```HTML
|
|
7
|
+
<form action="#" method="post">
|
|
8
|
+
|
|
9
|
+
<div class="item">
|
|
10
|
+
<div class="category">
|
|
11
|
+
<label class="label_c">お問い合わせ種別</label>
|
|
7
|
-
|
|
12
|
+
<select type="type" name="select" placeholder="ーーー">
|
|
8
|
-
|
|
13
|
+
<option>選択してください</option>
|
|
9
|
-
|
|
14
|
+
<option>テキスト1</option>
|
|
10
|
-
|
|
15
|
+
<option>テキスト2</option>
|
|
11
|
-
|
|
16
|
+
<option>テキスト3</option>
|
|
12
|
-
|
|
17
|
+
</select>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div class="item">
|
|
22
|
+
<label class="label_c">氏名<span class="required">必須</span></label>
|
|
23
|
+
<input class="inputs" type="text" name="name" placeholder="氏名">
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div class="item">
|
|
27
|
+
<label class="label_c">フリガナ<span class="required2">必須</span></label>
|
|
28
|
+
<input class="inputs" type="text" name="name" placeholder="フリガナ">
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<div class="item">
|
|
32
|
+
<label class="label_c">メール</label>
|
|
33
|
+
<input class="inputs_email" type="email" name="mail" placeholder="sample@gmail.com">
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div class="item">
|
|
37
|
+
<div class="sex">
|
|
38
|
+
<label class="label_c">性別</label>
|
|
39
|
+
<input type="radio" name="radio" class="radio-input" id="male">
|
|
40
|
+
<label for="male">男性</label>
|
|
41
|
+
<input type="radio" name="radio" class="radio-input" id="female">
|
|
42
|
+
<label for="female">女性</label>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<div class="item">
|
|
47
|
+
<label class="label_c">メッセージ</label>
|
|
48
|
+
<textarea class="comment" name="comment"></textarea>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<div class="checkbox">
|
|
52
|
+
<label>
|
|
53
|
+
<input type="checkbox" name="checkbox[]" class="checkbox-input">
|
|
54
|
+
<span class="checkbox-parts">個人情報保護方針に合意する</span>
|
|
55
|
+
</label>
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
<button type="submit" class="submitbtn">
|
|
59
|
+
送信する
|
|
60
|
+
</button>
|
|
61
|
+
|
|
62
|
+
</form>
|
|
13
63
|
```
|
|
14
64
|
|
|
15
65
|
```CSS
|
|
66
|
+
.label_c {
|
|
67
|
+
text-align: left;
|
|
68
|
+
font-size: 22px;
|
|
69
|
+
line-height: 22.5px;
|
|
70
|
+
font-family: 'Yu Gothic';
|
|
71
|
+
font-weight: medium;
|
|
72
|
+
color: #3E3E3E;
|
|
73
|
+
margin-top: 0px;
|
|
74
|
+
margin-right: 0px;
|
|
75
|
+
margin-bottom: 0px;
|
|
76
|
+
}
|
|
77
|
+
|
|
16
78
|
select {
|
|
17
79
|
border: 1px solid #707070;
|
|
18
80
|
color:#CCCCCC;
|
|
@@ -32,4 +94,189 @@
|
|
|
32
94
|
select option:first-child{
|
|
33
95
|
display: none;
|
|
34
96
|
}
|
|
97
|
+
|
|
98
|
+
.required {
|
|
99
|
+
background-color: #FF4646;
|
|
100
|
+
width: 55px;
|
|
101
|
+
height: 24px;
|
|
102
|
+
border-radius: 5px;
|
|
103
|
+
color: #fff;
|
|
104
|
+
font-size: 16px;
|
|
105
|
+
line-height: 22.5px;
|
|
106
|
+
font-family: 'Yu Gothic';
|
|
107
|
+
font-weight: bold;
|
|
108
|
+
padding: 2px 9px;
|
|
109
|
+
margin-left: 96px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.required2 {
|
|
113
|
+
background-color: #FF4646;
|
|
114
|
+
width: 55px;
|
|
115
|
+
height: 24px;
|
|
116
|
+
border-radius: 5px;
|
|
117
|
+
color: #fff;
|
|
118
|
+
font-size: 16px;
|
|
119
|
+
line-height: 22.5px;
|
|
120
|
+
font-family: 'Yu Gothic';
|
|
121
|
+
font-weight: bold;
|
|
122
|
+
padding: 2px 9px;
|
|
123
|
+
margin-left: 52px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.inputs {
|
|
127
|
+
width: 505px;
|
|
128
|
+
height: 22px;
|
|
129
|
+
float:right;
|
|
130
|
+
border: none;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.inputs_email {
|
|
134
|
+
width: 505px;
|
|
135
|
+
height: 22px;
|
|
136
|
+
float:right;
|
|
137
|
+
border: none;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
input[type="text"],input[type="type"] {
|
|
141
|
+
border-bottom: 1px solid #3E3E3E;
|
|
142
|
+
opacity: 0.5;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
input[type="email"] {
|
|
146
|
+
border-bottom: 1px solid #3E3E3E;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* --- ラジオボタン --- */
|
|
150
|
+
|
|
151
|
+
input[type="radio"] {
|
|
152
|
+
display: none;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.radio-input {
|
|
156
|
+
margin-right: 60px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.sex > .label_c {
|
|
160
|
+
margin-right: 240px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.radio-input + label{
|
|
164
|
+
font-size: 22px;
|
|
165
|
+
line-height: 22.5px;
|
|
166
|
+
font-family: 'Yu Gothic';
|
|
167
|
+
font-weight: medium;
|
|
168
|
+
color: #3E3E3E;
|
|
169
|
+
padding-left: 20px;
|
|
170
|
+
position:relative;
|
|
171
|
+
margin-right: 70px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* 外枠 */
|
|
175
|
+
.radio-input + label::before{
|
|
176
|
+
content: "";
|
|
177
|
+
display: block;
|
|
178
|
+
position: absolute;
|
|
179
|
+
top: 7px;
|
|
180
|
+
left: -11px;
|
|
181
|
+
width: 12px;
|
|
182
|
+
height: 12px;
|
|
183
|
+
border: 1px solid #999;
|
|
184
|
+
border-radius: 50%;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* 内枠 */
|
|
188
|
+
.radio-input:checked + label::after{
|
|
189
|
+
content: "";
|
|
190
|
+
display: block;
|
|
191
|
+
position: absolute;
|
|
192
|
+
top: 11px;
|
|
193
|
+
left: -7px;
|
|
194
|
+
width: 6px;
|
|
195
|
+
height: 6px;
|
|
196
|
+
background: #3B69FF;
|
|
197
|
+
border-radius: 50%;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.comment {
|
|
201
|
+
width: 780px;
|
|
202
|
+
height: 213px;
|
|
203
|
+
border: 1px solid #707070;
|
|
204
|
+
margin-top: 10px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* --- チェックボックス --- */
|
|
208
|
+
|
|
209
|
+
.checkbox {
|
|
210
|
+
margin-bottom: 30px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.checkbox-input{
|
|
214
|
+
display: none;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.checkbox-parts{
|
|
218
|
+
padding-left: 42px;
|
|
219
|
+
position:relative;
|
|
220
|
+
margin-right: 20px;
|
|
221
|
+
color: #3E3E3E;
|
|
222
|
+
font-size: 18px;
|
|
223
|
+
line-height: 22.5px;
|
|
224
|
+
font-family: 'Yu Gothic';
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.checkbox-parts::before{
|
|
228
|
+
content: "";
|
|
229
|
+
display: block;
|
|
230
|
+
position: absolute;
|
|
231
|
+
top: 1.5px;
|
|
232
|
+
left: 0;
|
|
233
|
+
width: 18px;
|
|
234
|
+
height: 18px;
|
|
235
|
+
border: 1px solid #707070;
|
|
236
|
+
border-radius: 4px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.checkbox-input:checked + .checkbox-parts::after{
|
|
240
|
+
content: "";
|
|
241
|
+
display: block;
|
|
242
|
+
position: absolute;
|
|
243
|
+
top: 0px;
|
|
244
|
+
left: 5px;
|
|
245
|
+
width: 7px;
|
|
246
|
+
height: 14px;
|
|
247
|
+
transform: rotate(40deg);
|
|
248
|
+
border-bottom: 3px solid #3B69FF;
|
|
249
|
+
border-right: 3px solid #3B69FF;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/* --- チェックボックスここまで --- */
|
|
253
|
+
|
|
254
|
+
.submitbtn {
|
|
255
|
+
background-color: #FFAA3B;
|
|
256
|
+
width: 174px;
|
|
257
|
+
height: 50px;
|
|
258
|
+
border-radius: 10px;
|
|
259
|
+
box-shadow: 0px 3px 5px #00000033;
|
|
260
|
+
color: #fff;
|
|
261
|
+
font-size: 18px;
|
|
262
|
+
line-height: 26px;
|
|
263
|
+
letter-spacing: 0.45px;
|
|
264
|
+
font-family: 'Yu Gothic';
|
|
265
|
+
font-weight: bold;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
::placeholder{
|
|
269
|
+
color:#3E3E3E;
|
|
270
|
+
font-size: 22px;
|
|
271
|
+
line-height: 22.5px;
|
|
272
|
+
font-family: 'Yu Gothic';
|
|
273
|
+
padding-left: 16px;
|
|
274
|
+
padding-bottom: 0;
|
|
275
|
+
opacity: 0.5;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.inputs_email::placeholder {
|
|
279
|
+
color: #3E3E3E;
|
|
280
|
+
opacity: 1;
|
|
281
|
+
}
|
|
35
282
|
```
|