/* ==========================================================
   header-kartecontact unified stylesheet
   PC: min-width 1024px / SP: max-width 1023px
   ========================================================== */

/* ----------------------------------------------------------
   共通スタイル（PC・SP共通）
   ---------------------------------------------------------- */

.header {
  width: 100%;
  position: fixed;
  z-index: 9999;
  background: #ffffff;
}

.header .header_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fv .fv-inner-main .fv-under-btn .fv-cta .cta li .contact_cta {
display: inline-block;
  border-radius: 52px;
  background: #F74F1F;
  color: #ffffff;
  border: solid 4px #ffffff;
  width: auto;
  height: auto;
  display: flex;
  flex-flow: column;
  align-items: center;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  margin-left: 24px;
  position: relative;
  z-index: 1;
  padding: 5px 32px 15px;
}

/* ----------------------------------------------------------
   PC スタイル (min-width: 1024px)
   ---------------------------------------------------------- */
@media screen and (min-width: 1024px) {

  .header {
    padding: 15px 40px;
    height: 77px;
  }

  .header .header_inner {
    align-items: center;
  }

  .header .header_inner .header_h1 {
    width: 200px;
  }

  .header .header_inner .global_nav_div {
    display: flex;
  }

  .header .header_inner .global_nav_div .global_nav {
    display: flex;
    list-style: none;
    font-weight: bold;
    font-size: 14px;
    align-items: center;
  }

  .header .header_inner .global_nav_div .global_nav li {
    margin-left: 20px;
  }

  .header .header_inner .global_nav_div .global_nav li a {
    display: inline-block;
    width: 100%;
    height: 100%;
    color: #3c4d69;
  }

  .header .header_inner .global_nav_div .cta {
    display: flex;
    list-style: none;
    margin-left: 40px;
  }

  .header .header_inner .global_nav_div .cta li {
    height: auto;
    width: auto;
  }

  .header .header_inner .global_nav_div .cta li .trial_cta {
    color: white;
    background: linear-gradient(#ffc780 3%, #ff5c45);
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 100px;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 16px;
  }

  .header .header_inner .global_nav_div .cta li .download_cta {
    background: linear-gradient(#fdf8ab 3%, #ffc746);
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 100px;
    justify-content: center;
    align-items: center;
    margin-left: 24px;
    font-weight: 900;
    font-size: 16px;
    color: #505050;
    padding: 11px 14px 14px;
  }

  .header .header_inner .global_nav_div .cta li .trial_cta.sk-cta {
    background-color: #3c4d69;
    color: white;
  }

  .header .header_inner .global_nav_div .cta li .download_cta.sk-cta {
    background-color: white;
    color: #3c4d69;
  }

  .header .header_inner .global_nav_div .cta li .trial_cta.karte-cta {
    background: #3c4d69;
    color: white;
  }

  .header .header_inner .global_nav_div .cta li .download_cta.karte-cta {
    background-color: #e7442b;
    color: white;
  }

  .header .header_inner .global_nav_div .cta li .trial_cta.motion-cta {
    background-color: #3c4d69;
    color: white;
  }

  .header .header_inner .global_nav_div .cta li .download_cta.motion-cta {
    background-color: white;
    color: #3c4d69;
  }

  .header .header_inner .global_nav_div .cta li .trial_cta.multi-karte-cta {
    background-color: #3c4d69;
    color: white;
  }

  .header .header_inner .global_nav_div .cta li .download_cta.multi-karte-cta {
    background-color: #e7442b;
    color: white;
  }
}

/* ----------------------------------------------------------
   SP スタイル (max-width: 1023px)
   ---------------------------------------------------------- */
@media screen and (max-width: 1023px) {

  /* ハンバーガー開閉ユーティリティ */
  .no_scroll {
    overflow: hidden;
  }

  .hidden {
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s;
  }

  .hidden-left {
    visibility: hidden;
  }

  .visible {
    visibility: visible;
    opacity: 1;
    transition: all 0.5s;
  }

  /* ハンバーガーメニュー */
  .hamburger_div {
    position: fixed;
    right: 0;
    width: 85%;
    height: 100%;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: center bottom;
    z-index: 9999;
  }

  .hamburger_div .hamburger_nav li {
    margin-top: 30px;
    text-align: left;
    list-style: none;
    padding-left: 24px;
    font-size: 16px;
  }

  .hamburger_div .hamburger_nav li:nth-child(1) {
    margin-top: 100px;
  }

  .hamburger_div .hamburger_nav li .navigation_link {
    font-weight: bold;
    font-size: 18px;
    color: #3c4d69 !important;
  }

  .hamburger_div .hamburger_div_img {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 9999;
  }

  .hamburger_left_space {
    position: fixed;
    left: 0;
    top: 0;
    width: 15%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
    z-index: 9999;
    opacity: 0;
  }

  /* ヘッダー本体 */
  .header {
    margin: 0 auto;
    display: flex;
    background: #ffffff;
    height: 65px;
    align-items: center;
  }

  .header .header_inner {
    width: 100%;
  }

  .header .header_inner .header_h1 {
    width: 150px;
    margin-top: 25px;
  }

  .header .header_inner .header_h1 a {
    margin-left: 10px;
  }

  /* SP では CTA ボタン非表示 */
  .header .header_inner div .cta li {
    display: none;
  }

  /* ハンバーガーボタン */
  .header .header_inner .openbtn {
    position: relative;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    z-index: 9999;
  }

  .header .header_inner .openbtn span {
    display: inline-block;
    transition: all 0.4s;
    position: absolute;
    left: 50%;
    height: 3px;
    transform: translate(-50%, 0);
    border-radius: 2px;
    background: #3c4d69;
    width: 50%;
  }

  .header .header_inner .openbtn p {
    font-weight: bold;
    font-size: 6px;
    color: #3c4d69;
    width: 100% !important;
    position: absolute;
    left: 50%;
    top: 31px;
    transform: translate(-50%, 0);
    text-align: center;
  }

  .header .header_inner .openbtn span:nth-of-type(1) {
    top: 9px;
  }

  .header .header_inner .openbtn span:nth-of-type(2) {
    top: 17px;
  }

  .header .header_inner .openbtn span:nth-of-type(3) {
    top: 25px;
  }

  /* ×ボタン（activeクラス付与時） */
  .header .header_inner .openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
  }

  .header .header_inner .openbtn.active span:nth-of-type(2) {
    opacity: 0;
  }

  .header .header_inner .openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
  }
}
