/* ============================================================
   一条工務店データバンク アンケートLP化 v1.0.2
   /survey/ と survey 個別をLP風に統一
   ============================================================ */

:root {
  --ichijo-survey-navy: #06315f;
  --ichijo-survey-navy-dark: #05284d;
  --ichijo-survey-blue: #1976b8;
  --ichijo-survey-teal: #0fa4a7;
  --ichijo-survey-teal-dark: #087f83;
  --ichijo-survey-orange: #ff861f;
  --ichijo-survey-orange-dark: #e96f0c;
  --ichijo-survey-green: #7fba42;
  --ichijo-survey-text: #10294f;
  --ichijo-survey-muted: #52657d;
  --ichijo-survey-line: #dce8f2;
  --ichijo-survey-soft: #f4fbff;
  --ichijo-survey-shadow: 0 12px 28px rgba(12, 54, 94, 0.12);
  --ichijo-survey-shadow-soft: 0 8px 20px rgba(12, 54, 94, 0.08);
}

body:has(.ichijo-survey-lp-page),
body:has(.ichijo-survey),
body:has(.ichijo-survey-list) {
  background: linear-gradient(180deg, #f4fbff 0%, #ffffff 48%, #f3fbfc 100%);
}

.ichijo-survey-lp-page .ichijo-survey-lp-guide {
  display: none !important;
}

.ichijo-survey-lp-page,
.ichijo-survey,
.ichijo-survey-list,
.survey-featured-wrap,
.survey-related-box {
  color: var(--ichijo-survey-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: 0.02em;
}

.ichijo-survey-lp-page *,
.ichijo-survey *,
.ichijo-survey-list *,
.survey-featured-wrap *,
.survey-related-box * {
  box-sizing: border-box;
}

.ichijo-survey-lp-page a,
.ichijo-survey a,
.ichijo-survey-list a,
.survey-featured-wrap a,
.survey-related-box a {
  text-decoration: none !important;
}

.ichijo-survey-lp-page {
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  padding: 44px 16px 56px;
  background: linear-gradient(180deg, #f4fbff 0%, #ffffff 48%, #f3fbfc 100%);
}

.ichijo-survey-lp-inner {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.ichijo-survey-lp-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
  padding: 34px 28px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 86% 14%, rgba(15, 164, 167, .15), transparent 24%),
    radial-gradient(circle at 78% 84%, rgba(255, 134, 31, .13), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #eef9ff 56%, #e8f7fb 100%);
  border: 1px solid var(--ichijo-survey-line);
  box-shadow: var(--ichijo-survey-shadow);
}

.ichijo-survey-lp-eyebrow,
.survey-list-category,
.survey-related-label,
.survey-featured-label {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: #e8f8f8 !important;
  color: var(--ichijo-survey-teal-dark) !important;
  border: 1px solid rgba(15, 164, 167, .20) !important;
  font-size: 12px !important;
  line-height: 1.4;
  font-weight: 900 !important;
}

.ichijo-survey-lp-hero h1 {
  margin: 0 0 14px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--ichijo-survey-navy-dark) !important;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.28;
  font-weight: 900;
}

.ichijo-survey-lp-hero p {
  margin: 0;
  color: var(--ichijo-survey-muted);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 700;
}

.ichijo-survey-lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.ichijo-survey-lp-button,
.survey-cta-btn,
.survey-submit-btn,
.survey-featured-btn,
.survey-login-btn,
.survey-sort-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px !important;
  border-radius: 12px !important;
  border: 0;
  font-size: 14px !important;
  line-height: 1.2;
  font-weight: 900 !important;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0,0,0,.13);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, border-color .16s ease;
}

.ichijo-survey-lp-button:hover,
.survey-cta-btn:hover,
.survey-submit-btn:hover,
.survey-featured-btn:hover,
.survey-login-btn:hover,
.survey-sort-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0,0,0,.17);
  filter: brightness(1.02);
}

.ichijo-survey-lp-button-main,
.survey-cta-btn--answer,
.survey-submit-btn,
.survey-featured-btn--answer,
.survey-login-btn,
.survey-sort-btn--active {
  background: linear-gradient(135deg, var(--ichijo-survey-teal), var(--ichijo-survey-teal-dark)) !important;
  color: #fff !important;
}

