/* ========================================
   ヘッダー共通スタイル（PCとSP統合版）
   カルティクラウド（ポータル）用
   ======================================== */

/* PC版ヘッダー（1024px以上） */
@media screen and (min-width: 1024px) {
  .header {
    background: #ffffff;
    padding: 15px 40px;
    height: 77px;
    width: 100%;
    position: fixed;
    z-index: 9999;
  }

  .header .header_inner {
    display: flex;
    justify-content: space-between;
    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: 47px;
    width: 200px;
  }

  .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 {
    height: 100%;
    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;
  }

  /* CTAボタンのカラーバリエーション */
  .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版ヘッダー（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-menu {
    list-style: none;
    padding: 0;
    margin: 0;
  }

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

  .hamburger_div .hamburger-menu li a {
    font-weight: bold;
    font-size: 18px;
    color: #3c4d69 !important;
    text-decoration: none;
  }

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

  .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 {
    width: 100%;
    position: fixed;
    margin: 0 auto;
    z-index: 9999;
    display: flex;
    background: #ffffff;
    height: 65px;
    align-items: center;
  }

  .header .header_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 15px;
  }

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

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

  .header .header_inner .header_h1 img {
    max-width: 100%;
    height: auto;
  }

  .header .header_inner .global_nav_div {
    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);
    width: 100%;
    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;
  }

  /* ハンバーガーボタン（開いた状態） */
  .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%;
  }
}