.canary-app {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  line-height: 1.8;
  color: #1f2d2a;
}
.canary-app * { box-sizing: border-box; }
.canary-loading, .canary-hero, .canary-card, .canary-result { border-radius: 18px; }
.canary-loading {
  padding: 24px;
  border: 2px solid #00695c;
  background: #f2faf8;
}
.canary-hero {
  padding: 36px;
  background: linear-gradient(135deg, #f2faf8, #fffdf2);
  border: 1px solid #d8e5e2;
  margin-bottom: 24px;
}
.canary-kicker {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #00695c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.canary-hero h2, .canary-result h2 {
  margin-top: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.3;
}
.canary-card {
  padding: 26px;
  background: #fff;
  border: 1px solid #d8e5e2;
  margin-bottom: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}
.canary-card h3 {
  margin-top: 0;
  color: #00695c;
}
.canary-small {
  font-size: 14px;
  color: #52615e;
}
.canary-question-count {
  margin: 0 0 16px;
}
.canary-count-line {
  display: flex;
  align-items: baseline;
  gap: 0.12em;
  flex-wrap: wrap;
}
.canary-count-prefix,
.canary-count-suffix,
.canary-count-rest {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.5;
  color: #1f2d2a;
}
.canary-count-prefix-spacer {
  visibility: hidden;
}
.canary-emphasis-number {
  display: inline-block;
  font-size: clamp(64px, 8vw, 100px);
  line-height: 1;
  font-weight: 800;
  color: #00695c;
}
@media (max-width: 767px) {
  .canary-count-prefix,
  .canary-count-suffix,
  .canary-count-rest {
    font-size: clamp(18px, 4.8vw, 24px);
  }
  .canary-emphasis-number {
    font-size: clamp(48px, 14vw, 72px);
  }
}
.canary-field {
  display: block;
  font-weight: 700;
  max-width: 520px;
}
.canary-field select {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #b7c7c3;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
}
.canary-rating-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.canary-rating-grid div {
  padding: 14px;
  border-radius: 12px;
  background: #f6faf9;
  border: 1px solid #d8e5e2;
  font-weight: 700;
}
.canary-question-list {
  display: grid;
  gap: 16px;
}
.canary-question {
  padding: 18px;
  border: 1px solid #e3ece9;
  border-radius: 16px;
  background: #fff;
}
.canary-question-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.canary-area-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef8f5;
  color: #00695c;
  font-size: 13px;
  font-weight: 700;
}
.canary-question-no {
  font-weight: 700;
  color: #7a6a2a;
}
.canary-question-text {
  margin: 8px 0 12px;
  font-weight: 700;
}
.canary-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.canary-radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 82px;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #cfdad7;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.canary-radio-pill:has(input:checked) {
  border-color: #00695c;
  background: #eef8f5;
}
.canary-radio-pill input {
  accent-color: #00695c;
}
.canary-submit-wrap {
  text-align: center;
  margin: 28px 0;
}
.canary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #44524f;
  color: #fff !important;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}
.canary-button:hover {
  opacity: 0.9;
  color: #fff !important;
  text-decoration: none;
}
.canary-button-main {
  background: #00695c;
}
.canary-result {
  margin-top: 36px;
  padding: 30px;
  background: #fffdf2;
  border: 2px solid #f0d98c;
}
.canary-result-header {
  margin-bottom: 22px;
}
.canary-score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 16px;
  margin: 22px 0;
}
.canary-score-card, .canary-zone-card {
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #eadb9b;
}
.canary-score-card span, .canary-zone-card span {
  display: block;
  font-weight: 700;
  color: #52615e;
}
.canary-score-card strong {
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1;
  color: #00695c;
}
.canary-need-card strong {
  color: #c96a00;
}
.canary-score-card small {
  font-size: 18px;
  font-weight: 700;
}
.canary-zone-card strong {
  display: block;
  margin: 8px 0;
  font-size: 24px;
  color: #00695c;
}
.canary-report-block {
  margin-top: 18px;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #eadb9b;
}
.canary-report-block h3 {
  margin-top: 0;
  color: #00695c;
}
.canary-good {
  background: #f2faf8;
  border-color: #cfe6df;
}
.canary-future {
  background: #f7fbff;
  border-color: #cfddea;
}
.canary-action-message {
  background: #fff9e6;
}
.canary-list, .canary-priority-list {
  padding-left: 1.3em;
}
.canary-list li, .canary-priority-list li {
  margin-bottom: 16px;
}
.canary-list span, .canary-priority-head span {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d8e5e2;
  color: #52615e;
  font-size: 13px;
  font-weight: 700;
}
.canary-priority-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.canary-cta {
  margin-top: 22px;
  padding: 28px;
  border-radius: 18px;
  background: #eef8f5;
  border: 2px solid #00695c;
  text-align: center;
}
.canary-copy-text {
  width: 100%;
  min-height: 190px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #b7c7c3;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  text-align: left;
}
.canary-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .canary-app {
    padding: 12px;
  }
  .canary-hero, .canary-card, .canary-result {
    padding: 20px;
  }
  .canary-rating-grid, .canary-score-grid {
    grid-template-columns: 1fr;
  }
  .canary-radio-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .canary-radio-pill {
    width: 100%;
  }
  .canary-priority-head {
    display: block;
  }
  .canary-list span, .canary-priority-head span {
    margin: 6px 0 0;
  }
}


