|
1 | | -.navigation { |
2 | | - position: relative; |
3 | | - padding: 10px 0; |
4 | | - background: #fff; |
5 | | - border-bottom: 1px solid #eee; |
6 | | -} |
7 | | - |
8 | 1 | .container.wrap { |
9 | 2 | display: flex; |
10 | 3 | align-items: center; |
11 | 4 | justify-content: space-between; |
12 | 5 | max-width: 1140px; |
13 | | - padding: 0 15px; |
| 6 | + padding: 0 30px; |
14 | 7 | margin: 0 auto; |
| 8 | + background: #fff; |
| 9 | + border-bottom: 1px solid #eee; |
| 10 | + position: relative; |
| 11 | +} |
| 12 | + |
| 13 | +.logo { |
| 14 | + padding-right: 15px; |
15 | 15 | } |
16 | 16 |
|
17 | 17 | .logo img { |
|
22 | 22 | .main-menu { |
23 | 23 | display: flex; |
24 | 24 | align-items: center; |
25 | | - justify-content: space-between; |
| 25 | + justify-content: center; |
26 | 26 | flex: 1; |
27 | 27 | margin-left: 30px; |
28 | 28 | } |
|
32 | 32 | list-style: none; |
33 | 33 | margin: 0; |
34 | 34 | padding: 0; |
| 35 | + justify-content: center; |
| 36 | + gap: 30px; |
35 | 37 | } |
36 | 38 |
|
37 | 39 | /* ハンバーガーメニュー */ |
|
97 | 99 |
|
98 | 100 | .menu-item-has-children { |
99 | 101 | position: static; |
100 | | - padding: 0 15px; |
| 102 | + padding: 0; |
101 | 103 | } |
102 | 104 |
|
103 | 105 | .menu-item-has-children > a { |
104 | 106 | color: #333; |
105 | 107 | text-decoration: none; |
106 | | - font-weight: 500; |
| 108 | + font-weight: 700; |
107 | 109 | padding: 15px 0; |
108 | 110 | display: block; |
109 | 111 | position: relative; |
|
113 | 115 | .menu-item-has-children > a::after { |
114 | 116 | content: ''; |
115 | 117 | position: absolute; |
116 | | - bottom: 0; |
| 118 | + bottom: -1px; |
117 | 119 | left: 0; |
118 | 120 | width: 100%; |
119 | 121 | height: 2px; |
|
124 | 126 | /* デスクトップのみホバーエフェクト */ |
125 | 127 | @media (min-width: 993px) { |
126 | 128 | .menu-item-has-children:hover > a::after { |
127 | | - background: #0066cc; |
| 129 | + background: #0aa8a7 !important; |
128 | 130 | } |
129 | 131 |
|
130 | 132 | .menu-item-has-children:hover .sub-menu { |
|
135 | 137 | .sub-menu { |
136 | 138 | display: none; |
137 | 139 | position: fixed; |
138 | | - top: 62px; |
| 140 | + top: 47px; |
139 | 141 | left: 0; |
140 | 142 | right: 0; |
141 | 143 | background: #fff; |
|
147 | 149 | .sub-menu::before { |
148 | 150 | content: ''; |
149 | 151 | position: absolute; |
150 | | - top: -10px; |
| 152 | + top: -1px; |
151 | 153 | left: 0; |
152 | 154 | right: 0; |
153 | | - height: 10px; |
| 155 | + height: 1px; |
154 | 156 | background: transparent; |
155 | 157 | } |
156 | 158 |
|
|
290 | 292 | flex-wrap: nowrap; |
291 | 293 | } |
292 | 294 |
|
293 | | - .main-menu { |
294 | | - position: static; |
295 | | - margin-left: 0; |
296 | | - } |
297 | | - |
298 | 295 | .main-menu__wrapper { |
| 296 | + justify-content: flex-start; |
| 297 | + gap: 0; |
299 | 298 | display: none; |
300 | 299 | position: absolute; |
301 | 300 | top: 100%; |
302 | 301 | left: 0; |
303 | 302 | right: 0; |
304 | 303 | background: #fff; |
305 | | - padding: 20px; |
| 304 | + padding: 20px 30px; |
306 | 305 | box-shadow: 0 2px 8px rgba(0,0,0,0.1); |
307 | 306 | z-index: 1000; |
| 307 | + flex-direction: column; |
| 308 | + width: 100%; |
308 | 309 | } |
309 | 310 |
|
310 | 311 | .main-menu__wrapper.is-active { |
311 | 312 | display: block; |
312 | 313 | } |
313 | 314 |
|
314 | | - .main-menu__wrapper { |
315 | | - flex-direction: column; |
316 | | - width: 100%; |
317 | | - } |
318 | | - |
319 | 315 | .menu-item-has-children { |
320 | 316 | padding: 0; |
| 317 | + list-style-type: none; |
321 | 318 | } |
322 | 319 |
|
323 | 320 | .menu-item-has-children > a { |
324 | | - padding: 12px 0; |
| 321 | + padding: 12px; |
325 | 322 | border-bottom: 1px solid #eee; |
| 323 | + position: relative; |
| 324 | + } |
| 325 | + |
| 326 | + .menu-item-has-children:first-child > a { |
| 327 | + border-top: none; |
| 328 | + } |
| 329 | + |
| 330 | + .menu-item-has-children:last-child > a { |
| 331 | + border-bottom: none; |
326 | 332 | } |
327 | 333 |
|
328 | 334 | /* モバイル時のサブメニュー表示制御 */ |
329 | 335 | .menu-item-has-children > a::after { |
330 | 336 | content: '+'; |
331 | 337 | position: absolute; |
332 | | - right: 0; |
| 338 | + right: 12px; |
333 | 339 | top: 50%; |
334 | 340 | transform: translateY(-50%); |
335 | 341 | background: none; |
|
345 | 351 | .sub-menu { |
346 | 352 | position: static; |
347 | 353 | box-shadow: none; |
348 | | - padding: 0; |
| 354 | + padding: 0 0 0 15px; |
349 | 355 | margin: 10px 0; |
350 | 356 | display: none; |
351 | 357 | } |
|
357 | 363 | .col-container { |
358 | 364 | grid-template-columns: 1fr; |
359 | 365 | gap: 20px; |
360 | | - padding: 15px; |
| 366 | + padding: 15px 30px; |
| 367 | + } |
| 368 | + |
| 369 | + .menu { |
| 370 | + list-style-type: none; |
| 371 | + margin: 0; |
| 372 | + padding: 0; |
| 373 | + } |
| 374 | + |
| 375 | + .menu-item { |
| 376 | + list-style-type: none; |
361 | 377 | } |
362 | 378 |
|
363 | 379 | .hamburger { |
|
0 commit comments