/*
 Theme Name: SEEED TCD105 CHILD
 Template: seeed_tcd105
*/

/* ヘッダー　ロゴエリア */
.header-typea #header_message{
	margin-bottom:0px;
	min-height:100%;
}
.header-typea #header_logo {
	position:revert;
	display:flex;
	justify-content:center;
}
@media screen and (min-width: 1201px){
.header-typea .typea_head_box{
	width:90%;
	margin:2% auto 0;
}
.header-typea #header_message{
	padding-left:100px;
}
}

/* ヘッダーナビエリア */
.header-typea #header{
	border-radius:0px;
	margin:0 auto;
	left:revert;
}
.header-typea #header_button{
	display:none;
}
/* ナビ高さ調整 */
/*.header-typea #header,.header-typea #global_menu,.header-typea #global_menu > ul > li > a {
	height:60px;
	line-height:60px;
}*/
@media screen and (max-width: 1200px){
	#header{
		display:none!important;
	}
}
/* ヘッダーレイアウト */
.typea_head_box,.head_icon_box{
	display:flex;
}
.head_logo_box{
	width:100%;
}
.head-tel-btn,.head-mail-btn{
	height:100%;
	width:30px;
	display:flex;
	align-items:center;
	justify-content:center;
	aspect-ratio:1 / 1;
	background:var(--main_color);
	z-index:2;
	text-align:center;
}
.head-tel-btn a,.head-mail-btn a{
  text-decoration: none;
  color: #ffffff;
}
@media screen and (min-width: 641px) and (max-width: 1200px) {
  /* ロゴ＋許可番号を縦積みにする本体 */
  .typea_head_box .head_logo_box #header_message {
    display: flex;
    flex-direction: column;   /* 上：ロゴ → 下：許可番号 */
 ? ?align-items: center;
  }
  /* 許可番号テキストの見た目調整 */
  .typea_head_box .head_logo_box #header_message .label {
    margin-top: 4px;          /* ロゴとのすき間 */
    font-size: 12px;          /* 小さめにしたいなら */
    line-height: 1.4;
    text-align: left;         /* center にしてもOK */
  }
}
@media (max-width: 1200px){
  .typea_head_box{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 0px 12px;
    position: fixed;
    z-index: 999;
  }
  .typea_head_box .head_logo_box,
  .typea_head_box #header_message{
    display: flex;
    align-items: center;
  }
  /* 右側（tel/mail） */
  .typea_head_box .head_icon_box{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }
  /* ハンバーガーを置く箱 */
  .typea_head_box .sp_navi_menu{
    display: flex;
    align-items: center;
    margin-left: 6px;  /* tel/mail と少し間を空けたいなら */
  }
  /* ボタンを正方形で揃える */
  .typea_head_box .head-tel-btn a,
  .typea_head_box .head-mail-btn a,
  .typea_head_box #drawer_menu_button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }
  /* Material Symbols */
  .typea_head_box .material-symbols-rounded{
    font-size: 26px;
    line-height: 1;
    display: block;
  }
  /* ★ここが肝：absolute固定を完全に殺す */
  .typea_head_box #drawer_menu_button{
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 1000;
  }
  #drawer_menu_button{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #drawer_menu_button span{
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 50% !important;
  }
  #drawer_menu_button span:nth-child(1){ margin-top: -8px !important; }
  #drawer_menu_button span:nth-child(2){ margin-top: -1px !important; }
  #drawer_menu_button span:nth-child(3){ margin-top: 6px !important; }
}
@media screen and (min-width: 1201px){
.header-typea #header{
	width:90%;
}
.header-typea #global_menu > ul{
	display:flex;
}
.header-typea #global_menu > ul > li{
	flex:1;
	border-right:1px solid #000000;
}
.header-typea #global_menu > ul > li:last-child{
	border:none;
}
.header-typea #global_menu ul ul{
	padding-top:0px;
}
.head-tel-btn,.head-mail-btn{
	width:90px;
}
.head-mail-btn a{
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}
.head-mail-btn a:hover{
	background-color:var(--content_link_color);
}
.sp_navi_menu{
	display:none;
}
}
@media screen and (max-width: 1200px){
.header-typea #header_message{
	background:none!important;
}
.head-tel-btn,.head-mail-btn{
	aspect-ratio:revert;
	background:none;
}
.head-tel-btn a,.head-mail-btn a{
	color: #000;
}
body.show_header_message:not(.hide_header_message):not(.error404):not(.search-no-results) #container{
	margin-top:0px;
	}
}
@media screen and (min-width: 521px){
.material-symbols-rounded{
	font-size:30px;
}
}
@media screen and (max-width: 640px){
.head-tel-btn,.head-mail-btn{
	line-height:80px;
	height:60px;
}
.typea_head_box{
	align-items:center;
	position:fixed;
	z-index:100;
	width:100%;
}
.material-symbols-rounded{
	font-size:24px;
}
}
/* メイン画像 */
@media screen and (min-width: 1201px){
body.show_header_message:not(.hide_header_message):not(.error404):not(.search-no-results) #container{
	margin-top:-230px;
}
}
@media screen and (max-width: 1391px){
    body.home.admin-bar {
        padding-top: 32px;
    }
}
