/*
 * ヨロズワークス - Main Stylesheet
 * BEM記法 / デスクトップファースト / カプセル化
 */

/* ==========================================================================
   Google Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Poppins:wght@600;700&display=swap');

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  /* Colors - Primary */
  --color-primary: #E85A24;
  --color-primary-dark: #D14A18;
  --color-secondary: #1A3C6E;
  --color-secondary-light: #2A5A9E;

  /* Colors - Accent */
  --color-accent-yellow: #F5A623;
  --color-accent-green: #4CAF50;
  --color-accent-red: #E53935;

  /* Colors - Neutral */
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-gray-100: #F5F5F5;
  --color-gray-200: #EEEEEE;
  --color-gray-300: #E0E0E0;
  --color-gray-400: #BDBDBD;
  --color-gray-500: #9E9E9E;
  --color-gray-600: #757575;
  --color-gray-700: #616161;
  --color-gray-800: #424242;
  --color-gray-900: #212121;

  /* Colors - Background */
  --color-bg-yellow: #FFC107;
  --color-bg-blue: #1A3C6E;
  --color-bg-light: #F8F8F8;

  /* Typography */
  --font-primary: 'Noto Sans JP', sans-serif;
  --font-accent: 'Poppins', sans-serif;
  --font-condensed: 'Helvetica Neue', 'Helvetica', Arial, sans-serif;

  /* Font Sizes */
  --fs-xs: 0.75rem;    /* 12px */
  --fs-sm: 0.875rem;   /* 14px */
  --fs-base: 1rem;     /* 16px */
  --fs-md: 1.125rem;   /* 18px */
  --fs-lg: 1.25rem;    /* 20px */
  --fs-xl: 1.5rem;     /* 24px */
  --fs-2xl: 2.5rem;   
  --fs-3xl: 2rem;      /* 32px */
  --fs-4xl: 2.5rem;    /* 40px */
  --fs-5xl: 3rem;      /* 48px */

  /* Spacing */
  --sp-xs: 0.25rem;    /* 4px */
  --sp-sm: 0.5rem;     /* 8px */
  --sp-md: 1rem;       /* 16px */
  --sp-lg: 1.5rem;     /* 24px */
  --sp-xl: 2rem;       /* 32px */
  --sp-2xl: 3rem;      /* 48px */
  --sp-3xl: 4rem;      /* 64px */
  --sp-4xl: 5rem;      /* 80px */
  --sp-5xl: 6rem;      /* 96px */

  /* Layout */
  --container-width: 1100px;
  --container-padding: 20px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease-out;

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-tooltip: 500;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-gray-900);
  background-color: var(--color-white);
}
@media (max-width: 767px) {
  body {
    padding-bottom: 70px; /* Space for SP fixed bar */
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Animation - Fade In Up (Section Reveal)
   ========================================================================== */
.js-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Button Components
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--sp-md) var(--sp-xl);
  font-size: var(--fs-md);
  box-shadow: 0 4px 8px rgba(232, 90, 36, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 2px 4px rgba(232, 90, 36, 0.3);
}

.btn--secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: var(--sp-md) var(--sp-xl);
  font-size: var(--fs-md);
  box-shadow: 0 4px 8px rgba(26, 60, 110, 0.3);
}

.btn--green {
  background-color: #5D8C3E;
  color: var(--color-white);
  padding: var(--sp-sm) var(--sp-lg);
  font-size: var(--fs-sm);
}

.btn--gray {
  background-color: var(--color-gray-400);
  color: var(--color-white);
  padding: var(--sp-sm) var(--sp-lg);
  font-size: var(--fs-sm);
}

/* ========================================
   Header (ヘッダー共通)
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #1a1a1a;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  /* アニメーションの設定を追加 */
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* JSで付与される非表示クラス（SPのみ適用） */
@media screen and (max-width: 767px) {
  .header.is-hidden {
    transform: translateY(-100%); /* 上にスライドして隠す */
    opacity: 0;
    pointer-events: none; /* クリックできないようにする */
  }
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  height: 100px;
}
@media screen and (max-width: 767px) {
  .header__inner {
    padding: 15px 5%;
    height: 70px;
  }
}

.header__logo-img {
  height: 60px;
  width: auto;
}
@media screen and (max-width: 767px) {
  .header__logo-img {
    width: 36vw;
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
@media screen and (max-width: 767px) {
  .header__actions {
    gap: 0;
  }
}

/* ボタンのホバー（マウスオーバー）時の押し込みエフェクト */
.header__phone:hover,
.header__cta:hover,
.header__cta-sp:hover {
  opacity: 0.9;
  transform: translateY(2px);
  border-bottom-width: 2px;
  margin-top: 17px; /* 押し込んだ分マージンを調整 */
}

/* ========================================
   PC用アクションボタン
   ======================================== */
/* 電話ボタン（緑） */
.header__phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #5d9b13; 
  border-bottom: 4px solid #43700e; /* 立体感 */
  border-radius: 8px;
  padding: 1px 15px 5px;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
  margin-top: 10px;
}
@media screen and (max-width: 767px) {
  .header__phone {
    display: none !important;
  }
}

.header__phone-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 5px;
}

.header__phone-small {
  font-size: 11px;
  font-weight: bold;
}

.header__phone-large {
  font-size: 16px;
  font-weight: bold;
  line-height: .6;
}

.header__phone-icon {
  width: 20px;
  height: 20px;
}

/* Web相談ボタン（赤） */
.header__cta {
  position: relative; /* バッジのはみ出し基準点 */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eb3b00; 
  border-bottom: 4px solid #b82e00; /* 立体感 */
  border-radius: 8px;
  padding: 7px 50px 6px 30px; /* 右側に矢印用の余白を確保 */
  color: #fff;
  text-decoration: none;
  margin-top: 6px; /* 上部にはみ出すバッジの分の余白 */
  transition: all 0.2s;
}
@media screen and (max-width: 767px) {
  .header__cta {
    display: none !important;
  }
}

/* 上部バッジ（30秒で入力完了） */
.header__cta-label {
  position: absolute;
  top: -12px; /* ボタンの上に半分はみ出させる */
  left: 50%;
  transform: translateX(-50%); /* 左右中央揃え */
  background-color: #fff;
  color: #eb3b00;
  font-size: 16px;
  font-weight: bold;
  padding: 0 30px;
  border-radius: 20px;
  border: 1px solid #eb3b00;
  white-space: nowrap;
}

.header__cta-text {
  font-size: 22px;
  font-weight: bold;
  margin-top: 10px;
}

/* 矢印アイコン */
.header__cta::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-image: url('../img/ico_arrow.png'); 
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* PC表示時はSP用ボタンを隠す */
.header__cta-sp {
  display: none;
}
@media screen and (max-width: 767px) {
  .header__cta-sp {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #eb3b00;
    border-bottom: 4px solid #b82e00;
    border-radius: 6px;
    padding: 9px 6px 9px 50px; /* 「無料」四角バッジ用の左余白 */
    margin-top: 12px; /* 上部にはみ出すバッジの分の余白 */
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
  }
}

