/* ===== page-jobs: ヒーロー viewport チラ見せ (J-1) ===== */
.phero--jobs {
  box-sizing: border-box;
  min-height: calc(100svh - 70px - 100px); /* header 70px + peek 100px */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.phero-scroll-hint {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e94a35;
  animation: bounce-down 1.6s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}
@media (max-width: 768px) {
  /* 仕事を探すページ: モバイルではFVの最下部（キャラ画像の下）に表示 */
  .phero-jobs-fv { padding-bottom: 48px; }
  .phero-jobs-fv .phero-scroll-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    justify-content: center;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  /* モバイル: テキスト上・キャラ下、おすすめ求人チラ見せ */
  .phero--jobs {
    padding: 24px 0 0;
    height: calc(100svh - 60px - 100px); /* 100px チラ見せ */
    min-height: unset;
    justify-content: flex-start; /* 上詰め */
  }
  /* phero-inner は position:relative のブロックにしてキャラを絶対配置 */
  .phero--jobs .phero-inner {
    display: block;
    position: relative;
    padding-right: 0;
  }
  .phero--jobs .phero-art {
    position: absolute;
    bottom: 0;
    right: -14px;        /* コンテナ端からわずかにはみ出させて迫力を演出 */
    width: 150px;
    max-width: 150px;
    margin: 0;
  }
  .phero--jobs .phero-art .hero-char-wrap {
    width: 150px !important;
    height: 150px !important;
    min-width: unset !important;
    padding: 0 !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
  .phero--jobs .phero-art img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    object-position: bottom;
  }
  .phero--jobs .phero-art .pstamp { display: none !important; }
  .phero--jobs h1 { font-size: clamp(24px, 7vw, 32px); }
  .phero--jobs .lead { font-size: 13.5px; line-height: 1.75; }
}

/* ================================================================
   スマホ 全体フォントサイズ縮小 (≤768px)
   ================================================================ */
@media (max-width: 768px) {
  /* ヒーロー h1 */
  .phero h1 { font-size: clamp(28px, 7vw, 38px); }
  .hero h1, .gbn-hero h1 { font-size: clamp(30px, 5.5vw, 32px); }

  /* リード文 */
  .lead, .phero .lead, .hero p.lead { font-size: 13.5px !important; line-height: 1.75; }

  /* セクション見出し */
  .section h2 { font-size: 24px; }
  .section .sub { font-size: 14px; }

  /* クラウドタイトル */
  .cloud-title .ct-pill { font-size: 16px; padding: 12px 18px; }
  .cloud-title .ct-sub { font-size: 13px; }

  /* CTA */
  .bigcta h3 { font-size: 20px; }
  .bigcta p { font-size: 13px; }
  .btn-lg { font-size: 15px; padding: 14px 24px; }

  /* 分割セクション */
  .split-copy h3 { font-size: 20px; }
  .split-copy p { font-size: 13px; }

  /* キャラカード */
  .char-card h3 { font-size: 17px; }
  .char-card.main h3 { font-size: 18px; }
  .char-card p { font-size: 13px; }

  /* 業種カード */
  .cat-simple-name { font-size: 13px; }
  .cat-simple .cat-visa-badge { font-size: 10px; }

  /* フロー・ステップ */
  .flow .step h4, .flow-item h4 { font-size: 15px; }
  .flow .step p, .flow-item p { font-size: 12.5px; }

  /* フッター */
  .foot-col h5 { font-size: 13px; }
  .foot-col li, .foot-col a { font-size: 12.5px; }
}

/* ===== Contact Form 7 スタイル ===== */
/* .contact-form 内の CF7 要素に既存デザインを適用 */

/* CF7 のデフォルトマージンリセット */
.contact-form .wpcf7 { margin: 0; }
.contact-form .wpcf7-form p {
  margin: 0 0 24px;
}
.contact-form .wpcf7-form p:last-child { margin-bottom: 0; }

/* テキスト入力 / セレクト / テキストエリア */
.contact-form .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.contact-form .wpcf7-text,
.contact-form .wpcf7-email,
.contact-form .wpcf7-tel,
.contact-form .wpcf7-url,
.contact-form .wpcf7-select,
.contact-form .wpcf7-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--sumi);
  border-radius: 10px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 15px;
  background: var(--paper);
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.contact-form .wpcf7-text:focus,
.contact-form .wpcf7-email:focus,
.contact-form .wpcf7-tel:focus,
.contact-form .wpcf7-url:focus,
.contact-form .wpcf7-select:focus,
.contact-form .wpcf7-textarea:focus {
  outline: none;
  border-color: var(--asagi);
  box-shadow: 0 0 0 3px rgba(74,144,164,.2);
}
.contact-form .wpcf7-textarea { resize: vertical; min-height: 120px; }

