/* Ordermade Step CSS */

/* Replace Step 1 image */
body#ordermade div.step div.section img[src="/images/ordermade/step_01.jpg"] {
  content: url('https://total-boost.com/wp-test/wp-content/uploads/1-2-e1761491043317.png');
}

/* Replace Step 2 image */
body#ordermade div.step div.section img[src="/images/ordermade/step_02.jpg"] {
  content: url('https://total-boost.com/wp-test/wp-content/uploads/2-3-e1761491076276.png');
}

/* Replace Step 3 image */
body#ordermade div.step div.section img[src="/images/ordermade/step_03.jpg"] {
  content: url('https://total-boost.com/wp-test/wp-content/uploads/3-3-e1761492967507.png');
}

/* Replace Step 4 image */
body#ordermade div.step div.section img[src="/images/ordermade/step_04.jpg"] {
  content: url('https://total-boost.com/wp-test/wp-content/uploads/4-2-e1761493035966.png');
}

/* Replace Step 5 image */
body#ordermade div.step div.section img[src="/images/ordermade/step_05.jpg"] {
  content: url('https://total-boost.com/wp-test/wp-content/uploads/5-3.png');
}

/* Reorder elements: h3 → p → pic */
body#ordermade div.step div.section {
  display: flex;
  flex-direction: column;
}

body#ordermade div.step div.section h3 {
  order: 1;
}

body#ordermade div.step div.section p {
  order: 2;
}

body#ordermade div.step div.section div.pic {
  order: 3;
}

body#ordermade div.step div.section div.btn {
  order: 4;
  text-align: right;
}

/* Move section to the left */
@media only screen and (min-width: 768px) {
  body#ordermade div.step div.section {
    margin: 0 auto 60px 0 !important;
  }

  /* Step2 stays centered */
  body#ordermade div.step div.section:nth-child(2) {
    margin: 0 auto 60px auto !important;
  }

  /* Step3 align right */
  body#ordermade div.step div.section:nth-child(3) {
    margin: 0 0 60px auto !important;
  }

  /* Step4 stays centered */
  body#ordermade div.step div.section:nth-child(4) {
    margin: 0 auto 60px auto !important;
  }

  /* Step6 stays centered */
  body#ordermade div.step div.section:nth-child(6) {
    margin: 0 auto 60px auto !important;
  }

  /* Step7 align right (same as Step3) */
  body#ordermade div.step div.section:nth-child(7) {
    margin: 0 0 60px auto !important;
  }
}

/* Case List Auto Scroll Slider */
body#ordermade div.caseList {
  overflow: hidden;
  margin: 0 0 20px !important;
}

body#ordermade div.caseList h2 {
  text-align: center;
  margin: 0 0 40px;
}

body#ordermade div.caseList ul {
  display: flex;
  gap: 20px;
  animation: scroll 40s linear infinite;
  width: fit-content;
}

body#ordermade div.caseList ul:hover {
  animation-play-state: paused;
}

body#ordermade div.caseList div.section {
  flex-shrink: 0;
  width: 300px;
  height: 200px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

body#ordermade div.caseList div.section a.bg {
  height: 200px !important;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* FAQ Section for Ordermade Page */
body#ordermade .reform-faq {
  background-color: #fff;
  padding: 90px 30px;
}

body#ordermade .reform-faq__title {
  font-size: 3.8rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 55px;
  color: #000;
  letter-spacing: 0.15em;
}

body#ordermade .reform-faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #d5d5d5;
  border-bottom: 1px solid #d5d5d5;
}

body#ordermade .reform-faq__item {
  border: none;
  border-bottom: 1px solid #d5d5d5;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

body#ordermade .reform-faq__item:last-child {
  border-bottom: none;
}

body#ordermade .reform-faq__question {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 25px 20px;
  background-color: transparent;
  cursor: pointer;
  transition: opacity 0.3s;
  position: relative;
}

body#ordermade .reform-faq__question:hover {
  opacity: 0.7;
}

body#ordermade .reform-faq__q {
  font-size: 1.7rem;
  font-weight: 500;
  color: #c8a165;
  flex-shrink: 0;
  width: 30px;
}

body#ordermade .reform-faq__text {
  font-size: 1.7rem;
  font-weight: 500;
  color: #333;
  flex: 1;
  line-height: 2;
}

body#ordermade .reform-faq__icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid #c8a165;
  border-bottom: 2px solid #c8a165;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: auto;
  display: block;
}

body#ordermade .reform-faq__item.is-active .reform-faq__icon {
  transform: rotate(-135deg);
}

