* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f8f8;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #143836;
}

.app {
  min-height: 100vh;
  padding: 18px 22px 28px;
}

.hidden {
  display: none !important;
}

.site-header {
  width: 100%;
  max-width: 1480px;
  height: 72px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  width: 250px;
  max-width: 48vw;
  height: auto;
}

.site-copy {
  margin: 0;
  color: #008b8b;
  font-size: 17px;
  font-weight: 700;
}

.start-screen {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  display: block;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

.start-button {
  width: 100%;
  padding: 24px;
  margin-top: 20px;
  border: none;
  border-radius: 18px;
  background: #008b8b;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.quiz-card {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(15, 70, 70, .08);
  overflow: hidden;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  min-height: 680px;
}

.quiz-content {
  padding: 80px 56px 56px;
}

.question-head {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 48px;
}

.question-badge {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, #008b8b, #006f78);
  color: white;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
}

#question-title {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.35;
  letter-spacing: .02em;
}

.question-help {
  margin: 0;
  color: #4d5d68;
  font-size: 18px;
  line-height: 1.7;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.answer-button {
  min-height: 112px;
  padding: 18px;
  border-radius: 10px;
  border: 1.5px solid #d9e9e9;
  background: white;
  color: #123b3a;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.answer-button::before {
  content: "♙";
  color: #008b8b;
  font-size: 30px;
  font-weight: 400;
}

.answer-button:hover {
  border-color: #008b8b;
  background: #f0fbfa;
  transform: translateY(-2px);
}

.progress-dots {
  margin: 72px auto 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  position: relative;
}

.progress-dots::before {
  content: "";
  position: absolute;
  width: min(420px, 80%);
  height: 2px;
  background: #d8dddd;
  z-index: 0;
}

.progress-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #cfd4d4;
  z-index: 1;
}

.progress-dot.active {
  background: #008b8b;
}

.back-button {
  width: 300px;
  min-height: 64px;
  border-radius: 8px;
  border: 1.5px solid #008b8b;
  background: white;
  color: #008b8b;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
}

.back-button:hover {
  background: #f0fbfa;
}

.visual-wrap {
  display: block;
  width: 100%;
  height: 100%;
}

.question-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* result */
.card {
  background: white;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 12px 30px rgba(0,0,0,.1);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.result-title {
  color: #008b8b;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin: 0 0 28px;
}

.salary-box {
  text-align: center;
  margin: 0 auto 26px;
  padding: 28px 18px;
  background: #fff7f8;
  border-radius: 20px;
}

.salary-label {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 8px;
}

.salary {
  font-size: 52px;
  font-weight: bold;
  color: #ef7d8d;
  line-height: 1.2;
}

.comment {
  text-align: center;
  font-size: 20px;
  line-height: 1.8;
  margin: 0 0 26px;
}

.summary-box {
  border: 2px solid #e4f0ed;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 28px;
}

.summary-box p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0;
  font-size: 16px;
}

.lead-box {
  background: #f3f8f7;
  padding: 28px;
  border-radius: 20px;
  margin-top: 24px;
}

.lead-box h2 {
  color: #008b8b;
  font-size: 24px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.line-button {
  display: block;
  width: 100%;
  text-align: center;
  background: #06C755;
  color: white;
  text-decoration: none;
  padding: 20px;
  border-radius: 16px;
  font-size: 24px;
  font-weight: bold;
  margin-top: 24px;
}

.restart-button {
  width: 100%;
  padding: 16px;
  margin-top: 14px;
  border: none;
  border-radius: 14px;
  background: white;
  color: #008b8b;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

/* tablet: 縦長レイアウト */
@media (max-width: 1199px) {
  .app {
    padding: 16px;
  }

  .site-header {
    height: 64px;
    margin-bottom: 10px;
  }

  .site-logo {
    width: 220px;
  }

  .quiz-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

 .visual-wrap {
  order: -1;
  height: auto;
}

.question-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

  .quiz-content {
    padding: 42px 34px 38px;
  }

  .question-head {
    margin-bottom: 34px;
  }

  .answer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .answer-button {
    min-height: 82px;
  }

  .progress-dots {
    margin: 34px auto 28px;
  }

  .back-button {
    width: 100%;
  }
}

/* mobile */
@media (max-width: 600px) {
  .app {
    padding: 0;
  }

  .site-header {
    padding: 0 18px;
    margin: 0;
    height: 78px;
  }

  .site-logo {
    width: 190px;
  }

  .site-copy {
    font-size: 12px;
  }

  .quiz-card {
    border-radius: 0;
  }

.visual-wrap {
  height: auto;
}

.question-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

  .quiz-content {
    padding: 34px 22px 28px;
  }

  .question-head {
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .question-badge {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    font-size: 30px;
  }

  #question-title {
    font-size: 25px;
  }

  .question-help {
    font-size: 14px;
  }

  .answer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .answer-button {
    min-height: 64px;
    padding: 12px 10px;
    font-size: 15px;
    gap: 8px;
  }

  .answer-button::before {
    font-size: 22px;
  }

  .progress-dots {
    gap: 28px;
    margin: 28px auto 24px;
  }

  .progress-dots::before {
    width: 72%;
  }

  .back-button {
    font-size: 16px;
    min-height: 58px;
  }

  .card {
    margin: 0;
    border-radius: 0;
    padding: 28px 18px;
  }
}
