/* ============================================================
   /v2/css/header.css
   目的：共通ヘッダーのスタイル（sticky、レスポンシブ）
   ※重複していたメディアクエリや指定を整理
     → 機能・デザインはそのまま（見た目は変えない）
   ============================================================ */


/* ================================
   変数フォールバック
================================ */
:root {
  --header-orange: var(
    --hero-orange,
    #e36000
  );
  --header-black: var(
    --hero-black,
    #000000
  );
  --header-white: var(
    --hero-bg,
    #ffffff
  );
  --header-border: #dddddd;
}


/* ================================
   スキップリンク
================================ */
.skipLink {
  position: absolute;
  top: -40px;
  right: auto;
  bottom: auto;
  left: 0;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0.5rem;
  padding-right: 0.75rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;

  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none;

  color: var(--header-white);
  background-color: var(--header-orange);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);

  z-index: 10000;
}

.skipLink:focus {
  position: absolute;
  top: 8px;
  right: auto;
  bottom: auto;
  left: 8px;

  outline-width: 0;
  outline-style: none;
}


/* ================================
   ヘッダー全体
================================ */
.siteHeader {
  /* 位置系：画面上部に固定（PC） */
  position: fixed;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;

  /* ボックス系 */
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;

  width: 100%;

  /* 重なり順（コンテンツより前面に） */
  z-index: 9000;

  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: var(--header-border);

  background-color: var(--header-white);
}

