/* ========================================================
   B-HOOP CERTIFICATE STYLES v4
   - Gemini提案の全20種類テーマ完全網羅
   - カテゴリータブフィルター機能
   - A4完全規格（横297mm×210mm / 縦210mm×297mm）
   ======================================================== */

:root {
  --bg-dark: #0b0e14;
  --bg-panel: #141923;
  --bg-card: #1c2331;
  --border-color: #273346;
  --text-main: #f1f5f9;
  --text-sub: #94a3b8;
  --primary-accent: #f59e0b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* 操作パネル */
.control-panel {
  width: 470px;
  min-width: 430px;
  max-width: 490px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  z-index: 10;
  box-shadow: 4px 0 24px rgba(0,0,0,0.5);
}

.panel-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #1e2638 0%, #101522 100%);
  border-bottom: 1px solid var(--border-color);
}

.logo-badge {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-size: 0.76rem;
  color: var(--text-sub);
  margin-top: 3px;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 40px;
}
.panel-body::-webkit-scrollbar {
  width: 6px;
}
.panel-body::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.section-group {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.step-num {
  background: #f59e0b;
  color: #000;
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  border-radius: 50%;
}

.btn-text-action {
  background: none;
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-text-action:hover {
  background: rgba(245, 158, 11, 0.15);
}

/* カテゴリータブ */
.category-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.category-tabs::-webkit-scrollbar {
  height: 3px;
}
.tab-btn {
  background: #121722;
  border: 1px solid #283447;
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.tab-btn:hover {
  background: #1c2331;
  color: #fff;
}
.tab-btn.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
}

/* テーマ選択グリッド */
.theme-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 3px;
}
.theme-select-grid::-webkit-scrollbar {
  width: 4px;
}
.theme-select-grid::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.theme-card-btn {
  background: #131924;
  border: 1px solid #273549;
  border-radius: 8px;
  padding: 7px 8px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.2s;
}
.theme-card-btn:hover {
  background: #1b2333;
  border-color: #3b4d68;
}
.theme-card-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}
.theme-card-btn .t-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.theme-card-btn .t-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #f1f5f9;
}
.theme-card-btn.active .t-name {
  color: #fbbf24;
}
.theme-card-btn .t-desc {
  font-size: 0.63rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* フォーム部品 */
.form-row {
  margin-bottom: 9px;
}
.form-row.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-bottom: 4px;
  font-weight: 600;
}

.label-with-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.hint-tag {
  font-size: 0.68rem;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  padding: 2px 5px;
  border-radius: 4px;
}

.form-control {
  width: 100%;
  background: #121722;
  border: 1px solid #283447;
  border-radius: 6px;
  padding: 6px 8px;
  color: #fff;
  font-size: 0.82rem;
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: #f59e0b;
}
.form-control.bold-input {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fde047;
}

.body-textarea {
  resize: vertical;
  line-height: 1.45;
  font-family: inherit;
  font-size: 0.8rem;
}

/* トグルボタン */
.orientation-switch {
  display: flex;
  gap: 5px;
}
.btn-toggle {
  flex: 1;
  padding: 6px 3px;
  background: #131924;
  border: 1px solid #273549;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.btn-toggle.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
}

/* 賞プリセット */
.award-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 7px;
}
.preset-badge {
  background: #131924;
  border: 1px solid #273549;
  color: #e2e8f0;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  white-space: nowrap;
}
.preset-badge:hover {
  background: #1f2838;
}
.preset-badge.active {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  border-color: #f59e0b;
}

/* アクションボタン */
.action-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
}
.btn-action {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-print {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.btn-print:hover {
  filter: brightness(1.1);
}
.btn-image {
  background: #232c3c;
  color: #fff;
  border: 1px solid #364459;
}
.btn-image:hover {
  background: #2b374a;
}

/* ========================================================
   プレビュー領域
   ======================================================== */
.preview-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #080a0f;
  overflow: hidden;
}

.preview-toolbar {
  height: 46px;
  background: #10141e;
  border-bottom: 1px solid #1f2737;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  z-index: 5;
}

.preview-indicator {
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #22c55e;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 0.78rem;
}
.btn-sm {
  background: #18202d;
  border: 1px solid #2b3648;
  color: #cbd5e1;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
}

.preview-stage-wrapper {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at center, #131924 0%, #06080c 100%);
}

/* ========================================================
   A4賞状コンテナ（完全A4寸法：1123px × 794px）
   ======================================================== */
.certificate-container {
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.08);
  user-select: none;
  transform-origin: center center;
  overflow: hidden;
}

.certificate-container.landscape {
  width: 1123px;
  height: 794px;
  min-width: 1123px;
  min-height: 794px;
}

.certificate-container.portrait {
  width: 794px;
  height: 1123px;
  min-width: 794px;
  min-height: 1123px;
}

.cert-theme-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.cert-watermark-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  opacity: 0.07;
}
.cert-watermark-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 9.5rem;
  letter-spacing: 0.05em;
  line-height: 0.85;
}
.cert-watermark-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  letter-spacing: 0.35em;
  margin-top: -10px;
}

.cert-frame-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.cert-frame-layer svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cert-content {
  position: relative;
  z-index: 6;
  height: 100%;
  width: 100%;
}

/* 横書き */
.mode-horizontal .layout-horizontal-view {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 65px 95px 55px;
  text-align: center;
}
.mode-horizontal .layout-vertical-view {
  display: none !important;
}

.cert-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.cert-badge-kanji,
.cert-award-title,
.cert-recipient-name,
.cert-recipient-honor,
.cert-body,
.cert-date,
.cert-organizer,
.v-certificate-word,
.v-main-title,
.v-recipient-name,
.v-recipient-honor,
.v-body-col,
.v-date-col,
.v-organizer-name {
  paint-order: stroke fill;
}
.cert-badge-kanji {
  font-family: 'Shippori Mincho', serif;
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 0.35em;
  margin-right: -0.35em;
  white-space: nowrap !important;
  display: inline-block;
}
.cert-award-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cert-award-sub {
  display: none !important;
}
.cert-award-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 3.45rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  line-height: 1.2;
}

.cert-recipient-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  margin: 8px 0;
}
.cert-recipient-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.cert-recipient-honor {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.6rem;
  font-weight: 800;
}

.cert-body {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.22rem;
  line-height: 2.05;
  font-weight: 700;
  max-width: 860px;
  margin: 0 auto;
  text-align: justify;
  text-justify: inter-ideograph;
  letter-spacing: 0.05em;
  white-space: pre-wrap;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 8px;
  padding: 0 10px;
}
.cert-date {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.cert-organizer-box {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cert-organizer {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: right;
  line-height: 1.4;
}

.cert-seal-stamp {
  width: 76px;
  height: 76px;
  border: 3.5px solid #dc2626;
  border-radius: 6px;
  padding: 4px;
  background: rgba(254, 242, 242, 0.4);
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(-2deg);
}
.stamp-inner {
  font-family: 'Shippori Mincho', serif;
  font-weight: 900;
  font-size: 0.72rem;
  line-height: 1.15;
  color: #dc2626;
  text-align: center;
  letter-spacing: 0.05em;
}

/* 縦書き */
.mode-vertical .layout-horizontal-view {
  display: none !important;
}
.mode-vertical .layout-vertical-view {
  display: flex;
  flex-direction: row-reverse;
  height: 100%;
  width: 100%;
  padding: 65px 90px 55px;
  box-sizing: border-box;
}
.layout-vertical-view .v-section {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: 'Shippori Mincho', serif;
}
.v-title-col {
  display: flex;
  align-items: center;
  margin-left: 20px;
}
.v-award-badge {
  display: none !important;
}
.v-certificate-word {
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: 0.4em;
}
.v-main-title {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  margin-top: 14px;
}
.v-recipient-col {
  display: flex;
  align-items: flex-start;
  margin: 0 26px 0 18px;
  padding-top: 35px;
}
.v-recipient-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.v-recipient-honor {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 14px;
}
.v-body-col {
  flex: 1;
  font-size: 1.25rem;
  line-height: 2.2;
  font-weight: 700;
  padding: 10px 15px;
  text-align: justify;
  letter-spacing: 0.1em;
  white-space: pre-wrap;
}
.v-date-col {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  display: flex;
  align-items: flex-end;
  padding-bottom: 15px;
  margin-right: 25px;
}
.v-organizer-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.v-organizer-name {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.vertical-stamp {
  margin-top: 10px;
}

/* ========================================================
   テーマ別スタイル（11〜20 ＋ 1〜10）
   ======================================================== */

/* ⚡ 提供画像そのまま：電光イナズマ＆サイバー */
.theme-cyber_lightning_real {
  background: #040914;
  color: #ffffff;
}
.theme-cyber_lightning_real .cert-content {
  padding: 34px 75px 28px 75px;
}
.theme-cyber_lightning_real .cert-header {
  gap: 0;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-cyber_lightning_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-cyber_lightning_real .cert-badge-kanji {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.3rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  white-space: nowrap;
  display: inline-block;
  color: #ffffff;
  paint-order: stroke fill;
  -webkit-text-stroke: 5px #020817;
  text-shadow:
    2.5px 2.5px 0 #020817, -2.5px -2.5px 0 #020817, 2.5px -2.5px 0 #020817, -2.5px 2.5px 0 #020817,
    0 2.5px 0 #020817, 0 -2.5px 0 #020817, 2.5px 0 0 #020817, -2.5px 0 0 #020817,
    0 0 18px #38bdf8, 0 0 38px #0284c7, 0 4px 12px rgba(0,0,0,0.9);
}
.theme-cyber_lightning_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
}
.theme-cyber_lightning_real .cert-award-sub {
  display: none !important;
}
.theme-cyber_lightning_real .cert-award-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.45rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  color: #fde047;
  paint-order: stroke fill;
  -webkit-text-stroke: 5px #020817;
  text-shadow:
    2.5px 2.5px 0 #020817, -2.5px -2.5px 0 #020817, 2.5px -2.5px 0 #020817, -2.5px 2.5px 0 #020817,
    0 2.5px 0 #020817, 0 -2.5px 0 #020817, 2.5px 0 0 #020817, -2.5px 0 0 #020817,
    0 0 18px rgba(245, 158, 11, 0.95), 0 0 36px rgba(234, 88, 12, 0.8), 0 4px 12px rgba(0,0,0,0.9);
}
/* 受賞者名（青島 チーム）を上に寄せて大きく配置 */
.theme-cyber_lightning_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-cyber_lightning_real .cert-recipient-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  paint-order: stroke fill;
  -webkit-text-stroke: 5.5px #020817;
  text-shadow:
    2.5px 2.5px 0 #020817, -2.5px -2.5px 0 #020817, 2.5px -2.5px 0 #020817, -2.5px 2.5px 0 #020817,
    0 2.5px 0 #020817, 0 -2.5px 0 #020817, 2.5px 0 0 #020817, -2.5px 0 0 #020817,
    0 0 20px #38bdf8, 0 0 45px #0284c7, 0 4px 14px rgba(0,0,0,0.95);
}
.theme-cyber_lightning_real .cert-recipient-honor {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #bae6fd;
  paint-order: stroke fill;
  -webkit-text-stroke: 4px #020817;
  text-shadow:
    2px 2px 0 #020817, -2px -2px 0 #020817, 2px -2px 0 #020817, -2px 2px 0 #020817,
    0 2px 0 #020817, 0 -2px 0 #020817, 2px 0 0 #020817, -2px 0 0 #020817,
    0 0 14px #0284c7;
}
/* 表彰本文（4行になってもゆったり読める大きなフォント） */
.theme-cyber_lightning_real .cert-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #ffffff;
  max-width: 820px;
  margin: 0 auto;
  paint-order: stroke fill;
  -webkit-text-stroke: 3.5px #020817;
  text-shadow:
    1.8px 1.8px 0 #020817, -1.8px -1.8px 0 #020817, 1.8px -1.8px 0 #020817, -1.8px 1.8px 0 #020817,
    0 1.8px 0 #020817, 0 -1.8px 0 #020817, 1.8px 0 0 #020817, -1.8px 0 0 #020817,
    0 2px 8px rgba(0,0,0,0.95), 0 0 16px rgba(56, 189, 248, 0.45);
}
/* 日付＆主催者名も大きく読みやすく */
.theme-cyber_lightning_real .cert-footer {
  margin-top: 18px;
}
.theme-cyber_lightning_real .cert-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #ffffff;
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: 3.5px #020817;
  text-shadow:
    1.8px 1.8px 0 #020817, -1.8px -1.8px 0 #020817, 1.8px -1.8px 0 #020817, -1.8px 1.8px 0 #020817,
    0 1.8px 0 #020817, 0 -1.8px 0 #020817, 1.8px 0 0 #020817, -1.8px 0 0 #020817,
    0 2px 6px rgba(0,0,0,0.95);
}
.theme-cyber_lightning_real .cert-organizer {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #ffffff;
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: 3.5px #020817;
  text-shadow:
    1.8px 1.8px 0 #020817, -1.8px -1.8px 0 #020817, 1.8px -1.8px 0 #020817, -1.8px 1.8px 0 #020817,
    0 1.8px 0 #020817, 0 -1.8px 0 #020817, 1.8px 0 0 #020817, -1.8px 0 0 #020817,
    0 2px 6px rgba(0,0,0,0.95);
}
/* サイバーテーマでは邪魔になる透かし文字と朱肉印を非表示 */
.theme-cyber_lightning_real .cert-watermark-container {
  display: none !important;
}
.theme-cyber_lightning_real .cert-seal-stamp {
  display: none !important;
}

