@charset "UTF-8";
/* ==========================================================================
   ADD-GROUP 共通スタイル（5社共通・原則ここは編集しない）
   --------------------------------------------------------------------------
   色は brand.css 側で上書きする。common.css には「骨格」だけを置く。
   読み込み順： common.css → brand.css → ページ固有CSS
   ========================================================================== */

/* ---- デザイントークン（既定値。brand.css で各社の色に上書きされる） ---- */
:root {
  --brand:            #5d99da;
  --brand-dark:       #4983c4;
  --brand-tint:       rgba(93,153,218,.2);  /* フォーカスリング用 */
  --accent:           #ea6021;

  --text-main:  #333;
  --text-sub:   #666;
  --line:       #ccc;
  --line-light: #e5e5e5;
  --bg-page:    #fff;
  --bg-soft:    #f6f6f6;

  --content-width: 960px;
  --radius: 6px;
  --gap: 24px;

  --font-base: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3",
               "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  --header-logo-h: 44px;   /* ★全社でロゴの高さを揃えるための基準値 */
}

/* ---- リセット（最小限） ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
  background: var(--bg-page);
}
img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }

/* キーボード操作時のフォーカスを必ず見えるようにする */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* 「本文へスキップ」リンク：普段は隠れ、Tabキーで最初に出てくる */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* 「動きを減らす」設定の人にはアニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---- 中央寄せ用ラッパー ---- */
.inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.page-tagline {
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
  padding: 8px 0;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* ★ここが「ヘッダーがずれる」原因への対処。
   ロゴは幅ではなく【高さ】で固定する。
   各社のlogo.gifは縦横比がバラバラなので、幅で揃えると高さが会社ごとに
   変わってしまい、ヘッダーの高さが不揃いになる。高さを基準にすれば
   どんな比率のロゴでもヘッダーの高さは必ず一定になる。 */
.site-logo {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}
.site-logo img {
  display: block;
  height: var(--header-logo-h);
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

/* グローバルナビ */
.global-nav ul {
  display: flex;
  align-items: center;
  font-size: 14px;
  white-space: nowrap;   /* 中途半端な位置で折り返して崩れるのを防ぐ */
}
.global-nav li { position: relative; }
.global-nav li + li { padding-left: 16px; margin-left: 16px; }
.global-nav li + li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1px; height: 14px;
  background: var(--line);
  transform: translateY(-50%);
}
.global-nav a {
  display: block;
  text-decoration: none;
  color: var(--text-main);
  padding: 4px 0;
  transition: color .2s;
}
.global-nav a:hover { color: var(--brand); }
.global-nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

/* ハンバーガーボタン（狭い画面でだけ出る） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  color: var(--text-main);
}
.nav-toggle-bar {
  width: 18px; height: 2px;
  background: currentColor;
  position: relative;
  display: block;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: currentColor;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after  { top: 6px; }

/* ==========================================================================
   メインビジュアル
   ========================================================================== */
.page-hero {
  max-width: var(--content-width);
  margin: 0 auto 8px;
  padding: 0 20px;
}
.page-hero img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

/* パンくず */
.breadcrumb .inner { padding-top: 12px; padding-bottom: 12px; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 12px;
  color: var(--text-sub);
}
.breadcrumb a { color: var(--text-sub); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb li::after { content: "›"; padding-left: 6px; color: var(--line); }
.breadcrumb li:last-child::after { content: none; }

/* ==========================================================================
   本体レイアウト（左ナビ + 右コンテンツ）
   ========================================================================== */
.layout {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  padding-top: 24px;
  padding-bottom: 56px;
}
.sidebar { flex: 0 0 220px; }
.main-content { flex: 1 1 auto; min-width: 0; }

/* サイドナビ */
.side-nav { border-top: 2px solid var(--line-light); }
.side-nav li { border-bottom: 1px solid var(--line-light); }
.side-nav a {
  display: block;
  padding: 14px 12px 14px 30px;
  position: relative;
  text-decoration: none;
  color: var(--text-main);
  font-size: 14px;
  transition: background .2s, color .2s;
}
.side-nav a::before {
  content: "";
  position: absolute;
  left: 12px; top: 50%;
  width: 8px; height: 8px;
  background: var(--brand);
  transform: translateY(-50%);
}
.side-nav a:hover { background: var(--bg-soft); color: var(--brand); }
.side-nav a[aria-current="page"] {
  background: var(--bg-soft);
  color: var(--brand);
  font-weight: 600;
}

/* ページ共通の見出し（service / recruit / company / inquiry で共用） */
.section-heading {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-main);
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--line-light);
}
.section-heading::before {
  content: "";
  display: inline-block;
  width: 6px; height: 1.1em;
  background: var(--brand);
  margin-right: 12px;
  vertical-align: -2px;
  border-radius: 2px;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer { background: var(--brand); color: #fff; }
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 20px;
}
.footer-brand .footer-tagline { font-size: 12px; margin-bottom: 4px; }
.footer-brand .footer-logo {
  font-family: "Arial Black", "Arial Bold", Gadget, sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 28px;
  letter-spacing: 1px;
}
.footer-brand .footer-corp { font-size: 13px; }
.footer-contact { text-align: right; line-height: 1.5; }
.footer-contact .addr { font-size: 14px; }
.footer-contact .tel { font-size: 30px; font-weight: 700; letter-spacing: 1px; }
.footer-contact .tel a { color: #fff; text-decoration: none; }

.footer-bottom {
  background: var(--brand);
  border-top: 1px solid rgba(255,255,255,.5);
}
.footer-bottom .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 12px;
}
.footer-nav ul { display: flex; flex-wrap: wrap; }
.footer-nav li + li { padding-left: 12px; margin-left: 12px; position: relative; }
.footer-nav li + li::before {
  content: "|";
  position: absolute; left: -2px;
  color: rgba(255,255,255,.6);
}
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { color: #fff; font-size: 11px; }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */

/* タブレット〜狭いPC：ナビが中途半端に折り返して崩れる帯域をここで潰す */
@media (max-width: 900px) {
  :root { --header-logo-h: 38px; }
  .global-nav ul { font-size: 13px; }
  .global-nav li + li { padding-left: 12px; margin-left: 12px; }
}

@media (max-width: 768px) {
  .layout { flex-direction: column; }
  .sidebar { flex: 1 1 auto; width: 100%; }
  .side-nav { display: flex; flex-wrap: wrap; border-top: none; }
  .side-nav li { flex: 1 1 40%; }
  .footer-contact { text-align: left; }
  .footer-contact .tel { font-size: 24px; }
  .site-footer .inner,
  .footer-bottom .inner { justify-content: flex-start; }
}

/* スマホ：グローバルナビをハンバーガー式に切り替える */
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-header .inner { flex-wrap: wrap; }
  .global-nav {
    display: none;
    flex: 1 1 100%;
    order: 3;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul {
    flex-direction: column;
    white-space: normal;
    border-top: 1px solid var(--line-light);
  }
  .global-nav li + li {
    padding-left: 0;
    margin-left: 0;
  }
  .global-nav li + li::before { content: none; }
  .global-nav li { border-bottom: 1px solid var(--line-light); }
  .global-nav a { padding: 12px 4px; }
}

@media (max-width: 600px) {
  .section-heading { font-size: 18px; }
}
