/* ==========================================================================
   雷神コーポレートヘッダー（本体ページ src/assets/css/style.css の .header と同じ並び・大きさ・位置）
   クラス名は mujin-hanbai.jp / ど冷えもん 既存の header 系と衝突しないよう .rj- 接頭辞。
   v230：raijin-gyouza.jp の旧デザイン（高さ70／56・赤ボタンが中央に浮く・MENU なし）から、
   本体ページ（Figma PC 80px／SP 40px）と同じ組みに作り直した。値は本体の .header から写してある。
   ・PC：高さ80／ロゴ x29.75 y19.25（189×31.5）／ナビ 14px 字間 .16em・右から80／赤ボタン 190 幅・右から40・下だけ角丸10
   ・SP：高さ40／ロゴ x15 y12（91×15.2）／赤ボタン 120×40・右から63・下だけ角丸6／ハンバーガー 38×40 を右15・上15・2本線16×2＋「MENU」（Montserrat 800 10px）
   ========================================================================== */
.rj-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: 80px;
  background: #000;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
}
/* コピー元サイト自身のJSが header タグへ .scroll 等の状態クラスを付与し、
   header.scroll { background:#fff } のような元CSSが（タグ+クラスの詳細度で）
   このヘッダーの背景色を上書きしてしまう事故を防ぐための保険。 */
#rj-js-header.rj-header,
header.rj-header {
  background: #000 !important;
  height: 80px;
}
.rj-header__inner {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 0;
}
.rj-header__logo { display: flex; align-items: flex-start; flex: none; padding: 19.25px 0 0 29.75px; }
.rj-header__logo img { display: block; width: 189px; height: 31.5px; }

.rj-header__nav {
  margin-left: auto;
  margin-right: 80px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.rj-header__nav a {
  position: relative;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .16em;
  line-height: 28px;            /* 本体の .header__nav a（body の行の高さ 28px）と箱をそろえる */
  text-decoration: none;
  white-space: nowrap;
}
.rj-header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) and (pointer: fine) { .rj-header__nav a:hover::after { transform: scaleX(1); transform-origin: left; } }

.rj-header__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 190px;
  margin-right: 40px;
  border-radius: 0 0 10px 10px;
  background: #bf0604;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .16em;
  text-indent: .16em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) and (pointer: fine) { .rj-header__contact:hover { background: #8f0403; } }
.rj-header__contact img { width: 24px; height: 18px; display: block; }

.rj-header__burger { display: none; }

/* ページ本文が固定ヘッダーの下に隠れないための余白 */
.rj-header-spacer { height: 80px; }

@media screen and (max-width: 900px) {
  .rj-header, #rj-js-header.rj-header, header.rj-header { height: 40px; }
  .rj-header-spacer { height: 40px; }
  .rj-header__logo { padding: 12px 0 0 15px; }
  .rj-header__logo img { width: 91px; height: 15.2px; }

  .rj-header__nav {
    position: fixed;
    inset: 40px 0 0 0;
    z-index: 9999;
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
    background: #000;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .rj-header__nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .25s ease, transform .25s ease;
  }
  .rj-header__nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.5;
  }
  .rj-header__nav a::after { display: none; }

  .rj-header__contact {
    order: 2;
    flex-direction: row;
    width: 120px; height: 40px;
    margin-left: auto; margin-right: 63px;
    gap: 6px;
    font-size: 12px; letter-spacing: .02em; text-indent: .02em;
    border-radius: 0 0 6px 6px;
  }
  .rj-header__contact img { width: 15px; height: 11px; }

  .rj-header__burger {
    order: 3;
    position: absolute; right: 15px; top: 0;
    display: grid; align-content: start; justify-items: center; gap: 5px;
    grid-template-columns: 100%;
    width: 38px; height: 40px;
    margin: 0;
    padding: 15px 0 0;
    background: none; border: 0; cursor: pointer; z-index: 1;
    overflow: hidden;
  }
  .rj-header__burger span { display: block; width: 16px; height: 2px; background: #fff; transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .2s; }
  .rj-header__burger span:nth-child(3) { display: none; }   /* Figma SP は2本線 */
  .rj-header__burger::after {
    content: "MENU";
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-weight: 800; font-size: 10px; line-height: 1; letter-spacing: 0; color: #fff;
    white-space: nowrap;
  }
  .rj-header__burger.is-open span { width: 20px; }
  .rj-header__burger.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .rj-header__burger.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .rj-header__burger.is-open::after { content: "CLOSE"; }
}