/* 縦型A4（portrait）専用のサイバー＆電光イナズマ最適化レイアウト */
.certificate-container.portrait.theme-cyber_lightning_real .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-cyber_lightning_real .cert-header {
  margin-top: 5px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-cyber_lightning_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-cyber_lightning_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-cyber_lightning_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
/* 縦型A4でのフッター：1行目日付、2行目主催者の中央2段組配置（改行なし） */
.certificate-container.portrait .cert-footer,
.certificate-container.portrait.theme-cyber_lightning_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait .cert-organizer-box,
.certificate-container.portrait.theme-cyber_lightning_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-cyber_lightning_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-cyber_lightning_real .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}

/* 🐶 提供画像そのまま：キッズ＆動物フレンズ */
.theme-kids_animals_real {
  background: #ffffff;
  color: #291d17;
}
.theme-kids_animals_real .cert-content {
  padding: 34px 75px 28px 75px;
}
.theme-kids_animals_real .cert-header {
  gap: 0;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-kids_animals_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-kids_animals_real .cert-badge-kanji {
  font-family: 'Kaisei Decol', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 3.3rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  white-space: nowrap;
  display: inline-block;
  color: #ea580c;
  paint-order: stroke fill;
  -webkit-text-stroke: 6px #ffffff;
  text-shadow:
    2.5px 2.5px 0 #ffffff, -2.5px -2.5px 0 #ffffff, 2.5px -2.5px 0 #ffffff, -2.5px 2.5px 0 #ffffff,
    0 2.5px 0 #ffffff, 0 -2.5px 0 #ffffff, 2.5px 0 0 #ffffff, -2.5px 0 0 #ffffff,
    0 3px 10px rgba(234, 88, 12, 0.25);
}
.theme-kids_animals_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
}
.theme-kids_animals_real .cert-award-sub {
  display: none !important;
}
.theme-kids_animals_real .cert-award-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.45rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  color: #c2410c;
  paint-order: stroke fill;
  -webkit-text-stroke: 6px #ffffff;
  text-shadow:
    2.5px 2.5px 0 #ffffff, -2.5px -2.5px 0 #ffffff, 2.5px -2.5px 0 #ffffff, -2.5px 2.5px 0 #ffffff,
    0 2.5px 0 #ffffff, 0 -2.5px 0 #ffffff, 2.5px 0 0 #ffffff, -2.5px 0 0 #ffffff,
    0 3px 10px rgba(194, 65, 12, 0.25);
}
.theme-kids_animals_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-kids_animals_real .cert-recipient-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #1c1917;
  paint-order: stroke fill;
  -webkit-text-stroke: 6px #ffffff;
  text-shadow:
    2.5px 2.5px 0 #ffffff, -2.5px -2.5px 0 #ffffff, 2.5px -2.5px 0 #ffffff, -2.5px 2.5px 0 #ffffff,
    0 2.5px 0 #ffffff, 0 -2.5px 0 #ffffff, 2.5px 0 0 #ffffff, -2.5px 0 0 #ffffff,
    0 0 14px #ffffff, 0 0 22px #ffffff;
}
.theme-kids_animals_real .cert-recipient-honor {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #44403c;
  paint-order: stroke fill;
  -webkit-text-stroke: 5px #ffffff;
  text-shadow:
    2px 2px 0 #ffffff, -2px -2px 0 #ffffff, 2px -2px 0 #ffffff, -2px 2px 0 #ffffff,
    0 2px 0 #ffffff, 0 -2px 0 #ffffff, 2px 0 0 #ffffff, -2px 0 0 #ffffff,
    0 0 12px #ffffff;
}
.theme-kids_animals_real .cert-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #1c1917;
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1.5px solid rgba(251, 146, 60, 0.35);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), inset 0 0 12px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  paint-order: stroke fill;
  -webkit-text-stroke: 4px #ffffff;
  text-shadow:
    1.8px 1.8px 0 #ffffff, -1.8px -1.8px 0 #ffffff, 1.8px -1.8px 0 #ffffff, -1.8px 1.8px 0 #ffffff,
    0 1.8px 0 #ffffff, 0 -1.8px 0 #ffffff, 1.8px 0 0 #ffffff, -1.8px 0 0 #ffffff,
    0 0 10px #ffffff;
}
.theme-kids_animals_real .cert-footer {
  margin-top: 18px;
}
.theme-kids_animals_real .cert-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #1c1917;
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: 4.5px #ffffff;
  text-shadow:
    2px 2px 0 #ffffff, -2px -2px 0 #ffffff, 2px -2px 0 #ffffff, -2px 2px 0 #ffffff,
    0 2px 0 #ffffff, 0 -2px 0 #ffffff, 2px 0 0 #ffffff, -2px 0 0 #ffffff,
    0 0 12px #ffffff, 0 0 18px #ffffff;
}
.theme-kids_animals_real .cert-organizer {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #1c1917;
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: 4.5px #ffffff;
  text-shadow:
    2px 2px 0 #ffffff, -2px -2px 0 #ffffff, 2px -2px 0 #ffffff, -2px 2px 0 #ffffff,
    0 2px 0 #ffffff, 0 -2px 0 #ffffff, 2px 0 0 #ffffff, -2px 0 0 #ffffff,
    0 0 12px #ffffff, 0 0 18px #ffffff;
}
.theme-kids_animals_real .cert-watermark-container,
.theme-kids_animals_real .cert-seal-stamp {
  display: none !important;
}
.certificate-container.portrait.theme-kids_animals_real .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-kids_animals_real .cert-header {
  margin-top: 5px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-kids_animals_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-kids_animals_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-kids_animals_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-kids_animals_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-kids_animals_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-kids_animals_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-kids_animals_real .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}

/* 👑 提供画像そのまま：月桂冠＆ゴールドウイング */
.theme-royal_gold_wings_real {
  background: #071026;
  color: #ffffff;
}
.theme-royal_gold_wings_real .cert-content {
  padding: 42px 75px 28px 75px;
}
.theme-royal_gold_wings_real .cert-header {
  gap: 0;
  margin-top: 15px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-royal_gold_wings_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-royal_gold_wings_real .cert-badge-kanji {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 3.4rem;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
  white-space: nowrap;
  display: inline-block;
  color: #fde047;
  paint-order: stroke fill;
  -webkit-text-stroke: 4px #1e1303;
  text-shadow:
    2.5px 2.5px 0 #1e1303, -2.5px -2.5px 0 #1e1303, 2.5px -2.5px 0 #1e1303, -2.5px 2.5px 0 #1e1303,
    0 2.5px 0 #1e1303, 0 -2.5px 0 #1e1303, 2.5px 0 0 #1e1303, -2.5px 0 0 #1e1303,
    0 0 15px rgba(253, 224, 71, 0.8), 0 0 35px rgba(217, 119, 6, 0.7);
}
.theme-royal_gold_wings_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 4px;
  margin-bottom: 4px;
}
.theme-royal_gold_wings_real .cert-award-sub {
  display: none !important;
}
.theme-royal_gold_wings_real .cert-award-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 3.45rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  color: #fef08a;
  paint-order: stroke fill;
  -webkit-text-stroke: 4px #1e1303;
  text-shadow:
    2.5px 2.5px 0 #1e1303, -2.5px -2.5px 0 #1e1303, 2.5px -2.5px 0 #1e1303, -2.5px 2.5px 0 #1e1303,
    0 2.5px 0 #1e1303, 0 -2.5px 0 #1e1303, 2.5px 0 0 #1e1303, -2.5px 0 0 #1e1303,
    0 0 14px rgba(245, 158, 11, 0.9);
}
.theme-royal_gold_wings_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-royal_gold_wings_real .cert-recipient-name {
  font-family: 'Shippori Mincho', serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  paint-order: stroke fill;
  -webkit-text-stroke: 4.5px #071026;
  text-shadow:
    2.5px 2.5px 0 #071026, -2.5px -2.5px 0 #071026, 2.5px -2.5px 0 #071026, -2.5px 2.5px 0 #071026,
    0 2.5px 0 #071026, 0 -2.5px 0 #071026, 2.5px 0 0 #071026, -2.5px 0 0 #071026,
    0 0 15px rgba(255,255,255,0.9), 0 0 35px #fbbf24;
}
.theme-royal_gold_wings_real .cert-recipient-honor {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #fef08a;
  paint-order: stroke fill;
  -webkit-text-stroke: 3.5px #071026;
  text-shadow:
    2px 2px 0 #071026, -2px -2px 0 #071026, 2px -2px 0 #071026, -2px 2px 0 #071026,
    0 2px 0 #071026, 0 -2px 0 #071026, 2px 0 0 #071026, -2px 0 0 #071026;
}
.theme-royal_gold_wings_real .cert-body {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #fffbeb;
  max-width: 820px;
  margin: 0 auto;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px #071026;
  text-shadow:
    1.5px 1.5px 0 #071026, -1.5px -1.5px 0 #071026, 1.5px -1.5px 0 #071026, -1.5px 1.5px 0 #071026,
    0 1.5px 0 #071026, 0 -1.5px 0 #071026, 1.5px 0 0 #071026, -1.5px 0 0 #071026,
    0 2px 8px rgba(0,0,0,0.95);
}
.theme-royal_gold_wings_real .cert-footer {
  margin-top: 18px;
}
.theme-royal_gold_wings_real .cert-date {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #fef3c7;
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px #071026;
  text-shadow:
    1.5px 1.5px 0 #071026, -1.5px -1.5px 0 #071026, 1.5px -1.5px 0 #071026, -1.5px 1.5px 0 #071026,
    0 1.5px 0 #071026, 0 -1.5px 0 #071026, 1.5px 0 0 #071026, -1.5px 0 0 #071026,
    0 2px 6px rgba(0,0,0,0.95);
}
.theme-royal_gold_wings_real .cert-organizer {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #fef3c7;
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px #071026;
  text-shadow:
    1.5px 1.5px 0 #071026, -1.5px -1.5px 0 #071026, 1.5px -1.5px 0 #071026, -1.5px 1.5px 0 #071026,
    0 1.5px 0 #071026, 0 -1.5px 0 #071026, 1.5px 0 0 #071026, -1.5px 0 0 #071026,
    0 2px 6px rgba(0,0,0,0.95);
}
.theme-royal_gold_wings_real .cert-watermark-container,
.theme-royal_gold_wings_real .cert-seal-stamp {
  display: none !important;
}
.certificate-container.portrait.theme-royal_gold_wings_real .cert-content {
  padding: 55px 70px 40px 70px;
}
.certificate-container.portrait.theme-royal_gold_wings_real .cert-header {
  margin-top: 40px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-royal_gold_wings_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-royal_gold_wings_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-royal_gold_wings_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-royal_gold_wings_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-royal_gold_wings_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-royal_gold_wings_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-royal_gold_wings_real .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}

