:root {
  --font-color: #333333;
  --white-color: #ffffff;
  --gray-color: #eeeeee;
  --nav-text: #ffffff;
  --primary-900: #3c0300;
  --primary-700: #6b2800;
  --primary-500: #a84a00;
  --secondary-500: #ea691f;
  --accent-500: #fbbf24;
  --bg-section: #f3f1ee;
  --bg-gray: #f8f7f5;
  --border-color: #e6e2dd;
  --header-cta-bg: #fbbf24;
  --header-cta-text: #3c0300;
  --header-cta-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  --cta-bg: #fbbf24;
  --cta-text: #3c0300;
  --cta-secondary-bg: #ffffff;
  --cta-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  --gradation-main: linear-gradient(
    111.24deg,
    #ea691f 0%,
    #893900 56.65%,
    #6b2800 98.2%
  );
  --font-family: "Montserrat", "Noto Sans JP", sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-family);
  color: var(--font-color);
  background: #ffffff;
}

img {
  display: inline-block;
  max-width: 100%;
}

/* SP表示 / PC表示（モバイルファースト） */
.Forsp {
  display: block;
}

.Forpc {
  display: none;
}

@media screen and (min-width: 1024px) {
  .Forsp {
    display: none;
  }
  .Forpc {
    display: block;
  }
}

/* ----------
共通レイアウト
---------- */
.inner_box {
  margin: 0 auto;
  position: relative;
  max-width: 1200px;
  padding: 0 clamp(1rem, 0.5rem + 1.07vw, 5rem);
}

.title_box {
  text-align: center;
  margin-bottom: clamp(2rem, 1.5rem + 1.07vw, 3rem);
}

.en_title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.7;
  background: var(--gradation-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title_box h2 {
  margin: 0.5rem 0 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1.375rem, 1rem + 0.8vw, 2rem);
  font-weight: 700;
  line-height: 1.7;
  color: var(--primary-900);
}

.title_box .sub_title {
  margin: 0.75rem 0 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--primary-900);
}

/* ----------
ヘッダー / ナビゲーション（Figma: navigation 22:2525）
モバイルファースト → min-width: 1024px で横並び
ナビはFVの上にオーバーレイ。スクロール時のみ薄いFVグラデ背景
---------- */
#header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  pointer-events: none;
}

#header .header_bar,
#header .header_note,
#header .header_brand,
#header .header_menu-btn,
#header .header_nav,
#header .header_cta {
  pointer-events: auto;
}

#header .header_bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  background: transparent;
  transition: background 0.3s ease;
}

#header.is-scrolled .header_bar {
  background: linear-gradient(
    111.24deg,
    rgba(234, 105, 31, 0.82) 0%,
    rgba(137, 57, 0, 0.82) 56.65%,
    rgba(107, 40, 0, 0.82) 98.2%
  );
}

#header .header_inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.7rem 1rem;
}

#header .header_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

/* ブランド（採用コンサルティング | HRBIZ） */
#header .header_brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--nav-text);
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

#header .header_brand-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  white-space: nowrap;
}

#header .header_brand-divider {
  display: block;
  width: 1px;
  height: 1.25rem;
  background: var(--nav-text);
  flex-shrink: 0;
}

#header .header_brand-logo {
  width: 3.2rem;
  height: auto;
  display: block;
}

/* ナビ本体（SP：ドロワー） */
#header .header_nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  padding: 5rem 1.25rem 2rem;
  background: var(--primary-700);
  transition: right 0.5s ease;
  z-index: 3;
  box-sizing: border-box;
  overflow-y: auto;
}

#header .header_nav.open {
  right: 0;
}

/* タブレット：右から幅1/3のカード型メニュー（上下・右は画面端に密着） */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  #header .header_nav {
    top: 0;
    bottom: 0;
    right: -40%;
    width: 33.333%;
    min-width: 17.5rem;
    max-width: 22rem;
    height: 100%;
    height: 100dvh;
    padding: 4.5rem 1.5rem 1.75rem;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.28);
  }

  #header .header_nav.open {
    right: 0;
  }

  #header .header_nav ul li a {
    white-space: normal;
  }
}

#header .header_nav ul {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

