@charset "UTF-8";

:root {
  --primary-blue: #80c3d0;
  --primary-red: #82b965;
  --accent-purple: #f1c277;
  --dark-bg: #0a0a14;
  --darker-bg: #06060c;
  --text-color: #fff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --transition-speed: 0.4s;
}

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

main {
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

body {
  background-color: var(--darker-bg);
  color: var(--text-color);
  position: relative;
  min-height: 100vh;
  font-family: 'Noto Sans JP', 'Outfit', sans-serif;
  display: flex; /* Flexbox レイアウトを有効にする */
  flex-direction: column; /* 子要素を縦方向に配置 */
  justify-content: space-between; /* 上下に均等配置 */
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  max-height: 800px;
  overflow: hidden;
  background-color: var(--dark-bg);
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 221, 255, 0.1), 0 0 60px rgba(255, 0, 64, 0.05);
}

.video-content {
  position: relative;
  width: 100%;
  height: 100%;
}

/* コアスタイリング */
.section {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-in-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.section.active {
  opacity: 1;
  transform: translateY(0);
  z-index: 2;
}

.title {
  font-size: 6rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  position: relative;
  line-height: 1;
  font-family: 'Outfit', sans-serif;
}

.subtitle {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 90%;
  line-height: 1.4;
}

.content {
  font-size: 1.5rem;
  line-height: 1.6;
  max-width: 80%;
  margin-bottom: 2rem;
}

.content-item {
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

.content-item.fade-in {
  animation: fadeUpText 0.6s forwards;
}

.content-item:nth-child(2) {
  animation-delay: 0.2s;
}

.content-item:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes fadeUpText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.highlight {
  font-weight: 700;
  display: inline-block;
  position: relative;
  padding: 0 0.2em;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  opacity: 0.5;
}

/* アニメーションエフェクト */
.glitch {
  position: relative;
}

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: var(--primary-red);
  z-index: -1;
  animation: glitch-effect 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-5px, 0);
}

.glitch::after {
  color: var(--primary-blue);
  z-index: -2;
  animation: glitch-effect 2s infinite alternate-reverse;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  transform: translate(5px, 0);
}

@keyframes glitch-effect {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
  100% { transform: translate(0); }
}

/* 背景エフェクト */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(0, 221, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 221, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  perspective: 1000px;
  transform-style: preserve-3d;
  animation: grid-movement 20s linear infinite;
  opacity: 0.8;
}

@keyframes grid-movement {
  0% { transform: translateZ(0) translateY(0); }
  100% { transform: translateZ(0) translateY(40px); }
}

.bg-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, var(--primary-blue) 1px, transparent 1px),
    radial-gradient(circle at 70% 20%, var(--primary-red) 1px, transparent 1px),
    radial-gradient(circle at 40% 70%, var(--accent-purple) 1px, transparent 1px),
    radial-gradient(circle at 80% 50%, var(--primary-blue) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.3;
  animation: particles-float 30s linear infinite;
}

@keyframes particles-float {
  0% { background-position: 0 0; }
  100% { background-position: 80px 80px; }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(10, 10, 20, 0.3) 30%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
  z-index: 1;
}

/* カラーテーマ */
.vision-color {
  color: var(--primary-blue);
  text-shadow: 0 0 10px var(--primary-blue), 0 0 20px rgba(0, 221, 255, 0.4);
}

.mission-color {
  color: var(--primary-red);
  text-shadow: 0 0 10px var(--primary-red), 0 0 20px rgba(255, 0, 64, 0.4);
}

.values-color {
  color: var(--accent-purple);
  text-shadow: 0 0 10px var(--accent-purple), 0 0 20px rgba(185, 103, 255, 0.4);
}

/* プログレスバー */
.progress-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 10;
}

.progress-bar {
  height: 100%;
  width: 20%; /* 初期値: 5セクション中の1つ = 20% */
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
  transition: width 0.5s ease;
}

/* 各セクション特有のスタイル */
#intro .title {
  font-size: 4rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  border-right: 2px solid var(--primary-blue);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.1em;
  animation: 
    typing 2.5s steps(15, end),
    blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--primary-blue) }
}

