@charset "UTF-8";


@font-face {
    font-family: 'CustomFont'; /* フォントの名前 */
    src: url('../fonts/Riviera.otf') format('truetype'); /* フォントファイルへのパス */
    font-weight: 900; /* より細いフォントの太さ */
    font-style: normal; /* フォントのスタイル */
  }



/* 背景画像 */
#bg-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('../img/bei-jingtesainno-yan.jpg') center center / cover no-repeat;
  z-index: 0;
}

/* 黒オーバーレイ */
#black-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: black;
  opacity: 0; /* 初期は透明 */
  transition: opacity 0.05s linear; /* 動画に合わせて滑らかに変化 */
  z-index: 1;
}

/* メインラッパー */
#main-view-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 60px 0px 20px;
  box-sizing: border-box;
  z-index: 2;
}

#main-view {
  position: relative;
  width: 100%;
  max-width: 1400px;
  aspect-ratio: 16/9;
  overflow: hidden;
  z-index: 3;
}

#myVideo {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 3;
  border-radius: 10px;
}
.video-mask {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15%;
  height: 8%;
  backdrop-filter: blur(10px);
  z-index: 5; /* 動画や他の要素より前面にする */
  pointer-events: none; /* マスク部分をクリック不可にする場合 */
}
.heading {
  position: absolute;
  bottom: -10px;
  left: 50px;
  font-size: 3.5rem;
  white-space: pre-wrap; /* 改行反映 */
  overflow: hidden;
  background: url('../img/22017536.jpg') repeat;
  background-size: cover;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  z-index: 5;
}

/* キャレットの光アニメーション */
@keyframes caret-glow {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 5px #00FF7F, 0 0 10px #00FF7F, 0 0 20px #00FF7F;
  }
  50% {
    opacity: 0;
    box-shadow: 0 0 2px #00FF7F, 0 0 5px #00FF7F, 0 0 10px #00FF7F;
  }
}

.heading::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em; /* 文字の高さと同じ */
  margin-left: 6px;
  background-color: #00FF7F;
  animation: caret-glow 1s step-end infinite;
  vertical-align: bottom;
  border-radius: 2px;
}
/* キャレット点滅 */
@keyframes blink {
  50% { background-color: transparent; }
  0%, 100% { background-color: #00FF7F; }
}


.scrolldown {
  position: absolute;
  right: 30px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
    font-family: 'CustomFont', sans-serif;

}

/* 縦書き文字、グロー付き */
.vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(0deg);
  color: #00FF7F;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1rem;
  text-shadow:
    0 0 5px #00FF7F,
    0 0 10px #00FF7F,
    0 0 20px #00FF7F;
  animation: glow 1.5s ease-in-out infinite alternate;
}

