/* カスタムスタイル - 白ベースの高級ミニマリズム */

/* Noto Sans JP フォント */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

body {
  font-family: 'Noto Sans JP', sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 本文テキストのアクティブ改行 */
p {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* デジタルエレガンスな3色グラデーション（Deep Navy → Royal Purple → Gold） */
.text-highlight {
  background: linear-gradient(90deg, #0A192F 0%, #6366F1 50%, #D4AF37 75%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 3s ease-in-out infinite;
  /* 改行の最適化 */
  display: inline-block;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}

/* 実績数字の動くグラデーション */
@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% -200%;
  }
  100% {
    background-position: 200% 200%;
  }
}

.achievement-number {
  background-size: 200% 200%;
  animation: shimmer 3s linear infinite;
  line-height: 1;
}

/* ボタン用のグラデーション背景（ホバー時に動く） */
.gradient-button {
  background: linear-gradient(90deg, #0A192F 0%, #6366F1 50%, #B8860B 100%);
  background-size: 200% auto;
  animation: shimmer 3s ease-in-out infinite;
  color: white;
  transition: all 0.3s ease;
}

.gradient-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(10, 25, 47, 0.2);
  animation-duration: 1.5s;
}

/* ボタンのホバー時の光沢エフェクト */
.button-shimmer {
  position: relative;
  overflow: hidden;
}

.button-shimmer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.button-shimmer:hover::before {
  left: 100%;
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}

/* カスタムカラー */
:root {
  --navy: #0A192F;
  --purple: #6366F1;
  --gold: #B8860B;
  --white: #FFFFFF;
  --ghost-white: #F8FAFC;
  --border-gray: #E2E8F0;
}

/* ロゴスタイル */
.logo {
  height: 128px; /* h-32 (128px) */
  width: auto;
}

.logo-horizontal {
  height: 64px; /* h-16 (64px) */
  width: auto;
  max-height: none;
  object-fit: contain;
}

/* タイポグラフィの統一規則 */
p {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.logo-large {
  height: 120px;
  width: auto;
}

/* Notion風の清潔感のあるセクション分け */
.section-divider {
  border-top: 1px solid #E2E8F0;
  margin: 0;
}

/* ヒーローセクション - ロゴマスク動画（全画面） */
.hero-video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero-video-container {
    height: 60vh;
    min-height: 400px;
  }
  
  .hero-video-desktop {
    display: none !important;
  }
  
  .hero-video-mobile {
    display: block !important;
  }
}

/* ヒーローセクションのビデオマスク設定（全画面） */
.hero-video-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: transparent;
  /* マスクのパス修正 */
  -webkit-mask-image: url(../img/AndOne_rogo02.png);
  mask-image: url(../img/AndOne_rogo02.png);
  -webkit-mask-size: 90% auto; /* スマホ: 90% */
  mask-size: 90% auto;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

@media (min-width: 768px) {
  .hero-video-wrapper {
    height: 100vh; /* PC: 100vh */
    -webkit-mask-size: 60% auto; /* PC: 60% */
    mask-size: 60% auto;
  }
}

.hero-video-desktop, .hero-video-mobile {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}


@media (max-width: 768px) {
  .hero-video-desktop {
    display: none;
  }
  
  .hero-video-mobile {
    display: block;
  }
}

.hero-video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0A192F 0%, #6366F1 50%, #B8860B 100%);
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

/* カウントアップアニメーション */
.count-up {
  display: inline-block;
}

/* スクロールインジケーター */
.scroll-indicator {
  width: 1px;
  height: 60px;
  background: #CBD5E1; /* text-slate-300 */
  position: relative;
  overflow: hidden;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(to bottom, transparent, #CBD5E1, transparent);
  animation: scrollFlow 2s ease-in-out infinite;
}

@keyframes scrollFlow {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(60px);
    opacity: 0;
  }
}

/* 実績カードデザイン（ミニマル） */
.achievement-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 1.5rem; /* rounded-3xl (24px) */
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: none;
}

.achievement-card:hover {
  border-color: #6366F1;
  transform: translateY(-2px);
}

/* FAQアコーディオン */
.faq-item {
  transition: all 0.3s ease;
}

.faq-question {
  cursor: pointer;
  outline: none;
}

.faq-icon {
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ニュースアイテムのホバー効果 */
.news-item:hover .news-title {
  color: #6366F1; /* text-purple */
}

.news-item a {
  display: block;
}

.news-item.group:hover h3 {
  color: #6366F1;
  transform: translateX(4px);
}
