.suuon-kantei {
  max-width: 960px;
  margin: 24px auto;
  line-height: 1.8;
}

.suuon-kantei-form {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.suuon-field {
  margin-bottom: 20px;
}

.suuon-field > label,
.suuon-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 8px;
  font-weight: 700;
}

.suuon-required-badge,
.suuon-optional-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75em;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.suuon-required-badge {
  background: #b4534b;
  color: #fff;
}

.suuon-optional-badge {
  background: #f1f5f9;
  color: #374151;
}

.suuon-field input,
.suuon-birthday input,
.suuon-birthday select {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}


/* 生年月日の入力欄・選択欄の高さを統一 */
.suuon-birthday input,
.suuon-birthday select {
  min-height: 54px;
  line-height: 1.4;
}

.suuon-field input:focus,
.suuon-birthday input:focus,
.suuon-birthday select:focus,
.suuon-field input:focus-visible,
.suuon-birthday input:focus-visible,
.suuon-birthday select:focus-visible {
  border-color: #0f766e;
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.suuon-field.is-error input,
.suuon-field.is-error select {
  border-color: #b91c1c;
  background: #fffafa;
}

.suuon-field.is-error input:focus,
.suuon-field.is-error select:focus,
.suuon-field.is-error input:focus-visible,
.suuon-field.is-error select:focus-visible {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

.suuon-birthday {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.suuon-birthday label span {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.suuon-help {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.suuon-submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.suuon-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 320px);
  min-height: 52px;
  padding: 14px 32px;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.suuon-submit:hover {
  opacity: 0.9;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.suuon-submit:active {
  transform: translateY(1px);
}

.suuon-submit:focus,
.suuon-submit:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.24);
}

.suuon-field-error {
  min-height: 1.4em;
  margin: 6px 0 0;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.suuon-field-error:empty {
  display: none;
}

.suuon-privacy-note {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.suuon-error,
.suuon-error-text {
  display: none;
  margin: 12px 0;
  padding: 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 700;
}

.suuon-error:not(:empty) {
  display: block;
}

.suuon-error-text {
  display: block;
}

.suuon-summary {
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
}

:root {
  --suuon-sticky-offset: 0px;
  --suuon-sticky-gap: 6px;
}

.suuon-result-heading {
  scroll-margin-top: calc(var(--suuon-sticky-offset, 0px) + var(--suuon-sticky-gap, 6px) + 56px);
}

.suuon-result-overview-table th:first-child,
.suuon-result-overview-table td:first-child {
  width: 36%;
}

.suuon-result-sticky-heading {
  position: fixed;
  z-index: 90;
  top: calc(var(--suuon-sticky-offset, 0px) + var(--suuon-sticky-gap, 6px));
  left: var(--suuon-sticky-left, 0px);
  display: flex;
  align-items: center;
  width: var(--suuon-sticky-width, 100%);
  height: 44px;
  box-sizing: border-box;
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid #b9ddd8;
  border-left: 4px solid #0aa98f;
  background: rgba(232, 247, 245, 0.98);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  color: #183c3a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.suuon-result-sticky-heading.is-active {
  opacity: 1;
  transform: translateY(0);
}

.suuon-section {
  margin-top: 0;
}

.suuon-table-wrap {
  overflow-x: auto;
  margin: 12px 0 24px;
}

.suuon-simple-table,
.suuon-result-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dbeafe;
  white-space: nowrap;
}

.suuon-result-table {
  table-layout: fixed;
  white-space: normal;
}

.suuon-simple-table th,
.suuon-simple-table td,
.suuon-result-table th,
.suuon-result-table td {
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  text-align: center;
}

.suuon-simple-table thead th,
.suuon-result-table thead th {
  background: #45b8c9;
  color: #fff;
}

.suuon-simple-table tbody th,
.suuon-result-table tbody th {
  background: #d7edf2;
}

.suuon-simple-table tbody td,
.suuon-result-table tbody td {
  background: #eef8fa;
}

.suuon-back-link {
  margin-top: 32px;
}

@media (max-width: 640px) {
  .suuon-kantei-form {
    padding: 16px;
  }

  .suuon-birthday {
    grid-template-columns: 1fr;
  }

  .suuon-submit {
    width: min(100%, 420px);
    min-height: 54px;
  }

  .suuon-result-table {
    min-width: 0;
    table-layout: fixed;
    white-space: normal;
    font-size: 14px;
  }

  .suuon-result-table th,
  .suuon-result-table td {
    padding: 8px 4px;
    word-break: keep-all;
  }

  .suuon-result-table th:first-child,
  .suuon-result-table td:first-child {
    width: 15%;
  }

  .suuon-result-table th:not(:first-child),
  .suuon-result-table td:not(:first-child) {
    width: 21.25%;
  }

  .suuon-result-overview-table th:first-child,
  .suuon-result-overview-table td:first-child {
    width: 38%;
  }

  .suuon-result-overview-table th:not(:first-child),
  .suuon-result-overview-table td:not(:first-child) {
    width: 62%;
  }

  .suuon-result-sticky-heading {
    height: 42px;
    padding: 0 12px;
    font-size: 15px;
  }
}


.suuon-result-table thead th,
.suuon-result-table tbody th,
.suuon-result-table tbody td {
  border: 1px solid #dbeafe;
}


.suuon-number-features {
  margin: 16px 0 28px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fafc;
}

.suuon-number-features h4 {
  margin-top: 0;
}

.suuon-number-feature {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.suuon-number-feature:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.suuon-number-feature-title {
  margin: 0 0 6px;
  font-weight: 700;
}

.suuon-number-feature-label {
  margin-right: 4px;
}

.suuon-number-feature-description {
  margin: 0;
}


.suuon-type-classification {
  margin: 16px 0 28px;
  padding: 16px;
  border: 1px solid #f3d38a;
  border-radius: 12px;
  background: #fffaf0;
}

.suuon-type-classification h4 {
  margin-top: 0;
  margin-bottom: 12px;
}

.suuon-type-digits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 14px;
}

.suuon-type-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 1.1em;
}

.suuon-type-note {
  margin: 0 0 10px;
  color: #6b6251;
  font-size: 0.88em;
  line-height: 1.65;
}

.suuon-type-description {
  margin: 0;
}

.suuon-simple-number-group {
  margin: 16px 0 28px;
}

.suuon-simple-number-group-label {
  margin: 0 0 10px;
  font-weight: 700;
}

.suuon-simple-number-group-description {
  margin: 0 0 14px;
}

.suuon-simple-number-group-table th,
.suuon-simple-number-group-table td {
  width: 50%;
}

.suuon-simple-number-group-current-row th,
.suuon-simple-number-group-current-row td {
  background: #fff4cc;
}

.suuon-simple-number-group-current-row th {
  box-shadow: inset 4px 0 #e4ad18;
}

.suuon-arawan-analysis {
  margin: 16px 0 28px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}

.suuon-arawan-title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 1.05em;
}

.suuon-arawan-lines p {
  margin: 4px 0;
}

.suuon-arawan-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}


.suuon-potential-summary {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.suuon-potential-summary p {
  margin: 0;
}

.suuon-potential-score {
  font-weight: 700;
}

.suuon-total-potential {
  margin: 28px 0;
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  text-align: center;
}

.suuon-total-potential-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1.05em;
}

.suuon-total-potential-score {
  margin: 0;
  font-weight: 700;
  font-size: 2em;
  line-height: 1.2;
}

.suuon-total-potential-note {
  margin: 8px 0 0;
}


.suuon-potential-details {
  margin-top: 10px;
}

.suuon-potential-details summary {
  cursor: pointer;
  font-weight: 700;
}

.suuon-potential-detail-list {
  margin: 10px 0 0;
  padding-left: 1.5em;
}

.suuon-potential-detail-list li {
  margin: 4px 0;
}

.suuon-potential-detail-label {
  font-weight: 700;
}

.suuon-potential-detail-score {
  margin-left: 0.4em;
  font-weight: 700;
}


.suuon-reading-memo {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid #d1fae5;
  border-radius: 10px;
  background: #f0fdf4;
}

.suuon-reading-memo-title {
  margin: 0 0 12px;
  font-weight: 700;
}

.suuon-reading-memo-item {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid #bbf7d0;
}

.suuon-reading-memo-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.suuon-reading-memo-item:last-child {
  padding-bottom: 0;
}

.suuon-reading-memo-item-title {
  margin: 0 0 4px;
  font-weight: 700;
}

.suuon-reading-memo-item-meaning,
.suuon-reading-memo-item-summary {
  margin: 2px 0;
}


.suuon-yin-yang-balance {
  margin: 14px 0 16px;
  padding: 14px 16px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffbeb;
}

.suuon-yin-yang-title {
  margin: 0 0 10px;
  font-weight: 700;
}

.suuon-yin-yang-count-line {
  margin: 6px 0;
}

.suuon-yin-yang-tendency {
  display: inline-block;
  margin-left: 0.6em;
  font-weight: 700;
}

.suuon-yin-yang-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #fde68a;
}

