@charset "utf-8";
@import url("color.css");

  
@media screen and (max-width: 767px) {

.header {
  }
  .header__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 1rem;
  }
  .logo {
	font-size: 1.25em;
	font-weight: bold;
  }
  
  /* ハンバーガーボタンのデザイン */
  .drawer__button {
	position: relative;
	width: 3rem;
	height: 3rem;
	background-color: transparent;
	border: none;
	cursor: pointer;
	z-index: 999; /* メニューを開いている時もクリックできるよう設定 */
  }
  /* ハンバーガーボタン内の線 */
  .drawer__button > span {
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 2rem;
	height: 2px;
	background-color: white;
	transform: translateX(-50%);
  }
  .drawer__button > span.js-header.headerMenuColorScroll {
	background-color: black;
	  
  }
  .drawer__button > span:first-child {
	transform: translate(-50%, calc(-50% - 0.5rem));
	transition: transform 0.3s ease;
  }
  .drawer__button > span:nth-child(2) {
	transform: translate(-50%, -50%);
	transition: opacity 0.3s ease;
  }
  .drawer__button > span:last-child {
	transform: translate(-50%, calc(-50% + 0.5rem));
	transition: transform 0.3s ease;
  }
  /* 展開時のデザイン */
  .drawer__button.active > span:first-child {
	transform: translate(-50%, -50%) rotate(-45deg);
  }
  .drawer__button.active > span:nth-child(2) {
	opacity: 0;
  }
  .drawer__button.active > span:last-child {
	transform: translate(-50%, -50%) rotate(45deg);
  }
  /* メニューのデザイン */
  .drawer__nav {
	position: fixed; /* 追従ヘッダーなどでも表示できるよう設定しておく */
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.5);
	transition: opacity 0.3s ease;
	opacity: 0;
	visibility: hidden;
  }
  .drawer__nav.active {
	opacity: 1;
	visibility: visible;
  }
  .drawer__nav__inner {
	position: relative;
	width: 80%;
	height: 100%;
	background-color: white;
	padding: 4rem 1.5rem 1rem;
	margin: 0 0 0 auto;
	overflow: scroll;
	transform: translateX(100%);
	transition: transform 0.3s ease;
  }
  .drawer__nav.active .drawer__nav__inner {
	transform: translateX(0);
  }
  .drawer__nav__menu {
	list-style: none;
	padding-left: 0;
	flex-direction: column;
	gap: 0;
  }
  
	ul.drawer__nav__menu li ~ li {
		padding-left: 0px;
	}

  .drawer__nav__link {
	display: block;
	color: black !important;
	text-decoration: none;
	padding: 1rem 1rem;
	border-bottom: solid 1px lightgray;
  }
  
  /* ハンバーガーメニュー展開時、背景を固定 */
  body.active {
	height: 100%;
	overflow: hidden;
  }
}