/* 光のグローアニメーション */
@keyframes glow {
  from { text-shadow: 0 0 5px #00FF7F, 0 0 10px #00FF7F, 0 0 20px #00FF7F; }
  to   { text-shadow: 0 0 10px #00FF7F, 0 0 20px #00FF7F, 0 0 40px #00FF7F; }
}

/* 棒線 */
.scroll-line {
  width: 2px;
  height: 50px;
  background-color: #00FF7F;
  box-shadow: 0 0 5px #00FF7F, 0 0 10px #00FF7F, 0 0 20px #00FF7F;
  transform-origin: top;
  animation: line-grow 3s ease-out infinite, line-glow 3s ease-in-out infinite alternate;
}

/* 線が上から下に伸びるアニメーション（ループ） */
@keyframes line-grow {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

/* 線の光アニメーション */
@keyframes line-glow {
  from { box-shadow: 0 0 5px #00FF7F, 0 0 10px #00FF7F, 0 0 20px #00FF7F; }
  to { box-shadow: 0 0 10px #00FF7F, 0 0 20px #00FF7F, 0 0 40px #00FF7F; }
}
/* 光るポインター */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,127,0.9) 0%, rgba(0,255,127,0.4) 60%, rgba(0,255,127,0) 100%);
  box-shadow: 0 0 10px #00ff7f, 0 0 20px #00ff7f, 0 0 35px #00ff7f;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  z-index: 9999;
  transition: transform 0.12s ease-out, box-shadow 0.2s ease-out;
}

/* クリック時のエフェクト */
.cursor-glow.click {
  transform: translate(-50%, -50%) scale(0.8);
  box-shadow: 0 0 5px #00ff7f, 0 0 15px #00ff7f, 0 0 25px #00ff7f;
}

/* タブレット以下（1024pxまで） */
@media (max-width: 1024px) {
  #main-view {
    aspect-ratio: 16/9;
    border-radius: 6px;
  }

  .heading {
    font-size: 2.2rem;
    left: 40px;
    bottom: 0;
  }

  .scrolldown {
    right: 15px;
    bottom: 15px;
  }
}

/* スマホ（768pxまで） */
@media (max-width: 768px) {
  #main-view-wrapper {
    padding: 30px 0;
  }

  #main-view {
    aspect-ratio: 16/16; /* 縦長画面に対応 */
    border-radius: 5px;
  }

  .heading {
    font-size: 1.6rem;
    left: 15px;
    bottom: 5px;
    white-space: normal; /* 1行で収まらない場合は折り返す */
    line-height: 1.4;
  }

  .scrolldown {
    right: 10px;
    bottom: 10px;
  }

  .vertical-text {
    font-size: 0.8rem;
  }

  .scroll-line {
    height: 35px;
  }

  /* 動画マスクも小さめに */
  .video-mask {
    width: 25%;
    height: 10%;
  }
  .video-mask {
    display: none;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15%;
  height: 8%;
  backdrop-filter: blur(10px);
  z-index: 5; /* 動画や他の要素より前面にする */
  pointer-events: none; /* マスク部分をクリック不可にする場合 */
}
}

/* 超小さいスマホ（480pxまで） */
@media (max-width: 480px) {
      #main-view {
    aspect-ratio: 10/16; /* 縦長画面に対応 */
    border-radius: 5px;
  }

  .heading {
    font-size: 1.8rem;
    left: 10px;
    bottom: 0;
      white-space: pre-wrap; /* ← 改行を反映 */
  line-height: 1.4;
  }

}


/* ここまで */

/* セクション全体 */
.main_service {
  position: relative;
  width: 100%;
  background: url('../img/bei-jingtesainno-yan.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 200px 20px;
  box-sizing: border-box;
}

/* コンテナ（テキストとロゴを横並び） */
.main_service .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  width: 100%;
  position: relative;
  color: white;
}

/* アニメーション初期状態 */
.main_service h2,
.main_service p,
.main_service .bn5 {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.main_service h2{
    font-size: 2em;
    margin-bottom: 50px;
}

.main_service p {
    font-weight: bolder;
    font-size: 1.2em;
    margin-bottom: 50px;
    line-height: 1.5;
}
.text{
    width: 100%;
}

/* セクションが表示されたら */
.main_service.show h2,
.main_service.show p,
.main_service.show .bn5 {
  opacity: 1;
  transform: translateY(0);
}

/* ロゴ画像 */
/* text 内のロゴを右上に絶対配置 */
.main_service .text {
  position: relative; /* 基準 */
  width: 100%;
  z-index: 2; /* テキストより後ろに行かないように */
  padding-top: 50px;
}

.main_service .text .logo {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -30%); /* 少しはみ出させる演出 */
  opacity: 0.2;
  z-index: 1;
}

.main_service .text .logo img {
  max-width: 400px;
  height: auto;
}
/* テキストをロゴに少しかぶせる */
.main_service h2,
.main_service p {
  position: relative;
  z-index: 2;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .main_service .content {
    flex-direction: column;
    text-align: center;
  }
  .main_service img {
    max-width: 300px;
    margin-top: 20px;
  }
}


