/* 全体リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --header-h: 60px;     /* ヘッダーの高さを管理 */
  --box-max: 1100px;    /* ボックス最大幅 */
}
/* ヘッダー */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
  height: var(--header-h);
  top: 0;
  z-index: 1000; /* ヒーローより前面に */
}

/* ヘッダー内レイアウト */
.header-content {
  display: flex;
  align-items: center;
  max-width: var(--box-max);
  margin: 0 auto;
}

/* ロゴ */
.logo {
  height: 40px; /* ロゴ画像の高さ */
}
body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: #222;
}

/* 背景セクション */
.hero {
  background: url('../img/background.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 20px; /* 端の余白 */
  position: relative;
}
/* 半透明オーバーレイ */
.overlay {
  max-width: var(--box-max);
  position: relative;
}

.content-box {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
  border-radius: 14px;
  padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.6);
}
/* サブテキスト */
.subtext {
  font-size: 0.95rem;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
/* メインタイトル */
.content-box h1 {
  font-size: clamp(36px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 18px;
}
/* 説明文 */
.desc {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.9;
  margin-bottom: 28px;
  color: #333;
}

/* ボタン */
.btn {
  display: inline-block;
  background-color: #e60000;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 6px;
  transition: transform .05s ease, box-shadow .2s ease, background-color .2s ease;
  box-shadow: 0 6px 14px rgba(230,0,0,.25);
}
.btn:hover { background-color: #c50000; }
.btn:active { transform: translateY(1px); }

/* バッジ */
.badge-group {
  position: absolute;
  top: -34px;
  right: -14px;
  display: flex;
  gap: 14px;
  pointer-events: none; /* クリック貫通（必要なら外す） */
}
.badge {
  background: radial-gradient(circle at 30% 30%, #f8d64a 0%, #d8a900 60%, #b88700 100%);
  color: #222;
  font-weight: 800;
  text-align: center;
  border-radius: 50%;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  font-size: 1.3rem;
  line-height: 1.15;
  border: 2px solid rgba(255,255,255,0.45);
  z-index: 100;
}



/* 会社の想いセクション */
.vision {
  background-color: #fafafa;
  padding: 100px 20px;
  text-align: center;
}

.vision-inner {
  max-width: 600px;
  margin: 0 auto;
}

.vision-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  margin-bottom: 20px;
  color: #222;
  position: relative;
}


.vision-lead {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  text-align: left;
  margin: 20px auto 60px;
}

.vision-image {
  display: flex;
  justify-content: center;
}

.vision-image img {
  width: 100%;
  max-width: 900px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 求人セクション */
.recruit {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid #eee;
}

.recruit-inner {
  max-width: 900px;
  margin: 0 auto;
}

.recruit-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
}



.recruit-tel {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.recruit-tel a {
  color: #000;
  text-decoration: none;
}

.recruit-tel a:hover {
  text-decoration: underline;
}

.recruit-text {
  font-size: 1rem;
  color: #333;
  margin-bottom: 40px;
}

/* ボタン並び */
.recruit-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* 共通ボタン */
.recruit .btn {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 40px;
  border-radius: 4px;
  border: 2px solid #e60000;
  transition: 0.3s;
}

/* 赤ボタン */
.recruit .btn.red {
  background-color: #e60000;
  color: #fff;
}

.recruit .btn.red:hover {
  background-color: #c50000;
}

/* 白ボタン */
.recruit .btn.white {
  background-color: #fff;
  color: #e60000;
}

.recruit .btn.white:hover {
  background-color: #e60000;
  color: #fff;
}


/* 仕事内容 */
.works {
  background: #f7f7f7;
  padding: 100px 20px;
}
.works-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.works-title {
  text-align: center;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.works-sub {
  text-align: center;
  color: #555;
  margin-bottom: 48px;
}

/* 2×2 グリッド */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 36px;
}
/* 各アイテム：左右に画像/テキスト */

.work,
.work.reverse {
  display: flex !important;
  flex-direction: column !important; /* すべて縦並び */
  align-items: stretch;
  gap: 14px;
}
.work.reverse .work-media,
.work.reverse .work-body {
  order: initial !important;
}

.work-media{
  margin-top: 30px;
}

.work-media img {
  width: 100%;
  aspect-ratio: 1.2 / 1;      /* ほんの少し横長の正方形っぽく */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  background: #ddd;
}

.work-body { padding: 0 2px; }
.work-body h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  margin: 6px 0 8px;
  color: #111;
}

.work-body p {
  color: #333;
  line-height: 1.9;
  font-size: 15.5px;
}


/* こんな方はぜひ！ */
.recruit-type {
  background: #f8f8f8;
  padding: 100px 20px;
  text-align: center;
}

.recruit-type-inner {
  max-width: 900px;
  margin: 0 auto;
}

.recruit-type-title {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 50px;
}

.recruit-type-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
}

.recruit-item h3 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: #111;
}

.recruit-item p {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
}




/* 1日の流れ */
.dayflow {
  background: #f6f6f6;
  padding: 100px 20px;
  text-align: center;
}
.dayflow-inner {
  max-width: 960px;
  margin: 0 auto;
}
.dayflow-title {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.dayflow-sub {
  font-size: 16px;
  color: #222;
  font-weight: 700;
  margin-bottom: 12px;
}
.dayflow-note {
  color: #444;
  margin-bottom: 28px;
}

/* 表 */
.dayflow-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}
.dayflow-table th,
.dayflow-table td {
  padding: 18px 20px;
  vertical-align: top;
}
.dayflow-table th {
  width: 200px;
  background: #fafafa;
  font-weight: 700;
  color: #111;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  white-space: nowrap;
}
.dayflow-table td {
  border-bottom: 1px solid #eee;
  color: #222;
  line-height: 1.9;
}
.dayflow-table td strong {
  font-weight: 800;
}

/* 最終行のボーダー消し */
.dayflow-table tr:last-child th,
.dayflow-table tr:last-child td {
  border-bottom: none;
}


/* 会社概要 */
.company {
  background: #ffffff;
  padding: 100px 20px;
  text-align: center;
}
.company-inner {
  max-width: 980px;
  margin: 0 auto;
}
.company-title {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: .05em;
  margin-bottom: 36px;
}

/* テーブル */
.company-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;             /* 角丸を反映 */
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.company-table th,
.company-table td {
  padding: 20px 22px;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.9;
}
.company-table th {
  width: 220px;
  background: #fafafa;
  font-weight: 700;
  color: #111;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  white-space: nowrap;
}
.company-table td {
  border-bottom: 1px solid #eee;
  color: #222;
}
.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

/* マップボタン風リンク */
.map-btn {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  text-decoration: none;
  background: #f2f2f2;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  padding: 6px 10px;
  color: #333;
}
.map-btn:hover { background: #e9e9e9; }



/* 募集要項 */
.job-spec {
  background: #f6f6f6;
  padding: 100px 20px;
  text-align: center;
}
.job-spec-inner {
  max-width: 980px;
  margin: 0 auto;
}
.job-spec-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 28px;
}

/* 表（見出し左・内容右） */
.job-spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.job-spec-table th,
.job-spec-table td {
  padding: 22px 24px;
  vertical-align: top;
  line-height: 1.9;
  font-size: 15px;
  color: #222;
}
.job-spec-table th {
  width: 220px;
  background: #fafafa;
  font-weight: 700;
  color: #111;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.job-spec-table td {
  border-bottom: 1px solid #eee;
}
.job-spec-table tr:last-child th,
.job-spec-table tr:last-child td {
  border-bottom: none;
}

/* 内容の強調Q見出し */
.job-spec-table td strong {
  font-weight: 800;
}

.works-subtext {
  text-align: center;
  color: #555;
  font-size: clamp(16px, 1vw, 18px);
  margin: 20px;
}


/* お問い合わせフォーム */
.contact {
  background: #f8f8f8;
  padding: 100px 20px;
  text-align: center;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact-title {
  font-size: clamp(34px, 6vw, 50px);
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.contact-sub {
  font-size: 16px;
  color: #222;
  margin-bottom: 50px;
}

/* フォーム */
.contact-form {
  background: #fff;
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  text-align: left;
}

.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
}

.required {
  background: #e60000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
}

/* 入力欄 */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: #e60000;
  outline: none;
}

/* ボタン */
.form-btn {
  text-align: center;
  margin-top: 40px;
}

.btn-submit {
  background: #e60000;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 60px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  background: #c50000;
}

/* フッター */
.footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 20px 10px;
  letter-spacing: 0.03em;
}

