.header {
  position: fixed;
  box-sizing: border-box;
  left: 1rem;
  right: 1rem;
  z-index: 1000;
  transition: backgraund-color 0.3s ease;
  padding: 12px;
  /* margin-right: 60px; */
}
.header.scrolled {
  background-color: #ffffffee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}
.header i {
  color: #219ebc;
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 60px;
  font-size: 1.2rem;
}

.header-nav {
  margin-right: 60px;
}

.header-nav-list {
  display: inline-block;
}

.header-nav-item {
  float: left;
  vertical-align: bottom;
  padding-left: 1.2rem;
  font-size: 1rem;
  color: #333;
  font-weight: 600;
  list-style: none;
  z-index: 1000;
}

.square {
  padding-top: 1.5rem;
}

.header-nav-item a {
  text-decoration: none;
}

.header-ham {
  display: none;
}

.menu2 {
  width: 20px;
  height: 3px;
  margin: 4px 0;
  margin-right: 0;
  background-color: #333;
}

.select {
  color: #219ebc;
}

a .header-nav-item:hover {
  color: #219ebc;
}

.logo img {
  height: 60px;
}

.header2 {
  position: relative;
  padding: 20px;
}

.hamburger {
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger__line {
  position: absolute;
  left: 11px;
  width: 26px;
  height: 2px;
  background-color: #333;
  transition: all 0.4s;
}

.hamburger__line:nth-of-type(1) {
  top: 14px;
}
.hamburger__line:nth-of-type(2) {
  top: 23px;
}
.hamburger__line:nth-of-type(3) {
  top: 32px;
}

/* メニューオープン時 */
.hamburger.active .hamburger__line:nth-of-type(1) {
  transform: translateY(9px) rotate(-45deg);
}
.hamburger.active .hamburger__line:nth-of-type(2) {
  opacity: 0;
}
.hamburger.active .hamburger__line:nth-of-type(3) {
  transform: translateY(-9px) rotate(45deg);
}

.nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 230px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.4s;
  z-index: 90;
}

.nav.active {
  transform: translateX(0);
}

.nav__list {
  margin: 0;
  padding: 100px 0 0;
  list-style: none;
}

.nav__item {
  padding: 0 20px;
}

.nav__link {
  display: block;
  padding: 15px 0;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}
