@charset "utf-8";

/* ========================================
   Projectページ - FV
======================================== */
.project_fv {
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--color-dark-bg);
  padding: 140px 0 60px;
  overflow: hidden;
}

@media (min-width: 1080px) {
  .project_fv {
    max-height: 600px;
    padding: 180px 0 80px;
  }
}

.project_fv_video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
}

.project_fv_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.project_fv .l_container {
  position: relative;
  z-index: 3;
}

.project_fv .m_section_header {
  text-align: left;
  margin: 0 auto 80px 0;
  width: fit-content;
}

.project_fv .m_section_title {
  color: var(--color-text-light);
}

.project_fv .m_section_title--highlight {
  color: var(--color-red);
}

.project_fv .m_section_line {
  background: var(--color-accent);
}

.project_fv .m_section_subtitle {
  color: var(--color-accent);
}

/* ========================================
   Projectページ - Result Title
======================================== */
.project_result_title {
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
}

@media (min-width: 1080px) {
  .project_result_title {
    padding: 80px 0 60px;
  }
}

/* ========================================
   Projectページ - Filter
======================================== */
.project_filter {
  background: linear-gradient(180deg, #f0f0f0 0%, #fafafa 100%);
  padding: 0 0 var(--spacing-xl);
}

.project_filter_list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: left;
}

.project_filter_btn {
  padding: 16px;
  background: transparent;
  border: 2px solid var(--color-accent);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-black);
  cursor: pointer;
  transition: all 0.3s;
}

@media (min-width: 1080px) {
  .project_filter_btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

.project_filter_btn:hover,
.project_filter_btn.is-active {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ========================================
   Projectページ - Projects Grid
======================================== */
.project_grid_section {
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
  padding-bottom: var(--section-padding-sp);
}

@media (min-width: 1080px) {
  .project_grid_section {
    padding-bottom: var(--section-padding-pc);
  }
}

.project_grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

@media (min-width: 601px) {
  .project_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
}

@media (min-width: 1080px) {
  .project_grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.project_card {
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.project_card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project_card_image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.project_card_image img,
.project_card_image video {
  width: 100%;
  height: 100%;
  transition: transform 0.4s;
}

.project_card_image img {
  object-fit: contain;
  background: #f5f5f5;
}

.project_card_image video {
  object-fit: cover;
}

.project_card:hover .project_card_image img,
.project_card:hover .project_card_image video {
  transform: scale(1.1);
}

.project_card_content {
  padding: var(--spacing-sm);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project_card_tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
}

.project_card_client {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1.4;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
  padding: 0 16px;
  border-left: 3px solid var(--color-accent);
}

@media (min-width: 1080px) {
  .project_card_client {
    font-size: 1.4rem;
  }
}

.project_card_category {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.project_card_text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
  flex: 1;
}

/* フィルター機能 */
.project_card_link.is-hidden {
  display: none;
}

.project_card_link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project_card_link .project_card {
  cursor: pointer;
}

.project_card_link:hover .project_card {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================
   動画ポップアップ
======================================== */
.video_popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 20px;
  overflow-y: auto;
}

.video_popup_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.video_popup_content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  z-index: 10000;
  margin: auto;
}

.video_popup_content video,
.video_popup_content img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  display: block;
  object-fit: contain;
}

.video_popup_close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  transition: opacity 0.3s;
}

.video_popup_close:hover {
  opacity: 0.7;
}