/* ☄️ 提供画像そのまま：銀河コズミック＆火の玉 */
.theme-galaxy_flame_real {
  background: #040919;
  color: #ffffff;
}
.theme-galaxy_flame_real .cert-content {
  padding: 34px 75px 28px 75px;
}
.theme-galaxy_flame_real .cert-header {
  gap: 0;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-galaxy_flame_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-galaxy_flame_real .cert-badge-kanji {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.3rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  white-space: nowrap;
  display: inline-block;
  color: #ffffff;
  paint-order: stroke fill;
  -webkit-text-stroke: 4px #040919;
  text-shadow:
    2.5px 2.5px 0 #040919, -2.5px -2.5px 0 #040919, 2.5px -2.5px 0 #040919, -2.5px 2.5px 0 #040919,
    0 2.5px 0 #040919, 0 -2.5px 0 #040919, 2.5px 0 0 #040919, -2.5px 0 0 #040919,
    0 0 12px #ffffff, 0 0 25px #38bdf8, 0 0 50px #0284c7, 0 0 75px #0369a1;
}
.theme-galaxy_flame_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 4px;
  margin-bottom: 4px;
}
.theme-galaxy_flame_real .cert-award-sub {
  display: none !important;
}
.theme-galaxy_flame_real .cert-award-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.45rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  color: #fb923c;
  paint-order: stroke fill;
  -webkit-text-stroke: 4px #040919;
  text-shadow:
    2.5px 2.5px 0 #040919, -2.5px -2.5px 0 #040919, 2.5px -2.5px 0 #040919, -2.5px 2.5px 0 #040919,
    0 2.5px 0 #040919, 0 -2.5px 0 #040919, 2.5px 0 0 #040919, -2.5px 0 0 #040919,
    0 0 15px rgba(249, 115, 22, 0.9), 0 0 30px #ea580c;
}
.theme-galaxy_flame_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-galaxy_flame_real .cert-recipient-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  paint-order: stroke fill;
  -webkit-text-stroke: 4.5px #040919;
  text-shadow:
    2.5px 2.5px 0 #040919, -2.5px -2.5px 0 #040919, 2.5px -2.5px 0 #040919, -2.5px 2.5px 0 #040919,
    0 2.5px 0 #040919, 0 -2.5px 0 #040919, 2.5px 0 0 #040919, -2.5px 0 0 #040919,
    0 0 15px rgba(255,255,255,0.9), 0 0 35px #38bdf8;
}
.theme-galaxy_flame_real .cert-recipient-honor {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #bae6fd;
  paint-order: stroke fill;
  -webkit-text-stroke: 3.5px #040919;
  text-shadow:
    2px 2px 0 #040919, -2px -2px 0 #040919, 2px -2px 0 #040919, -2px 2px 0 #040919,
    0 2px 0 #040919, 0 -2px 0 #040919, 2px 0 0 #040919, -2px 0 0 #040919;
}
.theme-galaxy_flame_real .cert-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #f8fafc;
  max-width: 820px;
  margin: 0 auto;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px #040919;
  text-shadow:
    1.5px 1.5px 0 #040919, -1.5px -1.5px 0 #040919, 1.5px -1.5px 0 #040919, -1.5px 1.5px 0 #040919,
    0 1.5px 0 #040919, 0 -1.5px 0 #040919, 1.5px 0 0 #040919, -1.5px 0 0 #040919,
    0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(56, 189, 248, 0.3);
}
.theme-galaxy_flame_real .cert-footer {
  margin-top: 18px;
}
.theme-galaxy_flame_real .cert-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #e2e8f0;
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px #040919;
  text-shadow:
    1.5px 1.5px 0 #040919, -1.5px -1.5px 0 #040919, 1.5px -1.5px 0 #040919, -1.5px 1.5px 0 #040919,
    0 1.5px 0 #040919, 0 -1.5px 0 #040919, 1.5px 0 0 #040919, -1.5px 0 0 #040919,
    0 2px 6px rgba(0,0,0,0.95);
}
.theme-galaxy_flame_real .cert-organizer {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #e2e8f0;
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px #040919;
  text-shadow:
    1.5px 1.5px 0 #040919, -1.5px -1.5px 0 #040919, 1.5px -1.5px 0 #040919, -1.5px 1.5px 0 #040919,
    0 1.5px 0 #040919, 0 -1.5px 0 #040919, 1.5px 0 0 #040919, -1.5px 0 0 #040919,
    0 2px 6px rgba(0,0,0,0.95);
}
.theme-galaxy_flame_real .cert-watermark-container,
.theme-galaxy_flame_real .cert-seal-stamp {
  display: none !important;
}
.certificate-container.portrait.theme-galaxy_flame_real .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-galaxy_flame_real .cert-header {
  margin-top: 5px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-galaxy_flame_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-galaxy_flame_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-galaxy_flame_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-galaxy_flame_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-galaxy_flame_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-galaxy_flame_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-galaxy_flame_real .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}

/* 🎬 提供画像そのまま：ハリウッド祭典 */
.theme-hollywood_star_real {
  background: #071228;
  color: #ffffff;
}
.theme-hollywood_star_real .cert-content {
  padding: 38px 75px 28px 75px;
}
.theme-hollywood_star_real .cert-header {
  gap: 0;
  margin-top: 10px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-hollywood_star_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-hollywood_star_real .cert-badge-kanji {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.3rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  white-space: nowrap;
  display: inline-block;
  color: #fde047;
  paint-order: stroke fill;
  -webkit-text-stroke: 4px #1f1103;
  text-shadow:
    2.5px 2.5px 0 #1f1103, -2.5px -2.5px 0 #1f1103, 2.5px -2.5px 0 #1f1103, -2.5px 2.5px 0 #1f1103,
    0 2.5px 0 #1f1103, 0 -2.5px 0 #1f1103, 2.5px 0 0 #1f1103, -2.5px 0 0 #1f1103,
    0 0 15px rgba(253, 224, 71, 0.9), 0 0 35px rgba(234, 88, 12, 0.8);
}
.theme-hollywood_star_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 4px;
  margin-bottom: 4px;
}
.theme-hollywood_star_real .cert-award-sub {
  display: none !important;
}
.theme-hollywood_star_real .cert-award-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.45rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  color: #fef08a;
  paint-order: stroke fill;
  -webkit-text-stroke: 4px #1f1103;
  text-shadow:
    2.5px 2.5px 0 #1f1103, -2.5px -2.5px 0 #1f1103, 2.5px -2.5px 0 #1f1103, -2.5px 2.5px 0 #1f1103,
    0 2.5px 0 #1f1103, 0 -2.5px 0 #1f1103, 2.5px 0 0 #1f1103, -2.5px 0 0 #1f1103,
    0 0 14px rgba(245, 158, 11, 0.9);
}
.theme-hollywood_star_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-hollywood_star_real .cert-recipient-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  paint-order: stroke fill;
  -webkit-text-stroke: 4.5px #071228;
  text-shadow:
    2.5px 2.5px 0 #071228, -2.5px -2.5px 0 #071228, 2.5px -2.5px 0 #071228, -2.5px 2.5px 0 #071228,
    0 2.5px 0 #071228, 0 -2.5px 0 #071228, 2.5px 0 0 #071228, -2.5px 0 0 #071228,
    0 0 15px rgba(255,255,255,0.9), 0 0 30px #f59e0b;
}
.theme-hollywood_star_real .cert-recipient-honor {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #fef08a;
  paint-order: stroke fill;
  -webkit-text-stroke: 3.5px #071228;
  text-shadow:
    2px 2px 0 #071228, -2px -2px 0 #071228, 2px -2px 0 #071228, -2px 2px 0 #071228,
    0 2px 0 #071228, 0 -2px 0 #071228, 2px 0 0 #071228, -2px 0 0 #071228;
}
.theme-hollywood_star_real .cert-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #fffbeb;
  max-width: 820px;
  margin: 0 auto;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px #071228;
  text-shadow:
    1.5px 1.5px 0 #071228, -1.5px -1.5px 0 #071228, 1.5px -1.5px 0 #071228, -1.5px 1.5px 0 #071228,
    0 1.5px 0 #071228, 0 -1.5px 0 #071228, 1.5px 0 0 #071228, -1.5px 0 0 #071228,
    0 2px 6px rgba(0,0,0,0.95);
}
.theme-hollywood_star_real .cert-footer {
  margin-top: 18px;
}
.theme-hollywood_star_real .cert-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #fef3c7;
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px #071228;
  text-shadow:
    1.5px 1.5px 0 #071228, -1.5px -1.5px 0 #071228, 1.5px -1.5px 0 #071228, -1.5px 1.5px 0 #071228,
    0 1.5px 0 #071228, 0 -1.5px 0 #071228, 1.5px 0 0 #071228, -1.5px 0 0 #071228,
    0 2px 6px rgba(0,0,0,0.95);
}
.theme-hollywood_star_real .cert-organizer {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #fef3c7;
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px #071228;
  text-shadow:
    1.5px 1.5px 0 #071228, -1.5px -1.5px 0 #071228, 1.5px -1.5px 0 #071228, -1.5px 1.5px 0 #071228,
    0 1.5px 0 #071228, 0 -1.5px 0 #071228, 1.5px 0 0 #071228, -1.5px 0 0 #071228,
    0 2px 6px rgba(0,0,0,0.95);
}
.theme-hollywood_star_real .cert-watermark-container,
.theme-hollywood_star_real .cert-seal-stamp {
  display: none !important;
}
.certificate-container.portrait.theme-hollywood_star_real .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-hollywood_star_real .cert-header {
  margin-top: 25px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-hollywood_star_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-hollywood_star_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-hollywood_star_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-hollywood_star_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-hollywood_star_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-hollywood_star_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-hollywood_star_real .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}

