@charset "UTF-8";
/*
Theme Name: Recruit Theme
Version: 1.0
Description: 採用サイト用WordPressオリジナルCSS（完全版）
*/

/* ----------------------------------
   1. 変数定義・基本設定
---------------------------------- */
:root {
    --color-navy: #002060;       /* メインの紺色 */
    --color-yellow: #d2e000;     /* アクセントの黄色 */
    --color-bg-gray: #f4f6f9;    /* 背景用ライトグレー */
    --color-text: #333333;       /* 基本テキスト色 */
}

body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: #fff;
    /* overflow: visible !important; ← 不要な障害の原因になるためコメントアウトまたは削除 */
}

#container {
    margin: 0 auto;
    padding: 76px 0 0 !important;
    width: 100%; /* 幅を明示的に指定 */
}

/* 文字サイズ拡大ユーティリティ（相対指定） */
.text-zoom-12 { font-size: 120%; }
.text-zoom-14 { font-size: 140%; }
.text-zoom-16 { font-size: 160%; }
.text-zoom-18 { font-size: 180%; }
.text-zoom-20 { font-size: 200%; }
.text-zoom-30 { font-size: 300%; }

/* 基本の文字揃え */
.text-left   { text-align: left; }   /* 左揃え（基本） */
.text-center { text-align: center; } /* 中央揃え */
.text-right  { text-align: right; }  /* 右揃え */

/* 等割付（両端揃え） */
.text-justify {
  text-align: justify;
  text-justify: inter-ideograph; /* 日本語テキストの単語・文字間隔を綺麗に補正 */
}

/* 矢印 */
.dli-arrow-right {
  display: inline-block;
  vertical-align: middle;
  color: var(--color-navy);
  line-height: 1;
  position: relative;
  width: 1em;
  height: 0.1em;
  margin-right: 5px;
  background: currentColor;
}

.dli-arrow-right::before {
  content: '';
  width: 0.65em;
  height: 0.65em;
  border: 0.1em solid currentColor;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(45deg);
  transform-origin: top right;
  position: absolute;
  top: 50%;
  right: -0.05em;
  box-sizing: border-box;
}

/* 最初は透明で少し下に配置 */
.j-scroll-effect {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
/* 画面に入ったら表示 */
.j-scroll-effect.j-scroll-effect_start {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------
   2. ヘッダー
---------------------------------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.site-header {
    background-color: #ffffff;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.site-logo{
    padding-left: 50px ;
}

.site-logo .logo-link {
display: flex !important;       /* 横並びを強制適用 */
    align-items: center !important;/* 下揃えを強制適用 */
    gap: 20px;                      /* 画像とテキストの間隔 */
    text-decoration: none;
    white-space: nowrap;            /* 勝手な改行を防止 */
}

/* ロゴ画像のサイズ制御 */
.site-logo .logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
    display: block;                 /* 余計な下余白を消去 */
}

.site-logo .logo-text {
    font-size: 14px;
    border-left: 1px solid #9ea9bc;
    color: #4C6693;
    padding-left: 14px;
    font-weight: 500;
    line-height: 1.2;                /* 画像のベースラインと合わせる調整 */
    margin-bottom: 2px;              /* 微調整：文字の位置を少し上げる場合 */
}

.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 60px 0 20px;
    gap: 30px;
}

.nav-btn {
    display: inline-block;
    text-decoration: none;
    padding: 8px 18px;
    font-size: 15px;
    font-weight: bold;
    color: var(--color-navy) !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}


/* ----------------------------------
   3. ハンバーガーボタン＆ドロップダウン
---------------------------------- */
.header-nav-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #e2f53b, #e8ff00);
    padding: 15px 20px;
}

/* 三本線ボタン */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background-color: var(--color-yellow);
    border: none;
    cursor: pointer;
    border-radius: 4px;
    margin-right: 10px;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-navy);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ボタンクリック時（×印に変形） */
.hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg) scale(0.75);
}
.hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg) scale(0.75);
}

/* ドロップダウンメニュー */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    background: linear-gradient(to bottom, #e2f53b, #e8ff00);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    z-index: 99;
}

.dropdown-menu.is-active {
    display: block;
}

.dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    color: var(--color-navy);
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: rgba(15, 37, 82, 0.1);
}


/* ----------------------------------
   4. ヒーローセクション（ファーストビュー）
---------------------------------- */

.container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;  /* スマホ等で画面端にくっつかないための予防策 */
    padding-right: 20px;
    box-sizing: border-box;
}

.site-main {
    width: 100%; /* 1200pxから100%に変更して全幅表示を許可する */
}

.hero-section {
    color: var(--color-navy);
}

/* 白背景テキスト共通パーツ */
.bg-white-text {
    background-color: #ffffff;
    color: #000000;
    padding: 4px 12px;
    display: inline-block;
    line-height: 1.4;
    margin-bottom: 6px;
    font-weight: bold;
}

.underline-green{
    background: linear-gradient(transparent 70%, #dfdfdf 60%) !important;
}

/* メインビジュアルエリア */
.hero-visual {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-visual-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-visual-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-visual-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-catchcopy {
    font-size: 32px;
    margin: 0;
    text-align: left;
    position: absolute;
    bottom: 100px;
}

/* 紺色背景メッセージエリア（2カラム構造） */
.hero-message-block {
    background-color: var(--color-navy);
    padding: 0;
    overflow: hidden;
    position: relative;
}

.hero-message-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* ★center から stretch に変更（高さを上下いっぱいに伸ばす） */
    position: relative;
    z-index: 2;
}

/* 左側：テキストエリア（幅55%） */
.hero-message-left {
    width: 55%;
    box-sizing: border-box;
    padding: 50px 0 50px 180px;
    z-index: 1;
}

.hero-message-white{
  width: 650px;
  background-color: #ffffff;
  padding: 40px;
}

.hero-sub-catch {
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: left;
}

.text-group {
    margin-bottom: 20px;
}

/* 1行ごとの枠付きテキストボックス */
.hero-text-box {
    display: table; /* 文字数に合わせて枠を自動形成 */
    color: var(--color-text);
    font-size: 16px;
    font-weight: bold;
    padding: 4px 10px;
    margin-bottom: 6px;
    white-space: nowrap;
    line-height: 1.5;
}

.hero-text-box.highlight-box {
    color: #000000;
    font-size: 23px;
    font-weight: bold;
    margin-top: 40px;
}

/* 右側：人物画像エリア（幅45%・絶対配置） */
.hero-message-right {
    width: 55%;
    position: absolute;
    top: 0;
    bottom: 0;  /* ★追加：下の隙間を完全に埋める */
    right: 0;
    height: 100%;
}

.hero-message-right img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
}

/* ----------------------------------
   5. その他のコンテンツ・共通設定
---------------------------------- */

.growth-section {
    margin-top: 40px 0 30px;
}

.growth-section-box{
    display: flex;
    gap: 30px;                 /* 左右のカラム間の余白 */
    width: 100%;               /* 全体の幅 */
    max-width: 1200px;         /* 全体の最大幅（画面の中央に収まるサイズ） */
    margin: 60px auto 25px;            /* 画面中央に配置 */
}

.growth-section-left{
    width: 65%;
    padding: 0;
}

.pill-label-list{
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 25px auto 0;
}

.pill-shadow-label-list{
    width: 60%;
}
.growth-section-wide-box{
    width: 100%;               /* 全体の幅 */
    max-width: 1200px;         /* 全体の最大幅（画面の中央に収まるサイズ） */
    margin: 40px auto 60px;            /* 画面中央に配置 */
}
.growth-1row{
    margin: 0;
}

.section-title {
    color: var(--color-navy);
    margin: 120px 0 30px;
    font-size: 50px;
    letter-spacing: 0.1em;
    font-weight: bold;
}

.section-mini-title {
    font-size: 32px;
    color: var(--color-navy);
    margin: 15px 0;
    font-weight: bold;
}

.section-mini-title span{
    font-size: 16px;
    color: #737272;
    margin: 0 0 10px 5px;
}


/* カプセル型ラベル */

