* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  background: #f4f5f7;
  color: #222;
}
.app-shell { min-height: 100vh; margin-left: 220px; }
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 220px;
  background: #1e2761;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  overflow-y: auto;
}
.brand { font-weight: bold; font-size: 15px; line-height: 1.4; padding: 0 20px 20px; }
.sidenav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.nav-link { color: #cadcfc; text-decoration: none; padding: 10px 20px; }
.nav-link.active, .nav-link:hover { background: rgba(255,255,255,0.15); color: #fff; }
.sidebar-user {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 20px 0; margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px; color: #cadcfc;
}
.container { max-width: 1040px; margin: 32px auto; padding: 0 20px; }

.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.page-head-actions { display: flex; align-items: center; gap: 16px; }
h1 { font-size: 22px; margin: 0; }

.link-muted { color: #6b7280; font-size: 13px; text-decoration: none; }
.link-muted:hover { color: #1e2761; text-decoration: underline; }

.trash-hint { color: #6b7280; font-size: 13px; margin-bottom: 16px; }
.trash-table td.actions { display: flex; gap: 8px; }
button.btn-restore, button.btn-purge {
  border: none !important; border-radius: 6px !important; padding: 6px 12px !important; font-size: 13px; cursor: pointer;
}
button.btn-restore { background: #e8f0fe !important; color: #1e2761; }
button.btn-restore:hover { background: #d7e3fc !important; }
button.btn-purge { background: #fdeaea !important; color: #b3261e; }
button.btn-purge:hover { background: #fbdada !important; }

.btn, button[type=submit] {
  background: #1e2761;
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
}
.btn:hover, button[type=submit]:hover { background: #14184a; }
.btn-secondary {
  color: #1e2761;
  padding: 9px 16px;
  text-decoration: none;
  font-size: 14px;
}

.search-form { margin-bottom: 16px; display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.search-form input { padding: 8px; border: 1px solid #ccc; border-radius: 4px; min-width: 280px; width: 100%; }
.search-form button { background: #fff; color: #1e2761; border: 1px solid #1e2761; border-radius: 4px; padding: 8px 14px; cursor: pointer; }
.site-type-filter-select {
  padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px;
  color: #333; background: #fff; min-width: 180px;
}
/* 課題・施策・成果フィルター（v59）。.search-form input { width:100%; min-width:280px; }が
   全inputに掛かってしまうため、このチェックボックスだけ明示的に上書きする。 */
.kss-only-filter-label {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #333;
  white-space: nowrap; padding: 8px 4px;
}
.kss-only-filter-label input[type="checkbox"] {
  width: auto; min-width: 0; padding: 0;
}
.autocomplete-wrap { position: relative; flex: 1; max-width: 380px; }
.autocomplete-field { position: relative; }
.suggest-box {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  background: #fff; border: 1px solid #ccc; border-top: none; border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12); max-height: 240px; overflow-y: auto;
}
.suggest-item { padding: 8px 12px; cursor: pointer; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; }
.suggest-item:hover, .suggest-item.active { background: #eef0f8; }
.suggest-name { color: #222; }
.suggest-alias { color: #888; font-size: 12px; white-space: nowrap; }
.suggest-header {
  padding: 6px 12px; font-size: 11px; color: #888; background: #f7f8fb;
  border-bottom: 1px solid #eee;
}
.alias-cell { color: #666; font-size: 13px; }

.data-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
.data-table th { background: #eef0f8; color: #1e2761; }
.data-table .empty { text-align: center; color: #999; padding: 24px; }
.actions a { margin-right: 12px; color: #1e2761; }
.inline-form { display: inline; }
.link-danger { background: none; border: none; color: #c03030; cursor: pointer; padding: 0; font-size: 14px; text-decoration: underline; }

/* 編集（ペン）・削除（ゴミ箱）アイコン。削除は誤操作防止のためさりげなく、
   編集は少し目立つように見た目に差をつけている。
   ※ a.icon-btn / button.icon-btn のように要素名まで含めているのは、
     既存の button[type=submit] のスタイル（大きい紺色ボタン）より
     優先させるため（CSSの詳細度をわざと上げている）。 */
.actions, .slide-card-actions { display: flex; align-items: center; gap: 6px; }
.actions a.icon-btn { margin-right: 0 !important; }
a.icon-btn, button.icon-btn {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 30px !important; height: 30px !important; border-radius: 6px !important; border: none !important;
  cursor: pointer; padding: 0 !important; margin: 0 !important; flex-shrink: 0; text-decoration: none;
  background: none !important; box-shadow: none !important; font-size: 14px;
}
.icon-btn svg { width: 16px; height: 16px; display: block; }
a.icon-btn.icon-btn-edit, button.icon-btn.icon-btn-edit { background: #eef0f8 !important; color: #1e2761; }
a.icon-btn.icon-btn-edit:hover, button.icon-btn.icon-btn-edit:hover { background: #dde2f5 !important; }
button.icon-btn.icon-btn-delete { color: #c03030; opacity: 0.55; }
button.icon-btn.icon-btn-delete:hover { opacity: 1; background: #fdecec !important; }

.cases-table .overview-cell { max-width: 260px; color: #444; font-size: 13px; line-height: 1.5; }
.list-thumb {
  width: 84px; height: 56px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; display: block;
}
.list-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  background: #f2f2f2; color: #999; font-size: 11px;
}

.form-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); max-width: 480px; }
.form-card label { display: block; margin-bottom: 14px; font-size: 13px; color: #444; }
.form-card input, .form-card textarea {
  display: block; width: 100%; margin-top: 6px; padding: 9px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; font-family: inherit;
}
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; }

.required-badge { color: #c03030; font-weight: bold; font-size: 12px; }
.field-hint { color: #888; font-size: 12px; margin: 2px 0 8px; line-height: 1.5; }

.danger-zone {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: #fff; border: 1px solid #f3d4d4; border-radius: 8px;
  padding: 16px 20px; margin-top: 24px; max-width: 640px;
}
.danger-zone-text { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #444; }
.danger-zone-text strong { color: #c03030; }
.danger-zone-sub { color: #888; font-size: 12px; }
button.btn-danger {
  background: #fdecec !important; color: #c03030; border: 1px solid #f3c6c6; border-radius: 6px;
  padding: 9px 16px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
button.btn-danger:hover { background: #fbdada !important; }

.error { color: #c03030; background: #fdecec; padding: 10px 14px; border-radius: 6px; font-size: 13px; }
.flash { color: #1a6b3c; background: #e9f7ef; padding: 10px 14px; border-radius: 6px; font-size: 13px; }
.notice-box {
  background: #eef0f8; color: #1e2761; border-radius: 6px; padding: 12px 16px;
  font-size: 13px; max-width: 480px; margin-bottom: 16px; line-height: 1.6;
}
.warning-box {
  background: #fff8e1; color: #7a5b00; border: 1px solid #f0d98c; border-radius: 6px;
  padding: 10px 14px; font-size: 13px; margin: -6px 0 14px 0; max-width: 480px; line-height: 1.6;
}
.warning-box ul { margin: 6px 0; padding-left: 18px; }
.warning-box a { color: #1e2761; }
.hint { color: #777; font-size: 12px; margin-top: 20px; }

.badge-private {
  display: inline-block; background: #c03030; color: #fff; font-size: 11px; font-weight: bold;
  padding: 3px 8px; border-radius: 4px; white-space: nowrap;
}

.badge-draft {
  display: inline-block; background: #e0a020; color: #fff; font-size: 11px; font-weight: bold;
  padding: 3px 8px; border-radius: 4px; white-space: nowrap; margin-left: 6px;
}

.btn-secondary-solid {
  background: #fff; color: #1e2761; border: 1px solid #1e2761; border-radius: 6px;
  padding: 9px 16px; font-size: 14px; cursor: pointer;
}
.btn-secondary-solid:hover { background: #eef0f8; }

.inline-add-form { display: flex; gap: 10px; margin-bottom: 16px; max-width: 420px; }
.inline-add-form input { padding: 9px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; flex: 1; }

.settings-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; max-width: 1040px;
}
@media (max-width: 800px) {
  .settings-grid { grid-template-columns: 1fr; }
}
.settings-grid .form-card { max-width: none; }
.settings-table-scroll { max-height: 420px; overflow-y: auto; border-radius: 6px; }
.settings-table-scroll .data-table thead th { position: sticky; top: 0; z-index: 1; }

.export-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #fff; padding: 12px 16px; border-radius: 8px; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.select-link { color: #1e2761; font-size: 13px; text-decoration: underline; }
.export-count { font-size: 13px; color: #666; margin-right: auto; }
.export-option { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #333; white-space: nowrap; }
.export-option input { width: auto; margin: 0; }
.export-format-buttons { display: flex; gap: 8px; flex-shrink: 0; }

.view-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
.view-toggle-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  color: #1e2761; text-decoration: none;
  border: 1px solid #1e2761; border-radius: 8px; background: #fff;
}
.view-toggle-link svg { width: 18px; height: 18px; }
.view-toggle-link.active { background: #1e2761; color: #fff; }

/* ---- 事例一覧：カード表示（パワポの仮レイアウトを再現） ---- */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 10px;
}
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
.slide-card {
  background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.slide-card-visual {
  position: relative; aspect-ratio: 13.333 / 7.5; background: #fff;
  overflow: hidden; cursor: zoom-in; border-bottom: 1px solid #eee;
}

/* ---- 左側：白背景に文字情報（デザイナー納品パワポと同じ構成） ---- */
.slide-left-panel {
  position: absolute; left: 3.3%; top: 4.8%; width: 34.3%; bottom: 3%;
  display: flex; flex-direction: column; overflow: hidden;
}
.slide-client-name {
  font-size: 9px; font-weight: bold; color: #202020; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slide-title {
  font-size: 6.5px; font-weight: bold; color: #202020; margin-top: 3%; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slide-tags { margin-top: 4%; display: flex; gap: 2px; flex-wrap: wrap; }
.slide-tag-pill { background: #e4f2f6; color: #202020; font-size: 4.5px; padding: 1.5px 4px; border-radius: 999px; white-space: nowrap; }
.slide-divider { margin-top: 4%; border-top: 1px solid #c4c4c4; }
.slide-overview-text {
  font-size: 5px; color: #202020; line-height: 1.5; margin-top: 4%;
  overflow: hidden; flex: 1; line-break: strict;
}
/* ---- 概要「課題・施策・成果」形式（送付された事例集.pptxの2枚目のレイアウトを再現） ---- */
.slide-kss-block {
  margin-top: 3%; flex: 1; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.slide-kss-section { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.slide-kss-section + .slide-kss-section { margin-top: 2%; }
.slide-kss-heading {
  display: flex; align-items: center; gap: 3px; font-size: 5.4px; font-weight: bold;
  color: #1e2761; flex: 0 0 auto;
}
.slide-kss-icon { width: 5px; height: auto; }
.slide-kss-body {
  font-size: 4.6px; color: #202020; line-height: 1.4; overflow: hidden; margin-top: 1%;
}
.slide-kss-line { line-break: strict; }

.slide-table { margin-top: auto; padding-top: 2%; }
.slide-table-row {
  display: flex; gap: 4px; border-top: 1px solid #c4c4c4; padding: 2.5% 0;
  font-size: 4.8px; color: #555;
}
.slide-table-row:last-child { border-bottom: 1px solid #c4c4c4; }
.slide-table-label { flex: 0 0 22%; white-space: nowrap; }
.slide-table-value { flex: 1; line-height: 1.4; }

/* ---- 右側：薄い水色パネルにキャプチャ画像 ---- */
.slide-right-panel { position: absolute; left: 40.6%; top: 0; right: 0; bottom: 0; background: #f3f8fa; }
.slide-logo-img { position: absolute; top: 5%; right: 5%; width: 15%; height: auto; }
.slide-confidential {
  position: absolute; top: 5%; left: 5%; background: #c03030; color: #fff;
  font-size: 6px; font-weight: bold; padding: 3px 7px; border-radius: 2px;
}
.slide-draft-ribbon {
  position: absolute; top: 5%; left: 5%; background: #e0a020; color: #fff;
  font-size: 6px; font-weight: bold; padding: 3px 7px; border-radius: 2px;
}
/* 非公開ラベルと同じ位置なので、両方立っている場合は下書きの方を少し下にずらす */
.slide-confidential ~ .slide-draft-ribbon { top: calc(5% + 14px); }
.slide-captures {
  position: absolute; left: 6%; right: 6%; top: 12%; bottom: 6%;
  display: flex; flex-direction: column; gap: 4%;
}
.slide-capture-item { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
/* 画像種別ごとの表示方法（吉田氏との会話で決めた前提）：
   サイトのキャプチャ（PC/SP）は、事例ごとに写真の縦横比が違っても見た目が揃うよう、
   枠いっぱいにトリミング表示する（cover、上basis）。紙媒体・その他は、デザインの端が
   切れると困るため、全体が見えるよう縮小表示する（contain、トリミングしない）。 */
.slide-capture-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.slide-capture-contain img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
/* キャプチャが2枚のとき：サイトPC/SPペアの場合は1枚目（PC）を大きく左、2枚目（SP）を
   小さく右に、重ねずに並べる（吉田氏の指定：「PCは大きく、SPは右に重ねず小さく配置」）。 */
/* サイトPC/SPペアではない組み合わせ（紙媒体2枚など）はslide-capture-pc/spクラスが
   付かないため、.slide-capture-itemの既定（flex: 1）のまま左右均等に並ぶ。 */
/* align-items: flex-end で下揃えにする（元々のstretchのままだと、後述のaspect-ratioで
   高さを抑えても枠いっぱいに引き伸ばされてしまうため）。 */
.slide-captures-pair { flex-direction: row; align-items: flex-end; }
.slide-captures-pair .slide-capture-pc { flex: 0 0 62%; min-width: 0; }
.slide-captures-pair .slide-capture-sp { flex: 1 1 auto; min-width: 0; }
/* サイトキャプチャ（PC/SP）をcoverトリミングする枠の、目標アスペクト比（幅÷高さ）の上限。
   フルページでキャプチャした縦長画像をそのまま枠いっぱいに引き伸ばすと、枠自体が画像より
   縦長になりすぎて横幅が大きく削られてしまう（吉田氏の指摘：「横幅切れてたりする」）。
   幅（62%／残り）はそのままに、高さだけこの比率に収まるよう抑えることで横幅の削れを防ぐ。
   PCはブラウザ画面らしい横長比率、SPはスマホ画面らしい縦長比率を目安にしている。SPはPCと
   高さを揃える必要はない（吉田氏の指摘：「スマホはもう少し小さくていい。縦幅PCと合わせ
   なくていい」）。export.pyのCAPTURE_COVER_ASPECTと同じ値。 */
/* PCは当初1.5だったが、吉田氏のフィードバック「縦幅を今の2.3倍くらいにして」を
   受けて1.5/2.3≈0.65に変更（export.pyのCAPTURE_COVER_ASPECTと同じ値）。 */
.slide-captures-pair .slide-capture-cover-pc { aspect-ratio: 0.6522; max-height: 100%; }
.slide-captures-pair .slide-capture-cover-sp { aspect-ratio: 0.5; max-height: 100%; }
/* PC×PC（同じ種別2枚）：1枚目をメインとして大きく左下に、2枚目を一回り小さくして
   右下寄りに手前で重ねる（吉田氏の指摘：「1枚目がメイン」「斜めにはせず、そのまま
   まっすぐの状態がいい」）。回転はさせず、絶対配置で単純にずらして重ねるだけにする。 */
/* 【重要・バグ修正】ここで position: relative を指定してしまうと、.slide-captures側の
   position: absolute; left: 6%; right: 6%; top: 12%; bottom: 6%; という指定はそのまま
   残った状態で「position: absolute → relative」に変わってしまう。position: relativeの
   left/right/top/bottomは「絶対配置の四辺」ではなく「本来の位置からのズレ量」という
   全く別の意味になるため、要素が右下方向へ大きくズレて画面外（親のoverflow:hiddenで
   クリップされる範囲）へ飛び出してしまい、PC×PCキャプチャが2枚とも実質的に見えなく
   なる不具合が実機で発生した（吉田氏の報告：「PC2枚やっても表示されへん、右上に
   白いのが出てくる」＝ズレて隠れた中で、2枚目の白い縁取りの端だけがわずかに見えていた
   ものと考えられる）。.slide-capturesが既にposition: absoluteなので、子要素
   （.slide-pcpc-main/.slide-pcpc-accent）の配置基準としてはそれだけで十分であり、
   ここで改めてposition/displayを上書きする必要は無い（むしろ上書きしてはいけない）。 */
.slide-pcpc-main {
  position: absolute; left: 0; bottom: 0; width: 82%;
  aspect-ratio: 0.6522; max-height: 100%;
}
.slide-pcpc-accent {
  /* 白い縁取りは吉田氏の指示でやめた（「白の縁取りなくていいよ」）。 */
  position: absolute; right: 0; bottom: 0; width: 46%;
  aspect-ratio: 0.6522; max-height: 62%;
}
.slide-capture-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: #eee; font-size: 6px; color: #999; text-align: center; border-radius: 3px;
}

.slide-card-footer {
  display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 13px;
}
.slide-select-label { display: flex; align-items: center; gap: 6px; color: #444; }
.slide-select-label input { width: auto; margin: 0; }
.draft-no-select-label { color: #b07a00; font-size: 12px; }
.draft-no-select { color: #999; }
.slide-card-actions a { color: #1e2761; margin-right: 10px; }
/* 概要形式（通常の文章／課題・施策・成果）の切替アイコン。今どちらが選ばれているかを
   色で見分けられるようにする（選択中＝紺色で塗りつぶし、それ以外＝薄い背景）。 */
.overview-format-icons { display: inline-flex; gap: 4px; }
button.icon-btn.overview-format-icon-btn { background: #eef0f8 !important; color: #1e2761; opacity: 0.5; }
button.icon-btn.overview-format-icon-btn:hover { opacity: 0.85; }
button.icon-btn.overview-format-icon-btn.active { background: #1e2761 !important; color: #fff; opacity: 1; cursor: default; }

/* ---- 拡大表示モーダル ---- */
/* 入力途中のフォームからページ移動しようとしたときに出す確認モーダル
   （下書き保存して移動／保存せず移動／このまま留まる）。 */
.confirm-modal { position: fixed; inset: 0; z-index: 200; }
.confirm-modal[hidden] { display: none; }
.confirm-modal:not([hidden]) { display: flex; align-items: center; justify-content: center; }
.confirm-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.confirm-modal-box {
  position: relative; background: #fff; border-radius: 10px; padding: 24px 28px;
  max-width: 420px; width: 90%; box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  line-height: 1.6; color: #202020;
}
.confirm-modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.confirm-modal-actions .btn, .confirm-modal-actions .btn-secondary { width: 100%; text-align: center; }

.slide-modal { position: fixed; inset: 0; z-index: 100; }
.slide-modal[hidden] { display: none; }
.slide-modal:not([hidden]) { display: flex; align-items: center; justify-content: center; }
.slide-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.slide-modal-content {
  position: relative; background: #fff; border-radius: 10px; padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3); max-width: 92vw;
}
.slide-modal-close {
  position: absolute; top: 6px; right: 10px; background: none; border: none;
  font-size: 20px; cursor: pointer; color: #666;
}
.slide-modal-content .slide-card-visual {
  width: 860px; max-width: 84vw; aspect-ratio: 13.333 / 7.5; cursor: default; border-bottom: none;
}
.slide-modal-content .slide-client-name { font-size: 20px; }
.slide-modal-content .slide-title { font-size: 14px; }
.slide-modal-content .slide-tag-pill { font-size: 10px; padding: 3px 9px; }
.slide-modal-content .slide-overview-text { font-size: 11px; white-space: pre-wrap; }
.slide-modal-content .slide-table-row { font-size: 10.5px; }
.slide-modal-content .slide-confidential { font-size: 13px; padding: 6px 14px; }
.slide-modal-content .slide-capture-empty { font-size: 13px; }

.radio-inline-group { display: flex; gap: 16px; margin-bottom: 6px; }
.radio-inline { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #333; }
.radio-inline input { width: auto; margin: 0; }

.confidential-box {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 8px;
  border: 2px solid #ddd; background: #fafafa; margin-bottom: 16px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.confidential-box input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.confidential-icon { font-size: 20px; line-height: 1; }
.confidential-text { font-size: 13px; color: #333; line-height: 1.5; }
.confidential-sub { color: #777; font-size: 12px; }
.confidential-box.active {
  border-color: #c03030; background: #fdecec;
}
.confidential-box.active .confidential-text strong { color: #c03030; }

.form-card-wide { max-width: 640px; }
.field-block { margin-bottom: 16px; }
.overview-format-panel { margin-bottom: 16px; }
.overview-format-panel label { display: block; margin-bottom: 10px; }
.field-label { font-size: 13px; color: #444; margin-bottom: 6px; }
.tag-pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tag-pill-toggle {
  display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 999px;
  border: 1px solid #ccc; color: #333; font-size: 13px; cursor: pointer; user-select: none;
  background: #fff; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tag-pill-toggle input {
  position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none;
}
.tag-pill-toggle:hover { border-color: #1e2761; }
.tag-pill-toggle:has(input:checked) { background: #1e2761; color: #fff; border-color: #1e2761; }
.new-tag-input { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #444; margin-bottom: 14px; }
.checkbox-label input { width: auto; margin: 0; }

.section-title { font-size: 16px; margin: 0 0 12px 0; color: #1e2761; }
.capture-section { margin-top: 20px; }
.capture-list { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.capture-item { width: 210px; }
.capture-item img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd; display: block; }
.capture-actions { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #666; margin-top: 4px; }
.capture-upload-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.capture-upload-slot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.capture-type-select { padding: 7px 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; }
/* 既存キャプチャの種別だけを変更するミニフォーム（削除・再アップロード不要にするため。
   吉田氏の指摘：「PCとPCの画像の配置について、ハリマビステムとクレイドルが該当すると
   思うけどどっちもできてない」への対応。v47より前の移行処理が「1枚目=PC／2枚目=SP」と
   機械的に推測したままの事例を、この場で直接修正できるようにした）。 */
.capture-type-form { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.capture-type-form .capture-type-select { flex: 1; min-width: 0; font-size: 12px; padding: 5px 6px; }
.btn-tiny {
  padding: 5px 8px; font-size: 11px; border: 1px solid #1e2761; color: #1e2761;
  background: #fff; border-radius: 4px; cursor: pointer; white-space: nowrap;
}
.btn-tiny:hover { background: #eef0f8; }

.login-body { display: flex; align-items: center; justify-content: center; height: 100vh; background: #1e2761; margin: 0; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; }
.login-box { background: #fff; padding: 36px 32px; border-radius: 10px; width: 320px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.login-box h1 { font-size: 20px; margin-bottom: 18px; color: #1e2761; }
.login-box label { display: block; margin-bottom: 14px; font-size: 13px; color: #444; }
.login-box input { display: block; width: 100%; margin-top: 6px; padding: 9px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.login-box button { width: 100%; margin-top: 6px; padding: 10px; }
.login-box .hint { text-align: center; }
.user-badge { font-weight: bold; color: #fff; }
