/* ========================================================
 Header (fixed化) 
 ======================================================== */
.l_header {
  position: fixed;
  /* absolute → fixed */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.85);
  /* 少しだけ白を強める */
  backdrop-filter: blur(6px);
  /* ガラス感（対応ブラウザのみ） */
}

.l_header__caption_pc h2 {
  padding: 0px 0 5px 0;
  margin-bottom: 0;
  font-size: clamp(11px, 1vw, 13px);
}

.l_header__caption_sp {
  display: none;
}

.l_header__inner {
  /* max-width: 1080px; */
  margin: 0 auto;
  padding: 0 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.l_header__brand {
  margin-bottom: 0;
}

.l_header__brandLink {
  display: inline-flex;
  align-items: center;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
  color: #333;
}

.l_header__logo {
  width: 150px;
  display: block;
}

.l_header__nav {
  margin-left: auto;
}

.l_header__menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.l_header__link {
  color: #111;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  position: relative;
  padding: 8px 2px;
}

.l_header__link:hover {
  opacity: .75;
}

.l_header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.l_header__btn--recruit {
  background: var(--cta);
  color: #fff;
}

.l_header__btn--contact {
  background: var(--cta);
  /* 青 */
  color: #fff;
}

/* ========== SP toggle ========== */
.l_header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.l_header__toggleLines {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  position: relative;
  margin: 0 auto;
}

.l_header__toggleLines::before,
.l_header__toggleLines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #111;
}

.l_header__toggleLines::before {
  top: -7px;
}

.l_header__toggleLines::after {
  top: 7px;
}

/* ========== Drawer ========== */
html.is-locked,
html.is-locked body {
  overflow: hidden;
}

.l_drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.l_header.is-drawer-open .l_drawer {
  display: block;
}

.l_drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
}

.l_drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  /* width: min(86vw, 360px); */
  width: 100%;
  height: 100%;
  background: #fff;
  padding: 18px 18px 22px;
  box-shadow: -12px 0 32px rgba(0, 0, 0, .16);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
}

.l_drawer__close {
  align-self: flex-end;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.l_drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
  width: 100%;
  /* align-items: center; */
}

.l_drawer__link {
  text-decoration: none;
  color: #111;
  font-weight: 700;
  padding: 12px 10px;
  /* border-bottom: 1px solid rgba(0, 0, 0, .08); */
  text-align: center;
}

.l_drawer__btn {
  margin-top: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  font-weight: 800;
  letter-spacing: .06em;
}

.l_drawer__btn--recruit {
  background: var(--cta);
  color: #fff;
}

.l_drawer__btn--contact {
  background: #000;
  color: #fff;
}

/* =========================
   お問い合わせを目立たせる（アイコンなし）
========================= */

.l_header__btn--contact {
  height: 80px;
  /* ← 少し大きめ */
  padding: 0 26px;
  /* 少しだけ大きく */
  font-weight: 800;
  letter-spacing: .08em;
  /* 既存カラー */
  color: #fff;

  box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

/* hover */
.l_header__btn--contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .2);
  opacity: .95;
}


/* =========================
   Drawer：全画面（強制）
========================= */
.l_drawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: none;
  height: 100vh;
}

.l_header.is-drawer-open .l_drawer {
  display: block !important;
}

.l_drawer__overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, .35) !important;
}

/* “白いパネル”を画面いっぱいにする */
.l_drawer__panel {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  background: #fff !important;
  padding: 110px 20px 40px !important;
  /* ヘッダー分あける：必要なら調整 */
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-direction: column !important;
  gap: 14px !important;
}

/* ナビを中央寄せで大きく */
.l_drawer__nav {
  width: min(520px, 100%) !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.l_drawer__link {
  font-size: 18px !important;
  padding: 16px 14px !important;
  text-align: center !important;
}

/* もし×ボタンが残っていても非表示にする（保険） */
.l_drawer__close {
  display: none !important;
}


/* =========================
   トグルボタンを固定＆×に変形（ズレ防止）
========================= */

/* ふだん */
.l_header__toggle {
  position: relative;
  z-index: 10000;
}

/* 開いた時：トグルを画面右上に固定（ここが“ズレ対策”の肝） */
.l_header.is-drawer-open .l_header__toggle {
  position: fixed !important;
  top: 26px !important;
    right: 5px !important;
  z-index: 100000 !important;
}

/* 三本線 → × */
.l_header.is-drawer-open .l_header__toggleLines {
  background: transparent !important;
}

.l_header.is-drawer-open .l_header__toggleLines::before {
  top: 0 !important;
  transform: rotate(45deg) !important;
}

.l_header.is-drawer-open .l_header__toggleLines::after {
  top: 0 !important;
  transform: rotate(-45deg) !important;
}

/* アニメ */
.l_header__toggleLines,
.l_header__toggleLines::before,
.l_header__toggleLines::after {
  transition: transform .2s ease, background-color .2s ease, top .2s ease;
}


/* SP：ボタン感をもっと出す（ドロワー内の「お問い合わせ」も目立たせたい場合） */
@media (max-width:768px) {

  .l_drawer__link[href$="/contact"],
  .l_drawer__link[href$="/contact/"] {
    background: var(--cta);
    color: #fff;
    border-radius: 999px;
    border-bottom: 0;
    margin-top: 8px;
    padding: 14px 12px;
    font-weight: 800;
  }

  .l_header__nav {
    display: none;
  }

  .l_header__logo {
    width: 110px;
  }

  .l_header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }


  .l_header__caption_sp {
    display: block;
  }

  .l_header__caption_sp h2 {
    font-size: 10.5px;
        padding: 5px 10px;
        margin-bottom: 0;
  }

  .l_header__caption_pc {
    display: none;
  }
}







