/* 仲島医院 */
@charset "UTF-8";
/***** ハンバーガー・メニュー用CSS *****/
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

::before , ::after {
	box-sizing: inherit;
}

button {
  appearance: none;
  vertical-align: middle;
  border: 0;
  background: transparent;
  outline: 0;
  border-radius: 0;
  text-align: inherit;
}

button:hover {
  cursor: pointer;
}

/***** ハンバーガーボタンのスタイリング *****/
.btn {
  /* ボタンの配置位置（右端）  */
	position: absolute;
	top: 1rem;
	right: 1rem;
  /* ボタンの大きさ  */
  width: 3rem;
  height: 3rem;
	color: black;				/* menuの色 */
  /* バーガーの線を中心に配置 */
  display: flex;
  justify-content: center;
  align-items: center;
  /* 最前面に */
  z-index: 5;
}

/***** 真ん中のバーガー線 *****/
.btn-line {
  /* 線の長さと高さ */
  width: 100%;
  height: 0.5rem;
  background-color: black;		  /* バーガー線の色 */
  /* バーガー線の位置基準として設定 */
  position: relative;
  transition: .2s;
}

/***** 上下のバーガー線 *****/
.btn-line::before,
.btn-line::after {
  /* 基準線と同じ大きさと色 */
  position: absolute;
  transition: .5s;
}

.btn-line::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: black;	  /* バーガー線の色 */
  transform: translateY(-1.2rem);  /* 上の線の位置 */
}

.btn-line::after {
  content: "menu";
  display: block;
  width: 100%;
  text-align: center;
	transform: translateY(0.8rem);  /* 下の線の位置 */
}

/* メニューオープン時 */
.btn-line.open {
  transition: .5s;
}

.btn-line.open::before {
  content: "";
  transform: translateY(0);
}

.btn-line.open::after {
  content: "close";
}
/* ここまでボタンアニメーション */

/***** メニューのスタイリング *****/
.menu {
	/* メニューの位置マイナス指定で画面外に */
	position: fixed;
		top: 5rem;
		right: -100%;
	width: 14rem;
	height: auto;
  /* メニューを縦に */
  display: flex;
  flex-direction: column;
  color: black;
	font-weight: bold;
  background-color: aqua;
  transition: .3s;
	z-index: 4;
}

.menu-list {
  width: 100%;
  height: 100%;
	padding: 1rem 0;
  /* メニューテキスト位置をリスト内中心に */
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-list:hover {
  background-color: lightcyan;
  transition: .3s;
}

.menu-list a {
  font-weight: bold;
  color: blue;
}

.menu-list a:hover {
  color: red;
  transition: .3s;
  cursor: pointer;
}

/* メニューオープン時位置0にして画面内に */
.menu.open {
  position: absolute;
  right: 0;
}
