@charset "utf-8";
/* =========================================================
   ESJ 2026改修：未確定箇所のプレースホルダー／ウォーターマーク
   ---------------------------------------------------------
   本番公開前に全部消えていること。残っていれば未完了の印。
   確認: ページ内検索で「PH-」を探すか、?esj_ph=off で一時的に隠せる。
   ========================================================= */

.esj_ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 260px;
  margin: 24px 0 40px;
  padding: 34px 24px 28px;
  box-sizing: border-box;
  border-radius: 8px;
  text-align: center;
  overflow: hidden;
}

/* 斜めストライプのウォーターマーク地 */
.esj_ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(0, 0, 0, .05) 0,
    rgba(0, 0, 0, .05) 12px,
    transparent 12px,
    transparent 26px
  );
  pointer-events: none;
}

/* 中央に薄く透ける大きな文字 */
.esj_ph::after {
  content: attr(data-watermark);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-size: clamp(24px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: .12em;
  white-space: nowrap;
  opacity: .13;
  pointer-events: none;
  line-height: 1;
}

.esj_ph > * { position: relative; z-index: 1; }

/* ID バッジ（後から「PH-03を直して」と指示できるようにする） */
.esj_ph .ph_id {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 9px;
  border-radius: 4px;
  color: #fff;
}

/* ステータスバッジ */
.esj_ph .ph_status {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid currentColor;
}

.esj_ph .ph_label {
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.esj_ph .ph_note {
  font-size: 14px;
  line-height: 1.85;
  max-width: 760px;
  margin: 0 auto;
}

.esj_ph .ph_note b { font-weight: 700; }

.esj_ph .ph_wait {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .75);
}

/* --- 状態別の配色 ------------------------------------- */

/* 作成待ち（クロスライン側で作る）: グレー */
.esj_ph.is_making {
  background: #ececec;
  border: 2px dashed #b3b3b3;
  color: #7a7a7a;
}
.esj_ph.is_making .ph_id { background: #8a8a8a; }
.esj_ph.is_making .ph_label { color: #5f5f5f; }

/* 先方素材待ち（ESJからの支給を待つ）: オレンジ */
.esj_ph.is_waiting {
  background: #fff4e5;
  border: 2px dashed #e8a33d;
  color: #a86a12;
}
.esj_ph.is_waiting .ph_id { background: #e08a1e; }
.esj_ph.is_waiting .ph_label { color: #8f5a0d; }
.esj_ph.is_waiting .ph_wait { color: #8f5a0d; }

/* 既存物の修正待ち: 赤 */
.esj_ph.is_fix {
  background: #fdecea;
  border: 2px solid #e57373;
  color: #c1352a;
  min-height: 0;
}
.esj_ph.is_fix .ph_id { background: #d32f2f; }
.esj_ph.is_fix .ph_label { color: #b3261e; }
.esj_ph.is_fix img {
  display: block;
  margin: 16px auto 0;
  max-width: 100%;
  opacity: .9;
}

/* 位置・仕様の確認待ち（中身は実装済み。枠だけ注意喚起）: 青 */
.esj_ph.is_check {
  display: block;
  min-height: 0;
  text-align: left;
  background: #eaf4fb;
  border: 2px dashed #4a9ed4;
  color: #1a6699;
  padding-top: 40px;
}
.esj_ph.is_check::after { content: none; }
.esj_ph.is_check .ph_id { background: #1C81BF; }
.esj_ph.is_check .ph_label { color: #14567f; text-align: left; }
.esj_ph.is_check .ph_note { text-align: left; max-width: none; }
.esj_ph.is_check .ph_body {
  margin-top: 16px;
  padding: 20px;
  background: #fff;
  border-radius: 6px;
}

@media only screen and (max-width: 750px) {
  .esj_ph { min-height: 200px; padding: 40px 14px 22px; }
  .esj_ph .ph_note { font-size: 13px; }
  .esj_ph .ph_id,
  .esj_ph .ph_status { position: static; display: inline-block; margin: 0 4px 8px; }
}

/* ?esj_ph=off を付けたときにクライアント向けに隠す用 */
body.esj_ph_hidden .esj_ph { display: none !important; }
