:root {
  --gradient-primary: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 60%, #60A5FA 100%);
  --gradient-accent: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
  --gradient-bg: linear-gradient(180deg, #FFFFFF 0%, #EFF6FF 100%);

  --color-primary: #1D4ED8;
  --color-primary-mid: #3B82F6;
  --color-primary-soft: #60A5FA;
  --color-primary-pale: #DBEAFE;

  --color-text: #0F172A;
  --color-text-soft: #475569;
  --color-bg: #FFFFFF;
  --color-card: #FFFFFF;

  --shadow-card: 0 8px 24px rgba(29, 78, 216, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(29, 78, 216, 0.16);
  --shadow-cta: 0 8px 20px rgba(29, 78, 216, 0.3);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  font-weight: 400;
  color: var(--color-text);
  background: var(--gradient-bg);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Header ===== */
.site-header {
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 16px;
}
.logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 56px 24px 80px;
  overflow: hidden;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 1;
  animation: float 14s ease-in-out infinite;
}
.blob1 {
  width: 320px;
  height: 320px;
  background: var(--color-primary-soft);
  opacity: 0.35;
  top: -40px;
  left: -80px;
}
.blob2 {
  width: 280px;
  height: 280px;
  background: var(--color-primary-pale);
  opacity: 0.85;
  top: 120px;
  right: -60px;
  animation-delay: -4s;
}
.blob3 {
  width: 360px;
  height: 360px;
  background: var(--color-primary-mid);
  opacity: 0.22;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -8s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -32px) scale(1.05); }
}

.badge-30sec {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--color-primary);
  font-weight: 900;
  font-size: 13px;
  padding: 8px 18px;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  transform: rotate(-2.5deg);
  box-shadow: 4px 4px 0 var(--color-primary-pale);
  animation: badgeWobble 4s ease-in-out infinite;
}
.badge-30sec::before,
.badge-30sec::after {
  content: '';
  width: 4px;
  height: 14px;
  background: var(--color-primary);
  border-radius: 2px;
  transform: skewX(-15deg);
}
@keyframes badgeWobble {
  0%, 100% { transform: rotate(-2.5deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-3px); }
}

