/************************************************************
 * 全体2カラムレイアウト
 ************************************************************/
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  height: 100%;
}

.container {
  --left-pane-width: calc((100vw - 10px) / 2);
  display: flex;
  /* 左右2カラム */
  height: 100vh;
  /* 画面全体の高さ */
}

.left,
.right {
  overflow-y: auto;
  overflow-x: hidden;
}

.left {
  flex: 0 0 var(--left-pane-width);
  width: var(--left-pane-width);
}

.right {
  flex: 1 1 0;
  min-width: 0;
}

/* .pane-resizer, body.is-pane-resizing → editor-shared.css */

/* 左カラム：フォーム */
.left {
  background-color: #ffffff;
  /* Cleaner white background */
  border-right: 1px solid #e0e0e0;
  color: #333;
  position: relative;
  box-sizing: border-box;
  padding: 0 0 40px 0;
  /* Custom Scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #ccc #f0f0f0;
}

/* .left::-webkit-scrollbar*, header block, save-status banner, access-state
   badges, .choice-box, .first-box/.second-box → editor-shared.css */

.header-left hr {
  display: none;
}

/* Upload Area */
.upload-wrapper {
  margin-bottom: 30px;
  margin-left: 0;
  padding: 0 40px;
  text-align: center;
}

.upload-area {
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  text-align: center;
  padding: 30px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: auto;
  width: 100%;
  background-color: #f8fafc;
  box-sizing: border-box;
  margin: 0 auto;
}

.upload-text {
  color: #718096;
  font-size: 0.95rem;
  margin-top: 10px;
}

.upload-area:hover {
  border-color: #2cddb4;
  background-color: #f0fdfa;
}

/* Form Groups */
.form-group {
  margin-top: 30px;
  color: #333;
  font-size: 16px;
  border-radius: 0;
  width: 100%;
  margin-left: 0;
  padding: 0 40px;
  box-sizing: border-box;
}

/* Specific Groups Alignment */
.name-group,
.furigana-group,
.birthday-box,
.post-code-group,
.address-furigana-group,
.address-group,
.tell-group,
.mail-group,
.t-post-code-group,
.t-address-furigana-group,
.t-address-group,
.t-tell-group,
.t-mail-group {
  margin-left: 0;
  padding: 0 40px;
  width: 100%;
  box-sizing: border-box;
}

.name-group,
.furigana-group {
  margin-top: 30px;
}

.row-inline {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  /* Allow wrapping on small screens */
  gap: 20px;
}

.name-group {
  flex: 1;
  padding-right: 10px;
}

.furigana-group {
  flex: 1;
  padding-left: 10px;
  margin-right: 0;
}

.birthday-box {
  margin-top: 30px;
  margin-bottom: 20px;
}

.birthday-box label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 16px;
}

.birthday-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.year-month-select,
.day-age-select,
.gender-select {
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  background-color: #f7fafc;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
}

.year-month-select {
  width: 80px;
  height: 40px;
}

.birthday-container .year-month-select,
.birthday-container .day-age-select {
  border-color: #e2e8f0;
}

.year-month-input {
  text-align: left;
  padding-right: 24px;
  cursor: text;
  appearance: textfield;
}

.year-input-wrap {
  display: inline-flex;
  align-items: stretch;
}

.year-stepper {
  margin-left: -20px;
  display: flex;
  flex-direction: column;
}

.year-step-btn {
  width: 20px;
  border: 1px solid #e2e8f0;
  border-left: none;
  background-color: #f7fafc;
  color: #4a5568;
  font-size: 10px;
  line-height: 1;
  height: 20px;
  padding: 0;
  cursor: pointer;
}

.year-step-btn:first-child {
  border-top-right-radius: 7px;
}

.year-step-btn:last-child {
  border-bottom-right-radius: 7px;
  border-top: 0;
}

.year-step-btn:focus {
  outline: none;
  background-color: #edf2f7;
}

.year-month-input::-webkit-outer-spin-button,
.year-month-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.day-age-select {
  width: 70px;
  height: 40px;
}

