:root {
  color-scheme: only light;
  --bg: #f6f4f2;
  --card: #ffffff;
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --accent: #e50012; /* Brighter brand red */
  --accent-dark: #cc0010;
  --line: #eee;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --accent-subtle: hsl(0, 60%, 75%);
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff8f4 0%, #f6f4f2 100%);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ensure main content areas fill the remaining height */
#header-placeholder + main,
#header-placeholder + section,
#header-placeholder + .hero {
  flex: 1;
}

/* Specific fix for hero + follow-up section on top page */
.hero {
  flex: 0 0 auto;
}
.start-section {
  flex: 1;
}

/* Ensure result frame also grows */
.result-report-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
}


.header {
  padding: 20px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand img {
  height: 35px;
  width: auto;
  display: block;
}

.header-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
  text-align: right;
  flex: 1;
  white-space: pre-wrap;
}

.hero {
  padding: 0;
  background: #fff;
  border-bottom: 8px solid var(--accent);
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  padding: 32px 24px 8px; /* Reduced bottom padding */
  text-align: center;
}

.hero-content h1 {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 16px;
  color: var(--text);
}

.hero-content p {
  font-size: 19px;
  line-height: 1.5;
  margin: 0;
  color: #444; /* Slightly darker for better visibility */
  font-weight: 700;
}

.card {
  margin: 24px;
  padding: 32px 24px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 16px;
}

.button:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(2px);
}

.button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.section-title {
  font-size: 20px;
  margin: 0 0 16px;
  font-weight: 800;
  color: var(--text);
}

.quiz-card .section-title {
  font-size: 24px;
  line-height: 1.5;
  padding: 8px 0 8px 16px;
  border-left: 5px solid var(--accent);
  margin-bottom: 32px;
  position: relative;
  background: linear-gradient(to right, rgba(229, 0, 18, 0.03), transparent);
}

/* --- Start Section --- */
.start-section {
  padding: 24px 24px 40px;
  text-align: center;
  background: var(--bg);
}

.cta-container {
  max-width: 600px;
  margin: 20px auto 0;
}

.cta-lead {
  font-size: 23px;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cta-lead::before,
.cta-lead::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.button.main-start {
  height: 80px;
  font-size: 24px;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.button.main-start::after, .cta-btn-premium::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 30%;
  height: 200%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(30deg);
  animation: glimmer 3s infinite;
}

@keyframes glimmer {
  0% { left: -100%; }
  20%, 100% { left: 150%; }
}

.cta-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
  display: block;
  font-weight: 700;
}

/* --- Quiz UI --- */
.option-list {
  display: grid;
  gap: 12px;
}

.option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
}

.option:hover {
  background: #fffaf9;
  border-color: var(--accent-subtle);
}

.option input {
  display: none;
}

.option__badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f2ebe7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
}

.option input:checked + .option__badge {
  background: var(--accent);
  color: #fff;
}

.option input:checked + .option__badge + .option__text {
  color: var(--accent);
}

.option__text {
  font-weight: 600;
  font-size: 16px;
}

.progress {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.progress [data-progress] {
  font-size: 24px;
  color: var(--text);
  line-height: 1;
}

.progress-bar {
  height: 8px;
  background: #efe9e5;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 24px;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 0.3s ease;
}

/* --- Result Report UI --- */
.result-layout {
  padding: 0 0 60px;
}

.result-report-frame {
  max-width: 100%; /* Align with column width */
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  overflow: hidden;
}

.report-title-section {
  padding: 64px 32px 32px;
  text-align: center;
  background: linear-gradient(135deg, #fff 0%, #fff8f4 100%);
}

.report-label {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  background: rgba(229, 0, 18, 0.05);
  padding: 4px 12px;
  border-radius: 4px;
}

.report-type-name {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.2;
}

.report-sub-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
}

.analysis-viz-section,
.analysis-details-section {
  padding: 40px 32px;
  border-top: 1px solid var(--line);
}

.analysis-text-section {
  padding: 40px 32px;
  background: #f0f0f0; /* Slightly darker gray background */
  border-top: 1px solid var(--line);
}

.no-border-top { border-top: none; }

.section-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
}

.analysis-viz-container {
  max-width: 320px;
  margin: 0 auto;
}

.radar-analysis-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}

.analysis-summary-block h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--line); /* White card with light border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.message-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #111;
  font-weight: 600;
}

.detail-table-block h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 4px;
}

.job-grid {
  display: grid;
  gap: 16px;
}

.job-card {
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.2s ease;
}

.job-card:hover { transform: translateY(-3px); }

.job-card__title {
  font-weight: 900;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 8px;
}

.job-card__reason {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

.analysis-list {
  list-style: none;
  padding: 0;
}

.analysis-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  position: relative;
  padding-left: 28px;
  font-weight: 600;
}

.style-check li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
  font-size: 18px;
}

.common-footer-section {
  padding: 0px 32px 80px;
  background: #ffffff;
  text-align: center;
}

.save-line-msg {
  color: var(--accent);
  font-weight: 800;
  font-size: 20px;
  text-align: center;
  margin-bottom: 8px;
  display: block;
}

.cta-navigation-arrow {
  color: var(--accent);
  font-size: 24px;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1;
  animation: ctaBounce 2s infinite;
}

@keyframes ctaBounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-6px);}
  60% {transform: translateY(-3px);}
}

.cta-leading-text {
  font-size: 16px;
  font-weight: 800;
  color: #333; /* Professional dark charcoal */
  margin-bottom: 24px;
  line-height: 1.6;
}

