body {
  font-family: sans-serif;
  background: #F7F8FC;
  margin: 0;
  padding: 0;
  color: #1e2329;
}

h1 {
  color: #1D245F;
}

h2 {
  color: #1D245F;
}



.screen {
  display: none;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
}

.screen.active {
  display: block;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #D9DFEA;
  position: relative;
  overflow: hidden;
}

.center {
  text-align: center;
}

h1,
h2,
h3 {
  margin-top: 0;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 16px;
  cursor: pointer;
  background: #F47A20;
  color: #fff;
  margin-top: 16px;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover {
  opacity: 0.9;
  color: #fff;
}

.top-deco {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 98%;
  pointer-events: none;
  z-index: 1;
}

.top-deco-image {
  display: block;
  width: 100%;
  height: auto;
}

.top-title-svg-wrap {
  width: 100%;
  max-width: 760px;
  margin: 70px auto -30px;
  position: relative;
  z-index: 2;
}

.top-title-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.top-arc-text {
  fill: #1D245F;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.top-arc-text-main {
  font-size: 48px;
}

.top-arc-text-sub {
  font-size: 42px;
}

.top-arc-accent {
  fill: #F47A20;
}

@media (max-width: 640px) {
  .top-title-svg-wrap {
    max-width: 100%;
    margin-bottom: 12px;
  }

}

.answer-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.answer-btn {
  width: 100%;
  border: 1px solid #C9D2E3;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
}

.answer-btn:hover {
  background: #EEF2FF;
  opacity: 1;
  color: #1D245F;
  border: 1px solid #1D245F;
}

.question-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 20px;
}

.reset-btn {
  font-size: 12px;
  padding: 6px 10px;
  border: none;
  background: #ddd;
  border-radius: 6px;
  cursor: pointer;
}

.reset-btn:hover {
  background: #ccc;
}

.progress {
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

.sub-text {
  color: #333;
  font-size: 14px;
  line-height: 1.7;
}

.time-text {
  color: #666A73;
  font-size: 14px;
  line-height: 1.7;
}

/*
.time-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px auto 10px;
  padding: 10px 24px;
  border: 3px solid #C9D2E3;
  border-radius: 999px;
  background: #fff;
  color: #1D245F;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  box-sizing: border-box;
}
*/

.time-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin: 18px auto 10px;
  padding: 10px 24px;

  border: 3px solid #C9D2E3;
  border-radius: 999px;

  background: #fff;
  color: #1D245F;

  font-weight: 700;
  font-size: 18px;
  line-height: 1;

  box-sizing: border-box;
}

@media (max-width: 640px) {

  .time-pill {
    gap: 6px;
    margin: 10px auto 6px;
    padding: 7px 14px;
    border-width: 2px;
    font-size: 13px;
  }

  .time-pill-icon {
    width: 20px;
    height: 20px;
    font-size: 18px;
  }

  .time-pill-accent {
    font-size: 1.1em;
  }

}


/*
.time-pill::before,
.time-pill::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 36px;
  height: 10px;
  transform: translateY(-50%);
  background-image:
    radial-gradient(circle, #1D245F 1.5px, transparent 1.5px);
  background-size: 8px 8px;
  background-repeat: repeat-x;
  opacity: 0.9;
}

.time-pill::before {
  right: calc(100% + 14px);
}

.time-pill::after {
  left: calc(100% + 14px);
} */

.time-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #1D245F;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.time-pill-text {
  display: inline-block;
  letter-spacing: 0.01em;
}

.time-pill-accent {
  color: #F47A20;
  font-size: 1.35em;
  font-weight: 800;
}

.divider {
  margin: 24px 0;
  border: none;
  border-top: 1px solid #eee;
}

.gauge-item {
  margin-bottom: 16px;
}

.gauge-label {
  font-size: 14px;
  margin-bottom: 6px;
}

.gauge-bar {
  width: 100%;
  height: 14px;
  background: #e5e5e5;
  border-radius: 999px;
  overflow: hidden;
}

.gauge-value {
  font-size: 13px;
  color: #333;
  margin-top: 4px;
}

.question-progress-bar {
  width: 100%;
  height: 10px;
  background: #e8f4fd;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.question-progress-fill {
  width: 0%;
  height: 100%;
  background: #1D245F;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.share-area {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.gauge-row {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.gauge-side {
  font-size: 14px;
  font-weight: bold;
}

.gauge-side.left {
  color: #1D245F;
  text-align: right;
}

.gauge-side.right {
  color: #F47A20;
  text-align: left;
}

.gauge-track {
  position: relative;
  width: 100%;
  height: 20px;
  background: #F47A20;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  background: #1D245F;
}

.gauge-center-line {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 4px;
  height: 28px;
  background: #999999;
  transform: translateX(-50%);
}

#question-text {
  font-size: 20px;
}

.race-progress {
  margin: 20px auto 0;
  max-width: 500px;
}

.race-track {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.race-track-image {
  width: 100%;
  display: block;
}

.race-car {
  position: absolute;
 /*bottom: 22.5%;*/
  bottom: 8%;
  left: 0;
  width: 110px;
  transition: transform 0.4s ease;
}


.start-btn-text {
  position: relative;
  z-index: 1;
}

.btn-flag {
  position: relative;
  z-index: 1;
  width: 30px;
  height: auto;
  margin-left: 6px;
}

#share-btn {
  background: #1D245F;
}

#retry-btn {
  background: #fff;
  border: 1px solid;
  color: #1D245F;
}

.btn-flag {
  width: 30px;
  margin-left: 6px;
}

.finish-banner-wrap {
  width: 100%;
  display: none;
  text-align: center;
}


