/* ==========================================
   教育・研修・キャリア支援ページ専用スタイル - Fixed v3 (Minimal Hover)
   ========================================== */

:root {
   --benefits-blue: #186EA9;
   /* TOSCOメインブルー */
   --benefits-dark: #0f2d4a;
   /* 濃いネイビー */
   --benefits-bg: #f4f8fc;
   /* 背景色 */
   --benefits-border: #e0e6ed;
   /* ボーダー色 */
   --benefits-card-bg: #fff;
   /* カード背景 */
   --benefits-accent: #FF6600;
   /* アクセント色 */
}

/* --- セクション全体 --- */
.benefits-section {
   padding: 6rem 0 8rem;
   background: var(--benefits-bg);
   position: relative;
   overflow: hidden;
}

.benefits-intro {
   text-align: center;
   margin-bottom: 6rem;
   max-width: 800px;
   margin-left: auto;
   margin-right: auto;
}

.benefits-intro-text {
   font-size: clamp(0.9rem, 1.2vw, 1rem);
   line-height: 2;
   color: #666;
}

/* --- ブロック共通スタイル --- */
.benefits-block {
   margin-bottom: 8rem;
}

.benefits-header {
   text-align: center;
   margin-bottom: 3rem;
   position: relative;
}

.benefits-label-en {
   display: block;
   font-size: 0.85rem;
   font-weight: 700;
   color: var(--benefits-blue);
   letter-spacing: 0.15em;
   font-family: 'Roboto', sans-serif;
   margin-bottom: 0.5rem;
   opacity: 0.8;
}

.benefits-title-ja {
   font-size: clamp(1.75rem, 2.5vw, 2.25rem);
   font-weight: 700;
   color: #333;
   line-height: 1.4;
   position: relative;
   display: inline-block;
}

/* タイトル下の装飾線 */
.benefits-title-ja::after {
   content: '';
   position: absolute;
   bottom: -1rem;
   left: 50%;
   transform: translateX(-50%);
   width: 60px;
   height: 4px;
   background: linear-gradient(90deg, var(--benefits-blue), #003366);
   border-radius: 2px;
}

.benefits-desc {
   text-align: center;
   max-width: 800px;
   margin: 0 auto 4rem;
   line-height: 1.8;
   color: #555;
   font-size: 1rem;
}

/* ==========================================
   1. 教育制度フロー (Education)
   ========================================== */
.education-flow {
   max-width: 1100px;
   margin: 0 auto;
}

.flow-title {
   font-size: 1.25rem;
   font-weight: 700;
   color: var(--benefits-blue);
   text-align: center;
   margin-bottom: 3rem;
}

.flow-steps {
   display: flex;
   justify-content: space-between;
   align-items: stretch;
   gap: 1rem;
   position: relative;
}

/* ステップカード */
.flow-step-item {
   flex: 1;
   display: flex;
   flex-direction: column;
   position: relative;
}

.step-marker {
   background: var(--benefits-blue);
   color: #fff;
   font-weight: 700;
   font-family: 'Roboto', sans-serif;
   font-size: 0.9rem;
   padding: 0.3rem 1rem;
   border-radius: 20px;
   align-self: center;
   margin-bottom: -15px;
   /* カードにめり込ませる */
   z-index: 2;
   position: relative;
   box-shadow: 0 4px 10px rgba(24, 110, 169, 0.3);
}

.step-card {
   background: #fff;
   padding: 2.5rem 1.5rem 2rem;
   border-radius: 8px;
   text-align: center;
   height: 100%;
   box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
   border-top: 3px solid var(--benefits-blue);
   display: flex;
   flex-direction: column;
   align-items: center;
   transition: transform 0.3s ease;
}

.step-card:hover {
   transform: translateY(-5px);
}

/* 最後のステップ（OJT）を強調 */
.step-card.highlight-card {
   background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
   border-top-color: var(--benefits-accent);
}

.step-card.highlight-card .step-duration {
   color: var(--benefits-accent);
}

.step-title {
   font-size: 1.1rem;
   font-weight: 700;
   margin-bottom: 0.5rem;
   color: #333;
}

.step-duration {
   display: block;
   font-size: 0.8rem;
   color: var(--benefits-blue);
   font-weight: 700;
   margin-bottom: 1rem;
   background: #eaf4fd;
   padding: 0.2rem 0.8rem;
   border-radius: 4px;
}

.step-text {
   font-size: 0.9rem;
   color: #666;
   line-height: 1.6;
   text-align: left;
}

/* 矢印 */
.flow-arrow {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 40px;
}

.flow-arrow::after {
   content: '';
   width: 0;
   height: 0;
   border-top: 8px solid transparent;
   border-bottom: 8px solid transparent;
   border-left: 12px solid #ccc;
}

/* 内定者研修ノート */
.education-note-card {
   margin-top: 3rem;
   background: #fff;
   border-radius: 8px;
   padding: 2rem;
   display: flex;
   gap: 2rem;
   align-items: flex-start;
   box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
   border-left: 4px solid var(--benefits-blue);
}

.note-icon {
   flex-shrink: 0;
   width: 60px;
   height: 60px;
   background: #eaf4fd;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--benefits-blue);
}

.note-icon svg {
   width: 30px;
   height: 30px;
}

.note-title {
   font-size: 1.1rem;
   font-weight: 700;
   margin-bottom: 0.8rem;
   color: #333;
}

.note-text {
   font-size: 0.95rem;
   color: #555;
   line-height: 1.8;
}

/* ==========================================
   2. 人事考課制度 (Career Cards)
   ========================================== */
.career-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 3rem;
   max-width: 900px;
   margin: 0 auto;
}