body#ordermade .reform-faq__answer {
  display: none;
  padding: 0 20px 25px 60px;
  background-color: transparent;
}

body#ordermade .reform-faq__answer p {
  font-size: 1.5rem;
  line-height: 2;
  color: #666;
  margin: 0;
}

/* Contact Section for Ordermade Page */
body#ordermade .reform-contact {
  background-color: #fff;
  padding: 80px 30px;
}

body#ordermade .reform-contact__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

body#ordermade .reform-contact__title {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 20px;
  color: #c9a961;
  letter-spacing: 0.15em;
}

body#ordermade .reform-contact__subtitle {
  font-size: 1.6rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}

body#ordermade .reform-contact__text {
  font-size: 1.3rem;
  line-height: 2;
  color: #333;
  margin-bottom: 50px;
}

body#ordermade .reform-contact__buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

body#ordermade .reform-contact__btn {
  display: inline-block;
  padding: 15px 35px;
  background-color: #b8884a;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.4rem;
  font-weight: 400;
  transition: all 0.3s;
  min-width: 150px;
}

body#ordermade .reform-contact__btn:hover {
  opacity: 0.85;
}

body#ordermade .reform-contact__btn--instagram {
  background-color: #e891b2;
}

body#ordermade .reform-contact__btn--instagram:hover {
  background-color: #e57fa1;
}

body#ordermade .reform-contact__btn--mail {
  background-color: #91c96f;
}

body#ordermade .reform-contact__btn--mail:hover {
  background-color: #81bc5f;
}

body#ordermade .reform-contact__btn--line {
  background-color: #f4c156;
}

body#ordermade .reform-contact__btn--line:hover {
  background-color: #f2b845;
}

body#ordermade .reform-contact__note {
  font-size: 1.2rem;
  color: #666;
  margin-top: 25px;
  line-height: 1.8;
}

/* FAQ Accordion Styles */
body#ordermade .p-hawaiianFaq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  opacity: 0;
}

body#ordermade .p-hawaiianFaq__item.is-active .p-hawaiianFaq__answer {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.3s ease-in, opacity 0.3s ease-in;
}

body#ordermade .p-hawaiianFaq__arrow {
  transition: transform 0.3s ease;
}

body#ordermade .p-hawaiianFaq__item.is-active .p-hawaiianFaq__arrow {
  transform: rotate(180deg);
}

/* Shorten KV text on mobile */
@media only screen and (max-width: 767px) {
  body#ordermade .p-kv__text {
    width: 68%;
  }

  body#ordermade .p-kv__text p::before {
    content: 'WAIOLI(ワイオリ)のオーダーメイドジュエリーは、お客様の想いやライフスタイルを形にする特別なサービスです。結婚指輪や婚約指輪をはじめ、バングルやファッションリングまで幅広く対応いたします。';
    display: block;
    font-size: 11px;
    line-height: 1.8;
  }

  body#ordermade .p-kv__text p {
    font-size: 0 !important;
    line-height: 0;
  }

  body#ordermade .p-kv__text br {
    display: none;
  }
}

/* Hide mobile-only line breaks on desktop */
@media only screen and (min-width: 768px) {
  body#ordermade br.mobile-only {
    display: none;
  }
}

/* Reduce font size for Step section text */
body#ordermade div.step div.section > p {
  font-size: 1.3rem;
}

/* Reduce font size for heading description text */
body#ordermade div.heading > p {
  font-size: 1.3rem;
}

/* Increase font size for heading description text on PC */
@media only screen and (min-width: 768px) {
  body#ordermade div.heading > p {
    font-size: 1.8rem;
  }
}

/* Mobile only: Align heading title and text to left */
@media only screen and (max-width: 767px) {
  body#ordermade h1 {
    margin-top: 5px;
  }

  body#ordermade div.heading > h2.min {
    text-align: left;
  }

  body#ordermade div.heading > p {
    text-align: left;
    font-size: 12px;
  }

  /* Hide first 2 br tags, keep 3rd br (before "また、ご予算に〜") */
  body#ordermade div.heading > p br:first-of-type,
  body#ordermade div.heading > p br:first-of-type + br {
    display: none !important;
  }

  /* Align step titles to left */
  body#ordermade div.step div.section h3.min {
    text-align: left;
  }

  /* Hide line breaks in step section text */
  body#ordermade div.step div.section > p br {
    display: none;
  }
}

/* Center dictionary button on mobile */
@media only screen and (max-width: 767px) {
  body#ordermade div.step div.section div.btn {
    text-align: center;
  }
}
