/*
 * Figma 2026-10-29: 4171:4520 / 1:987 / 1:1600 / 1:2966
 * 共通シェルは通常業務画面へ展開。A1/A2/B1固有の描画は画面別クラスに閉じる。組版Editorは対象外。
 * 元SVGは assets/figma/ 以下に保存（Figma一時URLは使わない）。
 */
.figma-layout,
.figma-login {
  --figma-primary: #2469f2;
  --figma-primary-subtle: #ddedfd;
  --figma-text: #1d2029;
  --figma-subtext: #616b80;
  --figma-border: #adafb2;
  --figma-border-subtle: #d0d1d9;
  --figma-grey: #edeef2;
  --md-primary: var(--figma-primary);
  --md-on-primary: #ffffff;
  --md-primary-container: var(--figma-primary-subtle);
  --md-on-primary-container: var(--figma-primary);
  --md-surface: #f8f9fc;
  --md-surface-bright: #ffffff;
  --md-outline: var(--figma-border);
  --md-outline-variant: var(--figma-border-subtle);
  --md-on-surface: var(--figma-text);
  --md-on-surface-variant: var(--figma-subtext);
  --md-success-container: #d0f5eb;
  --md-warning-container: #fbecc9;
  --side-width: 248px;
  color: var(--figma-text);
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
}
.figma-layout {
  background: #f8f9fc;
}
.figma-layout .app-shell {
  grid-template-columns: 248px minmax(0, 1fr);
}
.figma-layout .side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 16px 66px;
  border: 0;
  background: #fff;
  box-shadow: 4px 0 14px rgba(0,0,0,.1);
  z-index: 22;
}
.figma-layout .brand {
  height: 59px;
  padding: 0 0 24px;
  margin-bottom: 9px;
  border-bottom: 1px solid var(--figma-border-subtle);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.figma-layout .brand strong {
  color: var(--figma-primary);
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.figma-layout .nav-sections {
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
}
.figma-layout .nav-item,
.figma-layout .nav-group-toggle {
  min-height: 42px;
  margin: 0;
  padding: 0 16px;
  border-radius: 1000px;
  font-size: 14px;
  font-weight: 700;
  color: var(--figma-text);
}
.figma-layout .nav-item {
  gap: 8px;
}
.figma-layout .nav-item[href="/list"]::before,
.figma-layout .nav-item[href="/flatplan"]::before,
.figma-layout .nav-item[href="/products"]::before,
.figma-layout .nav-item[href="/users"]::before,
.figma-layout .nav-group-toggle::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: #818899;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.figma-layout .nav-item[href="/list"]::before {
  -webkit-mask-image: url("/assets/figma/96366.svg");
  mask-image: url("/assets/figma/96366.svg");
}
.figma-layout .nav-item[href="/flatplan"]::before {
  -webkit-mask-image: url("/assets/figma/f6ea5.svg");
  mask-image: url("/assets/figma/f6ea5.svg");
}
/* Figmaにない商品のアイコンは既存のパッケージ形状を再利用する。 */
.figma-layout .nav-item[href="/products"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 7 9-4 9 4v10l-9 4-9-4z'/%3E%3Cpath d='m3 7 9 5 9-5M12 12v9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 7 9-4 9 4v10l-9 4-9-4z'/%3E%3Cpath d='m3 7 9 5 9-5M12 12v9'/%3E%3C/svg%3E");
}
.figma-layout .nav-item[href="/users"]::before {
  -webkit-mask-image: url("/assets/figma/857d0.svg");
  mask-image: url("/assets/figma/857d0.svg");
}
.figma-layout .nav-group-toggle::before {
  -webkit-mask-image: url("/assets/figma/d3329.svg");
  mask-image: url("/assets/figma/d3329.svg");
}
/* 展開状態 (aria-expanded) と現在のページ (.is-active) は独立。 */
.figma-layout .nav-item.is-active,
.figma-layout .nav-group.is-active > .nav-group-toggle {
  background: var(--figma-primary-subtle);
  color: var(--figma-primary);
}
.figma-layout .nav-item.is-active::before,
.figma-layout .nav-group.is-active > .nav-group-toggle::before {
  background-color: var(--figma-primary);
}
.figma-layout .nav-group {
  margin: 0;
}
.figma-layout .nav-group-children {
  margin: 0 0 0 24px;
  padding: 0 0 0 0;
  border-left: 1px solid var(--figma-border-subtle);
}
/* マスター配下のホバー・選択状態も他のサイドメニューと同じピル型に統一。 */
.figma-layout .nav-item--child {
  min-height: 42px;
  padding: 0 14px;
  margin-left: 0;
  border-radius: 1000px;
}
.figma-layout .nav-group-toggle {
  justify-content: flex-start;
  gap: 8px;
}
.figma-layout .nav-group-toggle > span:first-child {
  flex: 1;
}
.figma-layout .top-bar {
  position: fixed;
  top: auto;
  left: 16px;
  bottom: 0;
  width: 216px;
  height: 57px;
  min-height: 57px;
  padding: 8px 10px;
  z-index: 35;
  border: 0;
  border-top: 1px solid var(--figma-border-subtle);
  background: #fff;
  backdrop-filter: none;
}
.figma-layout .top-bar-title { display: none; }
.figma-layout .top-bar-account { width: 100%; }
.figma-layout .top-bar-account-trigger {
  min-height: 36px;
  width: 100%;
  border: none;
  border-radius: 1000px;
  justify-content: flex-start;
  padding: 5px 8px;
  color: var(--figma-subtext);
}
.figma-layout .user-avatar {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 0;
  background: url("/assets/figma/b13fd.svg") center / contain no-repeat;
}
.figma-layout .user-avatar svg { display: none; }
.figma-layout .account-user-name {
  color: var(--figma-subtext);
  font-size: 14px;
  font-weight: 500;
}
.figma-layout .account-menu {
  top: auto;
  bottom: calc(100% + 4px);
  left: 0;
  right: auto;
}
.figma-layout .page-content {
  max-width: 1540px;
  padding: 24px 32px 36px;
}
.figma-layout .page-content--fixed-list {
  height: 100vh;
  overflow: hidden;
  padding-bottom: 24px;
}
.figma-layout .page-content--fixed-list:has(.flatplan-list-table) {
  padding-top: 32px;
}
.figma-layout .page-heading {
  align-items: center;
  flex: 0 0 auto;
  min-height: 42px;
  margin-bottom: 24px;
}
.figma-layout .page-heading h1 {
  font-size: 25px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}
.figma-layout .page-heading-actions { gap: 16px; }
.figma-layout .button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 1000px;
  font-size: 14px;
  line-height: 1;
}
.figma-layout .button.primary,
.figma-login .button.primary {
  background: var(--figma-primary);
  color: #fff;
}
.figma-layout .button.primary:hover,
.figma-login .button.primary:hover { background: #1255df; }
.figma-layout .button.neutral {
  background: var(--figma-grey);
  color: var(--figma-text);
}
.figma-layout .button.neutral-outlined {
  color: var(--figma-text);
  border: 1px solid var(--figma-border);
  background: transparent;
}
.figma-layout .page-heading-actions a.button.primary[href*="/new"]::before,
.figma-layout .page-heading > a.button.primary[href*="/new"]::before,
.figma-layout .page-heading-actions button[data-master-draft-create]::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  background: url("/assets/figma/f72e2.svg") center / contain no-repeat;
}
.figma-layout .surface {
  border: 1px solid var(--figma-border-subtle);
  border-radius: 12px;
  box-shadow: 0 0 6px rgba(0,0,0,.15);
}
.figma-layout .surface + .surface {
  margin-top: 24px;
}
/* 横並びカードは上下余白を付けず、既存のGrid配置を維持する。 */
.figma-layout .flatplan-layout .surface + .surface,
.figma-layout .product-detail-layout .surface + .surface,
.figma-layout .cover-layout .surface + .surface,
.figma-layout .pdf-layout .surface + .surface {
  margin-top: 0;
}
.figma-layout .button.small {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
}
.figma-layout .field { gap: 8px; }
.figma-layout .field > span,
.figma-layout .field-label-inline {
  color: var(--figma-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.figma-layout .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.figma-layout .field select {
  height: 36px;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid var(--figma-border);
  border-radius: 8px;
  color: var(--figma-text);
  font-size: 14px;
}
.figma-layout .field input::placeholder {
  color: var(--figma-subtext);
}
.figma-layout .field select {
  padding-right: 28px;
}
.figma-layout .field input:focus,
.figma-layout .field select:focus {
  border-color: var(--figma-primary);
  box-shadow: 0 0 0 2px #2469f233;
}
.figma-layout .filter-surface {
  padding: 25px;
  margin-bottom: 0;
  position: relative;
  flex: 0 0 auto;
}
/* A1: すべての検索条件を常時表示する2行×4列のフォーム。 */
.figma-layout.figma-page-a1 .article-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}
.figma-layout.figma-page-a1 .article-filter-grid > .field {
  min-width: 0;
  grid-column: auto;
}
.figma-layout.figma-page-a1 .article-filter-grid > .field.article-filter-name { grid-area: 1 / 1; }
.figma-layout.figma-page-a1 .article-filter-grid > .field.article-filter-notice-no { grid-area: 1 / 2; }
.figma-layout.figma-page-a1 .article-filter-grid > .field.article-filter-status { grid-area: 1 / 3; }
.figma-layout.figma-page-a1 .article-filter-grid > .field.article-filter-major { grid-area: 2 / 1; }
.figma-layout.figma-page-a1 .article-filter-grid > .field.article-filter-minor { grid-area: 2 / 2; }
.figma-layout.figma-page-a1 .article-filter-grid > .field.article-filter-material { grid-area: 2 / 3; }
.figma-layout.figma-page-a1 .article-filter-grid > .field.article-filter-creator { grid-area: 3 / 1; }
.figma-layout.figma-page-a1 .article-filter-grid > .field.article-filter-updater { grid-area: 3 / 2; }
.figma-layout.figma-page-a1 .article-filter-actions {
  grid-area: 3 / 3;
  justify-content: flex-end;
  gap: 16px;
}
/* 連絡Noがあれば件名の上に表示。空欄なら余分な段を作らず中央配置。 */
.figma-layout.figma-page-a1 .article-subject-notice-no {
  display: block;
  color: var(--figma-subtext, #627083);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.figma-layout.figma-page-a1 .article-subject-title {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
/* A1記事一覧に限定してテキストの折り返しを許容。商材は別途nowrap維持。 */
.figma-layout.figma-page-a1 #articleTable tbody tr[data-article-row] > td:nth-child(2),
.figma-layout.figma-page-a1 #articleTable tbody tr[data-article-row] > td:nth-child(7),
.figma-layout.figma-page-a1 #articleTable tbody tr[data-article-row] > td:nth-child(8),
.figma-layout.figma-page-a1 #articleTable tbody tr[data-article-row] > td.subject-cell {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-overflow: clip;
}
/* A1: 商材を最大3段で縦表示するため、全記事行に同じ高さを確保。 */
.figma-layout.figma-page-a1 .article-list-table .data-table tbody tr[data-article-row] {
  height: 96px;
}
.figma-layout.figma-page-a1 .article-list-table .data-table tbody tr[data-article-row] > td {
  padding-top: 12px;
  padding-bottom: 12px;
  vertical-align: middle;
}
.figma-layout.figma-page-a1 .article-material-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.figma-layout.figma-page-a1 .article-material-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
}
.figma-layout .figma-search-button {
  gap: 4px;
  padding: 0 14px;
}
.figma-layout .figma-search-button::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("/assets/figma/029cc.svg") center / contain no-repeat;
}
.figma-layout .article-list-table {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 24px 24px 0;
  overflow: hidden;
}
.figma-layout .article-list-table .table-toolbar {
  min-height: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0 12px;
  gap: 16px;
  border: 0;
}
/* 商品一覧はデータ領域をラッパーで囲むため高さを伝播する。 */
.figma-layout .page-content--fixed-list > [data-product-list] {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.figma-layout .page-content--fixed-list > [data-product-list] > .page-heading,
.figma-layout .page-content--fixed-list > [data-product-list] > .filter-surface {
  flex: 0 0 auto;
}
.figma-layout .page-content--fixed-list > [data-product-list] > .article-list-table {
  flex: 1 1 auto;
  min-height: 0;
}
.figma-layout .article-list-table .table-toolbar strong {
  font-weight: 700;
}
.figma-layout .article-list-table .table-toolbar:has(> :nth-child(2):last-child) {
  grid-template-columns: 1fr auto;
}
.figma-layout .user-list-table .data-table { min-width: 950px; }
.figma-layout .master-list-table .data-table { min-width: 840px; }
.figma-layout .cover-template-list-table .data-table { min-width: 1050px; }
.figma-layout.figma-page-b1 .flatplan-list-table .table-toolbar {
  grid-template-columns: 1fr auto 1fr;
}
.figma-layout .article-list-table .sort-note {
  color: var(--figma-text);
  font-size: 12px;
}
.figma-layout .article-list-table .data-table-wrap {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  scrollbar-gutter: auto;
}
.figma-layout.figma-page-b1 .flatplan-list-table .data-table {
  min-width: 1078px;
}
.figma-layout .data-table th,
.figma-layout .data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--figma-border-subtle);
  font-size: 14px;
  vertical-align: middle;
}
.figma-layout .data-table th {
  height: 40px;
  background: var(--figma-grey);
  color: var(--figma-subtext);
  font-size: 12px;
  font-weight: 700;
}
.figma-layout .data-table td { height: 44px; }
.figma-layout .data-table tbody tr:nth-child(even) { background: #f3f7fd; }
.figma-layout .data-table tbody tr:hover { background: var(--figma-primary-subtle); }
.figma-layout.figma-page-a1 .data-table col.col-category-major { width: 72px; }
.figma-layout.figma-page-a1 .data-table col.col-category-minor { width: 106px; }
/* 商材は3行の各1件を折り返さず表示。件名の余裕から115pxを配分する。 */
.figma-layout.figma-page-a1 .data-table col.col-material { width: 235px; }
/* 狭い画面でも件名が極端に狭くならないよう、一覧内部のみ横スクロールを許す。 */
.figma-layout.figma-page-a1 #articleTable { min-width: 1260px; }
.figma-layout.figma-page-a1 .data-table col.col-publish { width: 112px; }
.figma-layout.figma-page-a1 .data-table td.article-publish-cell {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
}
.figma-layout.figma-page-a1 .article-publish-date {
  display: block;
  white-space: nowrap;
}
.figma-layout.figma-page-a1 .article-publish-source {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--figma-subtext, #64748b);
  overflow-wrap: anywhere;
}
.figma-layout.figma-page-a1 .data-table col.col-status { width: 112px; }
.figma-layout.figma-page-a1 .data-table col.col-user-name { width: 105px; }
.figma-layout.figma-page-a1 .data-table col.col-updated { width: 120px; }
.figma-layout .flatplan-list-table .data-table col.col-flatplan-publish { width: 110px; }
.figma-layout .flatplan-list-table .data-table col.col-flatplan-count { width: 95px; }
.figma-layout .flatplan-list-table .data-table col.col-flatplan-pages { width: 100px; }
.figma-layout .flatplan-list-table .data-table col.col-flatplan-status { width: 132px; }
.figma-layout .flatplan-list-table .data-table col.col-flatplan-updated { width: 135px; }
.figma-layout .pagination { min-height: 34px; padding: 0; gap: 8px; }
.figma-layout .page-number {
  width: 34px;
  height: 34px;
  background: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.figma-layout .page-number.is-active {
  background: var(--figma-primary);
  color: white;
}
.figma-layout .status-chip {
  min-height: 26px;
  padding: 4px 8px;
  gap: 4px;
  border-radius: 1000px;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}
.figma-layout .status-chip::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: center / contain no-repeat;
}
.figma-layout .status-chip.working {
  background: #fbecc9;
  color: #4d3e19;
}
.figma-layout .status-chip.working::before { background-image: url("/assets/figma/727ff.svg"); }
.figma-layout .status-chip.complete {
  background: #d0f5eb;
  color: #12493b;
}
.figma-layout .status-chip.complete::before { background-image: url("/assets/figma/fd6b0.svg"); }
/* A2 article detail */
.figma-layout .figma-article-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.figma-layout .figma-article-heading h1 {
  max-width: 650px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.figma-layout .figma-article-state {
  display: flex;
  align-items: center;
  gap: 8px;
}
.figma-layout .figma-article-state small {
  color: #aa4441;
  font-size: 12px;
}
.figma-layout .figma-article-state small::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 8px;
  background: url("/assets/figma/84113.svg") center / contain no-repeat;
}
.figma-layout .page-heading-actions #articleSave {
  border-color: var(--figma-primary);
  color: var(--figma-primary);
}
.figma-layout .page-heading-actions #articleSave:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.figma-layout .page-heading-actions #articleLayoutEdit::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("/assets/figma/93632.svg") center / contain no-repeat;
}
.figma-layout .article-detail-surface {
  padding: 0;
}
.figma-layout .article-detail-surface .article-a2-section-card {
  padding: 0;
}
.figma-layout .article-detail-surface + .surface {
  margin-top: 24px;
}
.figma-layout .article-detail-surface .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 24px;
  padding: 25px;
}
.figma-layout .article-detail-surface .article-a2-block-heading {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  border-bottom: 1px solid var(--figma-border, #d8dce5);
  padding: 0 0 12px;
}
.figma-layout .article-detail-surface .article-a2-block-heading:not(:first-child) {
  margin-top: 12px;
}
.figma-layout .article-a2-detail-guide {
  padding: 15px 24px 20px;
}
.figma-layout .article-a2-detail-guide p,
.figma-layout .article-a2-related-heading-note {
  margin: 0;
  color: var(--figma-muted, #556271);
  font-size: 14px;
}
.figma-layout .article-a2-related-heading-note {
  padding: 0 0 14px;
}
.figma-layout .article-detail-surface .form-grid > .full-span {
  grid-column: 1 / -1;
}
.figma-layout .article-detail-surface .required-mark {
  color: #aa4441;
}
.figma-layout .article-detail-surface #articleSubject {
  height: 116px;
  min-height: 116px;
  max-height: 116px;
  line-height: 1.5;
  overflow: hidden;
  resize: none;
}
.figma-layout .article-detail-surface .field-label-inline > span { font-size: 14px; }
.figma-layout .article-detail-surface .field-label-inline > em {
  font-size: 12px;
  white-space: nowrap;
  color: var(--figma-subtext);
}
.figma-layout .article-publication-settings { min-width: 0; }
.figma-layout .article-publication-rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.figma-layout .article-publication-row {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--md-outline-variant, #d0d5dc);
  border-radius: 10px;
}
.figma-layout .article-publication-target {
  /* チェックボックスと文字の周辺だけをクリック対象にする。カードの横幅全体には広げない。 */
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.figma-layout .article-publication-target input { width: 18px; height: 18px; margin: 0; }
/* A2: クリック操作でチェックボックスに残る入力欄共通の水色フォーカス枠を出さない。
   キーボード操作のフォーカスは :focus-visible で明確に表示する。 */
.figma-layout .article-publication-target input[type="checkbox"]:focus {
  box-shadow: none;
}
.figma-layout .article-publication-target input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--figma-primary);
  outline-offset: 3px;
}
.figma-layout .article-publication-date { display: flex; flex-direction: column; gap: 5px; }
.figma-layout .article-publication-date > span { font-size: 12px; color: var(--figma-subtext); }
.figma-layout .article-publication-date input { width: 100%; min-width: 0; }
.figma-layout .article-publication-date input:disabled { opacity: .55; cursor: not-allowed; }
.figma-layout .article-publication-legacy { color: var(--figma-subtext); font-size: 12px; }
@media (max-width: 850px) {
  .figma-layout .article-publication-rows { grid-template-columns: 1fr; }
}
.figma-layout .metadata-surface { margin-top: 24px !important; }
.figma-layout .metadata-grid {
  padding: 22px 24px;
  min-height: 86px;
  align-items: center;
}
.figma-layout .metadata-grid > div {
  padding: 0 16px;
  border-left: 2px solid var(--figma-border-subtle);
}
.figma-layout .metadata-grid dt {
  margin-bottom: 4px;
  color: var(--figma-subtext);
  font-size: 12px;
}
.figma-layout .metadata-grid dd { font-size: 14px; font-weight: 700; }
.figma-layout .figma-detail-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.figma-layout .article-delete-button {
  margin-left: auto;
  color: var(--md-error);
  background: transparent;
  border: 1px solid var(--md-error);
}
.figma-layout .article-delete-button:hover {
  background: var(--md-error-container);
}
.figma-layout #articleDeleteError { color: var(--md-error); }
/* Login Figma node 4171:4520 */
.figma-login.login-page {
  background: #edeef2;
  padding: 24px;
}
.figma-login .login-card {
  width: 360px;
  min-height: 292px;
  padding: 28px 32px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 0 6px rgba(0,0,0,.15);
}
.figma-login .login-card form {
  display: flex;
  flex-direction: column;
}
.figma-login .login-brand {
  margin: 0 0 16px;
}
.figma-login .login-brand h1 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #2469f2;
  text-align: center;
}
.figma-login .field-stack { gap: 16px; }
.figma-login .field { gap: 8px; }
.figma-login .field > span {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  color: #1d2029;
}
.figma-login .field input {
  height: 36px;
  min-height: 36px;
  padding: 8px;
  border: 1px solid #adafb2;
  border-radius: 8px;
  font-size: 14px;
}
.figma-login .login-submit {
  min-height: 42px;
  height: 42px;
  margin-top: 16px;
  border-radius: 1000px;
  font-size: 14px;
}

