/*
 * トップページ専用スタイル
 * 更新: 2025-08-12 04:30
 */

/* メインビジュアル - パーティクルエフェクト */
.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  background-color: #000;
}

.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* ヒーローセクションの高さに合わせる */
  max-height: 100vh;
  z-index: 1;
  opacity: 1;
  pointer-events: auto; /* インタラクションを可能にするためにautoに変更 */
}

/* テキスト下に配置されるボタンのスタイル */
.hero-buttons-vertical {
  position: relative;
  display: flex;
  flex-direction: row; /* PCでは横並び */
  gap: 20px;
  z-index: 10;
  margin-top: 30px;
  justify-content: center; /* 中央揃え */
}

/* モバイル用のスタイル */
@media (max-width: 768px) {
  .hero-buttons-vertical {
    flex-direction: column; /* モバイルでは縦並び */
    align-items: center;
  }
}

.hero-buttons-vertical .btn {
  min-width: 220px;
  text-align: center;
  white-space: nowrap;
  padding: 15px 25px;
  font-size: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-buttons-vertical .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-buttons-vertical {
    position: static;
    margin-top: 30px;
    transform: none;
    width: 100%;
    max-width: 300px;
  }
  
  .hero-buttons-vertical .btn {
    width: 100%;
  }
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 2;
}

/* インタラクションガイドのスタイル */
.interaction-guide {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}

@media (max-width: 768px) {
  /* メインテキスト上に5%のマージンを追加 */
  .hero-content {
    padding-top: 5vh; /* ビューポート高の5%マージン */
  }
  
  .hero-text {
    margin-top: 2vh; /* 追加の余白も減らす */
  }
  
  .hero-buttons-vertical {
    margin-bottom: 150px; /* 矢印の下移動に合わせて調整 */
    position: relative;
    z-index: 5; /* 矢印より下に確実に表示 */
  }
  
  .hero .container {
    padding-bottom: 80px;
    position: relative;
    height: 100%;
  }
  
  .interaction-guide {
    position: absolute;
    bottom: 0; /* 最下部に配置 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 100; /* 他の要素より確実に上に表示 */
    pointer-events: none; /* クリックイベントが底に残らないように */
    margin: 0;
  }
  
  .interaction-guide .tap-icon {
    pointer-events: auto; /* 矢印自体はクリック可能に */
  }
}

.tap-icon svg {
  opacity: 0.8;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  animation: pulse 2s infinite;
}

/* ガイドテキストは削除されました */

.guide-icon {
  font-size: 24px;
  animation: bounce 1.5s infinite;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  height: 100%;
  width: 100%;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

/* ロゴコンテナ */
.logo-container {
  display: block;
  margin: 0 auto 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 5;
}

.logo-container:hover {
  transform: scale(1.05);
}

.fv-logo {
  max-width: 50%; /* ロゴサイズを半分に減らす */
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* 404エラー非表示 */
pre {
  display: none;
}

/* TOPページでパンくずリストエリアを完全に非表示 */
body.home #breadcrumb-container {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* パーティクル表示のためのスタイル調整 */
.particle-text-hint {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
  margin: 10px 0;
  font-style: italic;
}

.main-logo {
  width: 100%;
  height: auto;
  max-height: 50px;
  object-fit: contain;
}

.hero-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 1s;
}

.main-copy {
  font-size: 4.2rem;
  font-weight: 200; /* さらに華奢なフォント */
  line-height: 1.3;
  margin-bottom: 30px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.14em; /* 文字間隔をさらに広く */
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.sub-copy {
  font-size: 1.5rem; /* フォントサイズを下げる */
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.04em; /* 文字間隔を広く */
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 40px;
  justify-content: flex-end; /* 右寄せに変更 */
}

/* インタラクションガイド */
.interaction-guide {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1; /* 最初から表示 */
  z-index: 10;
  transition: opacity 0.5s ease;
}

.tap-icon {
  margin-bottom: 10px;
}

.pulse-animation {
  animation: pulse 1.5s infinite;
}

.guide-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* アニメーション */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* サービス紹介 */
/* サービスセクション背景スタイル調整 */
.services-section {
  position: relative;
  background: white; /* 背景を白に戻す */
  z-index: 2;
}

/* サービスセクション内の要素のスタイルを元に戻す */
.services-section .container,
.services-section .section-header {
  background: white;
}

/* サービスセクションオーバーレイは削除 */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
  z-index: 3; /* グリッドを前面に */
}

/* サービスカードのスタイル */
.service-card {
  background-color: white; /* 背景を白に戻す */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-duration), box-shadow var(--transition-duration);
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  z-index: 3;
}

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

.service-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-duration);
}

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

.service-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 20px 0 15px;
  color: var(--color-primary);
  padding: 0 20px;
}

.service-description {
  color: var(--color-text-light);
  margin-bottom: 20px;
  padding: 0 20px 20px;
}

/* 制作実績 */
.works-section {
  background-color: var(--color-bg-light);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.work-item {
  background-color: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-duration), box-shadow var(--transition-duration);
}

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

.work-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-duration);
}

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

.work-category {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--color-accent);
  color: white;
  padding: 5px 15px;
  font-weight: 500;
  font-size: 1.4rem;
  z-index: 2;
}

.work-content {
  padding: 20px;
}

.work-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--color-primary);
}

/* 選ばれる理由 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.feature-card {
  background-color: var(--color-bg);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-duration);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background-color: rgba(154, 0, 0, 0.1);
  border-radius: 50%;
}

.feature-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-primary);
}

.feature-description {
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* 制作の流れ */
.process-section {
  background-color: var(--color-bg-light);
}

.process-timeline {
  max-width: 800px;
  margin: 0 auto 40px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background-color: var(--color-border);
}

.process-step {
  position: relative;
  padding-left: 70px;
  padding-bottom: 40px;
}

.process-step:last-child {
  padding-bottom: 0;
}

.step-number {
  position: absolute;
  left: 0;
  width: 50px;
  height: 50px;
  background-color: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  z-index: 1;
}

.step-content {
  background-color: var(--color-bg);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.step-description {
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* よくある質問 */
.faq-list {
  max-width: 800px;
  margin: 0 auto 40px;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  background-color: var(--color-bg);
  padding: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-primary);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background-color: var(--color-accent);
  transition: transform var(--transition-duration);
}

.faq-toggle::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-toggle::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item.active .faq-toggle::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  background-color: var(--color-bg-light);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-duration), padding var(--transition-duration);
}

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

/* メディアクエリ */
@media (max-width: 992px) {
  .hero {
    padding: 60px 0;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  /* スマホ用背景画像に切り替え */
  .hero-bg {
    background-image: url('../images/corporate_fv-background-sp.webp') !important;
    background-position: center top;
  }
  
  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .works-slider {
    grid-template-columns: 1fr;
  }
  
  .process-step {
    padding-left: 60px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
  
  .faq-question h3 {
    font-size: 1.6rem;
  }
}

.pc-only {
  display: inline-block;
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
}