/* 🎆 提供画像そのまま：祝祭花火＆ダブルトロフィー */
.theme-fireworks_trophy_real {
  background: #0e0d29;
  color: #ffffff;
}
.theme-fireworks_trophy_real .cert-content {
  padding: 34px 75px 28px 75px;
}
.theme-fireworks_trophy_real .cert-header {
  gap: 0;
  margin-top: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-fireworks_trophy_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-fireworks_trophy_real .cert-badge-kanji {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 3.3rem;
  letter-spacing: 0.30em;
  margin-right: -0.30em;
  white-space: nowrap;
  display: inline-block;
  color: #fde047;
  paint-order: stroke fill;
  -webkit-text-stroke: 4px #1e0a24;
  text-shadow:
    2.5px 2.5px 0 #1e0a24, -2.5px -2.5px 0 #1e0a24, 2.5px -2.5px 0 #1e0a24, -2.5px 2.5px 0 #1e0a24,
    0 2.5px 0 #1e0a24, 0 -2.5px 0 #1e0a24, 2.5px 0 0 #1e0a24, -2.5px 0 0 #1e0a24,
    0 0 15px rgba(253, 224, 71, 0.9), 0 0 35px rgba(245, 158, 11, 0.8);
}
.theme-fireworks_trophy_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 4px;
  margin-bottom: 4px;
}
.theme-fireworks_trophy_real .cert-award-sub {
  display: none !important;
}
.theme-fireworks_trophy_real .cert-award-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 3.45rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  color: #fef08a;
  paint-order: stroke fill;
  -webkit-text-stroke: 4px #1e0a24;
  text-shadow:
    2.5px 2.5px 0 #1e0a24, -2.5px -2.5px 0 #1e0a24, 2.5px -2.5px 0 #1e0a24, -2.5px 2.5px 0 #1e0a24,
    0 2.5px 0 #1e0a24, 0 -2.5px 0 #1e0a24, 2.5px 0 0 #1e0a24, -2.5px 0 0 #1e0a24,
    0 0 14px rgba(245, 158, 11, 0.9);
}
.theme-fireworks_trophy_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-fireworks_trophy_real .cert-recipient-name {
  font-family: 'Shippori Mincho', serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  paint-order: stroke fill;
  -webkit-text-stroke: 4.5px #0e0d29;
  text-shadow:
    2.5px 2.5px 0 #0e0d29, -2.5px -2.5px 0 #0e0d29, 2.5px -2.5px 0 #0e0d29, -2.5px 2.5px 0 #0e0d29,
    0 2.5px 0 #0e0d29, 0 -2.5px 0 #0e0d29, 2.5px 0 0 #0e0d29, -2.5px 0 0 #0e0d29,
    0 0 15px rgba(255,255,255,0.9), 0 0 32px #f59e0b;
}
.theme-fireworks_trophy_real .cert-recipient-honor {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #fef08a;
  paint-order: stroke fill;
  -webkit-text-stroke: 3.5px #0e0d29;
  text-shadow:
    2px 2px 0 #0e0d29, -2px -2px 0 #0e0d29, 2px -2px 0 #0e0d29, -2px 2px 0 #0e0d29,
    0 2px 0 #0e0d29, 0 -2px 0 #0e0d29, 2px 0 0 #0e0d29, -2px 0 0 #0e0d29;
}
.theme-fireworks_trophy_real .cert-body {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #fffbeb;
  max-width: 820px;
  margin: 0 auto;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px #0e0d29;
  text-shadow:
    1.5px 1.5px 0 #0e0d29, -1.5px -1.5px 0 #0e0d29, 1.5px -1.5px 0 #0e0d29, -1.5px 1.5px 0 #0e0d29,
    0 1.5px 0 #0e0d29, 0 -1.5px 0 #0e0d29, 1.5px 0 0 #0e0d29, -1.5px 0 0 #0e0d29,
    0 2px 6px rgba(0,0,0,0.95);
}
.theme-fireworks_trophy_real .cert-footer {
  margin-top: 18px;
}
.theme-fireworks_trophy_real .cert-date {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #fef3c7;
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px #0e0d29;
  text-shadow:
    1.5px 1.5px 0 #0e0d29, -1.5px -1.5px 0 #0e0d29, 1.5px -1.5px 0 #0e0d29, -1.5px 1.5px 0 #0e0d29,
    0 1.5px 0 #0e0d29, 0 -1.5px 0 #0e0d29, 1.5px 0 0 #0e0d29, -1.5px 0 0 #0e0d29,
    0 2px 6px rgba(0,0,0,0.95);
}
.theme-fireworks_trophy_real .cert-organizer {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #fef3c7;
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px #0e0d29;
  text-shadow:
    1.5px 1.5px 0 #0e0d29, -1.5px -1.5px 0 #0e0d29, 1.5px -1.5px 0 #0e0d29, -1.5px 1.5px 0 #0e0d29,
    0 1.5px 0 #0e0d29, 0 -1.5px 0 #0e0d29, 1.5px 0 0 #0e0d29, -1.5px 0 0 #0e0d29,
    0 2px 6px rgba(0,0,0,0.95);
}
.theme-fireworks_trophy_real .cert-watermark-container,
.theme-fireworks_trophy_real .cert-seal-stamp {
  display: none !important;
}
.certificate-container.portrait.theme-fireworks_trophy_real .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-fireworks_trophy_real .cert-header {
  margin-top: 25px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-fireworks_trophy_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-fireworks_trophy_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-fireworks_trophy_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-fireworks_trophy_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-fireworks_trophy_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-fireworks_trophy_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-fireworks_trophy_real .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}

/* ❄️ 提供画像そのまま：スノー・オーロラ＆冬バスケ */
.theme-winter_snow_real {
  background: #1c4573;
  color: #ffffff;
}
.theme-winter_snow_real .cert-content {
  padding: 34px 75px 28px 75px;
}
.theme-winter_snow_real .cert-header {
  gap: 0;
  margin-top: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-winter_snow_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-winter_snow_real .cert-badge-kanji {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.3rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  white-space: nowrap;
  display: inline-block;
  color: #ffffff;
  text-shadow: 2px 2px 0 #0c2646, -2px -2px 0 #0c2646, 2px -2px 0 #0c2646, -2px 2px 0 #0c2646, 0 0 20px #38bdf8, 0 4px 12px rgba(0,0,0,0.8);
}
.theme-winter_snow_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
}
.theme-winter_snow_real .cert-award-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: 0.25em;
  border: 1.5px solid #38bdf8;
  padding: 2px 12px;
  border-radius: 6px;
  background: rgba(3, 105, 161, 0.85);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  text-shadow: 1px 1px 0 #0c2646;
}
.theme-winter_snow_real .cert-award-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 2.7rem;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  color: #e0f2fe;
  text-shadow: 2px 2px 0 #0c2646, -2px -2px 0 #0c2646, 2px -2px 0 #0c2646, -2px 2px 0 #0c2646, 0 0 16px #38bdf8;
}
.theme-winter_snow_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-winter_snow_real .cert-recipient-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-shadow: 2.5px 2.5px 0 #0c2646, -2.5px -2.5px 0 #0c2646, 2.5px -2.5px 0 #0c2646, -2.5px 2.5px 0 #0c2646, 0 0 20px #38bdf8, 0 4px 14px rgba(0,0,0,0.85);
}
.theme-winter_snow_real .cert-recipient-honor {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #bae6fd;
  text-shadow: 1.5px 1.5px 0 #0c2646, -1.5px -1.5px 0 #0c2646, 1.5px -1.5px 0 #0c2646, -1.5px 1.5px 0 #0c2646;
}
.theme-winter_snow_real .cert-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #ffffff;
  max-width: 820px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(12, 38, 70, 0.95), 1.5px 1.5px 0 #0f2b48, -1.5px -1.5px 0 #0f2b48, 1.5px -1.5px 0 #0f2b48, -1.5px 1.5px 0 #0f2b48, 0 0 20px rgba(56, 189, 248, 0.5);
}
.theme-winter_snow_real .cert-footer {
  margin-top: 18px;
}
.theme-winter_snow_real .cert-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(12, 38, 70, 0.95), 1.5px 1.5px 0 #0f2b48, -1.5px -1.5px 0 #0f2b48, 1.5px -1.5px 0 #0f2b48, -1.5px 1.5px 0 #0f2b48;
}
.theme-winter_snow_real .cert-organizer {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(12, 38, 70, 0.95), 1.5px 1.5px 0 #0f2b48, -1.5px -1.5px 0 #0f2b48, 1.5px -1.5px 0 #0f2b48, -1.5px 1.5px 0 #0f2b48;
}
.theme-winter_snow_real .cert-watermark-container,
.theme-winter_snow_real .cert-seal-stamp {
  display: none !important;
}
.certificate-container.portrait.theme-winter_snow_real .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-winter_snow_real .cert-header {
  margin-top: 25px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-winter_snow_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-winter_snow_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-winter_snow_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-winter_snow_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-winter_snow_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-winter_snow_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-winter_snow_real .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}

/* ⚡ 提供画像そのまま：和風炎雷＆市松闘志 */
.theme-japanese_fire_lightning_real {
  background: #090708;
  color: #ffffff;
}
.theme-japanese_fire_lightning_real .cert-content {
  padding: 34px 75px 28px 75px;
}
.theme-japanese_fire_lightning_real .cert-header {
  gap: 0;
  margin-top: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-japanese_fire_lightning_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-japanese_fire_lightning_real .cert-badge-kanji {
  font-family: 'Yuji Boku', 'Shippori Mincho', serif;
  font-weight: 900;
  font-size: 3.5rem;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
  white-space: nowrap;
  display: inline-block;
  color: #ef4444;
  text-shadow: 0 0 15px rgba(239, 68, 68, 0.9), 0 0 35px rgba(249, 115, 22, 0.8);
}
.theme-japanese_fire_lightning_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
}
.theme-japanese_fire_lightning_real .cert-award-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #f97316;
  letter-spacing: 0.25em;
  border: 1.5px solid rgba(249, 115, 22, 0.8);
  padding: 2px 12px;
  border-radius: 6px;
  background: rgba(124, 45, 18, 0.35);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}
.theme-japanese_fire_lightning_real .cert-award-title {
  font-family: 'Yuji Boku', 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 2.8rem;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  color: #fde047;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.9);
}
.theme-japanese_fire_lightning_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-japanese_fire_lightning_real .cert-recipient-name {
  font-family: 'Yuji Boku', 'Shippori Mincho', serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255,255,255,0.9), 0 0 30px #ef4444;
}
.theme-japanese_fire_lightning_real .cert-recipient-honor {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #fca5a5;
}
.theme-japanese_fire_lightning_real .cert-body {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #fef2f2;
  max-width: 820px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95);
}
.theme-japanese_fire_lightning_real .cert-footer {
  margin-top: 18px;
}
.theme-japanese_fire_lightning_real .cert-date {
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: 1.30rem;
  color: #fee2e2;
  white-space: nowrap;
}
.theme-japanese_fire_lightning_real .cert-organizer {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 1.38rem;
  color: #fee2e2;
  white-space: nowrap;
}
.theme-japanese_fire_lightning_real .cert-watermark-container,
.theme-japanese_fire_lightning_real .cert-seal-stamp {
  display: none !important;
}
.certificate-container.portrait.theme-japanese_fire_lightning_real .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-japanese_fire_lightning_real .cert-header {
  margin-top: 25px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-japanese_fire_lightning_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-japanese_fire_lightning_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-japanese_fire_lightning_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-japanese_fire_lightning_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-japanese_fire_lightning_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-japanese_fire_lightning_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-japanese_fire_lightning_real .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}

/* 🌸 提供画像そのまま：スプリング・桜＆春バスケ */
.theme-spring_sakura_real {
  background: #2a1122;
  color: #ffffff;
}
.theme-spring_sakura_real .cert-content {
  padding: 34px 75px 28px 75px;
}
.theme-spring_sakura_real .cert-header {
  gap: 0;
  margin-top: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-spring_sakura_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-spring_sakura_real .cert-badge-kanji {
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
  font-weight: 800;
  font-size: 3.3rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  white-space: nowrap;
  display: inline-block;
  color: #831843;
  text-shadow: 2px 2px 0 #ffffff, -2px -2px 0 #ffffff, 2px -2px 0 #ffffff, -2px 2px 0 #ffffff, 0 0 16px rgba(244, 114, 182, 0.7);
}
.theme-spring_sakura_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
}
.theme-spring_sakura_real .cert-award-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: 0.25em;
  border: 1.5px solid #9d174d;
  padding: 2px 12px;
  border-radius: 6px;
  background: #be185d;
  box-shadow: 0 0 12px rgba(190, 24, 93, 0.4);
}
.theme-spring_sakura_real .cert-award-title {
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
  font-weight: 800;
  font-size: 2.7rem;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  color: #831843;
  text-shadow: 2px 2px 0 #ffffff, -2px -2px 0 #ffffff, 2px -2px 0 #ffffff, -2px 2px 0 #ffffff, 0 0 14px rgba(244, 114, 182, 0.6);
}
.theme-spring_sakura_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-spring_sakura_real .cert-recipient-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #701a75;
  text-shadow: 2.5px 2.5px 0 #ffffff, -2.5px -2.5px 0 #ffffff, 2.5px -2.5px 0 #ffffff, -2.5px 2.5px 0 #ffffff, 0 0 18px rgba(255,255,255,0.9);
}
.theme-spring_sakura_real .cert-recipient-honor {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #831843;
  text-shadow: 1.5px 1.5px 0 #ffffff, -1.5px -1.5px 0 #ffffff, 1.5px -1.5px 0 #ffffff, -1.5px 1.5px 0 #ffffff;
}
.theme-spring_sakura_real .cert-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #ffffff;
  max-width: 820px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(80, 7, 36, 0.95), 1.5px 1.5px 0 #4a0420, -1.5px -1.5px 0 #4a0420, 1.5px -1.5px 0 #4a0420, -1.5px 1.5px 0 #4a0420, 0 0 20px rgba(244, 114, 182, 0.5);
}
.theme-spring_sakura_real .cert-footer {
  margin-top: 18px;
}
.theme-spring_sakura_real .cert-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(80, 7, 36, 0.95), 1.5px 1.5px 0 #4a0420, -1.5px -1.5px 0 #4a0420, 1.5px -1.5px 0 #4a0420, -1.5px 1.5px 0 #4a0420;
}
.theme-spring_sakura_real .cert-organizer {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(80, 7, 36, 0.95), 1.5px 1.5px 0 #4a0420, -1.5px -1.5px 0 #4a0420, 1.5px -1.5px 0 #4a0420, -1.5px 1.5px 0 #4a0420;
}
.theme-spring_sakura_real .cert-watermark-container,
.theme-spring_sakura_real .cert-seal-stamp {
  display: none !important;
}
.certificate-container.portrait.theme-spring_sakura_real .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-spring_sakura_real .cert-header {
  margin-top: 25px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-spring_sakura_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-spring_sakura_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-spring_sakura_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-spring_sakura_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-spring_sakura_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-spring_sakura_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-spring_sakura_real .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}