.bn5 {
  padding: 0.6em 2em;
  border: 2px solid #00FF7F; /* 蛍光グリーンの枠 */
  color: #fff;
  background: #222222;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;

  /* 弱めの蛍光効果 */
  box-shadow:
    0 0 3px #00FF7F,
    0 0 6px #00FF7F;
  animation: glow2 1.5s ease-in-out infinite alternate;

  /* じわっと切り替え用 */
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
}

/* 蛍光の枠アニメーション（弱め） */
@keyframes glow2 {
  from {
    box-shadow:
      0 0 3px #00FF7F,
      0 0 6px #00FF7F;
  }
  to {
    box-shadow:
      0 0 5px #00FF7F,
      0 0 10px #00FF7F;
  }
}

/* 虹色ボーダー */
.bn5:before {
  content: "";
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowingbn5 20s linear infinite;
  opacity: 0;
  transition: opacity 0.8s ease; /* じわっと出現 */
  border-radius: 10px;
}

@keyframes glowingbn5 {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

/* ホバー時 → ゆっくり虹色へ */
.bn5:hover {
  border-color: transparent;
  box-shadow: none;
  animation: none;
}

.bn5:hover:before {
  opacity: 1;
}

.bn5:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #191919;
  left: 0;
  top: 0;
  border-radius: 10px;
}

/* ロゴはじわっと表示 */
.main_service .text .logo {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -30%);
  opacity: 0;
  z-index: 1;
  transition: opacity 2.5s ease-in-out;
}
.main_service.show .text .logo {
  opacity: 0.2;
}

/* ====== レスポンシブ ====== */

/* タブレット（〜1024px） */
@media (max-width: 1024px) {
  .main_service {
    padding: 150px 15px;
  }
  .main_service h2 {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .main_service p {
    font-size: 1.1em;
    margin-bottom: 40px;
  }
  .main_service .text .logo img {
    max-width: 300px;
  }
}

/* スマホ（〜768px） */
@media (max-width: 768px) {
  .main_service {
    padding: 100px 15px;
  }
  .main_service .content {
    flex-direction: column;
    text-align: center;
  }
  .main_service h2 {
    font-size: 1.6em;
    margin-bottom: 30px;
  }
  .main_service p {
    font-size: 1em;
    margin-bottom: 30px;
    line-height: 1.6;
  }

  .main_service .text .logo img {
    max-width: 220px;
    margin: 0 auto;
    display: block;
  }
  .bn5 {
    padding: 0.5em 1.5em;
    font-size: 0.9em;
  }
  .main_service .text .logo {
  position: absolute;
  top: 0;
  right: 100px;
  transform: translate(30%, -30%); /* 少しはみ出させる演出 */
  z-index: 1;
}
.main_service .text {
  position: relative; /* 基準 */
  width: 100%;
  z-index: 2; /* テキストより後ろに行かないように */
  padding-top: 90px;
}

}

/* 超小さいスマホ（〜480px） */
@media (max-width: 480px) {
  .main_service {
    padding: 80px 10px;
  }
  .main_service h2 {
    font-size: 1.4em;
  }
  .main_service p {
    font-size: 0.9em;
  }
  .main_service .text .logo img {
    max-width: 180px;
  }
  .bn5 {
    padding: 0.4em 1.2em;
    font-size: 0.85em;
  }
    .main_service .text .logo {
  position: absolute;
  top: 0;
  right: 50px;
  transform: translate(30%, -30%); /* 少しはみ出させる演出 */
  z-index: 1;
}
/* text 内のロゴを右上に絶対配置 */
.main_service .text {
  position: relative; /* 基準 */
  width: 100%;
  z-index: 2; /* テキストより後ろに行かないように */
  padding-top: 90px;
}

}


/* ここからサービス */

.services {
  position: relative;
  width: 100%;
  background: url('../img/bei-jingtesainno-yan.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 20px;
  box-sizing: border-box;
}

.services .content h2 {
  position: relative;
  font-size: 2rem;
  text-align: left;
  margin-bottom: 50px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'CustomFont', sans-serif;
}

.services .content h2::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #00FF7F;
  box-shadow: 0 0 5px #00FF7F, 0 0 10px #00FF7F, 0 0 20px #00FF7F;
  animation: line-glow 2s ease-in-out infinite alternate;
}

.services .content h2 span {
  position: relative;
  padding: 0 8px;
}

.services .content h2 span:not(:last-child)::after {
  content: "●";
  margin-left: 8px;
  color: #00FF7F;
  text-shadow: 0 0 5px #00FF7F, 0 0 10px #00FF7F;
}

/* リスト全体 */
.services ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services ul li {
  margin: 0 auto 40px;
  max-width: 700px;
}

/* li の中を a 化 */
.services ul li a {
  display: flex;
  align-items: center;
  gap: 30px;
  border-radius: 16px;
  background-image: url(../img/okumono_sf14-1280x720.png);
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.2);
  background-blend-mode: overlay;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(0, 255, 127, 0.2);
  text-decoration: none;
  opacity: 0;
}