.pill-label-box{
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.pill-label {
    display: block;
    border: 2px solid var(--color-navy);
    color: var(--color-navy);
    border-radius: 25px;
    padding: 10px 20px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}


.pill-shadow-label-list {
    max-width: 600px;
    margin: 0 auto;
}

.pill-shadow-label-box{
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

.pill-shadow-label {
    display: block;
    color: var(--color-navy);
    border-radius: 25px;
    padding: 15px 25px;
    text-align: center;
    box-shadow: 4px 4px 10px 0px rgba(0,0,0,0.2);
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pill-label span{
    font-size: 13px;
    color: #ccc;
    margin-left: 15px;
    font-weight: normal;
    letter-spacing: 0.1em;
}

.text-box {
   margin: 0 auto;
}

.text-box p{
    color: #000000;
    font-weight: 500;
    margin: 30px 0;
}
.text-box p.attention{
    font-size: 11px;
    margin: 0;
    color: #888888;
}


.career-left-chart {
    flex: 1;               /* 左右2カラムで均等な幅を確保 */
    position: relative;    /* 内部の絶対配置の基準にする */
    margin-bottom: 70px;
}

.career-right-text{
  width: 35%;
}

/* 「キャリアの一例」カプセル型ラベル */
.chart-badge {
    display: inline-block;
    background-color: #dcdcdc;
    color: #000000;                          /* 白色の文字 */
    font-size: 11px;                            /* 少し小さめの文字 */
    font-weight: bold;                          /* 太字 */
    padding: 4px 14px;                          /* 上下・左右の内側余白 */
    border-radius: 12px;                        /* カプセル型の角丸 */
    margin-bottom: 10px;                        /* 下の矢印との間の余白 */
}

/* 矢印全体の親枠 */
.career-arrow-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin-top: 10px;
    margin-left: 50px;
    margin-bottom: 60px; /* 下部テキストの溢れ防止用余白 */
}

.arrow-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ポイント共通設定 */
.chart-point {
    position: absolute;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* 通常の白丸 */
.point-circle {
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 2px solid var(--color-navy);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* 矢印の起点にある薄いグレーの大きな丸 */
.point-circle.circle-start {
    width: 28px;
    height: 28px;
    background-color: #dcdcdc;
    border: none;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
    margin-bottom: 8px; /* 丸と下の文字の間の余白 */
}

/* テキスト基本指定 */
.point-text {
    font-size: 13px;
    font-weight: bold;
    color: var(--color-navy);
}

.point-text.top-side {
    transform: translateY(-30px);
    margin-right: 5px;
}

.point-text.left-side {
    transform: translateY(-22px);
    margin-right: 10px;
}

.point-text.right-side {
    transform: translateY(20px);
    margin-left: -5px;
}

/* 引き出し線の基本指定 */
.point-line {
    display: inline-block;
    height: 2px;
    background-color: #bdbdbd;
}

/* ----------------------------------
   位置・角度の調整（画像にピッタリ合わせ）
---------------------------------- */

/* 1. データ解析アクセラレーター（上） */
.point-top {
    top: 32%;
    left: 12%;
}
.line-top {
    width: 80px;
    margin: 0 -5px 28px 0;
    transform: rotate(20deg);
}

/* 2. データ解析コンサルタント（中） */
.point-middle {
    top: 47%;
    left: 1%;
}
.line-middle {
    width: 80px;
    margin: 0 -3px 20px;
    transform: rotate(15deg);
}

/* 3. データ解析スペシャリスト（下） */
.point-bottom {
    top: 68%;
    left: 28%;
}
.line-bottom {
    width: 50px;
    margin: 0 10px -20px -2px;
    transform: rotate(20deg); /* 向きを調整 */
}

/* 4. スタート地点（起点の丸と直下のテキスト） */
.chart-start-group {
    position: absolute;
    left: -3%;
    bottom: -60px;
    z-index: -1;
}

.chart-start-text {
    font-size: 13px;
    color: var(--color-navy);
    line-height: 1.4;
    white-space: nowrap;
}

.chart-start-text span {
    font-size: 11px;
    color: #666666;
}

.section-lead-text {
    text-align: left;
    font-size: 16px;
    margin: 0;
    color: #333333;
}

.section-more-link {
    text-align: right;
    margin-top: 20px;
}

.section-more-link a {
    color: var(--color-navy) !important;
    font-size: 13px;
    text-decoration: underline !important;
}

/* メンバーの声（3列グリッド） */

.voice-section{
    margin: 0 auto 40px;
}

.voice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    margin: 10px auto 20px;
}

.voice-card-link {
    text-decoration: none;
    color: var(--color-text);
    display: block;
    transition: transform 0.2s ease;
}

.voice-card-link:hover {
    transform: translateY(-4px);
}

.voice-card-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #f0f0f0;
}

.voice-card-thumb img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.voice-card-date {
    font-size: 12px;
    color: #888888;
    display: block;
    margin-bottom: 6px;
}

.voice-card-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--color-text);
    line-height: 1.8;
    margin: 0;
}

.member-sns-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 48px auto 60px;
  padding: 0 20px;
}

/* ボタン共通設定 */
.btn-sns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 260px;
  padding: 20px 20px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-sns:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* アイコン画像領域の調整 */
.btn-sns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;  /* アイコンの表示幅 */
  height: 24px; /* アイコンの表示高さ */
}

.btn-sns-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 縦横比を崩さず収める */
  display: block;
}

/* テキスト領域 */
.btn-sns-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.5;
}

.btn-sns-text .main-text {
  font-size: 13px;
  font-weight: bold;
}

.btn-sns-text .sub-text {
  font-size: 11px;
  opacity: 0.85;
}

