
/* =========================================
   パパネッツマガジン（先輩社員の声） セクション
   ========================================= */

/* セクション全体の余白と背景 */
.about-voice {
	padding: 60px 20px;
	background: url(../../img/recruit/decor/recruit-bottom.png) no-repeat center bottom/cover;
	position: relative;
  }
  
  /* インナーコンテナ（幅制限と中央寄せ） */
  .l-inner__about-voice {
	max-width: 960px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
  }
  
  /* -----------------------------------------
	 タイトル
	 ----------------------------------------- */
	 .about-voice__title {
		color: #f62837; /* くすんだ赤 #e84b4b から 鮮やかな赤に変更 */
		font-size: 2.25rem; /* 28px から拡大 (PC時) */
		font-weight: 600;
		line-height: 1.3541666667;
		
		/* センター寄せの指定 (index-requirements__title-group のスタイルを適用) */
		text-align: center;
		margin-left: 1.5625rem; /* PCレイアウト時の微調整マージン */
		
		/* 下部の余白（ここはセクションに合わせて調整） */
		margin-bottom: 40px;
	}
  
  /* PCで改行を消すクラス（HTMLにあるクラスへの対応） */
  @media screen and (min-width: 768px) {
	.u-hidden-pc {
	  display: none;
	}
  }
  
  /* -----------------------------------------
	 記事カードリスト（Flexbox）
	 ----------------------------------------- */
  .about-voice__cards {
	display: flex;
	flex-wrap: wrap;
	gap: 30px; /* カード間の余白 */
	justify-content: flex-start; /* 左揃え */
  }
  
  /* -----------------------------------------
	 個別のカードスタイル
	 ----------------------------------------- */
  .about-voice-card {
	display: block;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* ふんわりした影 */
	width: 100%;
	max-width: 300px; /* 画像サイズに合わせた幅 */
	overflow: hidden;
	text-decoration: none;
	color: #333;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* ホバー時の動き */
  .about-voice-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  /* 画像エリア */
  .about-voice-card__image {
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
  }
  
  .about-voice-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
  }
  
  /* テキストエリア */
  .about-voice-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
  }
  
  /* カテゴリ（赤い文字） */
  .about-voice-card__category {
	color: #e84b4b;
	font-size: 12px;
	font-weight: bold;
	margin-bottom: 8px;
	display: block;
  }
  
  /* タイトル */
  .about-voice-card__title {
	font-size: 16px;
	font-weight: bold;
	line-height: 1.5;
	margin-bottom: 8px;
	color: #000;
  }
  
  /* 日付 */
  .about-voice-card__date {
	font-size: 12px;
	color: #888;
	margin-bottom: 12px;
	display: block;
	letter-spacing: 0.05em;
  }
  
  /* 本文テキスト */
  .about-voice-card__text {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	margin-bottom: 16px;
  }
  
  /* READ MORE 矢印 */
  .about-voice-card__arrow {
	font-size: 13px;
	font-weight: bold;
	color: #000;
	margin-top: auto; /* 下部に配置 */
	text-transform: uppercase;
	letter-spacing: 0.05em;
  }
  
/* -----------------------------------------
   「もっと見る」ボタンエリア
   ----------------------------------------- */
   .about-voice__btn-wrapper {
    margin-top: 3.125rem; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
  /* -----------------------------------------
	 スマホ表示調整 (幅767px以下)
	 ----------------------------------------- */
  @media screen and (max-width: 767px) {
	.about-voice__title {
		font-size: 1.5rem; /* スマホ時のサイズを統一 */
        margin-left: 0;    /* スマホ時は左マージン解除 */
        line-height: 1.35;
	}
	
	.about-voice__cards {
	  justify-content: center; /* スマホでは中央寄せ */
	}
  
	.about-voice-card {
	  max-width: 340px; /* スマホでは少し幅広に許容 */
	}
  }

/* -----------------------------------------
   スマホ表示調整 (幅767px以下)
   ----------------------------------------- */
   @media screen and (max-width: 767px) {
	.about-voice__title {
	  font-size: 1.5rem;
	  margin-left: 0;
	  line-height: 1.35;
	}
  
	/* ▼▼▼ ここから変更 ▼▼▼ */
  
	/* リストコンテナ：横スクロールの設定 */
	.about-voice__cards {
	  display: flex;
	  flex-wrap: nowrap;          /* 折り返しを禁止して1行にする */
	  overflow-x: auto;           /* 横スクロールを許可 */
	  justify-content: flex-start;/* 左寄せ */
	  gap: 16px;                  /* カード間の余白（少し狭める） */
	  
	  /* スクロール領域の微調整 */
	  padding-bottom: 20px;       /* 下の影が切れないように余白確保 */
	  padding-left: 20px;         /* 左端の余白 */
	  padding-right: 20px;        /* 右端の余白 */
	  
	  /* 慣性スクロール（iOS用） */
	  -webkit-overflow-scrolling: touch;
	  
	  /* スナップ機能（任意：カード単位でピタッと止める場合） */
	  scroll-snap-type: x mandatory;
	}
  
	/* カード単体：幅の固定と縮小防止 */
	.about-voice-card {
	  /* flex-grow: 0 (伸びない)
		 flex-shrink: 0 (縮まない)
		 flex-basis: 85% (画面幅の85%を使って、次のカードをチラ見せする)
	  */
	  flex: 0 0 85%; 
	  max-width: 320px; /* 最大幅の制限 */
	  
	  /* スナップ位置（任意） */
	  scroll-snap-align: center;
	}
	
	/* スクロールバーを非表示にする（見た目をスッキリさせる場合） */
	.about-voice__cards::-webkit-scrollbar {
	  display: none;
	}
	.about-voice__cards {
	  -ms-overflow-style: none; /* IE, Edge Legacy */
	  scrollbar-width: none;    /* Firefox */
	}
	/* 1. 矢印を配置するための基準（親枠） */
	.about-voice__scroll-wrap {
		position: relative;
		width: 100%;
	  }
	
/* 2. 右側の矢印アイコン */
.about-voice__scroll-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -12px; 

    transform: translateY(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    border-top: 4px solid #f62837;
    border-right: 4px solid #f62837;
    border-radius: 2px;  
    animation: scroll-hint 1.5s infinite;
    
    /* 影で視認性を高める */
    filter: drop-shadow(0 2px 2px rgba(255,255,255,0.8));
    z-index: 10;
  }

  /* 3. 矢印が動くアニメーション定義（動きの位置も調整） */
  @keyframes scroll-hint {
    0% {
      opacity: 0.4;
      right: -2px;  /* 少し内側から */
    }
    50% {
      opacity: 1;
      right: -12px; /* 定位置へ */
    }
    100% {
      opacity: 0.4;
      right: -2px;
    }
  }
  }
  /* =========================================
   PC表示の調整 (幅768px以上)
   ========================================= */
@media screen and (min-width: 768px) {
	/* カードリストの隙間設定（念のため明記） */
	.about-voice__cards {
	  gap: 30px;
	}
  
	/* カード個別の幅設定 */
	.about-voice-card {
	  /* 計算式： ( 全体の幅100% - 隙間ふたつ分(60px) ) ÷ 3枚 
		これでどんな幅でも必ず3枚並びになります
	  */
	  width: calc((100% - 60px) / 3);
	  
	  /* これまで効いていた max-width: 300px を解除します */
	  max-width: 100%; 
	}
  }