/*//////////////////////////////////////////

	ヘッダー共通・基本設定

//////////////////////////////////////////*/
:root {
  --main_bleu: #036eb8;
  --main_morebleu: #036eb8;
  --main_green: #3d6e0b;
  --main_orang: #e99411;
  --main_moreorang: #f7790b;
  --main_red: #e6153e;
  --price_red: #e53935;
  --main_light_gray: #f5f5f5;
  --main_gray: #d7dfe8;
  --aside_gray: #858585;
  --just_green: #008000;
  --just_light_green: #e6ffe6;
  --bg_green: #d8f3bd;
  --bg_yellow: #fdfde1;
  --bg_bleu: #edf8ff;
  --border_gray: #ccc;
  --tel_price_font: "Oswald", sans-serif;
}

/* 内部のロゴを中央に */
.header .head-left {
  text-align: center;
}

/* ヘッダー上部（白背景部分） */
.header {
  background-color: #fff;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em 0.5em 0.5em 0;
}
/*

  header-left（左側）

  /////////////////////////////////*/
.header .head-left {
  flex-basis: auto;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  -webkit-align-content: space-between;
  align-content: space-between;
}

/* おかげさまで電気工事直依頼No.1 */
.header .head-left .share_no1 p {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin: unset;
  padding: 0 0 0 0.5em;
  color: #5c5c5c;
}
.header .head-left .share_no1 p span {
  color: #bb940f;
  font-size: 1.5rem;
  -webkit-font-kerning: normal;
  font-kerning: none;
  letter-spacing: 0;
}
/* まちでんロゴ */
.header .head-left a img {
  display: block;
  max-width: 300px;
  text-align: left;
  margin-right: auto;
}
/* レスポンシブ用 PC幅では非表示 */
.header .head-left .share_no2 {
  display: none;
}

/*

レスポンシブ用見積・問い合わせボタン

/////////////////////////////////*/
.head-migi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.head-migi .head-center {
  display: none;
  max-width: 150px;
  margin-right: 62px;
  padding-bottom: 0.5em;
}
.head-migi .head-center a {
  color: var(--main_green);
  font-weight: bold;
}

.head-migi .head-center p {
  margin: unset;
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 1.1;
}
.head-migi .head-center img {
  display: block;
  max-width: 30px;
}

/*

  header-right（右側）

  /////////////////////////////////*/
.head-right {
  flex-basis: 360px;
}
/* 電気工事店〇社/〇市町村に対応 */
.head-right .hp-link {
  max-width: 360px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 0.2em;
}

/* jsで自動でカウントしてくれる */
#pCountDisplay,
#totalCount {
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  font-weight: bold;
  padding: 0 5px;
  color: var(--main_green);
}

.head-right .hp-link p {
  margin: unset;
  font-size: clamp(16px, 1.8vw, 16px);
}

/* 見積依頼・お問い合わせリンク */
.header .head-right .contact_box {
  padding-right: 1em;
  background-color: #f7790b;
  border-radius: 5px;
}
.header .head-right .contact_box a {
  display: block;
  max-width: 300px;
  color: #fff;
  font-size: 18px;
  letter-spacing: 1.2;
  text-align: center;
  padding: 0.5em;
  position: relative;
}
.header .head-right .contact_box a::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f054";
  position: absolute;
  top: 23%;
  left: 94%;
  transform: translate(-94%, 23%);
  color: #fff;
  padding-right: 0.2em;
}

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

グローバルナビ

------------------------------------------*/
.menu-container {
  margin: auto;
  padding: 0;
  background-color: var(--main_green);
  width: 100%;
}
.menu-container nav {
  margin: auto;
}
.menu-container ul.menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  list-style: none;
  margin: auto;
  padding: 0;
  -webkit-flex-wrap: nowrap;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  max-width: 1200px;
  overflow: hidden;
}
.menu-container ul.menu li.menu-item {
  flex: 1;
}
.menu-container ul.menu li.menu-item a {
  color: #ffffff;
  display: block;
  font-weight: bold;
  padding: 0.8em 0.4em;
  text-align: center;
}
.menu-container .menu .menu-item a:hover {
  background: #ffffff;
  color: #669933;
  text-shadow: unset;
}

@media screen and (max-width: 960px) {
  .menu-container .menu {
    width: 100%;
  }
  .menu-container .menu .menu-item {
    flex: 0 1 25%;
  }
}
@media screen and (max-width: 768px) {
  .menu-container .menu {
    flex-wrap: wrap;
    width: 100%;
  }
  .menu-container .menu .menu-item {
    flex: auto;
    width: 25%;
  }
}

