@charset "UTF-8";

/* ----------
header
---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3000;              /* 追加：ヘッダー最前面 */
  background: transparent;     /* 要件：通常時は背景なし */
  transition: background-color 0.25s ease;
}

.header.is-scrolled {
  background: rgba(0, 0, 0, 0.4);
}



/* ---- */
.header .inner {
  width: 100%;
  /* max-width: 1400px; */
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ---- */
.header .header_logo {}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.header .header__title {
  margin: 0;
  line-height: 1;
  width: 267px; /* ロゴサイズはデザインに合わせて微調整 */
}

.header .header__title a {
  display: block;
}

.header .header__title img {
  width: 100%;
  max-width:280px;
  height: auto;
  display: block;
}

/* ---- PC nav ---- */
.header .header__lst {
  display: block;
}

.header .header__lst__contact {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  background: transparent; /* ABOUT?COMPANYは背景不要 */
}

.header .header__lst__contact .item {}

.header .header__lst__contact .item a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 22px;

  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  font-family: "Roboto", sans-serif;
}
body.otherPage .header .header__lst__contact .item a {
	color:#000;
}

body.otherPage .header.is-scrolled .header__lst__contact .item a {
	color:#fff;
}
/* CONTACT */
.header .header__lst__contact .bnt-contact a {
  background: rgba(0, 0, 0, 0.85);
  gap: 10px;
}
body.otherPage .header .header__lst__contact .bnt-contact a {
	color:#fff;
}

.header .header__lst__contact .bnt-contact .contact-icon {
  width: 18px;
  height: auto;
  display: block;
}

/* ---- SP toggle button ---- */
.header__toggle {
  display: none; /* SPで表示 */
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;

  position: relative; /* 追加：z-indexを効かせる */
  z-index: 3050;       /* 追加：ドロワーより前に出す */
}
body.otherPage .header .header__toggle {
	color:#000;
}
body.otherPage .header.is-scrolled .header__toggle {
	color:#fff;
}

.header__toggle-bars {
  width: 44px;
  height: 28px;
  display: block;
  position: relative;
}

/* ▼修正：top移動ではなく transform だけで三本線→× を作る（確実にアニメーション） */
.header__toggle-bars .bar {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: #fff;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
body.otherPage .header .header__toggle-bars .bar {
	background:#000;
}
body.otherPage .header.is-scrolled .header__toggle-bars .bar {
  background: #fff;
}

/* 通常時（三本線） */
.header__toggle-bars .bar:nth-child(1) { transform: translateY(-11px) rotate(0); }
.header__toggle-bars .bar:nth-child(2) { transform: translateY(0) rotate(0); }
.header__toggle-bars .bar:nth-child(3) { transform: translateY(11px) rotate(0); width:80%; }


.header__toggle-bars .bar:nth-child(3) { transform: translateY(11px) rotate(0); width:80%; }

.header__toggle[aria-expanded="true"] .bar:nth-child(3) {
	width:100%;
}

/* open: bars -> X（MENU文字はそのまま） */
.header.is-open .header__toggle-bars .bar:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.header.is-open .header__toggle-bars .bar:nth-child(2) {
  opacity: 0;
}
.header.is-open .header__toggle-bars .bar:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

.header__toggle-label {
  display: block;
  margin-top: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
font-family: "Roboto", sans-serif;
}

/* ---- overlay ---- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2900; /* 修正：ヘッダーより下 */
}

/* header直後のoverlayを開閉 */
.header.is-open + .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Wide Breakpoint */
@media screen and (max-width: 1100px) {
  .header .inner {
  }
}

/* SP */
@media screen and (max-width: 767px) {
  .header .inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 0 0px;
  }

  .header .header__title {
    width: 230px;
  }

  /* トグルは右端に固定サイズで配置 */
  .header__toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 70px;
    /*background: rgba(0, 0, 0, 1);*/
    padding: 5px 0;

    position: relative;
    z-index: 3050; /* 追加：ドロワーに隠れない */
  }

  /* SP: navをドロワー化 */
  .header .header__lst {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(82vw, 340px);

    z-index: 2950; /* 修正：トグル(3050)より下、overlay(2900)より上 */

    background: rgba(0, 0, 0, 0.92);
    transform: translateX(100%);
    transition: transform 0.25s ease;

    padding-top: 96px; /* ヘッダー高さ分（必要に応じて調整） */
  }

  .header.is-open .header__lst {
    transform: translateX(0);
  }

  .header .header__lst__contact {
    background: transparent;
    flex-direction: column;
    align-items: stretch;
  }

  .header .header__lst__contact .item a {
    height: auto;
    padding: 18px 22px;
    justify-content: flex-start;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	color:#fff !important;
  }

  .header .header__lst__contact .bnt-contact a {
    border-bottom: none;
  }


	.header .header__lst__contact .bnt-contact a {
	   background: rgba(0, 51, 144, 1);
	}

	body.otherPage .header.is-open .header__toggle-bars .bar {
		background:#fff;
	}
	body.otherPage .header.is-open .header__toggle-label {
		color:#fff;
	}
}

/* bodyスクロールロック（JSで付与） */
body.is-drawer-open {
  overflow: hidden;
}






/* ===== Intro中はヘッダー非表示 → 終了後に上からスライド表示 ===== */
.header {
  will-change: transform, opacity;
}

/* イントロ中：完全に隠す（クリックも不可） */
html.is-intro-header-hide .header {
  opacity: 0;
  transform: translate3d(0, -110%, 0);
  pointer-events: none;
}

/* イントロ終了後：上からスライドして表示 */
html.is-intro-header-show .header {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms ease;
}

