@charset "UTF-8";
/* CSS Document */

/* ============================
   WORKSページ専用CSS
============================ */

/* === セクション全体 === */
.section-works-detail {
  width: 85%; /* 横幅85%でセンタリング */
  margin: 30px auto; /* 上下30px、左右中央 */
}

/* === セクションタイトル共通設定 === */
.section-title {
  font-family: "ads-strong", sans-serif;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 8px 0;
  border-radius: 24px;
  margin: 0 auto 40px;
  width: 100%;
  display: block;
  color: white;
}

/* === WORKSページのタイトルだけ背景色を指定 === */
.section-title--works {
  background-color: #FFB828;
  margin-bottom: 5px;
}

/* === リード文（説明文） === */
.works-lead {
  font-family: sans-serif;
  font-weight: normal;
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 40px;
}

/* === 各案件の外枠（上下ボーダーつき） === */
.works-detail-wrap {
  border-bottom: 1px solid #ccc;
  padding: 60px 0;
}
.works-detail-wrap:first-of-type {
  border-top: 1px solid #ccc;
}

/* === 案件の並び全体（横並び or 縦並び） === */
.works-detail {
  display: flex;
  gap: 40px;
  align-items: stretch;
  flex-wrap: nowrap;
  min-width: 0;
}

/* === 左：画像エリア === */
.works-detail__image-box {
  background-color: #F4F4F4;
  aspect-ratio: 1 / 1;
  flex: 0 0 clamp(300px, 40vw, 500px); /* 横幅は画面サイズに応じて調整 */
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* === 中の画像自体（最大90%サイズで中央） === */
.works-detail__image-box img {
  max-width: 90%;
  max-height: 90%;
  height: auto;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* === 影を消したい画像用 === */
.works-detail__image-box img.no-shadow {
  box-shadow: none;
}

/* === 右：テキストエリア === */
.works-detail__text {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: sans-serif;
  position: relative;
  min-width: 0;
}

/* === 上部の情報（見出し・タグなど） === */
.works-detail__text-upper {
  padding-right: 0;
}

.works-detail__text h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 6px;
}

/* === 発売日などの補足情報 === */
.works-detail__date {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

/* === タグ表示（カテゴリー） === */
.works-detail__tags {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.works-detail__tags li {
  background-color: #FFA31E;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 24px;
  font-weight: bold;
}

/* === 下部リンクエリア（公式リンクなど） === */
.works-detail__text-lower {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  padding: 0;
  background: none;
  box-sizing: border-box;
}

/* === 公式リンクボタン（外部ページへ） === */
.official-link {
  display: block;
  width: 100%;
  background-color: #666;
  color: white;
  font-size: 14px;
  padding: 4px 20px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  text-align: center;
  box-sizing: border-box;
}
.official-link:hover {
  background-color: #444;
}

/* === 著作情報（任意） === */
.works-detail__credit {
  color: #666;
}
.works-detail__credit a {
  color: #666;
}
.works-detail__credit a:hover {
  color: #ff9900;
}

/* コピーライト */
.works-detail__copyright {
  font-family: "Arial", "Helvetica Neue", sans-serif; 
  font-size: 14px;
  color: #666;
  margin-top: -15px;
  margin-bottom: 16px;
}

/* === ページネーション（下部ページ送り） === */
.pagination {
  text-align: center;
  margin: 40px 0 20px;
}
.pagination ul {
  display: inline-flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #f2f2f2;
  color: #555;
  text-decoration: none;
  font-size: 13px;
  font-family: sans-serif;
  transition: background-color 0.3s, color 0.3s;
  box-sizing: border-box;
}
.pagination a.number {
  padding-top: 1px;
}
.pagination a.arrow span {
  transform: translateY(-1px);
  display: inline-block;
}
.pagination a:hover,
.pagination a.active {
  background-color: #FFA31E;
  color: #fff;
}
.pagination .arrow.disabled {
  pointer-events: none;
  color: #ccc;
}

/* ============================
   スマホ向けのレスポンシブ調整
============================ */
@media screen and (max-width: 768px) {
	
.section-works-detail {
  width: 100%; 
}
	
  .works-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .works-detail__image-box {
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
  }

  .works-detail__text {
    width: 100%;
    max-width: 500px;
    padding: 0 16px;
    text-align: left;
  }

  .works-detail__text-upper {
    text-align: left;
    padding: 0;
  }

  .works-detail__text h3 {
    margin-bottom: 4px;
  }

  .works-detail__text-lower {
    position: static;
    width: 100%;
    text-align: center;
    margin-top: 24px;
    padding: 0;
  }

  .official-link {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}