/* =================================================================
 ヘッダー
================================================================= */
/* 公式ヘッダー（イベントサイト用調整）
-------------------------------------------------------------*/
:root {
  --header-height--pc: 80px;
  --header-height--sp: 64px;
  --content-side--pc: 58px;
}

body:has(.Header) {
  padding-top: var(--header-height--pc);
}
@media screen and (max-width:767.98px) {
  body:has(.Header) {
    padding-top: var(--header-height--sp);
  }
}

header.Header {
  height: var(--header-height--pc);
}
@media screen and (max-width:767.98px) {
  header.Header {
    height: var(--header-height--sp);
  }
}
header.Header .Header__inner {
  align-items: center;
  padding-top: 0;
  position: relative;
}
header.Header .Header__head {
  padding-top: 0;
}
header.Header .header-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media screen and (max-width:767.98px) {
  header.Header .header-logo {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }
}
header.Header .header-links {
  display: flex;
  align-items: center;
  flex-flow: row wrap;
  justify-content: flex-start;
  padding-top: 0.125em;
  gap: 0.6em 1.2em;
}
@media screen and (max-width:767.98px) {
  header.Header .header-links {
    padding-right: 18px;
  }
}
header.Header .header-links .header-link a {
  display: block;
  padding-right: 1em;
  color: #1b2c55;
  font-size: 16px;
  font-weight: 500;
  position: relative;
}
@media screen and (max-width: 1080px) {
  header.Header .header-links .header-link a {
    font-size: 14px;
  }
}
@media screen and (max-width:767.98px) {
  header.Header .header-links .header-link a {
    font-size: 14px;
  }
}
header.Header .header-links .header-link a::after {
  content: "";
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  aspect-ratio: 6/12;
  width: 0.625em;
  height: auto;
  background-image: url(../common/img/icon_link_next_blu.svg);
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(0, -50%);
}

/* イベントヘッダー
-------------------------------------------------------------*/
/* 公式ヘッダーとの併用 */
body:has(.Header) #event-header::before {
  content: "";
  display: block;
  width: 100%;
  height: 200%;
  background: #FFF;
  position: absolute;
  top: -1px;
  left: 0;
  z-index: 0;
  transform: translate(0, -50%);
}
/*
 * 公式ヘッダーの現在の表示量を header.js から受け取ります。
 * JSが動作しない場合は従来の高さをフォールバックとして使用します。
 */
body:has(.Header) #event-header.up {
  top: var(--event-header-sticky-top, var(--header-height--pc));
}
@media screen and (max-width:767.98px) {
  body:has(.Header) #event-header.up {
    top: var(--event-header-sticky-top, var(--header-height--sp));
  }
}

/* MENU付きヘッダー */
#event-header:not(.simple) {
  transition: all 0.5s;
  position: sticky;
  top: var(--event-header-sticky-top, -1px);
  z-index: 102;
}
#event-header:not(.simple) .header-inner {
  border-top: solid 1px #eee;
  border-bottom: solid 1px #eee;
  background: #FFF;
  position: relative;
  z-index: 1;
}
#event-header:not(.simple) .header-inner .inner-box {
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  justify-content: space-between;
  gap: 1.25em;
  margin: 0 auto;
  padding: 0.875em var(--content-side--pc) 0.875em;
  max-width: 1600px;
}
@media screen and (max-width: 1372px) {
  #event-header:not(.simple) .header-inner .inner-box {
    padding-inline: 20px;
  }
}
@media screen and (max-width:767.98px) {
  #event-header:not(.simple) .header-inner .inner-box {
    justify-content: flex-end;
    padding-block: 5px;
    padding-inline: 18px 10px;
    min-height: 50px;
  }
}
#event-header:not(.simple) .logo {
  margin-top: 0;
  aspect-ratio: 196/42;
  width: auto;
  height: 2.625em;
}
#event-header:not(.simple) .logo a{display: block;}
#event-header:not(.simple) .logo a .logoSummit2026{max-width: 100%; fill: #180869;}