/* 🌻 提供画像そのまま：サマー・サンシャイン＆夏バスケ */
.theme-summer_sun_real {
  background: #0c2d48;
  color: #ffffff;
}
.theme-summer_sun_real .cert-content {
  padding: 34px 75px 28px 75px;
}
.theme-summer_sun_real .cert-header {
  gap: 0;
  margin-top: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-summer_sun_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-summer_sun_real .cert-badge-kanji {
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
  font-weight: 800;
  font-size: 3.3rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  white-space: nowrap;
  display: inline-block;
  color: #fde047;
  text-shadow: 2px 2px 0 #78350f, -2px -2px 0 #78350f, 2px -2px 0 #78350f, -2px 2px 0 #78350f, 0 0 20px #facc15, 0 4px 10px rgba(0,0,0,0.8);
}
.theme-summer_sun_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
}
.theme-summer_sun_real .cert-award-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: 0.25em;
  border: 1.5px solid #facc15;
  padding: 2px 12px;
  border-radius: 6px;
  background: rgba(161, 98, 7, 0.85);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.5);
  text-shadow: 1px 1px 0 #78350f;
}
.theme-summer_sun_real .cert-award-title {
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
  font-weight: 800;
  font-size: 2.7rem;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  color: #ffffff;
  text-shadow: 2px 2px 0 #78350f, -2px -2px 0 #78350f, 2px -2px 0 #78350f, -2px 2px 0 #78350f, 0 0 16px #facc15;
}
.theme-summer_sun_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-summer_sun_real .cert-recipient-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-shadow: 2.5px 2.5px 0 #072942, -2.5px -2.5px 0 #072942, 2.5px -2.5px 0 #072942, -2.5px 2.5px 0 #072942, 0 0 20px #38bdf8, 0 4px 12px rgba(0,0,0,0.85);
}
.theme-summer_sun_real .cert-recipient-honor {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #bae6fd;
  text-shadow: 1.5px 1.5px 0 #072942, -1.5px -1.5px 0 #072942, 1.5px -1.5px 0 #072942, -1.5px 1.5px 0 #072942;
}
.theme-summer_sun_real .cert-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #ffffff;
  max-width: 820px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(8, 47, 73, 0.95), 1.5px 1.5px 0 #072942, -1.5px -1.5px 0 #072942, 1.5px -1.5px 0 #072942, -1.5px 1.5px 0 #072942, 0 0 20px rgba(56, 189, 248, 0.5);
}
.theme-summer_sun_real .cert-footer {
  margin-top: 18px;
}
.theme-summer_sun_real .cert-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(8, 47, 73, 0.95), 1.5px 1.5px 0 #072942, -1.5px -1.5px 0 #072942, 1.5px -1.5px 0 #072942, -1.5px 1.5px 0 #072942;
}
.theme-summer_sun_real .cert-organizer {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(8, 47, 73, 0.95), 1.5px 1.5px 0 #072942, -1.5px -1.5px 0 #072942, 1.5px -1.5px 0 #072942, -1.5px 1.5px 0 #072942;
}
.theme-summer_sun_real .cert-watermark-container,
.theme-summer_sun_real .cert-seal-stamp {
  display: none !important;
}
.certificate-container.portrait.theme-summer_sun_real .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-summer_sun_real .cert-header {
  margin-top: 25px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-summer_sun_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-summer_sun_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-summer_sun_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-summer_sun_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-summer_sun_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-summer_sun_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-summer_sun_real .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}

/* 🍁 提供画像そのまま：オータム・紅葉＆秋バスケ */
.theme-autumn_maple_real {
  background: #2a0f05;
  color: #ffffff;
}
.theme-autumn_maple_real .cert-content {
  padding: 34px 75px 28px 75px;
}
.theme-autumn_maple_real .cert-header {
  gap: 0;
  margin-top: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-autumn_maple_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-autumn_maple_real .cert-badge-kanji {
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
  font-weight: 800;
  font-size: 3.3rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  white-space: nowrap;
  display: inline-block;
  color: #fbbf24;
  text-shadow: 2px 2px 0 #450a0a, -2px -2px 0 #450a0a, 2px -2px 0 #450a0a, -2px 2px 0 #450a0a, 0 0 20px #f97316, 0 4px 10px rgba(0,0,0,0.8);
}
.theme-autumn_maple_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
}
.theme-autumn_maple_real .cert-award-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: 0.25em;
  border: 1.5px solid #fb923c;
  padding: 2px 12px;
  border-radius: 6px;
  background: rgba(154, 52, 18, 0.85);
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.5);
  text-shadow: 1px 1px 0 #450a0a;
}
.theme-autumn_maple_real .cert-award-title {
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
  font-weight: 800;
  font-size: 2.7rem;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  color: #ffedd5;
  text-shadow: 2px 2px 0 #450a0a, -2px -2px 0 #450a0a, 2px -2px 0 #450a0a, -2px 2px 0 #450a0a, 0 0 16px #f97316;
}
.theme-autumn_maple_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-autumn_maple_real .cert-recipient-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-shadow: 2.5px 2.5px 0 #3a0a05, -2.5px -2.5px 0 #3a0a05, 2.5px -2.5px 0 #3a0a05, -2.5px 2.5px 0 #3a0a05, 0 0 20px #f97316, 0 4px 12px rgba(0,0,0,0.85);
}
.theme-autumn_maple_real .cert-recipient-honor {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #fed7aa;
  text-shadow: 1.5px 1.5px 0 #3a0a05, -1.5px -1.5px 0 #3a0a05, 1.5px -1.5px 0 #3a0a05, -1.5px 1.5px 0 #3a0a05;
}
.theme-autumn_maple_real .cert-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #ffffff;
  max-width: 820px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(69, 10, 10, 0.95), 1.5px 1.5px 0 #3a0a05, -1.5px -1.5px 0 #3a0a05, 1.5px -1.5px 0 #3a0a05, -1.5px 1.5px 0 #3a0a05, 0 0 20px rgba(249, 115, 22, 0.5);
}
.theme-autumn_maple_real .cert-footer {
  margin-top: 18px;
}
.theme-autumn_maple_real .cert-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(69, 10, 10, 0.95), 1.5px 1.5px 0 #3a0a05, -1.5px -1.5px 0 #3a0a05, 1.5px -1.5px 0 #3a0a05, -1.5px 1.5px 0 #3a0a05;
}
.theme-autumn_maple_real .cert-organizer {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(69, 10, 10, 0.95), 1.5px 1.5px 0 #3a0a05, -1.5px -1.5px 0 #3a0a05, 1.5px -1.5px 0 #3a0a05, -1.5px 1.5px 0 #3a0a05;
}
.theme-autumn_maple_real .cert-watermark-container,
.theme-autumn_maple_real .cert-seal-stamp {
  display: none !important;
}
.certificate-container.portrait.theme-autumn_maple_real .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-autumn_maple_real .cert-header {
  margin-top: 25px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-autumn_maple_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-autumn_maple_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-autumn_maple_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-autumn_maple_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-autumn_maple_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-autumn_maple_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
/* 💎 提供画像そのまま：クリスタル・銀河 */
.theme-crystal_galaxy_real {
  background: #0b041a;
  color: #ffffff;
}
.theme-crystal_galaxy_real .cert-content {
  padding: 34px 75px 28px 75px;
}
.theme-crystal_galaxy_real .cert-header {
  gap: 0;
  margin-top: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-crystal_galaxy_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-crystal_galaxy_real .cert-badge-kanji {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.3rem;
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  white-space: nowrap;
  display: inline-block;
  color: #f3e8ff;
  text-shadow: 0 0 12px #ffffff, 0 0 25px #c084fc, 0 0 45px #9333ea;
}
.theme-crystal_galaxy_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
}
.theme-crystal_galaxy_real .cert-award-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #e9d5ff;
  letter-spacing: 0.25em;
  border: 1.5px solid rgba(192, 132, 252, 0.8);
  padding: 2px 12px;
  border-radius: 6px;
  background: rgba(126, 34, 206, 0.35);
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.4);
}
.theme-crystal_galaxy_real .cert-award-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 2.7rem;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  color: #f5d0fe;
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.8), 0 0 24px rgba(147, 51, 234, 0.6);
}
.theme-crystal_galaxy_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-crystal_galaxy_real .cert-recipient-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255,255,255,0.9), 0 0 30px #a855f7;
}
.theme-crystal_galaxy_real .cert-recipient-honor {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #e9d5ff;
}
.theme-crystal_galaxy_real .cert-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #ffffff;
  max-width: 820px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(26, 7, 54, 0.95), 1.5px 1.5px 0 #180533, -1.5px -1.5px 0 #180533, 1.5px -1.5px 0 #180533, -1.5px 1.5px 0 #180533, 0 0 20px rgba(168, 85, 247, 0.5);
}
.theme-crystal_galaxy_real .cert-footer {
  margin-top: 18px;
}
.theme-crystal_galaxy_real .cert-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(26, 7, 54, 0.95), 1.5px 1.5px 0 #180533, -1.5px -1.5px 0 #180533, 1.5px -1.5px 0 #180533, -1.5px 1.5px 0 #180533;
}
.theme-crystal_galaxy_real .cert-organizer {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(26, 7, 54, 0.95), 1.5px 1.5px 0 #180533, -1.5px -1.5px 0 #180533, 1.5px -1.5px 0 #180533, -1.5px 1.5px 0 #180533;
}
.theme-crystal_galaxy_real .cert-watermark-container,
.theme-crystal_galaxy_real .cert-seal-stamp {
  display: none !important;
}
.certificate-container.portrait.theme-crystal_galaxy_real .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-crystal_galaxy_real .cert-header {
  margin-top: 25px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-crystal_galaxy_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-crystal_galaxy_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-crystal_galaxy_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-crystal_galaxy_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-crystal_galaxy_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-crystal_galaxy_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-crystal_galaxy_real .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}

/* 🌿 提供画像そのまま：エメラルド・王冠 */
.theme-emerald_classic_real {
  background: #031a14;
  color: #ffffff;
}
.theme-emerald_classic_real .cert-content {
  padding: 34px 75px 28px 75px;
}
.theme-emerald_classic_real .cert-header {
  gap: 0;
  margin-top: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-emerald_classic_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-emerald_classic_real .cert-badge-kanji {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 3.3rem;
  letter-spacing: 0.30em;
  margin-right: -0.30em;
  white-space: nowrap;
  display: inline-block;
  color: #fef08a;
  text-shadow: 0 0 12px #ffffff, 0 0 25px #eab308, 0 0 45px #ca8a04;
}
.theme-emerald_classic_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
}
.theme-emerald_classic_real .cert-award-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #a7f3d0;
  letter-spacing: 0.25em;
  border: 1.5px solid rgba(52, 211, 153, 0.8);
  padding: 2px 12px;
  border-radius: 6px;
  background: rgba(6, 78, 59, 0.35);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}
