/* =========================================================
   HRBIZ Partners — サイト共通スタイル
   モバイルファースト（min-width: 768 / 1024）
   ========================================================= */

:root {
  --hrbiz-font-color: #333333;
  --hrbiz-main-color: #e94709;
  --hrbiz-accent-color: #dae000;
  --hrbiz-white: #ffffff;
  --hrbiz-bg: #ffffff;
  --hrbiz-border: #e8e8e8;
  --white-color: #ffffff;
  --gray-color: #c9c9c9;
  --gradation-color: linear-gradient(
    90deg,
    var(--hrbiz-main-color) 0%,
    var(--hrbiz-accent-color) 100%
  );

  --font-family-base: "Noto Sans JP", "游ゴシック", "Yu Gothic", "游ゴシック体",
    "YuGothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ",
    "Meiryo", sans-serif;
  --font-family-en: "Montserrat", sans-serif;

  --header-height: 56px;
  --nav-gap: 24px;
  --button-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  --inner-max: 1280px;
  --bp-tablet: 768px;
  --bp-desktop: 1024px;
}

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

html {
  font-size: 14px; /* スマホ: 1rem = 14px */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: var(--font-family-base);
  color: var(--hrbiz-font-color);
  background-color: var(--hrbiz-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

/* ---------- Layout utilities ---------- */

.Forsp {
  display: block;
}

.Forpc {
  display: none !important;
}

section {
  padding: 4rem 0;
  overflow: hidden;
}

.inner_box {
  width: 100%;
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  color: var(--hrbiz-font-color);
}

.english_title {
  margin: 0;
  text-align: center;
}

.english_title span {
  display: inline-block;
  font-family: var(--font-family-en);
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  background: var(--gradation-color);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Header / Navigation（モバイル基準） ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  height: var(--header-height);
  background-color: var(--hrbiz-white);
}

.header-contents {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.header_brand {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.header-logo {
  display: block;
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  width: 96px;
}

.header-logo img {
  display: block;
  width: 96px;
  height: auto;
  object-fit: contain;
}

.header_note {
  order: 3;
  margin: 1.5rem 0 0;
  font-size: 0.6875rem; /* 11px */
  font-weight: 500;
  line-height: 1.5;
  color: var(--hrbiz-font-color);
  white-space: normal;
}

.header_note_link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header_note_link:hover,
.header_note_link:focus-visible {
  color: var(--hrbiz-main-color);
}

.g-nav-menu {
  order: 1;
  margin-bottom: 2rem;
}

.menu_item {
  border-bottom: 1px solid var(--gray-color);
}

.menu_link {
  display: block;
  padding: 0.8rem 0.25rem;
  font-size: 0.9375rem; /* 15px */
  font-weight: 500;
  line-height: 1.7;
  color: var(--hrbiz-font-color);
  transition: color 0.2s ease;
}

.menu_link:hover,
.menu_link:focus-visible {
  color: var(--hrbiz-main-color);
}

.header_cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  order: 2;
  width: 100%;
  min-width: 0;
  min-height: 3rem; /* 48px */
  height: auto;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background-color: var(--hrbiz-main-color);
  color: var(--hrbiz-white);
  font-size: 0.9375rem; /* 15px */
  font-weight: 700;
  line-height: 1.4;
  box-shadow: var(--button-shadow);
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.header_cta:hover,
.header_cta:focus-visible {
  box-shadow: none;
  transform: translate(2px, 2px);
}

.header_cta:focus-visible,
.menu_link:focus-visible,
.header_note_link:focus-visible,
.header_menu-btn:focus-visible {
  outline: 2px solid var(--hrbiz-main-color);
  outline-offset: 3px;
}

/* ハンバーガー（モバイル・タブレット） */
.header_menu-btn {
  display: block;
  position: relative;
  width: 24px;
  height: 20px;
  margin-left: auto;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 5;
}

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

.header_menu-btn::before,
.header_menu-btn::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--hrbiz-main-color);
  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;
}

/* スマホ：メニュー全画面 */
.g-nav.menu {
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: calc(var(--header-height) + 1rem) 1rem 1rem;
  background: var(--hrbiz-white);
  box-sizing: border-box;
  text-align: left;
  transition: 0.5s ease;
  overflow-y: auto;
}

.g-nav.menu.open {
  right: 0;
}

/* ---------- Tablet（768px〜） ---------- */

@media screen and (min-width: 768px) {
  html {
    font-size: 16px; /* タブレット〜: 1rem = 16px */
  }

  section {
    padding: 5rem 0;
  }

  .english_title span {
    font-size: 3.5rem;
  }

  .header-contents {
    padding: 0 24px;
    gap: 20px;
  }

  .header-logo {
    width: 112px;
  }

  .header-logo img {
    width: 112px;
    height: 39px;
  }

  /* タブレット：メニューは画面の約1/3 */
  .g-nav.menu {
    width: 33.333%;
    max-width: 420px;
    min-width: 280px;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  }
}

/* ---------- Desktop（1024px〜） ---------- */

@media screen and (min-width: 1024px) {
  :root {
    --header-height: 68px;
  }

  .Forsp {
    display: none !important;
  }

  .Forpc {
    display: inline !important;
  }

  section {
    padding: 6rem 0;
  }

  .header_menu-btn {
    display: none;
  }

  .header-contents {
    gap: 24px;
  }

  .g-nav {
    flex: 1;
    min-width: 0;
  }

  .g-nav.menu {
    position: static;
    right: auto;
    z-index: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    width: auto;
    max-width: none;
    min-width: 0;
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .header_note {
    order: 0;
    margin-top: 0;
    white-space: nowrap;
  }

  .g-nav-menu {
    display: flex;
    align-items: center;
    gap: var(--nav-gap);
    order: 1;
    margin-bottom: 0;
    margin-left: auto;
  }

  .menu_item {
    border-bottom: 0;
  }

  .menu_link {
    display: inline-block;
    padding: 0;
    font-size: 0.75rem; /* 12px */
    white-space: nowrap;
  }

  .g-nav .header_cta {
    order: 2;
    width: fit-content;
    min-width: 148px;
    height: 36px;
    min-height: 0;
    margin-top: 0;
    padding: 0 18px;
    font-size: 0.8125rem; /* 13px */
  }
}


/* ---------- Footer ---------- */

footer {
  padding: 2.8125rem 0 2.5rem;
  background: var(--hrbiz-white);
  color: var(--hrbiz-font-color);
}

footer .footer_box {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

footer .footer_brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
}

footer .footer_brand_logo {
  display: block;
  width: 96px; /* ナビロゴと同じ */
  max-width: 100%;
  height: auto;
}

footer .footer_brand_catch {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--hrbiz-font-color);
}

footer .footer_links {
  display: grid;
  gap: 2rem;
}

footer .footer_links_col {
  padding: 0;
  overflow: visible;
}

footer .footer_links_col h2 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.7;
  text-align: left;
  color: var(--hrbiz-font-color);
}

footer .footer_links_col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
  padding: 0.875rem 0 0;
  list-style: none;
  border-top: 1px solid var(--hrbiz-font-color);
}

