/*
 * サイト共通テーマ（tmission レイアウト全ページ）
 * 旧来の Bootstrap 3 / AdminLTE 部品をモダンな見た目に寄せる。#main_content 配下だけに効かせる。
 */
#main_content {
  --th-ink: #1d2a26;
  --th-sub: #5c6b66;
  --th-line: rgba(29, 42, 38, .1);
  --th-card: rgba(255, 255, 255, .95);
  --th-soft: #f3f6f5;
  --th-accent: #1f7a5a;
  --th-accent-2: #2fae7f;
  --th-hot: #ff6b3d;
  --th-danger: #d9534f;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  letter-spacing: .02em;
}
#main_content > .section > .container { padding-bottom: 20px; }

/* ---------- 見出し ---------- */
#main_content h2.subtitle,
#main_content .section > .container > h2,
#main_content .section > .container > .row > h2,
#main_content .section > .container > .row > .col-md-12 > h2,
#main_content .section > .container > .row > .col-md-8 > h2,
#main_content .section > .container > .row > .col-md-10 > h2 {
  margin: 22px 0 18px; text-align: left;
  font-size: 28px; font-weight: 800; letter-spacing: .03em; text-transform: none;
  color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
#main_content h2.subtitle a, #main_content .section h2 > a { color: #fff !important; border: 0; }
#main_content h2.subtitle a:hover { text-decoration: none; opacity: .85; }
#main_content .section > .container > .row > h4,
#main_content .section > .container > .row > .col-md-12 > h3,
#main_content .section > .container > .row > .col-md-8 > h3 {
  color: #fff; font-weight: 800; text-transform: none; letter-spacing: .03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45); margin: 26px 0 14px;
}
#main_content .section h3 a, #main_content .section > .container > .row > h4 a { color: #fff !important; border: 0; }

/* ---------- カード ---------- */
#main_content .thumbnail {
  background: var(--th-card);
  border: 0; border-radius: 16px;
  padding: 18px 20px; margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(10, 30, 22, .18);
  color: var(--th-ink); text-align: left;
}
#main_content .thumbnail a { color: var(--th-accent); border: 0; }
#main_content .thumbnail > .row > [class*="col-"] > .glyphicon:first-child,
#main_content .thumbnail > .row > [class*="col-"] > b,
#main_content .thumbnail > .row > [class*="col-"] > p > b { font-weight: 800; }
#main_content .img-thumbnail { border: 0; padding: 0; border-radius: 12px; margin-bottom: 10px; background: transparent; }
#main_content p.resizeimage, #main_content .resizeimage { border-radius: 12px; }

/* パネル */
#main_content .panel {
  background: var(--th-card); border: 0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 30, 22, .16); margin-bottom: 18px; color: var(--th-ink);
}
#main_content .panel > .panel-heading {
  background: transparent !important; border: 0; border-bottom: 1px solid var(--th-line);
  padding: 16px 22px 12px; color: var(--th-ink) !important; font-size: 16px; font-weight: 800;
}
#main_content .panel > .panel-heading a { color: var(--th-ink) !important; }
#main_content .panel > .panel-heading .fa, #main_content .panel > .panel-heading .glyphicon { color: var(--th-accent-2); margin-right: 4px; }
#main_content .panel > .panel-body { padding: 16px 22px 20px; font-size: 14.5px; line-height: 1.95; color: #2c3a35; }
#main_content .panel > .panel-body a { color: var(--th-accent); font-weight: 600; }

/* ---------- ボタン ---------- */
#main_content .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 36px; padding: 6px 15px; margin: 2px 2px 4px 0;
  border-radius: 999px !important; border: 1px solid transparent;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: none;
  box-shadow: none; line-height: 1.4; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
#main_content .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(10, 30, 22, .14); text-decoration: none; }
#main_content .btn-xs { min-height: 28px; padding: 3px 10px; font-size: 11px; }
#main_content .btn-block { display: flex; width: 100%; }
#main_content .btn-primary, #main_content .btn-warning {
  background: linear-gradient(135deg, var(--th-accent), var(--th-accent-2)) !important; color: #fff !important;
}
#main_content .btn-success { background: #e8f6ef !important; color: var(--th-accent) !important; }
#main_content .btn-default { background: #fff !important; color: var(--th-ink) !important; border-color: var(--th-line) !important; }
#main_content .btn-info { background: #e8f1fb !important; color: #2d5f8a !important; }
#main_content .tp-mapfilters .btn-info { background: var(--th-accent) !important; color: #fff !important; }
#main_content .btn-danger { background: #fdecea !important; color: var(--th-danger) !important; }
#main_content .btn-group { display: inline-flex; gap: 6px; }

/* ラベル */
#main_content .label {
  display: inline-flex; align-items: center; padding: 5px 12px; margin: 0 4px 6px 0; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--th-soft) !important; color: var(--th-ink) !important;
}
#main_content .label.btn-block { display: inline-flex; width: auto; }
#main_content .label-warning { background: #fff1e8 !important; color: #c4512b !important; }

