@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

/* cm-simulator */
.cm-simulator {
  --cm-blue: #0256BE;
  --cm-border: #009CE5;
  --cm-bg: #F0FBFF;
  --cm-text: #003c7c;
  box-sizing: border-box;
  color: var(--cm-text);
}

.cm-simulator *,
.cm-simulator *::before,
.cm-simulator *::after {
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
}

/* cm-simulator__container-lead */
.cm-simulator__container-lead {
  padding: 50px 0 30px;
  text-align: center;
}

/* .cm-simulator__panel */
.cm-simulator__panel {
  overflow: hidden;
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid var(--cm-border);
  border-radius: 20px;
  background: #fff;
}
.cm-simulator__panel-heading {
  margin: 0;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--cm-border);
  background: #D6F4FF;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
}
.cm-simulator__panel-body {
  padding: 29px 16px 62px;
}

/* cm-simulator__step */
.cm-simulator__step {
  position: relative;
  margin: 0 0 53px;
  padding: 0 0 0 45px;
}

.cm-simulator__step::before {
  content: "";
  position: absolute;
  top: 48px;
  left: 12px;
  width: 5px;
  height: 95%;
  border-radius: 100px;
  background: var(--cm-blue);
}

/* cm-simulator__legend */
.cm-simulator__legend {
  display: block;
  min-height: 40px;
  margin: 0 0 10px;
  padding: 2px 0 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
}
.cm-simulator__number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 32px;
  height: 32px;
  margin: -8px 16px 0 -46px;
  border-radius: 50%;
  background: var(--cm-blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

/* cm-simulator__choices */
.cm-simulator__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 97%;
  gap: 20px 14px;
}
.cm-simulator__choices--3 {
  grid-template-columns: 1fr;
  width: 100%;
  gap: 24px;
}
.cm-simulator__choices--2,
.cm-simulator__choices--grade {
  grid-template-columns: 1fr;
  width: 100%;
  gap: 20px;
}
.cm-simulator__option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}
.cm-simulator__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.cm-simulator__option > span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 60px;
  width: 100%;
  padding: 14px;
  border: 1px solid #C3C8CE;
  border-radius: 20px;
  background: #fff;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.cm-simulator__option > span sup {
  top: auto;
  bottom: 0;
  font-size: 0.9em;
}
.cm-simulator__option > span::before {
  content: "";
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid #bfccd9;
  border-radius: 50%;
  background: #fff;
}
.cm-simulator__option input:checked + span {
  border: 2px solid var(--cm-blue);
  background: var(--cm-bg);
}
.cm-simulator__option input:checked + span::before {
  border: 1px solid var(--cm-blue);
  background: var(--cm-blue);
  box-shadow: inset 0 0 0 4px #fff;
}
.cm-simulator__option input:focus-visible + span {
  outline: 2px solid #ffb547;
  outline-offset: 2px;
}
.cm-simulator__option:hover span { border-color: var(--cm-blue); }
.cm-simulator__driver-note {
  margin: 8px 0 0;
  color: #000;
  font-size: 0.75rem;
  line-height: 1.6;
}

