/* ========================================
   Front Page (Homepage) Styles
   ======================================== */

.front-page {
  background-color: #f4f4f0;
}

/* ===== 共通スタイル ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 90px;
}

.section-intro {
  margin-bottom: 40px;
}

.section-label {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 14px;
  color: #244668;
  margin-bottom: 5px;
}

.section-title-en {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Helvetica",
    "Arial",
    sans-serif;
  font-size: 40px;
  color: #244668;
  font-weight: normal;
  margin: 0;
}

.section-description {
  margin-top: 30px;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 14px;
  color: #244668;
  line-height: 1.8;
}

/* ===== ヒーローセクション ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 800px;
  background-color: #000;
  margin-bottom: 0;
  overflow: hidden;
}

/* スライドショーコンテナ */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 各スライド */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* 次のスライドは現在のスライドの下に配置 */
.hero-slide.next {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* スライド内側 */
.hero-slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 現在のスライドが上から下へ素早く剥がれるアニメーション */
.hero-slide.active.peeling .hero-slide-inner {
  animation: peelToBottom 1.1s cubic-bezier(0.8, 0, 0.1, 1) forwards;
}

/* 上から下へ剥がれるアニメーション（clip-path） */
@keyframes peelToBottom {
  0% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(100% 0 0 0);
  }
}

/* 画像 */
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transform: scale(1.1);
}

/* アクティブなスライドの画像：ゆっくり下がるアニメーション */
.hero-slide.active img {
  animation: slowMoveDown 12s linear forwards;
}

@keyframes slowMoveDown {
  0% {
    transform: scale(1.1) translateY(-3%);
  }
  100% {
    transform: scale(1.1) translateY(4%);
  }
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0 50px 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 10;
  /* 下に向けて濃くなる黒のグラデーション */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-text {
  flex: 1;
}

.hero-description {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.68;
  letter-spacing: 0.1em;
  margin: 0;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stat-items {
  display: flex;
  gap: 35px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stat-label {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 19px;
  color: #ffffff;
  line-height: 1;
  margin: 0;
}

.stat-value {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.05em;
  margin: 0;
}

.stat-divider {
  width: 100%;
  height: 1px;
  background-color: #ffffff;
  margin-bottom: 4px;
}

.stat-extra {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.23em;
  line-height: 1;
}

/* ===== ビジョンセクション ===== */
.vision-section {
  background-color: #f4f4f0;
  padding: 80px 0 100px;
}

.vision-section .section-intro {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.vision-section .section-title-en {
  position: relative;
  z-index: 1;
  mix-blend-mode: difference;
}

.vision-circles {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
  position: relative;
  margin-top: -44px;
  margin-bottom: 0;
}

.vision-circles-track {
  display: flex;
  gap: 50px;
  animation: scroll-infinite 30s linear infinite;
  will-change: transform;
}

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

.circle-item {
  flex-shrink: 0;
}

.circle-image {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background-color: #d0d0d0;
  background-image: linear-gradient(135deg, #c0c0c0 0%, #e0e0e0 100%);
  overflow: hidden;
  pointer-events: none;
}

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

.vision-headline {
  position: relative;
  z-index: 1;
  margin: -24px 0 40px;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 50px;
  font-weight: 600;
  color: #244668;
  text-align: left;
}

.vision-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  margin-bottom: 40px;
}

.vision-text-left,
.vision-text-right {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #244668;
  line-height: 2.5;
}

.vision-cta {
  margin-top: 40px;
}

/* ===== プロジェクトセクション ===== */
.project-section {
  background-color: #f4f4f0;
  padding: 0 0 100px;
}

.project-section .container {
  margin: 0 auto;
  padding: 0 90px 80px;
}

.project-section .section-description {
  max-width: 600px;
  margin-left: auto;
}

.project-section .section-intro {
  margin-bottom: 60px;
  padding-top: 80px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 100px;
  align-items: flex-start;
  border-top: 1px solid #244668;
}

/* 横スクロール対応 */
.project-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  margin-bottom: 30px;
  /* 右側を画面端まで伸ばす */
  margin-right: calc(-50vw + 50%);
  padding-right: calc(50vw - 50%);
}

/* スクロールバーのスタイル */
.project-list::-webkit-scrollbar {
  display: none;
}

.project-item {
  text-decoration: none;
  color: #244668;
  display: block;
  transition: opacity 0.3s;
  flex: 0 0 400px;
  min-width: 400px;
}

.project-item:hover {
  opacity: 0.85;
}

/* front-page固有: project-imageの高さ上書き */
.project-image {
  height: 300px;
}

.project-scroll {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #244668;
  line-height: 1;
  margin: 30px 0;
  padding-top: 16px;
  border-top: 1px solid #244668;
}

.project-cta {
  display: flex;
  justify-content: flex-end;
}

/* ===== ビジネスセクション ===== */
.business-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

/* 背景画像 */
.business-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/index/business/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  /* XD設定: ぼかし28, 明るさ-18 */
  filter: blur(2px) brightness(0.82);
}

/* XD設定: べた塗り #102A43 70%不透明度 + ノイズ70% */
.business-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(16, 42, 67, 0.5);
  z-index: 1;
}

/* コンテンツを最前面に */
.business-section .container {
  position: relative;
  z-index: 2;
}

.business-section .section-label,
.business-section .section-title-en {
  color: #ffffff;
}

.business-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin: 80px 0;
}