.value-box {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 1000px;
  margin-top: 2rem;
}

.value-item {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  width: 28%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.value-item.active {
  opacity: 1;
  transform: translateY(0);
}

.value-icon {
  margin-bottom: 1rem;
}

.value-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.value-content {
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* サイドナビゲーション */
.side-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.side-nav ul {
  list-style: none;
}

.side-nav li {
  margin: 1.5rem 0;
}

.nav-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  position: relative;
  transition: all 0.3s ease;
}

.nav-dot:hover, .nav-dot.active {
  background: white;
  border-color: white;
  transform: scale(1.2);
}

.nav-dot .tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 0.8rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-dot:hover .tooltip {
  opacity: 1;
}

/* ナビゲーションボタン */
.nav-buttons {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  z-index: 10;
}

.nav-button {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--text-color);
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: white;
}

.section-indicator {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.current-section {
  color: white;
  font-weight: bold;
}

/* 動的なラインエフェクト */
.line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--primary-red), var(--primary-blue), transparent);
  opacity: 0.7;
}

.line-top, .line-bottom {
  height: 2px;
  width: 100%;
}

.line-left, .line-right {
  width: 2px;
  height: 100%;
}

.line-top {
  top: 0;
  animation: line-move-horizontal 8s linear infinite;
}

.line-bottom {
  bottom: 0;
  animation: line-move-horizontal 8s linear infinite reverse;
}

.line-left {
  left: 0;
  animation: line-move-vertical 10s linear infinite;
}

.line-right {
  right: 0;
  animation: line-move-vertical 10s linear infinite reverse;
}

.works-main {
  background-color: var(--darker-bg);
  color: var(--text-color);
  position: relative;
  overflow-y: auto; /* 縦方向のスクロールを許可 */
  padding: 120px 2rem 4rem;
  flex-grow: 1; /* メインコンテンツが可能な限り高さを占めるようにする */
}

.works-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 221, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 221, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.works-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.works-main h1 {
  font-size: 3.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  font-weight: 800;
  background: linear-gradient(45deg, var(--primary-blue), var(--primary-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.works-main h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
}

.works-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.works-item {
  background: rgba(10, 10, 20, 0.6);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.works-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 221, 255, 0.2),
    0 0 5px rgba(255, 0, 64, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.works-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-blue),
    var(--primary-red),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.works-item:hover::before {
  opacity: 1;
}

.works-item-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.works-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.works-item:hover .works-item-image img {
  transform: scale(1.05);
}

.works-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgba(10, 10, 20, 0.8) 0%,
    rgba(10, 10, 20, 0) 50%
  );
  z-index: 1;
}

.works-item-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.works-item h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  position: relative;
  font-weight: 600;
  color: white;
  line-height: 1.2;
}

