/* 基本設定 */
:root {
  --primary-color: #1a1a1a;
  --accent-color: #cc0000;
  --text-color: #000;
  --light-text: #fff;
  --background-dark: #1f1f1f;
  --background-darker: #090909;
  --section-padding: 100px 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--background-darker);
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text-color);
}

.noto-sans-jp {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.sp {
  display: none;
}
.pc {
  display: block;
}
@media screen and (max-width: 768px) {
  .sp {
    display: block;
  }
  .pc {
    display: none;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* メインビジュアル */
#hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--light-text);
  width: 90%;
  max-width: 1200px;
  z-index: 2;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* セクション共通 */
.section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  position: relative;
  color: var(--light-text);
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  margin: 20px auto;
}

/* 魅力セクション */
.scene-section {
  position: relative;
  min-height: 100vh;
}

.scene-item {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.scene-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.scene-item:nth-child(even)::before {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.scene-content {
  width: 100%;
  padding: 50px;
  color: var(--light-text);
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.scene-content h3 {
  font-size: 36px;
  margin-bottom: 20px;
}

.scene-item:nth-child(even) .scene-content {
  margin-left: auto;
  text-align: right;
}

.scene-item:nth-child(odd) .scene-content {
  margin-right: auto;
  text-align: left;
}

/* アイコンアニメーション */
.scene-icon {
  color: var(--accent-color);
  margin-bottom: 20px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.floating-icon {
  animation: floating 3s ease-in-out infinite;
  color: #fff;
}

@keyframes floating {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* ホバー時の効果 */
.scene-content:hover .floating-icon {
  transition: all 0.3s ease;
  animation-duration: 1.5s;
  color: #a1dbff;
}

/* 特徴セクション */
.features-section {
  background: var(--background-darker);
  padding: var(--section-padding);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--background-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--light-text);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(204, 0, 0, 0.1);
}

.feature-icon {
  width: 100px;
  height: 100px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-text h4 {
  color: var(--accent-color);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* PC: 2カラム */
  gap: 30px;
}

/* モバイル: 1カラム */
@media screen and (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* 実績セクション */
.works-section {
  padding: var(--section-padding);
}

.work-case {
  margin-bottom: 50px;
  padding: 30px;
  background: var(--background-dark);
  color: var(--light-text);
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* 
.work-case:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: scale(1.005);
} */

.work-info {
  h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
  }
  li {
    margin-bottom: 0.5rem;
  }
}
.video-popup {
  position: relative;
  display: inline-block;
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.work-video:hover .video-overlay {
  opacity: 1;
}

.work-video {
  margin-top: 20px;
  text-align: center;
}

.work-video iframe,
.work-video img {
  width: 100%;
  max-width: 1080px;
  max-height: 608px;
  border: none;
}

.work-image {
  overflow: hidden;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 20px;
}

.work-image img {
  width: 30%;
  height: auto;
  margin-bottom: 1rem;
}
@media screen and (max-width: 768px) {
  .work-image img {
    width: 100%;
    height: auto;
  }
}

.work-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.price-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 10px;
  border: 1px solid #ddd;
}

/* クリエイター紹介セクション */
.creator-section {
  background: var(--background-darker);
  color: var(--light-text);
  padding: var(--section-padding);
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.creator-card {
  background: var(--background-dark);
  color: var(--light-text);
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  hr {
    margin: 20px auto;
    width: 50%;
  }
}

.creator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(204, 0, 0, 0.1);
}

.creator-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.creator-image img {
  width: 100%;
  height: auto;
}

.creator-card:hover .creator-image {
  transform: scale(1.05);
}

.creator-name {
  color: var(--accent-color);
}
.creator-name-eg {
  font-weight: 400;
  color: var(--accent-color);
}

.creator-role {
  color: #8f8f8f;
  font-size: 0.8rem;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PC: 3カラム */
  gap: 30px;
}

/* ギャラリーセクション */
.gallery {
  background: var(--background-dark);
  padding: 4rem 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.gallery-caption {
  display: none;
  margin-top: 0.5rem;
  /* text-align: center; */
  font-size: 0.875rem;
  color: #969696;
}

/* ポップアップの背景 */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* 画像を囲むコンテナ */
.popup-content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* align-items: center; */
  max-width: 90vw;
  max-height: 90vh;
  padding: 1rem;
  gap: 1rem;
  color: #fff;
}

.popup-content-wrapper iframe {
  width: 100%;
  max-width: 1600px;
  aspect-ratio: 16 / 9; /* モダンな方法 */
  border: none;
}

/* ポップアップ画像 */
.popup-content {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 8px;
}

.popup-caption {
  margin-top: 10px;
  color: #fff;
  /* text-align: center; */
  font-size: 1rem;
}

/* 閉じるボタン（修正後） */
.popup-close {
  position: absolute;
  top: 5px; /* 画像の右上に配置 */
  right: 5px;
  width: 35px;
  height: 35px;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
  z-index: 1001;
}

/* ホバー時のエフェクト */
.popup-close:hover {
  background: #ff0000;
  transform: scale(1.1);
}

.video-container p {
  width: 100%;
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(255, 0, 0, 0.5);
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-size: 0.8rem;
  a {
    color: #fff;
  }
}

.video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  height: 70vh;
}

.popup-close2 {
  position: absolute;
  top: 10%;
  right: 5%;
  transform: translate(0%, -100%);
  width: 35px;
  height: 35px;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
  z-index: 1001;
}
/* ホバー時のエフェクト */
.popup-close2:hover {
  background: #0000ff;
}

/* モバイル: 1カラム */
@media screen and (max-width: 768px) {
  .creator-grid {
    grid-template-columns: 1fr;
  }
}

/* 使用シーンセクション */
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.scene-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.scene-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.scene-card h3 {
  padding: 20px;
  margin: 0;
}

.scene-card p {
  padding: 0 20px 20px;
  color: #666;
}

/* 特徴セクション */
.features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-box {
  padding: 30px;
  background: #f8f8f8;
  border-radius: 10px;
  position: relative;
}

.number {
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 48px;
  color: var(--accent-color);
  opacity: 0.2;
  font-weight: bold;
}

/* 実績セクション */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* チームセクション */
.team-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.team-image {
  flex: 1;
}

.team-image img {
  width: 100%;
  border-radius: 10px;
}

.team-text {
  flex: 1;
  font-size: 18px;
  line-height: 1.8;
}

/* お問い合わせフォーム */
.contact-section {
  padding: var(--section-padding);
  background: var(--background-darker);
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 40px 10px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-btn {
  text-decoration: none;
  color: #fff;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--light-text);
}

.required {
  color: var(--accent-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background-color: #fff;
  color: var(--text-color);
  font-family: inherit;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background-color: var(--accent-color);
  color: var(--light-text);
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background-color: #a00000;
}

.error-messages {
  max-width: 800px;
  margin: 20px auto;
  padding: 15px;
  background-color: #fff3f3;
  border: 1px solid #ffcdd2;
  border-radius: 4px;
}

.error {
  color: var(--accent-color);
  margin-bottom: 5px;
}

.error:last-child {
  margin-bottom: 0;
}

/* メッセージスタイル */
.success-message {
  background-color: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

.error-message {
  background-color: #ffebee;
  border: 1px solid #ffcdd2;
  color: #c62828;
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.error-message ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.error-message li {
  margin-bottom: 5px;
}

.error-message li:last-child {
  margin-bottom: 0;
}

.form-notice {
  margin: 20px 0;
  font-size: 0.9rem;
  color: var(--light-text);
  opacity: 0.8;
}

.privacy-policy {
  margin: 20px 0;
  padding: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.privacy-policy p {
  font-size: 0.9rem;
  color: var(--light-text);
  line-height: 1.6;
}

.privacy-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-color);
  transition: opacity 0.3s ease;
}

.privacy-link:hover {
  opacity: 0.8;
}

/* スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  bottom: 0%;
  left: 50%;
  transform: translate(-50%,0%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--light-text);
  z-index: 2;
}

.scroll-indicator span {
  font-size: 14px;
  letter-spacing: 0.2em;
  margin-bottom: 15px;
  text-transform: uppercase;
  opacity: 0.8;
}

.scroll-line {
  width: 1px;
  height: 100px;
  background: var(--light-text);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    top: -100%;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  50% {
    top: 100%;
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.scroll-indicator span {
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.heading-with-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  padding-right: 1rem;
  overflow: hidden; /* ← これを追加 */
}

.heading-with-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--light-text);
  z-index: 0;
}

.heading-with-underline::before {
  content: "";
  position: absolute;
  left: -100%;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--accent-color);
  animation: scrollUnderline 2s ease-in-out infinite;
  z-index: 1; /* ← これで前面に出す */
}

@keyframes scrollUnderline {
  0% {
    left: -100%;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  50% {
    left: 100%;
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* フッター */
footer {
  background: var(--primary-color);
  color: var(--light-text);
  padding: 20px 0;
  text-align: center;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
  /* ヘッダー */
  header {
    padding: 15px 20px;
  }

  .logo {
    font-size: 24px;
  }

  nav ul {
    display: none;
  }

  /* メインビジュアル */
  .main-visual {
    height: 100vh;
  }

  .main-copy {
    font-size: 32px;
    padding: 0 20px;
  }

  .sub-copy {
    font-size: 16px;
    padding: 0 20px;
  }

  /* シーンセクション */
  .scene-content {
    padding: 30px 20px;
    max-width: 100%;
  }

  .scene-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  /* 特徴セクション */
  .features {
    padding: 50px 20px;
  }

  .feature-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    width: 80px;
    height: 80px;
  }

  /* 実績セクション */
  .work-cases {
    padding: 50px 20px;
  }

  .work-case {
    padding: 20px;
    margin-bottom: 30px;
  }

  .work-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 料金テーブル */
  .price-table {
    overflow-x: auto;
  }

  .price-table table {
    min-width: 600px;
  }

  /* クリエイターセクション */
  .creators {
    padding: 50px 20px;
  }

  .creator-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .creator-card {
    padding: 15px;
  }

  .creator-image {
    width: 120px;
    height: 120px;
  }

  /* コンタクトフォーム */
  .contact {
    padding: 50px 20px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 8px;
    font-size: 14px;
  }

  .submit-btn {
    padding: 12px 25px;
    font-size: 14px;
  }

  /* フッター */
  footer {
    padding: 30px 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-nav ul {
    justify-content: center;
  }

  /* ヒーローコンテンツ */
  .hero-content {
    width: 100%;
    padding: 0 20px;
  }

  .hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

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

  /* 注意点セクション */
  .caution-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* クリエイターカード */
  .creator-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .creator-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .scene-content {
    padding: 40px;
  }

  .scene-content h3 {
    font-size: 32px;
  }

  .hero-content {
    width: 90%;
  }

  .caution-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid,
  .scenes-grid,
  .features-list {
    grid-template-columns: 1fr;
  }

  .team-content {
    flex-direction: column;
  }

  nav ul {
    display: none;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 11px;

  }
}
.header-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  h1 {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: gray 1px 0 10px;
  }
}
.keyword {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.1rem;
}
.what_is {
  img {
    max-width: 100%;
    height: auto;
  }
  p,
  li {
    color: #fff;
    font-size: 0.9rem;
  }
  h2 {
    text-shadow: gray 1px 0 10px;
  }

  .feature-text h4 {
    font-weight: bold;
  }
  hr {
    border-color: rgb(70, 70, 70);
    margin: 0 2rem 5rem 2rem;
  }
}

.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s, transform 1s;
}
.fade.active {
  opacity: 1;
  transform: translateY(0px);
}


.triangle {
  height: 20px;
  aspect-ratio: 2;
  clip-path: polygon(50% 100%,100% 0,0 0);
  background: oklch(37% 0.013 285.805);
}
