/* ==========================================================
   header.css
   通常ページ・planページ共通のヘッダースタイル
   閉時の色挙動は「通常版（白→黒スクロール切替）」がデフォルト
   plan ページの上書きは header_plan.css に集約
   ========================================================== */

/* ヘッダー基本 */
.header_menu {
  width: 100%;
  height: 100px;
  background-color: transparent;
  z-index: 8000;
  display: flex;
  position: fixed;
  transition: transform 0.3s ease, background-color 0.3s ease;
  top: 0;
}

.header_menu.hide {
  transform: translateY(-100%);
}

.header_menu_container {
  width: 100%;
  height: 100%;
  display: flex;
  padding: 0;
  position: relative;
}

/* ロゴ */
.header_icon {
  height: 50px;
  width: auto;
  position: absolute;
  left: 8%;
  top: 25px;
  overflow: hidden;
  z-index: 8001;
}

.header_icon h1 {
  height: 100%;
  width: auto;
}

.header_icon_logo {
  height: 100%;
  display: block;
}

.header_icon .header_icon_logo.hide#header_icon_black {
  display: none;
}
.header_icon .header_icon_logo #header_icon_white {
  display: block;
}
.header_icon .header_icon_logo#header_icon_black {
  display: block;
}
.header_icon .header_icon_logo.hide#header_icon_white {
  display: none;
}

.header_icon_logo img {
  width: auto;
  height: 100%;
}

