/* Reform Page - Copy Case Page KV Design */

/* Hide sp-only on PC */
.sp-only {
  display: none;
}

/* Test if CSS is loading */
body#reform {
  background: #fff !important;
}

/* Remove breadcrumb bottom margin */
body#reform .breadcrumbs {
  margin-bottom: 0 !important;
}

body#reform main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* KV Section for Reform Page */
body#reform .p-kv {
  background: #fff;
  padding: 0 !important;
  margin: 0 !important;
  overflow-y: hidden;
}

body#reform .p-kv__inner {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 0 80px 100px !important;
  position: relative;
  min-height: 500px;
  overflow: visible;
}

body#reform .p-kv__content {
  position: relative;
  z-index: 3;
  max-width: 750px;
  padding: 80px 0 0 0 !important;
  margin: 0 !important;
}

body#reform .p-kv__title {
  margin-bottom: 40px;
}

body#reform .p-kv__title p {
  font-size: 15rem !important;
  font-weight: 300 !important;
  font-style: italic !important;
  color: #8b6f47 !important;
  margin-bottom: 10px !important;
  letter-spacing: 0.05em !important;
  font-family: 'Pinyon Script', serif !important;
  line-height: 1 !important;
}

body#reform .p-kv__title h1 {
  font-size: 3.6rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0;
  letter-spacing: 0.1em;
}

body#reform .p-kv__text,
body#reform .p-kv__desc {
  margin-top: 40px;
  margin-bottom: 60px;
}

body#reform .p-kv__text p,
body#reform .p-kv__desc p {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #333;
  letter-spacing: 0.05em;
}

/* Hide mobile description on PC */
body#reform .p-kv__desc-sp {
  display: none;
}

body#reform .p-kv__desc h2 {
  font-size: 2.4rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

body#reform .p-kv__image {
  position: absolute;
  top: 0 !important;
  right: -200px;
  width: 75%;
  max-width: none;
  z-index: 2;
  margin: 0 !important;
  padding: 0 !important;
}

body#reform .p-kv__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

body#reform .p-kv__image img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 0;
}

/* Reform About Section - Copy Engraver Design */
body#reform .reform-about {
  background: #fff;
  max-width: none;
  width: 100%;
  margin: 80px 0;
  padding: 0;
}

body#reform .reform-about__title {
  font-size: 4.5rem;
  font-weight: bold;
  color: #333;
  text-align: left;
  margin-bottom: 60px;
  margin-left: 60px;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

body#reform .reform-about__title::before {
  content: 'Reform';
  position: absolute;
  top: -40px;
  left: 0;
  font-size: 10rem;
  font-weight: normal !important;
  font-style: italic;
  font-family: 'Pinyon Script', cursive;
  color: #f5f5f5;
  z-index: -1;
  line-height: 1;
  white-space: nowrap;
}

body#reform .reform-about__inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  position: relative;
  padding: 0;
  max-width: none;
}

body#reform .reform-about__image {
  flex: 0 0 700px;
  position: relative;
}


body#reform .reform-about__image img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 0;
}

body#reform .reform-about__text {
  flex: 1;
  position: relative;
  padding-top: 40px;
  padding-right: 60px;
  max-width: 900px;
}

body#reform .reform-about__bg-text {
  display: none;
}

body#reform .reform-about__subtitle {
  display: none;
}

body#reform .reform-about__text p {
  position: relative;
  z-index: 1;
  font-size: 1.7rem;
  line-height: 2;
  color: #333;
  margin-bottom: 20px;
}

body#reform .reform-about__text ul {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

body#reform .reform-about__text ul li {
  font-size: 1.7rem;
  line-height: 2;
  color: #333;
  margin-bottom: 10px;
}

body#reform .reform-about__note {
  position: relative;
  z-index: 1;
  font-size: 1.7rem;
  line-height: 2;
  color: #333;
  margin-top: 20px;
}

/* Reform Cases Section */
body#reform .reform-cases {
  background: #fff;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 40px;
}

body#reform .reform-cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 60px;
}

body#reform .reform-case {
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body#reform .reform-case__number {
  font-size: 1.3rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

body#reform .reform-case__title {
  font-size: 1.6rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

body#reform .reform-case__images {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  background: #fff;
  padding: 15px;
}