.suuon-yin-yang-note p {
  margin: 4px 0;
}


.suuon-combination-insights {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid #d7dceb;
  border-radius: 12px;
  background: #f8f9fc;
}

.suuon-combination-insights-title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 1.05em;
}

.suuon-combination-card {
  padding: 14px 16px;
  border: 1px solid #d9e2f1;
  border-radius: 10px;
  background: #fff;
}

.suuon-combination-card + .suuon-combination-card {
  margin-top: 12px;
}

.suuon-combination-card--special {
  border-color: #d8c7ef;
  background: #fbf8ff;
}

.suuon-combination-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.suuon-combination-category {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e8eef8;
  font-size: 0.86em;
  font-weight: 700;
}

.suuon-combination-card--special .suuon-combination-category {
  background: #eee5fb;
}

.suuon-combination-pattern {
  font-weight: 700;
  letter-spacing: 0.04em;
}


.suuon-combination-description {
  margin: 0;
}

@media (max-width: 640px) {
  .suuon-combination-insights {
    padding: 13px;
  }

  .suuon-combination-card {
    padding: 12px;
  }
}


.suuon-normal-yin-yang-balance {
  margin: 12px 0 16px;
  padding: 10px 14px;
  border: 1px solid #e3e7ef;
  border-radius: 10px;
  background: #fbfcff;
}