/* v3: 役職選択とスモールステップ回答 */
.canary-role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.canary-role-card {
  display: block;
  cursor: pointer;
}
.canary-role-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.canary-role-box {
  display: block;
  min-height: 138px;
  padding: 18px;
  border: 2px solid #d8e5e2;
  border-radius: 18px;
  background: #fff;
  transition: 0.18s ease;
}
.canary-role-box strong {
  display: block;
  color: #00695c;
  font-size: 18px;
  margin-bottom: 8px;
}
.canary-role-box small {
  display: block;
  color: #52615e;
  line-height: 1.6;
}
.canary-role-card input:checked + .canary-role-box {
  border-color: #00695c;
  background: #eef8f5;
  box-shadow: 0 8px 24px rgba(0, 105, 92, 0.16);
}
.canary-role-card input:focus-visible + .canary-role-box {
  outline: 3px solid rgba(0, 105, 92, 0.28);
  outline-offset: 3px;
}
.canary-area-step {
  border-left: 6px solid #00695c;
}
.canary-area-title {
  margin-bottom: 18px;
}
.canary-area-title h3 {
  margin: 8px 0 0;
}
.canary-choice-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.canary-choice-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid #cfdad7;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
}
.canary-choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.canary-choice-pill span {
  display: block;
}
.canary-choice-pill:has(input:checked) {
  border-color: #00695c;
  background: #eef8f5;
  box-shadow: inset 0 0 0 1px #00695c;
}
.canary-choice-pill:has(input:checked)::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 999px;
  background: #00695c;
  color: #fff;
  font-size: 14px;
  flex: 0 0 auto;
}
.canary-choice-pill:has(input:focus-visible) {
  outline: 3px solid rgba(0, 105, 92, 0.28);
  outline-offset: 3px;
}
@media (max-width: 980px) {
  .canary-role-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .canary-choice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .canary-role-grid,
  .canary-choice-row {
    grid-template-columns: 1fr;
  }
  .canary-role-box {
    min-height: auto;
  }
}


/* v4 診断結果テーブル・問い合わせ自動引き継ぎ */
.canary-priority-cards {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.canary-priority-card {
  border: 1px solid #d8e5e2;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.canary-priority-card .canary-priority-head {
  padding: 16px 18px;
  background: #f2faf8;
  border-bottom: 1px solid #d8e5e2;
}

.canary-priority-card .canary-priority-head strong {
  display: inline-block;
  margin-right: 12px;
  color: #00695c;
}

.canary-priority-card .canary-priority-head span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.canary-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.canary-priority-table,
.canary-answer-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.canary-priority-table th,
.canary-priority-table td,
.canary-answer-table th,
.canary-answer-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf2f0;
  vertical-align: top;
  text-align: left;
}

.canary-priority-table th {
  width: 168px;
  color: #00695c;
  background: #fbfdfc;
  white-space: nowrap;
}

.canary-answer-table th {
  color: #00695c;
  background: #f6faf9;
  white-space: nowrap;
}

.canary-answer-table td:first-child {
  font-weight: 700;
  color: #00695c;
  white-space: nowrap;
}

.canary-answer-table td:last-child {
  min-width: 180px;
}

.canary-cta-message {
  margin: 14px 0 18px;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  text-align: left;
}

.canary-cta-message p {
  margin: 0 0 8px;
}

.canary-cta-message p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .canary-priority-table th,
  .canary-priority-table td,
  .canary-answer-table th,
  .canary-answer-table td {
    padding: 11px 10px;
    font-size: 14px;
  }

  .canary-priority-table th {
    width: 132px;
  }
}


.canary-question-count {
  font-size: 16px;
  font-weight: 400;
  color: #1f2d2a;
  background: rgba(255, 255, 255, 0.75);
  border-left: 5px solid #00695c;
  padding: 10px 14px;
  border-radius: 10px;
}

.canary-emphasis-number {
  display: inline-block;
  margin: 0 0.12em;
  color: #00695c;
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
}

.canary-field-check {
  background: #f2faf8;
  border-color: #cfe6df;
}

.canary-field-check-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.canary-field-check-table th,
.canary-field-check-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf2f0;
  vertical-align: top;
  text-align: left;
}

.canary-field-check-table th {
  color: #00695c;
  background: #fbfdfc;
  white-space: nowrap;
}

.canary-field-check-table thead th {
  background: #eef8f5;
}