.hero-title {
  font-size: clamp(26px, 6vw, 42px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.title-line {
  display: block;
}
.title-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 4px;
}

.hero-lead {
  font-size: 15px;
  color: var(--color-text-soft);
  margin-bottom: 24px;
  line-height: 1.9;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto 32px;
  flex-wrap: nowrap;
}
.visual-tiles {
  display: grid;
  grid-template-columns: repeat(2, 140px);
  gap: 6px;
  flex-shrink: 0;
}
.visual-tile {
  aspect-ratio: 1;
  width: 140px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  font-size: 72px;
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 4px rgba(15, 23, 42, 0.2);
  box-shadow: var(--shadow-card);
  animation: tilePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.tile-1 { background: linear-gradient(135deg, #60A5FA, #2563EB); animation-delay: 0.05s; }
.tile-2 { background: linear-gradient(135deg, #2563EB, #1E40AF); animation-delay: 0.12s; }
.tile-3 { background: linear-gradient(135deg, #3B82F6, #1D4ED8); animation-delay: 0.20s; }
.tile-4 { background: linear-gradient(135deg, #1D4ED8, #1E3A8A); animation-delay: 0.28s; }

.visual-illustration {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  animation: illustFloat 5s ease-in-out infinite;
  margin-left: -48px;
  margin-right: -24px;
  flex-shrink: 1;
}
.character-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}
@keyframes illustFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes tilePop {
  0% { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ===== CTA Button ===== */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 44px;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.02em;
  min-width: 280px;
  font-family: inherit;
}
.cta-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-cta);
}
.cta-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.45);
}
.cta-arrow {
  font-size: 1.1em;
  transition: transform 0.2s ease;
}
.cta-button:hover .cta-arrow {
  transform: translateX(4px);
}
.cta-white {
  background: white;
  color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.cta-white:hover {
  transform: translateY(-2px) scale(1.02);
}
.cta-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid rgba(59, 130, 246, 0.3);
  margin-top: 12px;
}
.cta-secondary:hover {
  background: rgba(59, 130, 246, 0.05);
}
.cta-block {
  display: flex;
  width: 100%;
}

.area-text {
  margin-top: 28px;
  font-size: 14px;
  color: var(--color-text-soft);
  line-height: 2;
}
.area-pin {
  color: var(--color-primary-mid);
  margin-right: 6px;
  font-size: 11px;
  vertical-align: middle;
}

/* ===== Features ===== */
.features {
  padding: 80px 24px;
  background: white;
}
.section-title {
  text-align: center;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 900;
  margin-bottom: 48px;
}
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.feature-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(59, 130, 246, 0.05);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-weight: 900;
  color: white;
}
.feature-icon svg {
  width: 32px;
  height: 32px;
}
.icon-money { background: linear-gradient(135deg, #60A5FA, #1D4ED8); font-size: 30px; }
.icon-detail { background: linear-gradient(135deg, #3B82F6, #1E40AF); }
.icon-diff { background: linear-gradient(135deg, #2563EB, #1D4ED8); }
.feature-card h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--color-text-soft);
  font-size: 14px;
}

/* ===== Bottom CTA ===== */
.cta-section {
  padding: 80px 24px;
  text-align: center;
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-section h2 {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 900;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.cta-section p {
  margin-bottom: 32px;
  opacity: 0.92;
  position: relative;
  z-index: 1;
}
.cta-section .cta-button {
  position: relative;
  z-index: 1;
}

/* ===== Footer ===== */
footer {
  padding: 32px 24px;
  text-align: center;
  background: #1E293B;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

/* ===== Diagnosis page ===== */
.diagnosis-body {
  background: var(--gradient-bg);
}
.diagnosis-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 0 4px;
  position: relative;
}
.stepper::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: rgba(59, 130, 246, 0.15);
  z-index: 0;
  border-radius: 2px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  flex: 1;
}
.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: white;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  font-weight: 900;
  font-size: 14px;
  color: rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
}
.step label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-soft);
}
.step.active .step-num {
  background: var(--color-primary-mid);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
  transform: scale(1.1);
}
.step.active label {
  color: var(--color-primary);
}
.step.completed .step-num {
  background: var(--color-primary);
  color: white;
  border-color: transparent;
}

.question {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  box-shadow: var(--shadow-card);
  animation: fadeSlideIn 0.4s ease;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.question-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  color: var(--color-primary);
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.question-title {
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 32px;
}
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option-btn {
  background: white;
  border: 2px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-md);
  padding: 18px 56px 18px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: inherit;
  position: relative;
}
.option-btn::after {
  content: '→';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.2s ease;
  color: var(--color-primary);
  font-weight: 900;
}
.option-btn:hover {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 255, 0.05));
  transform: translateX(4px);
}
.option-btn:hover::after {
  opacity: 1;
  right: 18px;
}

/* ===== Result ===== */
.result {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  animation: fadeSlideIn 0.4s ease;
}
.result-tag {
  display: inline-block;
  background: var(--gradient-accent);
  color: white;
  font-weight: 900;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  font-size: 14px;
}
.result-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-soft);
  margin-bottom: 2px;
}
.result-sub {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-bottom: 24px;
}
.result-intro {
  font-size: 14px;
  color: var(--color-text-soft);
  margin-bottom: 12px;
}
.salary-card {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(29, 78, 216, 0.08));
  border: 2px solid var(--color-primary-pale);
  border-radius: var(--radius-md);
  padding: 18px 24px 22px;
  margin-bottom: 20px;
}
.salary-label {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--color-text-soft);
  margin-bottom: 2px;
  letter-spacing: 0.04em;
}
.salary-display {
  font-size: clamp(40px, 11vw, 60px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.breakdown {
  background: #F8FAFC;
  border-radius: var(--radius-md);
  padding: 8px 20px;
  margin-bottom: 16px;
  text-align: left;
  border: 1px solid rgba(29, 78, 216, 0.06);
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(29, 78, 216, 0.14);
}
.breakdown-row:last-child {
  border-bottom: none;
}
.breakdown-row dt {
  font-size: 13px;
  color: var(--color-text-soft);
  font-weight: 700;
}
.breakdown-row dd {
  font-size: 15px;
  color: var(--color-text);
  font-weight: 900;
}
.breakdown-row dd.accent {
  color: var(--color-primary);
}
.result-benefits {
  background: var(--color-primary-pale);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  line-height: 1.7;
}
.salary-amount {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.salary-unit {
  font-size: 0.42em;
  color: var(--color-text);
  margin-left: 4px;
  font-weight: 900;
}
.result-note {
  font-size: 12px;
  color: var(--color-text-soft);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ===== Lifebase (post-result section) ===== */
.lifebase {
  margin-top: 40px;
  text-align: center;
  animation: fadeSlideIn 0.5s ease;
}
.lifebase-photo {
  margin: 0 auto 24px;
  max-width: 480px;
}
.lifebase-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.lifebase-title,
.lifebase-subtitle {
  color: var(--color-primary);
  font-size: clamp(18px, 4.2vw, 22px);
  font-weight: 900;
  margin: 24px 0 12px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
  padding-bottom: 4px;
}
.lifebase-body {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-soft);
  margin-bottom: 8px;
}
.arrows {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 32px 0 8px;
}
.arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 18px solid var(--color-primary-soft);
  animation: arrowBob 1.4s ease-in-out infinite;
}
.arrow:nth-child(2) {
  animation-delay: 0.15s;
  border-top-color: var(--color-primary-mid);
}
.arrow:nth-child(3) {
  animation-delay: 0.3s;
  border-top-color: var(--color-primary);
}
@keyframes arrowBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== Contact form ===== */
.contact-form {
  margin-top: 24px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  animation: fadeSlideIn 0.5s ease;
}
.contact-title {
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--color-text);
  background: var(--color-primary-pale);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-soft);
}
.form-row input,
.form-row select {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 2px solid var(--color-primary-pale);
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  color: var(--color-text);
  transition: border-color 0.2s ease, background 0.2s ease;
  appearance: none;
}
.form-row select {
  background-image: linear-gradient(45deg, transparent 50%, var(--color-primary) 50%),
                    linear-gradient(135deg, var(--color-primary) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
}
.form-row input::placeholder {
  color: #94A3B8;
}
.form-note {
  font-size: 12px;
  color: var(--color-text-soft);
  text-align: center;
  margin: 4px 0 8px;
}

/* ===== Thanks page ===== */
.thanks-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  text-align: center;
}
.thanks-title {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 900;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}
.thanks-body {
  font-size: 16px;
  line-height: 2;
  color: var(--color-text-soft);
}
@media (max-width: 480px) {
  .thanks-page { padding: 64px 20px 60px; }
  .thanks-body { font-size: 14px; }
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .logo-img { height: 40px; }
  .hero-visual { gap: 0; }
  .visual-tiles { grid-template-columns: repeat(2, 100px); gap: 5px; }
  .visual-tile { width: 100px; font-size: 52px; }
  .visual-illustration { margin-left: -32px; margin-right: -16px; }
  .character-img { max-width: 300px; }
  .hero { padding: 40px 20px 64px; }
  .cta-button {
    min-width: 100%;
    padding: 16px 24px;
    font-size: 16px;
  }
  .stepper label { font-size: 10px; }
  .question { padding: 32px 20px; }
}
