﻿/* メインセクション背景 */
body {
  background-color: #6fa4c3;
}
/* セクション全体 */
.main-hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}
.hero-box {
  background-color: #fff;
  width: 900px;
  height: 500px;
  border-radius: 40px;
  display: flex;
  overflow: hidden;
}
.hero-text-area {
  width: 55%;
  padding: 50px 30px;
  position: relative;
  font-family: "Noto Sans JP", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-text-wrapper {
  position: relative;
  width: fit-content;
}
h1 {
  font-size: 1.6rem; /* 約32px */
  line-height: 1.8;
  color: #6d6c6c;
  margin: 0;
  text-align: center;
  font-weight: 400;
}
.hero-text-area a {
  margin: 16% auto 0 auto;
}
.highlight {
  color: #6fa4c3;
  font-weight: 400;
}
.decoration-img {
  position: absolute;
  bottom: 195px;
  right: 45px;
  height: auto;
  pointer-events: none;
}
.contact-button-wrapper {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  width: fit-content;
  align-items: center;
}
.contact-button-img {
  width: 100%;
  height: auto;
}
.hero-image-area {
  width: 45%;
}
.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
}
.main-slider {
  margin: 0;
}
.case-study-section {
  padding: 60px 40px;
  background-color: #6fa4c3;
}
.case-study-title {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  margin-bottom: 40px;
  text-align: left;
}
.case-study-title .en {
  font-size: 2.5rem;
  color: #ffffff;
  margin-right: 20px;
}
.case-study-title .ja {
  font-size: 1.2rem;
  color: #ffffff;
}
.simple-slider {
  width: 100%;
  overflow: hidden;
}
.slider-track {
  display: flex;
  width: calc(300px * 8); /* スライド幅×スライド枚数 */
  animation: slideAnimation 20s linear infinite;
}
.slide {
  width: 300px !important;
  height: 300px;
  background-color: #8cb7ce;
  border-radius: 40px;
  color: #ffffff;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  padding: 20px 10px;
  box-sizing: border-box;
  margin-right: 35px;
  flex-shrink: 0;
}
.case-icon {
  width: 205px;
  height: 168px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.slide p {
  font-size: 1.6rem;
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* テキストとarrowの間隔 */
}
.arrow-icon {
  width: 55px;
  height: 55px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
@keyframes slideAnimation {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* ループスライド */
}
.arrow-icon:hover {
  transform: scale(1.1);
}
.yellow-box-section {
  display: flex;
  gap: 55px;
  justify-content: center;
  padding: 60px 20px;
  background-color: #6fa4c3;
  flex-wrap: wrap;
}
.yellow-box {
  background-color: #ffe558;
  width: 430px;
  height: 300px;
  padding: 30px 10px 25px 10px;
  border-radius: 40px;
  position: relative;
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
}
.box-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  background-color: #f7794c;
  color: white;
  font-size: 1.875rem; /* 30pt = 約30px = 1.875rem */
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 40px;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
.box-title {
  font-size: 1.5rem; /* 30pt */
  color: #6fa4c3;
  margin: 0px 0 20px 0;
  text-align: center;
}
.box-image {
  width: 330px;
  height: 140px;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px auto;
}
.box-description {
  font-size: 0.9375rem; /* 15pt ≒ 15px */
  color: #6d6b62;
  text-align: center;
}
.click-button {
  position: absolute;
  bottom: -30px;
  right: -40px;
  width: 85px;
  height: 85px;
}
.click-button img {
  width: 100%;
  height: auto;
  display: block;
}
.video-section {
  background-image: url("../img/top/bg-video.png");
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  text-align: center;
  position: relative;
}
.video-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.video-thumbnail-wrapper {
  width: 600px;
  height: 330px;
  cursor: pointer;
}
.video-thumbnail {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
/* 下のテキストと矢印 */
.video-link-area {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
}
.video-label {
  font-size: 1.5625rem; /* 25pt */
  color: #6fa4c3;
  font-weight: bold;
  border-bottom: solid 19px #ffe558;
  padding-bottom: 5px;
  line-height: 0;
}
.video-arrow {
  width: 55px;
  height: 55px;
  cursor: pointer;
}
/* ポップアップモーダル */
.video-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}
.video-popup-content {
  position: relative;
  width: 80%;
  max-width: 800px;
}
.video-popup-content iframe {
  width: 100%;
  height: 450px;
  border: none;
}
.video-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}
.icon-link-section {
  background-color: #6fa4c3; /* セクション背景（青） */
  padding: 80px 0;
  text-align: center;
}
.icon-link-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px; /* 各アイコン間の余白 */
  flex-wrap: wrap; /* レスポンシブ対応（画面が狭いとき折り返し） */
}
.icon-link img {
  width: 205px;
  height: 168px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.icon-link img:hover {
  transform: scale(1.05);
}
/* ------------------------------
   レスポンシブ対応 (768px以下)
---------------------------------*/
@media (max-width: 768px) {
  .main-hero-section {
    flex-direction: column;
    padding: 40px 0;
  }
  .hero-box {
    flex-direction: column;
    width: 90%;
    height: auto;
  }
  .hero-text-area {
    width: 100%;
    padding: 30px 20px;
  }
  h1 {
    font-size: 1.4rem;
    line-height: 1.6;
  }
  .hero-image-area {
    width: 100%;
    height: 250px;
  }
  .hero-main-img {
    border-radius: 0 0 40px 40px;
    height: 100%;
  }
  .decoration-img {
    display: none; /* 装飾画像は省略 or 小型に */
  }
  .contact-button-wrapper {
    margin-top: 30px;
  }
  .case-study-section {
    padding: 40px 20px;
  }
  .case-study-title .en {
    font-size: 2rem;
  }
  .case-study-title .ja {
    font-size: 1rem;
  }
  .slider-track {
    width: calc(250px * 8);
  }
  .slide {
    width: 250px !important;
    height: 250px;
    margin-right: 20px;
  }
  .case-icon {
    width: 180px;
    height: 140px;
  }
  .slide p {
    font-size: 1.2rem;
    gap: 8px;
  }
  .arrow-icon {
    width: 45px;
    height: 45px;
  }
  .yellow-box-section {
    gap: 30px;
    padding: 40px 20px;
  }
  .yellow-box {
    width: 100%;
    height: auto;
    padding: 20px 10px;
  }
  .box-label {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  .box-title {
    font-size: 1.3rem;
  }
  .box-image {
    width: 90%;
    height: auto;
  }
  .box-description {
    font-size: 0.875rem;
  }
  .click-button {
    width: 70px;
    height: 70px;
    bottom: -20px;
    right: -20px;
  }
  .video-section {
    padding: 60px 0;
  }
  .video-thumbnail-wrapper {
    width: 90%;
    height: auto;
  }
  .video-thumbnail-wrapper img {
    max-width: 100%;
    height: auto;
  }
  .video-popup-content iframe {
    height: 300px;
  }
  .video-label {
    font-size: 1.3rem;
    border-bottom: solid 14px #ffe558;
  }
  .video-arrow {
    width: 45px;
    height: 45px;
  }
  .icon-link-section {
    padding: 60px 0;
  }
  .icon-link img {
    width: 150px;
    height: auto;
  }
}
/* ------------------------------
   レスポンシブ対応 (480px以下)
---------------------------------*/
@media (max-width: 480px) {
  .hero-box {
    width: 95%;
  }
  .hero-text-area {
    width: 80%;
    padding: 30px 20px;
    margin: 0 auto;
  }
  h1 {
    font-size: 1.2rem;
  }
  .hero-image-area {
    height: 200px;
  }
  .slider-track {
    width: calc(220px * 8);
  }
  .slide {
    width: 220px !important;
    height: 220px;
    margin-right: 15px;
  }
  .case-icon {
    width: 150px;
    height: 120px;
  }
  .slide p {
    font-size: 1rem;
    gap: 5px;
  }
  .arrow-icon {
    width: 40px;
    height: 40px;
  }
  .yellow-box {
    padding: 15px 10px;
  }
  .box-label {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .box-title {
    font-size: 1.1rem;
  }
  .click-button {
    width: 60px;
    height: 60px;
  }
  .video-thumbnail-wrapper {
    width: 100%;
  }
  .video-popup-content iframe {
    height: 220px;
  }
  .video-label {
    font-size: 1.1rem;
    border-bottom: solid 10px #ffe558;
  }
  .video-arrow {
    width: 40px;
    height: 40px;
  }
  .icon-link img {
    width: 120px;
  }
}