/* 関係者専用ページ 共通スタイル（Bulma 0.8 の補助） */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f5f6fa;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Helvetica Neue", Arial, sans-serif;
}

main.section {
  flex: 1;
  padding-top: 1.5rem;
}

.admin-footer {
  padding: 1.5rem;
  background: transparent;
}

.ml-2 { margin-left: .5rem; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mt-4 { margin-top: 1rem !important; }

/* ページ見出し */
.page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.page-title .title {
  margin-bottom: 0;
}

.lead {
  color: #4a4a4a;
  margin-bottom: 1.5rem;
}

/* ホームのカード */
.menu-card {
  display: block;
  height: 100%;
  padding: 1.25rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(10, 10, 10, .1);
  color: #363636;
  transition: box-shadow .15s, transform .15s;
}

.menu-card:hover {
  box-shadow: 0 4px 12px rgba(10, 10, 10, .15);
  transform: translateY(-2px);
  color: #363636;
}

.menu-card .menu-card-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: .5rem;
}

.menu-card .menu-card-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .25rem;
}

.menu-card .menu-card-text {
  font-size: .9rem;
  color: #6b6b6b;
}

.section-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #4a4a4a;
  border-left: 4px solid #3273dc;
  padding-left: .5rem;
  margin: 1.5rem 0 .75rem;
}

/* 表 */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(10, 10, 10, .1);
}

.table-wrap .table {
  margin-bottom: 0;
}

.table td,
.table th {
  vertical-align: middle;
}

.col-narrow {
  width: 1%;
  white-space: nowrap;
}

.text-break {
  word-break: break-all;
}

/* フォーム */
.form-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(10, 10, 10, .1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-card > .title {
  margin-bottom: 1rem;
}

.help-text {
  font-size: .85rem;
  color: #7a7a7a;
  margin-top: .25rem;
}

.inline-form {
  display: inline;
}

/* 用語・地名のチェックボックス */
.term-group {
  margin-bottom: 1rem;
}

.term-group-title {
  font-weight: 700;
  margin-bottom: .35rem;
}

.term-options {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.term-option {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .65rem;
  border: 1px solid #dbdbdb;
  border-radius: 999px;
  background: #fafafa;
  cursor: pointer;
  font-size: .9rem;
}

.term-option input:checked + span {
  font-weight: 700;
  color: #3273dc;
}

.term-option.is-assigned {
  opacity: .55;
  cursor: default;
}

/* シーンの入力行 */
.scene-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-bottom: .5rem;
}

.scene-row .scene-time {
  width: 9rem;
}

.scene-row .scene-text {
  flex: 1;
  min-width: 12rem;
}

/* 写真・360度画像 */
.thumb {
  width: 160px;
  height: auto;
  border-radius: 4px;
  display: block;
}

.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: #7a7a7a;
}

/* タブ */
.tabs.is-boxed {
  margin-bottom: 0;
}

.tab-panel {
  background: #fff;
  border: 1px solid #dbdbdb;
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 1.5rem;
}

@media screen and (max-width: 768px) {
  .thumb {
    width: 110px;
  }
}

/* 見出しの右にボタンを置く */
.page-title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
}

/* お知らせ */
.news-content {
  margin-top: .25rem;
  font-size: .875rem;
  color: #4a4a4a;
}
.news-content a {
  color: #2160c4;
  text-decoration: underline;
}

/* テーマの資料 */
.theme-group-tag {
  margin-right: .5rem;
  vertical-align: middle;
}

.hit-tag {
  margin: 0 .25rem .25rem 0;
}

/* まとめて操作するバー（みんなの資料リスト） */
.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.bulk-count {
  color: #4a4a4a;
}