/* A1の監査列も常時表示し、1200pxなど狭い幅では表内部のみ横スクロールする。 */
.figma-layout.figma-page-a1 .article-list-table:not(.flatplan-list-table) .data-table {
  min-width: 1060px;
}
.figma-layout.figma-page-a1 .data-table th,
.figma-layout.figma-page-a1 .data-table td {
  padding-inline: 8px;
}
.figma-layout.figma-page-a1 .data-table td:last-child {
  padding-inline: 4px;
}
.figma-layout.figma-page-a1 #articleEmptyRow > td {
  height: 156px;
  padding: 32px 12px;
  border-bottom: 0;
  overflow: visible;
  text-align: center;
}
.figma-layout.figma-page-a1 .article-list-empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--figma-subtext);
  white-space: normal;
}
.figma-layout.figma-page-a1 .article-list-empty-message strong {
  font-size: 15px;
  color: var(--figma-text);
  font-weight: 700;
}

/* A1の行コンテキストメニューは表のスクロール領域外にfixed表示する。 */
.figma-layout.figma-page-a1 .article-row-context-menu {
  position: fixed;
  z-index: 250;
  display: grid;
  min-width: 164px;
  padding: 5px;
  background: var(--md-surface, #fff);
  color: var(--md-on-surface, #20242a);
  border: 1px solid var(--md-outline-variant, #d7dce3);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(21, 34, 53, .16);
}
.figma-layout.figma-page-a1 .article-row-context-menu[hidden] {
  display: none;
}
.figma-layout.figma-page-a1 .article-row-context-menu a[role="menuitem"] {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}
.figma-layout.figma-page-a1 .article-row-context-menu a[role="menuitem"]:hover,
.figma-layout.figma-page-a1 .article-row-context-menu a[role="menuitem"]:focus-visible {
  background: var(--md-surface-container, #edf2f8);
  outline: none;
}
.figma-layout.figma-page-a1 .article-list-table tr[data-article-row]:focus-visible {
  outline: 2px solid var(--figma-primary, #2469f2);
  outline-offset: -2px;
}

/* 通常画面の共通フッター（Editor専用画面では本CSSを読み込まない）。 */
.figma-layout .app-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.figma-layout .page-content {
  flex: 1 0 auto;
}
.figma-layout .page-content--fixed-list {
  flex: 0 0 auto;
  height: calc(100vh - 56px);
  min-height: 0;
}
.figma-layout .app-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 56px;
  min-height: 56px;
  padding: 5px 32px;
  border-top: 1px solid #d0d1d9;
  background: #e7e9ee;
}
.figma-layout .app-footer img {
  display: block;
  width: 96px;
  height: auto;
  max-height: 46px;
  object-fit: contain;
  /* 元画像はRGBで白背景のため、灰色のフッターに自然になじませる。 */
  mix-blend-mode: multiply;
}


.figma-layout .master-table .master-target-cell {
  text-align: center;
  vertical-align: middle;
}
.figma-layout .master-table .master-target-checkbox {
  display: block;
  margin: 0 auto;
  opacity: 1;
  cursor: default;
}


.article-a3-lease-message{
  margin:0 0 14px;padding:12px 16px;background:#fff5ed;border:1px solid #efc5a8;
  border-radius:8px;color:#874127;font-size:13px;line-height:1.6;
}
.figma-article-state #articleA3Editing{color:#b54a3e;}
.article-detail-surface [aria-busy="true"]{cursor:progress;}

/* 130: 商材3枠を初期表示。位置が変わらない固定3列、1枠目のみ必須。 */
.figma-layout .article-detail-surface .article-material-field {
  grid-column: span 3;
  min-width: 0;
}
.figma-layout .article-material-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}
.figma-layout .article-material-field .article-material-select-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.figma-layout .article-material-row-heading {
  display: flex;
  align-items: center;
  /* 掲載カテゴリのlabel(.field > span)と同じ行高に揃える。 */
  min-height: 0;
}
.figma-layout .article-material-row-heading label {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}
.figma-layout .article-material-row-heading .optional-mark {
  margin-left: 6px;
  color: #748094;
  font-size: 0.78em;
  font-weight: 400;
}
.figma-layout .article-material-field .article-material-select-row select {
  display: block;
  width: 100%;
  min-width: 0;
}
@media (max-width: 1600px) {
  .figma-layout .article-detail-surface .article-material-field {
    grid-column: 1 / -1;
  }
}