/* バーガーアイコン */
.header_menu_hum {
  top: 25px;
  right: 8%;
  width: 50px;
  height: 50px;
  position: absolute;
  cursor: pointer;
  z-index: 8002;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.header_menu_hum:hover {
  transform: scale(1.1);
}

.header_menu_hum span {
  width: 40px;
  height: 3px;
  background-color: var(--main_color_white);
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.header_menu_hum.black span {
  background-color: var(--main_color_black);
}

.header_menu_hum.active {
  transform: translateX(-7px);
}

.header_menu_hum.active span:nth-child(1) {
  transform: rotate(40deg) translate(0px, 15px);
}

.header_menu_hum.active span:nth-child(2) {
  opacity: 0;
  transition: all 0.1s ease;
}

.header_menu_hum.active span:nth-child(3) {
  transform: rotate(-40deg) translate(-1px, -15px);
}

/* オーバーレイ */
.header_menu_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 7999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header_menu_overlay.active {
  opacity: 1;
  visibility: visible;
}

/* スライドインメニュー */
.header_menu_list {
  position: fixed;
  top: 0;
  right: -42%;
  width: 42%;
  height: 100vh;
  background-color: #fff;
  z-index: 8000;
  transition: right 0.4s ease;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.header_menu_list.active {
  right: 0;
}

.header_menu_grid {
  display: flex;
  padding: 100px 0 0 7%;
  width: 75%;
}

/* 左カラム：メインナビ */
.header_menu_main {
  width: 50%;
  margin-right: 50px;
}

.header_menu_main ul {
  list-style: none;
  padding: 0;
}

.header_menu_main li {
  margin: 0;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.header_menu_list.active .header_menu_main li {
  opacity: 1;
  transform: translateX(0);
}

.header_menu_main li > a {
  display: block;
  text-decoration: none;
}

.header_menu_main li > a span {
  color: var(--button_corp_color);
  font-size: clamp(1.8rem , calc(0.5vw + 1.6vw), 2.4rem);
  font-weight: 600;
  display: block;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: max-content;
}

.header_menu_main li > a small {
  display: block;
  font-size: clamp(0.9rem, calc(0.3vw + 0.7rem), 1.2rem);
  color: var(--footer_text_color);
  font-weight: 400;
  letter-spacing: 0;
}

/* 右カラム：PLANセクション */
.header_menu_plan {
  flex: 1;
  padding-left: 0;
}

.header_menu_plan h3 {
  color: var(--button_corp_color);
  font-size: clamp(1.8rem , calc(0.5vw + 1.6vw), 2.4rem);
  font-weight: 600;
  padding: 0;
  margin: 0;
  margin-bottom: clamp(1.8rem , calc(0.5vw + 1.6vw), 2.4rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  width: max-content;
}

.header_menu_list.active .header_menu_plan h3 {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.1s;
}

.header_menu_plan ul {
  list-style: none;
  padding-left: 2rem;
}

.header_menu_plan li {
  margin: 0;
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.header_menu_list.active .header_menu_plan li {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.header_menu_plan li > a {
  color: var(--footer_text_color);
  text-decoration: none;
  font-size: clamp(1.3rem , calc(0.3vw + 1vw), 1.8rem);
  font-weight: 500;
  padding: 0;
  padding-left: 10%;
  margin-bottom: clamp(1.3rem , calc(0.3vw + 1vw), 1.8rem);
  display: block;
  transition: all 0.3s ease;
  width: max-content;
}

.header_menu_plan li > a:hover {
  opacity: 0.7;
}

/* メニュー内ボタンエリア */
.header_menu_buttons {
  padding: 50px 0 0 7%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.header_btn {
  width: max-content;
  height: max-content;
  padding: 10px 50px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  transition-delay: 0.4s;
  opacity: 0;
  transform: translateY(20px);
}

.header_menu_list.active .header_btn {
  opacity: 1;
  transform: translateY(0);
}

.header_menu_list.active .header_menu_buttons a span {
  color: var(--main_color_white);
  font-size: 2.2rem;
}

.header_menu_list.active .header_menu_buttons a span i::before {
  color: var(--main_color_white);
  font-size: 2.2rem;
  margin-right: 10px;
}

.header_btn_event {
  background-color: var(--button_corp_color);
}

.header_btn_event:hover {
  background-color: var(--main_corp_color);
  transform: translateY(-2px);
}

.header_btn_catalog {
  background-color: var(--main_color_black);
}

.header_btn_catalog:hover {
  background-color: var(--footer_text_color);
  transform: translateY(-2px);
}

/* 順次アニメーション */
.header_menu_list.active .header_menu_main li:nth-child(1) { transition-delay: 0.1s; }
.header_menu_list.active .header_menu_main li:nth-child(2) { transition-delay: 0.15s; }
.header_menu_list.active .header_menu_main li:nth-child(3) { transition-delay: 0.2s; }
.header_menu_list.active .header_menu_main li:nth-child(4) { transition-delay: 0.25s; }
.header_menu_list.active .header_menu_main li:nth-child(5) { transition-delay: 0.3s; }
.header_menu_list.active .header_menu_main li:nth-child(6) { transition-delay: 0.35s; }
.header_menu_list.active .header_menu_main li:nth-child(7) { transition-delay: 0.4s; }
.header_menu_list.active .header_menu_main li:nth-child(8) { transition-delay: 0.45s; }
.header_menu_list.active .header_menu_main li:nth-child(9) { transition-delay: 0.5s; }

.header_menu_list.active .header_menu_plan li:nth-child(1) { transition-delay: 0.2s; }
.header_menu_list.active .header_menu_plan li:nth-child(2) { transition-delay: 0.25s; }
.header_menu_list.active .header_menu_plan li:nth-child(3) { transition-delay: 0.3s; }
.header_menu_list.active .header_menu_plan li:nth-child(4) { transition-delay: 0.35s; }
.header_menu_list.active .header_menu_plan li:nth-child(5) { transition-delay: 0.4s; }

/* SNSアイコン */
.header_menu_sns {
  width: 100%;
  height: max-content;
  display: flex;
  gap: 4rem;
  justify-content: center;
  margin-top: 3rem;
}

.header_sns_icon {
  width: max-content;
  height: max-content;
  display: flex;
}

.header_sns_icon span i::before {
  font-size: 3.5rem;
}

/* ==========================================================
   ヘッダー CTA ボタン（デジタルカタログ / LINE / イベント予約）
   ロゴとバーガーの間に水平配置（PC）、SP はアイコンのみ
   ========================================================== */
.header_cta {
  position: absolute;
  top: 50%;
  right: calc(8% + 70px);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 8001;
}

.header_cta_item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 28px;
  background-color: var(--button_corp_color);
  color: var(--main_color_white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.header_cta_item i {
  font-size: 1.6rem;
}

.header_cta_label {
  white-space: nowrap;
}

.header_cta_item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.header_cta_catalog {
  background-color: var(--main_color_black);
}
.header_cta_catalog:hover {
  background-color: var(--footer_text_color);
}

.header_cta_line {
  background-color: #06C755;
}
.header_cta_line:hover {
  background-color: #05a647;
}

.header_cta_event {
  background-color: var(--button_corp_color);
}
.header_cta_event:hover {
  background-color: var(--main_corp_color);
}

/* メニュー展開時は CTA を非表示 (JS から .is-hidden を付与) */
.header_cta.is-hidden {
  display: none;
}

/* タブレット・モバイル対応 */
@media (max-width: 768px) {
  .header_menu_list {
    width: 100%;
    right: -100%;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .header_menu_hum.active {
    transform: translateX(-5px);
  }

  .header_menu_hum.active span:nth-child(1) {
    transform: rotate(40deg) translate(0px, 10px);
  }

  .header_menu_hum.active span:nth-child(2) {
    opacity: 0;
  }

  .header_menu_hum.active span:nth-child(3) {
    transform: rotate(-40deg) translate(-1px, -10px);
  }

  .header_menu_grid {
    flex-direction: column;
    padding: 70px 0 0;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    list-style: none;
    align-items: start;
  }

  .header_menu_main {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
  }

  .header_menu_main ul {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    width: 100%;
  }

  .header_menu_main li > a {
    margin-bottom: clamp(0.6rem, 1.5vh, 1.2rem);
  }

  .header_menu_main li > a span {
    width: auto;
    margin: 0 auto;
  }

  .header_menu_main li > a small {
    margin-top: 0;
  }

  .header_menu_plan {
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header_menu_list.active .header_menu_plan h3 {
    transition-delay: 0.55s;
  }

  .header_menu_list.active .header_menu_plan ul {
    display: none;
  }

  .header_menu_buttons {
    padding: 15px 10%;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    height: auto;
    flex-shrink: 0;
  }

  .header_menu_list.active .header_menu_buttons a span {
    font-size: 1.9rem;
  }

  .header_btn {
    padding: 10px 8%;
    width: 100%;
    text-align: center;
  }

  .header_menu_sns {
    width: 100%;
    height: auto;
    display: flex;
    gap: 4rem;
    justify-content: center;
    margin-top: 2rem;
    margin-left: 0;
    flex-shrink: 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  /* CTA ボタン: SP ではアイコンのみ表示、バーガー左隣に */
  .header_cta {
    right: calc(5% + 50px);
    gap: 6px;
  }
  .header_cta_item {
    padding: 8px 10px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
  }
  .header_cta_item i {
    font-size: 1.5rem;
  }
  .header_cta_label {
    display: none;
  }
}

/* small mobile */
@media (max-width: 480px) {
  .header_menu {
    height: 60px;
  }

  .header_icon {
    height: 40px;
    left: 3%;
    top: 10px;
  }

  .header_menu_hum {
    top: 10px;
    right: 5%;
    width: 40px;
    height: 40px;
  }

  .header_menu_hum span {
    width: 28px;
    height: 2px;
    margin: 3px 0;
  }

  .header_cta {
    right: calc(5% + 40px);
    gap: 4px;
  }
  .header_cta_item {
    width: 32px;
    height: 32px;
    padding: 6px;
  }
  .header_cta_item i {
    font-size: 1.3rem;
  }
}

/* header end */
