/* =========================================
   共通変数（root）
   ========================================= */
:root {
  --brand: #be1e2d;
  --accent: #1266f1;
  --ink: #1d1d1f;
  --ink-weak: #555;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --border: #e6e9ef;
}

/* =========================================
   リセット / ベース
   ========================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", Meiryo, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
}

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

/* =========================================
   共通レイアウト
   ========================================= */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.section {
  padding: 56px 0;
}

.section-alt {
  background-color: var(--bg-soft);
}

.section-title {
  margin: 0 0 22px;
  font-size: 28px;
  border-left: 6px solid var(--brand);
  padding-left: 10px;
}

/* =========================================
   ヘッダー / ナビ
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
}

.logo {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
}

.nav a:hover {
  color: var(--brand);
}

.nav-toggle {
  display: none;
}

/* =========================================
   ヒーロー
   ========================================= */
.hero {
  min-height: 58vh;
  background: url("assets/hero.jpg") center / cover no-repeat;
  position: relative;
  color: #fff;
}

.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.35)
  );
  width: 100%;
  height: 100%;
}

.hero-content {
  padding: 84px 0;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4.2vw, 40px);
}

.hero p {
  margin: 0 0 22px;
  color: #f1f1f1;
  font-size: 20px;
}

/* =========================================
   グリッド / カード
   ========================================= */
.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.card h3 {
  margin: 12px;
  font-size: 18px;
}

.card p {
  margin: 0 12px 16px;
  color: var(--ink-weak);
}

.card.mini {
  padding: 14px;
}

/* =========================================
   リスト
   ========================================= */
.list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-weak);
}

/* =========================================
   ✅ 業務案内：薄い水色背景（統合）
   ========================================= */
#works {
  background-color: #caedf2;
}

#works .card {
  background-color: #ffffff;
}

/* =========================================
   ✅ 実績紹介：Server.jpg 薄背景（統合）
   ========================================= */
#actual {
  position: relative;
  background-image: url("assets/Server.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

#actual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.80);
  z-index: 0;
}

#actual > .container {
  position: relative;
  z-index: 1;
}

#actual .card {
  background-color: #ffffff;
}

/* =========================================
   テーブル
   ========================================= */
.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background-color: #fff;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table th {
  background-color: #fafafa;
  width: 28%;
  white-space: nowrap;
}

/* =========================================
   フッター
   ========================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 14px;
  color: var(--ink-weak);
}

.footer-inner a {
  color: var(--ink-weak);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--brand);
}

/* =========================================
   レスポンシブ
   ========================================= */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
/* ハンバーガーボタンを表示 */
  .nav-toggle {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    gap: 12px;

    display: none;
  }

  .nav.open {
    display: flex;
  }


}

/* =========================================
   ✅ 採用ページ 下部写真 横並び3枚
   ========================================= */
.recruit-tiles {
  display: flex;
  justify-content: center;   /* 中央寄せ */
  align-items: flex-start;
  gap: 20px;                 /* 写真間の余白 */
  margin-top: 24px;
  flex-wrap: nowrap;         /* PCでは横3枚固定 */
}

/* figure の不要な余白リセット */
.recruit-tiles .tile {
  margin: 0;
}

/* 画像サイズ制御（拡大させない） */
.recruit-tiles .tile img {
  width: auto;               /* 元サイズ基準 */
  height: auto;
  max-height: 200px;         /* 大きすぎるのを防止 */
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}

/* =========================================
   レスポンシブ対応（スマホ）
   ========================================= */
@media (max-width: 768px) {
  .recruit-tiles {
    flex-wrap: wrap;         /* 画面が狭いと折り返す */
  }

  .recruit-tiles .tile img {
    max-height: 160px;
  }
}
/* =========================================
   ✅ 画面TOPリンク 視認性改善（白背景で囲む）
   ========================================= */

/* ヒーロー内リンク想定 */
.hero a {
  display: inline-block;
  padding: 6px 14px;                 /* 文字周囲の余白 */
  background-color: rgba(255, 255, 255, 0.90); /* 白背景 */
  color: #1266f1;                    /* ブランド寄りの青 */
  text-decoration: none;
  border-radius: 999px;              /* ピル型 */
  font-weight: 600;
  transition: background-color 0.2s ease,
              color 0.2s ease;
}