/* 上部バッジ（カンタン30秒） */
.header__cta-sp-label {
  position: absolute;
  top: -12px;
  right: 50%;
  transform: translateX(50%);
  background-color: #fff;
  color: #eb3b00;
  font-size: 11px;
  font-weight: bold;
  padding: 0 5vw;
  border-radius: 15px;
  border: 1px solid #eb3b00;
  white-space: nowrap;
}

/* 左端バッジ（無料） */
.header__cta-sp-free {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  color: #eb3b00;
  font-size: 15px;
  font-weight: bold;
  padding: 4px 4px;
  border-radius: 3px;
  line-height: 1;
}

.header__cta-sp-text {
  font-size: 13px;
  font-weight: bold;
}

/* ==========================================================================
   Responsive Image Utilities
   ========================================================================== */
.u-pc-only {
  display: block;
}
@media (max-width: 767px) {
  .u-pc-only {
    display: none !important;
  }
}

span.u-pc-only {
  display: inline;
}

.u-sp-only {
  display: none !important;
}
@media (max-width: 767px) {
  .u-sp-only {
    display: inline !important;
  }
  span.u-sp-only {
    display: inline !important;
  }
  div.u-sp-only,
  img.u-sp-only {
    display: block !important;
  }
}

/* ========================================
   KV (メインビジュアル) Section
   ======================================== */
.kv {
  position: relative;
  width: 100%;
  /* ※背景画像のパスは環境に合わせて調整してください */
  background-image: url('../img/kv_bg.png');
  background-size: cover;
  background-position: center bottom -100px;
  background-repeat: no-repeat;
  padding-top: 80px; /* PCヘッダーの高さ分を下げる */
}
/* PC表示：画面幅に応じて高さを比率で可変（背景画像のアスペクト比を維持） */
@media screen and (min-width: 768px) {
  .kv {
    /* kv_bg.jpg の比率（おおよそ16:8.5程度）を維持して高さを出す */
    aspect-ratio: 1920 / 900; 
    min-height: 850px; /* フォームがはみ出さないための最低限の高さ */
  }
}
@media screen and (max-width: 767px) {
  .kv {
    background-image: url('../img/kv_bg_sp.png');
    background-size: contain;
    background-position: top center;
    background-color: #fcc000;
    padding-top: 70px;
    height: auto;           /* 高さをコンテンツ（フォーム）に合わせる */
    aspect-ratio: auto;     /* 比率固定を解除 */
    padding-bottom: 60px;   /* フォーム下のロゴスライダーとの余白を確保 */
    display: block;         /* innerのflexに影響されないよう念のため */
  }
}

.kv__inner {
  margin: 0 auto;
  padding: 0 75px;
  height: 100%;
  display: flex;
  justify-content: space-between; /* テキストを左端、フォームを右端に固定 */
  align-items: center; /* 縦方向の中央揃え */
}
@media screen and (max-width: 767px) {
  .kv__inner {
    flex-direction: column;
    justify-content: flex-start;
    padding: 25px 15px 0;   /* 下のpaddingは.kv側で制御 */
    height: auto;           /* 親に合わせて自動に */
  }
}

/* 左側のテキスト画像エリア */
.kv__content {
  width: 45%; /* 画面幅に対する比率で縮小させる */
  max-width: 650px; /* 大きくなりすぎないようにストッパー */
  min-width: 400px; /* 小さくなりすぎて読めないのを防ぐストッパー */
}
@media screen and (max-width: 767px) {
  .kv__content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 0;
  }
}

.kv__image {
  width: 100%; /* 親要素（.kv__content）に合わせて自動拡縮 */
  height: auto;
}

/* PCではSP用バッジを非表示 */
.kv__image-sp2 {
  display: none;
}
@media screen and (max-width: 767px) {
  /* SP用の下部バッジを表示 */
  .kv__image-sp2 {
    display: block;
    width: 100%;
    margin-top: 48vw;
    margin-bottom: 3vw;
    position: relative;
    z-index: 1;
  }
}

/* ==========================================================================
   Form Components (Form Card / 4-Step)
   ※重複箇所は前半の記述を優先して統合済
   ========================================================================== */
.form-card {
  width: 380px; /* フォームの幅を固定 */
  height: 510px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  flex-shrink: 0; /* 画面幅が縮んでもフォームは潰れないようにする */
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .form-card {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    margin-inline: auto;
  }
}

.form-card__header {
  background-color: #0d4b9c; /* カンプのネイビー */
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  padding: 20px;
}

.form-card__body {
  padding: 0 20px 25px;
}

/* STEPインジケーター */
.form-card__steps {
  display: flex;
  justify-content: space-between;
  margin-block: 20px 5px;
  padding: 0 20px;
  position: relative;
}

/* STEP同士を繋ぐ横線 */
.form-card__steps::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 35px;
  right: 35px;
  height: 1px;
  background-color: #000;
  z-index: 1;
}

.form-card__step {
  position: relative;
  z-index: 2;
  background-color: #fff;
  border: 1px solid #000;
  color: #999;
  font-size: 13px;
  font-weight: bold;
  padding: 2px 14px;
  border-radius: 20px;
}

.form-card__step.is-current {
  background-color: #0d4b9c;
  border-color: #000;
  color: #fff;
}

.form-card__step.is-completed {
  background-color: var(--color-gray-600);
  border-color: var(--color-gray-600);
  color: var(--color-white);
}

/* 職種選択（STEP1） */
.form-step {
  display: none; /* 初期状態は非表示（JSで切り替え） */
}

.form-step.is-active {
  display: block;
}

.form-step__title {
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
  position: relative;
}

.form-step__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 328px;
  height: 11px;
  background: url('../img/deco_form_ttl.png') center / contain no-repeat;
}

.form-step__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PCは3列 */
  gap: 10px;
  margin-bottom: 25px;
}

.form-step__option {
  border: 1px solid #000;
  border-radius: 6px;
  padding: 8px 5px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  color: #333;
  background-color: #fff;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  line-height: 1.3;
}

.form-step__option:first-of-type {
  font-size: 18px;
}

.form-step__option:nth-of-type(5) {
  font-size: 16px;
}

.form-step__option:hover {
  border-color: var(--color-primary);
  background-color: rgba(232, 90, 36, 0.05);
}

/* 選択された時のデザイン */
.form-step__option.is-selected {
  background-color: #ffcc00; /* カンプの黄色 */
  border-color: #ffcc00;
  color: #000;
}

.form-item {
  margin-bottom: var(--sp-md);
}

.form-item__label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--sp-xs);
  color: var(--color-gray-800);
}

.form-item__select,
.form-item__input,
.form-item .wpcf7-form-control.wpcf7-select,
.form-item .wpcf7-form-control.wpcf7-text,
.form-item .wpcf7-form-control.wpcf7-tel,
.form-item .wpcf7-form-control.wpcf7-email {
  width: 100%;
  padding: var(--sp-sm) var(--sp-md);
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast);
}

/* CF7のwrapperをブロック要素に変更してwidth:100%を正しく継承させる */
.form-item .wpcf7-form-control-wrap {
  display: block;
}