@media screen and (max-width:767.98px) {
  #event-header:not(.simple) .logo {
    height: 1.7em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
#event-header:not(.simple) .logo img {
  width: 100%;
  height: auto;
}
#event-header:not(.simple) .menu-area .menu-button {
  width: 40px;
  height: 40px;
  display: block;
  text-indent: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  transition: all 0.3s;
  z-index: 2;
}
@media screen and (min-width: 1001px) {
  #event-header:not(.simple) .menu-area .menu-button {
    display: none;
  }
}
#event-header:not(.simple) .menu-area .menu-button .bars {
  display: block;
  width: 26px;
  height: 1px;
  background: #222;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#event-header:not(.simple) .menu-area .menu-button .bars::before, #event-header:not(.simple) .menu-area .menu-button .bars::after {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  background: #222;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s;
}
#event-header:not(.simple) .menu-area .menu-button .bars::before {
  top: calc(50% - 11px);
}
#event-header:not(.simple) .menu-area .menu-button .bars::after {
  top: calc(50% + 11px);
}
#event-header:not(.simple) .menu-area .menu-button.open {
  position: fixed;
  top: 14px;
  right: 20px;
}
@media screen and (max-width:767.98px) {
  #event-header:not(.simple) .menu-area .menu-button.open {
    top: 5px;
    right: 10px;
  }
}
#event-header:not(.simple) .menu-area .menu-button.open .bars {
  background: transparent;
}
#event-header:not(.simple) .menu-area .menu-button.open .bars::before, #event-header:not(.simple) .menu-area .menu-button.open .bars::after {
  top: 50%;
  left: 50%;
}
#event-header:not(.simple) .menu-area .menu-button.open .bars::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
#event-header:not(.simple) .menu-area .menu-button.open .bars::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
@media screen and (min-width: 768px) {
  #event-header:not(.simple) .menu-area .overlay {
    display: none !important;
  }
}
#event-header:not(.simple) #menu {
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  justify-content: flex-start;
  gap: 2.5em;
}
@media screen and (max-width: 1372px) {
  #event-header:not(.simple) #menu {
    gap: 1.25em;
  }
}
@media screen and (max-width: 1180px) {
  #event-header:not(.simple) #menu {
    gap: 1em;
  }
}
@media screen and (max-width: 1000px) {
  #event-header:not(.simple) #menu {
    display: flex;
    align-items: center;
    flex-flow: column nowrap;
    justify-content: flex-start;
    gap: 3.5714285714em;
    padding: 5em 1.4285714286em 7.1428571429em;
    height: 100vh;
    width: 100%;
    background: #FFF;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
  }
  @-moz-document url-prefix() {
    #event-header:not(.simple) #menu {
      scrollbar-width: 0.25em;
      scrollbar-color: #1b2c55 #e5e5e5;
    }
  }
  #event-header:not(.simple) #menu::-webkit-scrollbar {
    background: #e5e5e5;
    width: 0.25em;
    border-radius: 999px;
  }
  #event-header:not(.simple) #menu::-webkit-scrollbar-thumb {
    background: #1b2c55;
    border-radius: 999px;
  }
}
#event-header:not(.simple) #menu.open {
  opacity: 1;
  visibility: visible;
  transition: all 0.3s;
}
@media screen and (min-width: 768px) {
  #event-header:not(.simple) #menu .logo {
    display: none;
  }
}
@media screen and (max-width: 1000px) {
  #event-header:not(.simple) #menu .logo {
    display: block;
    position: fixed;
    top: 14px;
    left: 20px;
  }
}
@media screen and (max-width:767.98px) {
  #event-header:not(.simple) #menu .logo {
    top: 12px;
    left: 50%;
    transform: translate(-50%, 0);
  }
}
@media screen and (max-width: 1000px) {
  #event-header:not(.simple) #menu::before {
    content: "";
    width: 100%;
    height: 65px;
    border-bottom: solid 1px #eee;
    background: #FFF;
    position: fixed;
    top: 0;
    left: 0;
  }
}
@media screen and (max-width:767.98px) {
  #event-header:not(.simple) #menu::before {
    height: 50px;
  }
}
#event-header:not(.simple) .menus {
  display: flex;
  align-items: center;
  flex-flow: row wrap;
  justify-content: center;
  gap: 0.5em 1.0em;
}

/* 1001px以上：通常メニューと右端のCTAを別カラムで配置 */
@media screen and (min-width: 1001px) {
  #event-header:not(.simple) .header-inner .inner-box > .logo {
    flex: 0 0 auto;
  }

  #event-header:not(.simple) .menu-area {
    flex: 1 1 auto;
    min-width: 0;
  }

  #event-header:not(.simple) #menu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
  }

  #event-header:not(.simple) .menus {
    min-width: 0;
  }

  #event-header:not(.simple) .header-buttons {
    justify-self: end;
    flex: 0 0 auto;
  }

  #event-header:not(.simple) .header-buttons a {
    white-space: nowrap;
  }
}

