/* プロジェクト専用CSS - 他のCSSとの競合を避ける */

.project-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  border: 2px solid #e0e0e0;
  height: fit-content;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: #7f7fff;
}

.project-card .img-box {
  text-align: center;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  width: 100%;
  flex-shrink: 0;
}

.project-card .img-box img {
  max-width: 80px;
  max-height: 80px;
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.project-card .detail-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card .detail-box h4 {
  color: #7f7fff;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
  flex-shrink: 0;
}

.project-card .detail-box p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
  flex: 1;
}

/* プロジェクト画像のスタイリング */
.project-card .detail-box img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* 同じ行のカードを同じ高さにする */
.row.align-items-stretch .col-md-6,
.row.align-items-stretch .col-lg-4 {
  display: flex;
}

.row.align-items-stretch .col-md-6 .box,
.row.align-items-stretch .col-lg-4 .box {
  width: 100%;
  display: flex;
}

.row.align-items-stretch .col-md-6 .project-card,
.row.align-items-stretch .col-lg-4 .project-card {
  width: 100%;
  height: 100%;
}

.project-card .project-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  flex-shrink: 0;
}

/* プロジェクトボタンのスタイル */
.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: white !important;
}

.github-btn {
  background-color: #7f7fff;
  color: white !important;
}

.github-btn:hover {
  background-color: #6b6bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(127, 127, 255, 0.4);
  color: white !important;
  text-decoration: none;
}

.private-btn {
  background-color: #6c757d;
  color: #dee2e6 !important;
  cursor: not-allowed;
}

.private-btn:hover {
  background-color: #6c757d;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #dee2e6 !important;
}

.private-btn:disabled {
  opacity: 0.6;
}

/* 競合を確実に打ち消す */
.treatment_section .box .project-card .img-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  height: 100px !important;
  width: 100% !important;
}

.treatment_section .box .project-card .img-box img {
  position: static !important;     /* これがポイント */
  top: auto !important;
  left: auto !important;
  transform: none !important;
  display: block !important;
  width: 80px !important;
  height: 80px !important;
  max-width: 80px !important;
  max-height: 80px !important;
  object-fit: contain !important;
  margin: 0 !important;
}

/* テンプレの width: 250px を確実に上書き */
.treatment_section .box .project-card .img-box {
  width: 100% !important;
  max-width: none !important;
  min-width: auto !important;
}
