#card {
  position: relative;
  width: 700px;
  height: 1000px;
  background: #eeeeee;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* 背景テンプレート */
#background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  touch-action: none;
}

/* アップロード写真エリア */
#photoArea {
  position: absolute;
  left: 0;
  top: 0;
  width: 700px;
  height: 1000px;
  overflow: hidden;
  z-index: 2;

  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;

  cursor: grab;
  user-select: none;
  touch-action: none;
}

#photoArea:active {
  cursor: grabbing;
}

/* フレーム */
#frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 3;
}

/* テキスト共通 */
.draggable {
  position: absolute;
  color: #ffffff;
  cursor: grab;
  user-select: none;
  white-space: pre-wrap;
  text-shadow: 3px 3px 8px rgba(0,0,0,.5);
  z-index: 4;
  touch-action: none;
}

.draggable.dragging {
  cursor: grabbing;
}

/* 名前 */
#nameText {
  left: 150px;
  top: 575px;
  font-size: 64px;
  font-weight: bold;
}

/* 職業 */
#jobText {
  left: 150px;
  top: 665px;
  font-size: 30px;
}

#subjobText {
  left: 150px;
  top: 705px;
  font-size: 18px;
}

/* 自己アピール */
#descText {
  left: 180px;
  top: 845px;
  width: 420px;
  font-size: 22px;
  line-height: 1.5;
}

/* 小さい画面でもカード比率を維持 */
@media (max-width: 900px) {
  #card {
    width: 700px;
    height: 1000px;
  }
}

#titleText {
  left: 45px;
  top: 70px;
  font-size: 54px;
  font-weight: bold;
  letter-spacing: .04em;
}

#worldText {
  left: 470px;
  top: 665px;
  width: 190px;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.4;
}

#copyrightText {
  left: 470px;
  top: 940px;
  font-size: 16px;
  z-index: 5;
}


body.bg-editing #background {
  cursor: grab;
  z-index: 4;
}

body.bg-editing #background:active {
  cursor: grabbing;
}

body.bg-editing #photoArea,
body.bg-editing .draggable {
  pointer-events: none;
}

body.bg-editing #frame {
  z-index: 5;
}
