/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  min-height: 100vh;
  background: #eef3e6 url("/assets/background-31b59b37.jpg") no-repeat center center fixed;
  background-size: cover;
}

.frame {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.frame .logo {
  margin: -1rem 0 0.75rem;
  text-align: center;
}

.frame .logo img {
  width: 110px;
}

.form-root .form-group {
  margin-bottom: 1.25rem;
}

.form-root .group-label {
  margin-bottom: 0.5rem;
}

.form-root .select-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  text-align: center;
}

.form-root .select-line label {
  display: block;
  margin-bottom: 0.25rem;
}

.form-root .form-select {
  width: auto;
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  background-position: right 0.5rem center;
}

.form-root .form-select.select-gender {
  min-width: 5.5rem;
}

.site-footer {
  max-width: 540px;
  margin: 0 auto 2rem;
  padding: 1rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
}

.site-footer a {
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
}

.site-footer p {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #555;
}

.site-footer .site-login,
.site-footer .site-login a,
.site-footer .site-login .btn {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: normal;
  color: #888;
}

#appraisals td {
  vertical-align: middle;
}

#result-table {
  margin-top: 1rem;
  font-size: 0.95rem;
}

#result-table th,
#result-table td {
  text-align: center;
  vertical-align: middle;
}

#result-table td.gogyo-top {
  font-size: smaller;
  border-bottom: none;
  padding-bottom: 0;
  vertical-align: bottom;
}

#result-table td.gogyo-bottom {
  font-size: smaller;
  border-top: none;
  padding-top: 0;
}

#result-table td[class^="kanshi"] {
  border-top: none;
  border-bottom: none;
}

/* 干支ブロック（五行・干支・五行）の内側の横罫線を消す */
#result-table tr.gogyo-top-row,
#result-table tr.kanshi-row {
  border-bottom-width: 0;
}

#result-table tr.kanshi-row,
#result-table tr.gogyo-bottom-row {
  border-top-width: 0;
}

.result-message {
  padding: 1.25rem 1rem 0.25rem;
  border: 1px solid #8cc063;
  border-radius: 5px;
  background-color: #faf8f3;
}

.result-message p {
  margin-bottom: 1rem;
}

.birthdate {
  color: #555;
  margin-bottom: 1rem;
}
