/*------------------------------------
#hero（メインビジュアル）
------------------------------------*/
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: flex-start; /* SP：上寄せ */
  justify-content: flex-start;
  overflow: hidden;
  color: #fff;
}

@media (min-width: 768px) {
  #hero {
    align-items: flex-end; /* PC：下寄せを維持 */
  }
}

.slide-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #355a65;
}

/* ズームアニメーション：active 付与のたびに1.0→1.08へ */
@keyframes slide-zoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.0);
  transition: opacity 2.5s ease-in-out;
}

.slide.active {
  opacity: 1;
  animation: slide-zoom 12s linear forwards;
}

.slide picture,
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(
    30deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* 光のストリーク演出 */
@keyframes light-stream {
  0%   { transform: translateX(100vw);  opacity: 0; }
  50%  { opacity: 0.2; }
  100% { transform: translateX(-100vw); opacity: 0; }
}

.light-streak {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  width: 400px;
  filter: blur(1px);
  animation: light-stream 6s linear infinite;
  z-index: 15;
  pointer-events: none;
}

/* キャッチコピーエリア */
.hero__content {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 80rem;
  padding: 8rem 2rem 0; /* SP：ヘッダー高さ分を上に確保 */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .hero__content {
    padding: 0 3rem 6rem; /* PC：下寄せに戻す */
  }
}

@media (min-width: 1024px) {
  .hero__content {
    padding: 0 5rem 8rem;
  }
}

/* キャッチコピー登場アニメーション */
@keyframes reveal-down {
  0%   {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transform: translateY(-15px);
    opacity: 0;
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateY(0);
    opacity: 1;
  }
}

.reveal-text {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  animation: reveal-down 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.hero__catch {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .hero__catch {
    margin: 0 0 1rem;
  }
}

.hero__desc {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0;
}

@media (min-width: 1024px) {
  .hero__desc {
    font-size: 1.25rem;
  }
}

/* スクロールインジケーター */
.hero__scroll {
  position: absolute;
  bottom: 5rem;
  right: 2rem;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #fff;
}

@media (min-width: 768px) {
  .hero__scroll {
    right: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero__scroll {
    right: 4rem;
  }
}

.hero__scroll-label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 4rem;
  background-color: rgba(255, 255, 255, 0.2);
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scroll-line 2.5s infinite;
}

/* スライダー進行ドット */
.hero__dots {
  position: absolute;
  bottom: 5rem;
  right: 7rem;
  z-index: 30;
  display: none;
  flex-direction: row;
  align-items: flex-end;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hero__dots {
    display: flex;
    right: 8rem;
  }
}

@media (min-width: 1024px) {
  .hero__dots {
    right: 10rem;
  }
}

.hero__dot {
  width: 48px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.hero__dot-progress {
  height: 100%;
  background-color: #fff;
  width: 0;
}


/*------------------------------------
#news（お知らせ）
------------------------------------*/
#news {
  padding: 4.5rem 1.5rem;
  background-color: #fff;
}
@media (min-width: 768px) {
  #news {
    padding: 6rem 1.5rem;
  }
}

.news__inner {
  max-width: 56rem;
  margin: 0 auto;
}

.news__head {
  text-align: center;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .news__head {
    margin-bottom: 2.5rem;
  }
}

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

.news__list li {
  border-bottom: 1px solid #f1f5f9;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  transition: opacity 0.2s;
}

@media (min-width: 768px) {
  .news-item {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding: 1.5rem 0;
  }
}

.news-item:hover {
  opacity: 0.7;
}

.news-item__date {
	font-size: 0.75rem;
	letter-spacing: .05em;
	white-space: nowrap;
}
@media (min-width: 768px) {
  .news-item__date {
    font-size: 1rem;
  }
}

.news-item__title {
  font-size: 0.875rem;
  font-weight: 700;
  text-align: justify;
  margin: 0;
}
@media (min-width: 768px) {
  .news-item__title {
    font-size: 1rem;
  }
}

.news__more {
  margin-top: 4rem;
  text-align: center;
}
@media (min-width: 768px) {
  .news__more {
    margin-top: 2rem;
  }
}

.news__more-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.25rem;
  transition: opacity 0.2s;
}

.news__more-link:hover {
  opacity: 0.6;
}