.finish-banner {
  width: 100%;
  max-width: 90px;
  height: auto;
}



.result-description-wrap {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.result-attribute {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 5px 14px;
  border-radius: 999px;
  background: #1D245F;
  color: #1f4a78;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
}

.result-body {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
}

h3#result-type {
  color: #F47A20;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.result-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f5f7;
  color: #5c6b7a;
  font-size: 13px;
  line-height: 1;
}

.top-sub-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 6px auto 18px;
}

.top-sub-text {
  margin: 0;
  max-width: 460px;
  font-weight: bold;
}

.top-side-icon {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.start-btn-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}

.start-side-icon {
  width: 72px;
  height: auto;
  flex-shrink: 0;
}

#start-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 360px;
  min-height: 80px;
  padding: 10px 56px;
  border-radius: 999px;
  border: 4px solid #fff;
  background: linear-gradient(to bottom, #FF922E 0%, #F47A20 58%, #E76812 100%);
  box-shadow:
    0 8px 0 #B84E08,
    0 12px 24px rgba(29, 36, 95, 0.14);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  margin-top: 10px;
}

.start-btn-lines {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 28px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

.start-btn-lines.left {
  left: 22px;
}

.start-btn-lines.right {
  right: 22px;
}

.start-btn-lines span {
  display: block;
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: #FFD39E;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* 左：斜め下 / 平行 / 斜め上 */
.start-btn-lines.left span:nth-child(1) {
  transform: rotate(15deg);
  transform-origin: left center;
}

.start-btn-lines.left span:nth-child(2) {
  transform: rotate(0deg);
}

.start-btn-lines.left span:nth-child(3) {
  transform: rotate(-15deg);
  transform-origin: left center;
}

/* 右：斜め上 / 平行 / 斜め下 */
.start-btn-lines.right span:nth-child(1) {
  transform: rotate(-15deg);
  transform-origin: right center;
}

.start-btn-lines.right span:nth-child(2) {
  transform: rotate(0deg);
}

.start-btn-lines.right span:nth-child(3) {
  transform: rotate(15deg);
  transform-origin: right center;
}

.start-btn-text {
  position: relative;
  z-index: 1;
}

.result-card h2 {
  text-align: center;
  padding-top: 60px;
  color: #F47A20;
}

.result-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 20px;
}

.result-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  background: #ffffff;
  border-radius: 100%;
  box-shadow: 3px 3px 10px #dddddd;
}

.result-visual-image {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  width: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.result-hero-content {
  text-align: left;
}

.result-lead {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #1D245F;
}

.result-type-title {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 800;
  color: #1D245F;
  letter-spacing: -0.02em;
}

.result-description-wrap {
  margin-top: 0;
  display: grid;
  gap: 14px;
}

.result-attribute {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1D245F;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.result-body {
  font-size: 18px;
  line-height: 1.9;
  color: #333;
}

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

.result-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f5f7;
  color: #5c6b7a;
  font-size: 13px;
  line-height: 1;
}

@media (max-width: 768px) {
  .result-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .result-hero-content {
    text-align: center;
  }

  .result-hero-visual {
    justify-content: center;
    width: auto;
    height: auto;
    box-shadow: none;
  }

  .result-visual-image {
    max-width: 180px;
  }

  .result-lead {
    font-size: 16px;
  }

  .result-type-title {
    font-size: 38px;
    line-height: 1.1;
  }

  .result-attribute {
    margin: 0 auto;
    font-size: 16px;
  }

  .result-body {
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
  }

  .result-tags {
    justify-content: center;
  }
}

/* スマホではアイコンを少し小さく */
@media (max-width: 640px) {
  .top-sub-wrap {
    gap: 10px;
    margin-bottom: 14px;
  }

  .top-sub-text {
    max-width: 260px;
  }

  .top-side-icon {
    width: 42px;
  }

  .start-btn-wrap {
    gap: 10px;
    margin-bottom: 20px;
  }

  #start-btn {
    min-width: 0;
    width: 240px;
    min-height: 64px;
    padding: 8px 42px;
    font-size: 20px;
    white-space: nowrap;
  }

  .start-btn-lines.left {
    left: 10px;
  }

  .start-btn-lines.right {
    right: 10px;
  }

  .btn-flag {
    width: 20px;
  }

  .start-side-icon {
    width: 46px;
  }

#question-text {
  font-size: 16px;
  line-height: 1.4;
}

.answer-btn {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
}

.race-progress {
  margin-top: 8px;
  max-width: 320px;
}

}

@media (max-width: 400px) {
  .start-btn-wrap {
    gap: 8px;
  }

  #start-btn {
    min-width: 0;
    width: 220px;
    min-height: 58px;
    padding: 8px 34px;
    font-size: 18px;
    white-space: nowrap;
  }

  .start-side-icon {
    width: 38px;
  }

  .btn-flag {
    width: 18px;
  }

  .start-btn-lines.left {
    left: 10px;
  }

  .start-btn-lines.right {
    right: 10px;
  }

  .start-btn-lines {
    width: 12px;
    height: 20px;
  }

  .start-btn-lines span {
    width: 10px;
    height: 2px;
  }
}


@media (max-width: 1024px) {
  #question-screen .card {
    min-height: 550px;
  }
}


@media (max-width: 640px) {
  .screen {
    padding: 24px 16px;
  }

  .card {
    padding: 10px 20px;
  }

  #question-screen .card {
    /* min-height: 600px; */
    height: 500px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  #question-text {
    font-size: 16px;
  }

  .race-progress {
    max-width: 350px;
  }

  .race-car {
    /*bottom: 24%;*/
    width: 100px;
  }

  .gauge-row {
    grid-template-columns: 45px 1fr 45px;
  }
}