.report-cta-area {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.cta-message-box {
  background: #ffffff;
  padding: 20px;
  border: 2px solid var(--text);
  border-radius: 4px;
  margin-bottom: 24px;
  position: relative;
}

.cta-message-box p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  color: var(--text);
}

.cta-btn-premium {
  height: 64px !important;
  font-size: 18px !important;
  background: #06C755 !important; /* LINE Green */
  box-shadow: 0 4px 0 #05a647 !important; /* Solid 3D-style bottom shadow (no blur) */
  transition: all 0.1s ease;
  position: relative;
  overflow: hidden;
}

.cta-btn-premium:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #05a647 !important;
}

.cta-footer-note {
  display: block;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.cta-banner-link {
  display: block;
  margin-top: 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.cta-banner-link:hover {
  transform: scale(1.02);
}

.cta-banner-link img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  padding: 40px 24px;
  text-align: center;
  background: var(--bg); /* Match section background */
  border-top: none; /* Seamless extension */
}

.footer p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* --- Responsiveness --- */
@media (max-width: 480px) {
  .hero-content h1 { font-size: 22px; }
  .report-type-name { font-size: 24px; }
  .report-title-section { padding: 40px 20px 24px; }
  .analysis-viz-section, .analysis-text-section, .analysis-details-section { padding: 32px 20px; }
  .button.main-start { height: 64px; font-size: 18px; }
  .cta-lead { font-size: 18px; }
  .cta-lead::before, .cta-lead::after { width: 20px; }
  .result-report-frame { border-radius: 0; }
  .cta-leading-text { font-size: 14px; }
  .report-label { font-size: 20px; padding: 8px 16px; margin-bottom: 16px; }
  .analysis-summary-block h3, .detail-table-block h3 { font-size: 18px; }
  .message-card p, .job-card__reason, .analysis-list li { font-size: 14px; }
  .quiz-card .section-title { font-size: 18px; margin-bottom: 24px; }
  .hero-content p { font-size: 17px; }
  .header-badge {
    text-align: left;
    font-size: 10px;
    max-width: 120px; /* Force wrap */
    word-break: break-all;
  }
}

/* --- Exit Popup --- */
.exit-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exit-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease;
}

.exit-popup-content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.exit-popup-header {
  background: var(--accent);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.exit-popup-title {
  font-weight: 800;
  font-size: 18px;
}

.exit-popup-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exit-popup-body {
  padding: 24px;
  text-align: center;
}

.exit-popup-desc {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 24px;
}

.popup-cta {
  margin: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* --- Result Locking UI (Note Style) --- */

/* Parent state when locked */
body.is-locked {
  overflow: auto; /* Allow scrolling to the lock point */
}

/* Free content area (unlocked or top part) */
.free-content {
  position: relative;
  z-index: 10;
}

/* Content to be completely HIDDEN when locked */
.locked-content-area {
  display: block; /* Visible by default */
}

body.is-locked .locked-content-area {
  display: block !important; /* display: none を確実に上書き */
  filter: blur(10px);
  -webkit-filter: blur(10px);
  pointer-events: none;
  user-select: none;
  opacity: 0.7;
  min-height: 400px; /* 中身がない時でもエリアが確保されるように */
  transition: filter 0.3s ease;
}

/* Gradient Fade-out at the lock point */
.note-fade-out {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to top, #ffffff 20%, rgba(255, 255, 255, 0));
  z-index: 20;
  pointer-events: none;
}

body.is-locked .note-fade-out {
  display: block;
}

/* Note style Lock Section (Paywall box) */
.note-lock-section {
  display: none;
  padding: 0 24px 80px;
  background: #ffffff;
  text-align: center;
  position: relative;
  z-index: 30;
  margin-top: -20px; /* Overlap with fade-out slightly */
}

body.is-locked .note-lock-section {
  display: block;
}

.note-lock-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 32px;
  background: #f9f9f9; /* Note-like subtle gray background */
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.note-lock-header {
  margin-bottom: 24px;
}

.note-lock-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: #e50012;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.note-lock-title {
  font-size: 22px;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: 16px;
}

.note-lock-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  font-weight: 700;
  margin-bottom: 32px;
}

.note-cta-container {
  max-width: 400px;
  margin: 0 auto;
}

.note-cta-btn {
  height: 64px !important;
  font-size: 19px !important;
  background: #06C755 !important;
  box-shadow: 0 4px 0 #05a647 !important;
  width: 100%;
  font-weight: 800;
}

.note-cta-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #05a647 !important;
}

.note-footer-text {
  margin-top: 24px;
  font-size: 13px;
  font-weight: 700;
  color: #999;
}

@media (max-width: 480px) {
  .note-lock-card {
    padding: 32px 20px;
  }
  .note-lock-title {
    font-size: 18px;
  }
  .note-lock-desc {
    font-size: 14px;
  }
  .note-cta-btn {
    height: 60px !important;
    font-size: 17px !important;
  }
}
