/** 可変文字はローカル配信の丸ゴシックで統一。画像に描かれたロゴはそのまま使う。 */
@font-face {
  font-family: 'Zen Maru Gothic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('./assets/fonts/zen-maru-gothic-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Zen Maru Gothic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('./assets/fonts/zen-maru-gothic-700.woff2') format('woff2');
}
:root {
  --rounded: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
  --sans: var(--rounded);
  --serif: var(--rounded);
  --latin: var(--rounded);
}

/* 写真内の既存ラベルへ二段で印字する。最長アカウント名も紙の縁から離す。 */
.bag-label {
  left: 59.8%;
  top: 30%;
  width: 20.8%;
  height: 17%;
  max-width: 20.8%;
  max-height: 17%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8cqi;
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 3.1cqi;
  line-height: 1.2;
  text-align: center;
  transform: rotate(8deg);
  overflow: visible;
}
#bag-account {
  display: block;
  max-width: 100%;
  font-size: var(--bag-account-size, 3.1cqi);
  white-space: nowrap;
  overflow-wrap: normal;
  letter-spacing: 0;
}
#bag-weight {
  display: block;
  font-size: 3.2cqi;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* 画像の内枠に対して保存の文字を上下左右の中央に置く。 */
#save-toolbar,
#save-open {
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  padding-block: 0;
}
#save-open { display: flex; }
#save-toolbar { min-width: 72px; padding-inline: 18px; }