/* 左側：note風ライトブルーボタン */
.btn-note {
  background: linear-gradient(-80deg, #e8ebf0 0%, #c8ceda 100%);
  color: #0b2559 !important;
}

.btn-note:hover {
  background: linear-gradient(-80deg, #e8ebf0 0%, #bdc5d4 100%);
}

/* 右側：X風ブラックボタン */
.btn-x {
  background: linear-gradient(-80deg, #2a2c2e 0%, #222222 100%);
  color: #ffffff !important;
}

.btn-x:hover {
  background: linear-gradient(-80deg, #343638 0%, #0a0a0a 100%);
}

/* スマホ対応 */
@media (max-width: 600px) {
  .member-sns-buttons {
    flex-direction: column;
    gap: 16px;
  }

  .btn-sns {
    width: 100%;
    max-width: 320px;
  }
}


/* お知らせ（リスト構造） */
.news-section{
    background-color: #F2F2F2;
    padding: 20px 0 30px;
}

.news-list-title {
    font-size: 23px;
    color: var(--color-text);
    margin: 20px 0 30px;
    font-weight: bold;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e0e0e0;
}

.news-item {
    border-bottom: 1px solid #e0e0e0;
}

.news-link {
    display: flex;
    padding: 15px 10px;
    text-decoration: none;
    color: var(--color-text) !important;
    font-size: 14px !important;
    transition: background-color 0.2s ease;
}

.news-link:hover {
    background-color: #f9f9f9;
}

.news-date {
    width: 120px;
    color: #888888;
    flex-shrink: 0;
}

.news-title {
    flex-grow: 1;
}


/* D4cグループ概要 */
.group-section{
    margin: 80px auto 30px;
}
.group-diagram-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

/* 中央図表画像 */
.group-diagram-bg {
    width: 100%;
    height: auto;
    display: block;
}

/* 周囲テキスト共通設定 */
.group-text-item {
    position: absolute;
    width: 280px; /* テキスト領域の横幅 */
}

.group-text-item h3 {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-navy);
    margin: 0 0 6px 0;
    line-height: 1.4;
}
.group-text-item h3 a:hover {
    opacity: 0.7;
}

.group-text-item p {
    font-size: 12px;
    line-height: 2.0;
    color: #333333;
    margin: 0;
}

/* ----------------------------------
   各テキストの配置位置（PC版：5社配置）
---------------------------------- */

/* 0. 追加：左上（データフォーシーズ） */
.group-text-item.item-00 {
    top: 10%;
    left: 3%;
    width: 300px;
    text-align: right;
}

/* 1. 左下：ディーファイブコンサルティング */
.group-text-item.item-01 {
    top: 42%;
    left: -10%;
    width: 310px;
    text-align: right;
}

/* 2. 右上：D4cプレミアム */
.group-text-item.item-02 {
    top: 10%;
    right: -5%;
    text-align: left;
}

/* 3. 右中：D4cテクノロジー */
.group-text-item.item-03 {
    top: 75%;
    left: 2%;
    text-align: right;
}

/* 4. 右下：D4cアカデミー */
.group-text-item.item-04 {
    bottom: 20%;
    right: 2%;
    text-align: left;
}

/* スマホ対応（768px以下は画像の下に縦並び） */
@media screen and (max-width: 768px) {
    .group-text-item {
        position: static;
        width: 100%;
        margin-top: 20px;
        text-align: left;
    }
}

/* 取引企業（ロゴ一覧） */
.client-section{
    margin: 0 auto 60px;
}

.client-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px 40px;
    padding: 20px 0 60px;
}

.client-logo-grid img {
    max-height: 34px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%); /* 統一感を出す軽いフィルタ */
    transition: filter 0.2s ease;
}

.client-logo-grid img:hover {
    filter: grayscale(0%);
}


/* 全体の背景とセクション設定 */
.job-section {
    background-color: #0b2559;
    padding: 60px 0 80px; /* 左右のpaddingを0にして全幅へ */
    width: 100%;
}

.job-section .section-title-white,
.job-list {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.job-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px 0 250px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

/* 左側に縦のグラデーション線を引く */
.job-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px; /* 位置の調整 */
  width: 3px;  /* 線の太さ */
  background: linear-gradient(180deg, #e6eaab 0%, #e4eb65 10%, #abb316 30%, #61681b 100%);
}

/* 職種カード本体 */
.job-card {
  display: flex;
  background-color: #ffffff;
  border-radius: 16px; /* カード全体の角丸 */
  overflow: hidden; /* 画像が角丸からはみ出るのを防ぐ */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 左側：テキストエリア（可変幅で残りの幅いっぱいに広がる） */
.job-content {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.job-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  color: #111;
}

.job-description {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.job-description .note {
  color: #d9534f; /* 赤字注記 */
}

/* 右側：画像エリア（固定幅） */
.job-image {
  width: 280px; /* 画像エリアの横幅（お好みで調整してください） */
  flex-shrink: 0; /* 画面サイズが変わっても横幅を維持 */
}

.job-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover; /* 縦横比を崩さず枠いっぱいにトリミング表示 */
  /* 右上と右下のみ角丸を指定（親の overflow:hidden でも効きますが明確に指定） */
  border-radius: 0 16px 16px 0; 
  display: block;
}

/* スマホ表示対応（レスポンシブ） */
@media (max-width: 768px) {
  .job-card {
    flex-direction: column-reverse; /* スマホでは上が画像、下がテキスト */
  }

  .job-image {
    width: 100%;
    height: 200px;
  }

  .job-image img {
    border-radius: 16px 16px 0 0; /* スマホ時は上が角丸 */
  }
}

/* ===================================
   採用情報セクション
=================================== */
.recruit-section {
  background-color: #ffffff;
  padding: 80px 20px;
  color: #333;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.recruit-section .inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-title-white {
  font-size: 50px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 24px;
}

.section-title-dark {
  font-size: 50px;
  font-weight: bold;
  color: #0b2559;
  margin-bottom: 24px;
}

.recruit-lead {
  text-align: left;
  font-size: 15px;
  margin-bottom: 48px;
  color: #333;
  font-weight: 500;
}

.recruit-grid {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.recruit-grid .recruit-card {
  flex: 1;
}

.recruit-grid-single {
  display: flex;
  justify-content: center;
}

.recruit-grid-single .recruit-card {
  width: calc(50% - 12px); /* 上のカード片方と同じ幅にする計算 */
}

/* グレーのカードボタン */
.recruit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #111111 !important;

  /* 上が明るく、下が少し暗い立体感のある灰色グラデーション */
  background: linear-gradient(-80deg, #e8ebf0 0%, #c8ceda 100%);
  transition: all 0.3s ease;
}

/* ホバー時（黄色のグラデーション） */
.recruit-card:hover {
  /* 上が明るい黄色、下が少し深みのあるゴールド/イエローのグラデーション */
  background: linear-gradient(-80deg, #e2f53b 0%, #e8ff00 100%);
  
  /* ホバー時に少し上に浮き上がり、影を強調 */
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.recruit-card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 0;
  letter-spacing: 1px;
  color: #111111;
}

.recruit-card-sub {
  font-size: 13px;
  color: #444444;
  letter-spacing: 1px;
}

/* ===================================
   新卒・キャリア共通レイアウト
=================================== */
.recruit-detail-page .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.recruit-detail-page .inner-narrow {
  width: 1200px;
  margin: 0 auto;
  text-align: left;
  padding: 0 20px;
}

/* メインビジュアル */
.recruit-detail-mv {
  padding: 40px 0 20px;
  width: calc(100vw - 340px);
  margin: 0 auto;
}
.mv-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--color-navy);
}
.breadcrumb {
  font-size: 12px;
  color: #888 !important;
  margin-top: 5px;
}

/* ヒーローエリア */
.recruit-detail-hero {
  position: relative;
  width: 100%;
  height: 650px; /* 全体の高さ */
  /* 左上から右下への青グラデーション */
  background: linear-gradient(135deg, #0b2559 0%, #1a498b 50%, #3f8bc9 100%);
  overflow: hidden;
}
.recruit-detail-hero-career {
  position: relative;
  width: 100%;
  height: 650px; /* 全体の高さ */
  /* 左上から右下への青グラデーション */
  background: linear-gradient(135deg, #002060 0%, #262626 100%);
  overflow: hidden;
}


/* 左側の人物画像枠 */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%; /* 人物画像の表示エリア幅 */
  height: 100%;
  z-index: 1;
}
/* 男性画像の位置・サイズ調整 */
.hero-bg-image img {
  width: auto;
  height: 160% !important;
  max-width: none;
  display: block;
}

.hero-bg-career-image {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  z-index: 1;
}
.hero-bg-career-image img {
  width: auto;
  height: 140% !important;
  max-width: none;
  display: block;
}

/* 右側のテキストコンテンツエリア */
.hero-content {
  position: absolute;
  width: 90%;
  top: 0;
  right: 5%;
  height: 100%;
  pointer-events: none; /* 画像や背景への影響を防止 */
}
.hero-content-career {
  right: 0 !important;
  left: 5% !important;
}


/* 白枠のキャッチコピー文字 */
.hero-catch{
  text-align: right;
  transform: translateY(50%);
}
.hero-catch-career{
  text-align: left;
  transform: translateY(50%);
  margin-left: 100px;
}

.hero-catch span {
  background-color: #ffffff !important;
  color: #0b2559;
  font-size: 60px !important;
  font-weight: bold;
  padding: 6px 16px !important;
  margin-bottom: 8px !important;
  letter-spacing: 2px !important;
}

.hero-catch-career span {
  background-color: #ffffff !important;
  color: #0b2559;
  font-size: 60px !important;
  font-weight: bold;
  padding: 6px 16px !important;
  margin-bottom: 8px !important;
  letter-spacing: 2px !important;
}


/* 半透明の大きな英語サブテキスト */
.hero-sub {
  position: absolute;
  bottom: 10px;               /* 下端からの位置調整（0〜10pxで微調整可能） */
  right: 0;
  font-size: 130px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.8px;
  margin: 0;
  pointer-events: auto;
  line-height: 1.2;
  margin-bottom: -0.1em;
}
.hero-sub-career {
  left: 0 !important;
}

/* 導入テキスト */
.recruit-detail-intro {
  padding: 80px 0;
  text-align: center;
  line-height: 2;
  color: #111;
}
.lead-bold {
  font-weight: bold;
  font-size: 23px;
  margin-bottom: 30px;
}
.lead-text {
  font-size: 16px;
  margin-bottom: 30px;
}
.lead-bold.highlight {
  margin-top: 40px;
  margin-bottom: 0;
}

/* ビジネスリーダーの条件 */
.requirements-section {
  background: 
        linear-gradient(to right, 
            #0b2559 0%, 
            rgba(26, 73, 139, 0.85) 70%, 
            rgba(63, 139, 201, 0.4) 100%
        ),
        url('/assets/images/career/message-bg.png') no-repeat right center / auto 70%;
    padding: 70px 0;
    background-color: #0b2559; /* 画像が無い領域のフォールバック背景色 */
}

.requirements-section-career {
  background: 
        linear-gradient(to right, #0e2147 0%, rgba(0, 32, 96, 0.85) 70%, rgba(38, 38, 38, 0.4) 100%),
        url('/assets/images/career/message-bg.png') no-repeat right center / auto 70%;

    padding: 70px 0;
    background-color: #002060; /* 画像が無い領域のフォールバック背景色 */
}


.requirements-title {
  text-align: left;
  font-size: 38px;
  width: fit-content;
  background-color: #ffffff;
  color: var(--color-navy);
  line-height: normal;
  padding: 2px 8px;
  font-weight: bold;
  margin-bottom: 40px;
}
.requirements-list {
  text-align: left;
  line-height: 2.0;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 40px;
}
.requirements-list p {
  margin-bottom: 24px;
}
.requirements-list span {
  background-color: #ffffff;
  color: #111111;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 4px;
}
.btn-container {
  display: flex;
  justify-content: center;
}
.btn-rounded {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(-80deg, #e8ebf0 0%, #c8ceda 100%);
  color: #111111 !important;
  width: 280px;
  padding: 16px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-rounded:hover {
  background: linear-gradient(135deg, #e2f53b 0%, #e8ff00 100%);
  transform: translateY(-2px);
  color: var(--color-navy) !important;
}
.btn-main {
  font-size: 16px;
  font-weight: bold;
}
.btn-sub {
  font-size: 11px;
  color: #666;
}

/* 募集対象・採用実績校 */
.target-section,.process-section {
  padding: 80px 0 60px;
}

.target-inner{
  display: flex;
  gap: 80px;
  vertical-align: bottom;
}

.section-title-left {
  font-size: 26px;
  font-weight: bold;
  color: #0b2559;
  margin-bottom: 24px;
}
.target-block {
  width: 40%;
  margin-bottom: 50px;
}
.target-text {
  font-size: 16px;
}

.school-block{
  width: 60%;
  margin-top: 80px;
}

.school-title {
  font-size: 15px;
  font-weight: bold;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.school-list {
  font-size: 12px;
  line-height: 2;
  color: #333;
}

/* 選考プロセス */
.process-lead {
  font-size: 16px;
  margin-bottom: 40px;
}
.process-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.process-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: #0b2559;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
  flex-shrink: 0;
}
.process-arrow {
  flex: 1;
  height: 2px;
  background: linear-gradient(135deg, #3f8bc9 0%, #1a498b 50%, #0b2559 100%);
  position: relative;
  margin: 0 8px;
}

/* エントリーセクション */
.entry-section {
  position: relative;
  background-color: #e9ecf1;
  padding: 100px 20px 120px;
  margin-top: 40px;
  overflow: hidden;
}

.entry-bg-text {
  position: absolute;
  top: 0;                   
  left: 5%;
  font-size: 140px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 10px;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  line-height: 0.8;     
  margin-top: 0;        
}

.entry-section .inner-narrow {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.entry-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 80px auto 70px;
  text-align: left;
}

.entry-block:last-child {
  margin-bottom: 0;
}

/* ----------------------------------
   左側：縦線のアニメーション（上からすっと伸ばす）
---------------------------------- */
.entry-left {
  position: relative;
  width: 35%;
  padding-left: 30px;
  box-sizing: border-box;
}

/* 擬似要素で縦線を作成（初期状態は高さを0にする） */
.entry-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0%; /* 初期状態：線がない状態 */
  background-color: #0b2559;
  transition: height 0.8s ease; /* 0.8秒かけて伸ばす */
}

/* 画面内に入ったら縦線を100%まで伸ばす */
.entry-section.is-visible .entry-left::before {
  height: 100%;
}

.entry-sub-year {
  display: block;
  font-size: 13px;
  color: #3f8bc9;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.entry-year-title {
  font-size: 32px;
  font-weight: bold;
  color: #0b2559;
  margin: 0;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

/* ----------------------------------
   右側：ボタンとコンテンツのアニメーション（ふわっと浮き上がる）
---------------------------------- */
.entry-right {
  width: 50%;
  margin-top:50px;
}

.entry-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #333333;
  margin: 0 0 16px 0;
}

.entry-sub-block {
  margin-top: 40px;
}

/* ボタンのアニメーション初期設定（透明＋少し下に配置） */
.entry-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 300px;
  padding: 18px 16px;
  border-radius: 8px;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  
  /* ふわっとアニメーション用の初期設定 */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

/* 画面内に入ったら表示する */
.entry-section.is-visible .entry-btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s; /* 縦線が伸び始めた後、少し遅れて浮き上がる */
}

.entry-btn:hover {
  background: linear-gradient(-80deg, #e2f53b 0%, #e8ff00 100%) !important;
  color: #111111 !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.entry-btn:hover small {
  color: #444444 !important;
}

.entry-btn span {
  font-size: 15px;
  letter-spacing: 1px;
}

.entry-btn small {
  font-size: 10px;
  opacity: 0.85;
  font-weight: normal;
  margin-top: 2px;
}

.btn-blue {
  background: linear-gradient(135deg, #0056b3 0%, #003366 100%);
}

.btn-navy {
  background: linear-gradient(135deg, #0b2559 0%, #051433 100%);
}

@media (max-width: 768px) {
  .entry-block {
    flex-direction: column;
    gap: 20px;
  }
  .entry-left,
  .entry-right {
    width: 100%;
    margin-top: 20px;
  }
  .entry-desc{
    
  }
}

/* スマホ対応 (レスポンシブ) */
@media (max-width: 768px) {
  .hero-catch span { font-size: 20px; }
  .hero-sub { font-size: 24px; }
  
  .process-flow {
    flex-direction: column;
    gap: 16px;
  }
  .process-arrow {
    width: 2px;
    height: 24px;
    margin: 0;
  }
}

/* ===================================
   キャリア採用用：選考プロセス (イエローデザイン)
=================================== */
.process-flow.yellow-style .process-circle {
  background-color: #d4e000; /* 原稿の明るい黄緑/イエロー */
  color: #111111;
  width: 140px;
  height: 140px;
}

.process-flow.yellow-style .process-circle small {
  font-size: 10px;
  font-weight: normal;
  display: block;
  margin-top: 2px;
  line-height: 1.2;
}

.process-flow.yellow-style .process-arrow {
  background: linear-gradient(135deg, #d4e000 0%, #8d9408 100%) !important;
}


/* ===================================
   キャリア採用用：募集職種・求人リスト
=================================== */
.job-category-section {
  background-color: #ffffff;
  position: relative;
  background-color: #e9ecf1;
  padding: 100px 20px 300px;
  overflow: hidden;
}

.job-cat-lead {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #333333;
}

/* アンカーリンク一覧 */
.job-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  list-style: none;
  padding: 0;
  margin: 0 0 50px 0;
}

.job-anchor-nav a {
  color: #0b2559;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.job-anchor-nav a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* 求人ツリーコンテナ */
.job-tree-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.job-tree-group {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid #e0e0e0;
  padding-top: 32px;
  gap: 40px; /* 左右カラムの間隔 */
}


.job-tree-group {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid #e0e0e0;
  padding-top: 32px;
  gap: 40px; /* 左右カラムの間隔 */
}

/* 左カラム（英語サブタイトル＋職種名見出しの親枠） */
.job-tree-header {
  width: 50%; /* 左カラムの幅 */
  padding-left: 30px; /* 縦線と文字の間の隙間 */
  position: relative; 
}

/* 縦のライン */
.job-tree-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;           
  width: 2px;      
  height: 100%;      
  background-color: #0b2559;
  transition: height 0.8s ease;
}

/* 英語サブタイトル */
.entry-sub-year {
  font-size: 12px;
  color: #3f8bc9;
  font-weight: 500;
  display: block;
}

/* 職種大見出し */
.job-tree-main-title {
  font-size: 30px;
  font-weight: bold;
  color: #0b2559;
  margin: 0;
  line-height: 1.4;
  width: 35%;
  flex-shrink: 0;
  position: relative;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

/* 右側：求人リスト（残りの幅をすべて使う） */
.job-tree-list {
  flex-grow: 1;
  list-style: none;
  padding: 30px 0 0; /* 左余白をリセット */
  margin: 0;
}

.job-tree-list > li {
  margin-bottom: 20px;
}

.job-tree-list > li:last-child {
  margin-bottom: 0;
}

/* メインの職種名リンク（またはdiv） */
.job-link-main {
  font-size: 18px;
  font-weight: bold;
  display: inline-block;
  transition: none;
  text-decoration: none;
  margin: 10px 0 6px;
}

a.job-link-main {
  transition: color 0.2s ease !important;
  text-decoration: underline !important;
  color: var(--color-navy);
}


.job-link-main[href]:hover {
    color: #0056b3;
}

/* サブカテゴリ（マーケティング系、勤務地など）の横並び配置 */
.job-tree-sub-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 40px;
  list-style: none;
  padding-left: 0;
  margin: 0 0 0 15px;
}

.job-tree-sub-list a {
  color: var(--color-navy);
  font-size: 15px;
  text-decoration: underline !important;
  position: relative;
  padding-left: 12px;
  transition: color 0.2s ease;
}

.job-tree-sub-list a::before {
  content: "\2514";
  position: absolute;
  top: 0;
  left: -5px;
  font-size: 12px;
  color: #0b2559;
}

.job-tree-sub-list a:hover {
  color: #0b2559;
  text-decoration: underline;
}


/* -----------------------------------
   スマホ・タブレット対応 (1カラムに戻す)
----------------------------------- */
@media (max-width: 768px) {
  .job-tree-group {
    flex-direction: column;
    gap: 16px;
  }

  .job-tree-header {
    width: 100%;
  }

  .job-tree-main-title {
    width: 100%;
  }

  .job-anchor-nav {
    flex-direction: column;
    gap: 12px;
  }
  
  .process-flow.yellow-style .process-circle {
    width: 100px;
    height: 100px;
    background-color: #d4e000 !important;
    color: #111111 !important;
  }

  /* 1. フロー全体を5列のGridレイアウトに設定 */
  .process-flow.yellow-style {
    display: grid !important;
    /* 円(88px) 矢印(14px) 円(88px) 矢印(14px) 円(88px) の5列に固定 */
    grid-template-columns: 88px 14px 88px 14px 88px !important;
    justify-content: center !important; /* 5列のブロック全体を画面中央に配置 */
    align-items: center !important;
    gap: 16px 8px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* 2. 各要素の配置マス目を指定（これで右寄りを完全に防止） */

  /* 上段（1段目）の配置 */
  .process-flow.yellow-style .process-circle:nth-of-type(1) { grid-column: 1; grid-row: 1; } /* 書類選考 */
  .process-flow.yellow-style .process-arrow:nth-of-type(2)  { grid-column: 2; grid-row: 1; }
  .process-flow.yellow-style .process-circle:nth-of-type(3) { grid-column: 3; grid-row: 1; } /* 一次面接 */
  .process-flow.yellow-style .process-arrow:nth-of-type(4)  { grid-column: 4; grid-row: 1; }
  .process-flow.yellow-style .process-circle:nth-of-type(5) { grid-column: 5; grid-row: 1; } /* 二次面接 */

  /* 上段と下段をつなぐ3番目の矢印は非表示 */
  .process-flow.yellow-style .process-arrow:nth-of-type(6)  { display: none !important; }

  /* 下段（2段目）の配置：左端の1マス目・3マス目に固定 */
  .process-flow.yellow-style .process-circle:nth-of-type(7) { grid-column: 1; grid-row: 2; } /* 最終面接（左端） */
  .process-flow.yellow-style .process-arrow:nth-of-type(8)  { grid-column: 2; grid-row: 2; } /* 矢印 */
  .process-flow.yellow-style .process-circle:nth-of-type(9) { grid-column: 3; grid-row: 2; } /* 内定（2番目） */

  /* 最後の矢印（内定の右）を非表示 */
  .process-flow.yellow-style .process-arrow:nth-of-type(10),
  .process-flow.yellow-style .process-arrow:last-of-type   { display: none !important; }
}

/* ===================================
   フッター
=================================== */
.site-footer {
  background-color: #0b2559; /* 上部と同じダークブルー */
  color: #ffffff !important;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* ブランドロゴ部分 */
.footer-brand {
  flex-shrink: 0;
}

.footer-logo {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.3;
  letter-spacing: 1px;
  margin-bottom: 0;
}

.footer-brand-title {
  font-size: 35px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* フッターナビゲーション */
.footer-nav {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 12px;
}

.footer-nav-list a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
  transition: opacity 0.2s;
}

.footer-nav-list a:hover {
  opacity: 0.7;

}

/* コピーライトエリア */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 20px;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.privacy-link {
  color: #ffffff;
  text-decoration: none;
}

.privacy-link:hover {
  text-decoration: underline;
}

.copyright {
  color: #cccccc;
  margin: 0;
}


/* ===================================
   レスポンシブ（スマホ対応）
=================================== */
@media (max-width: 768px) {
  .recruit-grid {
    flex-direction: column;
  }

  .recruit-grid-single .recruit-card {
    width: 100%;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ----------------------------------
   7. スクロールアニメーション設定
---------------------------------- */
.fade-in-target {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-target.is-visible {
    opacity: 1;
    transform: translateY(0);
}



/* PC表示時はスマホ用SNSボタンを非表示にする */
.sp-menu-sns {
    display: none;
}

/* PC専用改行タグ（通常時は有効化） */
br.pc-only {
    display: inline;
}

/* スマホ専用改行タグ（PC表示時は非表示にして無効化） */
br.sp-only {
    display: none;
}


/* ===================================
   スマホ対応ヘッダー (768px以下)
=================================== */
@media screen and (max-width: 768px) {

  /* スマホ表示時（768px以下）のみ改行を有効化 */
  br.sp-only {
      display: inline !important;
  }

  /* スマホ表示時（768px以下）はPC専用改行を無効化 */
  br.pc-only {
      display: none !important;
  }

    /* sp-no-fade クラスがついた要素は最初から100%表示＆位置固定にする */
    .fade-in-target.sp-no-fade {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important; /* アニメーション待ち時間を消す */
    }

    /* ヘッダー全体の配置調整 */
    .header-inner {
        padding: 10px 15px 11px;
        position: relative;
    }

    /* 1. ロゴエリア：右隣・下揃えに配置 */
    .site-logo {
        padding-left: 0;
    }

    .site-logo .logo-link {
        display: flex !important;
        flex-direction: row !important;      /* 横並び（右隣） */
        align-items: flex-end !important;    /* 下揃え */
        gap: 8px !important;                 /* ロゴとテキストの間隔 */
    }

    .site-logo .logo-img {
        height: 26px;                        /* スマホ用ロゴ画像サイズ */
    }

    .site-logo .logo-text {
        border-left: 1px solid #9ea9bc;      /* PC版と同じ区切り線 */
        padding-left: 8px;
        font-size: 11px;                     /* 小さめのフォントサイズ */
        font-weight: 500;
        line-height: 1.1;
        margin-bottom: 2px;                  /* 下揃えの微調整 */
    }

    /* PC用ナビゲーションを非表示 */
    .header-nav {
        display: none;
    }

    .header-nav-wrapper {
        background: transparent;
        padding: 0;
    }

    /* 2. ハンバーガーボタンを右上に固定表示 */
    .hamburger-btn {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1001;
        margin-right: 0;
    }

    /* 3. ハンバーガーメニュー（画面全体表示） */
    .dropdown-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(to bottom, #e2f53b, #e8ff00);
        border-radius: 0;
        box-sizing: border-box;
        overflow-y: auto;
        z-index: 1000;
        padding: 80px 30px 60px;
    }

    .dropdown-inner {
        max-width: 320px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 80vh;
    }

    .dropdown-menu ul {
        padding: 0;
    }

    .dropdown-menu li a {
        font-size: 16px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 32, 96, 0.15);
        text-align: left;
    }

    /* 4. スマホ時のみ表示するSNSアイコン */
    .sp-menu-sns {
        display: flex;                      /* スマホ時のみ表示 */
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
        padding-top: 20px;
    }

    .sns-icon-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-color: #0b2559;
        transition: transform 0.2s ease;
    }

    .sns-icon-btn img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }
  }
/* ===================================
   ヒーローセクション（TOPファーストビュー）スマホ対応
=================================== */
@media screen and (max-width: 768px) {
/* ヘッダーとの隙間をカット */
    #container {
        padding-top: 50px !important;
    }

    /* 1. FV画像のエリア */
    .hero-visual {
        width: 100%;
        height: 50vh !important;
        min-height: 350px !important;
        max-height: 440px !important;
        position: relative;
    }

    .hero-visual-img img {
        width: 100%;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center;
    }

    /* 2. キャッチコピーの配置 */
    .hero-visual-content {
        padding: 0 15px;
        box-sizing: border-box;
    }

    .hero-catchcopy {
        position: absolute;
        bottom: 35px;
        left: 15px;
        right: 15px;
        margin: 0;
        line-height: 1.1;               /* 親要素の行高を小さくして改行時の隙間を極力カット */
    }

    /* 3. 1行目：「データを究め、」 */
    .hero-catchcopy .bg-white-text {
        font-size: 17px !important;
        font-weight: 700;
        padding: 5px 12px;
        line-height: 1.2;               /* 行高を詰める */
        display: inline-block;
        margin-bottom: 2px !important;  /* ★1行目と2行目の隙間をキュッと縮める調整 */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    /* 4. 2行目：「ビジネスを動かすリーダーへ。」 */
    .hero-catchcopy .bg-white-text.text-zoom-14 {
        font-size: 22px !important;
        font-weight: 900;
        padding: 6px 14px;
        letter-spacing: 0.5px;
        margin-bottom: 0;
    }

    .underline-green{
      background: none !important;
    }

/* コンテナ全体を縦並び（下にある右側要素を上にひっくり返す）に設定 */
    .hero-message-container {
        display: flex !important;
        flex-direction: column-reverse !important; /* 右側（画像）→ 左側（テキスト）の順に縦並び */
        padding: 0 20px 40px !important;            /* 上部の余白を0にして不要な隙間をカット */
        box-sizing: border-box;
    }

    /* 1. 右側：人物画像エリア（上に配置される） */
    .hero-message-right {
        position: relative !important;
        width: 100% !important;
        height: 260px !important;                  /* 画像の表示高さ */
        margin: 0 0 30px 0 !important;             /* 上余白を完全に消去(0)し、下テキストとの間のみ余白を設定 */
        top: auto;
        right: auto;
    }

    .hero-message-right img {
    /* スマホ表示時のみ、指定の画像(hero-person-sp.jpg)に表示を差し替え */
    content: url("/assets/images/top/hero-person-sp.jpg") !important;
    
    /* 切り替わった画像のアスペクト比・トリミング維持 */
        margin-left: -20px !important;             /* 左右の画面端まで全幅表示 */
        margin-right: -20px !important;
    width: calc(100% + 40px) !important;
            max-width: none !important;
    height: 80% !important;
    object-fit: cover !important;
    object-position: center 20% !important;
    display: block !important;
  }

    /* 2. 左側：テキストエリア（下に配置される） */
    .hero-message-left {
        display: block !important;                 /* contents指定を解除して通常のブロックへ戻す */
        width: 100% !important;
        padding: 0 !important;                     /* 不要な内側余白をリセット */
        margin: -140px 0 0 0 !important;
        box-sizing: border-box;
    }

    .hero-message-white{
        width: 100%;
        background-color: transparent;
        padding: 0;
    }


    /* サブキャッチ */
    .hero-sub-catch {
        margin-bottom: 20px !important;
        text-align: left !important;
        line-height: 0.5px;
    }

    .hero-sub-catch .bg-white-text {
        font-size: 22px !important;
        font-weight: 800;
        padding: 6px 12px;
        line-height: 1.4;
        display: inline-block;
        margin-bottom: 6px;
        color: #000000 !important;
        background-color: #ffffff !important;
    }

    /* 文章グループ間の余白設定 */
    .hero-message-left .text-group {
        margin-bottom: 16px !important;
    }

    /* 本文テキストデザイン */
    .hero-text-box {
        display: block !important;
        background-color: transparent !important;
        color: #ffffff !important;
        white-space: normal !important;
        font-size: 15px !important;
        font-weight: 500;
        line-height: 1.8;
        padding: 0 !important;
        margin-bottom: 10px;
        box-shadow: none !important;
        text-align: left !important;
    }

.text-box p {
    margin: 15px 0;
}

/* 親要素の左右paddingが 20px の場合 */
    .sp-full-width {
        margin-left: -20px !important;               /* 左余白分外側へ引っ張る */
        margin-right: -20px !important;              /* 右余白分外側へ引っ張る */
        width: calc(100% + 40px) !important;         /* 100% + 左右合計(40px)に広げる */
        max-width: none !important;                  /* 幅制限を解除 */
        display: block !important;
        height: auto !important;
    }

    /* クラスでの改行削除指定 */
    br.sp-none,
    .sp-none {
        display: none !important;
    }

    /* 強調ボックス（締めのメッセージ） */
    .hero-text-box.highlight-box {
        font-size: 22px !important;
        font-weight: 800;
        background-color: #ffffff !important;
        color: #000000 !important;
        padding: 8px 14px !important;
        margin-top: 20px !important;
        display: inline-block !important;
        text-align: left !important;
        line-height: 1.4;
    }

/* 成長1. 見出しの文字サイズ・余白調整 */
    .section-title {
        font-size: 30px !important;       /* スマホに合わせた大見出しサイズ */
        margin: 60px 0 20px !important;    /* PC用の巨大な余白(120px)を半減 */
        line-height: 1.3;
    }

    .section-mini-title {
        font-size: 20px !important;       /* 中見出しサイズ */
        line-height: 1.4;
        margin: 20px 0 15px !important;
    }

    .section-mini-title span {
        font-size: 13px !important;
        display: inline;               /* スマホではサブテキストを改行表示 */
        margin: 4px 0 0 0 !important;
    }

.growth-section-wide-box{
    margin: 60px auto 40px;
}

    /* 2. 2カラム構造を縦1列（1カラム）へ変更 */
    .growth-section-box {
        flex-direction: column !important; /* 縦並びに切替 */
        gap: 0 !important;
        margin: 30px auto 25px !important;
    }

    .growth-section-left {
        width: 100% !important;           /* 幅を全幅へ拡張 */
    }

    .pill-shadow-label{
      line-height: 1.6em;
    }

    .pill-shadow-label-list{
      width: 100%;
      margin: 20px 0;
    }

    /* 3. カプセル型ラベル一覧のスマホ調整 */
    .pill-label-list {
        width: 100% !important;           /* PC用の50%指定を解除 */
        max-width: 100% !important;
        margin: 10px auto 0 !important;
    }

    .pill-label {
        font-size: 14px !important;
        padding: 10px 15px !important;
    }

    .pill-label span {
        display: block;                  /* 英字のサブテキストを下に回して読みやすく */
        margin-left: 0 !important;
        font-size: 11px !important;
        margin-top: 2px;
    }

    /* 4. キャリアステップ画像＆右側テキストエリアの調整 */
    .career-grid img {
        height: auto !important;
    }

    .career-right-text {
        width: 100% !important;           /* PC用の35%指定を解除して100%へ */
        margin-top: 20px;
    }

    /* 注記テキスト（※）のサイズ調整 */
    .text-box p.attention {
        font-size: 12px !important;
        line-height: 1.6;
        margin: 10px 0 !important;
    }

    .section-lead-text {
      font-size: 14px;
      line-height: 28px;;
    }

    .f-mt50 {
        margin-top: 20px !important;      /* スマホ用に上部余白を詰める */
    }
}

/* スマホ対応（レスポンシブ） */
@media screen and (max-width: 768px) {
    .voice-grid,
    .group-info-list {
        grid-template-columns: 1fr;
    }
    .news-link {
        flex-direction: column;
        line-height: 1.5em;
        gap: 4px;
    }
    .news-list-title{
      margin: 20px 0;
    }
    .news-date {
        width: auto;
    }

/* 1. 親枠を基準位置に設定 */
    .group-diagram-wrapper {
        position: relative !important;
        width: 100% !important;
        margin-top: 30px !important;
    }

    /* 2. 背景画像の表示指定 */
    .group-diagram-bg img {
        height: auto !important;
        display: block !important;
    }

    /* 3. テキストアイテム共通位置（画像の右側スペースへ配置） */
    .group-text-item {
        position: absolute !important;        /* 画像の上に重ねて絶対配置 */
        left: 35% !important;                  /* 画像の左側(丸ロゴがある部分)を空けて35%の位置から開始 */
        right: 0 !important;
        width: 62% !important;                 /* テキストエリアの幅 */
        text-align: left !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    /* 各会社の上下位置調整（作成したスマホ画像の丸の位置に合わせて%を微調整してください） */
/* 各会社の上下位置調整（スマホ図表の丸ロゴ位置に合わせた5社縦並び） */
  .group-text-item.item-02 {
    top: 0 !important;        /* 1つ目：D4cプレミアム */
  }

  .group-text-item.item-03 {
    top: 18% !important;       /* 2つ目：D4cテクノロジー */
  }

  .group-text-item.item-00 {
    top: 45% !important;       /* ★3つ目：データフォーシーズ（追加） */
  }

  .group-text-item.item-01 {
    top: 61% !important;       /* 4つ目：ディーファイブコンサルティング */
  }

  .group-text-item.item-04 {
    top: 80% !important;       /* 5つ目：D4cアカデミー */
  }

    /* 文字サイズと装飾 */
    .group-text-item h3 {
        font-size: 14px !important;
        font-weight: bold;
        margin: 0 0 4px 0 !important;
        line-height: 1.3;
    }

    .group-text-item h3 a {
        color: var(--color-navy) !important;
        text-decoration: none;
    }

    .group-text-item p {
        font-size: 11px !important;           /* スマホ画像幅に合わせて見やすい小さめフォント */
        line-height: 1.5 !important;
        color: #333333 !important;
        margin: 0 !important;
    }

/* 1. ロゴ配置エリアをCSS Gridで均等3列に設定 */
    .client-logo-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 横幅を均等に3分割 */
        gap: 16px 12px !important;                       /* 上下の隙間:16px、左右の隙間:12px */
        align-items: center !important;                  /* 上下の配置を中央揃え */
        justify-items: center !important;                /* 左右の配置を中央揃え */
        padding: 20px 0 40px !important;
    }

    /* 2. ロゴ画像自体のサイズ調整 */
    .client-logo-grid img {
        max-width: 100% !important;                       /* 枠からはみ出さない */
        max-height: 28px !important;                      /* スマホで見やすい高さ制限 */
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;                  /* 縦横比を崩さず収める */
    }
  }

/* ===================================
   募集職種セクション（スマホ用：左テキスト・右画像＆縦線保持）
=================================== */
@media screen and (max-width: 768px) {

  /* 1. セクション全体の上下余白 */
    .job-section {
        padding: 50px 0 70px !important;
    }

    .job-section .section-title-white {
        font-size: 26px !important;
        padding-left: 20px !important;
        margin-bottom: 32px !important;
    }

    /* 2. カードリスト全体（左側の縦ラインを消して左右均等の余白へ） */
    .job-list {
        padding: 0 15px !important;         /* ★縦ライン用余白(35px)をなくし左右15pxに統一 */
        gap: 24px !important;               /* カード同士の上下間隔 */
    }

    /* ★左端のグラデーション縦ラインを非表示にする指定 */
    .job-list::before {
        display: none !important;
    }

    /* 3. 職種カード本体 */
    .job-card {
        height: 230px;
        flex-direction: row !important;     /* 横並び配置を維持 */
        align-items: stretch !important;    /* 画像とテキストの高さを揃える */
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
        overflow: hidden !important;        /* 画像の角丸はみ出しを防止 */
    }

    /* 左側：テキストエリア */
    .job-content {
        flex: 1 !important;
        padding: 20px 10px 20px 20px !important;   /* 内側余白の微調整 */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .job-title {
        font-size: 15px !important;
        font-weight: bold;
        margin-bottom: 8px !important;
        padding-bottom: 6px !important;
        line-height: 1.4 !important;
    }

    .job-description {
        font-size: 12px !important;
        line-height: 1.4 !important;
        color: #444444 !important;
        margin: 0 !important;
    }

    /* 右側：画像エリア（横幅を125pxへワイド化） */
    .job-image {
        width: 125px !important;            /* ★画像の横幅を100pxから125pxに拡張 */
        height: auto !important;
        flex-shrink: 0 !important;          /* 画像の変形を防止 */
    }

    .job-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 0 12px 12px 0 !important;
    }

/* 1. セクション全体の上下余白調整 */
    .recruit-section {
        padding: 50px 20px 60px !important;
    }

    .section-title-dark {
        font-size: 26px !important;
        margin-bottom: 16px !important;
    }

    .recruit-lead {
        font-size: 13px !important;
        line-height: 1.7 !important;
        margin-bottom: 32px !important;
    }

    /* 2. ボタン群コンテナの調整 */
    .recruit-grid {
        flex-direction: column !important; /* スマホでは縦1列に並べる */
        gap: 16px !important;              /* ボタン同士の上下間隔 */
        margin-bottom: 16px !important;
    }

    .recruit-grid-single {
        display: block !important;
        width: 100% !important;
    }

    /* 3. ボタンカード共通スタイル（全幅表示化） */
    .recruit-card,
    .recruit-grid-single .recruit-card {
        width: 100% !important;            /* 幅を画面いっぱいに拡張 */
        box-sizing: border-box !important;
        padding: 20px 16px !important;     /* 指で押しやすい上下余白 */
        border-radius: 12px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    }

    /* ボタン内のテキスト調整 */
    .recruit-card-title {
        font-size: 18px !important;        /* スマホで見やすいタイトルサイズ */
        margin-bottom: 0 !important;
    }

    .recruit-card-sub {
        font-size: 12px !important;        /* スマホ用サブテキストサイズ */
    }
}

  @media screen and (max-width: 768px) {
/* フッター全体の左右余白調整 */
  .footer-inner {
    padding: 40px 20px 30px;
    box-sizing: border-box;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  /* 1. ナビゲーションエリアを縦1列に変更 */
  .footer-nav {
    display: flex;
    flex-direction: column; /* 縦1列に配置 */
    gap: 0;
    width: 100%;
  }

  .footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px; /* 項目間の間隔 */
  }

  .footer-nav-list li {
    margin-bottom: 0;
  }

  /* 2. 指で押しやすいタップ領域と行間の設定 */
  .footer-nav-list a {
    display: block;          /* タップエリアを横幅いっぱいに広げる */
    padding: 10px 0;         /* 上下にゆったりとした余白（指で押しやすくする） */
    font-size: 15px !important; /* スマホで見やすい文字サイズ */
    line-height: 1.6;        /* ゆとりのある行間 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 区切り線を追加して押しやすさを補強 */
  }

  /* 3. コピーライトエリアの調整 */
  .footer-bottom-inner {
    padding: 0 20px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .privacy-link {
    display: inline-block;
    padding: 8px 0;          /* プライバシーポリシーも押しやすく調整 */
    font-size: 12px;
  }
}

/* ===================================
   新卒採用ページ スマホ専用対応（768px以下 - パターンB: 重なり維持）
=================================== */
@media screen and (max-width: 768px) {

/* --- 1. メインビジュアルタイトルエリア (.recruit-detail-mv) --- */
  .recruit-detail-mv {
    padding: 15px 20px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .mv-title {
    font-size: 24px !important;
    margin-bottom: 4px !important;
  }

  .breadcrumb {
    font-size: 11px !important;
  }

  /* --- 2. ヒーローエリア (.recruit-detail-hero) --- */
  .recruit-detail-hero {
    /* 画面全体の高さ(100dvh)からヘッダー高(約50px)とタイトルエリア分を差し引いてぴったり1画面に調整 */
    height: calc(100dvh - 120px) !important;
    min-height: 420px !important;
    position: relative !important;
    background: #0b2559 !important;
    overflow: hidden !important;
  }
  
.recruit-detail-hero .hero-bg-image {
    width: 60% !important;        /* 横幅の占有率 */
    height: 100% !important;       /* ヒーローエリアの高さいっぱいに枠を確保 */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: flex !important;      /* 内部の画像を上下中央に整列 */
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    z-index: 1 !important;
  }

  /* 画像本体の引き伸ばし防止指定 */
  .recruit-detail-hero .hero-bg-image img {
    width: 100% !important;        /* 枠幅に合わせる */
    height: auto !important;       /* ★高さをautoにして縦横比の歪みを完全に防ぐ */
    max-height: 100% !important;   /* 枠の高さを超えないように制御 */
    object-fit: contain !important;/* アスペクト比を維持 */
    object-position: left center !important;
    display: block !important;
    transform: none !important;    /* スクロール時のズーム拡大を停止 */
    transition: none !important;
  }

  /* 左寄せの男性画像 */

.hero-bg-image {
    width: 65% !important;
    height: 100% !important;
  }

.hero-bg-image img {
    width: 100% !important;
    height: 100% !important; /* 高さを枠に合わせる */
    object-fit: contain !important; /* 縦引き伸ばし防止 */
    object-position: left center !important;
    transform: none !important; /* 拡大防止 */
    transition: none !important;
  }

.hero-bg-career-image img {
  width: 100% !important;
  height: 100% !important; /* 枠の高さにぴったり合わせる */
  max-width: 100% !important;
  object-fit: cover !important; /* 枠いっぱいにトリミングして固定 */
  object-position: right top !important; /* 男性の右上を基準に配置 */
  display: block !important;
  transform: none !important; /* 拡大アニメーション等の影響を完全に無効化 */
  transition: none !important;
}

  /* テキスト全体の配置枠 */
  .hero-content {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* ネクタイあたり（中央の高さ）に配置 */
    align-items: flex-end !important; /* 右寄せ */
    z-index: 10 !important; /* ★重ね順：一番上 */
  }

  /* キャッチコピー */
  .hero-catch {
    text-align: right !important;
    margin: 0 !important;
  }

  .hero-catch span {
    font-size: 24px !important;
    padding: 4px 10px !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: inline-block !important;
  }

  /* 背景の大きな英語文字 */
  .hero-sub {
    font-size: 58px !important;
    position: absolute !important;
    left: 15px !important;
    bottom: 15px !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.2) !important;
    z-index: 5 !important; /* 重ね順：画像の上、コピーの下 */
    pointer-events: none !important;
  }

  /* --- 3. 導入テキストエリア (.recruit-detail-intro) --- */
  .recruit-detail-intro {
    padding: 50px 0 !important; /* 上下の余白をPC用の80pxから詰める */
  }

  /* 幅1200px固定を解除し、スマホの幅に合わせて左右余白を確保 */
  .recruit-detail-intro .inner-narrow {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
  }

  /* PC用の改行<br>をスマホでは無効化して自然に折り返す */
  .recruit-detail-intro br {
    display: none !important;
  }

  /* 太字強調テキスト */
  .recruit-detail-intro .lead-bold {
    font-size: 18px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    text-align: left !important; /* スマホでは左揃えで読みやすく */
  }

  /* 本文テキスト */
  .recruit-detail-intro .lead-text {
    font-size: 14px !important;
    line-height: 1.8 !important;
    margin-bottom: 16px !important;
    text-align: left !important;
  }

  /* 締めの強調テキスト */
  .recruit-detail-intro .lead-bold.highlight {
    font-size: 18px !important;
    margin-top: 24px !important;
    margin-bottom: 0 !important;
  }

/* --- 4. ビジネスリーダーの条件 (.requirements-section) --- */
  .requirements-section {
    padding: 50px 20px !important; /* スマホ用の上下・左右余白 */
  background: 
        linear-gradient(to right, 
            #0b2559 0%, 
            rgba(26, 73, 139, 0.85) 100%
        ),
        url('/assets/images/career/message-bg.png') no-repeat right center / auto 100%;
  }
  .requirements-section .inner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* h2タイトル：30px */
  .requirements-section .requirements-title {
    font-size: 30px !important;
    line-height: 1.3 !important;
    margin-bottom: 24px !important;
    padding: 4px 10px !important;
  }

  .recruit-detail-page .inner{
    padding: 0;
  }


  /* リスト全体 */
  .requirements-section .requirements-list {
    margin-bottom: 30px !important;
  }

  /* PC用の固定改行<br>をスマホでは解除して自然に折返す */
  .requirements-section .requirements-list br {
    display: none !important;
  }

  /* 段落テキスト：白文字・15px・line-height: 1.8 */
  .requirements-section .requirements-list p {
    font-size: 15px !important;
    color: #ffffff !important;
    line-height: 1.8 !important;
    font-weight: 500;
    margin-bottom: 18px !important;
  }

  /* spanの白背景を無しにして白文字を継承 */
  .requirements-section .requirements-list span {
    background-color: transparent !important; /* 白背景を削除 */
    background: transparent !important;
    color: #ffffff !important; /* 文字色を白に指定 */
    padding: 0 !important;
    display: inline !important;
  }

  /* エントリーボタンのスマホ調整 */
  .requirements-section .btn-rounded {
    width: 100% !important;
    max-width: 300px !important;
    box-sizing: border-box !important;
  }

/* --- 5. 募集対象・採用実績校 (.target-section) --- */
  .target-section {
    padding: 50px 20px 40px !important; /* スマホ用の上下・左右余白 */
  }

  /* 2カラムを縦1列（1カラム）に変更 */
  .target-inner {
    flex-direction: column !important;
    gap: 40px !important; /* 縦並び時のブロック同士の間隔 */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 募集対象ブロック（幅100%化） */
  .target-block {
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  /* 「募集対象」見出し */
  .section-title-left {
    font-size: 22px !important;
    margin-bottom: 12px !important;
  }

  /* 募集対象 本文 */
  .target-text {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  /* 採用実績校ブロック（幅100%化・上余白リセット） */
  .school-block {
    width: 100% !important;
    margin-top: 0 !important; /* PC用の margin-top: 80px をリセット */
  }

  /* 「採用実績校」見出し */
  .school-title {
    font-size: 15px !important;
    margin-bottom: 12px !important;
    padding-bottom: 6px !important;
  }

  /* 採用実績校 一覧テキスト */
  .school-list {
    font-size: 12px !important;
    line-height: 1.8 !important; /* スマホで大学名が重ならないよう行高を調整 */
  }

/* --- 6. 選考プロセス (.process-section) 横2段（3:2 左寄せ揃え版） --- */
  .process-section {
    padding: 20px 15px !important; /* 左右の余白設定 */
  }

  .process-lead {
    font-size: 14px !important;
    margin-bottom: 24px !important;
  }

  /* フロー全体：左寄せベースの2段配置 */
    .process-flow {
    display: grid !important;
    /* 円(88px) 矢印(14px) 円(88px) 矢印(14px) 円(88px) の5列に固定 */
    grid-template-columns: 88px 14px 88px 14px 88px !important;
    justify-content: center !important; /* 5列のブロック全体を画面中央に配置 */
    align-items: center !important;
    gap: 16px 8px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }


  /* ステップの円 */
  .process-circle {
    width: 88px !important;
    height: 88px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    padding: 2px !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    background-color: #0b2559 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-weight: bold !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
  }

  /* 矢印（横向きの線） */
  .process-arrow {
    width: 14px !important; /* 上段・下段共通の矢印の長さ */
    height: 2px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, #3f8bc9 0%, #1a498b 50%, #0b2559 100%) !important;
    position: relative !important;
  }

  /* 矢印の先端（▼）を非表示 */
  .process-arrow::after {
    display: none !important;
  }

  /* 3番目の矢印（一次面接の右＝上段と下段の境目）を消して強制折り返し */
  .process-arrow:nth-of-type(3) {
    display: none !important;
  }

  /* 最後の矢印（内定の右）を非表示 */
  .process-arrow:last-of-type {
    display: none !important;
  }


  /* nth-of-type によるマス目位置の個別指定 */

  /* 上段（1段目）の配置 */
  .process-flow .process-circle:nth-of-type(1) { grid-column: 1; grid-row: 1; } /* 会社説明会 */
  .process-flow .process-arrow:nth-of-type(2)  { grid-column: 2; grid-row: 1; }
  .process-flow .process-circle:nth-of-type(3) { grid-column: 3; grid-row: 1; } /* 書類選考＆適性テスト */
  .process-flow .process-arrow:nth-of-type(4)  { grid-column: 4; grid-row: 1; }
  .process-flow .process-circle:nth-of-type(5) { grid-column: 5; grid-row: 1; } /* 一次面接 */

  /* 上段と下段をつなぐ3番目の矢印（一次面接の右）は非表示 */
  .process-flow .process-arrow:nth-of-type(6)  { display: none !important; }

  /* 下段（2段目）の配置：左端の1マス目・3マス目に固定 */
  .process-flow .process-circle:nth-of-type(7) { grid-column: 1; grid-row: 2; } /* 最終面接（左端） */
  .process-flow .process-arrow:nth-of-type(8)  { grid-column: 2; grid-row: 2; } /* 矢印 */
  .process-flow .process-circle:nth-of-type(9) { grid-column: 3; grid-row: 2; } /* 内定（2番目） */

  /* 最後の矢印（内定の右）を非表示 */
  .process-flow .process-arrow:nth-of-type(10),
  .process-flow .process-arrow:last-of-type   { display: none !important; }


/* --- 7. エントリーセクション (.entry-section) スマホ最適化 --- */
  .entry-section {
    padding: 60px 20px 80px !important; /* 全体の上下余白をコンパクト化 */
  }

  /* 背景の文字「ENTRY」をスマホサイズへ最適化 */
  .entry-bg-text {
    font-size: 90px !important; /* はみ出さず綺麗に見えるサイズ */
    left: 20px !important;
    top: 5px !important;
    color: rgba(255, 255, 255, 0.8) !important;
  }

  /* コンテナ幅をスマホ画面いっぱいに広げる */
  .entry-section .inner-narrow {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* 2027/2028ブロック同士の上下間隔を圧縮 */
  .entry-block {
    margin: 40px auto 30px !important; /* PC用の80pxから半減 */
    gap: 16px !important;
  }

  /* 左側（タイトル部分）の隙間と幅調整 */
  .entry-left {
    width: 100% !important;
    padding-left: 20px !important; /* 縦線の横余白 */
  }

  .entry-sub-year {
    font-size: 12px !important;
    margin-bottom: 0;
  }

  /* 「2027 エントリー」などの見出し */
  .entry-year-title {
    font-size: 24px !important; /* はみ出し防止 */
    white-space: normal !important; /* 折り返しを許可 */
  }

  /* 右側（コンテンツ部分）の隙間圧縮 */
  .entry-right {
    width: 100% !important;
    margin-top: 10px !important; /* PC用の margin-top: 50px を大幅圧縮 */
  }

  /* 説明文の余白と改行調整 */
  .entry-desc {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
  }

  /* スマホでの不要な固定改行<br>を解除して自然に折り返す */
  .entry-desc br {
    display: none !important;
  }

  /* サブブロック（インターン詳細など）の上余白を詰める */
  .entry-sub-block {
    margin-top: 24px !important; /* PC用の40pxから圧縮 */
  }

  /* エントリーボタン（はみ出さず押しやすい全幅表示） */
  .entry-btn {
    width: 100% !important; /* 画面幅に合わせて伸縮 */
    max-width: 100%;
    padding: 14px 16px !important; /* ボタンの縦幅を適正化 */
    box-sizing: border-box !important;
  }

  .entry-btn span {
    font-size: 15px !important;
  }

  .entry-btn small {
    font-size: 11px !important;
  }
}

/* ===================================
   キャリア採用ページ ヒーローエリア＆導入テキスト（レスポンシブ対応完全版）
=================================== */

/* ----------------------------------
    スマホ専用設定 (768px以下 - パターンB: 重なり維持)
---------------------------------- */
@media screen and (max-width: 768px) {

  /* ヒーローエリア全体の高さ（ファーストビュー最適化） */
  .recruit-detail-hero-career {
    height: calc(100dvh - 120px) !important;
    min-height: 420px !important;
    position: relative !important;
    background: linear-gradient(135deg, #002060 0%, #262626 100%) !important;
    overflow: hidden !important;
  }

  /* 右寄せの男性画像（スマホ） */
  .hero-bg-career-image {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important; /* 右寄せ維持 */
    left: auto !important;
    width: 70% !important; /* 新卒と同じサイズ感の横幅 */
    height: 100% !important;
    z-index: 1 !important; /* 重ね順：下 */
  }

  .hero-bg-career-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* 引き延ばしを完全に防止 */
    object-position: right center !important; /* 右側中央配置 */
    display: block !important;
  }

  /* テキスト全体の配置枠（スマホ） */
  .hero-content-career {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    height: 100% !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* ネクタイあたりの高さに配置 */
    align-items: flex-start !important; /* ★キャリア版は「左寄せ」 */
    z-index: 10 !important; /* ★重ね順：一番上 */
  }

  /* キャッチコピー（スマホ） */
  .hero-catch-career {
    text-align: left !important;
    margin: 0 !important;
  }

  .hero-catch-career span {
    font-size: 24px !important; /* 新卒と同じフォントサイズ */
    padding: 4px 10px !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: inline-block !important;
  }

  /* 背景の大きな英語文字（スマホ） */
  .hero-sub-career {
    font-size: 58px !important; /* 新卒と同じフォントサイズ */
    position: absolute !important;
    left: 15px !important;
    bottom: 15px !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.2) !important;
    z-index: 5 !important; /* 重ね順：画像の上、コピーの下 */
    pointer-events: none !important;
  }

/* --- 8. キャリア選考：ビジネスリーダーの条件 (.requirements-section-career) --- */
  .requirements-section-career {
    padding: 50px 20px !important; /* スマホ用の上下・左右余白 */
      background: 
        linear-gradient(to right, 
            #0e2147 0%, 
            rgba(26, 73, 139, 0.85) 100%
        ),
        url('/assets/images/career/message-bg.png') no-repeat right center / auto 100%;
  }

  .requirements-section-career .inner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* h2タイトル：新卒同様30pxに設定 */
  .requirements-section-career .requirements-title {
    font-size: 30px !important;
    line-height: 1.3 !important;
    margin-bottom: 24px !important;
    padding: 4px 10px !important;
  }

  /* リスト全体 */
  .requirements-section-career .requirements-list {
    margin-bottom: 30px !important;
  }

  /* PC用の固定改行<br>をスマホでは解除して自然に折返す */
  .requirements-section-career .requirements-list br {
    display: none !important;
  }

  /* 段落テキスト：白文字・15px・line-height: 1.8 */
  .requirements-section-career .requirements-list p {
    font-size: 15px !important;
    color: #ffffff !important;
    line-height: 1.8 !important;
    font-weight: 500;
    margin-bottom: 18px !important;
  }

  /* spanの白背景を消して白文字を適用 */
  .requirements-section-career .requirements-list span {
    background-color: transparent !important;
    background: transparent !important;
    color: #ffffff !important;
    padding: 0 !important;
    display: inline !important;
  }


  .job-link-main {
    font-size: 16px;
  }

/* --- 9. 募集職種・求人一覧 (.job-category-section) スマホ最適化 --- */
  .job-category-section {
    padding: 60px 20px 80px !important;
  }

  /* 背景の文字「ENTRY」をスマホサイズへ最適化 */
  .job-category-section .entry-bg-text {
    font-size: 60px !important;
    left: 20px !important;
    top: 20px !important;
    letter-spacing: 4px !important;
    color: rgba(255, 255, 255, 0.6) !important;
  }

  /* セクション見出しとリード文 */
  .job-category-section .section-title-left {
    font-size: 26px !important;
    margin-bottom: 12px !important;
  }

  .job-cat-lead {
    font-size: 13px !important;
    line-height: 1.7 !important;
    margin-bottom: 24px !important;
  }

  .job-cat-lead br {
    display: none !important; /* スマホでの不自然な改行を防止 */
  }

  /* アンカーナビ（タップしやすいカプセル型ボタンへ変更） */
  .job-anchor-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 10px !important;
    margin-bottom: 40px !important;
  }

  .job-anchor-nav li {
    margin: 0 !important;
  }

  .job-anchor-nav a {
    display: inline-block !important;
    font-size: 12px !important;
    padding: 7px 15px !important;
    background-color: #ffffff !important;
    border: 1px solid #545b69 !important;
    border-radius: 20px !important;
    color: #0b2559 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  }

  /* 求人ツリーグループ（大見出しエリア） */
  .job-tree-container {
    gap: 32px !important; /* グループ間の上下幅を調整 */
  }

  .job-tree-group {
    padding-top: 24px !important;
    gap: 16px !important;
  }

  .job-tree-header {
    width: 100% !important;
    padding-left: 16px !important; /* 縦線の横幅を調整 */
  }

  .job-tree-header::before {
    width: 3px !important; /* 左端の縦線を少し太くして強調 */
  }

  .job-tree-main-title {
    font-size: 22px !important; /* スマホ用にタイトルサイズを最適化 */
    white-space: normal !important;
    line-height: 1.3 !important;
  }

  /* 求人リスト（右カラム部分） */
  .job-tree-list {
    padding-top: 0 !important;
    padding-left: 16px !important; /* 左線からのインデントを確保 */
  }

  .job-tree-list li {
    margin-left: 10px !important;
  }

  /* メイン職種名 */
  .job-link-main {
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin: 0 0 6px 0 !important;
  }

  /* 拠点・カテゴリなどのサブリスト（タップ領域の拡張） */
  .job-tree-sub-list {
    gap: 8px 16px !important;
    margin: 6px 0 0 0 !important;
  }

  .job-tree-sub-list a {
    font-size: 13px !important;
    padding: 4px 6px !important; /* タップしやすいよう内側余白を確保 */
    display: inline-block !important;
    line-height: 1.3 !important;
  }

  .job-tree-sub-list a::before {
      left: -10px;
      padding-top: 5px;
  }

  .footer-bottom {
    border: none;
  }
}