/* ===================================
   HEADER / DRAWER (latest)
   PC = default, SP = max-width override
=================================== */

/* =========================
   TOP BAR
========================= */
.l_topbar {
  width: 100%;
  background: #0068b7;
  color: #fff;
  font-size: 13px;
  letter-spacing: .04em;
}

.l_topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 左寄せにするなら flex-start */
}

.l_topbar__text {
  margin: 0;
  line-height: 1.4;
}

.l_topbar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
}

.l_header {
  position: fixed;
  top: 30px;
}

@media (max-width:1280px) {
  .l_topbar {
    position: fixed;
    z-index: 999;
  }
}

@media (max-width:960px) {
  .l_topbar__inner {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* ========== Header (PC default) ========== */
.l_header {
  position: absolute;
  /* FVに被せる（固定にするなら fixed に変更） */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: #fff;
  backdrop-filter: blur(2px);
}

.l_header__inner {
  max-width: 100%;
  margin: 0;
  padding: 30px 0 0 22px;
  height: 180px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  justify-content: space-between;
}

/* brand */
.l_header__brand {
  display: flex;
  align-items: center;
  min-width: 320px;
}

.l_header__brandLink {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: .06em;
  line-height: 1.1;
  white-space: nowrap;
}

.l_header__logo {
  height: 82px;
  width: auto;
  display: block;
}

/* nav (center) */
.l_header__nav {
  flex: 1;
  display: flex;
  justify-content: end;
}

.l_header__menu {
  display: flex;
  align-items: center;
  gap: 48px;
  list-style: none;
  margin: 0;
}

.l_header__item {
  margin: 0;
}

.l_header__link {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .10em;
  padding: 10px 0;
}

.l_header__link:hover {
  opacity: .7;
}


.l_header__btn {
  height: 130%;
  width: 100%;
  padding: 0;
  border-radius: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
}

.l_header__btn--contact {
  background: #0068b7;
  color: #fff;
  font-size: 0;
  /* 表示文字は疑似要素でCONTACTに */
}

a.l_header__btn:hover {
  /* opacity: 0.6; */
  background: #0068b7;
}

/* envelope icon */
.l_header__btn--contact::before {
  content: "";
  width: 50px;
  height: 40px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cg fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6' width='56' height='36' rx='2'/%3E%3Cpath d='M6 10 L32 28 L58 10'/%3E%3Cpath d='M6 40 L24 24'/%3E%3Cpath d='M58 40 L40 24'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .95;
}

.l_header__btn--contact::after {
  content: "CONTACT";
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
}

/* ========== Toggle (default: hidden on PC) ========== */
.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 (default: hidden) ========== */
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: 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%;
}

.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_header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-right: 30px;
}

/* 上段：電話番号とボタンを横並び */
.l_header__topRow {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 電話番号 */
.l_header__telNum {
  font-weight: 900;
  font-size: 38px;
  letter-spacing: .02em;
  color: #df4b4b;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

/* 受付時間（下段） */
.l_header__topNote {
  font-size: 14px;
  color: rgba(0, 0, 0, .72);
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
}

a.l_header__mailBtn {
  background: #0068b7;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 22px;
  border-radius: 12px;
}

a.l_header__mailBtn:hover {
  opacity: 0.8;
}

/* ========== SP override ========== */
@media (max-width: 1280px) {

  /* ✅ SPだけ：アンカーの飛び先が固定ヘッダーに隠れないようにする */
  :root {
    --anchor-offset: 84px;
    /* 74px + 余白10pxくらい（必要なら調整） */
  }

  [id] {
    scroll-margin-top: var(--anchor-offset);
  }

  .l_header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
  }

  .l_header__inner {
    height: 80px;
    padding: 72px 12px 42px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* 左：ロゴ＋社名 */
  .l_header__brand {
    min-width: 0;
    flex: 1;
  }

  .l_header__logo {
    height: 46px;
    width: auto;
    display: block;
  }

  /* SPは横メニュー非表示 */
  .l_header__nav {
    display: none;
  }

  /* 右：MENUボタン（現状維持） */
  .l_header__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border: 0;
    border-radius: 6px;
    background: #0068b7;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    cursor: pointer;
    position: relative;
  }

  /* ===============================
     ✅ 三本線 → 二本線（ここが変更点）
     - 3本目（::after）を消す
     - 2本の見た目が中央にくるよう微調整
  =============================== */

  .l_header__toggleLines {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 3px;
    background: #fff;
    transform: translate(-50%, -50%) translateY(-4px);
    /* 2本の中心合わせ */
  }

  .l_header__toggleLines::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    /* 下の線 */
    width: 26px;
    height: 3px;
    background: #fff;
  }

  /* 3本目を消す */
  .l_header__toggleLines::after {
    display: none !important;
  }

  /* MENU文字：下に固定（現状維持） */
  .l_header__toggle .screen-reader-text {
    position: absolute !important;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);

    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    color: #fff;
    line-height: 1;
  }

  /* PC側の「CONTACT右端固定」をSPでは確実に無効化 */
  .l_header__item:last-child {
    position: static !important;
    width: auto !important;
    height: auto !important;
  }

  /* =========================
     Drawer (SP) 画像寄せ（現状維持）
  ========================= */

  .l_drawer {
    display: block !important;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;

    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }

  .l_header.is-drawer-open .l_drawer {
    opacity: 1;
    pointer-events: auto;
  }

  .l_drawer__overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    background: rgb(0 104 183 / 90%);

    backdrop-filter: blur(6px);
  }

  .l_drawer__panel {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    background: transparent;
    padding: 0;
    box-shadow: none;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate3d(0, -100%, 0);
    transition: transform .38s cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
  }

  .l_header.is-drawer-open .l_drawer__panel {
    transform: translate3d(0, 0, 0);
  }

  .l_drawer__close {
    position: absolute;
    top: 50px;
    right: 12px;
    border: 1px solid #fff;
    width: 62px;
    height: 62px;
    border: 0;
    border-radius: 6px;
    background: #0068b7;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    cursor: pointer;
  }

  .l_drawer__close span[aria-hidden="true"] {
    display: none;
  }

  .l_drawer__close::before,
  .l_drawer__close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 26px;
    height: 3px;
    background: #fff;
    transform-origin: center;
  }

  .l_drawer__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .l_drawer__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .l_drawer__close .screen-reader-text {
    position: absolute !important;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);

    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;

    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
  }

  /* ===== Nav (center) ===== */
  .l_drawer__nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  /* ✅ ドロワーを ul/li にしても崩れないように追加 */
  .l_drawer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  .l_drawer__link {
    border: 0;
    padding: 0;
    text-align: center;

    color: #fff;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: .08em;
    text-decoration: none;
  }

  .l_drawer__link:hover {
    opacity: .85;
  }

  /* スマホの時はボタン表示させない。 */
  .l_header__right {
    display: none;
  }
}


@media (max-width: 780px) {

  .l_header__brandLink {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    color: #5a5a5a;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: .02em;
    text-decoration: none;
  }

}

@media (max-width: 379px) {
  .l_header__inner {
    height: 130px;
    padding: 72px 12px 30px;
  }
}