/*------------------------------------
共通：セクション余白
------------------------------------*/
.section-env-message,
.section-env-system,
.section-env-training,
.section-env-schedule,
.section-env-culture {
  padding: 5rem 1.5rem;
}

@media (min-width: 1024px) {
  .section-env-message,
  .section-env-system,
  .section-env-training,
  .section-env-schedule,
  .section-env-culture {
    padding: 7rem 1.5rem;
  }
}


/*------------------------------------
.section-env-message（中核メッセージ）
------------------------------------*/
.section-env-message {
  background-color: var(--bg-main);
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .section-env-message {
    padding: 7rem 0;
  }
}

.section-env-message__inner {
	position: relative;
	min-height: 600px;
}
.section-env-message__container {
	max-width: 1200px;
	width: calc(100% - 3rem);
	margin: auto;
}
.section-env-message__container > * {
	width: 50%;
}
.section-env-message__img {
	position: absolute;
	top: 0;
	right: 0;
	height: 600px
}
.section-env-message__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.section-env-message__txt {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 600px;
	margin-right: auto;
	padding-right: 5rem;
}
.section-env-message__txt .section-title::after {
	left: 0;
	transform: none;
}
.section-env-message__txt p {
	font-size: 0.875rem;
	line-height: 2;
	text-align: justify;
	margin: 0;
}
@media (min-width: 1024px) {
  .section-env-message__txt p {
    font-size: 1rem;
  }
}
@media (max-width: 1024px) {
	.section-env-message__inner {
		min-height: auto;
	}
	.section-env-message__container {
		display: block;
		width: 100%;
		height: auto;
	}
	.section-env-message__container > * {
		width: 100%;
	}
	.section-env-message__img {
		position: static;
		height: auto;
		padding-left: 1.5rem;
	}
	.section-env-message__txt {
		height: auto;
		text-align: center;
		margin: auto;
		padding: 2rem 1.5rem 0;
	}
	.section-env-message__txt .section-title::after {
		left: 50%;
		transform: translateX(-50%);
	}
}


/*------------------------------------
.section-env-system（生活を立ち上げやすい制度）
------------------------------------*/
.section-env-system {
  background-color: var(--bg-sub);
}

.section-env-system__inner {
  max-width: 64rem;
  margin: 0 auto;
}

.section-env-system__head {
  text-align: center;
  margin-bottom: 4rem;
}

/* 制度カード（左右交互） */
.env-system-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background-color: var(--bg-main);
  margin-bottom: 1rem;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .env-system-card {
    margin-bottom: 2.5rem;
  }
}

.env-system-card:last-of-type {
  margin-bottom: 0;
}

.env-system-card__img {
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .env-system-card__img {
    width: 46%;
  }
}

.env-system-card__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  height: 100%;
  transition: transform 0.6s ease;
}

@media (min-width: 1024px) {
  .env-system-card__img img {
    aspect-ratio: unset;
  }
}

.env-system-card:hover .env-system-card__img img {
  transform: scale(1.03);
}

.env-system-card__body {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .env-system-card__body {
    padding: 3rem 3.5rem;
  }
}

.env-system-card__body .section-title {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 1024px) {
  .env-system-card__body .section-title {
    font-size: 1.5rem;
  }
}

/* 生活を立ち上げやすい制度：シンプルタイトル */
.section-title--plain {
  padding-left: 0;
  padding-bottom: 0;
}

.section-title--plain::after {
  display: none;
}

.env-system-card__text {
  font-size: 0.9375rem;
  line-height: 2;
  text-align: justify;
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .env-system-card__text {
    font-size: 1rem;
  }
}

.env-system-card__note {
  font-size: 0.8125rem;
  margin: 0;
}

.env-system-card__points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 1024px) {
  .env-system-card__points {
    gap: 0.625rem;
  }
}

.env-system-card__points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}
@media (min-width: 1024px) {
  .env-system-card__points li {
    gap: 0.625rem;
  }
}

.env-system-card__points li svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--brand-accent);
}

/* 単身寮カード：縦積み（上段左右＋下段3枚） */
.env-system-card--dormitory {
  flex-direction: column;
  min-height: unset;
  padding: 0;
  overflow: hidden;
  background-color: #fff;
}