.business-headline {
  font-family: "YuMincho", serif;
  font-size: 40px;
  font-weight: normal;
  color: #ffffff;
  line-height: 1.6;
  margin: 0;
}

.business-description {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 2.5;
}

.business-cta {
  margin-top: 50px;
}

/* ===== フィールドセクション ===== */
.field-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 60px;
  background-color: rgba(36, 70, 104, 0.8);
  border-radius: 10px;
}

.field-intro {
  margin-bottom: 40px;
  display: flex;
  gap: 117px;
}

.field-section .section-label,
.field-section .section-title-en {
  color: #ffffff;
}

.field-content {
  margin-top: 30px;
}

.field-headline {
  font-family: "YuMincho", serif;
  font-size: 40px;
  font-weight: normal;
  color: #ffffff;
}

.field-description {
  margin-top: 24px;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 2.5;
}

.field-achievements-container {
  margin-top: 70px;
  display: flex;
  gap: 40px;
}

.field-achievements {
  width: 200px;
}

.field-achievements h4 {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: normal;
}

.field-achievements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.field-achievements li {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 2;
  padding-left: 15px;
  position: relative;
}

.field-achievements li:before {
  content: "-";
  position: absolute;
  left: 0;
}

.field-map {
  flex: 1;
}

/* ===== ニュースセクション ===== */
.news-section {
  background-color: #ffffff;
  padding: 100px 0;
}

.news-cta {
  margin-top: 60px;
}

/* ===== コンタクトセクション ===== */
.contact-section {
  background-color: #f4f4f0;
  padding: 0;
}

.contact-content {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  height: 322px;
}

.contact-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 834px;
  height: 242px;
}

.contact-placeholder {
  width: 100%;
  height: 100%;
  background-color: #000000;
}

.contact-text {
  position: relative;
  padding: 40px 90px 40px 370px;
  z-index: 2;
}

.contact-section .section-label,
.contact-section .section-title-en {
  color: #ffffff;
}

.contact-description {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.8;
  margin: 20px 0 30px;
}

.contact-cta {
  margin-top: 30px;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 1024px) {
  .container,
  .hero-text,
  .hero-stats {
    padding: 0 40px;
  }

  .vision-circles-track {
    gap: 30px;
  }

  .circle-image {
    width: 300px;
    height: 300px;
  }

  .vision-content,
  .business-content {
    gap: 50px;
  }
}