.career-card {
   background: #fff;
   padding: 2.5rem 2rem;
   border-radius: 8px;
   text-align: center;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
   transition: transform 0.3s ease;
   /* テック・エッジ */
   clip-path: polygon(15px 0,
         100% 0,
         100% calc(100% - 15px),
         calc(100% - 15px) 100%,
         0 100%,
         0 15px);
}

.career-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 15px 40px rgba(24, 110, 169, 0.15);
}

.career-icon-wrap {
   width: 70px;
   height: 70px;
   background: linear-gradient(135deg, var(--benefits-blue), #003366);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto 1.5rem;
   color: #fff;
   box-shadow: 0 5px 15px rgba(24, 110, 169, 0.3);
}

.career-icon {
   width: 32px;
   height: 32px;
}

.career-card-title {
   font-size: 1.2rem;
   font-weight: 700;
   margin-bottom: 1rem;
   color: #333;
   line-height: 1.4;
}

.career-card-text {
   font-size: 0.9rem;
   color: #666;
   line-height: 1.8;
   text-align: left;
}

/* キャリア支援ノート（カード下の補足説明） */
.career-support-note {
   max-width: 900px;
   margin: 3rem auto 0;
   padding: 1.5rem 2rem;
   background: #fff;
   border: 2px solid var(--benefits-blue);
   border-radius: 8px;
   text-align: center;
}

.career-support-note p {
   font-size: 0.95rem;
   color: #333;
   line-height: 1.8;
   margin: 0;
}

/* ==========================================
   3. 社内制度・福利厚生 (Spec Sheet style)
   ========================================== */
.guideline-card {
   background: #fff;
   max-width: 1000px;
   margin: 0 auto;
   border-radius: 8px;
   box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
   overflow: hidden;
   position: relative;
   z-index: 1;
}

.guideline-card-header {
   background: linear-gradient(90deg, var(--benefits-blue) 0%, #003366 100%);
   padding: 0.8rem 2rem;
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.guideline-card-label {
   color: rgba(255, 255, 255, 0.9);
   font-size: 0.75rem;
   font-weight: 700;
   letter-spacing: 0.15em;
   font-family: 'Roboto', sans-serif;
}

.guideline-card-line {
   width: 60px;
   height: 4px;
   background: rgba(255, 255, 255, 0.3);
   position: relative;
   border-radius: 2px;
}

.guideline-card-line::after {
   content: '';
   position: absolute;
   right: -10px;
   top: 0;
   width: 4px;
   height: 4px;
   background: #fff;
   border-radius: 50%;
}

.guideline-row {
   display: flex;
   border-bottom: 1px solid var(--benefits-border);
   transition: background-color 0.2s ease;
   position: relative;
   background: #fff;
}

.guideline-row:last-child {
   border-bottom: none;
}

/* ホバーアクション（修正：浮き上がりなし・左線のみ） */
.guideline-row:hover {
   background-color: #fff;
}

/* 左端アクセントバー */
.guideline-row::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 6px;
   height: 100%;
   background: var(--benefits-blue);
   transform: scaleY(0);
   transition: transform 0.3s ease;
   transform-origin: center;
   z-index: 10;
}

.guideline-row:hover::before {
   transform: scaleY(1);
}

/* 項目名 (DT) */
.guideline-row dt {
   width: 28%;
   padding: 2.5rem 2.5rem;
   background-color: #fcfcfc;
   border-right: 1px solid var(--benefits-border);
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   /* transition: background 0.3s ease; */
   position: relative;
   z-index: 1;
}

.guideline-row:hover dt {
   background-color: #fcfcfc;
}

.en-label {
   font-family: 'Roboto', sans-serif;
   font-size: 0.7rem;
   color: var(--benefits-blue);
   font-weight: 700;
   letter-spacing: 0.1em;
   margin-bottom: 0.5rem;
   opacity: 0.7;
   display: block;
}

.ja-label {
   font-size: 1.15rem;
   font-weight: 700;
   color: #333;
   letter-spacing: 0.05em;
   line-height: 1.4;
}

/* 内容 (DD) */
.guideline-row dd {
   width: 72%;
   padding: 2.5rem 3.5rem;
   font-size: 1rem;
   line-height: 1.8;
   color: #444;
}

.guideline-text {
   margin-bottom: 0.5rem;
}

.bold-text {
   font-weight: 700;
   color: var(--benefits-blue);
   display: inline-block;
   background: #eaf4fd;
   padding: 0.2rem 0.8rem;
   border-radius: 4px;
   font-size: 0.85rem;
   margin-bottom: 1rem;
}

.benefits-list-detail {
   list-style: none;
   padding: 0;
   margin: 0;
}

.benefits-list-detail li {
   position: relative;
   padding-left: 1rem;
   margin-bottom: 0.3rem;
}

.benefits-list-detail li::before {
   content: '・';
   position: absolute;
   left: 0;
   color: var(--benefits-blue);
}

/* エントリーボタンエリア */
.benefits-action {
   text-align: center;
   margin-top: 6rem;
   padding: 0 1rem;
}

.benefits-action-text {
   font-size: 1.25rem;
   font-weight: 700;
   margin-bottom: 2.5rem;
   color: #333;
   line-height: 1.6;
}

/* ボタン（強制適用） */
.benefits-action .btn-primary {
   display: inline-flex;
   align-items: center;
   justify-content: space-between;
   gap: 4rem;
   padding: 1.2rem 3rem;
   background: linear-gradient(90deg, #019DE8 0%, #0356BB 100%);
   color: #fff;
   border-radius: 50px;
   font-weight: 600;
   text-decoration: none;
   transition: all 0.3s ease;
   min-width: 320px;
   max-width: 100%;
   box-shadow: 0 4px 15px rgba(1, 157, 232, 0.3);
}

.benefits-action .btn-primary:hover {
   transform: translateY(-3px);
   box-shadow: 0 6px 20px rgba(1, 157, 232, 0.4);
   background: linear-gradient(90deg, #0178BD 0%, #023D8F 100%);
}

.benefits-action .btn-text {
   font-size: 1.2rem;
   font-weight: 700;
   letter-spacing: 0.05em;
}

.benefits-action .btn-arrow-circle {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 32px;
   height: 32px;
   background: #fff;
   border-radius: 50%;
   flex-shrink: 0;
}

.benefits-action .btn-arrow {
   font-size: 1.2rem;
   color: #019DE8;
   line-height: 1;
   font-weight: 700;
}


/* ==========================================
   各種認定証 (Certifications)
   ========================================== */
.certification-grid {
   display: flex;
   justify-content: center;
   align-items: flex-start;
   flex-wrap: wrap;
   gap: 3rem 2rem;
   max-width: 1200px;
   margin: 0 auto;
}

.certification-item {
   width: 180px;
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: center;
}

.certification-img-wrap {
   width: 100%;
   height: 180px;
   /* 画像の高さを揃える枠 */
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 1rem;
   background: #fff;
   border-radius: 8px;
   padding: 10px;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
   transition: transform 0.3s ease;
}

.certification-item:hover .certification-img-wrap {
   transform: translateY(-5px);
   box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.certification-img-wrap img {
   max-width: 100%;
   max-height: 100%;
   object-fit: contain;
}

.certification-title {
   font-size: 0.9rem;
   font-weight: 700;
   color: #333;
   line-height: 1.5;
}

/* ==========================================
   レスポンシブ対応
   ========================================== */

@media (max-width: 1024px) {
   .career-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   .education-flow {
      overflow-x: auto;
   }
}

@media (max-width: 768px) {
   .benefits-section {
      padding: 4rem 0 6rem;
   }

   .benefits-header {
      margin-bottom: 2rem;
   }

   .benefits-title-ja {
      font-size: 1.75rem;
   }

   /* 1. 教育フロー：縦積みに変更 */
   .flow-steps {
      flex-direction: column;
      gap: 2rem;
   }

   .flow-step-item {
      width: 100%;
   }

   .flow-arrow {
      width: 100%;
      height: 30px;
   }

   .flow-arrow::after {
      border-left: 8px solid transparent;
      border-right: 8px solid transparent;
      border-top: 12px solid #ccc;
      border-bottom: none;
   }

   .step-marker {
      margin-bottom: -12px;
      align-self: flex-start;
      margin-left: 1.5rem;
   }

   .step-card {
      padding: 2rem 1.5rem;
      align-items: flex-start;
   }

   .education-note-card {
      flex-direction: column;
      gap: 1rem;
      padding: 1.5rem;
   }

   .note-icon {
      width: 50px;
      height: 50px;
   }

   /* 2. キャリアカード：1列 */
   .career-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
   }

   .career-card {
      padding: 2rem 1.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      /* 中央揃えで見やすく */
   }

   .career-card-text {
      text-align: center;
      /* テキストも中央揃え */
   }

   /* キャリア支援ノート（スマホ） */
   .career-support-note {
      margin: 2rem auto 0;
      padding: 1.2rem 1rem;
   }

   .career-support-note p {
      font-size: 0.85rem;
   }

   /* 3. スペックシート（スマホ） */
   .guideline-card {
      border-radius: 0;
      box-shadow: none;
      background: transparent;
   }

   .guideline-card-header {
      border-radius: 8px 8px 0 0;
   }

   .guideline-row {
      flex-direction: column;
      display: block;
      padding: 0;
      margin-bottom: 1.5rem;
      border: 1px solid #eee;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
      background: #fff;
   }

   .guideline-row:hover {
      background-color: #fff;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
   }

   .guideline-row::before {
      width: 4px;
      transform: scaleY(1);
      z-index: 10;
   }

   .guideline-row dt {
      width: 100%;
      padding: 1.2rem 1.5rem;
      background-color: #f9fbfd;
      border-right: none;
      border-bottom: 1px solid #eee;
      flex-direction: row;
      align-items: baseline;
      gap: 1rem;
   }

   .guideline-row:hover dt {
      background-color: #f9fbfd;
   }

   .en-label {
      margin-bottom: 0;
      min-width: 80px;
   }

   .ja-label {
      font-size: 1.1rem;
   }

   .guideline-row dd {
      width: 100%;
      padding: 1.5rem;
   }

   /* エントリーエリア */
   .benefits-action {
      margin-top: 4rem;
      padding: 0;
   }

   .benefits-action-text {
      font-size: 1rem;
      margin-bottom: 2rem;
      text-align: center;
   }

   .benefits-action .btn-primary {
      width: 100%;
      min-width: auto;
      padding: 1rem 1.5rem;
      box-sizing: border-box;
   }

   .benefits-action .btn-text {
      font-size: 1rem;
   }

   .benefits-action .btn-arrow-circle {
      width: 24px;
      height: 24px;
   }

   .benefits-action .btn-arrow {
      font-size: 1rem;
   }

            /* 各種認定証（スマホ：2列表示に変更） */
            .certification-grid {
               flex-direction: row;
               flex-wrap: wrap;
               align-items: flex-start;
               gap: 2rem 1rem;
               justify-content: center;
            }
      
            .certification-item {
               width: calc(50% - 0.5rem);
               max-width: none;
            }
      
            .certification-img-wrap {
               height: 130px;
               margin-bottom: 0.8rem;
            }
      
            .certification-img-wrap img {
               padding: 5px;
            }
      
            .certification-title {
               font-size: 0.8rem;
               line-height: 1.4;
            }
}