.services ul li a:hover {
  box-shadow: 0 6px 30px rgba(0, 255, 127, 0.4);
  transform: translateY(-5px);
}

/* 2つ目の li */
.services ul li:nth-child(2) a div:last-child {
  padding-left: 30px;
}

.services ul li:nth-child(2) a {
  flex-direction: row-reverse;
}
/* 初期状態（非表示＋移動だけ） */
.services ul li a {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s ease;
}

/* 2つ目だけ逆方向 */
.services ul li:nth-child(2) a {
  transform: translateX(100px);
}

/* 表示されたときにアニメーション */
.services.show ul li:nth-child(1) a {
  animation: fadeInLeft 1s ease forwards;
}
.services.show ul li:nth-child(2) a {
  animation: fadeInRight 1s ease forwards;
  animation-delay: 0.3s;
}
.services.show ul li:nth-child(3) a {
  animation: fadeInLeft 1s ease forwards;
  animation-delay: 0.6s;
}
/* 画像 */
.services ul li a img {
  width: 300px;
  aspect-ratio: 7 / 4.5;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 255, 127, 0.3);
  filter: grayscale(80%); /* 白黒 */
  transition: filter 0.5s ease;
}

.services ul li a:hover img {
  filter: grayscale(0%); /* ホバーでカラー */
}

/* テキストエリア */
.services ul li a div:last-child {
  flex: 1;
}

.services ul li a h4 {
  font-size: 1.4rem;
  color: #fff;
  position: relative;
}

.services ul li a p {
  color: #ccc;
  line-height: 1.6;
  font-size: .8em;
}

/* 英語部分（光エフェクト） */
.services ul li a p:nth-child(2) {
  margin: 0 0 15px 0;
  color: #00FF7F;
  text-shadow: 0 0 5px #00FF7F, 0 0 10px #00FF7F, 0 0 20px #00FF7F;
  font-weight: bold;
}

/* スマホ用 */
@media (max-width: 700px) {
  .services ul li a {
  gap: 10px;
    flex-direction: column !important;
  }
  .services ul li {
  margin: 0 auto 40px;
  max-width: 250px;
}
  .services ul li a img {
    width: 100%;
    max-width: 250px;
  }
  /* 2つ目の li */
.services ul li:nth-child(2) a div:last-child {
    padding: 15px 15px 30px;

}
.services ul li div {
  padding: 15px 15px 30px;
}
.services ul li a h4 {
  font-size: 1.1rem;
  color: #fff;
  position: relative;
}

}

