/* PDF変換：配置と使いやすさのための最小限の見た目 */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.subnav a { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--surface); font-size: 14px; }
.subnav a[aria-current=page] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 20px 16px; text-align: center; cursor: pointer; }
.drop.over, .drop:focus { border-color: var(--accent); background: var(--accent-weak); outline: none; }
.drop-main { font-weight: 700; margin: 0 0 8px; }
.drop p { margin: 4px 0; }
#choose { margin: 12px 0; }
#choose [aria-pressed=true] { background: var(--accent); color: #fff; }
ul.files { list-style: none; padding: 0; margin: 12px 0; }
ul.files li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); }
ul.files .fname { word-break: break-all; flex: 1 1 160px; }
ul.files .fops { display: flex; gap: 4px; }
ul.files.thumbs li img { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
ul.files.thumbs li { cursor: grab; }
#progWrap progress { width: 100%; }
.res { margin: 8px 0; }
.res .btn { word-break: break-all; }
.thumbs-out { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb-out { display: block; text-decoration: none; color: var(--text); font-size: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: var(--surface); }
.thumb-out img, .thumb-out canvas { width: 100%; height: auto; display: block; background: #fff; }
.thumb-out span { display: block; margin-top: 4px; word-break: break-all; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.grid { font-size: 13px; border-collapse: collapse; }
table.grid th, table.grid td { border: 1px solid var(--line); padding: 3px 6px; white-space: nowrap; }
table.grid thead th, table.grid tbody th { background: var(--bg); text-align: center; }
.doc-scroll { overflow: auto; max-height: 80vh; border: 1px solid var(--line); border-radius: 8px; margin-top: 12px; background: #e9ebef; }
.doc-view { padding: 12px; }
.doc-view section.docx { margin: 0 auto 12px !important; box-shadow: 0 1px 6px rgba(0,0,0,.2); }
.xpage { position: relative; background: #fff; margin: 0 auto 12px; box-shadow: 0 1px 6px rgba(0,0,0,.2); overflow: hidden; color: #000; }
table.xt { border-collapse: collapse; table-layout: fixed; font-family: "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif; font-size: 14.67px; color: #000; }
table.xt td { padding: 0 2px; overflow: hidden; line-height: 1.2; }
table.xt td[style*="nowrap"] { overflow: visible; }
#pw { margin: 12px 0; }