@media (max-width: 768px) {
  /* TOPページ全体 */
  .front-page .container {
    padding: 0 20px;
  }

  .hero-section {
    height: 500px;
  }

  .hero-overlay {
    flex-direction: column;
    gap: 25px;
    padding: 0 20px 25px;
    align-items: center;
  }

  .hero-text {
    padding: 0;
    width: 100%;
  }

  .hero-description {
    font-size: 12px;
    line-height: 1.6;
  }

  .hero-stats {
    padding: 0;
    flex-direction: column;
    gap: 10px;
align-items: flex-start;
        width: 100% !important;
	  
  }

  .stat-items {
    gap: 24px;
    width: 100%;
        justify-content: flex-start;
  }

  .stat-item {
    gap: 10px;
  }

  .stat-label {
    font-size: 13px;
  }
	
  .stat-value {
    font-size: 20px;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
    margin-bottom: 0;
  }

  .stat-extra {
    font-size: 16px;
    letter-spacing: 0.23em;
  }

  /* セクション共通 */
  .section-intro {
    margin-bottom: 40px;
  }

  /* ビジョンセクション */
  .vision-section {
    padding: 60px 0;
  }

  .vision-section .container {
    padding: 0 20px;
  }

  .vision-circles-track {
    gap: 30px;
    animation: scroll-infinite 20s linear infinite;
  }

  .circle-image {
    width: 250px;
    height: 250px;
  }

  .vision-headline {
    font-size: 24px;
    margin: -12px 0 30px;
    text-align: center;
  }

  .vision-content {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .vision-text-left,
  .vision-text-right {
    font-size: 13px;
    text-align: left;
    line-height: 2;
  }

  .vision-cta {
    display: flex;
    justify-content: center;
  }

  /* ビジネスセクション */
  .business-content {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .business-headline {
    font-size: 28px;
  }

  .business-section .container {
    padding: 0 20px;
  }

  .vision-description,
  .business-description {
    width: 100%;
    font-size: 14px;
    line-height: 1.7;
  }

  .business-cta {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* ビジネスセクション */
  .business-section {
    padding: 60px 0;
  }

  /* フィールドセクション */
  .field-section {
    padding: 60px 0;
  }

  .field-achievements-container {
    margin-top: 40px;
    flex-direction: column;
    gap: 20px;
  }

  .field-container {
    padding: 40px 20px;
    box-sizing: border-box;
  }

  .field-intro {
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
  }

  .field-content {
    margin-top: 20px;
  }

  .field-headline {
    font-size: 24px;
  }

  .field-description {
    font-size: 14px;
    line-height: 1.7;
  }

  .field-list {
    flex-wrap: wrap;
    gap: 12px;
  }

  .field-item {
    font-size: 13px;
    padding: 10px 15px;
  }

  .field-achievements li {
    font-size: 13px;
  }

  /* プロジェクトセクション */
  .project-section {
    padding: 0 0 60px;
  }

  .project-section .container {
    margin: 0 20px;
    padding: 0;
  }

  .project-section .section-intro {
    padding-top: 60px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-list {
    margin-right: calc(-50vw + 50%);
    padding-right: calc(50vw - 50%);
    gap: 15px;
  }

  .project-item {
    flex: 0 0 260px;
    min-width: 260px;
  }

  .project-image {
    height: 200px;
  }

  .project-cta {
    justify-content: center;
  }

  /* ニュースセクション */
  .news-section {
    padding: 60px 0;
  }

  .news-section .container {
    padding: 0 20px;
  }

  .news-cta {
    display: flex;
    justify-content: center;
  }

  /* コンタクトセクション */
  .contact-section {
    padding: 60px 0;
  }

  .contact-section .container {
    padding: 0 20px;
  }

  .contact-content {
    height: auto;
  }

  .contact-image {
    position: relative;
    left: 0;
    transform: none;
    width: 100%;
    height: 200px;
  }

  .contact-text {
    padding: 30px 20px;
  }

  .contact-title {
    font-size: 24px;
  }

  .contact-description {
    font-size: 14px;
  }
}