/* 1600px以上ではナビゲーションを1行に固定 */
@media screen and (min-width: 1600px) {
  #event-header:not(.simple) .menus {
    flex-wrap: nowrap;
  }
}

/* 1600px未満では通常メニューだけを折り返す */
@media screen and (min-width: 1001px) and (max-width: 1599.98px) {
  #event-header:not(.simple) .menus {
    flex-wrap: wrap;
  }
}
@media screen and (max-width: 1372px) {
  #event-header:not(.simple) .menus {
    gap: 0.75em 1em;
  }
}
@media screen and (max-width: 1180px) {
  #event-header:not(.simple) .menus {
    gap: 0.5em 0.75em;
  }
}
@media screen and (max-width: 1000px) {
  #event-header:not(.simple) .menus {
    display: flex;
    align-items: stretch;
    flex-flow: column nowrap;
    justify-content: flex-start;
    gap: 0;
    margin-inline: auto;
    width: 100%;
  }
}
#event-header:not(.simple) .menus .menu {
  line-height: 1;
}
@media screen and (max-width: 1000px) {
  #event-header:not(.simple) .menus .menu {
    width: 100%;
    border-bottom: solid 1px #eee;
  }
}
#event-header:not(.simple) .menus .menu a {
  display: block;
  color: #1b2c55;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-decoration: none;
  font-size: 14px;
}
@media screen and (max-width: 1372px) {
  #event-header:not(.simple) .menus .menu a {
    /*font-size: 14px;*/
  }
}
@media screen and (max-width: 1180px) {
  #event-header:not(.simple) .menus .menu a {
    /*font-size: 13px;*/
  }
}
@media screen and (max-width: 1000px) {
  #event-header:not(.simple) .menus .menu a {
    padding: 1.2142857143em 0.7142857143em;
    /*font-size: 16px;*/
    font-weight: 400;
  }
}
@media screen and (max-width:767.98px) {
  #event-header:not(.simple) .menus .menu a {
    font-size: 3.4vw;
  }
}
#event-header:not(.simple) .header-buttons {
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  justify-content: flex-start;
  gap: 0.9375em;
}
@media screen and (max-width: 1372px) {
  #event-header:not(.simple) .header-buttons {
    gap: 0.75em;
  }
}
@media screen and (max-width: 1000px) {
  #event-header:not(.simple) .header-buttons {
    display: flex;
    align-items: center;
    flex-flow: column nowrap;
    justify-content: flex-start;
    gap: 1.0714285714em;
    width: 100%;
  }
}
#event-header:not(.simple) .header-button {
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  justify-content: center;
  padding: 0.5em 1em;
  min-width: 8.75em;
  min-height: 40px;
  border: solid 2px #1b2c55;
  background: #1b2c55;
  color: #FFF;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  border-radius: 999px;
  position: relative;
}
@media screen and (max-width: 1372px) {
  #event-header:not(.simple) .header-button {
    font-size: 14px;
  }
}
@media screen and (max-width: 1180px) {
  #event-header:not(.simple) .header-button {
    font-size: 13px;
  }
}
@media screen and (max-width: 1000px) {
  #event-header:not(.simple) .header-button {
    width: 100%;
    min-width: auto;
    max-width: 20.9375em;
    min-height: 50px;
    font-size: 16px;
  }
}
#event-header:not(.simple) .header-button.positive {
  border-color: #ee7800;
  background: #ee7800;
  color: #FFF;
}
#event-header:not(.simple) .header-button.normal {
  border-color: #1b2c55;
  background: #1b2c55;
  color: #FFF;
}
#event-header:not(.simple) .header-button.border {
  border-color: #ee7800;
  background: #FFF;
  color: #ee7800;
}
#event-header:not(.simple) .header-button.negative {
  border-color: #1b2c55;
  background: #FFF;
  color: #1b2c55;
}
#event-header:not(.simple) .header-button.disabled, #event-header:not(.simple) .header-button[disabled] {
  border-color: #d9d9d9;
  background: #d9d9d9;
  color: #999;
  pointer-events: none;
}
#event-header:not(.simple) .header-button.external {
  gap: 0.375em;
  min-width: 9.375em;
}
#event-header:not(.simple) .header-button.external::after {
  content: "";
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  aspect-ratio: 1;
  width: 1em;
  min-width: 1em;
  height: auto;
  background-image: url(../media/images/common/icon_btn_external.svg);
}
#event-header:not(.simple):has(.menu-area.open) {
  z-index: 9999;
}

