@media (max-width: 840px) {

header {
	padding-bottom: 8px;
}
#header_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
}
#head_logo {
    width: 208px;
    min-width: 208px;
    z-index: 1001;
}

#head_logo a {
}
#head_logo a img {
    display: block;
}
#head_right {
	z-index: 1001;
	gap: 0px;
}

.head_navi_ul {
    display: none;
}
.head_navi_item {
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    margin: 0;
}
.head_navi_item a {
    padding-top: 22px;
    padding-right: 8px;
    padding-left: 8px;
    padding-bottom: 22px;
    display: block;
    height: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.has-child {
  position: relative;
}

.child-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100vw;
    background-color: #F9F9FC;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    padding-top: 24px;
    padding-right: 32px;
    padding-left: 32px;
    padding-bottom: 24px;
    box-shadow: 0 4px 6px hsla(0,27%,69%,0.33); /* 下方向だけにシャドウ */
    -webkit-box-shadow: 0 4px 6px hsla(0,27%,69%,0.33);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-repeat: no-repeat;
}

.has-child:hover .child-menu {
    opacity: 1;
    visibility: visible;
}

.child-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.child-menu-list {
    display: flex;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
    gap: 32px;
    justify-content: center;
}
.child-menu-list.space-around {
    /* [disabled]justify-content: space-around; */
    display: flex;
    gap: 0px;
}

.child-menu-item {
    border-bottom: 1px none #E2690E;
    font-size: 15px;
    border-radius: 8px;
    font-weight: 600;

}


.child-menu-item a {
    text-decoration: none;
    padding-top: 16px;
    padding-bottom: 16px;
    background-image: url(../images/common/brackets_l.svg),url(../images/common/brackets_r.svg);
    background-repeat: no-repeat;
    background-position: left top,right bottom;
    background-size: 24px auto;
    padding-left: 24px;
    padding-right: 24px;
    min-width: 304px;
    text-align: center;
    margin-left: 16px;
    margin-right: 16px;
    background-color: #FFFFFF;
}
.child-menu-item a span {
    color: #17489d;
}

.child-menu-item a:hover {
	opacity: 1;
    visibility: visible;
        background-color: #EFEFF7;
}

#head_navi_contact {

}
#head_navi_contact a {
    background-image: none;
    border-bottom-left-radius: 8px;
    width: 160px;
    text-align: center;
    background-color: #d86547;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1em;
}

#head_navi_contact a:hover {

	
}
#head_navi_contact a img {
    width: 18px;
    margin-right: 4px;
}


/* ハンバーガーアイコン */

#hamburger_box {
    background-color: #17489d;
    padding: 10px;
    display: flex;
	justify-content: center;
	align-items: center;
    text-align: center;
}

#hamburger {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 40px;
    height: 24px;
    cursor: pointer;
    z-index: 1002;
}
#hamburger span {
    display: block;
  height: 1.5px; /* 細くする */
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}


/* ハンバーガー開閉時のアニメーション */
#hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}
#hamburger.active span:nth-child(2) {
  opacity: 0;
}
#hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}


/* SPメニュー全体 */
#sp_menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #F3F3F3;
    z-index: 1000;
    padding-top: 96px;
    padding-bottom: 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding-left: 48px;
    padding-right: 48px;
    overflow-y: scroll;  /* 常に縦スクロールバーを表示 */
    background-image: url(../images/logo_mark_wht.svg);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 50% auto;
}

/* メニューが開いた時 */
#sp_menu.active {
  opacity: 1;
  visibility: visible;
}

.sp_menu_logo {
  width: 264px;
  margin-bottom: 30px;
}

/* メニューリスト */
.sp_menu_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* メニューアイテム */
.sp_item {
}

/* メニューアイテム */
.sp_item > a {
    display: flex;
    justify-content: space-between; /* アイテムとアイコンの間にスペースを確保 */
    align-items: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding-top: 20px;
    padding-bottom: 20px;
    transition: background-color 0.3s ease;
    width: 100%;  /* 親要素いっぱいに広がらないように */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-bottom: 0.04em solid #C4C4C4;
    background-image: url(../images/common/link_arrow_blk.svg);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 16px auto;
}

.sp_item > a:hover {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-bottom: 0.07em solid #17489d;
    color: #17489d;
}

/* アコーディオンアイコン（+ と -） */
.sp_item > a .accordion-toggle {
  font-size: 20px;
  color: #de2526;
  display: inline-block;
  position: relative;
  width: 20px;  /* アイコンの幅 */
  height: 20px;  /* アイコンの高さ */
  margin-left: 10px; /* アイコンとテキストの間にスペース */
  transition: transform 0.3s ease;
}

/* 直線の縦線（+） */
.sp_item > a .accordion-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 9px;  /* 横にセンタリング */
  width: 2px;  /* 縦線の太さ */
  height: 100%;
  background-color: #de2526;
  transition: transform 0.3s ease;  /* 回転時のトランジション */
}

/* 直線の横線（+） */
.sp_item > a .accordion-toggle::after {
  content: "";
  position: absolute;
  top: 9px;  /* 横にセンタリング */
  left: 0;
  width: 100%;
  height: 2px;  /* 横線の太さ */
  background-color: #de2526;
}

/* 開いた状態で「-」にする（縦線を回転） */
.sp_item > a .accordion-toggle.open::before {
  transform: rotate(90deg);  /* 縦線を45度回転 */
}

/* 閉じた状態で「+」に戻る（回転なし） */
.sp_item > a .accordion-toggle:not(.open)::before {
  transform: rotate(0);  /* 縦線は回転しない */
}

/* 子メニュー */
.sp_submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.sp_submenu.open {
  max-height: 500px;
}

.sp_submenu li {
  padding: 5px 0;
}

.sp_submenu li a {
    font-size: 16px;
    text-decoration: none;
    color: #534C53;
    padding: 8px 10px;
    transition: background-color 0.3s ease;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    font-weight: 500;
}


#sp_navi_contact a {
    background-color: #de2526;
    padding-left: 16px;
    border-radius: 24px;
    padding-right: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    display: none;
    color: #FFFFFF;
}
#sp_navi_cdg-logo {
    width: 88px;
	display: none;
}


}
@media (max-width: 700px) {
#head_logo {
    width: 200px;
    min-width: 200px;
    z-index: 1001;
    padding-top: 8px;
}
#head_navi_contact {
	display: none;
}
#hamburger_box {
    background-color: #17489d;
    padding-top: 12px;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom-left-radius: 6px;
}
/* SPメニュー全体 */
#sp_menu {
    padding-left: 32px;
    padding-right: 32px;
}
#sp_navi_head {
    margin-bottom: 16px;
		
}
#sp_navi_contact {
}
#sp_navi_contact a {
    background-image: none;
    border-radius: 6px;
    width: 100%;
    text-align: center;
    background-color: #d86547;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 500;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1em;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
#sp_navi_contact a img {
    width: 20px;
    margin-right: 6px;
}


}