/* クリック後も色を変えない */
.hero a:visited {
  color: #1266f1;
}

/* ホバー時 */
.hero a:hover {
  background-color: #ffffff;
  color: #0b4fc1;
}
/* =========================================
   ✅ 業務案内：画像サイズ統一（縦長対応）
   ========================================= */

/* 業務案内カード内の画像枠 */
#works .card figure,
#works .card img {
  width: 100%;
}

/* 画像を表示する枠を固定 */
#works .card img {
  height: 180px;           /* 添付イメージ相当の高さ */
  object-fit: cover;       /* 枠に合わせてトリミング */
  border-radius: 8px 8px 0 0;
}
/* =========================================
   ✅ ヘッダー：ロゴ＋社名
   ========================================= */
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;              /* ロゴと社名の間隔 */
  text-decoration: none;
}

/* ロゴ画像サイズ */
.site-brand img {
  height: 44px;           /* 基準サイズ（調整可） */
  width: auto;
  display: block;
}

/* 社名文字サイズをロゴに合わせる */
.company-name {
  font-size: 22px;        /* ロゴ高さ44pxに対して自然 */
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
/* =========================================
   業務詳細ページ 背景（hikaricable）
   ========================================= */
.works-bg {
  position: relative;
  background-image: url("assets/hikaricable.JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 白の半透明オーバーレイ */
.works-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.80); /* ←薄さ調整ポイント */
  z-index: 0;
}

/* 中身を前面に出す */
.works-bg > .container {
  position: relative;
  z-index: 1;
}
/* ===============================
   下部 写真3枚 サイズ統一
   =============================== */

/* 写真を並べている親要素（既存構造を想定） */
.recruit-tiles {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* 1枚ごとの枠 */
.recruit-tiles .tile {
  flex: 1;
  max-width: 320px;   /* 横幅を揃える（不要なら削除可） */
}

/* 画像サイズを強制統一 */
.recruit-tiles .tile img {
  width: 100%;
  height: 200px;      /* ★ 高さをここで統一 */
  object-fit: cover;  /* 縦長も横長も自然にトリミング */
  border-radius: 8px;
  display: block;
}
/* 補足連絡先（注記と同サイズ・青文字） */
.note-blue {
  color: #0b63c7;  /* 画像と同系統の落ち着いた青 */
}
/* =========================================
   実績紹介：事例写真（5枚横並び）
   ========================================= */

.actual-photos {
  display: flex;
  justify-content: center;
  gap: 24px;          /* グループ間の間隔 */
  margin-top: 32px;
}

/* 2枚・3枚どちらのグループも横並び */
.actual-photos .photo-group {
  display: flex;
  gap: 12px;          /* 写真同士の間隔 */
}

/* 写真サイズを完全統一 */
.actual-photos img {
  width: 180px;       /* ★ 横幅統一 */
  height: 120px;      /* ★ 高さ統一 */
  object-fit: cover;  /* 縦横比を保ちつつトリミング */
  border-radius: 6px;
  display: block;
}

/* スマホ対応（任意） */
@media (max-width: 768px) {
  .actual-photos {
    flex-wrap: wrap;
  }
}
/* =========================================
   実績紹介：事例写真 グループ枠付き
   ========================================= */

/* 全体横並び */
.actual-photo-groups {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap; /* スマホ安全対策 */
}

/* グループ枠 */
.photo-group-box {
  padding: 12px;
  border-radius: 8px;
}

/* 枠線色（添付イメージ風） */
.box-yellow {
  border: 4px solid #f4b400;
}

.box-blue {
  border: 4px solid #1a73e8;
}

/* グループ見出し */
.group-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #06802b;
  text-align: left;
}

/* 写真並び */
.photo-group {
  display: flex;
  gap: 10px;
}

/* 写真サイズ完全統一 */
.photo-group img {
  width: 260px;     /* 160から変更 */
  height: 180px;   /* 110から変更 */
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
/* =========================================
   業務サブページ（works_*）写真サイズ統一
   ========================================= */

/* 業務詳細ページ内の画像共通 */
.works-bg img,
.works-detail img,
.section.works-bg img {
  width: 100%;
  max-width: 320px;   /* 横幅統一 */
  height: 200px;      /* 高さ統一 */
  object-fit: cover;  /* 縦横比を保持してトリミング */
  border-radius: 8px;
  display: block;
}
/* ヘッダーの社名を大きくする */
.company-name {
  font-size: 34px;   /* ← ここを大きく */
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
/* 求人サイト誘導 強調表示 */
.job-attention {
  color: #1a73e8;          /* 青 */
  font-size: 1.1em;        /* 少し大きく */
  font-weight: bold;
  animation: blinkText 2.0s linear infinite;
}

/* 点滅アニメーション */
@keyframes blinkText {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}

/* メイン写真 */
.factory-hero {
  position: relative;
  margin-bottom: 24px;
}

.factory-hero img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* 画像に被せるタイトル */
.factory-hero figcaption {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 10px 18px;

  color: #fff;                 /* 白文字 */
  font-size: 24px;             /* 大きめ文字 */
  font-weight: 700;
  letter-spacing: 0.05em;

  background: rgba(0, 0, 0, 0.35); /* 半透明背景 */
  border-radius: 6px;
}

/* 段ごとの説明文 */
.factory-section-note {
  margin: 24px 0 12px;
  font-size: 16px;
  color: #6608e2;
}

/* 写真グリッド：横3枚 */
.factory-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

/* 写真個別 */
.factory-photo-grid figure {
  margin: 0;
  text-align: center;
}

.factory-photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* 写真下の説明 */
.factory-photo-grid figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: #333;
}
@media (max-width: 768px) {
  .factory-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ========================================
   求人アピール横並び（最終・整理版）
   ─ 文字の右横にイラストを直近配置 ─
======================================== */

/* 全体レイアウト */
.workstyle-box .appeal-layout {
  display: flex;
  align-items: flex-start;
  gap: 0;                /* ★ 直近にするためゼロ */
}

/* 左：緑文字テキスト */
.workstyle-box ul.appeal-text {
  margin: 0;
  padding-left: 18px;
  flex: none;                 /* ★ 重要 */
  width: fit-content;         /* ★ 中身の幅までにする */
  max-width: calc(100% - 160px);
  color: #28c64ae8;
  font-weight: 600;
  font-size: 18px;
  list-style-position: outside;
}

/* 右：イラスト */
.workstyle-box .tilt-wrap {
  width: 160px;
  flex-shrink: 0;
  margin-left: -8px;    /* ★ 文字の右横へ寄せる */
  margin-top: -24px;     /* ★ 1行目基準に縦合わせ */
}

/* イラスト本体 */
.workstyle-box .tilt-wrap img {
  width: 160px;
  display: block;
  animation: tilt 4.5s ease-in-out infinite;
  transform-origin: 50% 80%;
}

/* 傾きアニメ */
@keyframes tilt {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(30deg); }
  50%  { transform: rotate(0deg); }
  75%  { transform: rotate(-30deg); }
  100% { transform: rotate(0deg); }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .workstyle-box .appeal-layout {
    flex-direction: column;
  }

  .workstyle-box .tilt-wrap {
    margin-left: 0;
    margin-top: 12px;
  }

  .workstyle-box .tilt-wrap img {
    animation: none;
  }
}
.greeting-em {
  font-size: 1.15em;   /* ← 大きさ調整（1.1〜1.25あたりが自然） */
  font-weight: 600;    /* 任意：少し強調 */
}

.factory-work-bg {
  background-color: #cee6f1;
  padding: 32px 24px;
  border-radius: 12px;
}
/* =========================
   スマホ時：写真を縦並びにする
   ========================= */
@media (max-width: 768px) {

  /* グループ内の写真を縦並びに */
  .photo-group {
    flex-direction: column;
    align-items: center; /* 中央揃え（見た目安定） */
  }

  /* グループ枠も中央寄せ */
  .photo-group-box {
    width: fit-content;
    margin: 0 auto;
  }

}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* 写真＋説明 */
.grid figure {
  margin: 0;
  text-align: center;
}

.grid img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* 写真下の説明文 */
.grid figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* 固定ヘッダー対策（ページ内リンク） */
section[id] {
  scroll-margin-top: 80px; /* ヘッダー高さ分 */
}

/* スマホはヘッダーが高い場合 */
@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 100px;
  }
}
