/* 全体設定 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "ヒラギノ角ゴ ProN W3";
}

/* Reset paragraph margins specifically */
p {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #fff;
}

img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-touch-callout: none;
  -moz-user-select: none;
  user-select: none;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.wrapper {
  width: 100%;
  margin: 0 auto;
  background: #fff;
}

/* cta animation */
.cta {
  padding: 3em 0;
}

.animation {
  animation: dokundokun 3000ms ease infinite;
}

@keyframes dokundokun {
  0% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.05);
  }

  30% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.05);
  }

  70% {
    transform: scale(1);
  }
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin: 0 auto;
  max-width: 1200px;
  /* flex-wrap: nowrap; */
  flex-wrap: wrap;
  padding: 0 20px;
}

@media screen and (min-width: 768px) {
  .image-container figure {
    /* flex: 1;
    max-width: 30%; */
    width: calc(100% / 3 - 14px);
  }

  .image-container img {
    width: 100%;
    height: auto;
  }

  .pc img {
    max-width: 33%;
  }

  .slider li img {
    width: 50%;
  }

  .cta img {
    width: 35%;
  }

  .cta-button img {
    width: 70%;
  }

  /*.slider-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
  }
  .slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 40px 20px;
    list-style: none;
    margin: 0;
    padding: 5px 20px;
    width: 100%;
    max-width: 1000px;
  }
  .slider li {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .slider figure {
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .slider figure img{
    width: 100%;
    box-shadow: 0px 0px 5px #bbb;
    border-radius: 10px;
  } 
  .controls{
    display: none;
  }*/
  .ttl p span {
    font-size: 2.5vh;
  }

  .ttl p {
    font-size: 3.5vh;
    letter-spacing: 0.1em;
  }

  .form_ttl p {
    font-size: 3.5vh;
    color: #1E92B6;
    font-weight: bold;
    letter-spacing: 0.1em;
    padding: 1rem 1rem;
    justify-content: center;
  }

  .form_ttl p span {
    font-size: 2.5vh;
  }

  .customer-info-title p {
    font-size: 3.5vh;
    letter-spacing: 0.1em;
  }

  .fvsp img {
    display: none;
  }

  .accordion {
    max-width: 600px;
  }
}

@media screen and (max-width: 767px) {
  .fvpc img {
    display: none;
  }

  .image-container {
    flex-direction: column;
    align-items: center;
    margin: 0;
  }

  .image-container figure {
    max-width: 100%;
  }

  .image-container img {
    width: 100%;
    height: auto;
  }

  .cta-button img {
    width: 90%;
  }

  .cta img {
    width: 90%;
  }

  .ttl p span {
    font-size: 2vh;
  }

  .ttl p {
    font-size: 3vh;
    letter-spacing: 0.05em;
  }

  .form_ttl p {
    font-size: 3vh;
    color: #1E92B6;
    font-weight: bold;
    letter-spacing: 0.05em;
    padding: 1rem 1rem;
    justify-content: center;
  }

  .form_ttl p span {
    font-size: 2vh;
  }

  .customer-info-title p {
    font-size: 3vh;
    letter-spacing: 0.05em;
  }
}

/* section */
.section {
  padding-bottom: 40px;
  z-index: 1;
}

/* title */
.ttl {
  padding: 30px 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1000;
}

.ttl,
.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.ttl.visible,
.fade.visible {
  opacity: 1;
  transform: translateY(0);
}


.under::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  border-radius: 2px;
  background-color: #1E92B6;
  margin: 1em 0 0.5em;
}

.feature .under::after,
.step .under::after {
  background-color: #fff;
}

.ttl .logo img {
  width: 100px;
  margin-bottom: 1.5em;
  padding: 0;
}

.ttl .arrow img {
  width: 100%;
  margin-top: 1em;
}

.ttl p {
  color: #2a3339;
  font-weight: bold;
  justify-content: center;
  align-items: center;
}

/* img白くする */
.feature .ttl img,
.step .ttl img {
  filter: brightness(0) invert(1);
}


/* fv */
.fv {
  width: 100%;
  background-color: #fff;
  color: #fff;
}

.fv p {
  margin: 0 auto;
  text-align: center;
  font-size: 10vw;
}

/* feature */
.feature,
.step {
  text-align: center;
  background-color: #1f92b6;
}

.feature .ttl,
.step .ttl {
  background-color: #1f92b6;
}

