/* 澄奈市立保存図書館 - アーカイブサイト */
/* Last modified: 2021.03.14 */

/* ============================================
   基本設定
   ============================================ */

body {
  background-color: #F5F0E8;
  color: #2C2C2C;
  font-family: "MS Mincho", "游明朝", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", serif;
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
  padding: 0;
}

a {
  color: #1a3a5c;
  text-decoration: underline;
}

a:hover {
  color: #8B4513;
  text-decoration: underline;
}

a:visited {
  color: #5a3a7c;
}

hr {
  border: none;
  border-top: 1px solid #B8A898;
  margin: 6px 0;
}

/* ============================================
   アクセス警告（極小・目立たない）
   ============================================ */

#access-warning {
  background-color: #F5F0E8;
  color: #B8A898;
  font-family: "Courier New", monospace;
  font-size: 8px;
  padding: 2px 6px;
  text-align: right;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e8e0d0;
}

/* ============================================
   ヘッダー
   ============================================ */

#header-cell {
  background-color: #1a3a5c;
  padding: 0;
}

#header {
  background-color: #1a3a5c;
  color: #F5F0E8;
  padding: 12px 16px 10px 16px;
}

#header-title {
  font-size: 20px;
  font-weight: bold;
  font-family: "MS Mincho", "游明朝", "ヒラギノ明朝 ProN", serif;
  letter-spacing: 4px;
  margin-bottom: 2px;
}

#header-title-en {
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #c8d8e8;
  margin-bottom: 4px;
}

#header-dates {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #a8b8c8;
  letter-spacing: 1px;
}

.header-hr {
  border-top: 2px solid #1a3a5c;
  margin: 0;
}

/* ============================================
   メインテーブル
   ============================================ */

#main-table {
  width: 100%;
  max-width: 900px;
  margin: 8px auto;
  padding: 0 8px;
}

/* ============================================
   左サイドバー
   ============================================ */

#sidebar {
  width: 160px;
  min-width: 160px;
  vertical-align: top;
  padding: 4px 0;
}

.nav-box {
  background-color: #ede8dc;
  border: 1px solid #B8A898;
  padding: 6px 8px;
  font-size: 12px;
}

.nav-box-notice {
  background-color: #f0ece0;
  border: 1px solid #8B4513;
}

.nav-title {
  font-weight: bold;
  font-size: 12px;
  color: #1a3a5c;
  margin-bottom: 2px;
}

.nav-hr {
  border-top: 1px solid #B8A898;
  margin: 4px 0;
}

.nav-item {
  padding: 2px 0;
  font-size: 12px;
  color: #2C2C2C;
  cursor: pointer;
}

.nav-item:hover {
  color: #8B4513;
  text-decoration: underline;
  cursor: pointer;
}

.nav-current {
  color: #1a3a5c;
  font-weight: bold;
}

.nav-sub {
  padding: 1px 0;
  font-size: 11px;
  color: #555555;
  padding-left: 4px;
}

.nav-sub:hover {
  color: #8B4513;
  text-decoration: underline;
  cursor: pointer;
}

.nav-restricted {
  color: #888888;
  font-size: 11px;
}

.nav-info {
  font-size: 11px;
  color: #8B0000;
  font-weight: bold;
}

.nav-info-small {
  font-size: 10px;
  color: #555555;
  line-height: 1.6;
}

.access-level {
  font-family: "Courier New", monospace;
  font-size: 9px;
  color: #1a3a5c;
  margin-top: 3px;
  line-height: 1.4;
}

/* ============================================
   メインコンテンツ
   ============================================ */

#main-content {
  vertical-align: top;
  padding: 4px 0 4px 8px;
}

/* コンテンツテーブル（各セクション） */
.content-table {
  border-collapse: collapse;
  border: 1px solid #B8A898;
  font-size: 13px;
}

.content-header-cell {
  background-color: #1a3a5c;
  color: #F5F0E8;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 10px;
  letter-spacing: 2px;
}

.content-body-cell {
  background-color: #F5F0E8;
  padding: 10px 14px;
  line-height: 1.9;
}

/* 閉館のお知らせ */
.closure-notice {
  padding: 4px 0;
}

.katakana-text {
  font-size: 14px;
  line-height: 2.0;
  color: #2C2C2C;
  margin: 0;
}

.signature {
  font-size: 13px;
  line-height: 2.0;
  color: #2C2C2C;
  margin: 0;
}

.archive-code {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #888888;
}

/* 更新履歴テーブル */
.update-table {
  width: 100%;
  font-size: 12px;
}

.update-date {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #555555;
  white-space: nowrap;
  padding-right: 12px;
  vertical-align: top;
  width: 90px;
}