.theme-emerald_classic_real .cert-award-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 2.7rem;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  color: #fde047;
  text-shadow: 0 0 12px rgba(234, 179, 8, 0.8), 0 0 24px rgba(161, 98, 7, 0.6);
}
.theme-emerald_classic_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-emerald_classic_real .cert-recipient-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255,255,255,0.9), 0 0 30px #10b981;
}
.theme-emerald_classic_real .cert-recipient-honor {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #d1fae5;
}
.theme-emerald_classic_real .cert-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #ffffff;
  max-width: 820px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(4, 47, 36, 0.95), 1.5px 1.5px 0 #022018, -1.5px -1.5px 0 #022018, 1.5px -1.5px 0 #022018, -1.5px 1.5px 0 #022018, 0 0 20px rgba(52, 211, 153, 0.5);
}
.theme-emerald_classic_real .cert-footer {
  margin-top: 18px;
}
.theme-emerald_classic_real .cert-date {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(4, 47, 36, 0.95), 1.5px 1.5px 0 #022018, -1.5px -1.5px 0 #022018, 1.5px -1.5px 0 #022018, -1.5px 1.5px 0 #022018;
}
.theme-emerald_classic_real .cert-organizer {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(4, 47, 36, 0.95), 1.5px 1.5px 0 #022018, -1.5px -1.5px 0 #022018, 1.5px -1.5px 0 #022018, -1.5px 1.5px 0 #022018;
}
.theme-emerald_classic_real .cert-watermark-container,
.theme-emerald_classic_real .cert-seal-stamp {
  display: none !important;
}
.certificate-container.portrait.theme-emerald_classic_real .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-emerald_classic_real .cert-header {
  margin-top: 25px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-emerald_classic_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-emerald_classic_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-emerald_classic_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-emerald_classic_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-emerald_classic_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-emerald_classic_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-emerald_classic_real .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}

/* ✨ 提供画像そのまま：漆黒＆ゴールド幾何学 */
.theme-black_gold_geo_real {
  background: #0a0a0c;
  color: #ffffff;
}
.theme-black_gold_geo_real .cert-content {
  padding: 34px 75px 28px 75px;
}
.theme-black_gold_geo_real .cert-header {
  gap: 0;
  margin-top: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-black_gold_geo_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-black_gold_geo_real .cert-badge-kanji {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 3.3rem;
  letter-spacing: 0.30em;
  margin-right: -0.30em;
  white-space: nowrap;
  display: inline-block;
  color: #fef08a;
  text-shadow: 0 0 12px #ffffff, 0 0 25px #eab308, 0 0 45px #ca8a04;
}
.theme-black_gold_geo_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
}
.theme-black_gold_geo_real .cert-award-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #fde047;
  letter-spacing: 0.25em;
  border: 1.5px solid rgba(234, 179, 8, 0.8);
  padding: 2px 12px;
  border-radius: 6px;
  background: rgba(113, 63, 18, 0.35);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.4);
}
.theme-black_gold_geo_real .cert-award-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 2.7rem;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(234, 179, 8, 0.8), 0 0 24px rgba(202, 138, 4, 0.6);
}
.theme-black_gold_geo_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-black_gold_geo_real .cert-recipient-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255,255,255,0.9), 0 0 30px #eab308;
}
.theme-black_gold_geo_real .cert-recipient-honor {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #fef08a;
}
.theme-black_gold_geo_real .cert-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #ffffff;
  max-width: 820px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(0, 0, 0, 0.95), 1.5px 1.5px 0 #050505, -1.5px -1.5px 0 #050505, 1.5px -1.5px 0 #050505, -1.5px 1.5px 0 #050505, 0 0 20px rgba(234, 179, 8, 0.5);
}
.theme-black_gold_geo_real .cert-footer {
  margin-top: 18px;
}
.theme-black_gold_geo_real .cert-date {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(0, 0, 0, 0.95), 1.5px 1.5px 0 #050505, -1.5px -1.5px 0 #050505, 1.5px -1.5px 0 #050505, -1.5px 1.5px 0 #050505;
}
.theme-black_gold_geo_real .cert-organizer {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(0, 0, 0, 0.95), 1.5px 1.5px 0 #050505, -1.5px -1.5px 0 #050505, 1.5px -1.5px 0 #050505, -1.5px 1.5px 0 #050505;
}
.theme-black_gold_geo_real .cert-watermark-container,
.theme-black_gold_geo_real .cert-seal-stamp {
  display: none !important;
}
.certificate-container.portrait.theme-black_gold_geo_real .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-black_gold_geo_real .cert-header {
  margin-top: 25px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-black_gold_geo_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-black_gold_geo_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-black_gold_geo_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-black_gold_geo_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-black_gold_geo_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-black_gold_geo_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-black_gold_geo_real .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}

/* 📜 提供画像そのまま：羊皮紙・ヴィンテージ */
.theme-parchment_vintage_real {
  background: #e8dcbe;
  color: #3b2207;
}
.theme-parchment_vintage_real .cert-content {
  padding: 34px 75px 28px 75px;
}
.theme-parchment_vintage_real .cert-header {
  gap: 0;
  margin-top: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-parchment_vintage_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-parchment_vintage_real .cert-badge-kanji {
  font-family: 'Shippori Mincho', serif;
  font-weight: 900;
  font-size: 3.3rem;
  letter-spacing: 0.30em;
  margin-right: -0.30em;
  white-space: nowrap;
  display: inline-block;
  color: #5c350b;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.8), 0 0 10px rgba(255,248,220,0.8);
}
.theme-parchment_vintage_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
}
.theme-parchment_vintage_real .cert-award-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #78350f;
  letter-spacing: 0.25em;
  border: 1.5px solid rgba(146, 107, 56, 0.8);
  padding: 2px 12px;
  border-radius: 6px;
  background: rgba(245, 230, 200, 0.6);
  box-shadow: 0 0 10px rgba(180, 130, 70, 0.3);
}
.theme-parchment_vintage_real .cert-award-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 2.7rem;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  color: #451a03;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.7);
}
.theme-parchment_vintage_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-parchment_vintage_real .cert-recipient-name {
  font-family: 'Shippori Mincho', serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #291203;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.9), 0 0 8px rgba(255,248,220,0.6);
}
.theme-parchment_vintage_real .cert-recipient-honor {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #5c350b;
}
.theme-parchment_vintage_real .cert-body {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #291203;
  max-width: 820px;
  margin: 0 auto;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.85), -1px -1px 0 rgba(255,255,255,0.85), 1px -1px 0 rgba(255,255,255,0.85), -1px 1px 0 rgba(255,255,255,0.85);
}
.theme-parchment_vintage_real .cert-footer {
  margin-top: 18px;
}
.theme-parchment_vintage_real .cert-date {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #3b2207;
  white-space: nowrap;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
}
.theme-parchment_vintage_real .cert-organizer {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #3b2207;
  white-space: nowrap;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
}
.theme-parchment_vintage_real .cert-watermark-container,
.theme-parchment_vintage_real .cert-seal-stamp {
  display: none !important;
}
.certificate-container.portrait.theme-parchment_vintage_real .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-parchment_vintage_real .cert-header {
  margin-top: 25px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-parchment_vintage_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-parchment_vintage_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-parchment_vintage_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-parchment_vintage_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-parchment_vintage_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-parchment_vintage_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-parchment_vintage_real .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}

/* 👑 提供画像そのまま：深紅＆バロック黄金額縁 */
.theme-crimson_gold_baroque_real {
  background: #4a050d;
  color: #ffffff;
}
.theme-crimson_gold_baroque_real .cert-content {
  padding: 34px 75px 28px 75px;
}
.theme-crimson_gold_baroque_real .cert-header {
  gap: 0;
  margin-top: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-crimson_gold_baroque_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-crimson_gold_baroque_real .cert-badge-kanji {
  font-family: 'Shippori Mincho', serif;
  font-weight: 900;
  font-size: 3.3rem;
  letter-spacing: 0.30em;
  margin-right: -0.30em;
  white-space: nowrap;
  display: inline-block;
  color: #fef08a;
  text-shadow: 0 0 12px #ffffff, 0 0 25px #eab308, 0 0 45px #ca8a04;
}
.theme-crimson_gold_baroque_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
}
.theme-crimson_gold_baroque_real .cert-award-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #fef08a;
  letter-spacing: 0.25em;
  border: 1.5px solid rgba(234, 179, 8, 0.8);
  padding: 2px 12px;
  border-radius: 6px;
  background: rgba(136, 19, 55, 0.45);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.4);
}
.theme-crimson_gold_baroque_real .cert-award-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 2.7rem;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(234, 179, 8, 0.8), 0 0 24px rgba(245, 158, 11, 0.6);
}
.theme-crimson_gold_baroque_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-crimson_gold_baroque_real .cert-recipient-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255,255,255,0.9), 0 0 30px #eab308;
}
.theme-crimson_gold_baroque_real .cert-recipient-honor {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #fef08a;
}
.theme-crimson_gold_baroque_real .cert-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #ffffff;
  max-width: 820px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(74, 5, 13, 0.95), 1.5px 1.5px 0 #3b030a, -1.5px -1.5px 0 #3b030a, 1.5px -1.5px 0 #3b030a, -1.5px 1.5px 0 #3b030a, 0 0 20px rgba(234, 179, 8, 0.5);
}
.theme-crimson_gold_baroque_real .cert-footer {
  margin-top: 18px;
}
.theme-crimson_gold_baroque_real .cert-date {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(74, 5, 13, 0.95), 1.5px 1.5px 0 #3b030a, -1.5px -1.5px 0 #3b030a, 1.5px -1.5px 0 #3b030a, -1.5px 1.5px 0 #3b030a;
}
.theme-crimson_gold_baroque_real .cert-organizer {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 12px rgba(74, 5, 13, 0.95), 1.5px 1.5px 0 #3b030a, -1.5px -1.5px 0 #3b030a, 1.5px -1.5px 0 #3b030a, -1.5px 1.5px 0 #3b030a;
}
.theme-crimson_gold_baroque_real .cert-watermark-container,
.theme-crimson_gold_baroque_real .cert-seal-stamp {
  display: none !important;
}
.certificate-container.portrait.theme-crimson_gold_baroque_real .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-crimson_gold_baroque_real .cert-header {
  margin-top: 25px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-crimson_gold_baroque_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-crimson_gold_baroque_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-crimson_gold_baroque_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-crimson_gold_baroque_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-crimson_gold_baroque_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-crimson_gold_baroque_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-crimson_gold_baroque_real .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}

