/* =====================================================================
   クレーン点検管理システム — 確認版
   ワイヤーフレーム忠実（グレースケール）デザインシステム
   ===================================================================== */

:root {
  /* レイアウト */
  --app-max: 768px;
  --content-max: 600px;
  --bottom-nav-max: 640px;
  --drawer-max: 400px;
  --pad: 30px;

  /* カラーパレット */
  --page-bg:    #fafafa;
  --frame-bg:   #fafafa;
  --surface:    #ffffff;
  --ink:        #384252;   /* 主要テキスト */
  --ink-sub:    #555555;   /* 見出し・サブ */
  --ink-mute:   #9a9a9a;   /* プレースホルダ・補足 */
  --ink-placeholder: #cdcdcd;
  --ink-inactive: rgb(56 66 82 / 40%);
  --link-muted: rgb(51 51 51 / 60%);
  --line:       #cfcfcf;   /* 罫線・枠 */
  --line-soft:  #e8e8e8;
  --line-strong: #384252;
  --fill:       #384252;   /* ボタン地（主要アクション） */
  --fill-disabled: rgb(56 66 82 / 40%);
  --fill-hover: #cfcfcf;
  --sel:        #3a3a3a;   /* 選択状態（○△×／の塗り） */
  --sel-ink:    #ffffff;
  --section-bg: #ffd9bf;
  --danger:     #f02e36;   /* 不良・通知ドット */
  --ok-bg:      #f5f5f5;

  --radius:     6px;
  --radius-lg:  12px;
  --font: "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN",
          "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
}

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