/*------------------------------------
#fact（信頼の根拠カード）
------------------------------------*/
#fact {
  padding: 4.5rem 1.5rem;
  background-color: #f4f7f9;
}

@media (min-width: 1024px) {
  #fact {
    padding: 6rem 1.5rem;
  }
}

.fact__inner {
  max-width: 75rem;
  margin: 0 auto;
}

.fact__head {
  text-align: center;
  margin-bottom: 4rem;
}

.fact__flex {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}
.fact-item {
	width: calc((100% - 90px) / 4);
}
@media (max-width: 1024px) {
	.fact__flex {
		gap: 10px;
	}
	.fact-item {
		width: calc((100% - 10px) / 2);
	}
}

/* ファクトカード */
.fact-card {
	background: #fff;
	border-radius: 20px;
	padding: 20px 20px 30px;
	overflow: hidden;
	transition: box-shadow 0.3s, transform 0.3s;
}

.fact-card-header {
  background-color: var(--brand-main);
	border-radius: 9999px;
	font-size: 1.125rem;
	font-weight: 700;
	text-align: center;
	color: #fff;
	margin-bottom: 20px;
	padding: 4px 10px;
}
@media (max-width: 1024px) {
	.fact-card-header {
		font-size: 0.875rem;
		margin-bottom: 16px;
	}
}

.fact-card-body {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
}
@media (max-width: 1024px) {
	.fact-card-body {
		flex-direction: column;
		gap: 0.5rem;
	}
}

.fact-card-icon {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 80px;
	height: 80px;
}

.fact-card-icon img {
  width: 100%;
  height: 100%;
}

.fact-card-value {
	font-size: 1.75rem;
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1;
	text-align: center;
	margin: 0;
}
@media (min-width: 1024px) {
	.fact-card-value {
		font-size: 2rem;
	}
}

.fact-card-value--sm {
  font-size: 1.35rem;
  letter-spacing: 0;
}

.fact-card-value--sm .fact-card-unit {
  font-size: 1rem;
}

.fact-card-unit {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 0.25rem;
}


/*------------------------------------
#vision（選ばれる3つの理由）
------------------------------------*/
#vision {
  padding: 4.5rem 0;
  background-color: #fff;
  overflow: hidden;
}
@media (min-width: 1024px) {
	#vision {
		padding: 6rem 0;
	}
}

.vision__inner {
  max-width: 90.5rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.vision__head {
  text-align: center;
  margin-bottom: 2.5rem;
}
@media (min-width: 1024px) {
	.vision__head {
		margin-bottom: 6rem;
	}
}

.vision__list {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
	.vision__list {
		gap: 8rem;
	}
}

.vision-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .vision-item {
    flex-direction: row;
  }

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

/* 左側：画像を画面端までブリード */
.vision-item__img {
  width: 100%;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .vision-item__img {
    width: calc(60% + ((100vw - 1152px) / 2));
    margin-left: calc(-1 * (100vw - 1152px) / 2);
    flex-shrink: 0;
    min-height: 600px;
  }

  .vision-item--reverse .vision-item__img {
    margin-left: 0;
    width: 60%;
    min-height: 450px;
  }

  .vision-item--no-bleed .vision-item__img {
    margin-left: 0;
    width: 60%;
    min-height: 450px;
  }
}

.vision-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vision-item__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background-color: #fff;
}

@media (min-width: 1024px) {
  .vision-item__body {
    padding: 5rem 0 5rem 5rem;
  }
  .vision-item--reverse .vision-item__body {
    padding: 5rem 5rem 5rem 0;
  }
}

.vision-item__number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-muted);
  opacity: 0.35;
  line-height: 1;
}

@media (min-width: 1024px) {
  .vision-item__number {
    font-size: 4.5rem;
  }
}

.vision-item__title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .vision-item__title {
    font-size: 2.25rem;
  }
}

.vision-item__desc {
  font-size: 0.875rem;
  line-height: 1.9;
  text-align: justify;
}
@media (min-width: 1024px) {
  .vision-item__desc {
    font-size: 1.125rem;
  }
}


/*------------------------------------
#business（事業紹介）
------------------------------------*/
#business {
  padding: 4.5rem 1.5rem;
  background-color: var(--brand-main);
  color: #fff;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) {
  #business {
    padding: 6rem 1.5rem;
  }
}

.business__inner {
  max-width: 87.5rem;
  margin: 0 auto;
  position: relative;
}