.form-item__select:focus,
.form-item__input:focus,
.form-item .wpcf7-form-control.wpcf7-select:focus,
.form-item .wpcf7-form-control.wpcf7-text:focus,
.form-item .wpcf7-form-control.wpcf7-tel:focus,
.form-item .wpcf7-form-control.wpcf7-email:focus {
  border-color: var(--color-secondary);
}

.form-item__select.is-invalid,
.form-item__input.is-invalid,
.form-item .wpcf7-not-valid {
  border-color: #E53935;
  background-color: rgba(229, 57, 53, 0.05);
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.form-item.is-focused .form-item__label {
  color: var(--color-secondary);
}

.form-item__select,
.form-item .wpcf7-form-control.wpcf7-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23757575' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: var(--sp-xl);
}

.form-nav {
  margin-bottom: 20px;
  text-align: center;
}

.form-nav__next {
  width: 80%;
  background-color: #eb3b00;
  color: #fff;
  font-weight: bold;
  font-size: 24px;
  margin-inline: auto;
  padding: 8px 15px 10px;
  border-bottom: 4px solid #b82e00;
  border-radius: 30px;
  transition: all 0.2s;
  position: relative;
}

.form-nav__next::after {
  content: '';
  position: absolute;
  bottom: 25%;
  right: 20px;
  width: 30px;
  height: 30px;
  background: url('../img/ico_arrow.png') center / contain no-repeat;
}

.form-nav__next:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 4px rgba(232, 90, 36, 0.3);
}

.form-nav__next:disabled {
  background-color: #c4c4c4; /* 未選択時はグレー */
  border-bottom: 4px solid #7a7a7a;
  cursor: not-allowed;
}

.form-nav__next:disabled:hover {
  transform: none;
}

.form-nav__back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  margin-top: var(--sp-md);
  padding: var(--sp-sm) var(--sp-lg);
  background-color: var(--color-gray-400);
  color: var(--color-white);
  font-size: var(--fs-sm);
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast);
}

.form-nav__back::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url('../img/ico_arrow.png') center / contain no-repeat;
  transform: rotate(180deg);
  flex-shrink: 0;
}

.form-nav__back:hover {
  background-color: var(--color-gray-500);
}

.form-privacy {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--color-gray-600);
  margin-top: var(--sp-md);
}

.form-privacy__link {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* ==========================================================================
   Logo Slider
   ========================================================================== */
.logo-slider {
  background-color: var(--color-white);
  padding: var(--sp-lg) 0;
  overflow: hidden;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
}

.logo-slider__track {
  display: flex;
  animation: scroll-left 30s linear infinite;
  width: fit-content;
}

.logo-slider__track:hover {
  animation-play-state: paused;
}

.logo-slider__item {
  flex-shrink: 0;
  padding: 0 var(--sp-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 767px) {
  .logo-slider__item {
    padding: 0 var(--sp-lg);
  }
}

.logo-slider__img {
  height: 50px;
  width: auto;
}
@media (max-width: 767px) {
  .logo-slider__img {
    height: 35px;
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Section Common
   ========================================================================== */
.section {
  padding: var(--sp-4xl) 0;
}
@media (max-width: 767px) {
  .section {
    padding: var(--sp-3xl) 0;
  }
}

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

.section--blue {
  background-color: var(--color-bg-blue);
  color: var(--color-white);
}

.section--gray {
  background-color: var(--color-bg-light);
}

.section__header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.section__title {
  font-size: var(--fs-2xl);
  font-weight: 900;
  line-height: 1.4;
  display: inline-block;
  position: relative;
  margin-bottom: 10px;
  padding-bottom: var(--sp-lg);
}
@media (max-width: 767px) {
  .section__title {
    font-size: var(--fs-xl);
    padding-bottom: var(--sp-md);
  }
}

/* Section title decorations */
.faq .section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 15px;
  background: url('../img/deco_faq_ttl.png') center / contain no-repeat;
}
@media (max-width: 767px) {
  .faq .section__title::after {
    width: 40px;
    height: 12px;
    background-image: url('../img/deco_ttl_sp.png');
  }
}

.message .section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 15px;
  background: url('../img/deco_message_ttl.png') center / contain no-repeat;
}
@media (max-width: 767px) {
  .message .section__title::after {
    width: 40px;
    height: 12px;
    background-image: url('../img/deco_ttl_sp.png');
  }
}

.section__title-en {
  display: block;
  font-family: var(--font-accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-sm);
  color: var(--color-gray-500);
}

.section__lead {
  margin-top: var(--sp-md);
  font-size: var(--fs-md);
  color: #000;
}
@media (max-width: 767px) {
  .section__lead {
    font-size: var(--fs-base);
  }
}

/* ==========================================================================
   Offer Section (求人カード)
   ========================================================================== */
#offer .container {
    max-width: 900px;
}

.section__title--offer {
  font-size: 42px;
}
@media (max-width: 767px) {
  .section__title--offer {
    font-size: var(--fs-2xl);
  }
}

.section__title--offer::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 538px;
  height: 29px;
  background: url('../img/deco_faq_ttl.png') center / contain no-repeat;
}
@media (max-width: 767px) {
  .section__title--offer::after {
    width: 100%;
    max-width: 200px;
  }
}

.offer__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}
@media (max-width: 767px) {
  .offer__list {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.offer-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .offer-card {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 18px;
  }
}

.offer-card__header {
  background-color: var(--color-gray-900);
  color: var(--color-white);
  padding: 5px var(--sp-md);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  position: relative;
}

.offer-card__header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--color-gray-900);
}

.offer-card__body {
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.offer-card__body-main {
  margin-top: 15px;
  padding-inline: 20px;
}

@media (max-width: 767px) {
  .offer-card__body-main__inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
}

.offer-card__company {
  font-size: var(--fs-sm);
  color: #7d7d7d;
  font-weight: bold;
}

@media (max-width: 767px) {
  .offer-card__company {
    text-align: left;
  }
}

.offer-card__salary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 5px;
}

.offer-card__salary-label {
  font-size: 21px;
  font-weight: bold;
  color: #000;
  line-height: 1.2;
  text-align: center;
}

.offer-card__salary-value {
  font-family: var(--font-accent);
  font-size: 70px;
  font-weight: 600;
  color: var(--color-gray-900);
  line-height: 1;
}

.offer-card__salary-unit {
  font-size: 21px;
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1.3;
  text-align: left;
}

.offer-card__area {
  width: 95%;
  display: inline-block;
  background-color: #ba2700;
  color: var(--color-white);
  padding: 2px 20px 4px;
  font-size: 21px;
  font-weight: 700;
  border-radius: 30px;
  margin-bottom: var(--sp-md);
}

.offer-card__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.offer-card__tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  text-align: left;
}

.offer-card__tag--small {
  font-size: 14px;
  line-height: 1.3;
}

.offer-card__check {
  width: 20px;
  height: 20px;
}

.offer-card__detail {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: var(--radius-sm);
  text-align: left;
  flex-grow: 1;
}

.offer-card__conditions {
  font-size: var(--fs-xs);
  color: #000;
  line-height: 1.2;
  margin-bottom: 4px;
  font-weight: bold;
}

.offer-card__desc {
  font-size: var(--fs-xs);
  color: #000;
  line-height: 1.5;
  margin-top: 3px;
  font-weight: bold;
}