/* 🏛️ 提供画像そのまま：白大理石＆ローズゴールド */
.theme-marble_rosegold_real {
  background: #f8f9fa;
  color: #1e293b;
}
.theme-marble_rosegold_real .cert-content {
  padding: 34px 75px 28px 75px;
}
.theme-marble_rosegold_real .cert-header {
  gap: 0;
  margin-top: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-marble_rosegold_real .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-marble_rosegold_real .cert-badge-kanji {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 3.3rem;
  letter-spacing: 0.30em;
  margin-right: -0.30em;
  white-space: nowrap;
  display: inline-block;
  color: #be123c;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.9), 0 0 12px rgba(251, 113, 133, 0.4);
}
.theme-marble_rosegold_real .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
}
.theme-marble_rosegold_real .cert-award-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #e11d48;
  letter-spacing: 0.25em;
  border: 1.5px solid rgba(244, 63, 94, 0.8);
  padding: 2px 12px;
  border-radius: 6px;
  background: rgba(255, 228, 230, 0.6);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.3);
}
.theme-marble_rosegold_real .cert-award-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 2.7rem;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  color: #881337;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
}
.theme-marble_rosegold_real .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-marble_rosegold_real .cert-recipient-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #0f172a;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.9), 0 0 10px rgba(251, 113, 133, 0.3);
}
.theme-marble_rosegold_real .cert-recipient-honor {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #9f1239;
}
.theme-marble_rosegold_real .cert-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #0f172a;
  max-width: 820px;
  margin: 0 auto;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.95), -1px -1px 0 rgba(255,255,255,0.95), 1px -1px 0 rgba(255,255,255,0.95), -1px 1px 0 rgba(255,255,255,0.95);
}
.theme-marble_rosegold_real .cert-footer {
  margin-top: 18px;
}
.theme-marble_rosegold_real .cert-date {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #1e293b;
  white-space: nowrap;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
}
.theme-marble_rosegold_real .cert-organizer {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #1e293b;
  white-space: nowrap;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
}
.theme-marble_rosegold_real .cert-watermark-container,
.theme-marble_rosegold_real .cert-seal-stamp {
  display: none !important;
}
.certificate-container.portrait.theme-marble_rosegold_real .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-marble_rosegold_real .cert-header {
  margin-top: 25px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-marble_rosegold_real .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-marble_rosegold_real .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-marble_rosegold_real .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-marble_rosegold_real .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-marble_rosegold_real .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-marble_rosegold_real .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-marble_rosegold_real .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}

/* 11. ストリート系（グラフィティ） */
.theme-street_graffiti {
  background: #18181b;
  color: #fff;
}
.theme-street_graffiti .cert-badge-kanji {
  font-family: 'Dela Gothic One', sans-serif;
  color: #f97316;
  text-shadow: 3px 3px 0 #000, 0 0 15px #f97316;
}
.theme-street_graffiti .cert-award-sub {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  color: #38bdf8;
  letter-spacing: 0.15em;
}
.theme-street_graffiti .cert-award-title {
  font-family: 'Dela Gothic One', sans-serif;
  color: #fef08a;
  text-shadow: 2px 2px 0 #000;
}
.theme-street_graffiti .cert-recipient-name {
  font-family: 'Dela Gothic One', sans-serif;
  color: #fff;
}
.theme-street_graffiti .cert-body {
  color: #e4e4e7;
}

/* 12. アニマル・森の動物たち */
.theme-animal_forest {
  background: #f0fdf4;
  color: #14532d;
}
.theme-animal_forest .cert-badge-kanji {
  font-family: 'Mochiy Pop One', sans-serif;
  color: #15803d;
}
.theme-animal_forest .cert-award-sub {
  color: #ea580c;
}
.theme-animal_forest .cert-award-title {
  font-family: 'Mochiy Pop One', sans-serif;
  color: #b45309;
}
.theme-animal_forest .cert-recipient-name {
  font-family: 'Mochiy Pop One', sans-serif;
  color: #166534;
}

/* 13. ファンタジー・RPG風 */
.theme-fantasy_rpg {
  background: #fef3c7;
  color: #451a03;
}
.theme-fantasy_rpg .cert-badge-kanji {
  font-family: 'Shippori Mincho', serif;
  color: #78350f;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
.theme-fantasy_rpg .cert-award-sub {
  color: #b45309;
  letter-spacing: 0.3em;
}
.theme-fantasy_rpg .cert-award-title {
  color: #9a3412;
}
.theme-fantasy_rpg .cert-recipient-name {
  color: #451a03;
}

/* 14. デジタル・ピクセルアート */
.theme-pixel_game {
  background: #1e3a8a;
  color: #ffffff;
}
.theme-pixel_game .cert-badge-kanji {
  font-family: 'DotGothic16', 'Press Start 2P', monospace;
  color: #fde047;
  text-shadow: 3px 3px 0 #000;
}
.theme-pixel_game .cert-award-sub {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.95rem;
  color: #38bdf8;
}
.theme-pixel_game .cert-award-title {
  font-family: 'DotGothic16', monospace;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
}
.theme-pixel_game .cert-recipient-name {
  font-family: 'DotGothic16', monospace;
  color: #4ade80;
}
.theme-pixel_game .cert-body {
  font-family: 'DotGothic16', monospace;
  color: #f1f5f9;
}

/* 15. 情熱ファイヤー */
.theme-blazing_fire {
  background: radial-gradient(circle at bottom, #7f1d1d 0%, #1a0505 100%);
  color: #ffffff;
}
.theme-blazing_fire .cert-badge-kanji {
  color: #f97316;
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.7);
}
.theme-blazing_fire .cert-award-sub {
  color: #fbbf24;
}
.theme-blazing_fire .cert-award-title {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
}
.theme-blazing_fire .cert-recipient-name {
  color: #fef08a;
}
.theme-blazing_fire .cert-recipient-honor,
.theme-blazing_fire .cert-body,
.theme-blazing_fire .cert-date,
.theme-blazing_fire .cert-organizer {
  color: #fed7aa;
}

/* 16. ゆめかわリボン */
.theme-dreamy_ribbon {
  background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 100%);
  color: #4a3b4e;
}
.theme-dreamy_ribbon .cert-badge-kanji {
  color: #f43f5e;
}
.theme-dreamy_ribbon .cert-award-sub {
  color: #d946ef;
}
.theme-dreamy_ribbon .cert-award-title {
  color: #86198f;
}
.theme-dreamy_ribbon .cert-recipient-name {
  color: #701a75;
}
.theme-dreamy_ribbon .cert-body {
  color: #4a3b4e;
}

/* 17. サイバーネオン */
.theme-cyber_neon {
  background: #040814;
  color: #ffffff;
}
.theme-cyber_neon .cert-badge-kanji {
  color: #38bdf8;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.7);
}
.theme-cyber_neon .cert-award-sub {
  color: #06b6d4;
  text-shadow: 0 0 10px #06b6d4;
}
.theme-cyber_neon .cert-award-title {
  color: #f8fafc;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
}
.theme-cyber_neon .cert-recipient-name {
  color: #fde047;
  text-shadow: 0 0 15px rgba(253, 224, 71, 0.5);
}
.theme-cyber_neon .cert-recipient-honor,
.theme-cyber_neon .cert-body,
.theme-cyber_neon .cert-date,
.theme-cyber_neon .cert-organizer {
  color: #e2e8f0;
}

/* 18. アース・木枠 */
.theme-earth_nature {
  background: #f0fdf4;
  color: #1c1917;
}
.theme-earth_nature .cert-badge-kanji {
  color: #15803d;
}
.theme-earth_nature .cert-award-sub {
  color: #b45309;
}
.theme-earth_nature .cert-award-title {
  color: #292524;
}
.theme-earth_nature .cert-recipient-name {
  color: #166534;
}

/* 19. 黒板チョーク風 */
.theme-chalk_blackboard {
  background: #14281d;
  color: #ffffff;
}
.theme-chalk_blackboard .cert-badge-kanji {
  font-family: 'Shippori Mincho', cursive;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(255,255,255,0.5);
}
.theme-chalk_blackboard .cert-award-sub {
  color: #facc15;
}
.theme-chalk_blackboard .cert-award-title {
  color: #fef08a;
}
.theme-chalk_blackboard .cert-recipient-name {
  color: #38bdf8;
}
.theme-chalk_blackboard .cert-body {
  color: #f1f5f9;
}

/* 20. 和風・侍必勝 */
.theme-japanese_samurai {
  background: #fffdf8;
  color: #0f172a;
}
.theme-japanese_samurai .cert-badge-kanji {
  font-family: 'Yuji Boku', 'Shippori Mincho', serif;
  color: #991b1b;
  font-size: 3.6rem;
}
.theme-japanese_samurai .cert-award-sub {
  color: #b45309;
}
.theme-japanese_samurai .cert-award-title {
  font-family: 'Yuji Boku', serif;
  color: #0f172a;
}
.theme-japanese_samurai .cert-recipient-name {
  font-family: 'Yuji Boku', serif;
  color: #000;
  font-size: 3rem;
}

