/* =================================
   作品詳細ページ
================================= */

.work-detail {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* パンくずリスト */

.breadcrumb {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 40px;
}

.breadcrumb a {
  color: #285c50;
  text-decoration: none;
}

/* 作品タイトル */

.work-header {
  margin-bottom: 32px;
}

.work-header h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.4;
  margin: 12px 0;
  color: #243833;
}

.work-label {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #285c50;
  font-weight: bold;
}

.work-author {
  font-size: 1.1rem;
  color: #666;
}

/* メイン画像 */

.work-main-image {
  width: 100%;
  background: #eee;
  margin-bottom: 32px;
}

.work-main-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* プレイボタン */

.play-button {
  display: block;
  max-width: 400px;
  margin: 32px auto;
  padding: 18px 24px;
  text-align: center;
  background: #285c50;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s;
}

.play-button:hover {
  background: #397d73;
}

/* 各セクション */

.work-section {
  margin: 56px 0;
}

.work-section h2 {
  font-size: 1.5rem;
  color: #285c50;
  border-bottom: 1px solid #c8d5cf;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.work-section p {
  line-height: 1.9;
}

/* スクリーンショット */

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.screenshot-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 制作情報 */

.work-spec {
  display: grid;
  grid-template-columns: 150px 1fr;
  margin-top: 32px;
}

.work-spec dt,
.work-spec dd {
  padding: 16px 12px;
  margin: 0;
  border-bottom: 1px solid #ddd;
}

.work-spec dt {
  color: #285c50;
  font-weight: bold;
  background: #edf1ed;
}

/* 前後の作品へのリンク */

.work-page-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid #ccc;
}

.work-page-nav a {
  color: #285c50;
  text-decoration: none;
}

.work-page-nav a:hover {
  text-decoration: underline;
}

/* 動画の埋め込み */

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-container iframe,
.video-container video {
  width: 100%;
  height: 100%;
  border: none;
}

/* スマートフォン対応 */

@media screen and (max-width: 600px) {

  .work-detail {
    padding: 24px 16px 48px;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .work-spec {
    grid-template-columns: 100px 1fr;
  }

  .work-section {
    margin: 40px 0;
  }
}