html, body {
  height: 100%;
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--page-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ----- 画面外のツールバー（プロトタイプ操作用、納品時は非表示可） ----- */
.proto-bar {
  width: var(--app-max);
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #666;
}
.proto-bar .title { font-weight: 600; color: #444; }
.proto-bar .spacer { flex: 1; }
.proto-bar button {
  font-family: var(--font);
  font-size: 12px;
  color: #555;
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.proto-bar button:hover { background: #f3f3f3; }

/* =====================================================================
   デバイスフレーム
   ===================================================================== */
.device {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  background: var(--frame-bg);
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

/* 画面のスクロール領域 */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--frame-bg);
  overflow: hidden;
}
.screen__scroll {
  position: relative;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.screen__scroll::before {
  content: "";
  position: absolute;
  top: 56px;
  right: max(0px, calc((100% - var(--app-max)) / 2));
  z-index: 0;
  width: min(72.56%, 557px);
  aspect-ratio: 565 / 65;
  background: url("../assets/images/common/header-accent.png") right top / 100% auto no-repeat;
  pointer-events: none;
}

/* ログイン・ホーム共通の下部装飾 */
.screen--login::after,
.screen--home::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 0;
  width: 100%;
  max-width: var(--app-max);
  aspect-ratio: 780 / 389;
  background:
    url("../assets/images/common/bottom-accent.png") left 60% / 66.923% auto no-repeat,
    url("../assets/images/common/construction-silhouette.png") center bottom / 100% auto no-repeat;
  transform: translateX(-50%);
  pointer-events: none;
}
.screen--login > .screen__scroll,
.screen--home > .screen__scroll {
  z-index: 1;
}
.screen__scroll::-webkit-scrollbar { width: 6px; }
.screen__scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

/* 画面遷移アニメ */
.screen.is-enter { animation: slideIn .22s ease both; }
@keyframes slideIn {
  from { transform: translateX(14px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* =====================================================================
   共通ヘッダー
   ===================================================================== */
.appbar {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--app-max);
  margin-right: auto;
  margin-left: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: calc(56px + min(8.35vw, 40px));
  padding: 6px 30px 12px;
}
.appbar__brand {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
  visibility: hidden;
}
.screen--home .appbar__brand { visibility: visible; }
.appbar__brand b { display: block; font-weight: 400; }
.appbar__user { display: block; font-size: 14px; font-weight: 700; }

.hamburger {
  position: relative;
  z-index: 1;
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none; border: none; cursor: pointer;
  margin: 0 -12px 0 0;
  padding: 0;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

.backlink {
  position: absolute;
  top: 6px;
  left: max(0px, calc((100% - var(--app-max)) / 2));
  z-index: 2;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 var(--pad);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  background: none; border: none; cursor: pointer;
}
.backlink::before {
  content: "";
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.backlink:active { opacity: .6; }

.screen__body {
  width: 100%;
  max-width: var(--content-max);
  margin-right: auto;
  margin-left: auto;
  padding: 6px var(--pad) 24px;
}
.screen__body.center { display: flex; flex-direction: column; gap: 18px; }

/* =====================================================================
   フォーム部品
   ===================================================================== */
.field { width: 100%; margin-bottom: 18px; }

.input, .textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-placeholder); }
.textarea { resize: none; min-height: 280px; line-height: 1.6; }
.input:focus, .textarea:focus { outline: none; border-color: #9a9a9a; }

/* スマホ（iOS等）での日付入力の表示崩れ対策 */
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
}
input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type="date"]::-webkit-datetime-edit { padding: 0; }
.input[type="date"] { min-height: 50px; }

/* カスタム・ドロップダウン（ワイヤー忠実） */
.select {
  position: relative;
  width: 100%;
  margin-bottom: 18px;
  user-select: none;
}
.select__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
}
.select__btn.is-placeholder { color: var(--ink-placeholder); }
.select__btn .caret {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 0;
  flex: none;
}
.select__btn .caret::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.select.is-open .select__btn { border-color: #9a9a9a; }

.select__list {
  display: none;
  position: absolute;
  left: 0; right: 0; top: calc(100% - 1px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 30;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.select.is-open .select__list { display: block; }
.select__opt {
  padding: 13px 16px;
  font-size: 15px;
  cursor: pointer;
  border-top: 1px solid var(--line-soft);
}
.select__opt:first-child { border-top: none; }
.select__opt:hover { background: #f4f4f4; }
.select__opt.is-active { font-weight: 600; }
.select__opt--empty { color: var(--ink-placeholder); cursor: default; }
.select__opt--empty:hover { background: none; }

/* =====================================================================
   ボタン
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 16px;
  color: var(--sel-ink);
  background: var(--fill);
  border: none;
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: background .12s;
}
.btn:not(:disabled):active {
  opacity: .7;
  transform: translateY(1px);
}
.btn--block { width: 100%; }
.btn--lg { padding: 18px; font-size: 17px; border-radius: var(--radius-lg); }
.btn--primary { background: var(--sel); color: #fff; }
.btn--ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn[disabled] {
  opacity: 1;
  color: var(--sel-ink);
  background: var(--fill-disabled);
  cursor: default;
}

.btn-row { display: flex; gap: 12px; }
.btn-row .btn { flex: 1; }

.center-btn { display: flex; justify-content: center; margin-top: 28px; }
.center-btn .btn { min-width: 220px; }

.btn-right { display: flex; justify-content: flex-end; }

/* ログイン下の言語選択 */
.login-lang { display: flex; justify-content: center; margin-top: 26px; }
.login-lang .select { width: 165px; margin: 0; }
.login-lang .select__btn { padding: 10px 14px; font-size: 13px; }
.login-lang .select__opt { padding: 11px 14px; font-size: 13px; }

/* =====================================================================
   ログイン画面
   390pxのデザインを基準に、左右余白と要素幅を端末幅に追従させる
   ===================================================================== */
.screen--login .appbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}
.screen--login .screen__body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 30px !important;
}
.screen--login .section-title {
  height: 115px;
  margin: 0 0 32px !important;
  overflow: hidden;
  color: transparent;
  font-size: 0 !important;
  background-image:
    url("../assets/images/login/brand-mark.png"),
    url("../assets/images/login/brand-name.png");
  background-position: center top, center bottom;
  background-size: 60px auto, 220px auto;
  background-repeat: no-repeat;
}
.screen--login .field {
  position: relative;
  margin-bottom: 16px;
}
.screen--login .field:has(#login-password) {
  margin-bottom: 0;
}
.screen--login .input {
  min-width: 0;
  padding: 16px 20px 16px 64px;
  border-color: var(--line-strong);
  border-radius: var(--radius);
  font-size: 18px;
  line-height: 1.4;
  background-color: var(--surface);
}
.screen--login .field:has(#login-id)::before,
.screen--login .field:has(#login-password)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 24px;
  z-index: 2;
  height: 24.5px;
  transform: translateY(-50%);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}
.screen--login .field:has(#login-id)::before {
  width: 20px;
  background-image: url("../assets/images/login/user-icon.png");
}
.screen--login .field:has(#login-password)::before {
  width: 23.5px;
  background-image: url("../assets/images/login/password-icon.png");
}
.screen--login .input:-webkit-autofill,
.screen--login .input:-webkit-autofill:hover,
.screen--login .input:-webkit-autofill:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1000px var(--surface) inset;
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}
.screen--login .center-btn {
  margin-top: 32px !important;
}
.screen--login .center-btn .btn {
  width: 250px;
  padding: 16px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 4px 9px rgb(56 66 82 / 14%);
}
.screen--login .login-lang {
  margin-top: 24px;
}
.screen--login .login-lang .select {
  width: 130px;
}
.screen--login .login-lang .select__btn {
  min-height: 30px;
  padding: 5px 10px 5px 14px;
  border-color: var(--line-soft);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 1px 5px rgb(56 66 82 / 10%);
}
.screen--login .login-lang .select__btn.is-placeholder {
  color: #455166;
}
.screen--login .login-lang .select__btn.is-placeholder > span:first-child {
  text-transform: lowercase;
}
.screen--login .login-lang .select__opt {
  padding: 9px 12px;
  font-size: 12px;
}

/* =====================================================================
   ホーム画面
   ===================================================================== */
.screen--home .appbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}
.screen--home .home-body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 24px 30px 44px;
}
.screen--home .center-btn {
  margin-top: 0;
  padding-inline: 15px;
}
.screen--home .btn--home {
  position: relative;
  width: 100%;
  padding: 24px 20px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 4px 9px rgb(56 66 82 / 14%);
}
.screen--home .btn--home::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}
.screen--home .btn--home[data-screen="selectInfo"]::before {
  width: 30.5px;
  height: 28.5px;
  background-image: url("../assets/images/home/inspection-icon.png");
}
.screen--home .btn--home[data-screen="results"]::before {
  width: 22px;
  height: 28.5px;
  background-image: url("../assets/images/home/inspection-results-icon.png");
}

/* =====================================================================
   点検情報選択画面
   ===================================================================== */
.screen--select-info .select-body {
  padding: 6px 30px 24px;
}
.screen--select-info .select {
  margin-bottom: 20px;
}
.screen--select-info .select__btn {
  min-height: 60px;
  padding: 0 20px;
  border-color: var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.screen--select-info .center-btn {
  margin-top: 40px;
  padding-inline: 15px;
}
.screen--select-info .center-btn .btn {
  position: relative;
  width: 280px;
  padding: 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 4px 9px rgb(56 66 82 / 14%);
}

/* =====================================================================
   点検箇所一覧画面
   ===================================================================== */
.screen--area-list .area-body {
  padding-right: 15px;
  padding-left: 15px;
}
.screen--area-list .meta-card {
  margin: 0;
  padding: 15px;
  border: none;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--area-list .meta-id,
.screen--area-list .meta-line {
  font-size: 13px;
  font-weight: 400;
}
.screen--area-list .meta-card .linkbtn {
  color: var(--link-muted);
  font-size: 10px;
  font-weight: 400;
}
.screen--area-list .meta-subhead {
  margin: 12px 0 10px;
  font-size: 13px;
  font-weight: 700;
}
.screen--area-list .area-body > .btn-right {
  min-height: 60px;
  align-items: center;
  margin: 0 !important;
}
.screen--area-list .area-body > .btn-right .btn {
  width: 96px;
  height: 30px;
  padding: 0;
  color: var(--ink);
  background: var(--page-bg);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--area-list .area-body > .btn-right .btn:hover {
  background: var(--page-bg);
}
.screen--area-list .list {
  display: block;
  padding: 15px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--area-list .list-item {
  gap: 8px;
  padding: 15px 0;
  background: var(--surface);
  border: none;
  border-radius: 0;
}
.screen--area-list .list-item:hover {
  background: var(--surface);
}
.screen--area-list .list-item__title {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
.screen--area-list .list-item__right {
  gap: 10px;
}
.screen--area-list .list-item--c2 .list-item__right .btn {
  width: 100px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--area-list .status-select {
  width: 80px;
}
.screen--area-list .status-select .select__btn {
  position: relative;
  min-height: 30px;
  height: auto;
  justify-content: center;
  padding: 4px 20px 4px 10px;
  background: var(--surface);
  border-color: #c0c3c7;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
/* 英語表示などラベルが長くなる場合は折り返して重なりを防ぐ（No.39下段対応。日本語の短いラベルは1行のまま収まるため見た目は変わらない） */
.screen--area-list .status-select .select__btn > span:first-child {
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  min-width: 0;
}
.screen--area-list .status-select .select__btn .caret {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
}
.screen--area-list .status-select .select__list {
  border-color: #c0c3c7;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--area-list .status-select .select__opt {
  padding: 9px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.screen--area-list .meta-grid .meta-wire {
  width: 36px;
  height: 24px;
  padding: 1px 4px;
}
.screen--area-list .meta-date {
  flex: 0 1 88px;
  min-width: 0;
  width: 88px;
  height: 24px;
  padding: 1px 4px;
}
.screen--area-list .wire-rope__input {
  flex: 0 0 88px;
  width: 88px;
  height: 24px;
  padding: 1px 6px;
  font-size: 13px;
  font-weight: 400;
}
.screen--area-list .wire-rope__bar {
  margin-right: 0;
  margin-left: 0;
  padding: 7px 14px;
  color: var(--ink);
  background: #e0e0e0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.screen--area-list .wire-rope__freelabel {
  font-size: 13px;
  font-weight: 400;
}
.screen--area-list .wire-rope__pm {
  position: relative;
  width: 30px;
  min-width: 30px;
  height: 30px;
  margin: -4px -10px;
  padding: 0;
  color: #333333;
  font-size: 0;
}
.screen--area-list .wire-rope__pm::before,
.screen--area-list .wire-rope__pm::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  background: #333333;
  transform: translate(-50%, -50%);
}
.screen--area-list .wire-rope__pm::before {
  width: 10px;
  height: 2px;
}
.screen--area-list .wire-rope__pm::after {
  width: 2px;
  height: 10px;
}
.screen--area-list .wire-rope.is-open > .wire-rope__bar .wire-rope__pm::after {
  display: none;
}
.screen--area-list .wire-rope__body {
  background: #f2f2f2;
  border: 1px solid #e0e0e0;
  padding: 16px 20px 20px;
}
.screen--area-list .wire-rope .minput,
.screen--area-list .wire-rope__input {
  border-color: #c0c3c7;
  font-size: 13px;
  font-weight: 400;
}
.screen--area-list .meta-cell,
.screen--area-list .meta-cell .mval,
.screen--area-list .meta-cell .mcalc,
.screen--area-list .meta-cell .munit {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.screen--area-list .meta-grid {
  gap: 8px 14px;
}
.screen--area-list .wire-rope + .wire-rope {
  margin-top: 8px;
}
.screen--area-list .area-body > .center-btn {
  margin-top: 40px !important;
  margin-bottom: 50px;
}
.screen--area-list .center-btn .btn[data-action="create-report"] {
  width: 280px !important;
  max-width: 100%;
  padding: 20px;
  color: var(--sel-ink);
  background: #384252;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--area-list .center-btn .btn[data-action="create-report"]:disabled {
  background: rgb(56 66 82 / 40%);
}

/* 点検結果一覧（検索フォーム） */
.result-form { background: #f2f2f2; padding: 22px 24px; }
.result-ym { display: flex; gap: 12px; }
.result-ym .select { flex: 1; margin-bottom: 0; }

/* 不良箇所カード（一覧・検索結果共通の文字サイズ） */
.defect-card { font-size: 14px; }

/* =====================================================================
   不良箇所一覧
   ===================================================================== */
.screen--defect-list .defect-list-body {
  padding: 6px 30px 50px;
}
.screen--defect-list .defect-list-head {
  min-height: 45px;
  align-items: center;
  justify-content: flex-start;
  margin: 0 -30px !important;
  padding: 0 30px;
  background: var(--section-bg);
}
.screen--defect-list .defect-list-crane {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  color: var(--ink);
  background: none;
  border: none;
  border-radius: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.screen--defect-list .count-line {
  margin: 20px 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.screen--defect-list .count-line b {
  font-size: 16px;
  font-weight: 700;
}
.screen--defect-list .defect-card {
  margin-bottom: 20px;
  padding: 24px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.screen--defect-list .defect-card .field-label {
  margin: 0 0 8px !important;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
.screen--defect-list .result-div {
  margin: 20px 0;
  border-top-color: #c0c3c7;
}
.screen--defect-list .defect-result {
  font-size: 13px;
  font-weight: 400;
}
.screen--defect-list .defect-card .photo {
  margin: 20px 0 10px;
}
.screen--defect-list .defect-card .photo:has(img) {
  aspect-ratio: auto;
  display: block;
  background: none;
  border: none;
}
.screen--defect-list .defect-card .photo:has(img) .photo__cap {
  display: none;
}
.screen--defect-list .defect-card .photo:has(img) img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.screen--defect-list .defect-card .center-btn {
  margin-top: 0 !important;
}
.screen--defect-list .defect-card .btn[data-action="goto-defect-edit"] {
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: none;
  border: none;
  border-radius: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  text-decoration: underline;
  box-shadow: none;
}
.screen--defect-list .defect-card:has(+ .center-btn .btn[data-action="create-report"]) {
  margin-bottom: 0;
}
.screen--defect-list .defect-list-body > .center-btn:has(.btn[data-action="create-report"]) {
  margin-top: 40px !important;
}
.screen--defect-list .btn[data-action="create-report"] {
  width: 280px !important;
  max-width: 100%;
  padding: 20px;
  color: var(--sel-ink);
  background: var(--ink);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--defect-list .empty-message {
  padding: 40px 0;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}

/* 不良箇所のステータス（表示のみ・選択不可） */
.defect-status {
  display: inline-block;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-sub);
}
.defect-status.is-done { background: var(--fill); border-color: var(--fill); color: var(--ink-sub); }

/* 検索結果（共通） */
.result-div { border: none; border-top: 1px solid var(--line-soft); margin: 12px 0; }
.pager { text-align: center; color: var(--ink-inactive); font-size: 14px; padding: 16px 0 4px; }
.pager .pg { cursor: pointer; padding: 0 2px; }
.pager .pg.is-active { font-weight: 700; color: var(--ink); }
.pager .pg-sep { color: var(--ink-mute); }

/* 報告書一覧（基本情報） */
.basic-info { font-size: 14px; }
.basic-info .bi-row { display: flex; gap: 8px; line-height: 2; }
.basic-info .bi-k { color: var(--ink); min-width: 92px; }

/* 測定一覧カード */
.mres-card { font-size: 14px; }
.mres-card > div { line-height: 1.95; }
.mres-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.mres-badge { font-size: 12px; padding: 5px 14px; border-radius: 6px; white-space: nowrap; }
.mres-badge.ing  { border: 1px solid var(--line); background: #fff; color: var(--ink-sub); }
.mres-badge.done { background: var(--fill); color: var(--ink-sub); }

/* =====================================================================
   点検結果一覧（検索）
   ===================================================================== */
.screen--results .result-form {
  width: 100%;
  max-width: var(--content-max);
  margin-right: auto;
  margin-left: auto;
  padding: 6px 30px 0;
  background: var(--page-bg);
}
.screen--results .result-form > .select {
  margin-bottom: 20px;
}
.screen--results .result-form .select__btn {
  height: 60px;
  padding: 0 20px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--results .result-form .select__btn.is-placeholder {
  color: var(--ink-placeholder);
}
.screen--results .result-ym {
  gap: 20px;
}
.screen--results .result-ym .select {
  min-width: 0;
  margin-bottom: 0;
}
.screen--results #word-search {
  height: 60px;
  margin: 20px 0 0 !important;
  padding: 0 20px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--results #word-search::placeholder {
  color: var(--ink-placeholder);
}
.screen--results .result-form > .center-btn {
  margin-top: 40px !important;
}
.screen--results .result-form .btn[data-action="search-results"] {
  width: 280px;
  max-width: 100%;
  padding: 20px;
  color: var(--sel-ink);
  background: var(--fill);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--results .result-form .btn[data-action="search-results"]:disabled {
  background: var(--fill-disabled);
}
.screen--results .screen__body {
  padding: 40px 30px 60px !important;
}
.screen--results .count-line {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
}
.screen--results .count-line b {
  font-size: 16px;
  font-weight: 700;
}
.screen--results .screen__body > .card {
  margin: 0 0 20px;
  padding: 24px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.screen--results .screen__body > .card:last-child {
  margin-bottom: 0;
}
.screen--results .empty-message {
  padding: 40px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
}

/* 点検結果：不良箇所一覧 */
.screen--results .defect-card {
  position: relative;
}
.screen--results .defect-card .btn-right {
  position: absolute;
  top: 9px;
  right: 9px;
}
.screen--results .defect-status {
  padding: 4px 12px;
  color: var(--danger);
  background: #fff4f4;
  border: 1px solid var(--danger);
  border-radius: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
.screen--results .defect-status.is-done {
  color: var(--ink);
  background: #acb0b6;
  border-color: #acb0b6;
}
.screen--results .defect-card .field-label {
  margin: 0 0 8px !important;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
.screen--results .defect-card > .btn-right + .field-label {
  margin-top: 16px !important;
}
.screen--results .defect-card .result-div {
  margin: 20px 0;
  border-top-color: #c0c3c7;
}
.screen--results .defect-card .field-label + div[style*="font-size:18px"] {
  font-size: 13px !important;
}
.screen--results .defect-card .photo {
  width: 100%;
  margin: 20px 0 0;
  aspect-ratio: 16 / 10;
}
.screen--results .defect-card .btn-row {
  gap: 12px;
  margin-top: 20px !important;
}
.screen--results .defect-card .btn-row .btn {
  min-width: 0;
  height: 40px;
  padding: 0 8px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}

/* 点検結果：報告書一覧 */
.screen--results .card:not(.defect-card):not(.mres-card) .done-head {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
.screen--results .basic-info {
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
}
.screen--results .basic-info .bi-row {
  gap: 0;
  line-height: 1.7;
}
.screen--results .basic-info .bi-k {
  min-width: 72px;
  flex: none;
  color: var(--ink);
}
.screen--results .basic-info + .done-head {
  margin-top: 20px !important;
  padding-top: 20px;
  border-top: 1px solid #c0c3c7;
}
.screen--results .card:not(.defect-card):not(.mres-card) .file-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
}
.screen--results .card:not(.defect-card):not(.mres-card) .file-item {
  margin: 0;
}
.screen--results .card:not(.defect-card):not(.mres-card) .file-item .ft {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}
.screen--results .card:not(.defect-card):not(.mres-card) .file-item .fn {
  margin: 4px 0 0 1em;
  max-width: calc(100% - 1em);
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  text-decoration: underline;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* 点検結果：測定一覧 */
.screen--results .mres-card {
  position: relative;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.screen--results .mres-card > div {
  line-height: 1.7;
}
.screen--results .mres-card > div:not(.mres-head):not(.center-btn) {
  margin-top: 4px;
}
.screen--results .mres-head {
  margin-top: 16px;
  margin-bottom: 4px;
  padding-right: 80px;
}
.screen--results .mres-head > span:first-child {
  font-size: 14px;
  font-weight: 700;
}
.screen--results .mres-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  min-width: 66px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}
.screen--results .mres-badge.ing {
  color: #ff6a30;
  background: #fdf8f4;
  border: 1px solid #ff6a30;
}
.screen--results .mres-badge.not-started {
  color: var(--danger);
  background: #fff4f4;
  border: 1px solid var(--danger);
}
.screen--results .mres-badge.done {
  color: var(--ink);
  background: #acb0b6;
  border: 1px solid #acb0b6;
}
.screen--results .mres-card .center-btn {
  margin-top: 30px !important;
}
.screen--results .mres-card .btn[data-action="goto-measure-edit"] {
  width: 190px;
  max-width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}

/* =====================================================================
   表示は実機（スマホ・iPad）・PCで統一（枠なし・白背景を画面いっぱいに）
   ===================================================================== */

/* =====================================================================
   カード / リスト
   ===================================================================== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin: 6px 0 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink);
}
.info-card .row { display: flex; justify-content: space-between; gap: 10px; }
.info-card .row .k { color: var(--ink-mute); }
.info-card .row .v { color: var(--ink); text-align: right; }
.info-card .inspectors { margin-top: 4px; }

/* 点検箇所一覧アイテム */
.list { display: flex; flex-direction: column; gap: 12px; }
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
}
.list-item:hover { background: #fafafa; }
.list-item__title { font-size: 15px; }
.list-item__right { display: flex; align-items: center; gap: 12px; flex: none; }

.status {
  font-size: 12px;
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f6f6f6;
  white-space: nowrap;
}
.status.done   { background: var(--sel); color: #fff; border-color: var(--sel); }
.status.doing  { background: #efefef; }
.status.todo   { color: var(--ink-mute); }

.chevron { color: var(--ink-mute); font-size: 16px; }

/* 点検箇所一覧の行（点検ボタン＋ステータス選択） */
.list-item--c2 { cursor: default; }
.list-item--c2:hover { background: #fff; }
.list-item--c2 .list-item__right .btn { white-space: nowrap; }
.status-select { width: 110px; }
.status-select .select { margin: 0; }
.status-select .select__btn { padding: 9px 12px; font-size: 13px; }
.status-select .select__opt { padding: 11px 12px; font-size: 13px; }

.section-title { font-size: 14px; color: var(--ink); margin: 18px 0 10px; }
.count-line { text-align: center; font-size: 15px; margin: 8px 0 14px; }
.count-line b { font-size: 17px; }

/* =====================================================================
   点検入力（○△×／）
   ===================================================================== */
.screen--check-input .check-body {
  padding-right: 30px;
  padding-left: 30px;
}
.screen--check-input .check-body > .select {
  width: 250px;
  margin-bottom: 12px;
  margin-right: auto;
  margin-left: auto;
}
.screen--check-input .check-body > .select .select__btn {
  min-height: 50px;
  border-color: var(--line-soft);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 30px;
  padding: 0 2px;
}
/* 英語表示など、ラベルが長くなる場合でも重ならず改行できるように（No.39下段対応） */
.legend span { white-space: nowrap; }
.legend b { font-weight: 500; }

.screen--check-input .check-body > .btn-right .btn {
  width: 96px;
  height: 30px;
  padding: 0;
  color: var(--ink);
  background: var(--page-bg);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--check-input .check-body > .btn-right {
  margin: 0 0 20px !important;
}

.comp-group { margin-bottom: 22px; }
.comp-group__head {
  min-height: 45px;
  display: flex;
  align-items: center;
  background: var(--section-bg);
  margin: 18px -30px 20px;
  padding: 0 30px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.screen--check-input .check-body > .btn-right + .comp-group > .comp-group__head {
  margin-top: 0;
}

.check-item {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  background: #fff;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
/* 前月データ引き継ぎで判定が入ったが今月まだ確認していない項目（画面設計書C-03b／No.53対応）。
   選択済みボタンは淡色表示、カード右上に未読アイコンを出す。今月判定をタップし直すと解消される。 */
.check-item--unread::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid #fff;
}
.check-item--unread .choice.is-sel,
.check-item--unread .choice.is-sel:hover,
.check-item--unread .choices--auto .choice.is-sel {
  --choice-symbol-bg: var(--ink-inactive);
  background: var(--ink-inactive);
  border-color: var(--ink-inactive);
}
.check-item__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}
.check-item__desc {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

.choices { display: flex; gap: 10px; }
.choice {
  --choice-symbol-bg: #fff;
  position: relative;
  flex: 1;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
  cursor: pointer;
}
.choice:hover { background: #fff; }
.choice:not(.choice--auto):active { opacity: .7; }
.choice.is-sel,
.choice.is-sel:hover {
  --choice-symbol-bg: var(--ink);
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

/* ○△×／は15pxの描画領域・線幅2pxで統一 */
.choice[data-value="ok"]::before,
.choices--auto .choice:nth-child(1)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.choice[data-value="watch"]::before,
.choices--auto .choice:nth-child(2)::before,
.choice[data-value="watch"]::after,
.choices--auto .choice:nth-child(2)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.choice[data-value="watch"]::before,
.choices--auto .choice:nth-child(2)::before {
  width: 15px;
  height: 14px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.choice[data-value="watch"]::after,
.choices--auto .choice:nth-child(2)::after {
  width: 8px;
  height: 8px;
  background: var(--choice-symbol-bg);
  transform: translate(-50%, calc(-50% + 1px));
}
.choice[data-value="ng"]::before,
.choice[data-value="ng"]::after,
.choices--auto .choice:nth-child(3)::before,
.choices--auto .choice:nth-child(3)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  background: currentColor;
}
.choice[data-value="ng"]::before,
.choices--auto .choice:nth-child(3)::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.choice[data-value="ng"]::after,
.choices--auto .choice:nth-child(3)::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.choice[data-value="na"]::before,
.choices--auto .choice:nth-child(4)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 15px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* 限界値辞書を紐付けた項目（実測値入力 → 自動計算・自動判定） */
.check-item--calc { border-color: #b9c7da; }
.calc-tag {
  font-size: 12px; font-weight: 600; color: #1f4f86;
  background: #e8f0fb; border: 1px solid #cfe0f6; border-radius: 6px; padding: 2px 8px;
}
.calc-input {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink); margin-bottom: 12px;
}
.calc-input__arrow { color: var(--ink-mute); }
.calc-input__out { min-width: 40px; text-align: right; font-weight: 600; font-size: 15px; color: var(--ink); }
.calc-input__out.danger-text { color: var(--danger); }
.choices--auto .choice { cursor: default; }
.choices--auto .choice:not(.is-sel):hover { background: #fff; }
.calc-note { margin-top: 10px; font-size: 12px; color: var(--ink); }
.calc-note.danger-text { color: var(--danger); }

/* 入力済みの不良箇所情報（点検入力の項目内・開閉式） */
.defect-detail {
  margin-top: 20px;
  border: none;
  border-radius: 0;
  overflow: hidden;
}
.defect-detail__bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  color: var(--ink);
  background: #e0e0e0;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  cursor: pointer;
}
.defect-detail__bar .dd-pm {
  position: relative;
  width: 10px;
  height: 10px;
  flex: none;
  color: #333;
  font-size: 0;
}
.defect-detail__bar .dd-pm::before,
.defect-detail__bar .dd-pm::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.defect-detail__bar .dd-pm::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.defect-detail.is-open .defect-detail__bar .dd-pm::after { display: none; }
.defect-detail__body {
  display: none;
  padding: 20px 14px;
  background: #f2f2f2;
  border-top: none;
}
.defect-detail.is-open .defect-detail__body { display: block; }
.defect-detail .dd-k {
  margin-top: 20px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}
.defect-detail__body .dd-k:first-child { margin-top: 0; }
.defect-detail .dd-v {
  margin-top: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.defect-detail .photo {
  aspect-ratio: 16 / 9;
  margin: 20px 0 10px;
  border: none;
}
.defect-detail .dd-edit {
  margin-top: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}

/* 圏外保留中の同期インジケータ（No.33対応） */
.sync-badge {
  align-self: center;
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--danger);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* 通知ドット */
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  flex: none;
}
.dot--tab {
  position: absolute;
  top: 0; right: -8px;
}

/* 不良箇所詳細 展開バー */
.defect-bar {
  margin-top: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.defect-bar__toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  background: #fafafa;
  border: none;
  font-family: var(--font);
  font-size: 13px; color: var(--ink);
  padding: 11px 14px; cursor: pointer;
}
.defect-bar__body { display: none; padding: 12px 14px; border-top: 1px solid var(--line-soft); }
.defect-bar.is-open .defect-bar__body { display: block; }
.defect-bar__body .kv { font-size: 13px; line-height: 1.8; }
.defect-bar__body .kv .label { color: var(--ink-mute); }

/* 同時入力エラー */
.conflict {
  margin-top: 10px;
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
}
.conflict p { margin-bottom: 8px; line-height: 1.6; }
.conflict .opts { display: flex; gap: 18px; }
.conflict label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* =====================================================================
   写真ブロック（不良箇所 / 周知事項）
   ===================================================================== */
.photo {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(45deg,#eaeaea,#eaeaea 10px,#e0e0e0 10px,#e0e0e0 20px);
  border: 1px solid var(--line);
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute); font-size: 12px;
  margin: 16px 0 14px;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-actions { display: flex; gap: 12px; justify-content: center; margin: 6px 0 4px; }
.icon-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 18px; font-size: 12px; color: var(--ink); cursor: pointer;
  font-family: var(--font);
}
.icon-btn .glyph { display: inline-flex; align-items: center; justify-content: center; }
.icon-btn .glyph img { display: block; width: 24px; height: 24px; }
.text-del { text-align: center; font-size: 13px; color: var(--ink); padding: 6px; cursor: pointer; }

.checkline { display: flex; flex-direction: column; gap: 12px; padding: 8px 0 14px; }
.checkline label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.checkline input { accent-color: var(--sel); }

.breadcrumb {
  font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 18px;
}
.breadcrumb .sep { color: var(--ink-mute); margin: 0 4px; }

.field-label { font-size: 13px; color: var(--ink); margin: 14px 0 6px; }

/* =====================================================================
   不良箇所情報（登録・編集）
   ===================================================================== */
.screen--defect-edit .defect-edit-body {
  padding-bottom: 60px;
  padding-right: 30px;
  padding-left: 30px;
}
.screen--defect-edit .breadcrumb {
  min-height: 50px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 30px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  border-color: var(--ink);
  border-radius: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.screen--defect-edit .breadcrumb .sep {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--ink);
  font-size: 0;
}
.screen--defect-edit .breadcrumb .sep::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.screen--defect-edit .field-label {
  margin: 30px 0 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
.screen--defect-edit .breadcrumb + .field-label {
  margin-top: 0;
}
.screen--defect-edit .checkline {
  gap: 12px;
  margin-bottom: 0;
  padding: 0;
}
.screen--defect-edit .checkline label {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.screen--defect-edit .checkline input {
  position: relative;
  width: 24px;
  height: 24px;
  flex: none;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--defect-edit .checkline input:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 8px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.screen--defect-edit .textarea {
  min-height: 272px !important;
  padding: 16px 18px;
  color: var(--ink);
  border-color: var(--ink);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.screen--defect-edit .textarea:focus {
  border-color: var(--ink);
}
.screen--defect-edit .photo {
  margin: 10px 0 0;
}
.screen--defect-edit .photo:has(img) {
  aspect-ratio: auto;
  display: block;
  background: none;
  border: none;
}
.screen--defect-edit .photo:has(img) .photo__cap {
  display: none;
}
.screen--defect-edit .photo:has(img) img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.screen--defect-edit .text-del {
  width: fit-content;
  margin: 10px 0 0 auto;
  padding: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  text-align: right;
  text-decoration: underline;
}
.screen--defect-edit .photo-actions {
  gap: 30px;
  margin: 30px 0 0;
}
.screen--defect-edit .icon-btn {
  width: 100px;
  height: 80px;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  color: var(--ink);
  background: var(--surface);
  border-color: var(--ink);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--defect-edit .icon-btn:active {
  opacity: .7;
}
.screen--defect-edit .icon-btn .glyph {
  width: 32px;
  height: 32px;
}
.screen--defect-edit .icon-btn .glyph img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.screen--defect-edit .center-btn .btn[data-action="save-defect"] {
  width: 280px;
  max-width: 100%;
  padding: 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--defect-edit .center-btn:has(.btn[data-action="save-defect"]) {
  margin-top: 60px !important;
}

/* =====================================================================
   下部バー（タブ / アクション）
   ===================================================================== */
.bottombar {
  flex: none;
  display: flex;
  width: calc(100% - 30px);
  max-width: var(--bottom-nav-max);
  height: 60px;
  margin: 0 auto 10px;
  padding: 0 10px;
  border: none;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 3px 18px rgb(0 0 0 / 20%);
}
.bottombar__item {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: 5px 2px;
  font-size: 10px; font-weight: 500; color: var(--ink);
  background: none; border: none; cursor: pointer;
  font-family: var(--font);
  text-align: center; line-height: 1.3;
}
.bottombar__item:hover { background: none; }
.bottombar__item:not(:disabled):active { opacity: .7; }
.bottombar__item.is-primary { font-weight: 500; color: var(--ink); }
.bottombar__icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.bottombar__icon img { display: block; width: 24px; height: 24px; }
/* 英語表示などラベルが長い場合は折り返して重なりを防ぐ（No.39下段対応。日本語の短いラベルは1行のまま収まるため見た目は変わらない） */
.bottombar__label { white-space: normal; overflow-wrap: break-word; }
.bottombar__item:disabled,
.bottombar__item.is-disabled { color: var(--ink-mute); opacity: .4; cursor: default; }
.bottombar__item:disabled:hover,
.bottombar__item.is-disabled:hover { background: none; }

/* 下部ナビ バージョン2：白い固定背景＋横並びの単一ボタン */
.bottombar--v2 {
  width: 100%;
  max-width: none;
  height: 60px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-radius: 0;
  box-shadow: 0 -1px 10px rgb(0 0 0 / 3%);
}
.bottombar--v2 .bottombar__item {
  width: 280px;
  max-width: calc(100% - 30px);
  height: 40px;
  flex: none;
  flex-direction: row;
  gap: 4px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.bottombar--v2 .bottombar__item:hover {
  background: var(--surface);
}
.bottombar--v2:has(.bottombar__item + .bottombar__item) {
  gap: 20px;
  padding-right: max(30px, calc((100% - var(--bottom-nav-max)) / 2));
  padding-left: max(30px, calc((100% - var(--bottom-nav-max)) / 2));
}
.bottombar--v2:has(.bottombar__item + .bottombar__item) .bottombar__item {
  width: auto;
  max-width: none;
  flex: 1;
}

/* =====================================================================
   スライドメニュー
   ===================================================================== */
.scrim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.32);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
  z-index: 40;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 76%;
  max-width: var(--drawer-max);
  background: #fff;
  z-index: 50;
  transform: translateX(100%);
  transition: transform .24s ease;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 24px rgba(0,0,0,.12);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; justify-content: flex-end; padding: 6px 20px; }
.drawer__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 28px;
  color: #555;
  cursor: pointer;
  line-height: 1;
}
.drawer__nav { padding: 6px 8px; }
.drawer__item {
  width: 100%; text-align: left;
  background: none; border: none;
  font-family: var(--font); font-size: 16px; color: var(--ink);
  padding: 15px 18px; cursor: pointer;
  border-radius: var(--radius);
}
.drawer__item:hover { background: #f4f4f4; }
.drawer__lang { margin: 14px 18px; }

/* =====================================================================
   モーダル / ダイアログ
   ===================================================================== */
.modal-scrim {
  position: absolute; inset: 0;
  background: rgb(0 0 0 / 20%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  z-index: 60;
  animation: fadeIn .15s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 38px 20px 40px;
  animation: pop .16s ease both;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal__title {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
}
.modal__note {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}
.modal__row {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}
.modal__row .btn {
  flex: 1;
  height: 50px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.modal__row .btn--ghost {
  background: var(--surface);
  border-color: #e0e0e0;
}
.modal__row .btn--primary {
  background: #384252;
}
.modal .select { margin-bottom: 14px; }

/* 点検日・天気変更モーダル */
.modal:has(#modal-date) #modal-date {
  height: 60px;
  min-height: 60px;
  margin-top: 40px;
  margin-bottom: 20px !important;
  padding: 0 20px;
  color: var(--ink);
  background: var(--surface);
  border-color: #384252;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}
.modal:has(#modal-date) #modal-date::placeholder,
.modal:has(#modal-date) [data-select-root="modalWeather"] .select__btn.is-placeholder {
  color: rgb(59 64 67 / 40%);
}
.modal:has(#modal-date) [data-select-root="modalWeather"] .select__btn {
  height: 60px;
  padding: 0 20px;
  color: var(--ink);
  background: var(--surface);
  border-color: #384252;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}
.modal:has(#modal-date) > .center-btn {
  margin-top: 40px !important;
}
.modal:has(#modal-date) .center-btn .btn[data-action="apply-date"] {
  flex: none;
  width: 252px;
  max-width: 100%;
  padding: 20px;
  color: var(--sel-ink);
  background: #384252;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}

/* =====================================================================
   点検者管理
   ===================================================================== */
.screen--inspectors .inspectors-body {
  padding: 6px 30px 24px;
}
.screen--inspectors .field {
  margin-bottom: 12px;
}
.screen--inspectors .field:has(+ .center-btn) {
  margin-bottom: 0;
}
.screen--inspectors .input {
  height: 60px;
  padding: 0 20px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #384252;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}
.screen--inspectors .input::placeholder {
  color: var(--ink-placeholder);
}
.screen--inspectors .center-btn {
  margin-top: 60px;
}
.screen--inspectors .center-btn .btn[data-action="save-inspectors"] {
  flex: none;
  width: 280px;
  max-width: 100%;
  padding: 20px;
  color: var(--sel-ink);
  background: #384252;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}

/* トースト */
.toast {
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: auto;
  width: calc(100% - 48px);
  max-width: 400px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  background: rgb(56 66 82 / 80%);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  padding: 12px 18px;
  border-radius: 0;
  box-shadow: none;
  z-index: 70;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.toast.is-show { opacity: 1; transform: translate(-50%, -50%) translateY(-6px); }

.spacer-lg { height: 24px; }
.muted { color: var(--ink-mute); }
.center-text { text-align: center; }
.danger-text,
.mcalc.danger-text { color: var(--danger); }   /* .mcalc より優先度を上げて確実に赤字 */

/* =====================================================================
   点検箇所一覧ヘッダーカード（ワイヤー準拠）
   ===================================================================== */
.meta-card { line-height: 1.95; }
.meta-id { font-size: 14px; color: var(--ink); }
.meta-line { font-size: 14px; color: var(--ink); }
.meta-subhead { font-size: 15px; font-weight: 600; color: var(--ink); margin: 12px 0 10px; }
/* minmax(0,...)＋min-width:0 で、狭い画面幅でも列が広がりすぎず横に見切れないようにする */
.meta-grid { display: grid; grid-template-columns: minmax(0, 128px) minmax(0, 1fr); gap: 12px 14px; }
.meta-cell { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; font-size: 13px; color: var(--ink); }
/* 英語表示などラベルが長くなる場合は折り返して重なりを防ぐ（No.39下段対応。日本語の短いラベルは1行のまま収まるため見た目は変わらない） */
.meta-cell .mlbl  { color: var(--ink); flex: 0 1 auto; min-width: 0; }
.meta-cell .mval  { color: var(--ink); font-weight: 600; }
.meta-cell .munit { color: var(--ink); }
.meta-input { width: 92px; }
.meta-grid .meta-wire { width: 52px; }   /* .minput(84px) を上書き。測定値は数桁で十分 */

/* 巻上げワイヤー：主巻（常時表示）＋補巻（折りたたみ）の帯 */
.wire-rope + .wire-rope { margin-top: 14px; }
.wire-rope__bar {
  background: #ececec;
  margin: 0 -18px;
  padding: 8px 18px;
  font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.wire-rope__pm {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--ink-mute); padding: 0 6px; line-height: 1;
}
.wire-rope__body { display: none; padding: 12px 0 4px; }
.wire-rope.is-open > .wire-rope__body { display: block; }
/* フリー入力（対象を入力）の帯：「その他」ラベル＋入力欄を左、＋/−を右端 */
.wire-rope__bar--free { padding-top: 6px; padding-bottom: 6px; justify-content: flex-start; }
.wire-rope__bar--free .wire-rope__pm { margin-left: auto; }
.wire-rope__freelabel { flex: none; font-size: 15px; font-weight: 600; color: var(--ink); }
.wire-rope__input {
  width: 35%; flex: none;
  padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff; font-family: var(--font); font-size: 14px;
  font-weight: 600; color: var(--ink);
}
.wire-rope__input:focus { outline: none; border-color: #9a9a9a; }
.wire-rope__input::placeholder { color: var(--ink-placeholder); font-weight: 400; }
.meta-cell .mlbl { min-width: 40px; }
.meta-date  { flex: 1; min-width: 0; padding-left: 6px; padding-right: 6px; color: var(--ink); }   /* カレンダー入力はセル幅に合わせる。colorは他の項目文字色に揃える */
/* 交換日：カレンダーアイコンを隠して日付の文字を見せる（タップでカレンダーは開く） */
.meta-date::-webkit-calendar-picker-indicator { display: none; -webkit-appearance: none; }
.meta-cell .mcalc { min-width: 32px; }

/* =====================================================================
   報告書フロー
   ===================================================================== */
.linkbtn {
  background: none; border: none;
  color: var(--link-muted); text-decoration: underline;
  font-size: 12px; cursor: pointer; font-family: var(--font);
  padding: 0 0 0 6px;
}

/* 報告書発行ページの行（全報告書一覧）— タイトルは全幅のグレー帯 */
.rep-row { margin-bottom: 48px; }
.rep-row__name {
  background: #ececec;
  margin: 0 -24px 28px;
  padding: 13px 24px;
  font-weight: 600; font-size: 16px; color: var(--ink);
}
.rep-row__none { font-size: 13px; color: var(--ink-mute); padding: 2px 4px; }
.rep-row__issued { font-size: 13px; color: var(--ink); margin: 0 0 10px 4px; }
.rep-row__ctrl { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 4px; }
.rep-empty { text-align: center; color: var(--ink-mute); font-size: 14px; padding: 32px 4px; }
.rep-row__ctrl .btn { white-space: nowrap; }
.issue-select { width: 140px; }
.issue-select .select { margin: 0; }
.issue-select .select__btn { padding: 9px 12px; font-size: 13px; }
.issue-select .select__opt { padding: 11px 12px; font-size: 13px; }

/* セクションバー（薄グレーの全幅見出し） */
.report-section-bar {
  background: #ececec;
  margin: 16px -24px 0;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.report-issued {
  text-align: center;
  font-size: 14px;
  color: var(--ink);
  margin: 22px 0 6px;
}

/* 固定フッター（報告書発行 など） */
.screen__foot {
  flex: none;
  padding: 16px 24px;
  background: #f4f4f4;
  border-top: 1px solid var(--line);
}

/* 報告書一覧 */
.screen--report-manage .report-manage-body {
  padding: 6px 15px 24px;
}
.screen--report-manage .info-card {
  margin: 0;
  padding: 20px 24px;
  background: var(--surface);
  border: none;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.screen--report-manage .info-card .row {
  justify-content: flex-start;
}
.screen--report-manage .info-card .row + .row {
  margin-top: 8px;
}
.screen--report-manage .info-card .row .k {
  display: none;
}
.screen--report-manage .info-card .row .v {
  min-width: 0;
  color: var(--ink);
  text-align: left;
  overflow-wrap: anywhere;
}
.screen--report-manage .spacer-lg {
  height: 40px;
}
.screen--report-manage .rep-row {
  margin-bottom: 24px;
}
.screen--report-manage .rep-row__name {
  min-height: 45px;
  display: flex;
  align-items: center;
  margin: 0 -15px 40px;
  padding: 0 30px;
  background: var(--section-bg);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.screen--report-manage .rep-row__ctrl {
  gap: 22px;
  padding: 0;
  justify-content: flex-start;
}
.screen--report-manage .rep-row__ctrl .btn {
  width: 160px;
  max-width: calc(100% - 162px);
  height: 50px;
  flex: none;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--report-manage .issue-select {
  width: 140px;
  flex: none;
}
.screen--report-manage .issue-select .select__btn {
  height: 40px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--report-manage .issue-select .select__btn > span:first-child {
  flex: 1;
  text-align: center;
}
.screen--report-manage .issue-select .select__opt {
  text-align: center;
}
.screen--report-manage .rep-empty {
  padding: 0 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.screen--report-manage .report-foot {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  box-shadow: 0 -1px 10px rgb(0 0 0 / 3%);
}
.screen--report-manage .report-foot .btn {
  width: 280px;
  max-width: calc(100% - 30px);
  height: 40px;
  padding: 0 20px;
  color: var(--sel-ink);
  background: var(--fill);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}

/* 発行完了：ファイル一覧 */
.file-list { margin: 6px 0 8px; }
.file-item { margin: 16px 0; }
.file-item .ft { font-size: 14px; color: var(--ink); }
.file-item .fn {
  display: inline-block; margin-top: 4px;
  font-size: 14px; color: var(--ink);
  text-decoration: underline; cursor: pointer;
  word-break: break-all;
}
.done-title { text-align: center; font-size: 16px; margin: 40px 0 26px; }
.done-head { font-size: 14px; font-weight: 600; margin: 0 0 4px; }

/* 報告書発行完了 */
.screen--report-done .report-done-body {
  padding: 6px 30px 60px;
}
.screen--report-done .done-title {
  margin: 60px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}
.screen--report-done .done-head {
  margin: 40px 0 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
.screen--report-done .file-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
  background: var(--surface);
  border: none;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--report-done .file-item {
  margin: 0;
}
.screen--report-done .file-item .fn {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  text-decoration: underline;
  overflow-wrap: anywhere;
  word-break: normal;
}
.screen--report-done .center-btn {
  margin-top: 60px !important;
}
.screen--report-done .center-btn .btn[data-action="go-home"] {
  width: 280px;
  max-width: 100%;
  padding: 20px;
  color: var(--sel-ink);
  background: var(--fill);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}

/* 報告書プレビュー（内容確認）モーダル本文 */
.preview-body { font-size: 14px; line-height: 1.9; color: var(--ink); text-align: left; }
.preview-body ul { margin: 8px 0 0; padding-left: 18px; }
.preview-body li { margin: 3px 0; }

/* =====================================================================
   測定入力（E）
   ===================================================================== */
.m-typeselect { display: flex; justify-content: center; margin: 6px 0 18px; }
.m-typeselect .select { width: 210px; margin: 0; }

/* 種別ヘッダー（薄グレー全幅・右に定格など） */
.m-section-bar {
  background: #ececec;
  margin: 35px -24px 0;
  padding: 13px 24px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.m-section-bar .rated {
  font-size: 13px; font-weight: 400; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.m-section-bar .rated input { width: 64px; }
.m-subhead { font-size: 14px; color: var(--ink); margin: 16px 2px 6px; }

/* 計測テーブル */
.mtable {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 16px; margin: 14px 0;
}
.mtable__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 7px 0;
}
.ml { font-size: 14px; font-weight: 600; color: var(--ink); }
.mv { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.minput {
  width: 84px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 3px;
  font-family: var(--font); font-size: 14px; background: #fff;
}
.minput:focus { outline: none; border-color: #9a9a9a; }
.mcalc {
  display: inline-block; min-width: 56px; text-align: right;
  font-weight: 600; color: var(--ink);
}

/* 折りたたみ行（対象入力・回路追加） */
.mrow { margin: 35px 0; }
.mrow__head {
  display: flex; align-items: center; gap: 10px;
  background: #f3f3f3; border-radius: 6px; padding: 9px 12px;
}
.mrow__head .grow { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink); }
.mrow__field { flex: 1; }
.mrow__field input {
  width: 100%; padding: 8px 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 6px; font-family: var(--font);
}
.mrow__pm {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--ink-mute); padding: 0 4px; line-height: 1;
}
.mrow__body { display: none; }
.mrow.is-open > .mrow__body { display: block; }

/* フリー入力枠（対象の回路を入力）— セクションと同じ全幅の帯＋70%幅の入力 */
.m-section-bar.mfree { margin-top: 35px; padding: 9px 24px; gap: 10px; }
.mfree__input {
  width: 70%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-family: var(--font); font-size: 14px; font-weight: 400; color: var(--ink);
}
.mfree--rated .mfree__input { width: auto; flex: 1; min-width: 0; }

/* 折りたたみセクション（回目・駆動） */
.msec__body { display: none; }
.msec.is-open > .msec__body { display: block; }

.m-inline-select { width: 130px; margin: 12px 0 0; }
.m-inline-select .select { margin: 0; }
.m-inline-select .select__btn { padding: 9px 12px; font-size: 13px; }
.m-inline-input {
  width: 130px; margin: 10px 0 0; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font-family: var(--font); font-size: 13px;
}
.rated .mval { color: var(--ink); font-weight: 600; }

/* 走行/横行タブ（車輪測定） */
.seg-tabs { display: flex; justify-content: center; gap: 36px; margin: 16px 0 4px; }
.seg-tab {
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 16px; color: var(--ink-inactive);
  padding: 6px 4px;
}
.seg-tab.is-active { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--ink); }

/* 測定 同時入力エラー */
.mconflict { color: var(--danger); font-size: 12px; line-height: 1.8; padding: 4px 0; }
.mconflict label { display: block; cursor: pointer; }
.mconflict input { margin-right: 6px; vertical-align: -1px; }

/* 測定編集（絶縁・電流・車輪・たわみ・フック共通） */
.screen--measure-input {
  background: var(--page-bg);
}
.screen--measure-input .measure-body {
  padding: 6px 30px 60px;
}
.screen--measure-input .m-typeselect {
  margin: 0 0 20px;
}
.screen--measure-input .m-typeselect .select {
  width: 250px;
  max-width: 100%;
  margin: 0;
}
.screen--measure-input .m-typeselect .select__btn {
  height: 50px;
  padding: 0 20px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--measure-input .measure-meta {
  margin: 0;
  padding: 16px 20px;
  color: var(--ink);
  background: var(--surface);
  border: none;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.screen--measure-input .measure-meta > div + div {
  margin-top: 4px;
}
.screen--measure-input .measure-meta .linkbtn {
  padding-left: 6px;
  color: var(--link-muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.7;
}
.screen--measure-input .measure-meta__load,
.screen--measure-input .measure-meta__limits {
  gap: 12px;
  font-size: 13px;
  font-weight: 400;
}
.screen--measure-input .measure-meta__limits {
  flex-wrap: wrap;
}
.screen--measure-input .measure-meta__limits > span {
  white-space: nowrap;
}

.screen--measure-input .m-section-bar {
  min-height: 45px;
  margin: 30px -30px 0;
  padding: 0 30px;
  color: var(--ink);
  background: var(--section-bg);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.screen--measure-input .m-section-bar .rated {
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.screen--measure-input .rated .mval {
  color: var(--ink);
  font-weight: 400;
}
.screen--measure-input .mrow,
.screen--measure-input .msec {
  margin: 0;
}
.screen--measure-input .m-section-bar.mfree {
  min-height: 45px;
  margin: 30px -30px 0;
  padding: 5px 30px;
  gap: 10px;
}
.screen--measure-input .mrow:not(.is-open) + .mrow > .m-section-bar,
.screen--measure-input .msec:not(.is-open) + .msec > .m-section-bar {
  margin-top: 2px;
}
.screen--measure-input .mrow__pm {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
  padding: 0;
  color: #333333;
  background: none;
  border: none;
  font-size: 0;
}
.screen--measure-input .mrow__pm::before,
.screen--measure-input .mrow__pm::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.screen--measure-input .mrow__pm::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.screen--measure-input .mrow.is-open > .m-section-bar .mrow__pm::after,
.screen--measure-input .msec.is-open > .m-section-bar .mrow__pm::after {
  display: none;
}

.screen--measure-input .mtable {
  margin: 16px 0 0;
  padding: 16px 30px;
  background: var(--surface);
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--measure-input .mtable__row {
  min-height: 30px;
  gap: 10px;
  padding: 0;
}
.screen--measure-input .mtable__row + .mtable__row {
  margin-top: 12px;
}
.screen--measure-input .ml {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.screen--measure-input .mv {
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.screen--measure-input .minput {
  width: 80px;
  height: 30px;
  padding: 0 8px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
}
.screen--measure-input .minput:focus {
  border-color: var(--ink);
}
.screen--measure-input .mcalc {
  min-width: 68px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
}
.screen--measure-input .mcalc.danger-text {
  color: var(--danger);
}
.screen--measure-input .m-subhead {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.screen--measure-input .m-subhead + .mtable {
  margin-top: 0;
}

.screen--measure-input .m-inline-select {
  width: 100px;
  margin: 16px 0 0;
}
.screen--measure-input .m-inline-select .select {
  margin: 0;
}
.screen--measure-input .m-inline-select .select__btn {
  height: 35px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--measure-input .mfree__input {
  height: 35px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--measure-input .mfree__input::placeholder {
  color: var(--ink-placeholder);
}
.screen--measure-input .mfree--rated .mfree__input {
  /* 既定は160px。320px幅など狭い画面では縮んで「＋」ボタンを見切れさせない（No.26対応） */
  flex: 0 1 160px;
  width: 160px;
  min-width: 0;
}
.screen--measure-input .m-section-bar .rated input {
  width: 48px;
  height: 35px;
}
.screen--measure-input .mrow__body > .mfree__input {
  margin-top: 20px;
}

/* 車輪測定：走行／横行タブ */
.screen--measure-input .seg-tabs {
  gap: 36px;
  margin: 30px 0 0;
  border-bottom: 1px solid var(--line-soft);
}
.screen--measure-input .seg-tab {
  min-width: 68px;
  margin-bottom: -1px;
  padding: 0 4px 10px;
  color: var(--ink-inactive);
  border: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.screen--measure-input .seg-tab.is-active {
  color: var(--ink);
  border-bottom: 4px solid #f7802f;
}

/* 絶縁測定：同時入力表示 */
.screen--measure-input .mconflict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 12px 0;
  padding: 12px;
  color: var(--ink);
  background: #fff4f4;
  border: 1px solid var(--danger);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
}
.screen--measure-input .mconflict p {
  width: 100%;
}
.screen--measure-input .mconflict label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.screen--measure-input .mconflict input {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 0;
  accent-color: var(--ink);
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}

.screen--measure-input .measure-body > .textarea {
  height: 140px;
  min-height: 140px !important;
  margin-top: 20px !important;
  padding: 16px 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  resize: none;
}
.screen--measure-input .measure-body > .textarea::placeholder {
  color: var(--ink-placeholder);
}
.screen--measure-input .measure-body > .center-btn:has(.btn[data-action="create-report"]) {
  margin-top: 60px !important;
}
.screen--measure-input .btn[data-action="create-report"] {
  width: 280px !important;
  max-width: 100%;
  padding: 20px;
  color: var(--sel-ink);
  background: var(--fill);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}

/* 測定編集の下部ナビ（バージョン2・3ボタン） */
.screen--measure-input .bottombar--v2:has(.bottombar__item + .bottombar__item) {
  gap: 12px;
  padding-right: max(15px, calc((100% - var(--bottom-nav-max)) / 2));
  padding-left: max(15px, calc((100% - var(--bottom-nav-max)) / 2));
}
.screen--measure-input .bottombar--v2:has(.bottombar__item + .bottombar__item) .bottombar__item {
  width: auto;
  max-width: none;
  min-width: 0;
  flex: 1;
  padding: 0 6px;
}

/* =====================================================================
   実装追加分（実データ・実API連携に伴う最小限の追加）
   プロトタイプに存在しない状態・画面のみを対象とし、
   上記の配色・形状（プロトタイプ由来）はそのまま利用する
   ===================================================================== */

/* 確認用操作バーは公開環境では常に非表示（納品状態） */
.proto-bar,
p.proto-bar {
  display: none;
}

/* ログインエラー（API認証失敗時のメッセージ） */
.login-error {
  display: none;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.login-error.is-show { display: block; }

/* 空データ表示（実DBに対象が無い場合。サンプル表示はしない） */
.empty-message {
  padding: 32px 8px;
  color: var(--ink-mute);
  font-size: 14px;
  text-align: center;
}

/* 周知事項 */
.notice-block { margin-bottom: 20px; }
.notice-text { min-height: 90px; }
.screen--broadcast .broadcast-body {
  padding: 6px 30px 40px;
}
.screen--broadcast .notice-block {
  margin-bottom: 0;
}
.screen--broadcast .notice-block + .notice-block {
  margin-top: 40px;
}
.screen--broadcast .notice-block .photo {
  margin: 0 0 15px;
  border: none;
  border-radius: 0;
}
.screen--broadcast .notice-block .photo:has(img) {
  aspect-ratio: auto;
  display: block;
  background: none;
}
.screen--broadcast .notice-block .photo:has(img) .photo__cap {
  display: none;
}
.screen--broadcast .notice-block .photo:has(img) img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.screen--broadcast .notice-text {
  min-height: 140px;
  padding: 16px 18px;
  color: var(--ink);
  border-color: var(--ink);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.screen--broadcast .notice-text:focus {
  border-color: var(--ink);
}
.screen--broadcast .notice-text::placeholder {
  color: var(--ink-placeholder);
}
.screen--broadcast .notice-block .text-del {
  padding: 10px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  text-align: right;
  text-decoration: underline;
}
.screen--broadcast .photo-actions {
  gap: 30px;
  margin: 30px 0 0;
}
.screen--broadcast .icon-btn {
  width: 100px;
  height: 80px;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  color: var(--ink);
  background: var(--surface);
  border-color: var(--ink);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}
.screen--broadcast .icon-btn:active:not(:disabled) {
  opacity: .7;
}
.screen--broadcast .icon-btn:disabled {
  opacity: .4;
  cursor: default;
}
.screen--broadcast .icon-btn .glyph,
.screen--broadcast .icon-btn .glyph img {
  width: 32px;
  height: 32px;
}
.screen--broadcast .icon-btn .glyph img {
  object-fit: contain;
}
.screen--broadcast .broadcast-body > .center-btn:has(.btn[data-action="create-report"]) {
  margin: 60px 0 40px !important;
}
.screen--broadcast .btn[data-action="create-report"] {
  width: 280px !important;
  max-width: 100%;
  padding: 20px;
  color: var(--sel-ink);
  background: var(--ink);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}

/* 特記事項 */
.screen--notes .notes-body {
  padding: 6px 30px 60px;
}
.screen--notes #notes-text {
  min-height: 140px;
  height: 140px;
  padding: 16px 18px;
  color: var(--ink);
  border-color: var(--ink);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  resize: none;
}
.screen--notes #notes-text:focus {
  border-color: var(--ink);
}
.screen--notes #notes-text::placeholder {
  color: var(--ink-placeholder);
}
.screen--notes .center-btn {
  margin-top: 60px;
}
.screen--notes .btn[data-action="save-notes"] {
  width: 280px;
  max-width: 100%;
  padding: 20px;
  color: var(--sel-ink);
  background: var(--ink);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
}

/* 写真アップロード・カメラ起動用の非表示file input */
.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 測定入力：クレーン名・点検日・点検者（実データ）／たわみ測定の定格荷重・限界値 */
.measure-meta__load,
.measure-meta__limits {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 報告書内容確認・発行ファイルのアプリ内フルスクリーン表示
   （WebViewでwindow.openが機能しない可能性があるため、
   新規ウィンドウではなくiframeオーバーレイで表示する） */
.preview-frame {
  position: fixed; inset: 0;
  z-index: 70;
  background: #fff;
  display: flex; flex-direction: column;
}
.preview-frame__bar {
  flex: none;
  height: 60px;
  padding: 0 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
}
/* 帳票プレビューの拡大縮小（No.57対応）。viewportはmaximum-scale=1.0で
   ピンチズームを無効化しているため、iframeへのtransform:scaleで代替する。 */
.preview-frame__zoom {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.preview-frame__zoom .icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  box-sizing: border-box;
}
.preview-frame__zoom-val {
  min-width: 40px;
  text-align: center;
  font-size: 13px;
  color: var(--ink);
  flex-shrink: 0;
  white-space: nowrap;
}
.preview-frame__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.preview-frame__bar .btn {
  width: auto;
  min-width: 68px;
  height: 36px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 10px rgb(0 0 0 / 3%);
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.preview-frame__bar .preview-frame__btn-share {
  width: auto;
  min-width: 78px;
  padding: 0 12px;
  color: #fff;
  background: var(--primary, #1976d2);
  border-color: var(--primary, #1976d2);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.preview-frame__bar .preview-frame__btn-share:hover,
.preview-frame__bar .preview-frame__btn-share:active {
  opacity: 0.9;
}
@media (max-width: 360px) {
  .preview-frame__bar {
    padding: 0 8px;
    gap: 4px;
  }
  .preview-frame__zoom {
    gap: 4px;
  }
  .preview-frame__zoom .icon-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .preview-frame__zoom-val {
    min-width: 34px;
    font-size: 12px;
  }
  .preview-frame__actions {
    gap: 6px;
  }
  .preview-frame__bar .btn {
    height: 32px;
    min-width: 58px;
    padding: 0 8px;
    font-size: 12px;
  }
  .preview-frame__bar .preview-frame__btn-share {
    min-width: 70px;
    padding: 0 8px;
  }
}
.preview-frame__body {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
/* 用紙幅が画面幅を超える帳票を縮小表示するためのラッパー（No.29対応）。
   iframeにtransform:scaleを掛け、スクロール量が実寸のままにならないよう
   このラッパー側へ縮小後のサイズを設定する。 */
.preview-frame__scaler {
  width: 100%;
  height: 100%;
}
.preview-frame__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* 発行済みPDFはPDF.jsでcanvasへ自前描画する（No.59再発対応、iOS SafariのiframeへのPDF埋め込みは
   2ページ目以降が表示できない既知の制約があるため）。ページを縦に並べて枠側のスクロールに任せる。 */
.preview-frame__body--pdf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  min-width: 100%;
  box-sizing: border-box;
}
.pdfjs-page {
  display: block;
  margin: 0 auto;
  box-shadow: 0 1px 6px rgb(0 0 0 / 15%);
  background: #fff;
  flex-shrink: 0;
}
.preview-frame__loading {
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-mute);
}

/* =====================================================================
   年次点検画面（シンプル版モック準拠）
   ===================================================================== */
.screen--annual-inspection .center-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 22px !important;
  width: 100% !important;
}
.screen--annual-inspection .notdone {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--warn, #9a5b00);
  text-align: center;
}
.screen--annual-inspection .card.annual-header-card {
  padding: 12px 0;
  background: transparent;
  border: none;
}