/* CF7 ラベル */
.contact-form .wpcf7-form label {
  display: block;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--ink);
}

/* 送信ボタン */
.contact-form .wpcf7-submit {
  width: 100%;
  padding: 18px;
  background: var(--shu);
  color: white;
  border: 2.5px solid var(--sumi);
  border-radius: 14px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--sumi);
  transition: transform .1s, box-shadow .1s;
  margin-top: 8px;
  appearance: none;
}
.contact-form .wpcf7-submit:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--sumi);
}
/* 送信中スピナー */
.contact-form .wpcf7-spinner { display: none; }

/* バリデーションエラー */
.contact-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--shu);
}
.contact-form .wpcf7-text.wpcf7-not-valid,
.contact-form .wpcf7-email.wpcf7-not-valid,
.contact-form .wpcf7-tel.wpcf7-not-valid,
.contact-form .wpcf7-textarea.wpcf7-not-valid {
  border-color: var(--shu);
  box-shadow: 0 0 0 3px rgba(233,74,53,.15);
}

/* レスポンスメッセージ（送信完了・エラー） */
.contact-form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid;
}
.contact-form .wpcf7-mail-sent-ok {
  background: #edfaf3;
  border-color: #b0dfc2;
  color: #1a6b42;
}
.contact-form .wpcf7-mail-sent-ng,
.contact-form .wpcf7-aborted {
  background: #fff0ec;
  border-color: #f5b8ad;
  color: #c0392b;
}
.contact-form .wpcf7-validation-errors,
.contact-form .wpcf7-acceptance-missing {
  background: #fffbe8;
  border-color: #f0dc90;
  color: #7a6000;
}

/* ================================================================
   ビジネスページ共通 (.biz-*)
   page-about.php / page-hire.php 専用
   ================================================================ */
:root {
  --biz-dark:   #1A1832;
  --biz-hero-bg: var(--biz-dark);
  --biz-blue:   #2C5FA0;
  --biz-blue-2: #EEF3FB;
  --biz-blue-light: #7EB8D4;
  --biz-border: #D8DFF0;
  --biz-bg:     #F5F7FC;
  --biz-text:   #3A3A52;
  --biz-sub:    #6B6F8A;
}

/* ── ヒーロー ── */
.biz-hero {
  background: var(--biz-hero-bg);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}
.biz-hero .biz-label {
  display: inline-block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a8b8d8;
  margin-bottom: 20px;
}
.biz-hero h1 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.3;
  color: #fff;
  margin: 0 0 20px;
}
.biz-hero h1 em {
  font-style: normal;
  color: var(--biz-blue-light);
}
.biz-hero .biz-lead {
  font-size: 15px; line-height: 1.85;
  color: #b0bcd8;
  max-width: 680px; margin: 0 auto 28px;
}
.biz-hero-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.biz-hero-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 12.5px; font-weight: 700;
  color: #c8d8f0;
}

/* ── セクション共通 ── */
.biz-section {
  padding: 64px 0;
  background: #fff;
}
.biz-section.biz-bg { background: var(--biz-bg); }
.biz-bg { background: var(--biz-bg); }

.biz-section-head { margin-bottom: 40px; }
.biz-section-head .biz-en {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--biz-blue); display: block; margin-bottom: 8px;
}
.biz-section-head h2 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900; font-size: clamp(20px, 3vw, 30px);
  color: var(--biz-dark); margin: 0 0 8px; line-height: 1.3;
}
.biz-section-head p {
  font-size: 14px; color: var(--biz-sub); margin: 0; line-height: 1.8;
}
.biz-divider {
  width: 40px; height: 3px;
  background: var(--biz-blue);
  border-radius: 2px;
  margin: 14px 0 0;
}

/* ── 会社情報テーブル ── */
.biz-info-table {
  width: 100%; border-collapse: collapse; font-size: 14.5px;
}
.biz-info-table tr { border-bottom: 1px solid var(--biz-border); }
.biz-info-table tr:first-child { border-top: 1px solid var(--biz-border); }
.biz-info-table th {
  width: 180px; padding: 16px 20px;
  background: var(--biz-bg);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900; font-size: 13px;
  color: var(--biz-dark); vertical-align: top;
  white-space: nowrap; text-align: left;
}
.biz-info-table td {
  padding: 16px 20px; color: var(--biz-text);
  line-height: 1.8; vertical-align: top;
}

/* ── アクセスカード ── */
.biz-access-cards {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px;
}
.biz-access-card {
  background: var(--biz-bg);
  border: 1px solid var(--biz-border);
  border-radius: 10px; padding: 14px 22px;
  font-size: 14px; font-weight: 700;
  color: var(--biz-dark);
  display: flex; align-items: center; gap: 10px;
}

/* ── マップ ── */
.biz-map-wrap {
  border: 1px solid var(--biz-border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,24,50,0.08);
}