.works-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.works-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.works-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.works-btn:hover {
  background: rgba(0, 221, 255, 0.1);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.works-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(185, 103, 255, 0.2);
  color: var(--accent-purple);
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.works-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* フィルターとソート機能 */
.works-filter {
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  background: rgba(10, 10, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 221, 255, 0.1);
  border-color: var(--primary-blue);
}

.sort-dropdown {
  position: relative;
}

.sort-btn {
  padding: 0.5rem 1.2rem;
  background: rgba(10, 10, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(10, 10, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  min-width: 160px;
  z-index: 10;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.sort-dropdown.active .sort-dropdown-content {
  opacity: 1;
  transform: translateY(5px);
  pointer-events: all;
}

.sort-option {
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 詳細ページモーダル */
.works-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 6, 12, 0.9);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(10px);
}

.works-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: var(--dark-bg);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.works-modal.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 10, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 0, 64, 0.2);
  transform: rotate(90deg);
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: white;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.modal-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.modal-content {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.modal-image {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-nav {
  display: flex;
  gap: 1rem;
}

.modal-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-nav-btn:hover {
  color: white;
}

/* モバイル調整 */
@media (max-width: 768px) {
  .works-main {
    padding: 100px 1.5rem 3rem;
  }

  .works-main h1 {
    font-size: 2.5rem;
  }

  .works-items {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .works-item h2 {
    font-size: 1.5rem;
  }

  .works-filter {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .works-main h1 {
    font-size: 2rem;
  }

  .works-items {
    grid-template-columns: 1fr;
  }

  .works-item-image {
    height: 200px;
  }

  .modal-container {
    width: 95%;
  }

  .modal-header,
  .modal-content,
  .modal-footer {
    padding: 1.5rem;
  }
}

/* アニメーション効果 */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.works-item {
  opacity: 0;
  animation: fadeUp 0.8s forwards;
}

.works-item:nth-child(2) {
  animation-delay: 0.2s;
}

.works-item:nth-child(3) {
  animation-delay: 0.4s;
}

.works-item:nth-child(4) {
  animation-delay: 0.6s;
}

.works-item:nth-child(5) {
  animation-delay: 0.8s;
}

.works-item:nth-child(6) {
  animation-delay: 1s;
}
/* お問い合わせページ専用スタイル */
.contact-main {
  min-height: 100vh;
  background-color: var(--darker-bg);
  padding: 120px 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.contact-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(0, 221, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 221, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 3rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px rgba(0, 221, 255, 0.1), 0 0 60px rgba(255, 0, 64, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-inner h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-align: center;
  position: relative;
  display: inline-block;
}

.contact-inner h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
}

.lead {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  text-align: center;
}

/* フォームスタイリング */
form {
  margin-bottom: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 10px rgba(0, 221, 255, 0.2);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.privacy-policy {
  display: flex;
  align-items: center;
}

.privacy-policy label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
}

.privacy-policy input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.privacy-policy input[type="checkbox"]:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.privacy-policy input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.submit-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 2.5rem auto 0;
  padding: 1rem;
  background: linear-gradient(45deg, var(--primary-blue), var(--primary-red));
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* FAQ・プライバシーポリシーセクション */
.faq-privacy {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-privacy h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

.faq-privacy h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--primary-blue), transparent);
}

.faq-privacy p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* フッタースタイリング */
footer {
  background-color: var(--darker-bg);
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-lists {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.footer-lists a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-lists a:hover {
  color: var(--primary-blue);
}

/* 動的なラインエフェクト（メインサイトからの要素を引き継ぐ） */
.contact-main .line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--primary-red), var(--primary-blue), transparent);
  opacity: 0.5;
  z-index: 0;
}

.contact-main .line-top, 
.contact-main .line-bottom {
  height: 2px;
  width: 100%;
  left: 0;
}

.contact-main .line-top {
  top: 0;
  animation: line-move-horizontal 8s linear infinite;
}

.contact-main .line-bottom {
  bottom: 0;
  animation: line-move-horizontal 8s linear infinite reverse;
}

/* フォーカス状態の強調表示（アクセシビリティ） */
input:focus,
textarea:focus,
button:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(0, 221, 255, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .contact-inner {
    padding: 2rem;
  }
  
  .contact-inner h1 {
    font-size: 2.5rem;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-main {
    padding: 100px 1rem 2rem;
  }
  
  .contact-inner {
    padding: 1.5rem;
  }
  
  .contact-inner h1 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .submit-btn {
    max-width: 100%;
  }
}

/* 入力フォームのフォーカスアニメーション */
.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
  transition: width 0.4s ease;
}

.form-group:focus-within::after {
  width: 100%;
}

/* フォーム入力エラー表示 */
.error-message {
  color: var(--primary-red);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: var(--primary-red);
}

.form-group.error .error-message {
  display: block;
}

/* フォーム送信成功メッセージ */
.success-message {
  background: rgba(0, 255, 128, 0.1);
  border: 1px solid rgba(0, 255, 128, 0.3);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  text-align: center;
  display: none;
}

.success-message.visible {
  display: block;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ヘッダーナビゲーション */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(6, 6, 12, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.6rem 2rem;
  background: rgba(6, 6, 12, 0.95);
  box-shadow: 0 0 20px rgba(0, 221, 255, 0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
}

.nav-inner {
  display: flex;
  justify-content: flex-end;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav li {
  position: relative;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

nav a:hover {
  color: white;
}

nav a:hover::before {
  transform: translateX(0);
}

/* アクティブナビゲーション状態 */
nav a.active {
  color: var(--primary-blue);
}

nav a.active::before {
  transform: translateX(0);
  background: var(--primary-blue);
}

/* ハンバーガーメニュー（モバイル用） */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--text-color);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* ロゴ部分のスタイリング */
.logo {
  margin-right: auto;
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(45deg, var(--primary-blue), var(--primary-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--primary-blue), transparent);
}

/* レスポンシブナビゲーション */
@media (max-width: 768px) {
  .nav-inner {
    justify-content: space-between;
  }
  
  .menu-toggle {
    display: block;
    z-index: 101;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background: var(--darker-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: 100;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
  }
  
  nav ul.active {
    right: 0;
  }
  
  nav a {
    font-size: 1.2rem;
  }
}

/* Scroll Animation Styles */
.works-item {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.works-item.scroll-animation {
  opacity: 0;
  transform: translateY(50px);
}

.works-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.works-main .bg-grid,
.works-main .bg-particles {
  transition: transform 0.3s ease;
}

/* Infinite scroll loading indicator */
.loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0.7;
}

.loading-indicator::before {
  content: '読み込み中...';
  font-size: 1rem;
  color: var(--text-color);
}

/* スクロールバー全体のスタイル */
::-webkit-scrollbar {
  width: 5px; 
}

/* スクロールバーのトラック */
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1); /* トラックの背景色を少し暗く */
  border-radius: 10px; /* 角を丸く */
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); /* 内側に影を追加 */
}

/* スクロールバーのつまみ */
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-red)); /* 角度付きグラデーション */
  border-radius: 10px; /* 角を丸く */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* 影を追加 */
  border: 2px solid transparent; /* 透明なボーダーを追加 */
  background-clip: padding-box; /* ボーダーの内側に背景を表示 */
}

/* ホバー時のスタイル */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-red), var(--accent-purple)); /* ホバー時のグラデーション */
  transform: scale(1.1); /* 少し拡大 */
}