/* ---------- フォーム ---------- */
#main_content .form-control {
  height: 46px; padding: 10px 16px; border-radius: 12px !important;
  border: 1px solid #dbe4e0; background: #f8faf9; color: var(--th-ink);
  font-size: 14px; box-shadow: none; transition: border-color .15s, background .15s;
}
#main_content textarea.form-control { height: auto; min-height: 110px; }
#main_content .form-control:focus { border-color: var(--th-accent-2); background: #fff; box-shadow: 0 0 0 3px rgba(47, 174, 127, .15); }
#main_content .has-feedback .form-control-feedback { line-height: 46px; height: 46px; color: #93a19c; }
#main_content .form-group { margin-bottom: 14px; }
#main_content .alert { border: 0; border-radius: 12px; font-size: 13.5px; }
#main_content .alert-warning { background: #fff4e5; color: #8a5300; }

/* ---------- テーブル ---------- */
#main_content .table { margin-bottom: 8px; background: transparent; font-size: 14px; }
#main_content .table-bordered, #main_content .table-bordered > tbody > tr > td, #main_content .table-bordered > tbody > tr > th { border: 0; }
#main_content .table > tbody > tr > td, #main_content .table > tbody > tr > th {
  padding: 11px 12px; border-top: 0; border-bottom: 1px dashed var(--th-line); vertical-align: middle;
}
#main_content .table > tbody > tr:last-child > td { border-bottom: 0; }
#main_content .table td.success, #main_content .table th.success {
  background: transparent !important; color: var(--th-sub); font-size: 12.5px; font-weight: 700; width: 32%;
}
#main_content .table th { color: var(--th-sub); font-size: 12.5px; }
#main_content .table-hover > tbody > tr:hover { background: rgba(47, 174, 127, .06); }

/* ---------- 地図 ---------- */
#main_content .ggmap { border-radius: 12px; overflow: hidden; }
#main_content #map_canvas + .col-sm-12, #main_content .ggmap + .col-sm-12 { padding-top: 8px; font-size: 12px; color: var(--th-sub); }

/* ---------- メッセージ（チャット） ---------- */
#main_content .chat .item { padding: 10px 0; border-bottom: 1px dashed var(--th-line); }
#main_content .chat .item > img { border-radius: 50%; }
#main_content .chat .item > .message > .name { color: var(--th-ink); font-weight: 800; }
#main_content .chat .item > .attachment { border-radius: 10px; background: var(--th-soft); }

/* ---------- ログイン・会員登録 ---------- */
#main_content .login-box, #main_content .register-box { width: 100%; max-width: 440px; margin: 10px auto 40px; }
#main_content .login-box-body, #main_content .register-box-body {
  background: var(--th-card); border-radius: 20px; padding: 30px 28px;
  box-shadow: 0 16px 40px rgba(10, 30, 22, .25); color: var(--th-ink); text-align: left;
}
#main_content .login-box-msg { padding: 0 0 18px; text-align: left; color: var(--th-sub); }

/* ---------- 旧ギャラリー（グランプリ等） ---------- */
#main_content .carousel-caption p { font-weight: 800; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
#main_content #gallery-content-center img { border-radius: 10px; }

/* ---------- 下部リンク ---------- */
#main_content ~ center, #main_content center { color: #fff; }

@media (max-width: 767px) {
  #main_content h2.subtitle,
  #main_content .section > .container > h2,
  #main_content .section > .container > .row > h2,
  #main_content .section > .container > .row > .col-md-12 > h2 { font-size: 22px; margin: 14px 0 12px; }
  #main_content .thumbnail { padding: 14px; }
  #main_content .panel > .panel-heading { padding: 14px 16px 10px; }
  #main_content .panel > .panel-body { padding: 12px 16px 16px; }
  #main_content .login-box-body, #main_content .register-box-body { padding: 22px 18px; }
}

/* メッセージカード（投稿詳細など） */
#main_content .tp-messages-card > .thumbnail > .row > .col-sm-12:first-child p { font-size: 18px; font-weight: 800; padding-bottom: 10px; border-bottom: 1px solid var(--th-line); }
#main_content .tp-messages-card .input-group .form-control { border-radius: 999px 0 0 999px !important; }
#main_content .tp-messages-card .input-group-btn .btn { min-height: 46px; margin: 0; border-radius: 0 999px 999px 0 !important; background: var(--th-accent) !important; color: #fff !important; }

/* 中央寄せのページ（会員・ログインなど） */
#main_content .text-center > h2.subtitle, #main_content .text-center > h2 { text-align: center; }
#main_content .section .text-center > h4, #main_content .section .text-center > h5 { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); line-height: 1.8; }
#main_content .section .text-center > h4 a, #main_content .section .text-center > h5 a { color: #fff; text-decoration: underline; }
#main_content .section .thumbnail h4, #main_content .section .thumbnail h5 { color: var(--th-ink); text-shadow: none; }
#main_content .text-center > .tp-tabs { margin-bottom: 20px; }
#main_content #avator_upload { margin-top: 8px; }
#main_content .section .text-center > h2.subtitle, #main_content .section .text-center > h2 { text-align: center !important; }
#main_content .login-box-body h4, #main_content .login-box-body h5,
#main_content .register-box-body h4, #main_content .register-box-body h5 { color: var(--th-sub) !important; text-shadow: none !important; font-size: 14px; margin: 0 0 16px; }
#main_content .panel, #main_content .panel-default { background: var(--th-card) !important; }
#main_content .login-box-body > a, #main_content .register-box-body > a { color: var(--th-accent); font-weight: 700; }
#main_content .panel { opacity: 1; }