.update-text {
  color: #2C2C2C;
  font-size: 12px;
  vertical-align: top;
}

.update-suspicious .update-date,
.update-suspicious .update-text {
  /* 一見すると普通だが読むと不穏 */
}

.restricted-link {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #8B0000;
}

/* ご案内テキスト */
#main-content p {
  margin: 4px 0;
}

.small-text {
  font-size: 11px;
  color: #666666;
}

/* ============================================
   訪問者カウンター
   ============================================ */

#visitor-counter {
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: #888888;
  text-align: center;
  padding: 4px;
  border: 1px solid #d8d0c0;
  background-color: #f0ece0;
  letter-spacing: 0.5px;
}

/* ============================================
   フッター
   ============================================ */

.footer-hr {
  border-top: 2px solid #1a3a5c;
  margin: 8px 0 0 0;
}

#footer {
  background-color: #1a3a5c;
  color: #F5F0E8;
  padding: 10px 16px 6px 16px;
  position: relative;
}

.footer-main {
  font-size: 11px;
  line-height: 1.8;
  color: #c8d8e8;
}

.footer-note {
  font-size: 10px;
  color: #8898a8;
}

/* ページ番号 */
#page-number {
  font-family: "Courier New", monospace;
  font-size: 9px;
  color: #6878a0;
  padding: 4px 0;
  letter-spacing: 1px;
}

/* フィクション表記（極小・目立たない） */
.footer-fiction {
  font-size: 8px;
  color: #4a5a7a;
  text-align: right;
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid #2a4a6c;
  letter-spacing: 0.5px;
}

/* ============================================
   点滅テキスト（一部使用）
   ============================================ */

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.blink {
  animation: blink 1.8s step-end infinite;
}

/* ============================================
   選択テキストのスタイル
   ============================================ */

::selection {
  background-color: #1a3a5c;
  color: #F5F0E8;
}

/* ============================================
   about.html 用スタイル
   ============================================ */

/* パンくずリスト */
.breadcrumb {
  font-size: 11px;
  color: #666666;
  padding: 2px 0;
}

.breadcrumb a {
  color: #1a3a5c;
}

/* ナビゲーション：現在地サブメニュー */
.nav-sub-current {
  color: #1a3a5c;
  font-weight: bold;
}

/* 沿革年表 */
.timeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.timeline-row td {
  padding: 6px 8px;
  vertical-align: top;
  border-bottom: 1px dotted #d0c8b8;
}

.timeline-row-highlight td {
  background-color: #ede8dc;
}

.timeline-year {
  width: 80px;
  white-space: nowrap;
  font-family: "MS Mincho", "游明朝", serif;
  font-size: 12px;
  color: #1a3a5c;
  font-weight: bold;
  padding-right: 12px;
}

.timeline-year-en {
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: #888888;
  font-weight: normal;
}

.timeline-event {
  font-size: 12px;
  color: #2C2C2C;
  line-height: 1.8;
}

.timeline-note {
  display: block;
  font-size: 10px;
  color: #888888;
  font-family: "Courier New", monospace;
  margin-top: 2px;
}

/* 奈瀬家と図書館セクション */
.section-subtitle {
  font-size: 13px;
  font-weight: bold;
  color: #1a3a5c;
  margin: 6px 0 4px 0;
}

.content-hr {
  border: none;
  border-top: 1px solid #d0c8b8;
  margin: 10px 0;
}

.contribution-table {
  font-size: 12px;
  margin-left: 8px;
}

.contrib-item {
  padding: 2px 0;
  color: #2C2C2C;
  line-height: 1.8;
}

/* ============================================
   map.html 用スタイル
   ============================================ */

/* 凡例 */
.legend-table {
  font-size: 12px;
}

.legend-box {
  border: 1px solid #B8A898;
  padding: 3px 8px;
}