/* その他の既存テーマ */
.theme-comic_bang {
  background: #fffdf0;
  color: #111827;
}
.theme-comic_bang .cert-badge-kanji {
  font-family: 'Dela Gothic One', sans-serif;
  color: #dc2626;
  text-shadow: 2px 2px 0 #fbbf24, 4px 4px 0 #000;
}
/* 👑 深紅＆黄金鳳凰 */
.theme-royal_crimson {
  background: radial-gradient(circle at center, #7f1d1d 0%, #450a0a 100%);
  color: #fef08a;
}
.theme-royal_crimson .cert-content {
  padding: 34px 75px 28px 75px;
}
.theme-royal_crimson .cert-header {
  gap: 0;
  margin-top: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.theme-royal_crimson .cert-main-badge {
  white-space: nowrap;
  display: flex;
  justify-content: center;
}
.theme-royal_crimson .cert-badge-kanji {
  font-family: 'Shippori Mincho', serif;
  font-weight: 900;
  font-size: 3.3rem;
  letter-spacing: 0.30em;
  margin-right: -0.30em;
  white-space: nowrap !important;
  display: inline-block;
  color: #fef08a;
  text-shadow: 0 0 12px #ffffff, 0 0 25px #eab308, 0 0 45px #ca8a04;
}
.theme-royal_crimson .cert-award-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
}
.theme-royal_crimson .cert-award-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #fef08a;
  letter-spacing: 0.25em;
  border: 1.5px solid rgba(234, 179, 8, 0.8);
  padding: 2px 12px;
  border-radius: 6px;
  background: rgba(136, 19, 55, 0.45);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.4);
}
.theme-royal_crimson .cert-award-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 2.7rem;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(234, 179, 8, 0.8), 0 0 24px rgba(245, 158, 11, 0.6);
}
.theme-royal_crimson .cert-recipient-box {
  margin: 2px 0 16px 0;
  gap: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.theme-royal_crimson .cert-recipient-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255,255,255,0.9), 0 0 35px #facc15;
}
.theme-royal_crimson .cert-recipient-honor {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #fef08a;
}
.theme-royal_crimson .cert-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.50rem;
  line-height: 2.05;
  color: #fffbeb;
  max-width: 820px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95);
}
.theme-royal_crimson .cert-footer {
  margin-top: 18px;
}
.theme-royal_crimson .cert-date {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 1.30rem;
  color: #fef3c7;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95);
}
.theme-royal_crimson .cert-organizer {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: #fef3c7;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95);
}
.certificate-container.portrait.theme-royal_crimson .cert-content {
  padding: 45px 70px 40px 70px;
}
.certificate-container.portrait.theme-royal_crimson .cert-header {
  margin-top: 25px;
  margin-bottom: 12px;
}
.certificate-container.portrait.theme-royal_crimson .cert-recipient-box {
  margin: 12px 0 24px 0;
  gap: 12px;
}
.certificate-container.portrait.theme-royal_crimson .cert-recipient-name {
  font-size: 3.5rem;
}
.certificate-container.portrait.theme-royal_crimson .cert-body {
  font-size: 1.55rem;
  line-height: 2.25;
  margin: 20px auto 30px auto;
  max-width: 650px;
}
.certificate-container.portrait.theme-royal_crimson .cert-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-royal_crimson .cert-organizer-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}
.certificate-container.portrait.theme-royal_crimson .cert-date {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  white-space: nowrap !important;
}
.certificate-container.portrait.theme-royal_crimson .cert-organizer {
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  white-space: nowrap !important;
}
.theme-royal_wings {
  background: #ffffff;
  color: #0f172a;
}
.theme-royal_wings .cert-badge-kanji {
  color: #1e3a8a;
}
.theme-pop_balloons {
  background: #ffffff;
  color: #1e293b;
}
.theme-pop_balloons .cert-badge-kanji {
  font-family: 'Mochiy Pop One', sans-serif;
  color: #ec4899;
}
.theme-cosmic_galaxy {
  background: radial-gradient(circle at top right, #31104b 0%, #080718 100%);
  color: #ffffff;
}
.theme-cosmic_galaxy .cert-badge-kanji {
  color: #e0e7ff;
  text-shadow: 0 0 15px rgba(224, 231, 255, 0.8);
}
.theme-traditional_gold {
  background: radial-gradient(circle at center, #ffffff 60%, #faf8f2 100%);
  color: #111827;
}

/* ========================================================
   全テーマ共通：賞名拡大・英語サブ非表示・全文字外枠（縁取り）完全保証ルール
   ======================================================== */
.certificate-container .cert-award-sub,
.certificate-container .v-award-badge {
  display: none !important;
}
.certificate-container .cert-award-wrapper {
  gap: 0 !important;
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}
.certificate-container .cert-award-title {
  font-size: 3.45rem !important;
  letter-spacing: 0.28em !important;
  margin-right: -0.28em !important;
}
.certificate-container .cert-badge-kanji,
.certificate-container .cert-award-title,
.certificate-container .cert-recipient-name,
.certificate-container .cert-recipient-honor,
.certificate-container .cert-body,
.certificate-container .cert-date,
.certificate-container .cert-organizer,
.certificate-container .v-certificate-word,
.certificate-container .v-main-title,
.certificate-container .v-recipient-name,
.certificate-container .v-recipient-honor,
.certificate-container .v-body-text,
.certificate-container .v-date,
.certificate-container .v-organizer {
  paint-order: stroke fill;
}

/* ダーク・光彩系テーマの全テキスト外枠強化 */
.theme-winter_snow_real .cert-badge-kanji,
.theme-winter_snow_real .cert-award-title,
.theme-winter_snow_real .cert-recipient-name {
  -webkit-text-stroke: 4px #0c2646;
}
.theme-winter_snow_real .cert-recipient-honor,
.theme-winter_snow_real .cert-body,
.theme-winter_snow_real .cert-date,
.theme-winter_snow_real .cert-organizer {
  -webkit-text-stroke: 3px #0c2646;
}

.theme-japanese_fire_lightning_real .cert-badge-kanji,
.theme-japanese_fire_lightning_real .cert-award-title,
.theme-japanese_fire_lightning_real .cert-recipient-name {
  -webkit-text-stroke: 4px #180404;
  text-shadow:
    2.5px 2.5px 0 #180404, -2.5px -2.5px 0 #180404, 2.5px -2.5px 0 #180404, -2.5px 2.5px 0 #180404,
    0 2.5px 0 #180404, 0 -2.5px 0 #180404, 2.5px 0 0 #180404, -2.5px 0 0 #180404,
    0 0 18px rgba(239, 68, 68, 0.9);
}
.theme-japanese_fire_lightning_real .cert-recipient-honor,
.theme-japanese_fire_lightning_real .cert-body,
.theme-japanese_fire_lightning_real .cert-date,
.theme-japanese_fire_lightning_real .cert-organizer {
  -webkit-text-stroke: 3px #180404;
  text-shadow:
    1.5px 1.5px 0 #180404, -1.5px -1.5px 0 #180404, 1.5px -1.5px 0 #180404, -1.5px 1.5px 0 #180404,
    0 1.5px 0 #180404, 0 -1.5px 0 #180404, 1.5px 0 0 #180404, -1.5px 0 0 #180404,
    0 2px 6px rgba(0,0,0,0.95);
}

.theme-spring_sakura_real .cert-badge-kanji,
.theme-spring_sakura_real .cert-award-title,
.theme-spring_sakura_real .cert-recipient-name {
  -webkit-text-stroke: 4px #ffffff;
}
.theme-spring_sakura_real .cert-recipient-honor {
  -webkit-text-stroke: 3px #ffffff;
}
.theme-spring_sakura_real .cert-body,
.theme-spring_sakura_real .cert-date,
.theme-spring_sakura_real .cert-organizer {
  -webkit-text-stroke: 3px #4a0420;
}

.theme-summer_sun_real .cert-badge-kanji,
.theme-summer_sun_real .cert-award-title {
  -webkit-text-stroke: 4px #78350f;
}
.theme-summer_sun_real .cert-recipient-name {
  -webkit-text-stroke: 4px #072942;
}
.theme-summer_sun_real .cert-recipient-honor,
.theme-summer_sun_real .cert-body,
.theme-summer_sun_real .cert-date,
.theme-summer_sun_real .cert-organizer {
  -webkit-text-stroke: 3px #072942;
}

.theme-autumn_maple_real .cert-badge-kanji,
.theme-autumn_maple_real .cert-award-title,
.theme-autumn_maple_real .cert-recipient-name {
  -webkit-text-stroke: 4px #3a0a05;
}
.theme-autumn_maple_real .cert-recipient-honor,
.theme-autumn_maple_real .cert-body,
.theme-autumn_maple_real .cert-date,
.theme-autumn_maple_real .cert-organizer {
  -webkit-text-stroke: 3px #3a0a05;
}

.theme-crystal_galaxy_real .cert-badge-kanji,
.theme-crystal_galaxy_real .cert-award-title,
.theme-crystal_galaxy_real .cert-recipient-name {
  -webkit-text-stroke: 4px #180533;
  text-shadow:
    2.5px 2.5px 0 #180533, -2.5px -2.5px 0 #180533, 2.5px -2.5px 0 #180533, -2.5px 2.5px 0 #180533,
    0 2.5px 0 #180533, 0 -2.5px 0 #180533, 2.5px 0 0 #180533, -2.5px 0 0 #180533,
    0 0 18px rgba(192, 132, 252, 0.85);
}
.theme-crystal_galaxy_real .cert-recipient-honor,
.theme-crystal_galaxy_real .cert-body,
.theme-crystal_galaxy_real .cert-date,
.theme-crystal_galaxy_real .cert-organizer {
  -webkit-text-stroke: 3px #180533;
}

.theme-emerald_classic_real .cert-badge-kanji,
.theme-emerald_classic_real .cert-award-title,
.theme-emerald_classic_real .cert-recipient-name {
  -webkit-text-stroke: 4px #022018;
  text-shadow:
    2.5px 2.5px 0 #022018, -2.5px -2.5px 0 #022018, 2.5px -2.5px 0 #022018, -2.5px 2.5px 0 #022018,
    0 2.5px 0 #022018, 0 -2.5px 0 #022018, 2.5px 0 0 #022018, -2.5px 0 0 #022018,
    0 0 16px rgba(234, 179, 8, 0.75);
}
.theme-emerald_classic_real .cert-recipient-honor,
.theme-emerald_classic_real .cert-body,
.theme-emerald_classic_real .cert-date,
.theme-emerald_classic_real .cert-organizer {
  -webkit-text-stroke: 3px #022018;
}

.theme-black_gold_geo_real .cert-badge-kanji,
.theme-black_gold_geo_real .cert-award-title,
.theme-black_gold_geo_real .cert-recipient-name {
  -webkit-text-stroke: 4px #050505;
  text-shadow:
    2.5px 2.5px 0 #050505, -2.5px -2.5px 0 #050505, 2.5px -2.5px 0 #050505, -2.5px 2.5px 0 #050505,
    0 2.5px 0 #050505, 0 -2.5px 0 #050505, 2.5px 0 0 #050505, -2.5px 0 0 #050505,
    0 0 16px rgba(234, 179, 8, 0.8);
}
.theme-black_gold_geo_real .cert-recipient-honor,
.theme-black_gold_geo_real .cert-body,
.theme-black_gold_geo_real .cert-date,
.theme-black_gold_geo_real .cert-organizer {
  -webkit-text-stroke: 3px #050505;
}

.theme-crimson_gold_baroque_real .cert-badge-kanji,
.theme-crimson_gold_baroque_real .cert-award-title,
.theme-crimson_gold_baroque_real .cert-recipient-name,
.theme-royal_crimson .cert-badge-kanji,
.theme-royal_crimson .cert-award-title,
.theme-royal_crimson .cert-recipient-name {
  -webkit-text-stroke: 4px #2a0207;
  text-shadow:
    2.5px 2.5px 0 #2a0207, -2.5px -2.5px 0 #2a0207, 2.5px -2.5px 0 #2a0207, -2.5px 2.5px 0 #2a0207,
    0 2.5px 0 #2a0207, 0 -2.5px 0 #2a0207, 2.5px 0 0 #2a0207, -2.5px 0 0 #2a0207,
    0 0 16px rgba(234, 179, 8, 0.8);
}
.theme-crimson_gold_baroque_real .cert-recipient-honor,
.theme-crimson_gold_baroque_real .cert-body,
.theme-crimson_gold_baroque_real .cert-date,
.theme-crimson_gold_baroque_real .cert-organizer,
.theme-royal_crimson .cert-recipient-honor,
.theme-royal_crimson .cert-body,
.theme-royal_crimson .cert-date,
.theme-royal_crimson .cert-organizer {
  -webkit-text-stroke: 3px #2a0207;
  text-shadow:
    1.5px 1.5px 0 #2a0207, -1.5px -1.5px 0 #2a0207, 1.5px -1.5px 0 #2a0207, -1.5px 1.5px 0 #2a0207,
    0 1.5px 0 #2a0207, 0 -1.5px 0 #2a0207, 1.5px 0 0 #2a0207, -1.5px 0 0 #2a0207,
    0 2px 6px rgba(0,0,0,0.95);
}

/* ライト系テーマ（羊皮紙・白大理石）の全テキスト白外枠強化 */
.theme-parchment_vintage_real .cert-badge-kanji,
.theme-parchment_vintage_real .cert-award-title,
.theme-parchment_vintage_real .cert-recipient-name,
.theme-marble_rosegold_real .cert-badge-kanji,
.theme-marble_rosegold_real .cert-award-title,
.theme-marble_rosegold_real .cert-recipient-name {
  -webkit-text-stroke: 4px #ffffff;
  text-shadow:
    2px 2px 0 #ffffff, -2px -2px 0 #ffffff, 2px -2px 0 #ffffff, -2px 2px 0 #ffffff,
    0 2px 0 #ffffff, 0 -2px 0 #ffffff, 2px 0 0 #ffffff, -2px 0 0 #ffffff;
}
.theme-parchment_vintage_real .cert-recipient-honor,
.theme-parchment_vintage_real .cert-body,
.theme-parchment_vintage_real .cert-date,
.theme-parchment_vintage_real .cert-organizer,
.theme-marble_rosegold_real .cert-recipient-honor,
.theme-marble_rosegold_real .cert-body,
.theme-marble_rosegold_real .cert-date,
.theme-marble_rosegold_real .cert-organizer {
  -webkit-text-stroke: 2.5px #ffffff;
  text-shadow:
    1.5px 1.5px 0 #ffffff, -1.5px -1.5px 0 #ffffff, 1.5px -1.5px 0 #ffffff, -1.5px 1.5px 0 #ffffff,
    0 1.5px 0 #ffffff, 0 -1.5px 0 #ffffff, 1.5px 0 0 #ffffff, -1.5px 0 0 #ffffff;
}

/* ========================================================
   印刷用スタイル (@media print)
   ======================================================== */
@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }
  body, html {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    width: 297mm !important;
    height: 210mm !important;
  }
  .control-panel, .preview-toolbar, .modal-overlay {
    display: none !important;
  }
  .app-layout, .preview-area, .preview-stage-wrapper {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    width: 297mm !important;
    height: 210mm !important;
  }
  .certificate-container.landscape {
    width: 297mm !important;
    height: 210mm !important;
    min-width: 297mm !important;
    min-height: 210mm !important;
    max-width: 297mm !important;
    max-height: 210mm !important;
    box-shadow: none !important;
    transform: none !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .certificate-container.portrait {
    width: 210mm !important;
    height: 297mm !important;
    min-width: 210mm !important;
    min-height: 297mm !important;
    max-width: 210mm !important;
    max-height: 297mm !important;
    box-shadow: none !important;
    transform: none !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
