:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Sans","Yu Gothic",sans-serif;color:#f5f3ed;background:#1d2425;}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#1d2425}
body{line-height:1.6;overflow:hidden}
button{font:inherit}
button:focus-visible{outline:2px solid #e5b37c;outline-offset:3px}
.office-app{position:relative;width:100vw;height:100svh;min-height:520px;overflow:hidden;background:#242b2c}
.office-header{position:absolute;z-index:3;top:22px;left:28px;max-width:430px;text-shadow:0 2px 16px rgba(0,0,0,.35);pointer-events:none}
.office-kicker{margin:0;color:#ddb37f;font-size:11px;font-weight:800;letter-spacing:.24em}
.office-header h1{margin:3px 0 0;font-size:clamp(20px,2vw,28px);line-height:1.15;letter-spacing:.05em}
.office-subtitle{margin:7px 0 0;color:#ece8de;font-size:13px;font-weight:600}
.office-viewer{position:absolute;inset:0}
.office-canvas-wrap{position:absolute;inset:0;overflow:hidden;background:#c7c3b8}
#office-canvas{display:block;width:100%;height:100%;touch-action:none}
.office-loading,.office-error{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:rgba(31,38,38,.78);color:#eee9dd;font-size:14px}
.office-error strong{font-size:16px}.office-error span{max-width:24em;padding:0 20px;text-align:center}.office-loading[hidden],.office-error[hidden]{display:none}
.office-controls{position:absolute;z-index:3;right:50%;bottom:22px;transform:translateX(50%);display:flex;align-items:center;gap:7px;width:max-content;max-width:calc(100% - 40px);padding:9px;border:1px solid rgba(255,255,255,.24);border-radius:8px;background:rgba(29,36,37,.82);box-shadow:0 14px 40px rgba(0,0,0,.22);backdrop-filter:blur(12px)}
.office-controls-title{display:none}
.office-view-buttons{display:flex;gap:6px}
.office-view-buttons button,.office-control-button{min-height:44px;padding:8px 10px;border:1px solid rgba(255,255,255,.28);border-radius:5px;background:rgba(255,255,255,.08);color:#f6f1e7;font-size:12px;font-weight:700;cursor:pointer}
.office-view-buttons button:hover,.office-control-button:hover{border-color:#e2b27d;background:rgba(226,178,125,.16)}
.office-view-buttons button[aria-pressed=true]{border-color:#e2b27d;background:#e2b27d;color:#222b2c}
.office-control-button{display:inline-block;width:auto;margin:0}.office-control-button+ .office-control-button{margin-left:0}
.office-help{display:none;margin:8px 0 0;color:#c4c6bf;font-size:11px}.office-help-mobile{display:none}
.office-noscript{position:fixed;z-index:5;inset:auto 20px 20px;padding:10px;background:#fff;color:#1d2425;text-align:center}
@media(max-width:600px){body{overflow:auto}.office-app{height:100svh;min-height:0}.office-header{top:14px;left:16px}.office-header h1{font-size:20px}.office-subtitle{margin-top:4px;font-size:11px}.office-controls{right:12px;bottom:12px;transform:none;display:block;width:calc(100% - 24px);max-width:none;padding:10px}.office-controls-title{display:block;margin:0 0 6px}.office-view-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.office-view-buttons button{padding:6px 2px;font-size:11px}.office-help-mobile{display:block;margin-top:6px}.office-control-button{width:calc(50% - 6px);margin-top:6px}.office-control-button+ .office-control-button{margin-left:5px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition-duration:0s!important}}

.office-back{display:inline-flex;align-items:center;min-height:44px;margin-top:6px;padding:5px 10px;border:1px solid #777;border-radius:5px;background:#303030;color:#fff;font-size:12px;text-decoration:none;pointer-events:auto;text-shadow:none}.office-back:hover{background:#444}.office-back:focus-visible{outline:2px solid #e5b37c;outline-offset:3px}
