/* =========================================================
   concept.css - コンセプト（/concept ページとトップの CONCEPT）
   - 見出し・MORE・コンテナ幅・パンくずは既存の common.css / list.css をそのまま使う
   - 色はテーマ変数（--text-primary / --text-secondary / --border / --accent）だけを使い、
     テンプレート（pink / blue / black など）が変わっても馴染むようにする
   - 背景色・カード枠・影は付けない（既存の固定ページと同じく地の上に置く）
   ========================================================= */

/* ----- ページ（/concept） ----- */
.pcu95front .concept-page__header {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.pcu95front .concept-page__list {
  display: flex;
  flex-direction: column;
}

.pcu95front .concept-page__empty-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* ----- 1 件分（ページ・トップ共通） ----- */
.pcu95front .concept-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-width: 0;
}

.pcu95front .concept-item--page {
  padding-block: clamp(32px, 5vw, 64px);
}

.pcu95front .concept-item--page:first-child {
  padding-top: 0;
}

.pcu95front .concept-item--page:last-child {
  padding-bottom: 0;
}

.pcu95front .concept-item--page + .concept-item--page {
  border-top: 1px solid var(--border, #e5e7eb);
}

.pcu95front .concept-item__media {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.pcu95front .concept-item__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md, 12px);
}

.pcu95front .concept-item__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius-md, 12px);
}

.pcu95front .concept-item__text {
  min-width: 0;
}

.pcu95front .concept-item__title {
  margin: 0 0 16px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--text-primary, #111827);
  overflow-wrap: anywhere;
}

.pcu95front .concept-item__title::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 12px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--accent, #e8919f);
}

.pcu95front .concept-item__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--text-secondary, #4b5563);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* テキストだけ: 50% に固定せず、読みやすい幅の 1 カラム */
.pcu95front .concept-item--text-only .concept-item__text {
  width: 100%;
  max-width: min(48rem, 100%);
  margin-inline: auto;
}

/* 画像・動画だけ: 大きくなりすぎない幅で中央 */
.pcu95front .concept-item--media-only .concept-item__media {
  width: 100%;
  max-width: min(56rem, 100%);
  margin-inline: auto;
}

.pcu95front .concept-item--media-only .concept-item__image {
  aspect-ratio: 16 / 9;
}

/* ----- トップ（CONCEPT section） ----- */
.pcu95top .concept-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 50px 0 50px;
}

.pcu95top .concept-section__list {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: clamp(36px, 5vw, 56px);
}

.pcu95front .concept-item--top .concept-item__title {
  margin-bottom: 12px;
  font-size: clamp(17px, 1.8vw, 20px);
}

.pcu95front .concept-item--top .concept-item__body {
  font-size: 14px;
  line-height: 1.9;
}

/* ----- ページ（/concept）: PC でも 1 カラム（画像・動画 → タイトル → 本文） -----
   - 幅は既存の読み物の幅（アクセス・求人のリードと同じ 56rem = 896px）。.container（1200px）の中で中央
   - 画像は元の縦横比のまま（切り抜かない）。横長は幅いっぱい、縦長は高さを抑えて中央
   - 本文は読みやすい行長（45rem = 720px、FAQ のリードと同じ）で左揃え
   - トップ（concept-item--top）には当てない */
.pcu95front .concept-page__list {
  width: 100%;
  max-width: min(56rem, 100%);
  margin-inline: auto;
}

.pcu95front .concept-item--page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(24px, 3vw, 36px);
  padding-block: clamp(48px, 7vw, 96px);
}

.pcu95front .concept-item--page .concept-item__media {
  width: 100%;
  max-width: none;
  align-items: center;
}

.pcu95front .concept-item--page .concept-item__image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(75vh, 640px);
  aspect-ratio: auto;
  object-fit: contain;
}

/* 元画像の寸法が分かるとき: 縦横比を保ち、幅は「コンテンツ幅・元画像の幅・高さ上限から決まる幅」の最小。
   読み込み前から枠が決まるので、遅延読み込みでもレイアウトがずれない */
.pcu95front .concept-item--page .concept-item__image--sized {
  width: min(100%, var(--concept-image-natural-width), calc(var(--concept-image-ratio) * min(75vh, 640px)));
  max-height: none;
  aspect-ratio: var(--concept-image-ratio);
}

.pcu95front .concept-item--page .concept-item__text {
  width: 100%;
  max-width: min(45rem, 100%);
  margin-inline: auto;
}

.pcu95front .concept-item--page .concept-item__body {
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.03em;
}