/* ヘッダー内側のレイアウト */
.siteHeader__inner {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;

  margin-top: 0;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;

  padding-top: 0;
  padding-right: 1.5rem;
  padding-bottom: 0;
  padding-left: 1.5rem;

  max-width: 1120px;
  min-height: 64px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 右側（ナビ＋ハンバーガー or ボタン） */
.siteHeader__right {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  column-gap: 1rem;
}


/* ================================
   ロゴ
================================ */
.siteHeader__logo {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;

  margin-top: 0;
  margin-right: 1rem;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
}

.siteHeader__logoLink {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0.25rem;
  padding-right: 0;
  padding-bottom: 0.25rem;
  padding-left: 0;

  display: inline-flex;
  align-items: center;
  justify-content: flex-start;

  text-decoration: none;

  color: var(--header-black);
}

.siteHeader__logoImg {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;

  height: 40px;
  width: auto;
}

.siteHeader__logoLink:focus-visible {
  outline-width: 2px;
  outline-style: solid;
  outline-color: var(--header-orange);
  outline-offset: 2px;
}


/* ================================
   ハンバーガーボタン（PCでは非表示）
================================ */
.siteHeader__toggleCheckbox {
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: auto;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}

.siteHeader__toggleButton {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;

  width: 44px;
  height: 44px;

  display: none;

  align-items: center;
  justify-content: center;

  cursor: pointer;
}

/* 3本線枠 */
.siteHeader__toggleIcon {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;

  width: 24px;
  height: 18px;

  display: block;
}

/* 3本線 */
.siteHeader__toggleLine {
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;

  width: 100%;
  height: 2px;

  background-color: var(--header-orange);

  transition-property: transform, opacity;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

.siteHeader__toggleLine:nth-child(2) {
  top: 8px;
}

.siteHeader__toggleLine:nth-child(3) {
  top: 16px;
}

/* ラベル（スクリーンリーダー用） */
.siteHeader__toggleLabel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;

  width: 1px;
  height: 1px;
  overflow: hidden;

  clip: rect(
    0,
    0,
    0,
    0
  );

  white-space: nowrap;
  border-width: 0;
  border-style: none;
}


/* ================================
   グローバルナビ（PC）
================================ */
.siteHeader__nav {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 2rem;

  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* メニューリスト（PC横並び） */
.siteHeader__navList {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;

  margin-top: 0;
  margin-right: 1.5rem;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  list-style: none;

  column-gap: 1.5rem;
}

/* 各メニュー項目 */
.siteHeader__navItem {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
}

/* 通常リンク */
.siteHeader__navLink {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0.75rem;
  padding-right: 0.25rem;
  padding-bottom: 0.75rem;
  padding-left: 0.25rem;

  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  justify-content: center;

  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 500;

  text-decoration: none;

  color: var(--header-black);
  border-bottom-width: 2px;
  border-bottom-style: solid;
  border-bottom-color: transparent;

  transition-property: color, border-bottom-color;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

/* ホバー時 */
.siteHeader__navLink:hover {
  color: var(--header-orange);
  border-bottom-color: var(--header-orange);
  text-decoration: none;
}

/* カレント用 */
.siteHeader__navLink.is-current {
  font-weight: 700;
  color: var(--header-black);
  border-bottom-color: var(--header-orange);
}

/* フォーカス可視化 */
.siteHeader__navLink:focus-visible {
  outline-width: 2px;
  outline-style: solid;
  outline-color: var(--header-orange);
  outline-offset: 2px;

  text-decoration: none;
}


/* ================================
   PC：右側の2ボタン
================================ */
.siteHeader__navActions {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  column-gap: 0.75rem;
}

.siteHeader__navAction {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0.55rem;
  padding-right: 1.4rem;
  padding-bottom: 0.55rem;
  padding-left: 1.4rem;

  font-size: 0.9rem;
  line-height: 1.1;

  text-decoration: none;
}

.siteHeader__navAction:hover {
  text-decoration: none;
}

.siteHeader__navAction:focus-visible {
  outline-width: 2px;
  outline-style: solid;
  outline-color: var(--header-orange);
  outline-offset: 2px;
}


/* ================================
   SPレイアウト（〜960px）
   - ヘッダーは流れる
   - ナビはヘッダー直下カード表示
================================ */
@media (max-width: 960px) {

  .siteHeader__inner {
    align-items: center;
  }

  /* SPのときだけハンバーガー（上部）は表示しない
     → 下部バーのハンバーガーを使う */
  .siteHeader__toggleButton {
    display: none !important;
  }

  /* ナビはヘッダー直下の右上に小さめカードで表示 */
  .siteHeader__nav {
    position: absolute;
    top: 100%;
    right: 0;
    bottom: auto;
    left: auto;

    margin-top: 0.25rem;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;

    padding-top: 0;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;

    width: auto;
    min-width: 0;
    max-width: none;
    max-height: 0;
    overflow: hidden;

    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: transparent;
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: var(--header-border);

    background-color: var(--header-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    transition-property: max-height, border-bottom-color;
    transition-duration: 0.25s;
    transition-timing-function: ease;
  }

  .siteHeader__navList {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;

    margin-top: 0;
    margin-right: 0;
     margin-bottom: 0.5rem;
    margin-left: 0;

    padding-top: 0.5rem;
    padding-right: 1.25rem;
    padding-bottom: 0.5rem;
    padding-left: 1.25rem;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    row-gap: 0;
    column-gap: 0;
  }

  .siteHeader__navLink {
    justify-content: flex-start;

    padding-top: 0.7rem;
    padding-right: 0;
    padding-bottom: 0.7rem;
    padding-left: 0;

    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: var(--header-border);
  }

  .siteHeader__navItem:last-child
  .siteHeader__navLink {
    border-bottom-width: 0;
    border-bottom-style: none;
    border-bottom-color: transparent;
  }

  .siteHeader__navLink.is-current {
    border-bottom-color: var(--header-orange);
  }

  /* SP時はナビ内のボタンは非表示（下部固定に任せる） */
  .siteHeader__navActions {
    display: none;
  }

  /* チェックON、または .is-open で開く（※重複していた指定を1本化） */
  .siteHeader__toggleCheckbox:checked
  ~ .siteHeader__nav,
  .siteHeader.is-open
  .siteHeader__nav {
    max-height: 70vh;
    border-bottom-color: var(--header-border);
  }

  /* SPではヘッダーを固定しない（上に流れる） */
  .siteHeader {
    position: static;
  }

  /* ヘッダー高さ分の上余白はSPでは不要にする */
  body {
    padding-top: 0;
  }
}


/* ================================
   SP専用：画面下固定ボタン（デフォルト非表示）
================================ */
.siteHeaderSpSupport {
  position: fixed;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;

  display: none;

  z-index: 8500;
}

.siteHeaderSpSupport__inner {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;

  margin-top: 0;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;

  padding-top: 0.5rem;
  padding-right: 1rem;
  padding-bottom: 0.75rem;
  padding-left: 1rem;

  max-width: 1120px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 0.75rem;

  background-color: var(--header-white);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.siteHeaderSpSupport__btn {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0.7rem;
  padding-right: 0;
  padding-bottom: 0.7rem;
  padding-left: 0;

  flex-grow: 1;
  flex-basis: 0;

  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
}


/* ================================
   SP専用：下部ボタンの表示＆中央寄せ（〜960px）
================================ */
@media (max-width: 960px) {

  .siteHeaderSpSupport {
    display: block;
  }

  /* ボタン2つぶんの幅だけを中央に寄せる */
  .siteHeaderSpSupport__inner {
    justify-content: center;
    column-gap: 0.75rem;

    max-width: 100%;
  }

  .siteHeaderSpSupport__btn {
    flex-grow: 0;
    flex-basis: auto;
    min-width: 120px;
  }

  /* 下固定バーで隠れないように本文下に余白をつける */
  body {
    padding-bottom: 4.5rem;
  }
}


/* ================================
   ヘッダー固定用：本文の上余白（PCのみ）
================================ */
@media (min-width: 961px) {
  body {
    padding-top: 64px;
  }
}


/* ================================
   SP：下固定バーにハンバーガーを表示（〜960px）
================================ */
@media (max-width: 960px) {

  /* 下バーに並べるメニューアイコン（共通） */
  .siteHeaderSpSupport__menu {
    position: relative;
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: auto;
  }

  /* 三本線アイコン枠 */
  .siteHeaderSpSupport__menuIcon {
    position: relative;
    width: 26px;
    height: 20px;
  }

  .siteHeaderSpSupport__menuIcon span {
    position: absolute;
    left: 0;

    width: 100%;
    height: 2px;

    background-color: var(--header-black);
  }

  .siteHeaderSpSupport__menuIcon span:nth-child(1) {
    top: 0;
  }

  .siteHeaderSpSupport__menuIcon span:nth-child(2) {
    top: 9px;
  }

  .siteHeaderSpSupport__menuIcon span:nth-child(3) {
    top: 18px;
  }
}


/* ================================
   SP：ヘッダー高さの調整（〜767.98px）
================================ */
@media (max-width: 767.98px) {

  /* ロゴぶんだけの高さにする */
  .siteHeader__inner {
    min-height: 52px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
}


/* ================================
   SP：下固定ハンバーガーのデザイン（〜767.98px）
================================ */
@media (max-width: 767.98px) {

  /* ラベル全体（縦にアイコン＋文字） */
  .siteHeaderSpSupport__menu {
    position: relative;

    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;

    padding-top: 0;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;

    width: 3rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
  }

  /* 三本線の枠（少し小さく） */
  .siteHeaderSpSupport__menuIcon {
    position: relative;

    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0.1rem;
    margin-left: 0;

    width: 22px;
    height: 16px;
  }

  /* 三本線（オレンジ） */
  .siteHeaderSpSupport__menuIcon span {
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;

    width: 100%;
    height: 2px;

    background-color: var(--header-orange);
  }

  .siteHeaderSpSupport__menuIcon span:nth-child(2) {
    top: 7px;
  }

  .siteHeaderSpSupport__menuIcon span:nth-child(3) {
    top: 14px;
  }

  /* 下の「menu」文字（オレンジ） */
  .siteHeaderSpSupport__menuText {
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;

    font-size: 0.65rem;
    line-height: 1;
    font-weight: 600;

    color: var(--header-orange);
  }
}

/* ================================
   SPナビ：下部バーからのスライドメニュー（調整済）
================================ */
@media (max-width: 767.98px) {

  /* ▼ナビ全体（左右位置の基準） */
  .siteHeader__nav {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 56px;
    left: 0;

    max-height: 70vh;
    overflow-y: auto;

    padding-top: 0.75rem;
    padding-right: 1rem;
    padding-bottom: 1rem;

    /* ★全体を右へ1.2remずらす：ここが今回の調整ポイント */
    padding-left: calc(1rem + 2.5rem);

    text-align: center;

    background-color: #ffffff;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.18);
    z-index: 999;

    transform: translateY(100%);
    transition: transform 0.25s ease-out;
  }

  .siteHeader__toggleCheckbox:checked ~ .siteHeader__nav {
    transform: translateY(0);
  }

  /* ▼メニュー2カラム（中央寄せ＋左揃え） */
  .siteHeader__navList {
    margin: 0 auto 0.75rem auto;

    display: inline-grid;
    grid-template-columns: auto auto;
    row-gap: 0.5rem;
    column-gap: 1.5rem;

    padding: 0;
    list-style: none;
    align-items: start;
  }

  /* ▼項目（左揃え） */
  .siteHeader__navItem {
    margin: 0;
    padding: 0;
    width: auto;
    text-align: left;
  }

  /* ▼リンク（左揃え＋オレンジ下線） */
  .siteHeader__navLink {
    display: block;
    padding: 0.6rem 0 0.3rem 0;
    font-size: var(--hero-text-md);
    font-weight: 600;
    text-align: left;
    color: var(--hero-black);

    border-bottom: 2px solid var(--hero-orange);
  }

  /* ▼最後の項目も確実に下線つける */
  .siteHeader__navItem:last-child .siteHeader__navLink {
    border-bottom: 2px solid var(--hero-orange) !important;
  }

  /* ▼「トップ」だけスマホ表示 */
  .siteHeader__navItem--spOnly {
    display: block;
  }

  /* ▼PC用ボタンは消す */
  .siteHeader__navActions {
    display: none;
  }


  /* ================================
     SPナビ下：SNSアイコン（中央＋縦1列）
  ================================ */

  .siteHeader__sns {
     margin-top: 0.5rem;
    margin-right: 0;
    margin-bottom: 0;

    /* ★メニューは右へズラすが、
       SNS は中央に戻す（左右補正なし） */
    margin-left: 0;

    width: 100%;
    text-align: center;
    padding: 0.25rem 0;
  }

  .siteHeader__snsList {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    row-gap: 0.75rem;

    padding: 0;
    list-style: none;
    width: fit-content;
     transform: translateX(-0.4rem); 
  }

  .siteHeader__snsItem {
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .siteHeader__snsLink {
    display: inline-block;
    padding: 0;
  }

  /* ★アイコン1.2倍 → 26px */
  .siteHeader__snsIcon {
    width: 26px;
    height: 26px;
  }

  .siteHeader__sns--spOnly {
    display: block;
  }
}

/* ================================
   PC：SNSは非表示/ナビテキスト太字化
================================ */
@media (min-width: 768px) {
  .siteHeader__sns--spOnly {
    display: none;
  }

  /* PC専用：グローバルナビの文字を太字に */
  .siteHeader__navLink {
    /* タイポ系 */
    font-weight: 700;
  }
}