/*
/////////////////////////////////


burger-menu（ハンバーガーメニュー）


/////////////////////////////////*/
.burger-menu {
  display: none !important;
  max-width: 1024px;
  text-align: center;
}

.hamburger {
  cursor: pointer;
  width: 65px;
  height: 65px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
  background-color: #568b21;
}
.hamburger span {
  background-color: #fff;
  height: 3px;
  left: 16px;
  position: absolute;
  transition: all 0.6s;
  width: 34px;
}
.hamburger_linetop {
  top: 14px;
}
.hamburger_linecenter {
  top: 24px;
}
.hamburger_linebottom {
  top: 34px;
}
.hamburger_text {
  position: relative;
  max-width: 65px;
}
/* メニュー */
.hamburger_text p:nth-of-type(1) {
  position: absolute;
  color: #fff;
  font-size: 8px;
  top: 36px;
  left: 50%;
  transform: translate(-50%, 0);
  padding-top: 1.2em;
}
/* 閉じる  */
.hamburger_text p:nth-of-type(2) {
  display: none;
  position: absolute;
  color: #fff;
  font-size: 9px;
  top: 36px;
  left: 50%;
  transform: translate(-50%, 0);
  padding-top: 1.2em;
}

/*メニュークリックした後 ↓ ×へ変わる*/
.nav_open .sidemenu {
  right: 0;
}
.nav_open .hamburger_linetop {
  top: 26px;
  transform: rotate(45deg);
}
.nav_open .hamburger_linecenter {
  left: 50%;
  width: 0;
}
.nav_open .hamburger_linebottom {
  top: 26px;
  transform: rotate(-45deg);
}
.nav_open .hamburger_text p:nth-of-type(1) {
  display: none;
}
.nav_open .hamburger_text p:nth-of-type(2) {
  display: block;
}
.nav_open .overlay {
  opacity: 0.8;
  visibility: visible;
}

/*メニュークリック後メニュー外の背景 */
.overlay {
  background-color: rgba(33, 37, 41, 0.8);
  cursor: pointer;
  height: 100vh;
  left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  transition: all 0.6s;
  visibility: hidden;
  width: 100vw;
  z-index: 1;
}

/*クリックしたあとに出てくるメニュー（.sidemenu）*/
.sidemenu {
  background-color: #fff;
  height: 100vh;
  padding: 80px 0;
  position: fixed;
  right: -97%; /*メニュー幅*/
  transition: all 0.6s;
  top: 0;
  width: 340px; /*メニュー幅*/
  z-index: 2;
  overflow: auto;
  -ms-overflow-style: none; /*Microsoft Edgeスクロールバー非表示*/
  scrollbar-width: none; /*Firefoxスクロールバー非表示*/
}
/*Google Chrome、Safariスクロールバー非表示*/
.sidemenu::-webkit-scrollbar {
  display: none;
}
/* nav内のul全部共通 */
.sidemenu nav ul {
  text-align: left;
  padding: unset;
  display: block;
}
.sidemenu nav ul .ham-text {
  margin: unset;
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 0.5em;
  color: #4d9b00;
  margin: 0 1em;
}
.sidemenu nav ul:nth-of-type(1) .ham-text:nth-of-type(1) {
  background-color: #d7e9c3;
  margin: unset;
  padding: 0.5em 1em;
}
.sidemenu nav ul .ham-text:nth-child(n + 2):nth-child(-n + 10) a {
  color: #4d9b00;
}
.sidemenu nav ul li a img {
  display: block;
  width: 80%;
  margin: auto;
}

/* ul-01 */
/* =========================================== */
.sidemenu nav .ul-01 {
  margin: unset;
  padding-left: unset;
}
.sidemenu nav .ul-01 li {
  margin-bottom: 0.8em;
  list-style: none;
}
.sidemenu nav .ul-01 li a img {
  display: block;
  margin: 2em auto;
}

/* 加盟店アコーディオンにのみ適用 ↓ */
.kamei_accordion .ham-open::before,
.kamei_accordion .ham-open::after {
  right: 38;
}
.kamei_accordion .ham-open.active::before,
.kamei_accordion .ham-open.active::after {
  left: 84%;
}
.kamei_accordion .ham-accordion-item {
  margin-top: 1em;
}