.business__head {
  margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .business__head {
    position: absolute;
    top: 0;
    left: 0;
    width: 66%;
    margin-bottom: 4rem;
    z-index: 20;
  }
}

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

.business__desc {
  font-size: 0.875rem;
  line-height: 1.9;
}

@media (min-width: 1024px) {
  .business__desc {
    font-size: 1rem;
  }
}

.business__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 0;
}

@media (min-width: 1024px) {
  .business__grid {
    grid-template-columns: repeat(3, 1fr);
    padding-top: 90px;
  }
}

.business__col--offset-3 {
  margin-top: 0;
}

.business__col--offset-2 {
  margin-top: 0;
}

@media (min-width: 1024px) {
  .business__col--offset-3 {
    margin-top: 11.25rem;
  }

  .business__col--offset-2 {
    margin-top: 5.625rem;
  }
}

/* 事業カード */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.3s;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 1);
}

.service-card__thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: rgba(255, 255, 255, 0.05);
}

.service-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.7s, opacity 0.3s;
}

.service-card:hover .service-card__thumb img {
  transform: scale(1.1);
  opacity: 1;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin: 1.25rem 0;
  letter-spacing: 0.05em;
}

@media (min-width: 1024px) {
  .service-card__title {
    font-size: 1.5rem;
  }
}

.service-card__desc {
  font-size: 0.875rem;
  line-height: 1.8;
}

@media (min-width: 1024px) {
  .service-card__desc {
    font-size: 1rem;
  }
}

.business__more {
  margin-top: 4rem;
  text-align: right;
}

@media (min-width: 1024px) {
  .business__more {
    position: absolute;
    bottom: 0;
    right: 0;
    margin-bottom: -30px;
  }
}

.business__more-btn {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  padding: 1rem 4rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  transition: background-color 0.2s, color 0.2s;
}

@media (min-width: 1024px) {
  .business__more-btn {
    padding: 1.25rem 4rem;
    font-size: 1.125rem;
    letter-spacing: .05em;
  }
}

.business__more-btn:hover {
  background-color: #fff;
  color: var(--brand-main);
}


/*------------------------------------
#recruit-appeal（採用訴求）
------------------------------------*/
#recruit-appeal {
  padding: 4.5rem 0;
  background-color: #fff;
  overflow: hidden;
}

@media (min-width: 1024px) {
  #recruit-appeal {
    padding: 10rem 0;
  }
}

.recruit__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

@media (min-width: 1024px) {
  .recruit__layout {
    flex-direction: row;
    align-items: stretch;
  }
}

/* テキストエリア */
.recruit__text {
  width: 100%;
  padding-left: max(1.5rem, calc((100vw - 87.5rem) / 2));
  padding-right: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #fff;
  z-index: 10;
}

@media (min-width: 1024px) {
  .recruit__text {
    width: 45%;
    padding-right: 5rem;
  }
}

.recruit__subdesc {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 2.5rem;
  text-align: justify;
}

@media (min-width: 768px) {
  .recruit__subdesc {
    font-size: 1.125rem;
  }
}

.recruit__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
}

.recruit__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background-color: #f4f7f9;
  border-left: 4px solid var(--text-main);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color 0.2s;
}

.recruit__link:hover {
  background-color: #f1f5f9;
}

.recruit__link svg {
  width: 1rem;
  height: 1rem;
  color: var(--text-main);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.recruit__link:hover svg {
  transform: translateX(4px);
}

/* 画像トラック */
.recruit__track-wrap {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 550px;
  margin: 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .recruit__track-wrap {
    flex: 1;
  }
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.infinite-track {
  display: flex;
  width: max-content;
  animation: scroll-left 50s linear infinite;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.stagger-img-item {
  width: 320px;
  flex-shrink: 0;
  background-color: #f1f5f9;
}

.stagger-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stagger-img-item:nth-child(5n+1) { transform: translateY(50px);  height: 420px; }
.stagger-img-item:nth-child(5n+2) { transform: translateY(-30px); height: 380px; }
.stagger-img-item:nth-child(5n+3) { transform: translateY(70px);  height: 450px; }
.stagger-img-item:nth-child(5n+4) { transform: translateY(-50px); height: 400px; }
.stagger-img-item:nth-child(5n)   { transform: translateY(20px);  height: 430px; }