/* ==========================================================================
   Case Section (転職事例)
   ========================================================================== */
.case {
  background-color: #fff;
  position: relative;
  background-image: url('../img/case_bg.jpg');
  background-position: center bottom -10px;
  background-repeat: no-repeat;
  background-size: 100% auto;
  padding-block: 100px 200px;
}

.case .container {
  position: relative;
  z-index: 1;
}

/* Case title */
.section__title--case {
  font-size: 42px;
}
@media (max-width: 767px) {
  .section__title--case {
    font-size: var(--fs-2xl);
  }
}

.section__title--case::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 200px;
  height: 20px;
  background: url('../img/deco_case_ttl.png') center / contain no-repeat;
}
@media (max-width: 767px) {
  .section__title--case::after {
    bottom: -25px;
    width: 78vw;
    max-width: 360px;
    height: 22px;
    background: url('../img/deco_ttl_sp.png') center / contain no-repeat;
  }
}

.case__list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.case-card {
  width: 90%;
  margin-inline: auto;
  background-color: #F5C543;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  padding: 50px 30px;
  gap: var(--sp-lg);
  justify-content: space-evenly;
}
@media (max-width: 767px) {
  .case-card {
    max-width: 400px;
    flex-direction: column;
    padding: 30px 5% 40px;
    gap: 30px;
  }
}

/* Left: Profile */
.case-card__left {
  flex-shrink: 0;
  text-align: center;
  width: 250px;
}
@media (max-width: 767px) {
  .case-card__left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7vw;
    width: 100%;
    text-align: left;
  }
}

.case-card__image {
  max-width: 150px;
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 5px;
}
@media (max-width: 767px) {
  .case-card__image {
    width: 20vw;
    height: 20vw;
    margin-bottom: 0;
  }
}

.case-card__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--sp-xs);
  line-height: 1.8;
}

@media (max-width: 767px) {
  .case-card__name {
    text-align: center;
  }
}

.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}
@media (max-width: 767px) {
  .case-card__tags {
    justify-content: flex-start;
    text-align: center;
  }
}

.case-card__tag {
  width: 150px;
  background-color: var(--color-gray-900);
  color: var(--color-white);
  font-size: 14px;
  padding: 0;
}

/* Right: Salary + Text */
.case-card__right {
  max-width: 560px;
  flex: 1;
}

.case-card__salary-row {
  display: flex;
  align-items: end;
  gap: 0;
  margin-bottom: var(--sp-md);
}
@media (max-width: 767px) {
  .case-card__salary-row {
    flex-direction: column;
    gap: 15px;
  }
}

.case-card__salary-box {
  background-color: var(--color-white);
  padding: 10px 16px 10px 27px;
  border-radius: var(--radius-md);
  position: relative;
  min-width: 170px;
  text-align: center;
}
@media (max-width: 767px) {
  .case-card__salary-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    width: 85%;
    padding: 18px 10px 10px;
    margin: 0 auto;
  }
}

/* 転職前・転職後のバッジ（Before要素） */
.case-card__salary-box::before {
  content: '転職前';
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-30%, -30%); /* 左上に配置して少しはみ出させる */
  width: 46px;
  height: 46px;
  background-color: var(--color-gray-900);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  box-shadow: var(--shadow-sm); /* 少し立体感をつける（任意） */
  z-index: 2;
}

/* 転職後ボックスとバッジのスタイル */
.case-card__salary-box--after {
  background-color: #bf2e08;
  color: #fff;
  min-width: 230px;
  padding: 10px 20px 10px;
}
@media (max-width: 767px) {
  .case-card__salary-box--after {
    padding: 20px 0 10px;
  }
}
.case-card__salary-box--after::before {
  content: '転職後';
  background-color: #0d4b9c;
}

@media (max-width: 767px) {
  .case-card__salary-box--after::before {
    width: 52px;
    height: 52px;
    font-size: 14px;
  }
}

/* 「施工エリア施工管理」などのサブタイトル */
.case-card__salary-sub {
  display: inline-block;
  font-size: 12.5px;
  font-weight: bold;
  background-color: #ffc200;
  color: var(--color-gray-900);
  padding: 1px 10px 2px;
  border-radius: 20px;
  margin-bottom: 3px;
  line-height: 1.4;
}
@media (max-width: 767px) {
  .case-card__salary-sub {
    font-size: 11.5px;
    padding: 2px 15px 4px;
    line-height: 1.2;
  }
}
/* 転職後のサブタイトルは白背景・赤文字に */
.case-card__salary-box--after .case-card__salary-sub {
  background-color: #fff;
  color: #bf2e08;
  font-size: 14px;
  padding: 2px 15px 2px;
}
@media (max-width: 767px) {
  .case-card__salary-box--after .case-card__salary-sub {
    font-size: 11px;
  }
}
/* 給与金額エリア */
.case-card__salary-amount {
  display: flex;
  align-items: center; /* 縦書きの文字と数値を中央揃え */
  justify-content: center;
  gap: 0;
}

/* 「年収」「万円」を縦組みに */
.case-card__salary-prefix,
.case-card__salary-suffix {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-gray-700);
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 2px; /* 縦書き時の文字間隔を調整 */
}

@media (max-width: 767px) {
  .case-card__salary-box .case-card__salary-prefix,
  .case-card__salary-box .case-card__salary-suffix {
    font-weight: 900;
  }
}
/* 転職後のテキストカラーを白に */
.case-card__salary-box--after .case-card__salary-prefix,
.case-card__salary-box--after .case-card__salary-suffix {
  color: #fff;
  font-size: 18px; /* 転職前(var(--fs-sm))より少し大きく */
}
@media (max-width: 767px) {
  .case-card__salary-box--after .case-card__salary-prefix,
  .case-card__salary-box--after .case-card__salary-suffix {
    font-size: 14px;
    font-weight: 700;
  }
}
/* 数値 */
.case-card__salary-num {
  font-family: var(--font-accent);
  font-size: 36px;
  font-weight: 600;
  color: var(--color-gray-900);
  line-height: 1;
}
/* 転職後の数値を白に */
.case-card__salary-box--after .case-card__salary-num {
  color: #fff;
  font-size: 45px;
}

/* UP Section (中央エリア) */
.case-card__up {
  display: flex;
  flex-direction: column; /* UP!の前で改行 */
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-shrink: 0;
  position: relative;
  padding-bottom: 10px;
}

@media (max-width: 767px) {
  .case-card__up {
    position: relative;
    margin-right: 40px;
    padding-bottom: 0;
  }
}

/* 矢印をafter要素として追加 */
.case-card__up::after {
  content: '';
  display: block;
  width: 130px;
  height: 24px;
  background: url('../img/ico_case_arrow.png') center / contain no-repeat;
  margin-top: -8px;
  margin-right: 10px;
}
@media (max-width: 767px) {
  .case-card__up::after {
    width: 26px;
    height: 89px;
    background-image: url(../img/ico_case_arrow_sp.png);
    position: absolute;
    top: -6px;
    left: -85%;
  }
}

.case-card__up-num {
  display: flex;
  align-items: baseline;
  padding-right: 10px;
}

