@charset "utf-8";

/* 製作者：佐々木 */

.restart_header_setting {
  font-family: var(--NotoSans);
}

/*-----------
HEADER
-----------*/
.restart_top_header {
  max-width: 128rem;
  width: 100%;
  height: 8rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
}
.restart_header_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 7rem;
  margin: 1rem 7rem 0 3.5rem;
  position: relative;
}
/*-------SITE-LOGO------*/
.restart_header_title {
  width: 15.4rem;
  z-index: 30;
}
.header_title_link {
  display: block;
}
.restart_header_sitelogo {
  vertical-align: bottom;
}

/*-------SITE-LOGO------*/

/*-------HMB-BTN------*/
.restart_header_hmb {
  width: 4.3rem;
  height: 4.3rem;
  background-color: #003D6D;
  border-radius: 50%;
  box-shadow: 0 0 0 0.1rem #fff;
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
  z-index: 60;
}

/*-----HMB-BTN棒の設定-----*/
.header_hmb_btn {
  display: block;
  position: absolute;
  width: 2.5rem;
  height: 0.1rem;
  background-color: #fff;
  border-radius: 0.1rem;
  transition: all .5s;
}
.header_hmb_btn:first-child {
  top: 1.3rem;
  left: 0.9rem;
}
.header_hmb_btn:nth-child(2) {
  top: 1.8rem;
  left: 0.9rem;
}
.header_hmb_btn:nth-child(3) {
  top: 2.3rem;
  left: 0.9rem;
}
.header_hmb_text {
  display: block;
  position: absolute;
  bottom: 0.7rem;
  left: 0.7rem;
  color: #fff;
}
/* HMB-MENUオープン時 */
.open_hmb_menu .header_hmb_btn:first-child {
  transform: translateY(0.3rem) rotate(25deg);
}
.open_hmb_menu .header_hmb_btn:nth-child(2) {
  transform: translateX(100%);
  opacity: 0;
}
.open_hmb_menu .header_hmb_btn:nth-child(3) {
  transform: translateY(-0.7rem) rotate(-25deg);
}
/*-----HMB-BTN棒の設定-----*/
.hmb_menu_logo {
  width: 29.8rem;
  margin: 0 0 2.4rem 6rem;
}


/* HMB-MENUオープン画面 */
.header_hmb_menu {
  display: flex;
  width: 100%;
  height: 100vh;
  padding-top: 3rem;
  background-color: #ffffff;
  border: 1rem solid #003D6D;
  position: fixed;
  flex-direction: column;
  top: 0;
  left: 0;
  box-sizing: border-box;
  z-index: 50;
  overflow: auto;
  visibility: hidden;
  opacity: 0;
  transition: all .5s;
}
/* オープン時の挙動 */
.open_hmb_menu .header_hmb_menu {
  visibility: visible;
  opacity: 1;
}

/* HMB-NAV-MENU */
.hmb_menu_container {
  margin: auto;
  display: flex;
  flex-direction: row-reverse;
  height: 47.2rem;
  gap: 1.5rem;
  max-width: 100rem;
  width: 100%;
  box-sizing: border-box;
}

