/* 浮気判定シート＆診断ツール 専用スタイル */

body.uwaki-page {
  background: #fdfafb;
  color: #2b2728;
}

.uwaki-page-shell {
  overflow-wrap: anywhere;
}

/* ヒーローセクション */
.uwaki-hero {
  padding: 2.2rem 0 1.8rem;
  background: linear-gradient(180deg, #fff1f2 0%, #fdfafb 100%);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  text-align: center;
}

.uwaki-hero-copy {
  max-width: 860px;
  margin: 0 auto;
}

.uwaki-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #fecdd3;
  color: #e11d48;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(225, 29, 72, 0.08);
}

.uwaki-badge-free {
  background: #e11d48;
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.uwaki-hero h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  color: #1f1b1c;
  margin-bottom: 0.85rem;
}

.uwaki-hero-subtitle {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #4b4446;
  margin-bottom: 1.25rem;
}

.uwaki-hero-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.uwaki-hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  color: #57534e;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.uwaki-hero-links a:hover {
  border-color: #f43f5e;
  color: #e11d48;
  transform: translateY(-1px);
}

/* ツールセクション */
.uwaki-tool-section {
  padding: 2rem 0 3rem;
}

.uwaki-tool-shell {
  max-width: 960px;
  margin: 0 auto;
}

.uwaki-category-box {
  background: #ffffff;
  border: 1px solid #f2e8ea;
  border-radius: 16px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.uwaki-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #ffe4e6;
}

.uwaki-category-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffe4e6;
  color: #e11d48;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.uwaki-category-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f1b1c;
  margin: 0;
}

.uwaki-category-desc {
  font-size: 0.86rem;
  color: #78716c;
  margin-left: auto;
}

@media (max-width: 768px) {
  .uwaki-category-desc {
    display: none;
  }
}

.uwaki-question-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px dashed #f5e6e8;
}

.uwaki-question-row:last-child {
  border-bottom: none;
  padding-bottom: 0.2rem;
}

.uwaki-q-text {
  font-size: 0.98rem;
  font-weight: 500;
  color: #292524;
  line-height: 1.5;
  flex: 1;
}

.uwaki-q-num {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #ffe4e6;
  color: #e11d48;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

.uwaki-options-group {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

.uwaki-option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  min-width: 84px;
  border: 1.5px solid #e7e5e4;
  border-radius: 8px;
  cursor: pointer;
  background: #fafaf9;
  transition: all 0.15s ease;
  user-select: none;
  text-align: center;
}

.uwaki-option-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.uwaki-opt-name {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.uwaki-opt-sub {
  font-size: 0.68rem;
  color: #a8a29e;
  margin-top: 0.15rem;
}

/* 选项激活颜色 */
.uwaki-option-label.opt-1:has(input:checked) {
  border-color: #ef4444;
  background: #fef2f2;
  color: #b91c1c;
  box-shadow: 0 0 0 1px #ef4444;
}

.uwaki-option-label.opt-2:has(input:checked) {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
  box-shadow: 0 0 0 1px #f59e0b;
}

.uwaki-option-label.opt-3:has(input:checked) {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
  box-shadow: 0 0 0 1px #10b981;
}

@media (max-width: 768px) {
  .uwaki-question-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
  .uwaki-options-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .uwaki-option-label {
    min-width: 0;
    padding: 0.5rem 0.2rem;
  }
}

/* 按钮区 */
.uwaki-action-row {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.uwaki-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.9rem 2.5rem;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.uwaki-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45);
}

.uwaki-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #ffffff;
  color: #78716c;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid #d6d3d1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.uwaki-btn-secondary:hover {
  background: #f5f5f4;
  color: #292524;
}

/* 诊断结果卡片 */
.uwaki-result-wrapper {
  margin-top: 2.5rem;
  scroll-margin-top: 2rem;
}

.uwaki-result-card {
  background: #ffffff;
  border: 2px solid #fecdd3;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.08);
}

.uwaki-result-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.uwaki-result-header .badge-type {
  display: inline-block;
  background: #ffe4e6;
  color: #e11d48;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.uwaki-result-title {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #1f1b1c;
  margin-bottom: 0.5rem;
}

.uwaki-score-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1.2rem;
  background: #fff1f2;
  border-radius: 14px;
}

.uwaki-score-num {
  font-size: 3.2rem;
  font-weight: 900;
  color: #e11d48;
  line-height: 1;
}

.uwaki-score-unit {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e11d48;
}

.uwaki-score-desc {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4c0519;
}

/* 4大维度条形图 */
.uwaki-category-bars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .uwaki-category-bars {
    grid-template-columns: 1fr;
  }
}

.uwaki-bar-item {
  background: #fafaf9;
  border: 1px solid #f5e6e8;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.uwaki-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.uwaki-progress-track {
  height: 8px;
  background: #e7e5e4;
  border-radius: 9999px;
  overflow: hidden;
}

.uwaki-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f43f5e, #fb7185);
  border-radius: 9999px;
  transition: width 0.6s ease;
}

/* 分享与保存按钮 */
.uwaki-share-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.uwaki-btn-x {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #000000;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.uwaki-btn-x:hover {
  opacity: 0.85;
  color: #ffffff;
}

.uwaki-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0284c7;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.uwaki-btn-download:hover {
  opacity: 0.9;
}

/* 内容板块样式 */
.uwaki-content-section {
  padding: 3rem 0;
  background: #ffffff;
  border-top: 1px solid #f2e8ea;
}

.uwaki-content-container {
  max-width: 920px;
  margin: 0 auto;
}

.uwaki-content-section h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #1f1b1c;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #fecdd3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.uwaki-content-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #292524;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.uwaki-content-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: #44403c;
  margin-bottom: 1.2rem;
}

.uwaki-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  overflow: hidden;
}

.uwaki-data-table th,
.uwaki-data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #f5f5f4;
  font-size: 0.92rem;
}

.uwaki-data-table th {
  background: #fff1f2;
  color: #9f1239;
  font-weight: 700;
}

.uwaki-data-table tr:hover {
  background: #fafaf9;
}

.badge-tag-red {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-tag-yellow {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-tag-green {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: #d1fae5;
  color: #065f46;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* FAQ 手风琴 */
.uwaki-faq-list {
  margin-top: 1.5rem;
}

.uwaki-faq-item {
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  overflow: hidden;
  background: #ffffff;
}

.uwaki-faq-question {
  padding: 1.1rem 1.4rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1f1b1c;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  user-select: none;
  transition: background 0.15s;
}

.uwaki-faq-question:hover {
  background: #fafaf9;
}

.uwaki-faq-answer {
  padding: 0 1.4rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #57534e;
  display: none;
  border-top: 1px solid #f5f5f4;
  padding-top: 1rem;
}

.uwaki-faq-item.active .uwaki-faq-answer {
  display: block;
}

.uwaki-faq-icon {
  font-size: 0.88rem;
  color: #a8a29e;
  transition: transform 0.2s;
}

.uwaki-faq-item.active .uwaki-faq-icon {
  transform: rotate(180deg);
  color: #e11d48;
}

/* 内链卡片推荐 */
.uwaki-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .uwaki-related-grid {
    grid-template-columns: 1fr;
  }
}

.uwaki-related-card {
  padding: 1.4rem;
  border-radius: 14px;
  border: 1px solid #e7e5e4;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.uwaki-related-card:hover {
  border-color: #f43f5e;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.uwaki-related-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f1b1c;
  margin-bottom: 0.4rem;
}

.uwaki-related-card p {
  font-size: 0.86rem;
  color: #78716c;
  margin: 0;
  line-height: 1.5;
}