/* つまみがアクティブ（ドラッグ中）のスタイル */
::-webkit-scrollbar-thumb:active {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-blue)); /* アクティブ時のグラデーション */
}

/* 角のスタイル */
::-webkit-scrollbar-corner {
  background: transparent;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* サイト調整 - ヘッダーの高さを考慮 */
.video-container {
  margin-top: 0;
}


@keyframes line-move-horizontal {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes line-move-vertical {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* フェードイン効果 */
.fade-in-text {
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* レスポンシブ調整 */
@media (max-width: 1024px) {
  .title {
    font-size: 4rem;
  }
  
  .side-nav {
    right: 1rem;
  }
}

@media (max-width: 768px) {
  .title {
    font-size: 3rem;
  }
  
  .subtitle {
    font-size: 1.5rem;
    max-width: 95%;
  }
  
  .content {
    font-size: 1.2rem;
    max-width: 95%;
  }
  
  .value-box {
    flex-direction: column;
    align-items: center;
  }
  
  .value-item {
    width: 85%;
    margin-bottom: 1rem;
  }
  
  .side-nav {
    display: none;
  }
  
  .nav-button {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 2.5rem;
  }
  
  .content {
    font-size: 1rem;
  }
  
  .value-item {
    width: 95%;
    padding: 1.5rem;
  }
  
  .nav-buttons {
    bottom: 1rem;
  }
}

/* アクセシビリティ向上 */
.nav-button:focus, .nav-dot:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* 暗い背景に対して十分なコントラスト比を確保 */
.value-content {
  color: rgba(255, 255, 255, 0.9);
}

/* 視覚的な焦点表示を改善 */
a, button {
  transition: all 0.2s;
  position: relative;
}

a:focus, button:focus {
  outline: none;
}

a:focus::after, button:focus::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--primary-blue);
  border-radius: 6px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}