.footer p {
  margin: 0;
}



.job-info {
  background: #f8f8f8;
  padding: 100px 20px;
  text-align: center;
}

.job-info-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.job-info-title {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.job-info-sub {
  font-size: 16px;
  color: #333;
  margin-bottom: 50px;
}

/* --- カード全体 --- */
.job-card {
  display: flex; /* 横並び！ */
  align-items: center;
  gap: 30px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: 0.3s;
  padding: 20px;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

/* --- 画像 --- */
.job-card-img {
  flex: 0 0 300px; /* 固定幅 */
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
}
.job-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- テキスト --- */
.job-card-body {
  flex: 1;
  text-align: left;
}

.job-card-body h3 {
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 700;
  margin-bottom: 10px;
}

.job-meta {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
}

/* --- ボタン --- */
.job-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: 0.3s;
}

/* 詳細ボタン */
.detail-btn {
  background: #e60000;
  color: #fff;
}
.detail-btn:hover {
  background: #c50000;
}

/* ご応募ボタン */
.apply-btn {
  border: 2px solid #e60000;
  color: #e60000;
  background: #fff;
}
.apply-btn:hover {
  background: #e60000;
  color: #fff;
}
/* 横並びを強制（他のルールに勝つように） */
.job-card { display: flex !important; align-items: center; gap: 30px; }
.job-card-img { flex: 0 0 300px; height: 200px; }
.job-card-body { flex: 1; }

/* 万一モバイル指定が漏れて効いていたら無効化 */
.job-card { flex-direction: row !important; }




@media (max-width: 768px) {

    .job-card {
    flex-direction: column !important; /* ← 強制的に縦並びに */
    text-align: center;
  }
  .job-card-img {
    width: 100% !important;
    height: auto !important;
    flex: none !important; /* 固定幅を解除 */
  }
  .job-buttons {
    justify-content: left;
  }

.job-card-body {
    text-align: left;
    width: 100%;
    padding-top: 16px;
  }

  .badge-group {
    justify-content: flex-end;
    margin-bottom: 12px;     /* ボックスの上に並べる */
  }
  .badge {
    width: 88px; height: 88px; font-size: 0.72rem;
  }
  .content-box { padding: 20px; }

    .vision {
    padding: 60px 20px;
  }
  .vision-lead {
    font-size: 1rem;
    margin-bottom: 40px;
  }
  .vision-image img {
    width: 100%;
  }


    .recruit {
    padding: 60px 20px;
  }
  .recruit-tel {
    font-size: 1.3rem;
  }
  .recruit-buttons {
    flex-direction: column;
    gap: 15px;
  }

 .works-grid { grid-template-columns: 1fr; gap: 28px; }
 
 .work,
  .work.reverse {
    grid-template-columns: 1fr;
  }
  .work.reverse .work-media,
  .work.reverse .work-body {
    order: initial; /* スマホでは縦並びに */
  }
  .recruit-type {
    padding: 60px 20px;
  }
  .recruit-item h3 {
    font-size: 20px;
  }


  .contact-form {
    padding: 30px 20px;
  }
  .btn-submit {
    width: 100%;
  }






  
  .job-card {
    flex-direction: column;
  }
  .job-card-img {
    flex: 1 1 100%;
  }

}
/* スマホ表示：カード型に崩しにくく */
@media (max-width: 720px) {
  .dayflow { padding: 60px 16px; }
  .dayflow-table {
    border-radius: 6px;
  }
  .dayflow-table th,
  .dayflow-table td {
    display: block;
    width: 100%;
    border-right: none;
    padding: 14px 16px;
  }
  .dayflow-table th {
    background: #f3f3f3;
    border-bottom: none;
    border-top: 1px solid #eee;
  }
  .dayflow-table tr:first-child th { border-top: none; }
  .dayflow-table td {
    border-bottom: 1px solid #eee;
  }


  .company { padding: 60px 16px; }
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    border-right: none;
    padding: 14px 16px;
  }
  .company-table th {
    background: #f6f6f6;
    border-bottom: none;
    border-top: 1px solid #eee;
  }
  .company-table tr:first-child th { border-top: none; }



  .job-spec { padding: 60px 16px; }
  .job-spec-table th,
  .job-spec-table td {
    display: block;
    width: 100%;
    padding: 16px;
    border-right: none;
  }
  .job-spec-table th {
    background: #f3f3f3;
    border-bottom: none;
    border-top: 1px solid #eee;
  }
  .job-spec-table tr:first-child th { border-top: none; }

}


@media (max-width: 460px) {
    .badge {
        width: 88px;
        height: 88px;
        font-size: 0.72rem;
    }

    .badge-group{
      position: absolute;
    top: 1%;
    left: 50%;
    transform: translate(-50%, -50%);
    justify-content: center;
    gap: 16px;
    z-index: 20;
    }
}
@media (max-width: 460px) {
    .content-box {
        padding-top: 70px;
    }
}
@media (max-width: 275px) {
.btn-submit {
  padding: 5px 10px;
}
}