/* 写真台帳 拡大ビューア スタイル
   蒼原市記録保存センター公式サイトの体裁に合わせた。外部リソースは読み込まない。 */

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
  color: #222;
  background: #f4f4f2;
  line-height: 1.8;
  font-size: 15px;
}
a { color: #17457a; }
a:hover { text-decoration: none; }

.site-header { background: #fff; border-top: 6px solid #1d3a5f; border-bottom: 1px solid #ccc; }
.site-header .inner {
  max-width: 960px; margin: 0 auto; padding: 18px 20px 14px;
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.city-mark { font-size: 13px; color: #555; letter-spacing: 0.2em; }
.site-title { font-size: 24px; font-weight: bold; color: #1d3a5f; margin: 0; letter-spacing: 0.04em; }
.site-title a { color: inherit; text-decoration: none; }
.header-note { margin-left: auto; font-size: 12px; color: #666; text-align: right; }

.container { max-width: 960px; margin: 0 auto; padding: 24px 20px 40px; }
.page-title { font-size: 22px; color: #1d3a5f; margin: 8px 0 4px; }
.page-meta { font-size: 12px; color: #666; margin-bottom: 16px; }
.small { font-size: 12.5px; color: #555; }
.maker { font-size: 13px; color: #444; }

/* ===== 台帳 ===== */
.ledger {
  background: #2e2a24;
  border: 1px solid #1c1a16;
  padding: 22px 22px 16px;
  margin: 16px 0;
}
.photo-frame {
  background: #efece4;
  padding: 12px 12px 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.viewport {
  position: relative;
  overflow: hidden;
  background: #999;
  aspect-ratio: 4 / 3;
  touch-action: none;
  cursor: grab;
}
.viewport.dragging { cursor: grabbing; }
.viewport .stage {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  transform-origin: 0 0;
  will-change: transform;
}
.viewport img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.caption {
  color: #26231c;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", serif;
  font-size: 14.5px;
  line-height: 1.9;
  padding: 10px 6px 4px;
}
.caption .date { font-weight: bold; }
.caption .added { color: #7a4a21; }

.controls {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 12px 0 4px;
}
.controls .group { display: flex; gap: 6px; align-items: center; }
.controls button {
  font-family: inherit; font-size: 14px;
  padding: 6px 13px;
  background: #1d3a5f; color: #fff;
  border: none; border-radius: 3px; cursor: pointer;
}
.controls button:hover { background: #2c5282; }
.controls button.sub { background: #5a5348; }
.controls button.sub:hover { background: #6e665a; }
.controls button.hotspot { background: #7a5a1e; }
.controls button.hotspot:hover { background: #96702a; }
.controls .zoom-label { color: #e8e2d2; font-size: 13px; min-width: 4.5em; text-align: center; }
.page-indicator { color: #e8e2d2; font-size: 13.5px; margin-left: auto; }

.thumbs { display: flex; gap: 10px; margin: 12px 0 0; flex-wrap: wrap; }
.thumbs button {
  border: 2px solid transparent; padding: 0; background: none; cursor: pointer; line-height: 0;
}
.thumbs button.current { border-color: #d9b45b; }
.thumbs img { width: 108px; height: auto; display: block; }

/* ===== フッター ===== */
.site-footer { background: #eceae4; border-top: 1px solid #ccc; font-size: 12.5px; color: #555; }
.site-footer .inner { max-width: 960px; margin: 0 auto; padding: 16px 20px 22px; }
.site-footer .promise {
  background: #fff; border: 1px solid #d5d5cf; padding: 10px 14px; margin-bottom: 12px; color: #333;
}
.fiction-note { margin-top: 8px; }