footer .footer_links_col li {
  position: relative;
  margin: 0;
  padding-left: 1.3rem;
}

footer .footer_links_col li::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0.9rem;
  transform: translateY(-50%);
  font-size: 0.625rem;
  line-height: 1;
  color: var(--hrbiz-font-color);
}

footer .footer_links_col a {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--hrbiz-font-color);
  text-align: left;
  text-decoration: none;
}

footer .footer_links_col a small {
  align-self: flex-start;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

footer small {
  display: block;
  margin-top: 2.5rem;
  font-size: 0.75rem;
  text-align: center;
  color: var(--hrbiz-font-color);
}

@media screen and (min-width: 768px) {
  footer {
    padding: 4.0625rem 0 2.5rem;
  }

  footer .footer_box {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5rem;
  }

  footer .footer_brand {
    flex-shrink: 0;
    width: 21.25rem;
    gap: 1.25rem;
  }

  footer .footer_brand_logo {
    width: 112px; /* ナビロゴと同じ */
  }

  footer .footer_brand_catch {
    font-size: clamp(1.25rem, 2.3vw, 2.25rem);
  }

  footer .footer_links {
    grid-template-columns: auto auto;
    gap: 3.5rem;
    justify-content: end;
  }

  footer .footer_links_col ul {
    gap: 0.5rem;
  }

  footer small {
    margin-top: 3.75rem;
  }
}