.case-card__up-value {
  font-family: var(--font-accent);
  font-size: 42px;
  font-weight: 700;
  color: #ba2700;
  line-height: 1;
}

.case-card__up-unit {
  font-size: 15.5px;
  font-weight: 700;
  color: #ba2700;
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin-left: -5px;
}

.case-card__up-label {
  font-size: 24px;
  font-weight: 900;
  color: #ba2700;
  letter-spacing: 1px;
  line-height: 1;
  margin-top: -5px;
  padding-right: 10px;
}

/* Text */
.case-card__text {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--color-gray-800);
}
@media (max-width: 767px) {
  .case-card__text {
    width: 85%;
    margin: 0 auto;
    font-size: 14px;
  }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
  background-image: url('../img/cta_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw 0 10vw;
}
@media (max-width: 767px) {
  .cta {
    background-image: url('../img/cta_bg_sp.png');
    min-height: 80vw;
    padding: 25px 15px;
  }
}

.cta__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
}

.cta__title {
  font-size: 55px;
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: var(--sp-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
@media (max-width: 767px) {
  .cta__title {
    font-size: 9vw;
    line-height: 1.4;
  }
  .cta:nth-of-type(3) .cta__title {
    font-size: 8vw;
  }
}

.cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #e83100;
  color: var(--color-white);
  padding: 14px 50px;
  border-radius: 8px;
  font-size: 42px;
  font-weight: 900;
  gap: var(--sp-sm);
  box-shadow: 0 4px 15px rgba(213, 67, 34, 0.4);
  border-bottom: 6px solid #ba2700;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  margin-top: 15px;
}
@media (max-width: 767px) {
  .cta__button {
    width: 95%;
    padding: 12px 3vw;
    font-size: var(--fs-md);
    gap: 1vw;
  }
}

.cta__button:hover {
  transform: translateY(3px);
  box-shadow: 0 2px 8px rgba(213, 67, 34, 0.4);
}

.cta__button-label {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-white);
  color: #e83100;
  padding: 0px 60px;
  border-radius: 8px;
  font-size: 28px;
  font-weight: 900;
  white-space: nowrap;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .cta__button-label {
    font-size: 3.5vw;
    top: 2px;
    border-radius: 25px;
    padding: 0 7vw;
  }
}

.cta__button-free {
  background-color: var(--color-white);
  color: #AB3619;
  padding: 0px 6px;
  border-radius: 4px;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.5;
  margin-right: var(--sp-xs);
}

@media (max-width: 767px) {
  .cta__button-free {
    font-size: 5vw;
    width: 15vw;
    padding: 1px 0;
    border-radius: 0;
  }
}

.cta__button-maintxt {
  padding-top: 5px;
}

@media (max-width: 767px) {
  .cta__button-maintxt {
    font-size: 4.8vw;
    padding-top: 5px;
  }
}

.cta__button-icon {
  width: 42px;
  height: 42px;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  gap: var(--sp-md);
}
@media (max-width: 767px) {
  .cta__buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   Reason Section (3つの理由)
   ========================================================================== */
.reason {
  padding: 130px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 767px) {
  .reason {
    padding: 100px 0;
    width: 95%;
    margin: 0 auto;
  }
}

.reason__header {
  text-align: center;
  margin-bottom: 110px;
}

@media (max-width: 767px) {
  .reason__header {
    margin-bottom: 20px;
  }
}

.reason__title-img {
  max-width: 580px;
  width: 100%;
}
@media (max-width: 767px) {
  .reason__title-img {
    max-width: 380px;
  }
}

.reason__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3xl);
}
@media (max-width: 767px) {
  .reason__list {
    gap: var(--sp-2xl);
  }
}

.reason-item {
  display: flex;
  align-items: center;
  gap: 6vw;
  position: relative;
}
@media (max-width: 767px) {
  .reason-item {
    flex-direction: column;
    gap: 15px;
  }
}

/* * REASON 2 の並び順変更
 * (.reason-wave が挟まっているため、2つ目のアイテムは3番目の子要素になります) 
 */
.reason-item:nth-child(3) {
  flex-direction: row-reverse;
}
@media (max-width: 767px) {
  .reason-item:nth-child(3) {
    flex-direction: column;
  }
}

.reason-item__image {
  flex: 0 0 45%;
  max-width: 450px;
  position: relative; /* バッジ(before)の絶対配置の基準点 */
}
@media (max-width: 767px) {
  .reason-item__image {
    max-width: 100%;
    flex: none;
    margin: 0 auto;
  }
}

/* * REASON番号のバッジ (before要素)
 */
.reason-item__image::before {
  content: '';
  position: absolute;
  width: 98px;
  height: 138px;
  z-index: 2;
}
@media (max-width: 767px) {
  .reason-item__image::before {
    width: 70px;
    height: 70px;
  }
}

/* REASON 01 (左上) */
.reason-item:nth-child(1) .reason-item__image::before {
  top: -65px;
  left: 40px;
  background: url('../img/reason_01.png') center / contain no-repeat;
}
/* REASON 02 (右上) */
.reason-item:nth-child(3) .reason-item__image::before {
  top: -65px;
  right: 40px;
  background: url('../img/reason_02.png') center / contain no-repeat;
}
/* REASON 03 (左上) */
.reason-item:nth-child(5) .reason-item__image::before {
  top: -65px;
  left: 40px;
  background: url('../img/reason_03.png') center / contain no-repeat;
}
@media (max-width: 767px) {
  .reason-item:nth-child(1) .reason-item__image::before,
  .reason-item:nth-child(3) .reason-item__image::before,
  .reason-item:nth-child(5) .reason-item__image::before {
    content: none;
  }
}


/* * 画像自体のスタイルとPhotoshop互換のドロップシャドウ 
 */
.reason-item__img {
  width: 100%;
  border-radius: 12px; /* デザインに合わせた角丸 */
  /* Photoshop設定 (角度:123, 距離:13, スプレッド:0, サイズ:38, 不透明度:36%) の再現 */
  box-shadow: 7px 11px 38px 0px rgba(0, 0, 0, 0.36);
}

@media (max-width: 767px) {
  .reason-item__img {
    box-shadow: none;
  }
}

.reason-item__img--pc {
  display: block;
}
@media (max-width: 767px) {
  .reason-item__img--pc {
    display: none;
  }
}

.reason-item__img--sp {
  display: none;
}
@media (max-width: 767px) {
  .reason-item__img--sp {
    display: block;
  }
}

.reason-item__content {
  flex: 1;
}

.reason-item__title {
  font-size: 2.5vw;
  font-weight: 900;
  margin-bottom: var(--sp-md);
  line-height: 1.5;
  color: #AA3619;
}
@media (max-width: 767px) {
  .reason-item__title {
    font-size: 28px;
    text-align: center;
  }
}

.reason-item__title strong {
  color: #AA3619;
}

.reason-item__text {
  font-size: var(--fs-base);
  line-height: 2;
  color: var(--color-gray-700);
}
@media (max-width: 767px) {
  .reason-item__text {
    font-size: 16px;
  }
}