body:not(:has(.Header)) #event-header:not(.simple) .header-inner .inner-box {
  padding: 0.875em 1.125em;
  max-width: 100%;
}
@media screen and (max-width:767.98px) {
  body:not(:has(.Header)) #event-header:not(.simple) .header-inner .inner-box {
    padding-block: 5px;
    padding-inline: 18px;
  }
}

/* 簡易ヘッダー */
#event-header.simple {
  transition: all 0.5s;
  position: sticky;
  top: 0;
  z-index: 102;
}
#event-header.simple .header-inner {
  border-bottom: solid 1px #eee;
  background: #FFF;
  position: relative;
  z-index: 1;
}
#event-header.simple .header-inner .inner-box {
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0.875em 1.125em;
}
@media screen and (max-width:767.98px) {
  #event-header.simple .header-inner .inner-box {
    padding-block: 5px;
    padding-inline: 18px;
    min-height: 50px;
  }
}
#event-header.simple .logo {
  margin-top: 0;
  aspect-ratio: 196/42;
  width: auto;
  height: 2.625em;
}
@media screen and (max-width:767.98px) {
  #event-header.simple .logo {
    height: 1.8571428571em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
#event-header.simple .logo img {
  width: 100%;
  height: auto;
}


/* #event-header の top 変更だけを自然に動かす補助CSS
   header.css の後ろで読み込むか、header.css の該当箇所を置き換えてください。 */

#event-header:not(.simple),
#event-header.simple {
  /*
   * top は header.js が公式ヘッダーの実位置を毎フレーム反映するため、
   * CSS側では補間しない。transitionを併用すると追従が遅れて見える。
   */
  transition: none;
}



/* PCヘッダー：通常メニューを読みやすく収める調整 */
@media screen and (min-width: 1001px) {
  #event-header:not(.simple) #menu {
    column-gap: 16px;
  }

  #event-header:not(.simple) .menus {
    row-gap: .5em;
    column-gap: 1.2em;
  }

  #event-header:not(.simple) .menus .menu a {
    font-size: 13px;
    letter-spacing: 0.03em;
  }
}

/* 1001px～1599px：文字・ロゴ・ボタンを少しずつ縮めて余白を確保 */
@media screen and (min-width: 1001px) and (max-width: 1599.98px) {
  #event-header:not(.simple) .header-inner .inner-box {
    gap: 12px;
  }

  #event-header:not(.simple) .header-inner .inner-box > .logo {
    height: clamp(34px, 2.5vw, 40px);
  }

  #event-header:not(.simple) #menu {
    column-gap: 12px;
  }

  #event-header:not(.simple) .menus {
    column-gap: clamp(6px, 1.0em, 12px);
  }

  /* 文字を無理に圧縮せず、項目単位で次の行へ送る */
  #event-header:not(.simple) .menus .menu {
    flex-shrink: 0;
  }

  #event-header:not(.simple) .menus .menu a {
    font-size: clamp(12px, 0.8125vw, 13px);
    letter-spacing: 0.02em;
  }

  #event-header:not(.simple) .header-buttons {
    gap: 8px;
  }

  #event-header:not(.simple) .btnCV,
  #event-header:not(.simple) .btnLogin {
    width: clamp(126px, 9vw, 144px);
    font-size: clamp(13px, 0.9375vw, 15px);
  }
}


/**/
#event-header .btnCV{
  display: block;
  width: 150px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 16px;
  color: #fff;
  font-weight: bold;
  background: #BF004C;
  background: linear-gradient(90deg,rgba(191, 0, 76, 1) 0%, rgba(98, 14, 208, 1) 100%);
  border-radius: 999px;
}
#event-header .btnLogin{
  display: block;
  width: 150px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 16px;
  color: #fff;
  font-weight: bold;
  background: #1b2c55;
  border-radius: 999px;
}
@media screen and (max-width: 1000px) {
  #event-header:not(.simple) .header-buttons{justify-content: start;}
  #event-header:not(.simple) .menus .menu a{font-size: 16px;}
  #event-header .btnCV, #event-header .btnLogin{
    margin: 0;
        width: 350px;
        height: 70px;
        line-height: 70px;
        font-size: 18px;
  }

}
@media screen and (max-width:767.98px) {
  #event-header:not(.simple) .menus .menu a{font-size: 3vw;}
  #event-header .btnCV, #event-header .btnLogin{
    margin: 0 auto;
    width: 45vw;
    height: 12vw;
    line-height: 12vw;
    font-size: 3.4vw;
  }

}