.calculated-age {
  min-width: 2ch;
  color: #334155;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

.gender-select {
  width: 90px;
  height: 40px;
}

.gender-label {
  margin-left: 10px;
  margin-right: 4px;
}

.photo-upload-container {
  margin: 20px auto;
  width: 100%;
  padding: 0 40px;
  text-align: left;
  box-sizing: border-box;
}

.photo-upload-container>label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

.photo-placeholder {
  width: 120px;
  height: 160px;
  border: 2px dashed #cbd5e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  color: #a0aec0;
  background-color: #f8fafc;
  transition: all 0.2s;
}

.photo-placeholder:hover {
  border-color: #2cddb4;
  color: var(--sw-accent);
  background-color: #f0fdfa;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #4a5568;
  font-size: 0.95rem;
}

input[type="text"],
textarea,
input[type="file"] {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  margin-bottom: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f7fafc;
  color: #2d3748;
  transition: all 0.2s;
  box-sizing: border-box;
}

input[type="text"]:focus,
textarea:focus,
input[type="file"]:focus,
select:focus {
  border-color: #2cddb4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(44, 221, 180, 0.15);
  outline: none;
}

textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.email-input {
  min-height: 76px;
  resize: vertical;
  line-height: 1.4;
}

.limited-textarea {
  margin-bottom: 6px;
}

.lined-input {
  line-height: 1.5;
  background-color: #f7fafc;
  background-image: none;
}

.motivation-input {
  min-height: 220px;
}

.request-input {
  min-height: 146px;
}

.limited-textarea.is-near-limit {
  border-color: #f59e0b;
  background: #fffaf0;
}

.limited-textarea.is-limit-reached {
  border-color: #dc2626;
  background: #fff5f5;
  background-image: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.limited-textarea.is-limit-reached:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.limit-status {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 0;
  margin: -2px 2px 15px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.limit-status.is-near-limit {
  color: #b45309;
}

.limit-status.is-limit-reached {
  min-height: 18px;
  color: #dc2626;
}

.section-title {
  margin-top: 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 2px solid #2cddb4;
  padding-bottom: 10px;
  margin-bottom: 20px;
  color: #2d3748;
  letter-spacing: 0.05em;
  margin-left: 40px;
  margin-right: 40px;
}

.form-inline {
  display: flex;
  gap: 15px;
}

.row-container {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  margin-bottom: 20px;
  margin-left: 40px;
  margin-right: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.edu-year,
.edu-month,
.license-year,
.license-month {
  width: 70px;
  height: 40px;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  background-color: #f7fafc;
  text-align: center;
}

.history-kind-select {
  width: 104px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  background-color: #f7fafc;
  text-align: center;
}

.edu-work {
  width: 300px;
  height: 40px;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  background-color: #f7fafc;
}

.skill-history {
  width: 300px;
  height: 40px;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  background-color: #f7fafc;
  text-align: left;
}

.buttons-inline {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding: 0 40px;
}

/* .btn/.btn-primary/.btn-danger, .pdf-btn-wrapper/.pdf-btn → editor-shared.css */


/************************************************************
 * 右カラム：履歴書プレビュー (複数ページ分割)
 ************************************************************/
.right {
  /* Modern Background */
  background-color: #f0f4f8;
  background-image:
    radial-gradient(at 10% 10%, hsla(210, 100%, 96%, 1) 0px, transparent 50%),
    radial-gradient(at 90% 90%, hsla(180, 100%, 96%, 1) 0px, transparent 50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-y: auto;
  overflow-x: auto;
  padding: 40px;
  position: relative;
  cursor: grab;
  touch-action: none;
}

.right.is-panning {
  cursor: grabbing;
  user-select: none;
}

.right.is-panning * {
  cursor: grabbing;
  user-select: none;
}

/* ズームコントロール */
.zoom-controls {
  position: fixed;
  top: 40px;
  left: calc(var(--left-pane-width) + ((100vw - var(--left-pane-width)) / 2) - 74px);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 0;
  user-select: none;
  cursor: default;
}

/* .zoom-btn, .zoom-level → editor-shared.css */

.resume-pages-viewport {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
}

.resume-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: max-content;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  backface-visibility: hidden;
}

.resume-page {
  background-color: #fff;
  width: 210mm;
  height: 297mm;
  box-sizing: border-box;
  padding: 9mm;
  margin: 0;
  position: relative;
  overflow: hidden;
  border: none;

  /* Modern Shadow for "Paper" effect */
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.11),
    0 2px 2px rgba(0, 0, 0, 0.11),
    0 4px 4px rgba(0, 0, 0, 0.11),
    0 8px 8px rgba(0, 0, 0, 0.11),
    0 16px 16px rgba(0, 0, 0, 0.11),
    0 32px 32px rgba(0, 0, 0, 0.11);
  transition: transform 0.3s ease;
}

.resume-page:hover {
  transform: translateY(-2px);
}

.resume-content {
  margin: 0;
  padding: 0;
}

@media print {
  .right {
    background: none;
    padding: 0;
  }

  .resume-page {
    margin: 0;
    box-shadow: none;
    width: 100%;
    height: auto;
    page-break-after: always;
  }

  .resume-page:last-child {
    page-break-after: auto;
  }
}

.resume-preview {
  color: #000;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
}

.resume-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 0 2mm;
}

.resume-content .title {
  font-family: "Yu Mincho", "MS Mincho", serif;
  font-size: 22pt;
  font-weight: bold;
  margin-bottom: 0;
  line-height: 1;
  letter-spacing: 0.18em;
}

.resume-content .date-right {
  text-align: right;
  font-size: 10pt;
  font-weight: normal;
  margin: 5mm 55mm 0 0;
  line-height: 1;
}

.resume-basic-block {
  display: flex;
  align-items: flex-start;
  gap: 18mm;
  margin-bottom: -1.5px;
}

.basic-main {
  width: 147mm;
}

.cell-label {
  display: inline-block;
  font-weight: normal;
  margin-right: 4mm;
  white-space: nowrap;
}

.name-furigana-table {
  width: 100%;
  border: 1.5px solid #000;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  margin: 0;
}

tr.furigana-box td.furigana-value {
  height: 7mm;
  padding: 0 3mm;
  text-align: left;
  font-size: 9pt;
  border-bottom: 1px solid #000;
  vertical-align: middle;
}

tr.name-table td.name-value-left {
  height: 22mm;
  padding: 0 3mm;
  text-align: left;
  font-size: 20pt;
  vertical-align: middle;
}

.birthday-value {
  height: 11mm;
  border-right: 1px solid #000;
  text-align: center;
  font-size: 11pt;
  vertical-align: middle;
}

.gender-value {
  width: 54mm;
  text-align: left;
  font-size: 10pt;
  vertical-align: middle;
  padding-left: 2mm;
}

.photo-box {
  position: relative;
  width: 32mm;
  height: 40mm;
  border: 1px dashed #bbb;
  overflow: hidden;
  text-align: center;
  color: #333;
  font-size: 7.5pt;
  line-height: 1.25;
  padding: 4mm 2mm 0;
  box-sizing: border-box;
}

.photo-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.photo-box img[src] {
  display: block;
}

.photo-box:has(img[src]) {
  border-color: transparent;
}

.photo-box img[src] + .photo-guide {
  display: none;
}

.contact-info-table {
  width: 100%;
  border: 1.5px solid #000;
  margin: 0 0 -1.5px;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
}

.contact-info {
  height: 7mm;
  text-align: left;
}

td.address-furigana-value {
  border-bottom: 1px solid #000;
  border-right: 1px solid #000;
  width: auto;
  font-size: 9pt;
  padding: 0 3mm;
  vertical-align: middle;
}

td.tel-value {
  border-bottom: 1px solid #000;
  width: 42mm;
  font-size: 10pt;
  text-align: left;
  padding: 0 3mm;
  vertical-align: middle;
}

td.address-value {
  border-right: 1px solid #000;
  text-align: left;
  height: 22mm;
  font-size: 10pt;
  line-height: 1.35;
  padding: 1mm 3mm;
  vertical-align: top;
}

.tel-value-bottom {
  border-bottom: none;
}

.alt-contact-table {
  width: 100%;
  border: 1.5px solid #000;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
}

.alt-contact-info {
  height: 7mm;
  text-align: left;
}

td.alt-address-furigana-value {
  border-bottom: 1px solid #000;
  border-right: 1px solid #000;
  width: auto;
  font-size: 9pt;
  padding: 0 3mm;
  vertical-align: middle;
}

td.alt-tel-value {
  border-bottom: 1px solid #000;
  width: 42mm;
  font-size: 10pt;
  text-align: left;
  padding: 0 3mm;
  vertical-align: middle;
}

td.alt-address-value {
  border-right: 1px solid #000;
  text-align: left;
  height: 22mm;
  font-size: 10pt;
  line-height: 1.35;
  padding: 1mm 3mm;
  vertical-align: top;
}

.alt-note {
  float: right;
  font-size: 8pt;
  color: #000;
  line-height: 1.2;
}

.alt-tel-value-bottom {
  border-bottom: none;
}

.education-table {
  width: 100%;
  border: 1.5px solid #000;
  margin: 5.5mm 0 0;
  border-collapse: collapse;
  border-spacing: 0;
  text-align: center;
  table-layout: fixed;
}

.education-info {
  height: 8mm;
  text-align: center;
}

th.education-year {
  width: 19mm;
  height: 8mm;
  border-right: 1px dotted #000;
  font-size: 7pt;
  font-weight: bold;
}

th.education-container-month {
  width: 19mm;
  height: 8mm;
  border-right: 1px dotted #000;
  font-size: 7pt;
  font-weight: bold;
}

th.education-history {
  height: 8mm;
  font-size: 7pt;
  font-weight: bold;
}

td.education-year-value {
  border-right: 1px dotted #000;
  border-top: 1px dotted #000;
  height: 12mm;
  font-size: 9pt;
  vertical-align: middle;
}

td.education-container-month-value {
  border-right: 1px dotted #000;
  border-top: 1px dotted #000;
  height: 12mm;
  font-size: 9pt;
  vertical-align: middle;
}

td.education-history-value {
  border-top: 1px dotted #000;
  height: 12mm;
  font-size: 9pt;
  text-align: left;
  padding: 0 2mm;
  vertical-align: middle;
}

.history-row-section .education-history-value,
.history-row-section .right-main-cell {
  font-weight: 700;
  padding: 0;
  text-align: center;
}

.history-row-end .education-history-value,
.history-row-end .right-main-cell {
  padding-right: 3mm;
  text-align: right;
}

.skill-table {
  width: 100%;
  border: 1.5px solid #000;
  margin: 6mm 0 0;
  border-collapse: collapse;
  border-spacing: 0;
  text-align: center;
  table-layout: fixed;
}

.skill-info {
  height: 30px;
  text-align: center;
}

th.skill-year {
  width: 19mm;
  height: 8mm;
  border-right: 1px dotted #000;
  font-size: 7pt;
  font-weight: bold;
}

th.skill-container-month {
  width: 19mm;
  height: 8mm;
  border-right: 1px dotted #000;
  font-size: 7pt;
  font-weight: bold;
}

th.skill-history {
  height: 8mm;
  font-size: 7pt;
  font-weight: bold;
  text-align: center;
}

td.skill-year-value {
  border-right: 1px dotted #000;
  border-top: 1px dotted #000;
  height: 8.6mm;
  font-size: 9pt;
  vertical-align: middle;
}

td.skill-container-month-value {
  border-right: 1px dotted #000;
  border-top: 1px dotted #000;
  height: 8.6mm;
  font-size: 9pt;
  vertical-align: middle;
}

td.skill-history-value {
  border-top: 1px dotted #000;
  height: 8.6mm;
  font-size: 9pt;
  text-align: left;
  padding: 0 2mm;
  vertical-align: middle;
}

.motivation-table {
  width: 100%;
  border: 1.5px solid #000;
  margin: 6mm 0 0;
  border-collapse: collapse;
}

th.motivation-label {
  height: 7mm;
  text-align: left;
  vertical-align: top;
  font-size: 7pt;
  padding: 1mm 2mm;
}

td.motivation-value {
  height: 38mm;
  text-align: left;
  vertical-align: top;
  font-size: 9pt;
  line-height: 1.5;
  padding: 2mm;
  white-space: pre-wrap;
}

.pr-table {
  width: 100%;
  border: 1.5px solid #000;
  margin: 6mm 0 0;
  border-collapse: collapse;
}

th.pr-label {
  height: 7mm;
  text-align: left;
  vertical-align: top;
  font-size: 7pt;
  padding: 1mm 2mm;
}

td.pr-value {
  height: 38mm;
  text-align: left;
  vertical-align: top;
  font-size: 9pt;
  line-height: 1.5;
  padding: 2mm;
  white-space: pre-wrap;
}

.request-table {
  width: 100%;
  border: 1.5px solid #000;
  margin: 6mm 0 0;
  border-collapse: collapse;
}

th.request-label {
  height: 7mm;
  text-align: left;
  vertical-align: top;
  font-size: 7pt;
  padding: 1mm 2mm;
}

td.request-value {
  height: 38mm;
  text-align: left;
  vertical-align: top;
  font-size: 9pt;
  line-height: 1.5;
  padding: 2mm;
  white-space: pre-wrap;
}

table,
tr,
td,
th {
  page-break-inside: avoid;
}

.block {
  margin-bottom: 0;
}

/* MHLW resume faithful reproduction */
.resume-page {
  width: 420mm;
  height: 297mm;
  padding: 0;
  overflow: hidden;
}

.resume-content,
.resume-preview,
.mhlw-sheet {
  width: 100%;
  height: 100%;
}

.mhlw-sheet {
  position: relative;
  --line-outer-width: 1.6px;
  --line-inner-width: 1.1px;
  --line-light-width: 0.8px;
  --line-outer-color: #111;
  --line-inner-color: #222;
  --line-light-color: #555;
  --line-outer: var(--line-outer-width) solid var(--line-outer-color);
  --line-inner: var(--line-inner-width) solid var(--line-inner-color);
  --line-light: var(--line-light-width) solid var(--line-light-color);
  --border-outer: var(--line-outer);
  --border-inner: var(--line-inner);
  --border-light: var(--line-light);
  --mhlw-table-width: 172.14mm;
  --mhlw-name-right-x: 115.08mm;
  --mhlw-phone-left-x: 136.5mm;
  --mhlw-gender-width: calc(var(--mhlw-table-width) - var(--mhlw-name-right-x));
  --mhlw-phone-width: calc(var(--mhlw-table-width) - var(--mhlw-phone-left-x));
  --mhlw-head-h: 7.62mm;
  --mhlw-row-h: 9.06mm;
  --mhlw-year-col: 20mm;
  --mhlw-month-col: 9mm;
  --mhlw-motivation-top-gap: 3.48mm;
  --mhlw-motivation-h: 61.82mm;
  --mhlw-motivation-header-h: 6.4mm;
  --mhlw-request-top-gap: 3.05mm;
  --mhlw-request-h: 36.01mm;
  --mhlw-request-header-h: 6.4mm;
  --mhlw-request-body-h: calc(var(--mhlw-request-h) - var(--mhlw-request-header-h));
  --mhlw-request-row-h: calc(var(--mhlw-request-body-h) / 4);
  color: #222;
  background: #fff;
  font-family: "Yu Mincho", "MS Mincho", serif;
  font-size: 9pt;
}

.mhlw-left-page,
.mhlw-right-page {
  position: absolute;
  width: var(--mhlw-table-width);
}

.mhlw-left-page {
  left: 23.97mm;
  top: 27.61mm;
}

.mhlw-left-line-layer {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--mhlw-table-width);
  height: 99mm;
  pointer-events: none;
  z-index: 4;
}

.mhlw-left-line-layer i {
  position: absolute;
  display: block;
  background: var(--line-outer-color);
}

.mhlw-right-page {
  left: 229.22mm;
  top: 27.61mm;
}

.resume-heading {
  height: 11.26mm;
  display: block;
  margin: 0;
  position: relative;
}

.resume-content .title {
  position: absolute;
  left: 0.2mm;
  top: -0.45mm;
  font-family: "Yu Mincho", "MS Mincho", serif;
  font-size: 20pt;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.resume-content .date-right {
  position: absolute;
  left: 70.5mm;
  top: 5.4mm;
  width: 50mm;
  margin: 0;
  font-size: 10pt;
  text-align: left;
  white-space: nowrap;
}

.resume-basic-block {
  display: block;
  position: relative;
  width: 100%;
  height: 41.91mm;
  margin: 0;
  background: none;
}

.basic-main {
  width: 117mm;
}

.cell-label {
  display: inline;
  margin: 0;
  font-weight: 400;
}

.input-value {
  box-sizing: border-box;
  color: #111;
  font-family: "Yu Mincho", "MS Mincho", serif;
  font-weight: 400;
  line-height: 1.35;
  overflow: hidden;
}

.name-furigana-table,
.contact-info-table,
.alt-contact-table,
.education-table,
.skill-table,
.motivation-table,
.request-table {
  border: var(--border-outer);
  border-collapse: collapse;
  box-sizing: border-box;
  table-layout: fixed;
  margin: 0;
  width: 100%;
  color: #222;
  font-family: "Yu Mincho", "MS Mincho", serif;
}

.identity-name-box,
.identity-birthday-row,
.identity-gender-row {
  position: absolute;
  box-sizing: border-box;
  border: 0;
  font-family: "Yu Mincho", "MS Mincho", serif;
}

.identity-name-box {
  left: 0;
  top: 0;
  width: var(--mhlw-name-right-x);
  height: 32.81mm;
}

.identity-furigana-row {
  position: relative;
  height: 5.67mm;
  display: flex;
  align-items: center;
  padding: 0 2.5mm;
  border-bottom: 0;
  font-size: 9pt;
  line-height: 1;
}

.identity-name-row {
  position: relative;
  height: 27.14mm;
  padding: 1mm 2.5mm 0;
  font-size: 11pt;
  line-height: 1.2;
}

.field-furigana-value {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 28mm);
  font-size: 8.5pt;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.field-name-value {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 34mm);
  font-size: 20pt;
  line-height: 1.2;
  white-space: nowrap;
}

.identity-birthday-row {
  left: 0;
  top: 32.81mm;
  width: var(--mhlw-name-right-x);
  height: 9.1mm;
  font-size: 11pt;
  line-height: 8.6mm;
  text-align: center;
}

.field-birth-value {
  position: absolute;
  inset: 0.1mm 2mm 0 2mm;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5pt;
  line-height: 1;
  letter-spacing: 0;
  word-spacing: 0;
  white-space: nowrap;
}

.identity-gender-row {
  left: var(--mhlw-name-right-x);
  top: 32.81mm;
  width: var(--mhlw-gender-width);
  height: 9.1mm;
  z-index: 2;
  box-sizing: border-box;
  font-size: 11pt;
  line-height: 1;
  padding: 0.65mm 0 0 0.35mm;
}

.gender-label-text {
  display: inline-block;
  line-height: 1;
}

.field-gender-value {
  position: absolute;
  left: 21mm;
  right: 2mm;
  top: 2.2mm;
  font-size: 13pt;
  line-height: 1.2;
  white-space: nowrap;
}

.photo-box {
  position: absolute;
  left: 130.91mm;
  top: -11.13mm;
  width: 30.18mm;
  height: 38.71mm;
  padding: 5mm 2mm 0;
  border: 0.5px dashed #bbb;
  box-sizing: border-box;
  color: #333;
  font-size: 7.5pt;
  line-height: 1.27;
  text-align: center;
}

.photo-guide {
  display: none;
}

.photo-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.photo-box img[src] {
  display: block;
}

.photo-box:has(img[src]) {
  border-color: transparent;
}

.photo-box img[src] + .photo-guide {
  display: none;
}

.contact-info-table,
.alt-contact-table {
  height: 22.7mm;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.contact-info-table {
  border-top: 0;
}

.alt-contact-table {
  border-top: 0;
}

.contact-info,
.alt-contact-info {
  height: 5.67mm;
}

.contact-address-col {
  width: var(--mhlw-phone-left-x);
}

.contact-phone-col {
  width: var(--mhlw-phone-width);
}

td.address-furigana-value,
td.alt-address-furigana-value {
  position: relative;
  width: auto;
  height: 5.67mm;
  padding: 0 2.5mm;
  box-sizing: border-box;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  font-size: 9pt;
  line-height: 1;
  vertical-align: middle;
}

td.tel-value,
td.alt-tel-value {
  position: relative;
  width: auto;
  padding: 0 3mm;
  box-sizing: border-box;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  font-size: 12pt;
  line-height: 1;
  text-align: left;
  vertical-align: middle;
}

td.address-value,
td.alt-address-value {
  position: relative;
  height: 17.03mm;
  padding: 0.4mm 2.5mm 1mm;
  box-sizing: border-box;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  font-size: 12pt;
  line-height: 1.25;
  vertical-align: top;
}

td.address-value > .cell-label,
td.alt-address-value > .cell-label {
  position: absolute;
  left: 2.5mm;
  top: 0.6mm;
}

.field-address-furigana-value {
  position: absolute;
  left: 50%;
  right: auto;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 24mm);
  font-size: 7.5pt;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.field-postal-value {
  position: absolute;
  left: 26mm;
  top: 0.6mm;
  display: block;
  margin-left: 0;
  max-width: 40mm;
  font-size: 13pt;
  line-height: 1.2;
  white-space: nowrap;
}

.field-address-value {
  position: absolute;
  left: 2.5mm;
  right: 4mm;
  top: 8mm;
  bottom: 1.5mm;
  display: block;
  font-size: 14pt;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.field-address-value.field-address-value-long {
  top: 7mm;
  font-size: 12pt;
  line-height: 1.18;
  word-break: normal;
  overflow-wrap: anywhere;
}

.field-address-value.field-address-value-very-long {
  top: 6.5mm;
  font-size: 10.5pt;
  line-height: 1.12;
}

.field-phone-value {
  position: absolute;
  left: 12mm;
  right: 1mm;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  font-size: 8.5pt;
  line-height: 1.15;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.email-label {
  position: absolute;
  left: 2.5mm;
  top: 1.1mm;
  font-size: 8.5pt;
  line-height: 1;
}

td.tel-value > .cell-label:not(.email-label),
td.alt-tel-value > .cell-label:not(.email-label) {
  position: absolute;
  left: 2.5mm;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9.2pt;
  line-height: 1;
}

.field-email-value {
  position: absolute;
  left: 2.5mm;
  right: 2.5mm;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  font-size: 8pt;
  line-height: 1.08;
  text-align: center;
  white-space: pre-line;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
  text-overflow: clip;
  max-height: 2.16em;
}

.field-email-value.field-email-value-medium {
  font-size: 7.2pt;
}

.field-email-value.field-email-value-long {
  font-size: 6.6pt;
}

.field-email-value.field-email-value-tiny {
  font-size: 6pt;
}

.field-email-value.field-email-value-micro {
  font-size: 4pt;
}

.tel-value-bottom,
.alt-tel-value-bottom {
  border-bottom: 0;
}

.alt-note {
  float: right;
  font-size: 9pt;
  line-height: 1.2;
}

.education-table-left {
  margin-top: 3.81mm;
}

.education-table,
.skill-table {
  font-size: 11pt;
}

.education-info,
.skill-info {
  height: var(--mhlw-head-h);
}

th.education-year,
th.skill-year {
  width: var(--mhlw-year-col);
  border-right: var(--border-light);
  font-size: 11pt;
  font-weight: 400;
}

th.education-container-month,
th.skill-container-month {
  width: var(--mhlw-month-col);
  border-right: var(--border-outer);
  font-size: 11pt;
  font-weight: 400;
}

th.education-history,
th.skill-history {
  font-size: 11pt;
  font-weight: 400;
  letter-spacing: 0.16em;
}

td.education-year-value,
td.skill-year-value {
  width: var(--mhlw-year-col);
  height: var(--mhlw-row-h);
  border-top: var(--border-outer);
  border-right: var(--border-light);
  font-size: 10pt;
  vertical-align: middle;
}

td.education-container-month-value,
td.skill-container-month-value {
  width: var(--mhlw-month-col);
  height: var(--mhlw-row-h);
  border-top: var(--border-outer);
  border-right: var(--border-outer);
  font-size: 10pt;
  vertical-align: middle;
}

td.education-history-value,
td.skill-history-value {
  height: var(--mhlw-row-h);
  padding: 0 2mm;
  border-top: var(--border-outer);
  font-size: 10pt;
  line-height: 1.2;
  text-align: left;
  vertical-align: middle;
}

.education-table-right td.education-year-value,
.education-table-right td.education-container-month-value,
.education-table-right td.education-history-value {
  height: var(--mhlw-row-h);
}

.skill-table {
  margin-top: -1.2px;
}

.right-history-license-table {
  width: 100%;
  border: var(--border-outer);
  border-collapse: collapse;
  box-sizing: border-box;
  table-layout: fixed;
  margin: 0;
  font-family: "Yu Mincho", "MS Mincho", serif;
  color: #222;
}

.right-section-heading {
  height: var(--mhlw-head-h);
}

.right-year-heading,
.right-month-heading,
.right-main-heading {
  font-size: 11pt;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
}

.right-year-heading,
.right-year-cell {
  width: var(--mhlw-year-col);
  border-right: var(--border-light);
}

.right-month-heading,
.right-month-cell {
  width: var(--mhlw-month-col);
  border-right: var(--border-outer);
}

.right-main-heading {
  letter-spacing: 0.16em;
}

.right-section-heading th {
  border-bottom: var(--border-outer);
}

.license-heading-row th {
  border-top: var(--border-outer);
}

.right-entry-row {
  height: var(--mhlw-row-h);
}

.right-entry-row td {
  border-bottom: var(--border-outer);
  font-size: 10pt;
  vertical-align: middle;
}

.right-entry-row:last-child td {
  border-bottom: 0;
}

.right-main-cell {
  padding: 0 2mm;
  text-align: left;
}

.right-year-cell,
.right-month-cell {
  padding: 0;
  text-align: center;
}

.motivation-table {
  height: var(--mhlw-motivation-h);
  margin-top: var(--mhlw-motivation-top-gap);
}

.motivation-table,
.request-table {
  border: var(--border-outer);
  border-collapse: separate;
  border-spacing: 0;
}

th.motivation-label,
th.request-label {
  position: relative;
  height: var(--mhlw-request-header-h);
  padding: 0;
  border: 0;
  border-bottom: var(--border-inner);
  font-family: "MS Mincho", "Yu Mincho", serif;
  font-size: 8.2pt;
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

th.motivation-label {
  height: var(--mhlw-motivation-header-h);
}

.motivation-label-text,
.request-label-main {
  position: absolute;
  display: block;
  font-family: "MS Mincho", "Yu Mincho", serif;
  font-size: 8.8pt;
  font-weight: 400;
  line-height: 1;
  color: #222;
  white-space: nowrap;
  transform-origin: left top;
}

.motivation-label-text {
  left: 1.8mm;
  top: 1.6mm;
}

.request-label-main {
  left: 1.8mm;
  top: 1.62mm;
}

.request-label-note {
  position: absolute;
  display: block;
  left: 28.2mm;
  top: 1.68mm;
  font-family: "MS Mincho", "Yu Mincho", serif;
  font-size: 7.35pt;
  font-weight: 400;
  line-height: 1;
  color: #222;
  white-space: nowrap;
  transform-origin: left top;
}

html:not(.is-pdf-render) .motivation-label,
html:not(.is-pdf-render) .request-label,
html:not(.is-pdf-render) .motivation-label-text,
html:not(.is-pdf-render) .request-label-main,
html:not(.is-pdf-render) .request-label-note {
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  font-kerning: normal;
}

.motivation-value {
  height: calc(var(--mhlw-motivation-h) - var(--mhlw-motivation-header-h));
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  font-size: 10pt;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
  overflow: hidden;
  white-space: pre-wrap;
}

.request-table {
  height: var(--mhlw-request-h);
  margin-top: var(--mhlw-request-top-gap);
}

.request-value {
  height: var(--mhlw-request-body-h);
  position: relative;
  padding: 0;
  border: 0;
  background-image:
    linear-gradient(var(--line-inner-color), var(--line-inner-color)),
    linear-gradient(var(--line-inner-color), var(--line-inner-color)),
    linear-gradient(var(--line-inner-color), var(--line-inner-color));
  background-position:
    0 25%,
    0 50%,
    0 75%;
  background-repeat: no-repeat;
  background-size: 100% var(--line-inner-width);
  font-size: 10pt;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
  overflow: hidden;
  white-space: pre-wrap;
}

.field-multiline-value {
  position: absolute;
  top: 1.15mm;
  right: 2.2mm;
  bottom: 1.8mm;
  left: 2.2mm;
  display: block;
  width: auto;
  height: auto;
  box-sizing: border-box;
  color: #222;
  font-family: "Yu Mincho", "MS Mincho", serif;
  font-size: 11.2pt;
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: 0;
  text-align: left;
  white-space: pre-wrap;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-break: strict;
}

.field-multiline-value-small {
  font-size: 10.4pt;
  line-height: 1.3;
}

.field-multiline-value-smaller {
  font-size: 9.6pt;
  line-height: 1.28;
}

.field-multiline-value-min {
  font-size: 8.8pt;
  line-height: 1.24;
}

.field-request-value {
  top: 0;
  bottom: 0;
  font-size: 9.2pt;
  line-height: 1;
  display: block;
}

.field-request-value.field-multiline-value-small {
  font-size: 9.2pt;
  line-height: 1;
}

.field-request-value.field-multiline-value-smaller {
  font-size: 8.8pt;
  line-height: 1;
}

.field-request-value.field-multiline-value-min {
  font-size: 8.4pt;
  line-height: 1;
}

.request-preview-row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 25%;
  min-height: 0;
  overflow: hidden;
}

.request-preview-text {
  display: block;
  max-width: 100%;
  line-height: 1;
  white-space: pre;
  overflow: hidden;
  text-overflow: clip;
  transform-origin: left center;
}

.gender-note {
  margin-top: 2.5mm;
  font-size: 8.5pt;
}

/* 保存/再編集 */
.storage-controls {
  margin-top: 20px;
  padding: 0 40px 40px;
}

/* .storage-title-input ... .storage-empty (full save/share/modal system),
   @media(900px) share-inline fix, and the shared stacked-layout subset
   all moved to editor-shared.css. Only this page's differing .zoom-controls
   position needs to stay here. */
@media (max-width: 900px) {
  .zoom-controls {
    top: 20px;
    left: calc(50vw - 74px);
  }
}

@media (max-width: 768px) {
  .header-left {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 12px;
  }

  .header-actions {
    justify-content: space-between;
  }

  .row-inline {
    flex-direction: column;
    gap: 0;
  }

  .name-group,
  .furigana-group,
  .birthday-box,
  .post-code-group,
  .address-furigana-group,
  .address-group,
  .tell-group,
  .mail-group,
  .t-post-code-group,
  .t-address-furigana-group,
  .t-address-group,
  .t-tell-group,
  .t-mail-group,
  .form-group,
  .upload-wrapper,
  .buttons-inline,
  .storage-controls {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-title,
  #char-counter {
    margin-left: 16px;
    margin-right: 16px;
  }

  .row-container {
    margin-left: 16px;
    margin-right: 16px;
  }

  .simple-textarea {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

  .storage-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .storage-btn {
    width: 100%;
  }
}

/* [data-ai-filled], .vtt-create-banner → editor-shared.css */