.header_hmb_view {
  max-width: 42.5rem;
  border-radius: 1rem;
}
/* NAV-MENU */
.restart_nav_flex {
  display: flex;
  gap: 1rem;
}
.nav_flex_team {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.restart_nav_link {
  width: 35rem;
  height: 10rem;
  font-size: 2rem;
  display: block;
  padding: 2rem;
  border-radius: 1rem;
  color: #fff;
}
.achievement_nav_link {
  background-color: #003D6D;
}
.news_nav_link {
  height: 25.2rem;
  background-color: #B62035;
}
.partner_nav_link {
  max-width: 56rem;
  width: 100%;
  height: 13rem;
  background-color: #258830;
}
.restart_nav_list {
  font-size: 1.4rem;
  width: 20rem;
  height: 36.2rem;
  background-color: #1A1311;
  border-radius: 2rem;
  padding: 3rem 0 3rem 3rem;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
}
.header_nav_link {
  color: #fff;
}
 
/*---------------------------- 
NEWSページのヘッダーデザイン
----------------------------*/
.header_link_color {
  max-width: 128rem;
  max-height: 40.1rem;
  position: relative;
  color: #003D6D;
}

.header_sp_bg {
  display: none;
}

.header_link_color .restart_header_background {
  width: 100%;
  height: 100%;
}

.header_page_title {
  position: absolute;
  bottom: 11.4rem;
  right: 0;
  left: 0;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center; 
}
.header_title_text_wrapper {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ja_header_title {
  font-weight: normal;
  font-size: 1.5rem;
}
.en_header_title {
  line-height: 0.7em;
  font-weight: bold;
  font-size: 7rem;
}

/* ページごとの色の設定 */
  /* TOP */
.header_link_front_color {
  display: none;
}
.header_link_front_bgc {
  background-color: #258830;
}
.header_link_front_border {
  border-color: #258830;
}

/* 実績一覧 */
.header_link_works_color {
  color: #ffffff;
  margin-bottom: -11rem;
  z-index: 1;
}
.header_link_title_color {
  color: #000000;
}

/* 会社概要 */
.header_link_about_color {
  color: #B62035;
}
.header_link_about_bgc {
  background-color: #B62035;
}
.header_link_about_border {
  border-color: #B62035;
}

/* 事業内容 */
.header_link_service_color {
  color: #258830;
}
.header_link_service_bgc {
  background-color: #258830;
}
.header_link_service_border {
  border-color: #258830;
}

/* お問い合わせ */
.header_link_contact_color {
  color: #00203A;
}
.header_link_contact_bgc {
  background-color: #00203A;
}
.header_link_contact_border {
  border-color: #00203A;
}


.to_client_link{
  writing-mode: vertical-lr;
  position: fixed;
  right: 0;
  top: calc(50%);
  transform: translate(0, -50%);
  padding: 3rem 2rem;
  border-top-left-radius: 2rem;
  border-bottom-left-radius: 2rem;
  background-color: rgb(182 32 53 / 90%);
  color: #fff;
  font-size: 1.5rem;
  font-family: var(--NotoSans);
  letter-spacing: 0.05em;
  z-index: 10002;
  transition: transform 500ms cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: transform 0.5s 0.5s, background-color 0.5s;
}


@media screen and (max-width: 699.98px) {
  .restart_header_container {
    margin: 0.5rem 2rem 0;
  }
  .restart_header_title {
    z-index: 60;
    width: 11rem;
  }

  .header_sp_bg {
    display: block;
    background-color: #003D6D;
    width: 100vw;
    height: 13.3rem;
    margin-bottom: -0.1rem;
  }
/* SP版背景色 */
/* 会社概要 */
  .header_link_about_sp {
    background-color: #B62035;
  }
/* お問い合わせ */
  .header_link_contact_sp {
    background-color: #00203A;
  }
/* 実績一覧 */
  .header_link_works_sp {
    background-color: #ffffff;
  }
/* 事業案内 */
  .header_link_service_sp {
    background-color: #258830;
  }

  .header_page_title {
    /* right: 2rem; */
    bottom: 6rem;
  }


  /* ハンバーガーメニュー */
  .header_hmb_view {
    max-width: 33.5rem;
    max-height: 24.5rem;
  }

  .hmb_menu_container {
    max-width: 33.5rem;
    width: 100%;
    max-height: 62.1rem;
    height: 100%;
    margin-top: 4rem;
    margin-bottom: 1rem;
    flex-direction: column;
    font-size: 1.6rem;
    gap: 0.5rem;
    overflow-y: scroll;
  }

  .nav_flex_team {
    gap: 0.5rem;
  }
  .restart_nav_flex {
    gap: 0.5rem;
  }
  .achievement_nav_link {
    width: 13rem;
    height: 10rem;
  }
  .news_nav_link {
    width: 13rem;
    height: 16.1rem;
  }
  .partner_nav_link {
    width: 33.5rem;
    height: 10rem;
  }
  .restart_nav_list {
    width: 20rem;
    height: 26.6rem;
    padding: 2rem 0 2rem 2rem;
  }

  .hmb_menu_logo {
    display: none;
  }
  
  .contact_links{
    position: fixed;
    z-index: 100;
    bottom: 0;
    width: 100%;
  }

  .to_client_link{
    position: initial;
    writing-mode: initial;
    transform: initial;
    display: block;
    padding: 1rem;
    border-radius: 1rem 1rem 0 0;
    width: 50%;
  }

}