.legend-open  { background-color: #F5F0E8; }
.legend-closed { background-color: #e0d8c8; }
.legend-restricted { background-color: #d8c8c0; }

.legend-label {
  font-size: 12px;
  padding-left: 4px;
}

/* 館内フロアプラン */
.floorplan-table {
  border-collapse: collapse;
  font-size: 12px;
}

.fp-room {
  border: 1px solid #B8A898;
  padding: 8px 10px;
  text-align: center;
  background-color: #F5F0E8;
  min-width: 100px;
  vertical-align: middle;
}

.fp-caption {
  display: block;
  font-size: 10px;
  color: #666666;
  margin-top: 2px;
}

.fp-corridor {
  border: 1px solid #B8A898;
  padding: 4px 8px;
  background-color: #e8e4da;
  text-align: center;
  font-size: 10px;
  color: #888888;
  letter-spacing: 4px;
}

.fp-closed {
  background-color: #e0d8c8;
}

.fp-restricted {
  background-color: #d8c8c0;
}

.fp-staff {
  background-color: #dce4ec;
}

.fp-small {
  font-size: 11px;
  color: #666666;
}

.fp-status-closed {
  display: block;
  font-size: 11px;
  color: #8B0000;
  font-weight: bold;
  margin-top: 2px;
}

.fp-status-restricted {
  display: block;
  font-size: 11px;
  color: #8B0000;
  font-weight: bold;
  margin-top: 2px;
}

/* 室名一覧テーブル */
.room-list-table {
  font-size: 12px;
  width: 100%;
}

.room-list-table td {
  padding: 3px 6px;
  border-bottom: 1px dotted #d0c8b8;
  vertical-align: middle;
}

.room-list-header td {
  font-weight: bold;
  color: #1a3a5c;
  border-bottom: 1px solid #B8A898;
  padding: 4px 6px;
}

.status-ok   { color: #555555; font-size: 11px; }
.status-warn { color: #8B4513; font-size: 11px; }
.status-closed { color: #8B0000; font-size: 11px; font-weight: bold; }

/* ============================================
   staff.html 用スタイル
   ============================================ */

.staff-card-table {
  margin-bottom: 0;
}

.staff-header-cell {
  background-color: #2a4a6c;
  color: #F5F0E8;
  font-size: 13px;
  font-weight: bold;
  padding: 5px 10px;
  letter-spacing: 1px;
}

.staff-position {
  font-size: 11px;
  font-weight: normal;
  color: #c8d8e8;
  margin-left: 8px;
}

.staff-detail-table {
  font-size: 12px;
  width: 100%;
}

.staff-detail-table td {
  padding: 3px 6px;
  border-bottom: 1px dotted #d8d0c0;
  vertical-align: top;
}

.staff-label {
  width: 80px;
  color: #555555;
  font-size: 11px;
  white-space: nowrap;
}

.staff-value {
  color: #2C2C2C;
}

.staff-missing {
  color: #8B0000;
  font-size: 12px;
}

/* ============================================
   diary.html 用スタイル
   ============================================ */

.diary-entry {
  padding: 6px 0;
  border-bottom: 1px dotted #d8d0c0;
  margin-bottom: 4px;
}

.diary-entry:last-child {
  border-bottom: none;
}

.diary-date {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #1a3a5c;
  font-weight: bold;
  margin-bottom: 2px;
}

.diary-text {
  font-size: 13px;
  line-height: 1.9;
  color: #2C2C2C;
  padding-left: 8px;
}

.diary-deleted {
  background-color: #ede8dc;
}

.diary-deleted .diary-date {
  color: #888888;
}

.diary-deleted .diary-text {
  color: #888888;
  font-family: "Courier New", monospace;
  font-size: 11px;
}

.diary-entry-tense .diary-text {
  color: #3a3a3a;
}

.diary-entry-final {
  background-color: #f0ece0;
  padding: 8px;
  border: 1px solid #d0c8b8;
}

.diary-entry-final .diary-date {
  color: #8B0000;
}

.diary-entry-final .diary-text {
  color: #2C2C2C;
}

/* ============================================
   collection.html 用スタイル
   ============================================ */

.search-form-table {
  font-size: 12px;
}

.search-form-table td {
  padding: 4px 6px;
  vertical-align: middle;
}

.search-label {
  width: 100px;
  color: #1a3a5c;
  font-weight: bold;
  font-size: 12px;
  white-space: nowrap;
}

.search-input {
  font-family: "MS Mincho", "游明朝", serif;
  font-size: 13px;
  border: 1px solid #B8A898;
  background-color: #faf8f4;
  padding: 3px 5px;
  color: #2C2C2C;
}

.search-button {
  font-family: "MS Mincho", "游明朝", serif;
  font-size: 12px;
  background-color: #1a3a5c;
  color: #F5F0E8;
  border: 1px solid #1a3a5c;
  padding: 3px 12px;
  cursor: pointer;
}

.search-result-empty {
  color: #888888;
  font-size: 12px;
}

.search-result-none {
  color: #8B4513;
  font-size: 13px;
  font-weight: bold;
}

.ndc-table {
  font-size: 12px;
  width: 100%;
}

.ndc-table td {
  padding: 3px 8px;
  border-bottom: 1px dotted #d8d0c0;
}

.ndc-num {
  width: 50px;
  font-family: "Courier New", monospace;
  text-align: center;
}

.ndc-name {
  color: #2C2C2C;
  padding-right: 24px;
}

/* ============================================
   access.html 用スタイル
   ============================================ */

.closure-banner-cell {
  background-color: #8B0000;
  color: #F5F0E8;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  padding: 12px;
  letter-spacing: 2px;
}

.closure-banner-sub {
  display: block;
  font-size: 11px;
  font-weight: normal;
  color: #f0c8c8;
  margin-top: 4px;
  letter-spacing: 1px;
}

.address-table {
  font-size: 12px;
}

.address-table td {
  padding: 4px 8px;
  border-bottom: 1px dotted #d8d0c0;
  vertical-align: top;
}

.address-label {
  width: 60px;
  color: #1a3a5c;
  font-weight: bold;
  white-space: nowrap;
}

.address-value {
  color: #2C2C2C;
}

.text-map {
  font-family: "MS Mincho", "游明朝", "ヒラギノ明朝 ProN", serif;
  font-size: 12px;
  line-height: 1.6;
  color: #2C2C2C;
  background-color: #ede8dc;
  border: 1px solid #B8A898;
  padding: 10px 12px;
  margin: 4px 0;
  overflow-x: auto;
}

.transport-table {
  font-size: 12px;
  margin-left: 8px;
}

.transport-table td {
  padding: 3px 4px;
  vertical-align: top;
}

.transport-icon {
  color: #1a3a5c;
  padding-right: 6px;
  width: 16px;
}

.hours-table {
  font-size: 12px;
  border-collapse: collapse;
}

.hours-table td {
  padding: 4px 12px;
  border: 1px solid #d8d0c0;
}

.hours-header-row td {
  background-color: #e8e4da;
  font-weight: bold;
  color: #1a3a5c;
}

.hours-day  { width: 100px; }
.hours-time { width: 120px; }
.hours-note { color: #666666; }

/* ============================================
   guide.html / contact.html 用スタイル
   ============================================ */

.guide-table {
  font-size: 12px;
  margin-left: 8px;
}

.guide-table td {
  padding: 2px 0;
  line-height: 1.9;
}

.guide-item {
  color: #2C2C2C;
}

.required {
  color: #8B0000;
  font-weight: bold;
}

.contact-form-table {
  font-size: 12px;
  width: 100%;
}

.contact-form-table td {
  padding: 5px 6px;
  vertical-align: middle;
}

.contact-label {
  width: 130px;
  color: #1a3a5c;
  font-weight: bold;
  font-size: 12px;
  white-space: nowrap;
  vertical-align: top;
  padding-top: 8px;
}

.contact-input {
  font-family: "MS Mincho", "游明朝", serif;
  font-size: 13px;
  border: 1px solid #B8A898;
  background-color: #faf8f4;
  padding: 3px 5px;
  color: #2C2C2C;
}

.contact-textarea {
  font-family: "MS Mincho", "游明朝", serif;
  font-size: 13px;
  border: 1px solid #B8A898;
  background-color: #faf8f4;
  padding: 4px 5px;
  color: #2C2C2C;
  resize: vertical;
}

.contact-select {
  font-family: "MS Mincho", "游明朝", serif;
  font-size: 12px;
  border: 1px solid #B8A898;
  background-color: #faf8f4;
  padding: 3px 4px;
  color: #2C2C2C;
}

.contact-button {
  font-family: "MS Mincho", "游明朝", serif;
  font-size: 12px;
  background-color: #1a3a5c;
  color: #F5F0E8;
  border: 1px solid #1a3a5c;
  padding: 4px 16px;
  cursor: pointer;
}

.contact-reset {
  font-family: "MS Mincho", "游明朝", serif;
  font-size: 12px;
  background-color: #e8e0d0;
  color: #2C2C2C;
  border: 1px solid #B8A898;
  padding: 4px 12px;
  cursor: pointer;
}

/* ============================================
   login.html 用スタイル
   ============================================ */

.login-form-table {
  font-size: 12px;
}

.login-form-table td {
  padding: 6px 4px;
  vertical-align: middle;
}

.login-label {
  width: 90px;
  color: #1a3a5c;
  font-weight: bold;
  font-size: 12px;
  white-space: nowrap;
}

.login-input {
  font-family: "Courier New", monospace;
  font-size: 13px;
  border: 1px solid #B8A898;
  background-color: #faf8f4;
  padding: 4px 6px;
  color: #2C2C2C;
  letter-spacing: 1px;
}

.login-button {
  font-family: "MS Mincho", "游明朝", serif;
  font-size: 12px;
  background-color: #2a2a3a;
  color: #F5F0E8;
  border: 1px solid #2a2a3a;
  padding: 4px 20px;
  cursor: pointer;
}
