@charset "UTF-8";

/* --- トップへ戻るリンク全体の設定 --- */
.home-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.home-link:hover {
  opacity: 0.7; /* ホバーで少し透けさせる */
  text-decoration: none;
}
/* ヘッダーのレイアウト自体は、style.cssの .site-header がそのまま適用されます！ */


/* --- サブページのタイトル（Portfolio / Works） --- */
.page-title-container {
  text-align: center;
  margin-bottom: 50px;
}

.page-title {
  font-family: "RocknRoll One", sans-serif;
  font-size: 1.3rem;
  border-left: none;
  padding-left: 0;
  margin-bottom: 5px;
  font-weight: normal;
  color: var(--text-main);
}

.page-subtitle {
  font-size: 0.9rem;
  color: var(--border-color);
  margin-top: 0;
}


/* --- カードレイアウト（1行1つ ＆ PC時は横長カード） --- */
.portfolio-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  margin-bottom: 60px;
}

.portfolio-card {
  background: #fffefb;
  border: 1px solid #eae6df;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
  border: 1px solid #eae6df;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (min-width: 600px) {
  .portfolio-card {
    flex-direction: row;
    gap: 25px;
  }
  
  .card-image {
    width: 260px;
    height: 100%;
    min-height: 200px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  background: #e6e2d8;
  color: var(--text-main);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  width: fit-content;
  font-weight: bold;
}

.portfolio-card h3 {
  font-family: "RocknRoll One", sans-serif;
  margin-top: 0;
  font-size: 1.2rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-weight: normal;
}

.portfolio-card p {
  font-size: 0.95rem;
  color: #4a5d4c;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.portfolio-link {
  text-align: right;
  margin-top: auto;
}

.portfolio-link a {
  font-size: 0.95rem;
  border: 1px solid var(--link-color);
  padding: 6px 18px;
  border-radius: 20px;
  background: transparent;
  display: inline-block;
}

.portfolio-link a:hover {
  background: var(--link-color);
  color: #fff;
  text-decoration: none;
}