body#reform .reform-case__image {
  flex: 0 0 auto;
  width: 180px;
  height: 180px;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

body#reform .reform-case__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

body#reform .reform-case__arrow {
  flex: 0 0 auto;
  font-size: 1.8rem;
  color: #d4a556;
  padding: 0;
}

body#reform .reform-case__desc {
  font-size: 1.2rem;
  line-height: 1.9;
  color: #333;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  flex: 1;
}

body#reform .reform-case__price {
  background: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  margin-top: auto;
  min-height: 120px;
}

body#reform .reform-case__price h5 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
  text-align: center;
}

body#reform .reform-case__price p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Reform Gallery Section */
body#reform .reform-gallery {
  background: #fff;
  padding: 80px 0;
  overflow: hidden;
}

body#reform .reform-gallery__title {
  font-size: 2.4rem;
  font-weight: 500;
  color: #333;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

body#reform .reform-gallery__subtitle {
  font-size: 1.2rem;
  color: #666;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

body#reform .reform-gallery__slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

body#reform .reform-gallery__track {
  display: flex;
  gap: 20px;
  animation: scroll 30s linear infinite;
  width: fit-content;
}

body#reform .reform-gallery__track:hover {
  animation-play-state: paused;
}

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

body#reform .reform-gallery__item {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
}

body#reform .reform-gallery__item a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

body#reform .reform-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

body#reform .reform-gallery__item a:hover img {
  transform: scale(1.05);
}

/* Reform Notes Section */
body#reform .reform-notes {
  background: #fff;
  max-width: 1200px;
  margin: 80px auto;
  padding: 60px 40px;
}

body#reform .reform-notes__title {
  font-size: 2.4rem;
  font-weight: 500;
  color: #333;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

body#reform .reform-notes__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

body#reform .reform-notes__list li {
  font-size: 1.3rem;
  line-height: 1.9;
  color: #333;
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
  letter-spacing: 0.03em;
}

body#reform .reform-notes__list li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: #8b6f47;
  font-weight: bold;
}

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

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

body#reform .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#reform .reform-faq__item {
  border: none;
  border-bottom: 1px solid #d5d5d5;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

body#reform .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#reform .reform-faq__question:hover {
  opacity: 0.7;
}

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

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

body#reform .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#reform .reform-faq__item.is-open .reform-faq__icon {
  transform: rotate(-135deg);
}

body#reform .reform-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: transparent;
}

body#reform .reform-faq__item.is-open .reform-faq__answer {
  max-height: 500px;
  padding: 0 20px 25px 60px;
}

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

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

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

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

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

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

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

body#reform .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#reform .reform-contact__btn:hover {
  opacity: 0.85;
}

body#reform .reform-contact__btn--instagram {
  background: linear-gradient(90deg, rgb(247, 227, 194) 0%, rgb(238, 187, 103) 100%);
}

body#reform .reform-contact__btn--instagram:hover {
  background: linear-gradient(90deg, rgb(247, 227, 194) 0%, rgb(238, 187, 103) 100%);
}

body#reform .reform-contact__btn--mail {
  background: linear-gradient(90deg, rgb(247, 227, 194) 0%, rgb(238, 187, 103) 100%);
}

body#reform .reform-contact__btn--mail:hover {
  background: linear-gradient(90deg, rgb(247, 227, 194) 0%, rgb(238, 187, 103) 100%);
}

body#reform .reform-contact__btn--line {
  background: linear-gradient(90deg, rgb(247, 227, 194) 0%, rgb(238, 187, 103) 100%);
}

body#reform .reform-contact__btn--line:hover {
  background: linear-gradient(90deg, rgb(247, 227, 194) 0%, rgb(238, 187, 103) 100%);
}

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

