/* =========================================================
   Common CSS
   ========================================================= */

:root {
  --navy: #081b2d;
  --navy-2: #0d2a43;
  --blue: #087ea4;
  --cyan: #24b6d4;
  --light-blue: #eaf7fa;

  --text: #152536;
  --text-light: #617182;
  --muted: #8a98a7;

  --bg: #f4f6f8;
  --white: #fff;
  --border: #dfe6eb;

  --container: 1240px;
  --radius: 24px;

  --shadow: 0 20px 60px rgba(8, 27, 45, .10);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  line-height: 1.8;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* Header */

/* ヘッダー共通 */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 35, 55, .08);
}

.header-inner {
  width: min(1320px, calc(100% - 48px));
  height: 76px;
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* スマホ */
@media (max-width: 900px) {
  .header-inner {
    width: calc(100% - 32px);
    height: 76px;
    min-height: 76px;
    gap: 12px;
  }

  .mobile-menu {
    display: block;
    flex-shrink: 0;
  }

  .global-nav,
  .header-contact {
    display: none;
  }

  .header-logo img {
    width: 180px;
  }
}
/* ロゴ共通設定 */
.header-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.header-logo img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

/* スマホ版 */
@media (max-width: 900px) {
  .header-logo img {
    width: 180px;
  }
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.global-nav > a,
.nav-dropdown > a {
  display: block;
  padding: 10px 14px;
  color: #334155;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  transition: color .25s ease, background .25s ease;
}

.global-nav > a:hover,
.nav-dropdown > a:hover {
  color: var(--blue);
  background: var(--light-blue);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 230px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .25s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.dropdown-menu a:hover {
  color: var(--blue);
  background: var(--bg);
}

.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.mobile-menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 26px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

/* Footer */

.footer {
  padding: 45px 0;
  color: rgba(255, 255, 255, .65);
  background: var(--navy);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-logo {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.copyright {
  font-size: 11px;
}

/* Mobile Navigation */

@media (max-width: 1100px) {
  .global-nav > a,
  .nav-dropdown > a {
    padding-inline: 8px;
    font-size: 12px;
  }

  .header-contact {
    padding-inline: 13px;
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    width: calc(100% - 32px);
    min-height: 68px;
    gap: 12px;
  }

  .header-logo img {
    width: 180px;
  }

  .global-nav,
  .header-contact {
    display: none;
  }

  .mobile-menu {
    display: block;
    flex-shrink: 0;
  }

  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .98);
    opacity: 0;
    visibility: hidden;
    transition:
      max-height .3s ease,
      opacity .3s ease,
      visibility .3s ease;
  }

  .site-header.menu-open .mobile-nav {
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    border-bottom: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-inner {
    padding: 10px 16px 20px;
  }

  .mobile-nav a {
    display: block;
    padding: 13px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-nav-group {
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav-group > a {
    border-bottom: 0;
  }

  .mobile-subnav {
    margin: 0 0 8px;
    padding-left: 18px;
    list-style: none;
  }

  .mobile-subnav a {
    padding: 9px 10px;
    border-bottom: 0;
    color: var(--muted);
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-logo img {
    width: min(180px, 60vw);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

/* =====================================================
   FIX：メニューバーとヒーローの重なりを解消
===================================================== */

/* 会社概要・採用情報ページ専用 */
.company-page-body .page-hero {
  margin-top: 65px;
}

/* スマートフォン */
@media (max-width: 600px) {
  .company-page-body .page-hero {
    margin-top: 55px;
  }
}


/* フッター全体 */
.footer {
  padding: 25px 0;
  margin: 0;
  height: auto;
  box-sizing: border-box;
}

/* コンテンツ幅を統一 */
.footer .container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ロゴとコピーライトを左右に配置 */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 左側の会社名 */
.footer-logo {
  margin: 0;
  text-align: left;
  line-height: 1.7;
}

/* 右側のコピーライト */
.copyright {
  margin: 0;
  text-align: right;
  line-height: 1.7;
  font-size: 12px;
}

/* スマートフォン */
@media screen and (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo,
  .copyright {
    text-align: center;
  }
}

.page-hero {
  min-height: 0 !important;
  height: auto !important;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  box-sizing: border-box;
}