/* ── ビザナビ ── */
.biz-visa-nav {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 48px;
}
.biz-visa-nav-item {
  display: block; background: #fff;
  border: 1.5px solid var(--biz-border);
  border-radius: 10px; padding: 18px 14px;
  text-align: center; text-decoration: none;
  color: var(--biz-text);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.biz-visa-nav-item:hover {
  border-color: var(--biz-blue);
  box-shadow: 0 4px 16px rgba(44,95,160,0.12);
  transform: translateY(-2px);
}
.biz-visa-nav-item .biz-num {
  display: block; font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 20px; color: var(--biz-blue); margin-bottom: 4px;
}
.biz-visa-nav-item .biz-name {
  display: block; font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900; font-size: 13px; color: var(--biz-dark); line-height: 1.35;
}

/* ── 制度セクション ── */
.biz-scheme { padding: 56px 0; }
.biz-scheme.biz-bg { background: var(--biz-bg); }
.biz-scheme-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 32px;
}
.biz-scheme-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--biz-blue); color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 20px;
  display: grid; place-items: center; flex-shrink: 0;
}
.biz-scheme-header h2 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900; font-size: clamp(18px, 2.8vw, 26px);
  color: var(--biz-dark); margin: 0;
}
.biz-scheme-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.biz-scheme-overview {
  background: #fff; border: 1px solid var(--biz-border);
  border-radius: 12px; padding: 24px;
}
.biz-scheme-overview h3 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900; font-size: 14px;
  color: var(--biz-blue); margin: 0 0 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--biz-border);
}
.biz-scheme-overview p,
.biz-scheme-overview li {
  font-size: 13.5px; color: var(--biz-text); line-height: 1.8; margin: 0 0 6px;
}
.biz-scheme-overview ul { padding-left: 18px; margin: 0; }

/* ── チェックリスト ── */
.biz-check-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.biz-check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--biz-text); line-height: 1.65;
}
.biz-check-list li::before {
  content: '';
  width: 18px; height: 18px; flex-shrink: 0;
  background: var(--biz-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 10px;
  border-radius: 50%; margin-top: 2px;
}

/* ── 比較表 ── */
.biz-compare-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  border: 1px solid var(--biz-border); border-radius: 12px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(26,24,50,0.06);
}
.biz-compare-table th {
  padding: 14px 20px;
  font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 900; font-size: 13.5px;
  text-align: center;
}
.biz-compare-table th:first-child { background: #F0F2F8; color: var(--biz-dark); text-align: left; }
.biz-compare-table th.tok { background: #1A1832; color: #fff; }
.biz-compare-table th.iku { background: var(--biz-blue); color: #fff; }
.biz-compare-table td {
  padding: 12px 20px; border-top: 1px solid var(--biz-border);
  color: var(--biz-text); vertical-align: top; line-height: 1.7;
}
.biz-compare-table td:first-child {
  background: #F8F9FC;
  font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 900; font-size: 13px;
  color: var(--biz-dark); white-space: nowrap;
}
.biz-compare-table td:not(:first-child) { text-align: center; }
.biz-compare-table tr:nth-child(even) td:not(:first-child) { background: #FAFBFF; }

/* ── CTA ── */
.biz-cta-wrap {
  background: var(--biz-dark); border-radius: 16px;
  padding: 48px 40px; text-align: center; color: #fff;
}
.biz-cta-wrap h3 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900; font-size: clamp(18px, 2.8vw, 26px);
  color: #fff; margin: 0 0 10px;
}
.biz-cta-wrap p { font-size: 14px; color: #a8b8d8; margin: 0 0 24px; line-height: 1.8; }
.biz-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--biz-blue); color: #fff;
  border: none; border-radius: 8px; padding: 14px 28px;
  font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 900; font-size: 15px;
  text-decoration: none; cursor: pointer;
  transition: background .15s, transform .12s;
}
.biz-btn:hover { background: #245088; transform: translateY(-1px); }
.biz-btn-outline {
  background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: #fff;
}
.biz-btn-outline:hover { background: rgba(255,255,255,0.08); }
.biz-btn-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── レスポンシブ ── */
@media (max-width: 768px) {
  .biz-hero { padding: 44px 0 36px; }
  .biz-section { padding: 44px 0; }
  .biz-scheme { padding: 40px 0; }
  .biz-visa-nav { grid-template-columns: repeat(2, 1fr); }
  .biz-scheme-body { grid-template-columns: 1fr; }
  .biz-info-table th { width: 100px; font-size: 12px; padding: 12px 12px; }
  .biz-info-table td { padding: 12px 12px; font-size: 13px; }
  .biz-cta-wrap { padding: 32px 20px; }
  .biz-compare-table th,
  .biz-compare-table td { padding: 10px 10px; font-size: 12px; }
  br.sp-only { display: inline; }
}