/* cm-simulator__result */
.cm-simulator__result {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 83px 15px 30px;
  border-radius: 0;
  background: var(--cm-bg);
}
.cm-simulator__result::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -1px;
  left: 0;
  width: 100%;
  height: 40px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.cm-simulator__result-title {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
}
.cm-simulator__result-card {
  position: relative;
  z-index: 1;
  max-width: 830px;
  margin: 0 auto;
  padding: 17px 17px 32px;
  border-radius: 20px;
  background: #fff;
}
.cm-simulator__results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}
.cm-simulator__result-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 16px 32px;
  border: 0;
  border-radius: 20px;
  background: #F5F5F5;
  text-align: center;
}
.cm-simulator__result-label {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}
.cm-simulator__result-label span {
  display: block;
  font-size: .8em;
}
.cm-simulator__price {
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--cm-text);
  font-size: 2.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow-wrap: anywhere;
  line-height: 1;
}
.cm-simulator__price small {
  margin-left: 5px;
  font-size: .6em;
  font-weight: 500;
}
.cm-simulator__status {
  min-height: 0;
  margin: 0;
  color: #526b82;
  font-size: 0.8125rem;
}
.cm-simulator__status:not(:empty) { margin-top: 18px; }
.cm-simulator__status[data-state="error"] { color: #9f341f; }
.cm-simulator__note {
  margin: 24px 0 0;
  font-size: 0.875rem;
  line-height: 1.8;
}

.cm-simulator__note a {
  text-decoration: underline;
}

/* CTA */
.cm-simulator_cta {
  background: #E5EFFA;
  padding: 40px 0;
}
.cm-simulator_cta-list {
  gap: 20px;
}

/* cm-details */
.cm-details {
  position: relative;
  background: var(--cm-bg);
  padding: 50px 0px;
}
.cm-details__lead.cm-details::before {
  content: "";
  background: url(../img/cm-details_bg-circle.png) no-repeat;
  width: 244px;
  height: 94px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%);
  background-size: contain;
  z-index: 0;
}
.cm-details .container {
  position: relative;
  z-index: 1;
}
.cm-details.cm-details__lead {
  padding-bottom: 0;
}
.cm-details .container.cm-details__lead-benefits ul {
  margin-top: 22px;
}
.cm-details .container.cm-details__lead-benefits ul li + li {
  margin-top: 0.5em;
}
.cm-details .container.cm-details__lead-benefits ul li span {
  font-weight: 700;
  display: block;
}
.cm-details .container.cm-details__lead-recommend {
  margin-bottom: 35px;
}
.cm-details__table-scroll,
.cm-details__vehicle-viewport {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.cm-details__table-frame  {
  width: 100%;
  overflow: hidden;
  border: 1px solid #97B2BC;
  border-radius: 20px;
  background: #fff;
  margin: 30px 0 0;
  min-width: 937px;
}
.cm-details__table  {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.cm-details__table th {
    border-bottom: 1px solid #97B2BC;
    padding: 20px 22px;
    vertical-align: middle;
    line-height: 1.3;
    white-space: nowrap;
}
.cm-details__table td {
    border-bottom: 1px solid #97B2BC;
    padding: 20px;
    vertical-align: middle;
}
.cm-details__table td span {
  display: block;
  /* font-size: 0.875rem; */
  font-size: 1rem;
}
.cm-details__table tr:last-child > *  {
    border-bottom: 0;
}
.cm-details__table col.cm-details__col-label {
  width: 21%;
}
.cm-details__table--terms col:nth-child(2) {
  width: 79%;
}
.cm-details__table--plans col:nth-child(2),
.cm-details__table--plans col:nth-child(3) {
  width: 39.5%;
}
.cm-details__table th[scope="row"],
.cm-details__table thead tr:not(.cm-details__section-row) > th {
  background: var(--cm-blue);
  color: #fff;
  text-align: left;
  font-weight: 700;
}
.cm-details__table--terms th[scope="row"] {
  white-space: nowrap;
}
.cm-details__table--terms td {
  text-align: left;
}
.cm-details__table td p {
  margin: 0;
}
.cm-details__table td p + p {
  margin-top: 2px;
}
.cm-details__table--plans td {
  border-left: 1px solid #97B2BC;
  text-align: center;
}
.cm-details__table .cm-details__section-row {
  border-top: 1px solid #97B2BC;
  border-bottom: 1px solid #97B2BC;
}
.cm-details__table .cm-details__section-row th {
  padding: 21px 24px;
  background: #F5F5F5;
  text-align: left;
  color: var(--cm-text);
  font-weight: 700;
}
.cm-details__table.cm-details__table--terms .cm-details__section-row {
  border-top: none;
}

/* cm-details__vehicle */
.cm-details__vehicle  {
    margin-top: 50px;
}
.cm-details__heading  {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    font-size: 1.3125rem;
    font-weight: 700;
    color: var(--cm-blue);
}
.cm-details__heading::before  {
    content: "";
    width: 4px;
    height: 25px;
    border-radius: 5px;
    background: #009ce5;
}
.cm-details__description  {
    margin: 0 0 20px;
    font-size: 0.75rem;
    overflow-wrap: anywhere;
}
.cm-details__vehicle-scroll  {
    width: 100%;
    overflow: hidden;
    border: 1px solid #97B2BC;
    border-radius: 20px;
    background: #fff;
    margin: 30px 0 0;
    min-width: 937px;
}
.cm-details__vehicle-table  {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.cm-details__vehicle-table th, .cm-details__vehicle-table td  {
    padding: 24px 10px;
    border-right: 1px solid #97B2BC;
    text-align: center;
    vertical-align: middle;
}
.cm-details__vehicle-table th:last-child, .cm-details__vehicle-table td:last-child  {
    border-right: 0;
}
.cm-details__vehicle-table th  {
    background: var(--cm-blue);
    color: #fff;
    font-weight: 700;
}
/* .cm-details__vehicle-table td  {
    font-weight: 700;
} */
.cm-details__vehicle-table th:nth-child(3)  {
    width: 17%;
}
.cm-details__vehicle-table th:last-child  {
    width: 16%;
}
.cm-details__footnote  {
    margin: 26px 0 0;
}

@media screen and (width <= 767px) {
  .pc {
    display: none;
  }
  .sp {
    display: block;
  }
  .cm-simulator__choices .cm-simulator__option > span {
    line-height: 1;
    gap: 12px;
    padding: 14px 20px;
    text-align: left;
  }

  .cm-simulator_cta-list {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 89%;
  }

  .cm-simulator_cta-list li {
    width: 100%;
  }

  .cm-simulator_cta-list .button-conversion {
    justify-content: center;
    display: flex;
  }

  .cm-details__table-scroll,
  .cm-details__vehicle-viewport {
    display: flex;
    width: calc(50% + 50vw);
    max-width: none;
  }

  .cm-details__table-frame,
  .cm-details__vehicle-scroll {
    flex-shrink: 0;
  }

  .cm-details__table-scroll::after,
  .cm-details__vehicle-viewport::after {
    content: "";
    flex: 0 0 24px;
  }
}


@media screen and (width >= 768px) {
  .pc {
    display: block;
  }
  .sp {
    display: none;
  }

  /* cm-simulator__container-lead */
  .cm-simulator__container-lead {
    padding: 65px 0 58px;
  }

  /* .cm-simulator__panel */
  .cm-simulator__panel {
    margin: 0 0 85px;
  }
  .cm-simulator__panel-heading {
    padding: 14px 0 11px;
    font-size: 1.5rem;
  }
  .cm-simulator__panel-body {
    padding: 60px 100px;
  }

  /* cm-simulator__step */
  .cm-simulator__step {
    margin: 0 0 42px;
    padding: 0 0 0 70px;
  }

  .cm-simulator__step::before {
    top: 54px;
    left: 17px;
    height: 70%;
  }

  .cm-simulator__step:nth-child(1)::before {
    height: 80%;
  }

  /* cm-simulator__legend */
  .cm-simulator__legend {
    margin: 0 0 20px;
    padding: 0 0 0 7px;
  }
  .cm-simulator__number {
    width: 40px;
    height: 40px;
    margin: 0 37px 0 -77px;
    font-size: 1rem;
  }

  /* cm-simulator__choices */
  .cm-simulator__choices {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 24px;
  }
  .cm-simulator__choices--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cm-simulator__choices--2,
  .cm-simulator__choices--grade {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cm-simulator__option > span {
    min-height: 90px;
    padding: 14px 24px;
  }
  .cm-simulator__option input:focus-visible + span {
    outline: 3px solid #ffb547;
    outline-offset: 3px;
  }
  .cm-simulator__driver-note {
    margin: 18px 0 0;
    font-size: 0.625rem;
  }

  /* cm-simulator__result */
  .cm-simulator__result {
    padding: 115px 60px 58px;
  }
  .cm-simulator__result::before {
    height: 70px;
  }
  .cm-simulator__result-title {
    margin: 0 0 35px;
    font-size: 1.875rem;
  }
  .cm-simulator__result-card {
    padding: 42px 42px 32px;
  }
  .cm-simulator__results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .cm-simulator__result-item {
    padding: 32px 56px 34px;
  }
  .cm-simulator__result-label {
    margin: 0 0 32px;
    font-size: 1.25rem;
  }
  .cm-simulator__price {
    padding: 32px 0 0;
    font-size: 3.125rem;
  }
  .cm-simulator__note {
    margin: 32px 0 0;
    font-size: 1rem;
  }

  /* CTA */
  .cm-simulator_cta-list {
    gap: 30px;
  }

  /* cm-details */
  .cm-details {
    padding: 75px 80px 125px;
  }
  .cm-details__lead.cm-details::before {
    width: 488px;
    height: 188px;
    transform: translate(-97%);
  }
  .cm-details .container.cm-details__lead-recommend {
    margin-bottom: 70px;
  }
  .cm-details__table--terms th[scope="row"] {
    white-space: normal;
  }
  .cm-details__table th {
      padding: 24px 28px;
      white-space: normal;
  }
  .cm-details__table td {
      padding: 24px 25px;
  }
  .cm-details__table .cm-details__section-row th {
    text-align: center;
    padding: 28px;
  }
  .cm-details__table-frame {
    min-width: inherit;
  }

  /* cm-details__vehicle */
  .cm-details__vehicle  {
      margin-top: 70px;
  }
  .cm-details__vehicle-scroll {
    margin: 30px 0 0;
    min-width: inherit;
  }
  .cm-details__footnote  {
      margin: 34px 0 0;
  }
}

@media screen and (width <= 375px) {
  .cm-simulator__step:nth-child(2) .cm-simulator__choices .cm-simulator__option > span {
    padding: 12px 13px;
  }
}

/* 横スクロールのヒント画像 */
.cm-details__scroll-hint {
  position: relative;
}

/* ヒント画像 */
.cm-details__scroll-hint-image {
  display: none;
}

@media screen and (max-width: 767px) {
  .cm-details__scroll-hint-image {
    display: block;
    position: absolute;
    top: 50px;
    left: calc(50% - min(43.846vw,171px));
    right: auto;
    width: min(87.692vw,342px);
    height: min(35.897vw,140px);
    z-index: 5;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.6s ease, visibility 0.6s ease;
  }

  .cm-details__scroll-hint.is-scrolling
  .cm-details__scroll-hint-image {
    opacity: 0;
    visibility: hidden;
  }

  .cm-details__vehicle-hint-wrap {
    position: relative;
    width: 100%;
  }

  .cm-details__vehicle-hint-wrap
  .cm-details__scroll-hint-image {
    display: block;
    position: absolute;
    top: 50px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(87.692vw,342px);
    height: min(35.897vw,140px);
    max-width: none;
    z-index: 5;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
  }

  .cm-details__vehicle-hint-wrap.is-scrolling
  .cm-details__scroll-hint-image {
    opacity: 0;
    visibility: hidden;
  }

}
