/**
 * 働く環境ページ専用スタイル
 * ヒーロー: FV1.png (PC) / FV4.png (SP)
 */

/* ===== ヒーロー ===== */
.page-environment .hero,
.environment .hero {
  padding-top: 0;
}

.hero__img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__content {
  position: absolute;
  top: 40%;
  left: 80px;
  transform: translateY(-50%);
  z-index: 3;
}

.hero__en {
  font-family: 'Barlow Semi Condensed', var(--font-en);
  font-size: 68px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1;
}

.hero__ja {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
  letter-spacing: 0.15em;
  font-weight: 400;
}

@media (max-width: 900px) {
  .hero__content { left: 24px; }
  .hero__en { font-size: 44px; }
  .hero__ja { font-size: 16px; }
}

@media (max-width: 768px) {
  .hero__en { font-size: 36px; }
  .hero__ja { font-size: 15px; }
}

@media (max-width: 480px) {
  .hero__content { left: 16px; top: 35%; }
  .hero__en { font-size: 32px; }
  .hero__ja { font-size: 15px; margin-top: 8px; letter-spacing: 0.1em; }
}

/* ===== 画像スライダー（3枚並列・Prev/Nextボタン） ===== */
.env-slider {
  background: #fff;
  padding: 60px 0 48px;
}

.env-slider__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative;
  padding: 0;
}

.env-slider__viewport {
  overflow: hidden;
  width: 100%;
}

.env-slider__track {
  display: flex;
  width: 200%;
  gap: 0;
  transition: transform 0.4s ease;
}

.env-slider__slide {
  flex: 0 0 16.666%;
  position: relative;
  min-width: 0;
}

/* 画像を1.5倍サイズ（高さを1.5倍に：16/10 → 16/6.67） */
.env-slider__img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 16 / 6.67;
  overflow: hidden;
}

.env-slider__img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ボタンは画像の下、右寄せで配置（画像とかぶらない） */
.env-slider__nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 0 4vw;
}

.env-slider__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 8px 14px;
  cursor: pointer;
  color: #0d47a1;
  font-size: 20px;
  line-height: 1;
  transition: opacity 0.2s;
}

.env-slider__arrow:hover {
  background: #fff;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .env-slider__track { width: 600%; }
  .env-slider__slide { flex: 0 0 16.666%; }
  .env-slider__img-wrap { aspect-ratio: 16 / 6.67; }
}

/* ===== 導入テキスト ===== */
.env-intro {
  background: #fff;
  padding: 60px 4vw 80px;
}

.env-intro__inner {
  max-width: 800px;
  margin: 0 auto;
}

.env-intro__text {
  font-size: 16px;
  line-height: 2;
  color: #333;
  text-align: center;
  letter-spacing: 0.05em;
  margin: 0;
}

@media (max-width: 768px) {
  .env-intro { padding: 40px 5vw 60px; }
  .env-intro__text { font-size: 15px; line-height: 1.9; }
}

/* ===== 画像＋テキストブロック ===== */
.env-blocks {
  background: #fff;
  padding: 0 4vw 80px;
}

.env-blocks__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.env-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 56px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid #e0e9f5;
}

.env-block:first-child {
  padding-top: 0;
}

.env-block:last-child {
  border-bottom: none;
}

.env-block--reverse .env-block__img {
  order: 2;
}

.env-block--reverse .env-block__body {
  order: 1;
}

.env-block__img {
  line-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.env-block__img img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.env-block__title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px;
  letter-spacing: 0.05em;
}

.env-block__text {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  margin: 0;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .env-blocks { padding: 0 5vw 60px; }
  .env-block {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
    text-align: center;
  }
  .env-block--reverse .env-block__img,
  .env-block--reverse .env-block__body { order: unset; }
  .env-block__title { font-size: 20px; margin-bottom: 12px; }
  .env-block__text { font-size: 16px; line-height: 1.85; }
}

/* ===== 福利厚生（4列×3行、四角枠・上濃い青〜下淡い青グラデーション） ===== */
.env-welfare {
  background: #fff;
  padding: 80px 4vw 100px;
}

.env-welfare__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.env-welfare__title {
  font-size: 28px;
  font-weight: 700;
  color: #0d47a1;
  margin: 0 0 48px;
  letter-spacing: 0.05em;
  text-align: left;
}

.env-welfare__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 21px 24px;
}

.env-welfare__item {
  background-image: linear-gradient(#fff, #fff), linear-gradient(to bottom, #0d47a1 0%, #42a5f5 100%);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  background-repeat: no-repeat;
  border: 2px solid transparent;
  border-radius: 0;
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow 0.3s;
}

.env-welfare__item:hover {
  box-shadow: 0 4px 20px rgba(25, 118, 210, 0.12);
}

.env-welfare__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #1976d2;
}