/* アニメーション */
@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes line-glow {
  0% { box-shadow: 0 0 5px #00FF7F, 0 0 10px #00FF7F; }
  100% { box-shadow: 0 0 10px #00FF7F, 0 0 20px #00FF7F, 0 0 40px #00FF7F; }
}


/* ここまでサービス */




.partners {
  position: relative;
  width: 100%;
  background: url('../img/bei-jingtesainno-yan.jpg') center center / cover no-repeat;
  padding: 100px 20px;
  box-sizing: border-box;
  color: #fff;
  overflow: hidden;
}

.partners .content {
  max-width: 1200px;
  margin: 0 auto;
}

.partners h2 {
  font-size: 2rem;
  margin-bottom: 50px;
  color: #fff;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'CustomFont', sans-serif;
}

.partners h2::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #00FF7F;
  box-shadow: 0 0 5px #00FF7F, 0 0 10px #00FF7F, 0 0 20px #00FF7F;
  animation: line-glow 2s ease-in-out infinite alternate;
}

.partners h2 span {
  position: relative;
  padding: 0 8px;
}

.partners h2 span:not(:last-child)::after {
  content: "●";
  margin-left: 8px;
  color: #00FF7F;
  text-shadow: 0 0 5px #00FF7F, 0 0 10px #00FF7F;
}

/* カルーセルラッパー */
.carousel {
  position: relative;
  overflow: hidden;
  padding: 0 60px; /* 外側ボタン分の余白確保 */
}

.carousel ul {
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  transition: transform 0.6s ease;
}

/* カード */
.carousel ul li {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #222; /* 下部分の背景 */
}


/* 画像ラッパー */
.carousel ul li .img-wrap {
  width: 100%;
  height: 140px;
  padding: 10px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel ul li .img-wrap img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* 会社名帯 */
.carousel ul li h4 {
  color: #ffffff;
  padding: 8px;
  text-align: center;
  margin: 0;
  font-size: 1rem;
  background-image: url(../img/dark-52.png);
  background-size: cover;
}

/* テキスト部分 */
.carousel ul li .info {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 150px; /* 背景が見えるよう高さ確保 */
  background-image: url('../img/okumono_sf14-1280x720.png');
  background-size: cover;
  background-position: center;
  background-color: rgba(77, 77, 77, 0.8);
  background-blend-mode: overlay;
  backdrop-filter: blur(6px);
}

/* 通常テキスト */
.carousel ul li .info p {
  font-size: 0.85rem;
  margin: 5px 0;
  color: #ccc;
}

/* 成果部分 */
.carousel ul li .info p:last-of-type {
  color: #00FF7F;
  text-shadow: 0 0 5px #00FF7F, 0 0 15px #00FF7F, 0 0 25px #00FF7F;
  font-weight: bold;
}

/* 公式サイトリンク */
.carousel ul li .info a {
  margin-top: auto;
  text-align: right;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
}

.carousel ul li .info a:hover {
  text-decoration: underline;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel {
  overflow: hidden;
  flex: 1;
}

/* ナビゲーションボタン */
.carousel-btn {
  width: 36px;      /* ボタンの正方形サイズ */
  height: 36px;
  font-size: 1.5rem;
  color: white;
  background-color: #000000;
  padding-bottom: 4px;       /* padding は不要 */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.carousel-btn.prev { margin-right: 10px; }
.carousel-btn.next { margin-left: 10px; }

/* ドット */
.carousel-dots {
  text-align: center;
  margin-top: 20px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  border: none;
  background: #888;
  cursor: pointer;
}
.result{
  text-align: center;
}

.carousel-dots button.active {
  background: #00FF7F;
}

/* キーフレーム */
@keyframes line-glow {
  0% { box-shadow: 0 0 5px #00FF7F, 0 0 10px #00FF7F; }
  100% { box-shadow: 0 0 10px #00FF7F, 0 0 20px #00FF7F, 0 0 40px #00FF7F; }
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .carousel ul li { flex: 0 0 220px; }
}

@media (max-width: 768px) {
  .carousel ul li {
    flex: 0 0 100%; /* カルーセル幅いっぱいに1枚表示 */
    max-width: 250px;
  }

  /* カルーセル内の余白をゼロに */
  .carousel {
    padding: 0; 
  }
}