/* Responsive Design for Mobile */
@media screen and (max-width: 768px) {
  /* KV Section */
  body#reform .p-kv {
    overflow: visible !important;
  }

  body#reform .p-kv__inner {
    padding: 20px 20px 40px !important;
    min-height: auto;
    position: relative;
    overflow: visible !important;
  }

  body#reform .p-kv__image {
    position: absolute !important;
    top: 20px;
    right: 20px;
    width: 40%;
    height: 160px;
    z-index: 1 !important;
    display: block !important;
  }

  body#reform .p-kv__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    pointer-events: none;
    border-radius: 4px 0 0 4px;
  }

  body#reform .p-kv__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body#reform .p-kv__content {
    position: relative;
    max-width: 100%;
    padding: 0 !important;
    z-index: 5;
    display: flex;
    flex-direction: column;
  }

  body#reform .p-kv__title {
    margin-bottom: 10px;
    position: relative;
    padding-top: 0;
    width: 55%;
  }

  body#reform .p-kv__title p {
    font-size: 5rem !important;
    margin-bottom: 5px !important;
  }

  body#reform .p-kv__title h1 {
    font-size: 1.4rem;
    font-weight: 400;
    white-space: nowrap;
  }

  body#reform .p-kv__desc {
    margin-top: 170px;
    margin-bottom: 0;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* Hide PC description on mobile */
  body#reform .p-kv__desc-pc {
    display: none !important;
  }

  /* Show mobile description */
  body#reform .p-kv__desc-sp {
    display: block !important;
    font-size: 1.2rem !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
  }

  body#reform .p-kv__desc-pc {
    font-size: 1.4rem;
    line-height: 1.5;
    padding: 0;
  }

  body#reform .p-kv__desc p br {
    display: none;
  }

  /* Reform About Section */
  body#reform .reform-about {
    padding: 0;
    margin-top: 20px;
  }

  body#reform .reform-about__title {
    font-size: 1.6rem;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
  }

  body#reform .reform-about__title::before {
    font-size: 5rem;
    top: -20px;
    left: 0;
  }

  body#reform .reform-about__inner {
    flex-direction: row;
    gap: 20px;
    padding: 0 20px 0 0;
  }

  body#reform .reform-about__image {
    flex: 0 0 33%;
    width: 33%;
    margin-bottom: 0;
    position: relative;
  }


  body#reform .reform-about__text {
    flex: 1;
    max-width: none;
    padding: 0;
  }

  body#reform .reform-about__text p {
    font-size: 1.4rem;
    line-height: 1.5;
  }

  body#reform .reform-about__text p br {
    display: none;
  }

  body#reform .reform-about__text ul {
    margin: 15px 0;
  }

  body#reform .reform-about__text ul li {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  body#reform .reform-about__note {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-top: 10px;
  }

  /* Reform Cases Section */
  body#reform .reform-cases {
    margin: 0 auto;
    padding: 0 20px;
  }

  body#reform .reform-cases__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  body#reform .reform-case__number {
    font-size: 1.4rem;
  }

  body#reform .reform-case:first-child .reform-case__number {
    margin-top: -50px;
  }

  body#reform .reform-case__title {
    font-size: 1.4rem;
  }

  body#reform .reform-case__images {
    flex-direction: row;
    align-items: center;
  }

  body#reform .reform-case__image {
    width: 45%;
    max-width: none;
  }

  body#reform .reform-case__arrow {
    transform: none;
    margin: 0 10px;
  }

  body#reform .reform-case__desc {
    font-size: 1.4rem;
  }

  body#reform .reform-case__price {
    font-size: 1.4rem;
  }

  body#reform .reform-case__price h5 {
    font-size: 1.4rem;
  }

  body#reform .reform-case__price p {
    font-size: 1.4rem;
  }

  /* Reform Notes Section */
  body#reform .reform-notes {
    margin: 0 auto;
    padding: 40px 20px;
  }

  body#reform .reform-notes__title {
    font-size: 1.8rem;
  }

  body#reform .reform-notes__list li {
    font-size: 1.4rem;
    line-height: 1.7;
  }

  /* Reform FAQ Section */
  body#reform .reform-faq {
    padding: 40px 30px;
  }

  body#reform .reform-faq__title {
    font-size: 2.2rem;
  }

  body#reform .reform-faq__q {
    font-size: 1.4rem;
  }

  body#reform .reform-faq__text {
    font-size: 1.4rem;
    line-height: 1.8;
  }

  body#reform .reform-faq__answer p {
    font-size: 1.4rem;
    line-height: 1.8;
  }

  /* Reform Contact Section */
  body#reform .reform-contact__btn {
    width: 100%;
    max-width: 270px;
    padding: 14px 28px;
    font-size: 3.733vw;
  }

  /* Show sp-only on mobile */
  .sp-only {
    display: inline;
  }
}
