/*
Theme Name: quiet-child
Template: quiet
*/

.portfolio-single {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin: 50px 0;
}

.portfolio-image {
  flex: 1;
  min-width: 200px;
  width: 100%;
}

.portfolio-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.portfolio-image .no-thumbnail {
    width: 100%;
    height: auto;             
    background-color: #eee;   
    border-radius: 8px;
    position: relative;       /* ::before の基準にする */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;          /* 適度な高さ確保 */
}

.portfolio-image .no-thumbnail::before {
    content: "NOW PRINTING";
    font-size: 18px;
    font-weight: bold;
    color: #999;
    position: absolute;       /* 親を基準に中央配置 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.portfolio-content {
  flex: 2;
  min-width: 200px;
  width: 100%;
  background: #fff;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 12px;
  
}

.portfolio-title {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.portfolio-description {
  margin-bottom: 20px;
}

.portfolio-tags {
  margin-bottom: 10px;
}

.portfolio-tag {
  display: inline-block;
  background: #eee;
  padding: 6px 12px;
  margin: 4px 4px 0 0;
  border-radius: 9999px;
  font-size: 0.9rem;
}

.portfolio-release {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .portfolio-single {
    flex-direction: column;
  }
}

/* グリッド */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* カード全体 */
.portfolio-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}

/* サムネイル */
.portfolio-card-image {
  width: 100%;
  aspect-ratio: 16/9; /* 横長比率 */
  overflow: hidden;
  position: relative;
  display: flex;
  background: #ccc; /* 枠の背景色 */
}

.portfolio-card-image .no-thumbnail::before {
    content: "NOW PRINTING";
    font-size: 18px;
    font-weight: bold;
    color: #999;
    position: absolute;       /* 親を基準に中央配置 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.portfolio-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* 上側を表示 */
}


/* タイトル */
.portfolio-card-title {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

/* ホバー時のオーバーレイ */
.portfolio-card-hover {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  background: rgba(0,0,0,0.25);
}

/* タグと詳細リンク */


.portfolio-card-detail {
  margin-top: auto;
  background: #fff;
  color: #000;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.9rem;
}

/* タグ丸ラベル */
.portfolio-tag {
  display: inline-block;
  background: #eee;
  padding: 4px 10px;
  margin: 4px 4px 0 0;
  border-radius: 9999px;
  font-size: 0.8rem;
}

/* ホバー時のアニメーション */
.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.05) translateY(-5px);
  filter: brightness(0.8);
}

.portfolio-card:hover .portfolio-card-hover {
  opacity: 1;
  pointer-events: auto;
}

/* 担当タグ */
.portfolio-card-tags {
  margin-bottom: 2px; /* 前後の余白を最小化 */
}

/* ジャンルタグ */
.portfolio-card-genres {
  margin-top: 0;    /* 上側の余白をなくす */
  margin-bottom: 0; /* 下側も不要なら0 */
}

.portfolio-filters .filter-btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid #ccc;
  background: #fff;        /* デフォルト白背景 */
  color: #000;             /* デフォルト文字色黒 */
  cursor: pointer;
  margin-right: 6px;
  transition: 0.2s;
}

.portfolio-filters .filter-btn.active {
  background: #cce4ff;     /* 押されたら薄い青 */
  color: #000;
  border-color: #999;
}