/* ==============================
   ベース・共通スタイル
   ============================== */
.hrms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ボタンの基本設定（角を丸くしない） */
.hrms-btn {
    display: inline-block;
    padding: 15px 40px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 0; /* 丸角なし */
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hrms-btn--primary {
    background-color: #d32f2f; /* 赤：情熱・買取 */
    color: #fff;
}
.hrms-btn--primary:hover { background-color: #b71c1c; }

.hrms-btn--secondary {
    background-color: #1976d2; /* 青：信頼・整備 */
    color: #fff;
}
.hrms-btn--secondary:hover { background-color: #1565c0; }

.hrms-btn--outline {
    background-color: transparent;
    border: 2px solid #fff; /* 白：技術・ニュートラル */
    color: #fff;
}
.hrms-btn--outline:hover { background-color: #fff; color: #333; }


/* ==============================
   ヒーローセクション専用スタイル
   ============================== */
.hrms-hero {
    position: relative;
    width: 100%;
    height: 40vh; /* 画面高の80% */
    min-height: 600px;
    overflow: hidden;
    background-color: #000;
    padding: 0;
}

/* スライダー全体の高さを確保 */
.hrms-hero-slider {
    width: 100%;
    height: 100%;
}

.hrms-hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* 上下中央揃え */
    overflow: hidden;
}

/* --- 背景画像の設定（脱AIポイント： object-fit） --- */
.hrms-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* 画面全体を覆う */
    background-position: center; /* 中央合わせ */
    z-index: 1;
    transition: transform 10s ease-out; /* スライド時にわずかに動かす（オプション） */
}

/* 画像の割り当て（添付画像を使用） */
.hrms-hero-image--kaitori {
    background-image: url('../images/kaitori-hero-01.jpeg'); /* 車のリアショット */
}
.hrms-hero-image--maintenance {
    background-image: url('../images/top-hero-01.jpeg'); /* レンチを持つ手 */
}
.hrms-hero-image--overhaul {
    background-image: url('../images/top-hero-03.jpeg'); /* エンジン内視鏡 */
    background-position: right;
}

/* --- 【最重要】文字の視認性を確保するオーバーレイ --- */
.hrms-hero-content {
    position: relative;
    z-index: 2; /* 画像より前面に */
    width: 100%;
    color: #fff;
    /* 左側を暗くするグラデーションで、文字を際立たせる */
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    padding: 60px 0;
    height: 100%;
    display: flex;
    align-items: center;
}

/* --- タイポグラフィ --- */
.hrms-hero-label {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.2em;
    color: #d32f2f; /* アクセントカラー */
    margin-bottom: 15px;
}

.hrms-hero-title {
    font-size: 3rem; /* PCサイズ */
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 900;
    text-align: left;
}

.hrms-hero-title__main {
    display: block;
    font-size: 0.7em; /* メインは少し小さく */
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0px 0px 2px #fff;
    background: linear-gradient(#fff, #aaa 150%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    z-index: 11;
    -webkit-text-stroke: 0.5px rgba(0,0,0,0.05);
    text-align: left;
}

.hrms-hero-title__sub {
    display: block;
    font-size: 1em; /* サブ（キーワード）を大きく */
    text-shadow: 0px 0px 2px #fff;
    background: linear-gradient(#fff, #aaa 150%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    z-index: 11;
    -webkit-text-stroke: 0.5px rgba(0,0,0,0.05);
    text-align: left;
}

.hrms-hero-text {
    font-size: 1.1rem;
    max-width: 650px; /* 読みやすい幅に制限 */
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.8;
}


/* Swiperボタンのカスタマイズ */
.hrms-hero .swiper-button-next,
.hrms-hero .swiper-button-prev {
    color: #fff;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3); /* 控えめな背景 */
    border-radius: 0; /* ここでも丸角は使わない */
}

.hrms-hero .swiper-button-next:after,
.hrms-hero .swiper-button-prev:after {
    font-size: 20px; /* 矢印を少し小さくしてシャープに */
}

/* ドット（ページネーション）を赤に */
.hrms-hero .swiper-pagination-bullet-active {
    background: #d32f2f !important;
}

/* --- スマホ対応（レスポンシブ） --- */
@media (max-width: 768px) {
    .hrms-hero { height: 100vh; } /* スマホは全画面に */
    
    .hrms-hero-content {
        background: rgba(0,0,0,0.6); /* スマホは全体を暗く */
        text-align: center; /* 中央揃えに */
        padding: 40px 0;
    }
    
    .hrms-hero-title { font-size: 2rem; }
    .hrms-hero-text { font-size: 1rem; margin-bottom: 30px; }
    .hrms-btn { width: 100%; padding: 12px 20px; } /* ボタンを全幅に */
}