@charset "UTF-8";
html {
-webkit-text-size-adjust: 100%;
}


body {
display: block;
margin: 0;
font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
}


/* --------------------------------------------- */


header {
position: fixed;
height: 100px;
top: 0;
left: 0;
right: 0;
z-index: 2;
}


/* --------------------------------------------- */


.header {
max-width: 1920px;
width: 100vw;
margin-left: auto;
margin-right: auto;
}/*OK*/


.header-group{
width: 100%;
height: 100px;
display: flex;
margin-left: auto;
margin-right: auto;
justify-content: space-between;
max-width: 100%;
width: 100vw;
}/*OK*/


/* --------------------------------------------- */


.header-l {
width: 100px;
display: flex;
align-items: center;
margin-top: 10px;
margin-right: auto;
height: auto;
	
	@media screen and (min-width: 1120px)/*ウィンドウ幅が1120px以上の場合に適用*/
{
	margin-left: 10px;
	.home-mih img{display: block !important;}
	.home-mih_sp img{display: none !important;}
}	
	@media screen and (max-width: 1119px)/*ウィンドウ幅が（SP）最大1119pxまでの場合に適用*/
{
	width: 100px;
	height: auto;
	margin-left: 15px;
	.home-mih img{display: none !important;}
	.home-mih_sp img{display: block !important;}
}	
	@media screen and (max-width: 768px)/*ウィンドウ幅が（SP）最大768pxまでの場合に適用*/
{
	width: 100px;
	height: auto;
	margin-left: 5px;
	.home-mih img{display: none !important;}
	.home-mih_sp img{display: block !important;}
}
}/*OK*/	


/* --------------------------------------------- */


.header-r {
width: 850px;
display: flex;
align-items: center;
margin-left: auto;
margin-right: 0px;
height: auto;
	
	@media screen and (min-width: 990px)/*ウィンドウ幅が990px以上の場合に適用*/
{
	.space_img {display: block !important; }
	.mission_img {display: block !important; }
	.business_img {display: block !important; }
	.news_img {display: block !important; }
	.company_img {display: block !important; }
	.contact_img {display: block !important; }
	.menu-wrapper {display: none !important; }
}
	@media screen and (max-width: 989px)/*ウィンドウ幅が最大989pxまでの場合に適用*/
{
	.space_img {display: none !important; }
	.mission_img {display: none !important; }
	.business_img {display: none !important; }
	.news_img {display: none !important; }
	.company_img {display: none !important; }
	.contact_img {display: none !important; }
	.menu-wrapper {display: block !important; }
}
}/*OK*/


/* --------------------------------------------- */
/* --------------------------------------------- */


.menu-wrapper {
  position: relative;
}

.menu-icon {
  width: 70px;
  height: 45px;
  position: fixed; /* ← fixedにして常に固定 */
  top: 35px;
  cursor: pointer;
  z-index: 3;
  display: inline-block;
	@media screen and (max-width: 989px)/*ウィンドウ幅が最大989pxまでの場合に適用*/
{	right: 30px; /* ← 右位置 */
}	
	@media screen and (max-width: 768px)/*ウィンドウ幅が（SP）最大768pxまでの場合に適用*/
{	right: 10px; /* ← 右位置 */

}	

}

.menu-icon span {
  display: block;
  height: 4px;
  margin: 6px 0;
  background: #333;
  border-radius: 2px;
  transition: 0.4s;
}

/* ハンバーガーがXに変形 */
#menu-toggle:checked + .menu-icon span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
#menu-toggle:checked + .menu-icon span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* オーバーレイ背景 */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  z-index: 1;
}

#menu-toggle:checked ~ .overlay {
  opacity: 1;
  pointer-events: auto;
}

/* メニュー本体（右から出す） */
.menu {
  position: fixed;
  top: 0;
  right: -250px; /* ← 初期位置を右へ */
  width: 250px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  transition: left 0.4s ease-in;
  z-index: 2;
}

#menu-toggle:checked ~ .menu {
  right: 0; /* ← 開いたときは右0へ */
}

.menu ul {
  list-style: none;
  padding: 100px 50px;
}

.menu li {
  margin: 30px 0;
}

.menu a {
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.menu a:hover {
  color: #CBCBCB;
}


/* --------------------------------------------- */
/* --------------------------------------------- */