/* service */
.service {
  background: linear-gradient(to bottom, #fff, #f4f5f6);
  /*background-color: #f4f5f6;*/
}

.service .ttl {
  margin-bottom: 1em;
  background-color: #f4f5f6;
}

.service .ttl h2 p {
  background: linear-gradient(transparent 60%, #FFEA4D 60%);
}

/* value */
.value {
  margin: 0 auto;
  text-align: center;
}

/* STEP */
.slide {
  max-width: 1000px;
}

/* RECORD */
.record {
  margin: 0 auto;
  background-color: #DFF2F8;
}

/* cov */
.cov {
  background-color: #f4f5f6;
}

.carousel-container,
.record-container {
  overflow: hidden;
  padding: 0;
  margin: 0 auto;
}

.carousel-track,
.record-track {
  display: flex;
  gap: 10px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar,
.record-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide img,
.record-slide img {
  width: 100%;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 767px) {

  .carousel-slide,
  .record-slide {
    flex: 0 0 80%;
    scroll-snap-align: center;
  }

  .carousel-slide:first-child,
  .record-slide:first-child {
    margin-left: 20%;
  }

  .carousel-slide:last-child,
  .record-slide:last-child {
    margin-right: 20%;
  }

  .carousel-container .car-arrow {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  .record-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .record-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 24px;
    max-width: 1200px;
    width: 60%;
    margin: 0 auto;
  }

  .record-slide {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .record-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .carousel-container .carousel-controls,
  .record-container .record-controls {
    display: none;
  }

  .carousel-track {
    gap: 20px;
  }

  .carousel-slide {
    flex: 0 0 calc(80%/5);
    scroll-snap-align: center;
  }

  .carousel-slide:first-child {
    margin-left: 10%;
  }

  .carousel-slide:last-child {
    margin-right: 10%;
  }
}

.car-arrow img {
  width: 10%;
  margin-top: 10px;
  float: right;
  margin-right: 10%;
}

.carousel-controls,
.record-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.carousel-indicators,
.record-indicators {
  display: flex;
  gap: 8px;
}

.carousel-indicators div,
.record-indicators div {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  transition: background 0.3s;
}

.carousel-indicators .active,
.record-indicators .active {
  background: #333;
}

.nav {
  background-color: #1E92B6;
  color: #fff;
  border: none;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50%;
}


/* reason */
.reason {
  background-color: #DFF2F8;
  margin: 0 auto;
  width: 100%;
}

.reason .ttl p {
  color: #1E92B6;
}

.circle1 {
  position: absolute;
  top: calc(-30px);
  right: 0;
  width: 30%;
  object-fit: cover;
  mask-image: linear-gradient(to top right, transparent 0%, black 100%);
  -webkit-mask-image: linear-gradient(to top right, transparent 0%, black 100%);
}

.circle2 {
  position: absolute;
  bottom: calc(-30px);
  left: 0;
  width: 20%;
  object-fit: cover;
  mask-image: linear-gradient(to bottom left, transparent 0%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom left, transparent 0%, black 100%);
}

.accordion {
  position: relative;
  padding: 0 20px;
  margin: 0 auto;
}

.accordion .accordion-item button[aria-expanded='true'] {
  border-bottom: 1px solid #1E92B6;
}

.accordion-item {
  background-color: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 2px solid #1E92B6;
  position: relative;
  z-index: 20;
}

.accordion button {
  position: relative;
  display: block;
  text-align: left;
  width: 100%;
  padding: 1em;
  color: #1E92B6;
  font-size: 1.8vh;
  font-weight: bold;
  border: none;
  background: none;
  outline: none;
}

.accordion button .icon {
  display: inline-block;
  position: absolute;
  right: 1em;
  width: 22px;
  height: 22px;
  border: 1px solid;
  border-radius: 22px;
}

.accordion button .icon::before {
  display: block;
  position: absolute;
  content: '';
  top: 9px;
  left: 5px;
  width: 10px;
  height: 2px;
  background: currentColor;
}

.accordion button .icon::after {
  display: block;
  position: absolute;
  content: '';
  top: 5px;
  left: 9px;
  width: 2px;
  height: 10px;
  background: currentColor;
}

.accordion button[aria-expanded='true'] .icon::after {
  width: 0;
}

.accordion button[aria-expanded='true']+.accordion-content {
  opacity: 1;
  max-height: 9em;
  transition: all 200ms linear;
  will-change: opacity, max-height;
}

.accordion .accordion-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 200ms linear, max-height 200ms linear;
  will-change: opacity, max-height;
}

.accordion .accordion-content p {
  color: #1E92B6;
  font-size: 1.8vh;
  font-weight: bold;
  margin: 1em;
  word-wrap: break-word;
  white-space: normal;
}


/* footer */
.footer {
  text-align: center;
  background-color: #2a3339;
  z-index: 1000;
  position: relative;
}

.footer a {
  text-decoration-color: #fff;
  color: #ffffff;
}

.footer img {
  width: 20%;
  padding: 1em 0;
  max-width: 150px;
  filter: brightness(0) invert(1);
}

.privacypolicy,
.sponsored {
  padding-bottom: 1em;
  font-size: 1.5vh;
}

.transaction {
  max-width: 750px;
  margin: 0 auto;
}








/* form.html */
/* form */
.form {
  background-color: #f0f0f0;
  padding: 1em 1em 4em;
}

.form-container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 15px;
  box-sizing: border-box;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

/* Clean vertical layout */
.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.2em 1.5em;
  margin: 0;
  width: 100%;
  gap: 0.3em;
  border-bottom: 1px solid #f0f0f0;
}

.form-group:last-of-type {
  border-bottom: none;
}

.form-group label {
  width: 100%;
  text-align: left;
  font-size: 1.8vh;
  color: #2a3339;
  font-weight: bold;
  white-space: normal;
  font-family: "ヒラギノ角ゴ ProN W3";
}

.form-group select,
.form-group input {
  width: 100%;
  background-color: #fff !important;
  padding: 12px !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  color: #333 !important;
  height: auto !important;
  min-height: 45px !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  line-height: 1.4 !important;
  font-weight: normal !important;
  transition: border-color 0.3s ease !important;
  margin-left: 0;
  font-family: "ヒラギノ角ゴ ProN W3";
}

.form-group select:focus,
.form-group input:focus {
  outline: none !important;
}

.form-group input::placeholder {
  color: #bbb !important;
  font-weight: normal !important;
}

/* Select2 Custom Styling */
.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  background-color: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  height: 45px !important;
  line-height: 45px !important;
  padding: 0 12px !important;
  font-size: 16px !important;
  font-family: "ヒラギノ角ゴ ProN W3";
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #333 !important;
  line-height: 45px !important;
  padding-left: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #bbb !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 43px !important;
  right: 12px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #007bff !important;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1) !important;
}

.select2-dropdown {
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.select2-container--default .select2-results__option {
  font-family: "ヒラギノ角ゴ ProN W3";
  font-size: 16px !important;
  padding: 12px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #007bff !important;
}

/* Modal trigger input styles */
.modal-trigger {
  cursor: pointer !important;
  position: relative;
}

.modal-trigger::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}

.modal-trigger:hover {
  border-color: #007bff !important;
}

.modal-trigger:focus {
  border-color: #007bff !important;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1) !important;
}

.name-input-wrapper {
  display: flex;
  gap: 1em;
  width: 100%;
}

.name-input-wrapper input {
  width: 100%;
  padding: 1em;
  height: 3.5em;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #333;
  background: #fff;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  outline: none;
}

.name-input-wrapper input:focus {
  border-color: #1E92B6;
  box-shadow: 0 0 0 2px rgba(30, 146, 182, 0.1);
}

/*
label {
  display: flex;
  align-items: center;
  width: 80%;
  padding-bottom: 3px;
  letter-spacing: 0.1vw;
  text-align: left;
  font-size: 1.5vh;
  color: #000;
  font-weight: bold;
}*/

/*.form-group select,
.form-group input {
  background-color: #fff !important;
  width: 80% !important;
  padding: 1vh !important;
  border: 0.25vh solid #f4f5f6 !important;
  border-radius: 10px !important;
  font-size: 1.5vh !important;
  margin: 0 auto !important;
  color: #595959 !important;
  height: 4.5vh !important;
  box-sizing: border-box !important;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2) !important;
  font-weight: bold!important;
  letter-spacing: 0.1vw!important;
}*/

option {
  font-weight: bold;
}

input::placeholder {
  color: #595959;
  padding: 1vh;
}

.cta-button {
  padding: 1.5rem 1.5rem 2rem;
}

.cta-button button {
  max-width: 700px;
  background-color: transparent;
  overflow: hidden;
  border-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.cta-submit-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.cta-submit-button figure {
  margin: 0;
  padding: 0;
}

.cta form {
  margin: 0;
  padding: 0;
}

.form_ttl {
  padding: 30px 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.form_ttl.under::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  border-radius: 2px;
  background-color: #1E92B6;
  margin: 0 0 0.5em;
}

.form_ttl img {
  width: 120px;
}

/* Filter only for form-step2.html, not index.html */
body:not([data-page="index"]) .form_ttl img {
  filter: brightness(0%) invert(1);
}

/* Desktop version - wrap in media query */
@media screen and (min-width: 769px) {
  .form_ttl p {
    font-size: 3.5vh;
    color: #1E92B6;
    font-weight: bold;
    padding: 1rem 1rem;
    letter-spacing: 0.1em;
    justify-content: center;
  }
}

.form_ttl p span {
  font-size: 2.5vh;
}

.form_logo {
  padding: 0.75em 0;
  border-radius: 15px 15px 0 0;
}

/* Background color only for form-step2.html, not index.html */
body:not([data-page="index"]) .form_logo {
  background-color: #2a3339;
}

.ryu-text {
  font-size: 60px;
  font-weight: 700;
  color: red;
  text-align: center;
  margin: 1rem 0;
  font-family: "ヒラギノ角ゴ ProN W3";
}

/* Enhanced form styles */
.form-car-select {
  position: relative;
  width: 100%;
  margin-left: 0;
}

/* Form section visibility */
.form-section-hidden {
  display: none !important;
}

/* Red border styles for highlighting next required field */
.red_border {
  border: 3px solid #ff0000 !important;
  border-radius: 6px !important;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.red_border_select {
  position: relative;
  width: 100%;
}

.red_border_select input[readonly] {
  border: 3px solid #ff0000 !important;
  border-radius: 6px !important;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
  background: #fff !important;
}

/* For regular input fields (customer info) */
input.red_border:not([readonly]) {
  border: 3px solid #ff0000 !important;
  border-radius: 6px !important;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
  background: #fff !important;
}

/* Error border styles for validation errors */
.error-border {
  border: 2px solid #ff0000 !important;
  border-radius: 4px !important;
}

.form-group input.error-border {
  border: 2px solid #ff0000 !important;
  border-radius: 4px !important;
}

/* Error message styles */
.error-message {
  display: none;
  color: red;
  font-size: 12px;
  margin-top: 5px;
}

/* Customer info title */
.customer-info-title {
  margin: 30px 0 20px 0;
}

.customer-info-title.hidden {
  display: none !important;
}

.customer-info-title p {
  font-size: 3.5vh;
  color: #1E92B6;
  font-weight: bold;
  padding: 1rem 0;
  letter-spacing: 0.1em;
  margin: 0;
  text-align: center;
  justify-content: center;
}

/* Form step buttons */
.form-step-buttons {
  text-align: center;
  margin: 20px 0;
}

.step-next-button {
  background: #1E92B6;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

/* Modal and CTA hidden states */
.modal-hidden,
.cta-hidden,
.step-hidden,
#js-modalBackground.modal-hidden,
.car-info-modal.modal-hidden,
.car-info-modal-box .modal-hidden {
  display: none !important;
}

/* FV background */
.fv-background {
  background-color: #f4f5f6;
}

/* Text colors */
.text-white {
  color: #fff !important;
}

/* CTA center alignment */
.cta-center {
  display: none;
  text-align: center;
}

.cta-transparent-button {
  background: none;
  border: none;
  cursor: pointer;
}

.form-car-select-box {
  width: 100%;
  background-color: #fff !important;
  padding: 15px !important;
  border: 2px solid #1E92B6 !important;
  border-radius: 10px !important;
  font-size: 1.6vh !important;
  color: #1E92B6 !important;
  min-height: 50px !important;
  box-sizing: border-box !important;
  box-shadow: 0 2px 5px rgba(30, 146, 182, 0.2) !important;
  line-height: 1.2 !important;
  font-weight: bold !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
}

.form-car-select-box:focus {
  outline: none !important;
  border-color: #1E92B6 !important;
  box-shadow: 0 0 0 3px rgba(30, 146, 182, 0.1) !important;
}

.name-input-wrapper {
  display: flex;
  gap: 1em;
  width: 100%;
  margin-left: 0;
}

.name-input-wrapper input {
  flex: 1;
  background-color: #fff !important;
  padding: 12px !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  color: #333 !important;
  min-height: 45px !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  transition: all 0.3s ease !important;
}


.form-group label small {
  display: block;
  font-size: 1.2vh;
  font-weight: normal;
  color: #888;
  margin-top: 0.2em;
}

.customer-info {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.customer-info.show {
  opacity: 1;
}

.form-step-buttons {
  text-align: center;
  padding: 1em 0;
}

.step-next-button {
  background: linear-gradient(45deg, #1E92B6, #1577A1);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1.8vh;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(30, 146, 182, 0.3);
  transition: all 0.3s ease;
}

.step-next-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(30, 146, 182, 0.4);
}

.step-next-button span {
  background: #ff6b35;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 1.4vh;
  margin-right: 10px;
}

/* Modal styles */
.car-info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.car-info-modal-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
  z-index: 9998;
}

.car-info-modal-box {
  position: relative;
  background: white;
  border-radius: 30px;
  max-width: 95vw;
  max-height: 95vh;
  min-width: 80vw;
  min-height: 60vh;
  overflow-y: auto;
  padding: 20px 40px 40px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
  z-index: 10000;
}

.car-info-modal-close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-info-modal-close-button:hover {
  color: #333;
}

.car-info-modal-title {
  font-size: 3vh;
  font-weight: bold;
  color: #1E92B6;
  margin-bottom: 1.5em;
  text-align: left;
  border-bottom: 2px solid #1E92B6;
  padding-bottom: 0.5em;
  font-family: "ヒラギノ角ゴ ProN W3";
}

.carInfoModalTitle {
  font-size: 24px;
  font-weight: bold;
  color: #1E92B6;
  margin-bottom: 1em;
  text-align: left;
  border-bottom: 2px solid #1E92B6;
  padding-bottom: 0.5em;
  font-family: "ヒラギノ角ゴ ProN W3";
}

.car-info-modal-subtitle {
  font-size: 2.2vh;
  font-weight: bold;
  color: #1E92B6;
  margin: 1.5em 0 1em 0;
  border-left: 4px solid #1E92B6;
  padding-left: 0.8em;
  font-family: "ヒラギノ角ゴ ProN W3";
  text-align: left;
}

/* Domestic and Imported car distinction */
.carInfoModalMaker__contentsTitle--domestic {
  border-left: 8px solid #FF0000 !important;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  padding: 12px;
  margin: 0 0 4px;
  background-color: #fff;
  text-align: left;
}

.carInfoModalMaker__contentsTitle--imported {
  border-left: 8px solid #0070C9 !important;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  padding: 12px;
  margin: 0 0 4px;
  background-color: #fff;
  text-align: left;
}

.car-info-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 1.5em;
}

.car-info-modal-grid button {
  background: #fff;
  border: 2px solid #1E92B6;
  border-radius: 5px;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: bold;
  color: #1E92B6;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-family: "ヒラギノ角ゴ ProN W3";
  box-shadow: 0 2px 5px rgba(30, 146, 182, 0.2);
}

.car-info-modal-grid button:hover {
  background: #1E92B6;
  color: white;
  border-color: #1E92B6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(30, 146, 182, 0.3);
}

.car-info-modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.car-info-modal-list li {
  background: #fff;
  border: 2px solid #1E92B6;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 2vh;
  font-weight: bold;
  color: #1E92B6;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-family: "ヒラギノ角ゴ ProN W3";
  box-shadow: 0 2px 5px rgba(30, 146, 182, 0.2);
}

.car-info-modal-list li:hover {
  background: #1E92B6;
  color: white;
  border-color: #1E92B6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(30, 146, 182, 0.3);
}

/* Selling time buttons layout */
.selling-time-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.selling-time-btn {
  flex: 1;
  max-width: 200px;
  background: #fff;
  border: 2px solid #1E92B6;
  border-radius: 10px;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #1E92B6;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-family: "ヒラギノ角ゴ ProN W3";
  box-shadow: 0 2px 5px rgba(30, 146, 182, 0.2);
}

.selling-time-btn:hover {
  background: #1E92B6;
  color: white;
  border-color: #1E92B6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(30, 146, 182, 0.3);
}

@media screen and (max-width: 768px) {
  .car-info-modal-box {
    max-width: 95vw;
    min-width: 90vw;
    min-height: 70vh;
    padding: 2em 1.5em;
  }

  .car-info-modal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .car-info-modal-grid button {
    padding: 10px 4px;
    font-size: 12px;
    line-height: 1.2;
    word-break: break-all;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .name-input-wrapper {
    flex-direction: column;
    gap: 0.8em;
  }

  .selling-time-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .selling-time-btn {
    max-width: 100%;
    padding: 18px;
    font-size: 16px;
  }

  .form-group {
    padding: 1em 1.5em;
  }

  .form-group label {
    font-size: 2vh;
    width: 100%;
    max-width: 100%;
  }

  .form-group select,
  .form-group input {
    font-size: 2vh !important;
    padding: 18px !important;
  }

  .form-car-select-box {
    font-size: 2vh !important;
    padding: 18px !important;
  }

  .name-input-wrapper input {
    font-size: 2vh !important;
    padding: 18px !important;
  }
}







/* thanks.html */
.thanks-wrapper {
  background-color: #fff;
  overflow: auto;
  text-align: center;
  width: 100%;
  height: 100vh;
}

.done {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 15px;
  overflow-wrap: break-word;
}

.done p {
  margin: 0 auto;
  font-size: 2vh;
  color: #2a3339;
  word-break: break-word;
  white-space: normal;
}

#thanks {
  width: 70px;
  height: 80px;
  margin: 0 auto;
  margin-top: 35vh;
  margin-bottom: 5vh;
  -webkit-perspective: 200;
  -webkit-perspective-origin: 50% 0;
  -moz-perspective: 200;
  -moz-perspective-origin: 50% 0;
  perspective: 200;
  perspective-origin: 50% 0;
}

.anvelopebg {
  width: 70px;
  height: 40px;
  background-color: #af1d24;
  position: absolute;
  margin-bottom: 0;
  z-index: 3;
}

.anvelope {
  width: 0px;
  height: 0px;
  position: relative;
  margin-bottom: 0;
  border-left: 35px #af1d24 solid;
  border-bottom: 20px #eb0a1e solid;
  border-right: 35px #eb0a1e solid;
  border-top: 20px rgba(0, 0, 0, 0) solid;
  box-shadow: 0px 4px 0px 0px #af1d24;
  -webkit-box-shadow: 0px 4px 0px 0px #af1d24;
  z-index: 4;

}

.letter {
  width: 54px;
  height: 44px;
  background-color: #fff;
  position: relative;
  top: -95px;
  left: 8px;
  z-index: 3;

}

.letter:after {
  content: "";
  position: absolute;
  width: 32px;
  height: 6px;
  background-color: #ffe681;
  top: 6px;
  left: 6px;
}

.letter:before {
  content: "";
  position: absolute;
  width: 21px;
  height: 6px;
  background-color: #ffe681;
  top: 15px;
  left: 6px;
}

.opener {
  position: relative;
  width: 0;
  height: 0;
  border-left: 35px rgba(0, 0, 0, 0) solid;
  border-bottom: 31px #af1d24 solid;
  border-right: 35px rgba(0, 0, 0, 0) solid;
  top: -71px;
  z-index: 2;
  transform-origin: 0 100%;
  -ms-transform-origin: 0 100%;
  /* IE 9 */
  -webkit-transform-origin: 0 100%;
  /* Safari and Chrome */
}

@keyframes letteranim {
  0% {
    top: -95px;
  }

  50% {
    top: -71px;
  }

  100% {
    top: -71px;
  }
}

@-webkit-keyframes letteranim {
  0% {
    top: -95px;
  }

  50% {
    top: -71px;
  }

  100% {
    top: -71px;
  }
}

@keyframes openanim {
  0% {
    -webkit-transform: rotateX(0deg);
  }

  50% {
    -webkit-transform: rotateX(0deg);
    z-index: 2;
  }

  100% {
    -webkit-transform: rotateX(180deg);
    z-index: 5;
  }
}

@-webkit-keyframes openanim {
  0% {
    -webkit-transform: rotateX(0deg);
  }

  50% {
    -webkit-transform: rotateX(0deg);
    z-index: 2;
  }

  100% {
    -webkit-transform: rotateX(180deg);
    z-index: 5;
  }
}

#thanks:hover .letter {
  animation: letteranim 1s ease-out 0s 2 alternate;
  -webkit-animation: letteranim 1s ease-out 0s 2 alternate;
  /* Safari and Chrome */
}

#thanks:hover .opener {
  animation: openanim 1s ease-out 0s 2 alternate;
  -webkit-animation: openanim 1s ease-out 0s 2 alternate;
  /* Safari and Chrome */
}

/* thanks-footer */
.thanks-footer {
  text-align: center;
  background-color: #2a3339;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.thanks-footer a {
  text-decoration-color: #fff;
  color: #ffffff;
}

.thanks-footer img {
  width: 20%;
  padding: 1em 0;
  max-width: 150px;
}