/* チェックシート（全体版） */

.check-sheet {
  --cs-border: var(--border-color, #d9d9d9);
  --cs-line: #f1f5f9;
  --cs-muted: #94a3b8;
  --cs-text: #1e293b;
  --cs-note: #334155;
  --cs-ref: #475569;
  --cs-blue: #2563eb;
  --cs-blue-ink: #1e3a8a;
  --cs-blue-soft: rgba(239, 246, 255, 0.7);
  --cs-rose: #e11d48;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--cs-border);
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
}

#main h3 + .check-sheet {
  margin-top: 16px;
}

.check-sheet__section {
  padding: 12px 16px;
  background: var(--cs-blue-soft);
  border-bottom: 1px solid var(--cs-border);
}

.check-sheet__section--follow {
  border-top: 1px solid var(--cs-border);
}

#main .check-sheet__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--cs-blue-ink);
}

.check-sheet__section-title::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cs-blue);
}

.check-sheet__item {
  border-bottom: 1px solid var(--cs-border);
  transition: background-color 0.2s;
}

.check-sheet__item::details-content {
  overflow: hidden;
}

.check-sheet__item:last-child {
  border-bottom: 0;
}

.check-sheet__item:hover,
.check-sheet__item[open] {
  background: var(--gray-100);
}

.check-sheet__summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.check-sheet__summary::-webkit-details-marker {
  display: none;
}

.check-sheet__q {
  display: flex;
  flex-grow: 1;
  gap: 12px;
  width: 100%;
}

.check-sheet__num {
  flex-shrink: 0;
  width: 24px;
  padding-top: 2px;
  font-weight: 700;
  color: var(--cs-muted);
  text-align: center;
}

.check-sheet__text {
  flex-grow: 1;
  margin: 0;
  font-weight: 500;
  line-height: 1.7;
  color: var(--cs-text);
}

.check-sheet__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-left: 36px;
}

.check-sheet__answers {
  display: flex;
  flex-shrink: 0;
  width: 160px;
  padding: 4px;
  background: var(--cs-line);
  border-radius: 8px;
}

.check-sheet__choice {
  position: relative;
  flex: 1;
  margin: 0;
  text-align: center;
  cursor: pointer;
}

.check-sheet__choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.check-sheet__choice span {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  border-radius: 6px;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.check-sheet__choice input:checked + .check-sheet__choice-yes {
  color: var(--cs-blue);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.check-sheet__choice input:checked + .check-sheet__choice-no {
  color: var(--cs-rose);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.check-sheet__choice input:focus-visible + span {
  outline: 2px solid var(--cs-blue);
  outline-offset: 2px;
}

.check-sheet__explain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: #64748b;
  white-space: nowrap;
  border-radius: 6px;
  transition: color 0.2s, background-color 0.2s;
}

.check-sheet__explain::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s;
}

.check-sheet__item:hover .check-sheet__explain,
.check-sheet__item[open] .check-sheet__explain {
  color: var(--cs-blue);
  background: var(--cs-blue-soft);
}

.check-sheet__item[open] .check-sheet__explain::after {
  transform: rotate(225deg) translateY(-1px);
}

.check-sheet__detail {
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.check-sheet__detail-inner {
  padding: 16px 16px 16px 52px;
  font-size: 14px;
  color: var(--cs-note);
}

#main .check-sheet__note {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
}

.check-sheet__note--last {
  margin-bottom: 16px;
}

.check-sheet__fig {
  max-width: 100%;
  margin: 0 auto 16px;
  text-align: center;
}

.check-sheet__fig img {
  display: block;
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

#main .check-sheet__fig figcaption {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--cs-ref);
}

#main .check-sheet__ref {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cs-ref);
  background: var(--cs-blue-soft);
  border-radius: 4px;
}

.check-sheet__ref::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
  color: #3b82f6;
}

.check-sheet__ref a {
  color: var(--cs-blue);
  text-decoration: underline;
}

.check-sheet__result {
  margin: 0;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--cs-text);
  text-align: center;
  background: var(--gray-100);
  border-top: 1px solid var(--cs-border);
}

.check-sheet__result .js-check-sheet-yes {
  color: var(--cs-blue);
}

.check-sheet__result .js-check-sheet-no {
  color: var(--cs-rose);
}

@media (min-width: 960px) {
  .check-sheet__section {
    padding: 16px 24px;
  }

  .check-sheet__summary {
    flex-direction: row;
    align-items: flex-start;
    padding: 24px;
  }

  .check-sheet__q {
    gap: 16px;
    width: auto;
  }

  .check-sheet__actions {
    flex-shrink: 0;
    justify-content: flex-end;
    gap: 24px;
    margin-top: 0;
    padding-left: 0;
  }

  .check-sheet__detail-inner {
    padding: 24px 24px 24px 52px;
  }

  .check-sheet__result {
    padding: 20px 24px;
  }
}
