/*---------------------------------------------------------------------*/
/*                                                                       */
/*              制作実績ページ用CSS  portfolio.css                       */
/*                                                                       */
/*---------------------------------------------------------------------*/


/* ========================================
   リード文
======================================== */
.portfolio-lead {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto 80px;
}

.portfolio-lead p {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #222;
  margin-bottom: 1em;
}


/* ========================================
   実績カードリスト
======================================== */
.portfolio-list {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}


/* ========================================
   実績カード（1件）
======================================== */
.portfolio-card {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  border-bottom: 1px solid #e9e9e9;
  padding-bottom: 60px;
}

.portfolio-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* 偶数番目は画像を右に */
.portfolio-card:nth-child(even) {
  flex-direction: row-reverse;
}


/* ========================================
   カード：画像エリア
======================================== */
.portfolio-card-image {
  flex: 0 0 420px;
  width: 420px;
}

.portfolio-card-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* 画像プレースホルダー */
.portfolio-card-image .img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}


/* ========================================
   カード：テキストエリア
======================================== */
.portfolio-card-body {
  flex: 1;
  min-width: 0;
}

.portfolio-card-number {
  font-family: "Alata", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: #aaa;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

.portfolio-card-body h3 {
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #222;
  margin-bottom: 20px;
  /* pWrap h3のスタイルを上書き */
  width: auto;
  max-width: none;
}

/* pWrap h3 の before をリセット（common.cssの影響を受けないように） */
.portfolio-card-body h3::before {
  display: none;
}

.portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.portfolio-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: #555;
}

.portfolio-meta-label {
  font-weight: 700;
  color: #1E587C;
  white-space: nowrap;
}

.portfolio-card-body p {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #444;
}

.portfolio-card-point {
  margin-top: 16px;
  padding: 16px 20px;
  background: #f5f8fb;
  border-left: 3px solid #1E587C;
  border-radius: 0 6px 6px 0;
}

.portfolio-card-point p {
  font-size: 0.95rem;
  color: #333;
  margin: 0;
}


/* ========================================
   カード：URLリンク
======================================== */
.portfolio-card-url {
  margin-top: 14px;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #888;
}

.portfolio-card-url a {
  color: #1E587C;
  text-decoration: underline;
  word-break: break-all;
}

.portfolio-card-url a:hover {
  color: #0e3a54;
  text-decoration: none;
}


/* ========================================
   デザイン制作実績
======================================== */
.design-works {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 50px;
  background: #f5f8fb;
  border-radius: 12px;
}

.design-works h4 {
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #222;
  margin-bottom: 16px;
}

.design-works h4::before {
  margin-top: .2em;
}

.design-works > p {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #555;
  margin-bottom: 28px;
}

.design-works-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.design-works-list li {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: #444;
  padding: 4px 14px;
  background: #fff;
  border: 1px solid #dde4ea;
  border-radius: 999px;
}


/* ========================================
   スマホ対応
======================================== */
@media (max-width: 767px) {

  .design-works {
    width: 90%;
    padding: 30px 24px;
    margin-bottom: 50px;
  }

  .design-works h4 {
    font-size: 1.05rem;
  }

  .design-works > p {
    font-size: 0.9rem;
    line-height: 1.9;
  }

  .design-works-list li {
    font-size: 0.85rem;
  }

  .portfolio-lead {
    width: 90%;
    margin-bottom: 50px;
  }

  .portfolio-lead p {
    font-size: 0.9rem;
    line-height: 1.9;
  }

  .portfolio-list {
    width: 90%;
    gap: 50px;
  }

  .portfolio-card,
  .portfolio-card:nth-child(even) {
    flex-direction: column;
    gap: 24px;
  }

  .portfolio-card-image {
    flex: none;
    width: 100%;
  }

  .portfolio-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
  }

  .portfolio-meta {
    gap: 6px 12px;
  }

  .portfolio-meta-item {
    font-size: 0.8rem;
  }

  .portfolio-card-body p {
    font-size: 0.9rem;
    line-height: 1.9;
  }

  .portfolio-card-point {
    padding: 14px 16px;
  }

  .portfolio-card-point p {
    font-size: 0.9rem;
  }

}