/* ul-02 */
/* =========================================== */
.sidemenu nav .ul-02 {
  padding: 0.3em 0 0.4em;
}
.sidemenu nav .ul-02 p {
  padding-left: 2em;
  padding-bottom: 0.5em;
}
.sidemenu nav .ul-02:nth-of-type(2) {
  padding-left: 2em;
}
/* ul-03 */
/* =========================================== */
.sidemenu nav .ul-03 {
  background-color: #f0fbea;
  max-width: 80%;
  margin: auto;
  padding: 0.5em 0.5em 1em 0.5em;
}
.sidemenu nav .ul-03 li {
  border-bottom: dotted 2px #cfe7b7;
  margin: 0.5em 1em 0.5em 1em;
}
.sidemenu nav .ul-03 li a {
  position: relative;
  color: #4d9b00;
}

/* ul-04 */
/* =========================================== */
.sidemenu nav .ul-04 {
  background-color: #669933;
  padding: 1em 0 1em 2em;
  list-style: none;
}
.sidemenu nav .ul-04 li a {
  display: block;
  color: #fff;
  padding-bottom: 0.3em;
}
.sidemenu nav .ul-04 li a:hover {
  text-decoration: underline;
}

/* nav内のアコーディオン */
/* =========================================== */
.sidemenu nav ul li .ham-open {
  position: relative;
  margin: unset;
  margin: 0.5em 1em 0;
  font-weight: 600;
  font-size: 17px;
  color: #4d9b00;
}

.sidemenu nav .ul-02 li {
  margin-bottom: unset;
}
/* クリックされるまでは非表示 */
.ham-accordion-item {
  display: none;
}
/* 矢印 */
.ham-open::before,
.ham-open::after {
  content: "";
  position: absolute;
  top: calc(50% - 2px);
  right: 22;
  width: 11px;
  height: 2px;
  border-radius: 9999px;
  background-color: var(--main_green);
  transform-origin: calc(100% - 1px) 50%;
}
.ham-open::before {
  transform: rotate(45deg);
  transform-origin: calc(100% - 1px) 50%;
}
.ham-open::after {
  transform: rotate(-45deg);
}
/* active */
.ham-open.active::before {
  top: 60%;
  left: 88%;
  background-color: var(--main_green);
  transform: rotate(45deg);
}
.ham-open.active::after {
  top: 60%;
  left: 88%;
  background-color: var(--main_green);
  transform: rotate(136deg);
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝

ブレイクポイント（1024px）

＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */

@media only screen and (max-width: 1024px) {
  .header {
    box-shadow: 0 1px 5px rgb(109, 109, 109);
    height: 65px;
  }
  #header {
    position: absolute;
    max-width: 1024px;
    margin: unset;
    background-color: #fff;
  }
  header {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 5555555555555;
    height: 65px;
  }
  .header .head-left {
    max-width: 100%;
  }
  /* まちでんロゴ */
  .header .head-left a img {
    max-width: 210px;
  }

  /* まちでんロゴパターン2 */
  .header .head-left .share_no2 {
    display: block;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
    margin-left: auto;
  }
  .header .head-left .share_no2 .share_no1_m img {
    display: block;
    max-width: 80px;
  }
  /* パターン2では非表示 */
  .header .head-left .share_no1,
  .contact_box,
  .head-right {
    display: none;
  }

  .head-migi .head-center,
  .burger-menu {
    display: block !important;
  }
  .header .count-wap {
    padding-right: 5em;
    color: #548029;
  }
  .header .count-wap p span {
    font-size: 140%;
    padding: 0 0.3em;
    font-weight: bold;
  }

  /* nav */
  .menu-container {
    display: none;
  }
  .menu-container .menu {
    width: unset;
    max-width: 1024px;
    justify-content: space-evenly;
    margin-right: auto;
  }
  .menu-container .menu li:nth-of-type(5) {
    display: none;
  }
  .content_item {
    box-shadow: unset;
    padding: unset;
    margin: unset;
  }
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝

ブレイクポイント 600px

＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */

@media only screen and (max-width: 600px) {
  #header .header_bnr {
    max-width: 600px;
    margin-right: auto;
  }
  #header .header_bnr img {
    display: block;
    max-width: 45%;
    margin-right: auto;
    padding: 0.5em;
  }

  .header {
    height: 65px;
  }
  .count-wap {
    display: none;
  }
}

@media only screen and (max-width: 470px) {
  #header {
    position: relative;
  }
  /* まちでんロゴ */
  #header .header_bnr img {
    position: absolute;
    top: 50%;
    transform: translate(0, 10%);
    max-width: 50%;
  }
  .header .head-left {
    padding-bottom: unset;
  }
  /* まちでんロゴパターン2 */
  .header .head-left a img {
    max-width: 150px;
  }
  .header .head-left .share_no2 .share_no1_m img {
    max-width: 55px;
  }
}
