@charset "utf-8";

@media (max-width: 976px) {
#header_inner {
    padding-bottom: 15px;
	align-items: center;
}
#head_logo {
	margin-bottom: 1px;
}
#head_right {
    width: 100%;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    margin-right: 32px;
    z-index: 1001;
}
.head_navi_ul {
    display: none;
    list-style: none;
    gap: 8px;
}
/* ハンバーガーアイコン */
#hamburger {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 56px;
    height: 27px;
    cursor: pointer;
    z-index: 1001;
}
#hamburger span {
    display: block;
  height: 1.5px; /* 細くする */
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

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



/* SPメニュー全体 */
#sp_menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f9f7f4;
    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;
}

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

/* アコーディオンアイコン（+ と -） */
.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) {
	
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
}
header.scrolled {
    background: #fff;
    box-shadow: 0 4px 6px hsla(0,27%,69%,0.33); /* 下方向だけにシャドウ */
    -webkit-box-shadow: 0 4px 6px hsla(0,27%,69%,0.33);
}
header.has-child-open {
  background: #fff;
}
#header_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 16px;
}
#head_logo {
    width: 248px;
    min-width: 248px;
    z-index: 1002;
    margin-bottom: 0px;
}

#head_right {
    width: 100%;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    margin-right: 32px;
    z-index: 1001;
}

.head_navi_ul {
    display: none;
    list-style: none;
    gap: 8px;
}
.head_navi_item {
    font-size: 15px;
    font-weight: 700;
    padding: 0;
    margin: 0;
}
.head_navi_item a {
    padding-top: 12px;
    padding-right: 8px;
    padding-left: 8px;
    padding-bottom: 12px;
    display: block;
}

.has-child {
  position: relative;
}

.child-menu {
    position: fixed;
    top: 96px;
    left: 0;
    width: 100vw;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    padding-top: 32px;
    padding-right: 40px;
    padding-left: 40px;
    padding-bottom: 32px;
    box-shadow: 0 6px 8px hsla(255,42%,77%,0.08); /* 下方向だけにシャドウ */
    -webkit-box-shadow: 0 6px 8px hsla(255,42%,77%,0.08);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

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

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

.child-menu-list {
    display: flex;
    padding: 20px;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
    gap: 32px;
}
.child-menu-list.space-around {
    justify-content: space-around;
    display: flex;
    gap: 0px;
}

.child-menu-item {
    border-bottom: 1px solid #E2690E;
    font-size: 16px;

}


.child-menu-item a {
    text-decoration: none;
    background-image: url(../images/arrow_circle_org.svg);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 22px auto;
    padding-right: 40px;
    padding-bottom: 16px;
}


#head_navi_contact {
    z-index: 1001;
	display: none;
}
#head_navi_contact a {
    background-color: #E1690D;
    padding-left: 16px;
    border-radius: 24px;
    padding-right: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    display: block;
    color: #FFFFFF;
}
#head_cdg-logo {
    width: 88px;
    display: none;
}


/* ハンバーガーアイコン */
#hamburger {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 48px;
    height: 27px;
    cursor: pointer;
    z-index: 1001;
    margin-bottom: 0px;
}
#hamburger span {
    width: 30px;
    height: 1.5px;
    background: #333;
    display: block;
    transition: 0.3s;
}
/* ハンバーガー開閉時のアニメーション */
#hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 5px);
}
#hamburger.active span:nth-child(2) {
  opacity: 0;
}
#hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(11px, -8px);
}

/* SPメニュー全体 */
#sp_menu {
    padding-top: 104px;
    padding-bottom: 80px;
    padding-left: 24px;
    padding-right: 24px;
    background-image: url(../images/logo_mark_wht.svg);
    background-repeat: no-repeat;
    background-position: right -100% center;
    background-size: 80% auto;
}
#sp_navi_head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}
#sp_navi_contact {
    width: 100%;
}



#sp_navi_contact a {
    background-color: #E1690D;
    padding-left: 16px;
    border-radius: 32px;
    padding-right: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
    display: block;
    color: #FFFFFF;
    text-align: center;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
#sp_navi_cdg-logo {
    width: 28.46%;
    display: inherit;
    text-align: center;
}



}
