/* LP 生成AI言及チェッカー（モーダル） */
.mc-teaser {
  margin-top: 48px;
  padding: 32px 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(24, 54, 91, 0.06);
  display: grid;
  gap: 20px;
}
.mc-teaser-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--deep);
  background: var(--pale);
  border-radius: 999px;
  padding: 6px 14px;
  width: fit-content;
}
.mc-teaser h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.45;
}
.mc-teaser p {
  color: var(--soft);
  font-size: 16px;
  max-width: 720px;
}
.mc-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.mc-teaser-note {
  font-size: 13px;
  color: var(--soft);
}

.mc-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(23, 41, 66, 0.52);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mc-overlay.is-open {
  display: flex;
}
.mc-dialog {
  width: min(640px, 100%);
  max-height: min(92vh, 860px);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(23, 41, 66, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mc-dialog-head {
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.mc-dialog-head h2 {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
}
.mc-dialog-head .mc-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--soft);
}
.mc-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.mc-close:hover {
  background: var(--pale);
  color: var(--deep);
}
.mc-steps {
  display: flex;
  gap: 8px;
  padding: 14px 26px 0;
}
.mc-step-dot {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #E6EDF6;
}
.mc-step-dot.is-done,
.mc-step-dot.is-current {
  background: var(--blue);
}
.mc-step-dot.is-done {
  opacity: 0.55;
}
.mc-body {
  padding: 18px 26px 8px;
  overflow: auto;
  flex: 1;
}
.mc-pane {
  display: none;
}
.mc-pane.is-active {
  display: block;
}
.mc-pane h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
.mc-pane .mc-lead {
  color: var(--soft);
  font-size: 15px;
  margin-bottom: 20px;
}
.mc-field {
  margin-bottom: 18px;
}
.mc-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.mc-field .req {
  color: var(--orange-deep);
  font-weight: 800;
  margin-left: 4px;
}
.mc-field input[type="text"],
.mc-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}
.mc-field input:focus,
.mc-field select:focus {
  outline: 3px solid rgba(45, 108, 223, 0.25);
  border-color: var(--blue);
}
.mc-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--soft);
  line-height: 1.7;
}
.mc-examples {
  margin-top: 10px;
  padding: 12px 14px;
  background: #F5F8FD;
  border-radius: 12px;
  font-size: 13px;
  color: var(--soft);
  line-height: 1.75;
}
.mc-examples strong {
  display: block;
  color: var(--deep);
  margin-bottom: 4px;
  font-size: 13px;
}
.mc-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.mc-error {
  display: none;
  margin: 0 26px 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFF1EB;
  color: #9A3412;
  font-size: 14px;
  font-weight: 700;
}
.mc-error.is-visible {
  display: block;
}
.mc-foot {
  padding: 16px 26px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mc-foot .btn {
  min-height: 48px;
  font-size: 15px;
  cursor: pointer;
}
.mc-foot .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.mc-loading {
  text-align: center;
  padding: 36px 12px 28px;
}
.mc-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border: 3px solid #D7E4F7;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: mc-spin 0.85s linear infinite;
}
@keyframes mc-spin {
  to { transform: rotate(360deg); }
}
.mc-loading p {
  color: var(--soft);
  font-size: 15px;
}
.mc-loading .mc-wait {
  margin-top: 8px;
  font-size: 13px;
  color: #7A8A9C;
}
.mc-result-grid {
  display: grid;
  gap: 14px;
}
.mc-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: #FAFCFF;
}
.mc-card h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--deep);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.mc-card .mc-metric {
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
}
.mc-card .mc-metric small {
  font-size: 14px;
  font-weight: 700;
  color: var(--soft);
  margin-left: 6px;
}
.mc-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 800;
}
.mc-badge.ok {
  background: #E9F5EF;
  color: var(--green);
}
.mc-badge.ng {
  background: #EDF1F5;
  color: #586778;
}
.mc-aio-preview {
  margin-top: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.75;
  max-height: calc(1.75em * 3);
}
.mc-detail-btn {
  margin-top: 12px;
  min-height: 42px !important;
  font-size: 14px !important;
  padding: 8px 18px !important;
  cursor: pointer;
}
.mc-md {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.75;
}
.mc-md h2,
.mc-md h3,
.mc-md h4,
.mc-md h5,
.mc-md h6 {
  margin: 0.7em 0 0.35em;
  font-size: 15px;
  font-weight: 800;
  color: var(--deep);
  line-height: 1.45;
}
.mc-md p {
  margin: 0 0 0.65em;
  color: var(--soft);
}
.mc-md p:last-child {
  margin-bottom: 0;
}
.mc-md ul {
  margin: 0.4em 0 0.7em;
  padding-left: 1.25em;
  color: var(--soft);
}
.mc-md li {
  margin-bottom: 0.3em;
}
.mc-md a {
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: normal;
}
.mc-md a.mc-md-link {
  font-weight: 700;
  font-size: 13px;
}
.mc-md .mc-cite {
  font-size: 11px;
  line-height: 1;
  margin-left: 2px;
}
.mc-md .mc-cite a {
  display: inline-block;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--pale);
  color: var(--deep);
  text-decoration: none;
  font-weight: 800;
  font-size: 11px;
}
.mc-md .mc-cite a:hover {
  background: #D9E6FF;
}
.mc-md .mc-context {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.mc-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(23, 41, 66, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mc-detail-overlay.is-open {
  display: flex;
}
.mc-detail-dialog {
  width: min(640px, 100%);
  max-height: min(88vh, 720px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(23, 41, 66, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mc-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.mc-detail-head h3 {
  font-size: 17px;
  font-weight: 900;
}
.mc-detail-body {
  padding: 18px 22px 24px;
  overflow: auto;
}
.mc-cta {
  margin-top: 6px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, #EAF1FF 0%, #F7FAFF 55%, #FFF7F0 100%);
  border: 1px solid #D5E2F5;
}
.mc-cta .mc-cta-heading {
  font-size: 20px;
  font-weight: 900;
  color: var(--deep);
  margin-bottom: 12px;
  line-height: 1.4;
}
.mc-cta p {
  font-size: 14px;
  color: var(--soft);
  line-height: 1.75;
}
.mc-cta ul {
  margin: 12px 0 14px;
  padding-left: 1.2em;
  color: var(--ink);
  font-size: 14px;
}
.mc-cta li {
  margin-bottom: 6px;
}
.mc-cta-footer {
  margin: 4px 0 16px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
}
.mc-cta .btn {
  width: 100%;
}
body.mc-lock {
  overflow: hidden;
}
@media (max-width: 640px) {
  .mc-teaser {
    padding: 24px 20px;
    margin-top: 36px;
  }
  .mc-dialog-head,
  .mc-body,
  .mc-foot,
  .mc-steps {
    padding-left: 18px;
    padding-right: 18px;
  }
  .mc-error {
    margin-left: 18px;
    margin-right: 18px;
  }
  .mc-foot .btn {
    flex: 1 1 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mc-spinner {
    animation: none;
    border-top-color: var(--blue);
  }
}
