:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-soft: #EFF6FF;

  --amber: #F59E0B;
  --amber-dark: #D97706;
  --amber-soft: #FFF7ED;

  --background: #F8FAFC;
  --surface: #FFFFFF;

  --text: #334155;
  --text-dark: #1E293B;
  --muted: #64748B;
  --light: #94A3B8;

  --border: #E2E8F0;

  --green: #10B981;

  --shadow:
    0 14px 35px rgba(30, 41, 59, 0.07);

  --radius-large: 24px;
  --radius-medium: 16px;
  --radius-small: 11px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    "Noto Sans JP",
    sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

.container {
  width: min(calc(100% - 28px), 900px);
  margin: 0 auto;
}

.screen {
  min-height: 100vh;
}


/* =============================
   Start
============================= */

.hero {
  display: flex;
  min-height: calc(100vh - 60px);
  align-items: center;
  padding: 60px 0;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(245, 158, 11, 0.16),
      transparent 30%
    ),
    radial-gradient(
      circle at 10% 85%,
      rgba(37, 99, 235, 0.13),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      #FFFFFF,
      #F8FAFC
    );
}

.hero-inner {
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--amber-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.eyebrow.blue {
  color: var(--blue);
}

.hero h1 {
  margin: 0;
  color: var(--text-dark);
  font-size: clamp(2.2rem, 8vw, 4.3rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.mobile-break {
  display: none;
}

.hero-lead {
  max-width: 650px;
  margin: 25px auto 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-points {
  display: flex;
  max-width: 600px;
  margin: 40px auto;
  justify-content: center;
  gap: 14px;
}

.hero-point {
  width: 170px;
  padding: 17px 10px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,0.8);
}

.hero-point strong {
  display: block;
  color: var(--blue);
  font-size: 1.3rem;
}

.hero-point span {
  color: var(--muted);
  font-size: 0.74rem;
}

.start-note {
  max-width: 550px;
  margin: 18px auto 0;
  color: var(--light);
  font-size: 0.74rem;
}


/* =============================
   Buttons
============================= */

.primary-button,
.secondary-button {
  min-height: 54px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.primary-button {
  border: none;
  background: var(--blue);
  color: white;
  box-shadow:
    0 10px 25px rgba(37,99,235,0.2);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--blue-dark);
}

.primary-button.large {
  min-width: 280px;
  padding: 0 35px;
}

.secondary-button {
  padding: 0 24px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
}

.secondary-button:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}


/* =============================
   Question Header
============================= */

.app-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: white;
}

.header-inner {
  display: flex;
  justify-content: space-between;
}

.header-small {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
}

.header-inner strong {
  color: var(--blue);
}


/* =============================
   Question
============================= */

.question-container {
  padding: 38px 0 80px;
}

.progress-section {
  margin-bottom: 25px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.78rem;
}

.progress-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #E2E8F0;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--blue),
      #60A5FA
    );
  transition: width 0.3s ease;
}

.question-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 45px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: white;
  box-shadow: var(--shadow);
}

.question-number {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.question-card h2 {
  margin: 12px 0 10px;
  color: var(--text-dark);
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1.65;
}

.question-help {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 0.82rem;
}

.answer-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-button {
  display: grid;
  grid-template-columns: 42px 1fr;
  min-height: 58px;
  padding: 9px 18px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: white;
  color: var(--text);
  text-align: left;
}

.answer-button:hover {
  border-color: #93C5FD;
  background: var(--blue-soft);
}

.answer-button.selected {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 700;
}

.answer-score {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #F1F5F9;
  font-size: 0.75rem;
  font-weight: 800;
}

.selected .answer-score {
  background: var(--blue);
  color: white;
}

.question-footer {
  margin-top: 28px;
}


/* =============================
   Result Hero
============================= */

.result-hero {
  padding: 65px 0;
  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(245,158,11,0.18),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #EFF6FF,
      #FFFFFF
    );
  text-align: center;
}

