@charset "utf-8"; @use "common" as *; /* style.css */ *{ padding: 0; margin: 0; box-sizing: border-box; } a { text-decoration: none; } ul,li { list-style: none; } /* ヘッダー */ .header { background-color: white; width: 100%; height: 80px; position: fixed; top: 0; left: 0; right: 0; z-index: 100; &__inner { max-width: 1200px; width: 100%; padding: 0 20px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: inherit; position: relative; } &__title { width: 80px; a{ color: #333; text-align: center; } } } .header__title img { display: block; width: 100%; height: 100%; } .header__nav { position: static; transform: initial; background-color: inherit; height: inherit; display: flex; width: 50%; @include mq_tb{ position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background-color:rgba(255,255,255,.8); transition: ease .4s; &.active{ right: 0; } } } .nav__items { width: 100%; display: flex; align-items: center; height: initial; justify-content: space-between; padding-top: inherit; padding-bottom: inherit; position: inherit; top: 0; left: 0; transform: translate(0, 0); @include mq_tb{ flex-direction: column; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 0; } } .nav-items__item a { color: black; margin-bottom: 0; @include mq_tb{ width: 100%; display: block; text-align: center; font-size: 20px; margin-bottom: 24px; } &:last-child a { margin-bottom: 0; } } .header__hamburger { display: none; @include mq_tb{ display: block; width: 48px; height: auto; background-color: transparent; border-color: transparent; z-index: 100; span{ width: 100%; height: 1px; background-color: #000; position: relative; transition: ease .4s; display: block; &:nth-child(1){ top: 0; } &:nth-child(2){ margin: 15px 0; } &:nth-child(3){ top: 0; } } } } .header__nav.active { transform: translateX(0); } .hamburger.active{ span{ &:nth-child(1){ top: 16px; transform: rotate(45deg); } &:nth-child(2) { opacity: 0; } &:nth-child(3) { top: -16px; transform: rotate(-45deg); } } } .null{ width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; background: #999; &:nth-child(even){ background: #666; } h2{ font-size: 2rem; color: #eee; } } footer{ .footer { max-width: 1200px; width: 100%; height: auto; margin: 0 auto; display: flex; justify-content: space-around; align-items: center; } }