.env-welfare__icon svg {
  width: 100%;
  height: 100%;
}

.env-welfare__name {
  font-size: 16px;
  font-weight: 700;
  color: #1976d2;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

.env-welfare__desc {
  font-size: 13px;
  line-height: 1.7;
  color: #5c6b7a;
  margin: 0;
  font-weight: 400;
}

@media (max-width: 992px) {
  .env-welfare__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .env-welfare { padding: 60px 5vw 80px; }
  .env-welfare__title { font-size: 22px; margin-bottom: 36px; }
  .env-welfare__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 16px;
  }
  .env-welfare__item { padding: 18px 16px; }
  .env-welfare__name { font-size: 16px; }
  .env-welfare__desc { font-size: 14px; }
  .env-welfare__icon { width: 30px; height: 30px; margin-bottom: 9px; }
}

@media (max-width: 480px) {
  .env-welfare__grid { grid-template-columns: 1fr; }
}

/* ===== ニュースセクション（横スクロールカルーセル・デザイン完全再現） ===== */
.env-news {
  background: #fff;
  padding: 80px 4vw 100px;
}

.env-news__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* カルーセル表示領域：3枚＋左右に部分表示 */
.env-news__viewport {
  overflow: hidden;
  margin-bottom: 32px;
}

.env-news__track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

.env-news__card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 280px;
  display: block;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  transition: opacity 0.2s;
}

.env-news__card:hover {
  opacity: 0.9;
}

/* サムネイル：角丸なし、SAMPLE水印 */
.env-news__thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.env-news__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.env-news__sample {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* メタ行：青バッジ＋日付（同じ青） */
.env-news__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 0;
}

.env-news__tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  background: #1565c0;
}

.env-news__date {
  font-size: 14px;
  color: #1565c0;
}

.env-news__card-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin: 12px 20px 24px;
  line-height: 1.65;
  letter-spacing: 0.03em;
}

/* ナビ：三角矢印｜5ドット｜三角矢印、中央揃え */
.env-news__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.env-news__arrow {
  width: 0;
  height: 0;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transition: opacity 0.2s;
}

.env-news__arrow--prev {
  border-right: 12px solid #c0c8d4;
  margin-right: 4px;
}

.env-news__arrow--next {
  border-left: 12px solid #1565c0;
  margin-left: 4px;
}

.env-news__arrow:hover {
  opacity: 0.8;
}

.env-news__arrow--prev.env-news__arrow--active {
  border-right-color: #1565c0;
}

.env-news__arrow--next.env-news__arrow--disabled {
  border-left-color: #c0c8d4;
}

.env-news__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.env-news__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #c0c8d4;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.env-news__dot:hover {
  background: #a0b0c8;
}

.env-news__dot--active {
  background: #42b4e6;
}

@media (max-width: 992px) {
  .env-news__card {
    flex: 0 0 calc(50% - 12px);
    min-width: 260px;
  }
}

@media (max-width: 768px) {
  .env-news { padding: 60px 5vw 80px; }
  .env-news__viewport { margin-bottom: 24px; }
  .env-news__card {
    flex: 0 0 100%;
    min-width: 100%;
  }
  .env-news__nav { gap: 16px; }
  .env-news__sample { font-size: 22px; }
  .env-news__tag { font-size: 13px; }
  .env-news__date { font-size: 15px; }
  .env-news__card-title { font-size: 16px; }
}

/* ===== ENTRY セクション ===== */
.entry {
  width: 100%;
  padding: 100px 4vw;
  background: url("../img/common/entry_newguraduate.png") no-repeat center / cover;
  text-align: center;
  color: #fff;
  position: relative;
}

.entry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 50, 100, 0.4);
  z-index: 1;
}

.entry__inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.entry__title {
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 60px;
}

.entry__links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.entry__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48%;
  max-width: 600px;
  height: 180px;
  background-color: #fff;
  border-radius: 6px;
  padding: 0 40px;
  text-decoration: none;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.entry__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.entry__label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.1em;
  margin-bottom: 0;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #004a99;
  display: inline-block;
}

.entry__card-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #004a99;
  display: inline-block;
  margin-top: 4px;
}

.entry__arrow {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  fill: #004a99;
  transition: transform 0.3s;
}

.entry__card:hover .entry__arrow {
  transform: translate(5px, -50%);
}

@media (max-width: 768px) {
  .entry { padding: 60px 4vw; }
  .entry__title { margin-bottom: 40px; font-size: 28px; }
  .entry__links { flex-direction: column; align-items: center; gap: 20px; }
  .entry__card { width: 100%; max-width: none; height: 140px; padding: 0 20px; }
  .entry__label { font-size: 16px; }
  .entry__card-title { font-size: 26px; }
  .entry__arrow { right: 20px; width: 22px; height: 22px; }
}