.suuon-normal-yin-yang-title {
  margin: 0 0 6px;
  font-weight: 700;
}

.suuon-normal-yin-yang-list {
  margin: 0;
  padding-left: 1.2em;
}

.suuon-normal-yin-yang-list li {
  margin: 3px 0;
}

.suuon-normal-yin-yang-list span {
  font-weight: 700;
}

/* 通常診断の合計欄 */
.suuon-result-table th.suuon-result-sum-head {
  background: #3aa7b2;
  color: #fff;
  font-weight: 700;
}

.suuon-result-table td.suuon-result-sum-cell,
.suuon-result-table tr.suuon-result-sum-row td {
  background: #EFFAF7;
  font-weight: 700;
}

.suuon-result-table tr.suuon-result-sum-row th {
  background: #cfe9e5;
  font-weight: 700;
}

.suuon-result-table td.suuon-result-grand-sum {
  background: #EFFAF7;
  font-weight: 700;
}

/* 命数 */
.suuon-life-number {
  margin: 14px 0 16px;
  padding: 14px 16px;
  border: 1px solid #d8ece8;
  border-radius: 10px;
  background: #f7fcfa;
}

.suuon-life-number-main {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

.suuon-life-number-main span {
  font-size: 1.9em;
  line-height: 1;
}

.suuon-life-number-link {
  margin: 6px 0 0;
  font-size: 0.95em;
}

.suuon-life-number-link a {
  font-weight: 700;
}

.suuon-life-number-note {
  margin: 4px 0 0;
  font-size: 0.82em;
  color: #4b5563;
}

/* 通常診断の数字リンク */
.suuon-result-digit-link {
  font-weight: 700;
  text-decoration: none;
}

.suuon-result-digit-link:hover {
  text-decoration: underline;
}

.suuon-result-digit-link-note {
  margin: 8px 0 14px;
  font-size: 0.82em;
  color: #4b5563;
}


/* 管理者用：通常診断12マス統計テーブル */
.suuon-statistics-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.suuon-statistics-normal-table {
  width: max-content;
  min-width: 980px;
  table-layout: auto;
  white-space: nowrap;
}

.suuon-statistics-normal-table th,
.suuon-statistics-normal-table td {
  min-width: 76px;
  white-space: nowrap;
}

.suuon-statistics-normal-table thead th:first-child,
.suuon-statistics-normal-table tbody th:first-child {
  position: sticky;
  left: 0;
  min-width: 112px;
  z-index: 2;
}

.suuon-statistics-normal-table thead th:first-child {
  z-index: 3;
  background: #45b8c9;
}

.suuon-statistics-normal-table tbody th:first-child {
  background: #d7edf2;
}

@media (max-width: 640px) {
  .suuon-statistics-normal-table {
    min-width: 940px;
    table-layout: auto;
    white-space: nowrap;
  }

  .suuon-statistics-normal-table th,
  .suuon-statistics-normal-table td {
    padding: 8px 10px;
    min-width: 72px;
    white-space: nowrap;
  }

  .suuon-statistics-normal-table thead th:first-child,
  .suuon-statistics-normal-table tbody th:first-child {
    min-width: 108px;
  }
}


.suuon-life-numbers-table td:last-child {
  font-weight: 700;
  font-size: 1.2em;
}


.suuon-life-numbers-table tbody th {
  text-align: left;
}