/* Wave decoration between reasons */
.reason-wave {
  width: 100%;
  height: 39px;
  background: url('../img/reason_wave.png') left center / 100% auto no-repeat;
  margin: var(--sp-xl) 0;
}
@media (max-width: 767px) {
  .reason-wave {
    background-image: url('../img/reason_wave_sp.png');
    background-size: 100% auto;
    height: 20px;
    margin: 0;
  }
}

/* ==========================================================================
   Comparison Section (比較表)
   ========================================================================== */
.comparison {
  background-image: url('../img/comparison_bg.png');
  background-size: cover;
  background-position: center;
  padding-top: 140px;
}
@media (max-width: 767px) {
  .comparison {
    background-image: url('../img/comparison_bg_sp.png');
    padding-top: 120px;
  }
}

/* -------------------------
   Header & Title
   ------------------------- */
.comparison__header {
  position: relative;
  z-index: 1;
  margin-bottom: -20px;
}

.comparison__title-en {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  width: 640px;
  max-width: 90%;
}
@media (max-width: 767px) {
  .comparison__title-en {
    width: 380px;
    top: 43%;
  }
}

.comparison .section__title {
  font-size: 42px;
  color: var(--color-white);
  line-height: 1.4;
}
@media (max-width: 767px) {
  .comparison .section__title {
    font-size: 24px;
  }
}

/* 「との」の部分を少し小さく */
.comparison__title-small {
  font-size: 32px;
  display: inline-block;
  margin: 0 4px;
}

/* このセクション専用のリードテキスト設定 */
.comparison .section__lead {
  text-align: center;
  font-size: 16px;
  color: var(--color-white);
  margin-bottom: var(--sp-2xl);
}

/* -------------------------
   Table Layout
   ------------------------- */
.comparison__table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 767px) {
  .comparison__table-wrapper {
    margin: 0 calc(-1 * var(--container-padding));
    padding: 0 var(--container-padding);
  }
}

.comparison__table {
  width: 100%;
  min-width: 750px;
  border-collapse: separate;
  border-spacing: 6px 0;
  font-weight: 900;
}

@media (max-width: 767px) {
  .comparison__table {
    min-width: 1000px;
  }
}

/*
 * セル(td/th)自体のリセット
 * 中のdivに高さ100%を効かせるため、tdにはheight: 1pxを指定します
 */
.comparison__table th,
.comparison__table td {
  padding: 0;
  text-align: center;
  vertical-align: middle;
  border: none;
  background: transparent;
  background: #fff;
}
.comparison__table td {
  height: 1px;
}

/* 画像サイズのCSS管理 */
.comparison__table img {
  width: 28px;
  height: auto;
  vertical-align: middle;
}

/* -------------------------
   Column 1: 見出し列
   ------------------------- */
.comparison__table th:first-child,
.comparison__table td:first-child {
  color: var(--color-white);
  text-align: right;
  padding: 20px 20px 20px 0; /* 見出し列はdivが無いので直接padding設定 */
  font-weight: 700;
  width: 18%; /* バランス調整 */
  background: transparent;
}

@media (max-width: 767px) {
  .comparison__table th:first-child,
  .comparison__table td:first-child {
    width: 15%;
    padding: 15px 10px 15px 0;
  }
}

/* -------------------------
   Table Inner Divs (追加したセル内div共通)
   ------------------------- */
.yorozu__header, .other__header,
.yorozu__cell,  .other__cell {
  width: 96%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* tbodyのセル内divは高さを100%にして縦につなげる */
.yorozu__cell, .other__cell {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* -------------------------
   Table Header (1行目)
   ------------------------- */
.comparison__table thead th {
  background: transparent; /* 白背景を削除し、透明にする */
  vertical-align: bottom; /* 下揃えでヨロズワークス列の突出を自然に表現 */
}

/* ヨロズワークス */
.comparison__table thead th:nth-child(2) {
  background: #fff; /* ヨロズワークス列にだけ外側の白背景（枠）をつける */
  padding-top: 5px;
  border-radius: 15px 15px 0 0;
}

@media (max-width: 767px) {
  .comparison__table thead th:nth-child(2) {
    width: 200px;
  }
}

.comparison__table tbody tr:last-child td:nth-child(2) {
  background: transparent;
  border-radius: 0 0 15px 15px;
}

.yorozu__header {
  background-color: #0d4b9c;
  color: var(--color-white);
  padding: 25px 0 15px;
  border-radius: 15px 15px 0 0;
}
.comparison__table .comparison__logo {
  width: 170px;
  padding-bottom: 7px;
}
@media (max-width: 767px) {
  .comparison__table .comparison__logo {
    width: 140px;
  }
}
/* A〜C社 */
.other__header {
  width: 100%;
  background-color: #e4e4e4;
  color: #000;
  padding: 0;
  border: 5px solid #fff;
  border-bottom: none;
}

.comparison__company-letter {
  font-size: 1.6em;
  font-family: var(--font-accent);
  font-weight: 900;
  margin-right: 2px;
}

/* -------------------------
   Table Body (2行目以降)
   ------------------------- */
.comparison__table tbody td:nth-child(2) {
  color: #0d4b9c;
  font-weight: 700;
}

.yorozu__cell {
  background-color: #fff;
  color: #0d4b9c;
  font-weight: 700;
  padding: 20px 10px;
}
.other__cell {
  background-color: #fff;
  color: #000;
  padding: 20px 10px;
}
@media (max-width: 767px) {
  .yorozu__cell,
  .other__cell {
    padding: 0 10px;
  }
}

/* ハイライトテキストの装飾 */
.comparison__highlight {
  font-weight: 900;
  font-size: var(--fs-xl);
}
.yorozu__cell .comparison__highlight {
  color: #0d4b9c; 
}
.other__cell .comparison__highlight {
  color: var(--color-primary); 
}

/* セルの下辺の線 (2〜6行目) */
.comparison__table tbody tr:not(:last-child) .yorozu__cell,
.comparison__table tbody tr:not(:last-child) .other__cell {
  position: relative;
}
.comparison__table tbody tr:not(:last-child) .yorozu__cell::after,
.comparison__table tbody tr:not(:last-child) .other__cell::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px; /* 左右に若干の余白（15px） */
  height: 1px;
  background-color: #f1f1f1;
}

/* -------------------------
   Table Body Last Row (一番下のセル)
   ------------------------- */
.comparison__table tbody tr:last-child td {
  background: transparent;
  vertical-align: top;
}

/* ヨロズワークス */
.comparison__table tbody tr:last-child .yorozu__cell {
  width: 100%;
  padding-bottom: 45px;
  border-radius: 0 0 15px 15px;
}

/* A〜C社 */
.comparison__table tbody tr:last-child .other__cell {
  width: 100%;
  padding-bottom: 30px;
  border-bottom: 35px solid transparent;
  background-clip: padding-box;
}

/* -------------------------
   Table内のフォント
   ------------------------- */
.yorozu__cell {
  font-size: 28px;
}
.yorozu__number {
  font-size: 32px;
}
.comparison__small {
  font-size: 20px;
}
.other__cell {
  font-size: 18px;
}
.other__number {
  font-size: 28px;
}
@media (max-width: 767px) {
  .yorozu__number {
    font-weight: 900;
  }
}

/* ==========================================================================
   Flow Section (サービスの流れ)
   ========================================================================== */
.flow {
  padding: 180px 0 100px;
  background-color: var(--color-white);
}

@media (max-width: 767px) {
  .flow {
    padding: 100px 0;
  }
}

.flow .section__title {
  font-size: 42px;
  margin-bottom: 50px;
}

.flow .section__title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 330px;
  height: 20px;
  background: url('../img/deco_flow_ttl.png') center / contain no-repeat;
}