.ichijo-survey-lp-button-orange,
.survey-cta-btn--login,
.survey-featured-btn--login {
  background: linear-gradient(135deg, var(--ichijo-survey-orange), var(--ichijo-survey-orange-dark)) !important;
  color: #fff !important;
}

.ichijo-survey-lp-button-outline,
.survey-cta-btn--result,
.survey-cta-btn--edit,
.survey-featured-btn--result,
.survey-sort-btn {
  background: #fff !important;
  color: var(--ichijo-survey-navy) !important;
  border: 1px solid var(--ichijo-survey-line) !important;
}

.ichijo-survey-lp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ichijo-survey-lp-stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(220,232,242,.96);
  box-shadow: var(--ichijo-survey-shadow-soft);
}

.ichijo-survey-lp-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--ichijo-survey-muted);
  font-size: 12px;
  font-weight: 900;
}

.ichijo-survey-lp-stat strong {
  display: block;
  color: var(--ichijo-survey-navy-dark);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.ichijo-survey-lp-stat small {
  color: var(--ichijo-survey-muted);
  font-size: 13px;
}

.ichijo-survey-lp-list-section,
.ichijo-survey,
.survey-featured-wrap,
.survey-related-box {
  margin: 24px auto;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--ichijo-survey-line);
  box-shadow: var(--ichijo-survey-shadow-soft);
}

.ichijo-survey-lp-list-section {
  scroll-margin-top: 80px;
}

.ichijo-survey-lp-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.ichijo-survey-lp-section-head h2,
.ichijo-survey .survey-question,
.survey-related-title,
.survey-featured-title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--ichijo-survey-navy-dark) !important;
  font-size: clamp(22px, 3vw, 30px) !important;
  line-height: 1.38 !important;
  font-weight: 900 !important;
}

/* 一覧 */
.ichijo-survey-list {
  display: grid !important;
  gap: 14px !important;
}

.survey-list-item,
.survey-featured-card,
.survey-related-card {
  position: relative;
  display: grid !important;
  gap: 12px !important;
  padding: 18px 20px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #f8fcff, #ffffff) !important;
  border: 1px solid var(--ichijo-survey-line) !important;
  box-shadow: 0 6px 18px rgba(12,54,94,.05);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.survey-list-item::after,
.survey-featured-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 94px;
  height: 94px;
  border-radius: 999px;
  background: rgba(15, 164, 167, .10);
  pointer-events: none;
}

.survey-list-item:hover,
.survey-featured-card:hover,
.survey-related-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 164, 167, .35) !important;
  box-shadow: var(--ichijo-survey-shadow-soft) !important;
}

.survey-list-badges,
.survey-featured-meta,
.survey-related-meta {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px !important;
  min-width: 0;
}

.survey-badge,
.survey-badge-ended,
.survey-featured-count,
.survey-list-count {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 1.2;
  font-weight: 900 !important;
  white-space: nowrap;
}

.survey-list-count,
.survey-featured-count {
  margin-left: auto;
  color: var(--ichijo-survey-muted) !important;
  background: #f5fbfd !important;
  border: 1px solid var(--ichijo-survey-line);
}

.survey-badge--unanswered {
  color: #92400e !important;
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
}

.survey-badge--answered {
  color: #166534 !important;
  background: #ecfdf3 !important;
  border: 1px solid #bbf7d0 !important;
}

.survey-badge--ended,
.survey-badge-ended {
  color: #52657d !important;
  background: #f1f5f9 !important;
  border: 1px solid #dce8f2 !important;
}