@media (min-width: 1024px) {
  .env-system-card--dormitory {
    flex-direction: column;
  }
}

/* 上段：左テキスト＋右画像 */
.env-dormitory-top {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .env-dormitory-top {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* 左：テキスト */
.env-system-card--dormitory .env-system-card__body {
  flex: 1;
  padding: 3rem 2.5rem;
  justify-content: flex-start;
}

@media (min-width: 1024px) {
  .env-system-card--dormitory .env-system-card__body {
    padding: 3.5rem 0 3.5rem 3rem;
  }
}

/* 右：画像エリア（メイン＋サブ重なり） */
.env-dormitory-imgs {
  flex-shrink: 0;
  width: 100%;
  position: relative;
  padding: 0 2.5rem 3rem 2.5rem;
}

@media (min-width: 1024px) {
  .env-dormitory-imgs {
    width: 48%;
    padding: 3.5rem 3rem;
  }
}

.env-dormitory-imgs__main {
  overflow: hidden;
  width: 90%;
}

.env-dormitory-imgs__main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* サブ画像：右下にオーバーラップ */
.env-dormitory-imgs__sub {
  position: absolute;
  bottom: 0;
  right: 2rem;
  width: 42%;
  border: 3px solid #fff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.env-dormitory-imgs__sub img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* 下段：サブ画像3枚グリッド */
.env-dormitory-subs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 0 2.5rem 3rem 2.5rem;
}

@media (min-width: 1024px) {
  .env-dormitory-subs {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 3rem 3.5rem;
  }
}

.env-dormitory-subs__item {
  overflow: hidden;
}

.env-dormitory-subs__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* テキストのみカード */
.env-system-card--text-only {
  flex-direction: row !important;
}

.env-system-card--text-only .env-system-card__body {
  padding: 3rem 2.5rem;
}
@media (min-width: 1024px) {
  .env-system-card--text-only .env-system-card__body {
    padding: 3.5rem 3rem;
  }
}


/*------------------------------------
.section-env-facility（自社設備）
------------------------------------*/
.section-env-facility {
  padding: 5rem 1.5rem;
  background-color: var(--brand-main);
  color: #fff;
}

@media (min-width: 1024px) {
  .section-env-facility {
    padding: 7rem 1.5rem;
  }
}

.section-env-facility__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-env-facility__head {
  text-align: center;
  margin-bottom: 4rem;
}
@media (max-width: 1024px) {
  .section-env-facility__head {
    margin-bottom: 2rem;
  }
}

.section-env-facility__head .section-en-label {
  color: rgba(255, 255, 255, 0.5);
}

.section-env-facility__lead {
  font-size: 0.9375rem;
  line-height: 2;
  text-align: justify;
  color: rgba(255, 255, 255, 0.75);
}
@media (min-width: 1024px) {
  .section-env-facility__lead {
    font-size: 1rem;
    text-align: center;
  }
}

.facility-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.facility-card {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .facility-card {
    flex-direction: row;
  }

  .facility-card:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.facility-card__img {
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .facility-card__img {
    width: 52%;
  }
}

.facility-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 9;
  transition: transform 0.5s ease;
}

@media (min-width: 768px) {
  .facility-card__img img {
    aspect-ratio: unset;
  }
}

.facility-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}
@media (min-width: 768px) {
  .facility-card__body {
    padding: 3rem 3.5rem;
  }
}

.facility-card__title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .facility-card__title {
    font-size: 1.5rem;
  }
}

.facility-card__desc {
  font-size: 0.9375rem;
  line-height: 2;
  text-align: justify;
  color: rgba(255, 255, 255, 0.7);
}
@media (min-width: 768px) {
  .facility-card__desc {
    font-size: 1rem;
  }
}

/* テキストのみのカード */
.facility-card--text-only {
  flex-direction: row !important;
}

.facility-card--text-only .facility-card__body {
  padding: 2.5rem;
  justify-content: flex-start;
}

.facility-card--text-only .facility-card__title {
  font-size: 1.25rem;
}
@media (min-width: 768px) {
  .facility-card--text-only .facility-card__title {
    font-size: 1.5rem;
  }
}