.flow__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.flow__row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: var(--sp-md);
}
@media (max-width: 767px) {
  .flow__row {
    flex-direction: column;
    align-items: center;
  }
}

.flow__row--top {
  justify-content: center;
}

.flow__row--bottom {
  justify-content: center;
  padding: 0 100px;
}
@media (max-width: 767px) {
  .flow__row--bottom {
    padding: 0;
  }
}

.flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
}
@media (max-width: 767px) {
  .flow__arrow {
    width: auto;
    height: 30px;
  }
}

.flow__arrow::before {
  content: '';
  aspect-ratio: 50 / 149;
  width: 20px;
  height: auto;
  background: url('../img/ico_flow_arrow.png') center / contain no-repeat;
}
@media (max-width: 767px) {
  .flow__arrow::before {
    width: 70px;
    aspect-ratio: 149 / 50;
    background-image: url('../img/ico_flow_arrow_sp.png');
  }
}

.flow-item {
  flex: 0 1 280px;
  max-width: 280px;
  background-color: var(--color-bg-yellow);
  border-radius: var(--radius-xl);
  padding: var(--sp-xl) var(--sp-lg);
  text-align: center;
  box-shadow: 3px 4px 27px 0px rgba(125, 95, 0, 0.32);
}
@media (max-width: 767px) {
  .flow-item {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 30px 7vw;
  }
  .flow-item__sp-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5vw;
    margin-bottom: 15px;
  }
}

.flow-item__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--sp-md);
  object-fit: contain;
}
@media (max-width: 767px) {
  .flow-item__icon {
    margin: 0;
  }
}

.flow-item__title {
  font-size: var(--fs-md);
  font-weight: 900;
  margin-bottom: var(--sp-sm);
  line-height: 1.4;
}
@media (max-width: 767px) {
  .flow-item__title {
    font-size: 24px;
  }
  .flow-item:nth-of-type(2) .flow-item__title {
    font-size: 16px;
  }
}

.flow-item__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-gray-800);
  text-align: left;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq {
  padding: 140px 0 200px;
  background-image: url('../img/faq_bg.png');
  background-size: cover;
  background-position: center;
}
@media (max-width: 767px) {
  .faq {
    padding: 80px 0 120px;
  }
}

.faq .section__title {
   font-size: 42px;
}

.faq .section__title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 330px;
  height: 20px;
  background: url('../img/deco_faq_ttl.png') center / contain no-repeat;
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq-item {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item__question {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.faq-item__question:hover {
  background-color: var(--color-gray-100);
}

.faq-item__icon {
  flex-shrink: 0;
  aspect-ratio: 105 / 120;
  width: 32px;
  height: 33px;
}

.faq-item__text {
  flex: 1;
  font-size: var(--fs-md);
  font-weight: 700;
}
@media (max-width: 767px) {
  .faq-item__text {
    font-size: var(--fs-base);
  }
}

.faq-item__toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-item__toggle::before,
.faq-item__toggle::after {
  content: '';
  position: absolute;
  background-color: #0d4b9c;
  transition: transform var(--transition-base);
}

.faq-item__toggle::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-item__toggle::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq-item.is-open .faq-item__toggle::after {
  transform: translateX(-50%) rotate(90deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.is-open .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer-inner {
  display: flex;
  gap: var(--sp-md);
  padding: 0 var(--sp-lg) var(--sp-lg);
  border-top: 1px solid var(--color-gray-200);
  padding-top: var(--sp-lg);
}

.faq-item__answer-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.faq-item__answer-text {
  flex: 1;
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--color-gray-700);
}

/* ==========================================================================
   Message Section (代表メッセージ)
   ========================================================================== */
.message {
  padding: 160px 0 130px;
  background-image: url('../img/message_bg.png');
  background-size: cover;
  background-position: center bottom;
  background-color: #fff;
}
@media (max-width: 767px) {
  .message {
    padding: 80px 0 100px;
    background-image: url('../img/message_bg_sp.png');
    background-size: contain;
    background-repeat: no-repeat;
  }
}

.message .section__title {
  font-size: 42px;
}
@media (max-width: 767px) {
  .message .section__title {
    font-size: 32px;
  }
}
.message .section__title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 330px;
  height: 20px;
  background: url('../img/deco_message_ttl.png') center / contain no-repeat;
}
@media (max-width: 767px) {
  .message .section__title::after {
    background: url('../img/deco_ttl_sp.png') center / contain no-repeat;
  }
}

.message__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-2xl);
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .message__inner {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-xl);
    text-align: center;
  }
}

.message__image {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 767px) {
  .message__image {
    width: 160px;
    height: 160px;
  }
}

.message__content {
  flex: 1;
  padding-top: var(--sp-md);
}
@media (max-width: 767px) {
  .message__content {
    padding-top: 0;
  }
}

.message__title {
  font-size: var(--fs-xl);
  font-weight: 900;
  margin-bottom: var(--sp-lg);
  line-height: 1.4;
}
@media (max-width: 767px) {
  .message__title {
    font-size: var(--fs-lg);
  }
}

.message__text {
  font-size: var(--fs-sm);
  line-height: 2;
  color: var(--color-gray-700);
}
@media (max-width: 767px) {
  .message__text {
    font-size: 16px;
    text-align: left;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-bg-yellow);
  padding: 3rem 0 0;
}
@media (max-width: 767px) {
  .footer {
    padding: 20px 0 0;
  }
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 3rem;
}
@media (max-width: 767px) {
  .footer__inner {
    gap: var(--sp-lg);
    text-align: center;
    padding-bottom: 20px;
  }
}

.footer__company {
  font-size: var(--fs-lg);
  font-weight: 900;
}
@media (max-width: 767px) {
  .footer__company {
    font-size: 2.6vw;
  }
}
.footer__nav {
  display: flex;
  gap: var(--sp-xl);
}
@media (max-width: 767px) {
  .footer__nav {
    gap: 4vw;
  }
}

.footer__link {
  font-size: var(--fs-sm);
  transition: opacity var(--transition-fast);
}
@media (max-width: 767px) {
  .footer__link {
    font-size: 2.5vw;
  }
}

.footer__link:hover {
  opacity: 0.7;
}

.footer__copyright {
  background-color: var(--color-black);
  color: var(--color-white);
  text-align: center;
  padding: var(--sp-md);
  font-size: var(--fs-xs);
}
@media (max-width: 767px) {
  .footer__copyright {
    padding: 10px 0 30px;
  }
}

/* ==========================================================================
   SP Fixed Bottom Bar
   ========================================================================== */