.survey-list-title,
.survey-featured-title,
.survey-related-card a {
  display: block;
  color: var(--ichijo-survey-navy-dark) !important;
  font-size: clamp(16px, 2.5vw, 20px) !important;
  line-height: 1.5 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

/* 個別アンケート */
.ichijo-survey {
  max-width: 820px !important;
  line-height: 1.75;
}

.ichijo-survey .survey-question {
  padding-bottom: 16px !important;
  margin-bottom: 20px !important;
  border-bottom: 1px solid var(--ichijo-survey-line) !important;
}

.survey-form {
  margin-top: 16px !important;
}

.survey-choices {
  display: grid !important;
  gap: 12px !important;
  margin-bottom: 22px !important;
}

.survey-choice-label {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  min-height: 56px;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #f8fcff, #ffffff) !important;
  border: 1px solid var(--ichijo-survey-line) !important;
  color: var(--ichijo-survey-text);
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(12,54,94,.04);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.survey-choice-label:hover,
.survey-choice-label:has(input:checked) {
  transform: translateY(-1px);
  border-color: rgba(15,164,167,.42) !important;
  background: #f2fbfb !important;
  box-shadow: var(--ichijo-survey-shadow-soft);
}

.survey-choice-label input[type="radio"],
.survey-choice-label input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  accent-color: var(--ichijo-survey-teal);
  flex: 0 0 auto;
}

.survey-results {
  display: grid;
  gap: 14px;
  margin-top: 16px !important;
}

.survey-total,
.survey-answered-note {
  color: var(--ichijo-survey-muted) !important;
  font-size: 13px !important;
  font-weight: 700;
}

.survey-result-item {
  margin: 0 !important;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--ichijo-survey-line);
  background: linear-gradient(135deg, #f8fcff, #ffffff);
}

.survey-result-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px !important;
}

.survey-result-label {
  color: var(--ichijo-survey-navy-dark);
  font-size: 14px !important;
  line-height: 1.5;
  font-weight: 900;
}

.survey-my-badge {
  display: inline-flex !important;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px !important;
  border-radius: 999px !important;
  background: var(--ichijo-survey-orange) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 900;
  white-space: nowrap;
}

.survey-result-bar-wrap {
  height: 18px !important;
  border-radius: 999px !important;
  background: #edf4f8 !important;
  overflow: hidden;
}

.survey-result-bar {
  min-width: 4px;
  height: 100%;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--ichijo-survey-teal), var(--ichijo-survey-teal-dark)) !important;
}

.survey-my-choice .survey-result-bar {
  background: linear-gradient(135deg, var(--ichijo-survey-orange), var(--ichijo-survey-orange-dark)) !important;
}

.survey-result-pct {
  margin-top: 6px;
  color: var(--ichijo-survey-muted) !important;
  font-size: 13px !important;
  font-weight: 800;
}

.survey-login-notice,
.survey-notice,
.survey-msg {
  margin: 0 0 18px !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  border: 1px solid var(--ichijo-survey-line) !important;
  border-left: 5px solid var(--ichijo-survey-teal) !important;
  background: #f5fbfd !important;
  color: var(--ichijo-survey-text) !important;
  font-size: 14px !important;
  line-height: 1.75;
  font-weight: 700;
}

.survey-msg--success {
  background: #ecfdf3 !important;
  border-left-color: #22c55e !important;
  color: #166534 !important;
}

.survey-msg--error {
  background: #fef2f2 !important;
  border-left-color: #ef4444 !important;
  color: #991b1b !important;
}

.survey-notice--ended,
.survey-msg--info {
  background: #fff7ed !important;
  border-left-color: var(--ichijo-survey-orange) !important;
  color: #92400e !important;
}

.survey-login-actions,
.survey-edit-answer-wrap {
  margin: 14px 0 0 !important;
}

.survey-sort-buttons {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px !important;
  margin: 0 0 18px !important;
}

.survey-sort-login-note {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: #f5fbfd !important;
  color: var(--ichijo-survey-muted) !important;
  border: 1px solid var(--ichijo-survey-line) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.survey-list-empty {
  margin: 0;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px dashed var(--ichijo-survey-line);
  color: var(--ichijo-survey-muted) !important;
  text-align: center;
  font-weight: 800;
}

@media (max-width: 820px) {
  .ichijo-survey-lp-hero {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .ichijo-survey-lp-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 600px) {
  .ichijo-survey-lp-page {
    padding: 28px 12px 44px;
  }

  .ichijo-survey-lp-hero,
  .ichijo-survey-lp-list-section,
  .ichijo-survey,
  .survey-featured-wrap,
  .survey-related-box {
    border-radius: 20px !important;
    padding: 20px 16px !important;
  }

  .ichijo-survey-lp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ichijo-survey-lp-actions,
  .survey-login-actions,
  .survey-edit-answer-wrap {
    display: grid;
    gap: 10px;
  }

  .ichijo-survey-lp-button,
  .survey-cta-btn,
  .survey-submit-btn,
  .survey-featured-btn,
  .survey-login-btn {
    width: 100% !important;
    min-height: 50px;
  }

  .survey-list-count {
    margin-left: 0;
  }

  .survey-result-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