/* ----- トップ CONCEPT: 全幅 1 カラム。横幅は既存 TOP の .container（--container-max: 1200px）に合わせる -----
   PLAY NOW 等と同じ左右端。本文は左揃え。
   - 画像: container より大きければ container 幅いっぱい、小さければ元サイズのまま中央（拡大しない）。
     高さ（vh）から幅を決める上限は付けない（1300px の画像が 836px で止まって左に寄っていたため）。
     縦長の画像だけは高さ 720px まで（下の --portrait）
   - 動画: 共通の .concept-item__video（幅 100%・16:9）のまま。高さで幅を絞らない
   - 1 件ごとに「画像・動画 + タイトル + 本文」を 1 枚のカードにまとめる（地はテーマのカード面、枠はアクセント色をごく薄く）。
     カード同士は一覧の gap で離す */
.pcu95front .concept-item--top {
  /* カードの地: 各テーマのカード面（赤 --red-surface / 白系 --white-surface / 黒 --black-surface）。無いテーマは白 */
  --concept-card-surface: var(--red-surface, var(--white-surface, var(--black-surface, #ffffff)));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  background: var(--concept-card-surface);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 14px 32px -26px rgba(17, 24, 39, 0.22);
}

/* 画像・動画はカード上部いっぱい。角はカードの角丸（overflow: hidden）で揃える */
.pcu95front .concept-item--top .concept-item__media {
  width: 100%;
  max-width: none;
  align-items: center;
}

.pcu95front .concept-item--top .concept-item__image,
.pcu95front .concept-item--top .concept-item__video {
  border-radius: 0;
}

/* 枠線はテーマのアクセント色をごく薄く（color-mix 非対応のブラウザは上の --border のまま） */
@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .pcu95front .concept-item--top {
    border-color: color-mix(in srgb, var(--accent, #e8919f) 16%, transparent);
  }

  .pcu95front .concept-item--top .concept-item__media {
    background: color-mix(in srgb, var(--accent, #e8919f) 5%, var(--concept-card-surface));
  }
}

.pcu95front .concept-item--top .concept-item__image {
  width: auto;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

/* 元画像の寸法が分かるとき: 幅は「container 幅・元画像の幅」の小さいほう。image_width / image_height は
   縦横比と読み込み前の枠の確保に使い、それ以外の上限には使わない */
.pcu95front .concept-item--top .concept-item__image--sized {
  width: min(100%, var(--concept-image-natural-width));
  aspect-ratio: var(--concept-image-ratio);
}

/* 縦長（image_height > image_width）の画像だけ: 高さを 720px までに抑える（縦横比維持・中央）。
   幅は「container 幅・元画像の幅・高さ 720px から決まる幅」の最小（読み込み前から枠が決まる）。
   横長・正方形の画像には付けない（ConceptItem がトップの縦長にだけ --portrait を付ける） */
.pcu95front .concept-item--top .concept-item__image--portrait {
  width: min(100%, var(--concept-image-natural-width), calc(var(--concept-image-ratio) * 720px));
  max-width: 100%;
  max-height: 720px;
  margin-inline: auto;
}

.pcu95front .concept-item--top .concept-item__text {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  box-sizing: border-box;
  /* 左右の余白は「最低 48px」か「本文を 800px 幅にする余白」の大きいほう → 本文は最大 800px で中央 */
  padding: clamp(28px, 3.4vw, 44px) max(48px, calc((100% - 800px) / 2)) clamp(32px, 3.8vw, 52px);
  text-align: left;
}

/* タイトル: 下線をやめ、左に短いアクセントライン */
.pcu95front .concept-item--top .concept-item__title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pcu95front .concept-item--top .concept-item__title::before {
  content: '';
  flex: 0 0 3px;
  height: 1.1em;
  margin-top: 0.2em;
  border-radius: 2px;
  background: var(--accent, #e8919f);
}

.pcu95front .concept-item--top .concept-item__title::after {
  content: none;
}

/* ----- SP: 縦積み（画像・動画 → タイトル → 本文）。/concept はどの幅でもこの順 ----- */
@media (max-width: 768px) {
  .pcu95front .concept-item__body {
    font-size: 14px;
    line-height: 1.85;
  }

  .pcu95front .concept-item__title {
    margin-bottom: 12px;
  }

  .pcu95front .concept-item--page .concept-item__body {
    font-size: 14px;
    line-height: 1.95;
  }

  .pcu95top .concept-section {
    padding: 48px 0 36px;
  }

  .pcu95front .concept-item--top {
    border-radius: 14px;
  }

  .pcu95front .concept-item--top .concept-item__text {
    padding: 24px 22px 28px;
  }
}

@media (max-width: 480px) {
  .pcu95top .concept-section {
    padding: 40px 0 32px;
  }

  .pcu95front .concept-item--top .concept-item__text {
    padding: 20px 18px 24px;
  }
}