#header .header_nav ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#header .header_nav ul li a {
  display: block;
  padding: 0.9rem 0.25rem;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--nav-text);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

#header .header_nav ul li a:hover {
  opacity: 0.7;
}

/* 無料相談 CTA */
#header .header_cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 2.75rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--header-cta-bg);
  color: var(--header-cta-text);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: none;
  box-shadow: var(--header-cta-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

#header .header_cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* 補足テキスト */
#header .header_note {
  margin: 0;
  align-self: stretch;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--nav-text);
  white-space: normal;
  text-align: center;
}

#header .header_note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

#header .header_note a:hover {
  opacity: 0.7;
}

/* ハンバーガー */
.header_menu-btn {
  position: relative;
  width: 24px;
  height: 20px;
  margin-left: auto;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 5;
}

.header_menu-btn span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--nav-text);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: 0.3s ease;
}

.header_menu-btn::before,
.header_menu-btn::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--nav-text);
  border-radius: 2px;
  transition: 0.3s ease;
}

.header_menu-btn::before {
  top: 0;
}

.header_menu-btn::after {
  bottom: 0;
}

.header_menu-btn.active::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.header_menu-btn.active::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.header_menu-btn.active span {
  opacity: 0;
}

/* --- PCヘッダー --- */
@media screen and (min-width: 1024px) {
  #header .header_inner {
    padding: 0.75rem clamp(1rem, 0.282rem + 1.54vw, 2.0625rem)
      0.75rem clamp(1rem, 0.218rem + 1.67vw, 1.9375rem);
  }

  #header > .header_note.Forpc {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 4.5rem clamp(1rem, 0.282rem + 1.54vw, 2.0625rem) 0.75rem;
    font-size: 10px;
    text-align: right;
    white-space: nowrap;
  }

  #header .header_brand-title {
    font-size: clamp(0.875rem, 0.75rem + 0.27vw, 1.232rem);
    letter-spacing: 0.1em;
  }

  #header .header_brand-divider {
    height: 1.64rem;
  }

  #header .header_brand-logo {
    width: 3.9rem;
  }

  #header .header_nav {
    position: static;
    right: auto;
    width: auto;
    height: auto;
    margin-left: auto;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    padding: 0;
    background: transparent;
    overflow: visible;
  }

  #header .header_nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  #header .header_nav ul li {
    border-bottom: none;
  }

  #header .header_nav ul li a {
    display: inline;
    padding: 0;
    font-size: 0.75rem;
  }

  #header .header_cta {
    width: auto;
    min-width: 10.4375rem;
  }
}

/* ----------
共通 CTA ボタン（モバイルファースト）
---------- */
.cta_area {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
}

.cta_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 3.125rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: none;
  box-shadow: var(--cta-shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  box-sizing: border-box;
}

.cta_btn:hover {
  transform: translateY(2px);
  box-shadow: none;
}

.cta_btn--secondary {
  background: var(--cta-secondary-bg);
  color: var(--cta-text);
}

@media screen and (min-width: 1024px) {
  .cta_area {
    flex-direction: row;
    align-items: center;
  }

  .cta_btn {
    width: auto;
    min-width: 12.5rem;
  }
}

/* ----------
ロゴスライダー（.company）
---------- */
.company {
  background: #ffffff;
  padding: 1rem 0;
}

.company .logo-marquee {
  --gap: 0.5rem;
  overflow: hidden;
  display: flex;
  width: 100%;
}

.company .marquee__group {
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  min-width: max-content;
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: var(--gap);
  animation: company-scroll 50s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.company .marquee__group:nth-of-type(2) {
  margin-left: var(--gap);
}

.company .company_logo {
  flex: 0 0 auto;
}

.company .company_logo img {
  display: block;
  width: 120px;
  height: 70px;
  object-fit: contain;
  margin: 0 auto;
}

@keyframes company-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-100% - var(--gap)), 0, 0);
  }
}

@media screen and (min-width: 1024px) {
  .company {
    flex-shrink: 0;
  }

  .company .logo-marquee {
    --gap: 1rem;
  }

  .company .company_logo img {
    width: 150px;
    height: 90px;
  }
}