.result-label {
  margin: 15px 0 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.result-hero h1 {
  margin: 0;
  color: var(--text-dark);
  font-size: clamp(2rem, 7vw, 3.4rem);
}

.result-description {
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--muted);
}


/* =============================
   Result
============================= */

.result-content {
  padding: 55px 0 80px;
}

.result-section {
  margin-bottom: 55px;
}

.section-heading {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.section-number {
  display: flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.73rem;
  font-weight: 800;
}

.section-heading h2 {
  margin: 0 0 4px;
  color: var(--text-dark);
  font-size: 1.5rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}


/* =============================
   Strengths
============================= */

.score-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: white;
  box-shadow: var(--shadow);
}

.score-row {
  display: grid;
  grid-template-columns: 170px 1fr 55px;
  gap: 17px;
  align-items: center;
  margin-bottom: 21px;
}

.score-row:last-child {
  margin-bottom: 0;
}

.score-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.score-bar {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #E2E8F0;
}

.score-bar-fill {
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--blue),
      #60A5FA
    );
}

.score-value {
  color: var(--blue);
  font-weight: 800;
  text-align: right;
}


/* =============================
   Jobs
============================= */

.job-ranking {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  box-shadow:
    0 8px 24px rgba(30,41,59,0.045);
}

.job-summary {
  padding: 24px;
}

.job-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.job-rank {
  color: var(--amber-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.job-match {
  color: var(--blue);
  font-size: 1.45rem;
  font-weight: 800;
}

.job-card h3 {
  margin: 8px 0 6px;
  color: var(--text-dark);
  font-size: 1.25rem;
}

.job-reason {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.job-toggle {
  width: 100%;
  min-height: 48px;
  border: none;
  border-top: 1px solid var(--border);
  background: #FAFCFF;
  color: var(--blue);
  font-weight: 700;
}

.job-detail {
  padding: 24px;
  border-top: 1px solid var(--border);
  background: #FCFDFE;
}

.detail-block {
  margin-bottom: 22px;
}

.detail-block:last-child {
  margin-bottom: 0;
}

.detail-block h4 {
  margin: 0 0 7px;
  font-size: 0.9rem;
}

.detail-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.7rem;
  font-weight: 600;
}


/* =============================
   Work styles
============================= */

.work-style-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.work-style-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
}

.work-style-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.work-style-name {
  font-weight: 700;
}

.work-style-score {
  color: var(--amber-dark);
  font-weight: 800;
}

.work-style-card .score-bar-fill {
  background:
    linear-gradient(
      90deg,
      var(--amber),
      #FBBF24
    );
}


/* =============================
   Notice / reset
============================= */

.notice-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--amber-soft);
}

.notice-card strong {
  color: #92400E;
}

.notice-card p {
  margin: 6px 0 0;
  color: #92400E;
  font-size: 0.82rem;
}

.reset-area {
  padding-top: 35px;
  text-align: center;
}

.reset-button {
  min-width: 240px;
}


/* =============================
   Footer
============================= */

.footer {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  color: var(--light);
  font-size: 0.72rem;
  text-align: center;
}


/* =============================
   Mobile
============================= */

@media (max-width: 680px) {

  .mobile-break {
    display: block;
  }

  .hero-points {
    gap: 7px;
  }

  .hero-point {
    padding: 14px 5px;
  }

  .hero-point strong {
    font-size: 1.05rem;
  }

  .question-card {
    padding: 28px 19px;
  }

  .answer-button {
    grid-template-columns: 36px 1fr;
    min-height: 62px;
    padding: 9px 13px;
  }

  .score-card {
    padding: 23px 18px;
  }

  .score-row {
    grid-template-columns: 1fr 48px;
    gap: 6px 10px;
  }

  .score-label {
    grid-column: 1;
  }

  .score-value {
    grid-column: 2;
  }

  .score-bar {
    grid-column: 1 / -1;
  }

  .work-style-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 11px;
  }

  .section-heading h2 {
    font-size: 1.3rem;
  }

}