.sp-fixed-bar__inner {
  display: none;
}
@media (max-width: 767px) {
  .sp-fixed-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    z-index: 999; /* 数値は適宜調整 */
    padding: 25px 10px 20px;
    display: block;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
  }

  .sp-fixed-bar.is-visible {
    transform: translateY(0);
  }

  .sp-fixed-bar__inner {
    display: flex;
    gap: 8px;
    align-items: flex-end; /* ボタンの底辺を揃える */
  }

  /* 電話ボタン（共通デザイン） */
  .sp-fixed-bar__phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #5d9b13;
    border-bottom: 3px solid #43700e; /* SP用に少し細く */
    border-radius: 6px;
    padding: 6px 10px;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1.2;
  }

  .sp-fixed-bar__phone-small {
    font-size: 10px;
    font-weight: bold;
  }

  .sp-fixed-bar__phone-large {
    font-size: 16px;
    font-weight: bold;
  }

  .sp-fixed-bar__phone-icon {
    width: 19px;
    height: 19px;
    margin-top: 2px;
  }

  /* Web相談ボタン（共通デザイン） */
  .sp-fixed-bar__cta {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eb3b00;
    border-bottom: 6px solid #b82e00;
    border-radius: 6px;
    padding: 12px 5px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
  }

  /* 上部ラベル（PCと共通のスタイル） */
  .sp-fixed-bar__cta-label {
    position: absolute;
    top: -12px; /* ボタンの上に半分はみ出させる */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #eb3b00;
    font-size: 14px;
    font-weight: bold;
    padding: 0 12px;
    border-radius: 20px;
    border: 1px solid #eb3b00;
    white-space: nowrap;
    font-weight: 900;
  }

  .sp-fixed-bar__cta-text {
    font-size: 20px;
    font-weight: bold;
  }

  /* 矢印アイコン（擬似要素） */
  .sp-fixed-bar__cta::after {
    content: "";
    width: 20px;
    height: 20px;
    margin-left: 5px;
    background-image: url('../img/ico_arrow.png'); /* パスに注意 */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
  }
}

/* ==========================================================================
   サンクスページ
   ========================================================================== */

/* ========================================
   1. 登録完了メッセージエリア
   ======================================== */
.thanks-message {
    padding-block: 200px 100px;
}
@media screen and (max-width: 767px) {
  .thanks-message {
    padding: 120px 0 50px;
  }
  .thanks-message .container {
    padding: 0;
  }
}

.thanks-message__title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 24px;
  text-align: center;
  color: #ba2700;

}
.thanks-message__lead {
  font-size: 18px;
  margin-bottom: 48px;
  text-align: center;
}

/* SP上書き */
@media screen and (max-width: 767px) {
  .thanks-message__lead {
    margin-bottom: 32px;
  }
}

/* --- 連絡先ボックス --- */
.thanks-contact {
  background-color: #f2efef;
  border-radius: 8px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .thanks-contact {
    padding: 90px 5% 80px;
    border-radius: 0;
  }
}
.thanks-contact__info {
  background-color: #fff;
  padding: 5px;
  border-radius: 15px;
}
@media screen and (max-width: 767px) {
  .thanks-contact__info {
    padding: 10px 5px;
  }
}
.thanks-contact__tel {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 5px;
}
@media screen and (max-width: 767px) {
  .thanks-contact__tel {
    font-size: 9.5vw;
    line-height: 1.4;
    margin-bottom: 0;
  }
}
.thanks-contact__email {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
@media screen and (max-width: 767px) {
  .thanks-contact__email {
    font-size: 5.4vw;
  }
}
.thanks-contact__desc {
  font-size: 14px;
  text-align: left;
  display: inline-block;
  margin-block: 24px 20px;
}
.thanks-contact__support {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

/* SP上書き */
@media screen and (max-width: 767px) {
  .thanks-contact__support {
    display: flex;
    font-weight: 700;
    gap: 8px;
  }
}

/* ========================================
   2. サービスの流れ（黄色背景エリア）
   ======================================== */
.thanks-flow {
  background-color: #ffc000;
  padding: 120px 0 160px;
  background-image: url('../img/thanks_flow_bg.png');
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
}

.thanks-flow__title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 60px;
  position: relative;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .thanks-flow__title {
    font-size: 6.4vw;
    margin-bottom: 60px;
  }
}
.thanks-flow__title::after {
  content: '';
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 230px;
  height: 20px;
  background: url('../img/deco_flow_ttl.png') center / contain no-repeat;
}
@media screen and (max-width: 767px) {
  .thanks-flow__title::after {
    max-width: 190px;
  }
}
.thanks-flow__list {
  max-width: 800px;
  margin: 0 auto;
}

/* SP上書き */
@media screen and (max-width: 767px) {
  .thanks-flow { padding: 50px 0; }
  .thanks-flow__title { font-size: 24px; margin-bottom: 32px; }
}

/* --- ステップカード --- */
.thanks-step-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}
@media screen and (max-width: 767px) {
  .thanks-step-card {
    flex-direction: column;
    padding: 30px 10%;
    gap: 10px;
    text-align: center;
  }
}
.thanks-step-card__icon-area {
  flex-shrink: 0;
  width: 140px;
}
.thanks-step-card__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 25px;
  gap: 8px;
}
@media screen and (max-width: 767px) {
  .thanks-step-card__header {
    .thanks-step-card__header {
      align-items: center;
      gap: 4px;
    }
  }
}
.thanks-step-card__num {
  display: inline-block;
  width: 50px;
  margin-right: 20px;
}
@media screen and (max-width: 767px) {
  .thanks-step-card__num {
    width: 40px;
  }
}
.thanks-step-card__title {
  font-size: 24px;
  font-weight: 700;
  color: #ba2700;
  line-height: 1.4;
  padding-top: 10px;

}
@media screen and (max-width: 767px) {
  .thanks-step-card__title {
    font-size: 20px;
    margin-left: 0;
    text-align: left;
    padding-top: 15px;
  }
}
.thanks-step-card__text {
    font-size: 15px;
    border-top: 1px solid #000;
    padding-top: 20px;
}

/* SP上書き */
@media screen and (max-width: 767px) {
  .thanks-step-card__icon-area { width: 100px; }
  .thanks-step-card__text { text-align: left; }
}

/* --- 下向き矢印 --- */
.thanks-flow__arrow {
  text-align: center;
  margin: 0;
}
.thanks-flow__arrow img {
  width: 25px;
  transform: rotate(90deg);
}

/* ========================================
   3. クロージング（背景画像エリア）
   ======================================== */
.thanks-closing {
  background-image: url('../img/thanks_closing_bg.png');
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  text-align: center;
  position: relative;
}
@media screen and (max-width: 767px) {
  .thanks-closing {
    background-image: url('../img/thanks_closing_bg_sp.png');
    opacity: 0.88;
  }
}
.thanks-closing::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}
.thanks-closing__inner {
  position: relative;
  z-index: 2;
}
.thanks-closing__text {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.8;
}

/* SP上書き */
@media screen and (max-width: 767px) {
  .thanks-closing { padding: 60px 0; }
  .thanks-closing__text { font-size: 20px; }
}

/* ========================================
   3. Contactform7用
   ======================================== */


.wpcf7-spinner {
  display: none;
}