/*------------------------------------
.section-env-training（未経験から育てる研修）
------------------------------------*/
.section-env-training {
  background-color: var(--bg-main);
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .section-env-training {
    padding: 7rem 0;
  }
}

.section-env-training__inner {
	position: relative;
	min-height: 600px;
}
.section-env-training__container {
	max-width: 1200px;
	width: calc(100% - 3rem);
	margin: auto;
}
.section-env-training__container > * {
	width: 50%;
}
.section-env-training__img {
	position: absolute;
	top: 0;
	left: 0;
	height: 600px
}
.section-env-training__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.section-env-training__txt {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 600px;
	margin-left: auto;
	padding-left: 5rem;
}
.section-env-training__txt .section-title::after {
	left: 0;
	transform: none;
}
.section-env-training__txt p {
	font-size: 0.875rem;
	line-height: 2;
	text-align: justify;
	margin: 0;
}
@media (min-width: 1024px) {
  .section-env-training__txt p {
    font-size: 1rem;
  }
}
@media (max-width: 1024px) {
	.section-env-training__inner {
		min-height: auto;
	}
	.section-env-training__container {
		display: block;
		width: 100%;
		height: auto;
	}
	.section-env-training__container > * {
		width: 100%;
	}
	.section-env-training__img {
		position: static;
		height: auto;
		padding-left: 1.5rem;
	}
	.section-env-training__txt {
		height: auto;
		margin: auto;
		padding: 2rem 1.5rem 0;
	}
}


/*------------------------------------
.section-env-schedule（1日の流れ・ダミー）
------------------------------------*/
.section-env-schedule {
  background-color: var(--bg-sub);
}

.section-env-schedule__inner {
  max-width: 52rem;
  margin: 0 auto;
}

.section-env-schedule__head {
  text-align: center;
  margin-bottom: 3rem;
}

.schedule-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 4rem 2rem;
  background-color: var(--bg-main);
  border: 1px dashed var(--border-light);
  text-align: center;
}

.schedule-placeholder__icon {
  width: 3rem;
  height: 3rem;
  color: var(--text-muted);
}

.schedule-placeholder__icon svg {
  width: 100%;
  height: 100%;
}

.schedule-placeholder p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}


/*------------------------------------
.section-env-culture（相談環境・キャリア）
------------------------------------*/
.section-env-culture {
  background-color: var(--bg-sub);
}

.section-env-culture__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* 各アイテム（左右交互） */
.culture-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .culture-item {
    flex-direction: row;
    gap: 5rem;
  }

  .culture-item--reverse {
    flex-direction: row-reverse;
  }
}

.culture-item__body {
  flex: 1;
}

.culture-item__body .section-title {
  display: block;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 1024px) {
  .culture-item__body .section-title {
    text-align: left;
  }
  .culture-item__body .section-title::after {
    left: 0;
    transform: none;
  }
}

.culture-item__text {
  font-size: 0.875rem;
  line-height: 2.1;
  text-align: justify;
}
@media (min-width: 1024px) {
  .culture-item__text {
    font-size: 1rem;
  }
}

.culture-item__img {
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .culture-item__img {
    width: 44%;
  }
}

.culture-item__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}


/*------------------------------------
.section-env-cta（CTA）
------------------------------------*/
.section-env-cta {
  position: relative;
  padding: 7rem 1.5rem;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.section-env-cta__bg {
  position: absolute;
  inset: 0;
}

.section-env-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.section-env-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    30deg,
    var(--overlay-gray) 0%,
    rgba(30, 45, 60, 0.45) 60%,
    rgba(30, 45, 60, 0.2) 100%
  );
}

.section-env-cta__inner {
  position: relative;
  z-index: 10;
  max-width: 52rem;
  margin: 0 auto;
}

.section-env-cta__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0.5rem 0 1.25rem;
}

.section-env-cta__desc {
  font-size: 1rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

.section-env-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--brand-accent);
  color: #fff;
  padding: 1.125rem 3.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: filter 0.2s, transform 0.2s;
  margin-bottom: 1.5rem;
}

.section-env-cta__btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.section-env-cta__back {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  margin-top: 0.5rem;
}

.section-env-cta__back:hover {
  color: #fff;
}
