@charset "utf-8";

@media (max-width: 700px) {



.head_navi_ul {
    display: none;
    list-style: none;
}
#hamburger_box {
	display: inherit;
    padding-top: 16px;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 16px;
    background-color: #61c000;
	z-index: 1001;
}

/* ハンバーガーアイコン */
#hamburger {
    display: flex;
    flex-direction: column;
    gap: 12.5px;
    width: 40px;
    height: 32px;
    cursor: pointer;
}
#hamburger span {
	display: block;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: all 0.3s ease;
}

/* ハンバーガー開閉時のアニメーション */
#hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}
#hamburger.active span:nth-child(2) {
  opacity: 0;
}
#hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(10px, -11px);
}



/* SPメニュー全体 */
#sp_menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f9f7f4;
    z-index: 999;
    padding-top: 96px;
    padding-bottom: 120px;
    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: 32px;
    padding-right: 32px;
    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;
}

}
