/* 
body{
   shrink entire page to 70% */
/* zoom: 0.6; 
   }*/
header,
footer {
  zoom: 1;
  width: 100vw;
}

/* Scoped Hero Section under #menuPage */
#menuPage .hero-section {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 24rem;
  overflow: hidden;
}

#menuPage .hero-section .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#menuPage .hero-section .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 1rem 2rem;
  /* background: rgba(255,255,255,0.6); */
  border-radius: 0.5rem;
}

#menuPage .hero-section .hero-title {
  color: #000;
  text-align: center;
  font-family: "Hiragino Mincho Pro";
  font-size: 3rem;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

#menuPage .hero-section .hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 2rem);
  color: #555;
}

/* Mobile tweak */
@media (max-width: 600px) {
  #menuPage .hero-section .hero-content {
    padding: 0.75rem 1rem;
    width: 90%;
  }
}

/* Hero overlay */
#menuPage .hero-section {
  position: relative;
  /* ensure positioning context */
  height: 30vw;
}

#menuPage .hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0; */
  /* background: #FFFFFFB2; */
  /* white at ~70% opacity */
  z-index: 1;
  /* above the image, below the text */
}

#menuPage .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* behind the overlay */
}

#menuPage .hero-content {
  position: relative;
  z-index: 2;
  /* on top of overlay */
}

/* -------------------------------------------------------------------------- */
/* ELINESMILE Intro (scoped under #menuPage)                                  */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* ELINESMILE Intro (scoped under #menuPage)                                  */
/* -------------------------------------------------------------------------- */
#menuPage #elinesmile-intro {
  position: relative;
  background: linear-gradient(0deg, #FFF 40%, #61A8D3 100%);
  padding: 8.1rem 0rem 0rem;
  /* top‐pad for badge */
  /* min-height: 100vw; */
}

/* Badge (“title island”) */
#menuPage #elinesmile-intro .badge {
  position: absolute;
  top: 2rem;
  left: -3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #F2EEDD;
  border-radius: 2.6rem;
  padding: 1rem 2rem;
  padding-left: 12vw;
  border: white solid 5px;
  z-index: 3;
  width: 50.30744rem;
  height: 10rem;
  text-align: center;
  flex-shrink: 0;
  flex-direction: row;
  justify-content: flex-start;
}

#menuPage #elinesmile-intro .badge-icon {
  width: 8rem;
  height: 3rem;
}

#menuPage #whiteningTag img {
  width: 4rem !important;
  height: 4rem !important;
  margin-left: -3vw;
}

#menuPage #elinesmile-intro .badge-title {
  color: #352302;
  font-family: "Kozuka Gothic Pr6N";
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
}

#menuPage #elinesmile-intro .badge-subtitle {
  color: #352302;
  font-family: "Kozuka Gothic Pr6N";
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Shared bordered container for image + text */
#menuPage #elinesmile-intro .treatment-visual {
  position: relative;
  display: flex;
  width: 100vw;
  margin: 0;
  border: 2px solid #D6C17E;
  border-radius: 0.5rem;
  overflow: hidden;
  /* min-height: 30vw; */
}

/* Left side: image with fade-on-right */
#menuPage #elinesmile-intro .visual-image-frame {
  position: relative;
  margin-left: 15vw;
  margin-right: -10vw;
  /* height: 90vw; */
  /* width: 90vw; */
}

#menuPage #elinesmile-intro .visual-image-frame::after {
  content: "";
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 57.21%, #FFF 100%), url(<path-to-image>) lightgray 50% / cover no-repeat;
  mix-blend-mode: multiply;
}

/* Right side: text over a semi-opaque background */
#menuPage #elinesmile-intro .visual-description {
  z-index: 999;
  flex: 1 1 70%;
  /* padding: 2rem; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: 10vw;
  margin-left: -1vw;
  /* background: linear-gradient(90deg, #ffff 0%, rgba(255, 255, 255, 0) 20%); */
}

#menuPage #elinesmile-intro .visual-description .section-heading {
  margin-bottom: 1rem;
  color: #352302;
  text-align: center;
  font-family: "Hiragino Mincho Pro";
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 300;
}

#menuPage #elinesmile-intro .visual-description .section-text {
  line-height: 1.6;
  color: #352302;
  font-family: "Kozuka Gothic Pr6N";
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 400;
}

/* “ELINESMILEとは？” Gradient Panel */
#menuPage .treatment-description-section {
  background: linear-gradient(90deg, #FFF 0%, #C7BD9C 50%, #FFF 100%);
  padding: 3rem 18rem;
  text-align: center;
  border-radius: 0.5rem;
  margin: 0 auto;
  max-width: 100vw;
  margin-bottom: 4vw;
}

#menuPage #elinesmile-intro .treatment-description-section .section-heading {
  font-size: 2rem;
  color: #3A2E1B;
  margin-bottom: 1rem;
}

#menuPage #elinesmile-intro .treatment-description-section .section-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #3A2E1B;
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive stack */
@media (max-width: 1024px) {
  #menuPage #elinesmile-intro .treatment-visual {
    flex-direction: column;
  }

  #menuPage #elinesmile-intro .visual-image-frame,
  #menuPage #elinesmile-intro .visual-description {
    flex: 1 1 100%;
  }
}

#menuPage .badge-text {
  text-align: left;
}

/* -------------------------------------------------------------------------- */
/* GS Plan (scoped under #menuPage)                                           */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* GS Plan (scoped under #menuPage)                                           */
/* -------------------------------------------------------------------------- */
#menuPage #aligner-plans {
  /* max-width: 1200px; */
  /* margin: 0 auto 4rem; */
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#menuPage .plan-item {
  margin-bottom: 4rem;
}

/* Header bar & title */
#menuPage .plan-item .plan-header {
  position: relative;
  padding-left: 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding-bottom: 1vw;
  border-bottom: solid #8bbad8 10px;
  margin-bottom: 5vw;
  /* margin-right: 25vw; */
  /* margin-left: 25vw; */
  flex-direction: column;
}

#menuPage .plan-item .plan-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.5rem;
  height: 3rem;
  background: #61A8D3;
  border-radius: 0.25rem;
}

#menuPage .plan-item .plan-label {
  font-size: 0.875rem;
  color: #666;
}

#menuPage .plan-item .plan-title {
  font-size: 1.5rem;
  color: #3A2E1B;
  font-weight: 700;
  margin: 0;
}

#menuPage .plan-item .plan-desc {
  flex: 1;
  font-size: 1rem;
  color: #3A2E1B;
  margin: 0;
}

/* Underline */
#menuPage .plan-header+.before-after::before {
  content: "";
  display: block;
  height: 6px;
  background: #61A8D3;
  margin: 1rem 0 2rem;
  border-radius: 2px;
}

#menuPage .whitening-intro {
  margin-top: 1.9vw !important;
}

/* Container for the row */
#menuPage .before-after {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-direction: row;
  justify-content: center;
}

#whitening-content {}

/* The gray “cloud” around before/after */
#menuPage .ba-gallery {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #F7F7F7;
  border-radius: 1rem;
  padding: 2rem;
  flex-shrink: 0;
}

/* Before/After items */
#menuPage .before-after-item {
  text-align: center;
}

#menuPage .ba-label {
  display: block;
  font-size: 1rem;
  color: #BBAA77;
  margin-bottom: 0.5rem;
}

#menuPage .ba-image {
  width: 192px;
  /* 12rem */
  height: auto;
  border-radius: 0.25rem;
  object-fit: cover;
}

/* Divider arrow between images */
#menuPage .before-after-divider {
  font-size: 1.25rem;
  color: #BBAA77;
}

/* Cost arrow */
#menuPage .plan-arrow {
  flex-shrink: 0;
  width: 10vw;
  height: 10vw;
  background: #D6C17E;
  clip-path: polygon(0 100%, 0% 0, 100% 50%);
  display: flex;
  justify-content: flex-start;
  text-align: left;
  align-items: center;
}

#menuPage .plan-arrow p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #3A2E1B;
  text-align: center;
  text-align: left;
  padding-left: 0.5vw;
}

/* Reservation button */
#menuPage .plan-button {
  flex-shrink: 0;
  padding: 1.5rem 4.5rem;
  background: #9CC8E4;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 2rem;
}

/* Responsive: stack on narrower screens */
@media (max-width: 1024px) {
  #menuPage .before-after {
    flex-direction: column;
    align-items: stretch;
  }

  #menuPage .ba-gallery,
  #menuPage .plan-arrow,
  #menuPage .plan-button {
    margin-top: 1rem;
  }

  #menuPage .plan-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #menuPage .plan-desc {
    margin-top: 0.5rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Pediatric Orthodontics Intro (scoped under #menuPage)                      */
/* -------------------------------------------------------------------------- */
#menuPage #pediatric-intro {
  /* full‐bleed gradient background */
  background: linear-gradient(90deg, #FFF 0%, #C7BD9C 50%, #FFF 100%);
  width: 100vw;
  overflow: hidden;
  margin-bottom: 4vw;
  margin-top: 4vw;
}

/* Flex container: text on left, image on right, equal height */
#menuPage #pediatric-intro .pediatric-content {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: linear-gradient(90deg, #D3CCB2 0%, rgba(255, 255, 255, 0.1) 25%);
}

/* Text panel (left) */
#menuPage #pediatric-intro .pediatric-text {
  flex: 0 0 40%;
  /* 40% of viewport width */
  padding: 4rem 2rem;
  /* vertical + horizontal gutter */
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 3vw;
}

#menuPage #pediatric-intro .pediatric-text .section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #3A2E1B;
  margin-bottom: 1rem;
  text-align: center;
  font-family: "Hiragino Mincho Pro";
  font-size: 1.8rem;
}

#menuPage #pediatric-intro .pediatric-text .section-text {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #3A2E1B;
}

/* Image panel (right) */
#menuPage #pediatric-intro .pediatric-image-frame {
  flex: 1;
  /* fill remaining 60% */
  position: relative;
  /* top: 2vw; */
  aspect-ratio: 200 / 121;
  /* preserve design ratio */
  min-height: 25vw;
  /* ensure it’s not too short */
  overflow: hidden;
  background: linear-gradient(90deg, #D3CCB2 10%, rgba(255, 255, 255, 0.1) 25%);
}

/* Actual image blended and covered */
#menuPage #pediatric-intro .pediatric-image-frame img {
  position: absolute;
  inset: 0;
  width: 90vw;
  height: auto;
  object-fit: cover;
  mix-blend-mode: multiply;
  z-index: 1;
}

/* Gradient fade on left of the image */
#menuPage #pediatric-intro .pediatric-image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Responsive: stack vertically on narrow viewports */
@media (max-width: 64rem) {
  #menuPage #pediatric-intro .pediatric-content {
    flex-direction: column;
  }

  #menuPage #pediatric-intro .pediatric-text {
    flex: none;
    width: 100%;
    padding: 2rem 1rem;
    writing-mode: horizontal-tb;
    text-align: center;
  }

  #menuPage #pediatric-intro .pediatric-image-frame {
    width: 100%;
    aspect-ratio: auto;
    min-height: 50vw;
  }

  #menuPage #pediatric-intro .pediatric-image-frame img {
    mix-blend-mode: normal;
  }
}

/* Blend the left edge of the pediatric image into the section background */
#menuPage #pediatric-intro .pediatric-image-frame::before {
  background: linear-gradient(90deg, #D3CCB2 0%, rgba(255, 255, 255, 0.1) 25%);
}

/* -------------------------------------------------------------------------- */
/* Zirconia Intro (scoped under #menuPage)                                    */
/* -------------------------------------------------------------------------- */
#menuPage #zirconia-intro {
  position: relative;
  background: linear-gradient(0deg, #FFF 0%, #F1A1B1 100%);
  padding: 11.8rem 0rem 2rem;
  /* top‐pad for badge */
}

/* Badge (“title island”) */
#menuPage #zirconia-intro .badge {
  position: absolute;
  top: 2rem;
  left: -3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #F2EEDD;
  border-radius: 2.6rem;
  padding: 1rem 2rem;
  padding-left: 12vw;
  border: white solid 5px;
  z-index: 3;
  width: 50.30744rem;
  height: 10rem;
  text-align: center;
  flex-shrink: 0;
  flex-direction: row;
  justify-content: flex-start;
}

#menuPage #zirconia-intro .badge-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  margin-right: 2vw;
}

#menuPage #zirconia-intro .badge-title {
  color: #352302;
  font-family: "Kozuka Gothic Pr6N";
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
}

#menuPage #zirconia-intro .badge-subtitle {
  color: #352302;
  font-family: "Kozuka Gothic Pr6N";
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Shared bordered container for image + text */
#menuPage #zirconia-intro .treatment-visual {
  position: relative;
  display: flex;
  margin: 0 auto 0rem;
  border: 2px solid #D6C17E;
  border-radius: 0.5rem;
  overflow: hidden;
  border: none;
  position: relative;
  display: flex;
  overflow: hidden;
}

/* Left side: image with fade-on-right */
#menuPage #zirconia-intro .visual-image-frame {
  flex: 1 1 29%;
  min-height: 15rem;
  background: url('images/zirconia.png') center/cover no-repeat;
  position: relative;
  margin-left: 10vw;
  margin-right: -15vw;
}

#menuPage #zirconia-intro .visual-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ffc5c5 0%, rgba(255, 255, 255, 0) 20%);
  mix-blend-mode: multiply;
}

/* Right side: text over a semi-opaque background */
#menuPage #zirconia-intro .visual-description {
  flex: 1 1 42%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(89deg, #131010 0%, rgba(255, 255, 255, 0) 20%);
}

#menuPage #zirconia-intro .visual-description .section-heading {
  margin-bottom: 1rem;
  color: white;
  text-align: center;
  font-family: "Hiragino Mincho Pro";
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 300;
  max-width: 40vw;
}

#menuPage #zirconia-intro .visual-description .section-text {
  line-height: 1.6;
  color: #493636;
  font-family: "Kozuka Gothic Pr6N";
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 400;
  z-index: 999;
  margin-left: 10rem;
  margin-right: 10vw;
}

/* “桜ジルコニア治療とは？” Gradient Panel */
#menuPage #zirconia-intro .treatment-description-section {
  background: linear-gradient(90deg, #FFF 0%, #C7BD9C 50%, #FFF 100%);
  padding: 3rem 0rem;
  text-align: center;
  border-radius: 0.5rem;
  margin: 0 auto;
  max-width: 100vw;
  margin-top: 2vw;
}

#menuPage #zirconia-intro .treatment-description-section .section-heading {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #50482D;
  text-align: center;
  font-family: "Hiragino Mincho Pro";
}

#menuPage #zirconia-intro .treatment-description-section .section-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3A2E1B;
  max-width: 800px;
  margin: 0 auto;
}

#elinesmile-intro>div.treatment-visual>div.visual-image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0; */
  background: linear-gradient(176deg, #bddbed 0%, rgba(255, 255, 255, 20) 60%);
  pointer-events: none;
  /* background: linear-gradient(234deg, rgba(255, 255, 255, 0.00) 57.21%, #FFF 100%), url(<path-to-image>) lightgray 50% / cover no-repeat; */
  mix-blend-mode: multiply;
}

#menuPage #elinesmile-intro .visual-image-frame img {
  /* background: linear-gradient(90deg, #d3cbb1 0%, rgba(255, 255, 255, 0) 20%); */
  width: 90vw;
}

/* Responsive stack */
@media (max-width: 1024px) {
  #menuPage #zirconia-intro .treatment-visual {
    flex-direction: column;
  }

  #menuPage #zirconia-intro .visual-image-frame,
  #menuPage #zirconia-intro .visual-description {
    flex: 1 1 100%;
  }
}

#menuPage .badge-text {
  text-align: left;

}

#menuPage>section.elinesmile>div>h2 {
  color: #50482D;
  text-align: center;
  font-family: "Hiragino Mincho Pro";
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 300;
}

#menuPage>section.elinesmile>div>p {
  color: #2A1D06;
  font-family: "Hiragino Mincho Pro";
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 300;
  /* width: 50vw; */
  margin-top: 1vw;
  text-align: left;
  /* text-align: center; */
  line-height: 1.1;
}

/* -------------------------------------------------------------------------- */
/* Styling for the new “gold square” before Before/After labels                */
/* -------------------------------------------------------------------------- */
#menuPage .ba-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  /* Space between square and text */
  font-size: 1rem;
  /* 16px equivalent */
  color: #3A2E1B;
}

#menuPage .ba-label .ba-square {
  display: inline-block;
  width: 1.5rem;
  /* 24px equivalent */
  height: 1.5rem;
  /* 24px equivalent */
  background: #D6C17E;
  /* Gold color */
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* Styling for the long arrow SVG between the “Before” and “After” labels      */
/* -------------------------------------------------------------------------- */
#menuPage .label-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1rem;
  /* Horizontal gap around the arrow */
  flex-shrink: 0;
}

#menuPage .label-arrow svg {
  width: 10rem;
  /* 160px equivalent */
  height: auto;
  display: block;
}

/* -------------------------------------------------------------------------- */
/* Ensure the circular “before-after-divider” arrow remains centered between   */
/* the two image columns                                                   */
/* -------------------------------------------------------------------------- */
#menuPage .before-after-divider {
  margin: 0 1.5rem;
  /* Space between the images */
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* Example: Adjust ba-gallery to center items horizontally and align         */
/* -------------------------------------------------------------------------- */
#menuPage .ba-gallery {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  /* Gap between each before-after-item and arrows */
  background: #F7F7F7;
  border-radius: 1rem;
  padding: 2rem;
}

/* -------------------------------------------------------------------------- */
/* 1) Layout ba-gallery as two stacked rows: labels on top, images on bottom  */
/* -------------------------------------------------------------------------- */
#menuPage .ba-gallery {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  /* gap between top label-row and bottom image-row */
  background: #F7F7F7;
  border-radius: 1rem;
  padding: 2rem;
}

/* -------------------------------------------------------------------------- */
/* 2) TOP ROW: “Before” → long‐arrow → “After”                                */
/* -------------------------------------------------------------------------- */
#menuPage .ba-label-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  /* space between Before‐arrow and arrow‐After */
  flex-wrap: wrap;
  /* allow wrapping on narrow widths */
}

/* Each label‐block (gold square + text) */
#menuPage .label-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* small space between square and text */
}

/* The gold square itself */
#menuPage .ba-square {
  display: inline-block;
  width: 1.5rem;
  /* about 24px */
  height: 1.5rem;
  background: #D6C17E;
  flex-shrink: 0;
}

/* The text itself */
#menuPage .ba-text {
  font-size: 1rem;
  /* 16px equivalent */
  color: #3A2E1B;
  font-weight: 500;
}

/* Long straight arrow between Before/After labels */
#menuPage .label-arrow {
  display: flex;
  align-items: flex-start;
  justify-content: space-evenly;
  flex: 0 0 auto;
}

#menuPage .label-arrow svg {
  width: 10rem;
  /* about 160px */
  height: auto;
}

/* -------------------------------------------------------------------------- */
/* 3) BOTTOM ROW: images + round arrow                                         */
/* -------------------------------------------------------------------------- */
#menuPage .ba-image-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  /* space between before‐item, divider, after‐item */
}

/* Re‐use existing .before-after-item for each image; no changes here */

/* Center the round arrow SVG between the two images */
#menuPage .before-after-divider {
  margin: 0 2rem;
  /* horizontal gap around the circle */
  flex-shrink: 0;
}

/* Each pediatric image */
#menuPage .ba-image {
  width: 12rem;
  /* ~192px */
  height: auto;
  border-radius: 0.25rem;
  object-fit: cover;
}

/* -------------------------------------------------------------------------- */
/* 4) Keep your existing plan-arrow and plan-button rules unchanged            */
/* -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/* 5) Responsive behavior: wrap top labels or stack entire gallery vertically */
/* -------------------------------------------------------------------------- */
@media (max-width: 64rem) {

  /* ~1024px */
  /* Let label‐row wrap onto multiple lines if needed */
  #menuPage .ba-label-row {
    gap: 2rem;
  }

  /* Stack image‐row if narrow */
  #menuPage .ba-image-row {
    flex-direction: column;
  }

  #menuPage .ba-image-row .before-after-divider {
    margin: 2rem 0;
    /* vertical gap for the round arrow */
  }
}

/* -------------------------------------------------------------------------- */
/* Shared container for the two‐row Before/After gallery                      */
/* -------------------------------------------------------------------------- */
#menuPage .ba-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* space between label row and image row */
  background: #F7F7F7;
  border-radius: 1rem;
  /* 16px */
  padding: 2rem;
  /* 32px */
  /* width: 100%; */
  box-sizing: border-box;
}

/* -------------------------------------------------------------------------- */
/* 1) TOP ROW: gold square + Before, long arrow, gold square + After          */
/* -------------------------------------------------------------------------- */
#menuPage .ba-label-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  /* ~64px between blocks */
  flex-wrap: wrap;
  /* wrap if screen too narrow */
  width: 100%;
}

#menuPage .label-block {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  /* ~8px between square and text */
}

#menuPage .ba-square {
  width: 1.5rem;
  /* 24px */
  height: 1.5rem;
  /* 24px */
  background: #D6C17E;
  flex-shrink: 0;
  border-radius: 0.25rem;
  /* slight rounding */
}

#menuPage .ba-text {
  font-size: 1rem;
  /* 16px */
  color: #3A2E1B;
  font-weight: 500;
  white-space: nowrap;
}

#menuPage .label-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#menuPage .label-arrow svg {
  width: 8rem;
  /* ~128px */
  height: auto;
  display: block;
}

/* -------------------------------------------------------------------------- */
/* 2) BOTTOM ROW: “Before” image, round arrow, “After” image                   */
/* -------------------------------------------------------------------------- */
#menuPage .ba-image-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  /* ~32px between image blocks */
  width: 100%;
}

#menuPage .before-after-item {
  flex-shrink: 0;
  text-align: center;
}

#menuPage .ba-image {
  width: 12rem;
  /* ~192px */
  height: auto;
  border-radius: 0.5rem;
  /* 8px */
  object-fit: cover;
}

#menuPage .before-after-divider {
  margin: 0 2rem;
  /* ~32px horizontal gap around circle */
  flex-shrink: 0;
}

#menuPage .before-after-divider svg {
  width: 3rem;
  /* ~48px */
  height: auto;
  display: block;
}

/* -------------------------------------------------------------------------- */
/* Responsive adjustments                                                      */
/* -------------------------------------------------------------------------- */
@media (max-width: 64rem) {

  /* ~1024px */
  /* Top row: allow wrapping with smaller gaps */
  #menuPage .ba-label-row {
    gap: 2rem;
    /* ~32px when wrapping */
    justify-content: center;
  }

  /* Bottom row: stack images + arrow vertically */
  #menuPage .ba-image-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    /* ~24px vertical gap */
  }

  #menuPage .before-after-divider {
    margin: 1.5rem 0;
    /* ~24px vertical gap */
  }

  /* Scale down arrow between labels if needed */
  #menuPage .label-arrow svg {
    width: 6rem;
    /* ~96px */
  }
}

#zirconia-plans {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#whitening-content {
  display: flex !important;
  align-items: stretch;
  width: 100%;
  flex-direction: row;
}

.whitening-text {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 3vw;
}

.badge-whitening {
  width: 50vw !important;
  margin-bottom: 4vw !important;
}

#pediatric-intro .pediatric-section.whitening-intro {
  margin-top: 0vw !important;
}

.whitening-section {
  background: linear-gradient(0deg, #FFF 2%, #61A8D3 100%) !important;
  padding-bottom: 2rem !important;
}

.whitening-text .section-heading {
  color: #50482D;
  font-family: "Hiragino Mincho Pro";
  font-size: 2rem;
  font-style: normal;
  font-weight: 300;
  text-align: center;
  margin-bottom: 3vw;
}

.whitening-text .section-text {
  color: #2A1D06;
  font-family: "Hiragino Mincho Pro";
  font-size: 1rem;
  font-style: normal;
  font-weight: 300;
}

#zirconia-plans .plan-item .plan-header::before {
  background: #F3A9B7 !important;
}

#zirconia-plans .plan-item .plan-header {
  border-bottom: solid #F3A9B7 10px !important;
}

#whitening-info {
  margin-bottom: 5vw;
}

#hero .hero-content {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  /* above the image */
}

#hero .hero-content h1 {
  color: #000;
  text-align: center;
  font-family: "Hiragino Mincho Pro";
  font-size: 2.2rem;
  font-style: normal;
  font-weight: 300;
}

.hero-content p {
  color: #000;
  font-family: "Hiragino Mincho Pro";
  font-size: 1.5625rem;
  font-style: normal;
  font-weight: 300;
}

#hero .hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  color: #000;
  margin-bottom: 0.5rem;
}

#hero .hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #000;
}

#hero {
  position: relative;
  width: 100%;
  height: 50vh;
  /* adjust as needed for design */
  min-height: 24rem;
  /* ensures it never gets too short */
  overflow: hidden;
}

/* ========================================================================== */
/* *whitening article*                                                        */
/* ========================================================================== */

/* Section wrapper */
#features.featuresSection {
  /* text-align: center; */
  /* width: 90%; */
  display: flex;
  padding: 4rem 2rem;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
}

/* Grid of four feature items */
#features .featuresGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 85vw;
}

/* Individual feature card */
#features .featureItem {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title bar above each image */
#features .featureTitle {
  background: #61A8D3;
  color: #ffffff;
  font-size: 1.25rem;
  /* 20px equivalent */
  padding: 1rem 0;
  width: 100%;
  text-align: center;
  /* border-radius: 0.25rem; */
  margin-bottom: 1rem;
}

/* Feature image styling */
#features .featureImage {
  width: 100%;
  height: auto;
  display: block;
  /* border-radius: 0.5rem; */
  object-fit: cover;
}

/* Description text under the grid */
#features .featuresDescription {
  margin-top: 3rem;
  font-size: 1rem;
  /* 16px equivalent */
  line-height: 1.6;
  text-align: left;
  max-width: 60vw;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive: two columns on medium screens */
@media (max-width: 64rem) {

  /* ~1024px */
  #features .featuresGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: single column on small screens */
@media (max-width: 40rem) {

  /* ~640px */
  #features .featuresGrid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* *whitening examples* — first article only                                 */
/* -------------------------------------------------------------------------- */

/* wrapper */
#whitening-examples {
  width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 2rem 0;
}

/* 1) Title bar (90vw wide, flush left) */
#whitening-examples .planHeader {
  width: 95vw;
  margin-left: calc(-1 * var(--page-padding, 2rem));
  margin-bottom: 2vw;
  background: #61A8D3;
  color: #fff;
  font-size: 1.5rem;
  /* =24px */
  text-align: center;
  padding: 1rem 0;
  border-radius: 0.25rem 0.25rem 0 0;
}

/* 2) planContent holds blocks + images */
#whitening-examples .planContent {
  position: relative;
  padding: 0 var(--page-padding, 2rem);
}

/* common for both steps */
#whitening-examples .step {
  position: relative;
  background: #F2EEDD;
  /* border-radius: 0.5rem; */
  padding: 2rem 4vw;
  padding-bottom: 0.7vw;
  box-sizing: border-box;
  width: 55vw;
}

/* the little circle badge */
#whitening-examples .step .badge {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  background: rgba(97, 168, 211, 0.2);
  width: 6rem;
  /* =96px */
  height: 6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.875rem;
  /* =14px */
  line-height: 1.2;
  padding: 0.5rem;
  box-sizing: border-box;
}

/* Step 1 sits at top-left of planContent */
#whitening-examples .step1 {
  margin-bottom: 4rem;
  /* space for step2 to slide underneath */
}

/* Images sit to the right of step 1, vertically centered on it */
#whitening-examples .exampleImgs {
  position: absolute;
  top: 22.5%;
  right: var(--page-padding, 2rem);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
}

#whitening-examples .exampleImgs img {
  width: 12rem;
  /* =192px */
  height: auto;
  object-fit: cover;
  border-radius: 0.25rem;
}

#whitening-examples .exampleImgs .after {
  /* border: 0.5rem solid #61A8D3; */
  /* highlight “after” */
}

#whitening-examples .exampleImgs .imgArrow {
  font-size: 3.5rem;
  /* =32px */
  color: #61A8D3;
  line-height: 1;
  margin: 0 -1vw;
}

/* Step 2 is offset like a stair below & to the right */
#whitening-examples .step2 {
  margin-left: 30rem;
  margin-top: -4rem;
  /* pull up under step1 */
}

/* TYPE STYLES INSIDE EACH BLOCK */
#whitening-examples .planTitle {
  margin: 0;
  font-size: 1.1rem;
  /* =20px */
  color: #327FAE;
}

#whitening-examples .planPrice {
  font-size: 1.25rem;
  /* =20px */
  color: #327FAE;
  text-align: right;
  margin-top: -1.5rem;
  /* pull up alongside title */
}

#whitening-examples .descBox hr {
  border: none;
  border-top: 1px solid #61A8D3;
  margin: 0.4rem 0;
}

#whitening-examples .planText {
  font-size: 0.9rem;
  /* =16px */
  color: #327FAE;
  margin: 0.5rem 0 0;
  line-height: 1.6;
  margin-bottom: 2vw;
}

/* 1) constrain both blocks & images to the same 90vw width as the title */
#whitening-examples .planContent {
  width: 90vw;
  margin-left: calc(-1 * var(--page-padding, 2rem));
  margin-left: 8vw;
  padding: 0;
  /* remove extra horizontal padding */
  margin-top: 4vw;
}

/* 2) tighten vertical gap between title and first block */
#whitening-examples .whiteningExample {
  gap: 1rem;
  /* instead of 2rem */
}

/* 3) reduce the “step” offset so the second block bottoms align with the title */
#whitening-examples .step1 {
  margin-bottom: 2rem;
  /* was 4rem */
}

#whitening-examples .step2 {
  margin-top: 3.5rem;
  /* roughly the title’s height (1rem top + 1.5rem line + 1rem bottom) */
}

/* 4) ensure before/after images also stay within that 90vw and align right */
#whitening-examples .exampleImgs {
  right: 5vw;
  /* (no width change—images will now stop at the same right edge as the title) */
}

/* -------------------------------------------------------------------------- */
/* *whitening examples* — single reversed article (Home Whitening)            */
/* -------------------------------------------------------------------------- */

/* 1) Title bar, flush right (95vw wide) */
#whitening-examples .whiteningExample.reversed .planHeader {
  width: 95vw;
  margin-left: auto;
  margin-right: calc(-1 * var(--page-padding, 2rem));
  background: #61A8D3;
  color: #fff;
  font-size: 1.5rem;
  /* 24px */
  text-align: center;
  padding: 1rem 0;
  border-radius: 0.25rem 0.25rem 0 0;
  margin-top: 4vw;
}

/* 2) Constrain content to same 90vw footprint, flush right */
#whitening-examples .whiteningExample.reversed .planContent {
  width: 90vw;
  margin-left: 0;
  margin-right: calc(-1 * var(--page-padding, 2rem));
  position: relative;
}

/* 3) Single step block */
#whitening-examples .whiteningExample.reversed .step1 {
  position: relative;
  background: #F2EEDD;
  border-radius: 0.5rem;
  padding: 2rem 4vw;
  box-sizing: border-box;
  width: 55vw;
  margin-right: 30rem;
  /* slide left under images */
  margin-bottom: 0;
  /* only one block */
}

/* 4) Badge stays top-left of that block */
#whitening-examples .whiteningExample.reversed .step1 .badge {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  background: rgba(97, 168, 211, 0.2);
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  /* 14px */
  text-align: center;
  padding: 0.5rem;
  box-sizing: border-box;
}

/* 5) Before/After images on the left side, vertically centered */
#whitening-examples .whiteningExample.reversed .exampleImgs {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
}

#whitening-examples .whiteningExample.reversed .exampleImgs .before,
#whitening-examples .whiteningExample.reversed .exampleImgs .after {
  width: 12rem;
  /* 192px */
  height: auto;
  object-fit: cover;
  border-radius: 0.25rem;
  /* 4px */
  /* margin-left: -1vw; */
}

#whitening-examples .whiteningExample.reversed .exampleImgs .after {
  /* border: 0.5rem solid #61A8D3; */
  /* highlight after */
  margin-right: -1vw;
}

#whitening-examples .whiteningExample.reversed .exampleImgs .imgArrow {
  /* 32px */
  font-size: 3.5rem;
  color: #61A8D3;
  line-height: 1;
  margin: 0 -1vw;
}

/* 6) Text inside block */
#whitening-examples .whiteningExample.reversed .planTitle {
  margin: 0;
  font-size: 1.25rem;
  /* 20px */
  color: #327FAE;
}

#whitening-examples .whiteningExample.reversed .planPrice {
  font-size: 1.25rem;
  /* 20px */
  color: #327FAE;
  text-align: right;
  margin-top: -1.5rem;
}

#whitening-examples .whiteningExample.reversed .descBox hr {
  border: none;
  border-top: 1px solid #61A8D3;
  margin: 1rem 0;
}

#whitening-examples .whiteningExample.reversed .planText {
  font-size: 1rem;
  /* 16px */
  color: #327FAE;
  margin: 0.5rem 0 0;
  line-height: 1.6;
}

#whitening-examples>article.whiteningExample.reversed>div.planContent>div.step.step1 {
  margin-left: 8vw;
  /* margin-right: 4vw; */
}

#whitening-examples>article.whiteningExample.reversed>div.planContent>div.exampleImgs {
  right: -2vw;
}

/* -------------------------------------------------------------------------- */
/* *whitening examples* — third article (Dual Whitening Course)              */
/* -------------------------------------------------------------------------- */

/* 1) Title bar flush-left, 95vw wide */
#whitening-examples .whiteningExample:last-child .exampleHeader {
  width: 92vw;
  margin-left: 0;
  padding-left: 2vw;
  background: #61A8D3;
  color: #fff;
  font-size: 1.5rem;
  /* 24px */
  text-align: center;
  padding: 1rem;
  border-radius: 0.25rem 0.25rem 0 0;
  margin-top: 4vw;
  margin-bottom: 4vw;
}

/* 2) Centered content block, 55vw wide */
#whitening-examples .whiteningExample:last-child .exampleContainer {
  width: 65vw;
  margin: 0 auto;
  background: #F2EEDD;
  /* border-radius: 0.5rem; */
  padding: 4rem 8vw;
  box-sizing: border-box;
  margin-bottom: 4vw;
}

/* 3) Plan titles */
#whitening-examples .whiteningExample:last-child .planTitle {
  margin: 0;
  font-size: 1.25rem;
  /* 20px */
  color: #327FAE;
}

/* 4) Plan prices, aligned right */
#whitening-examples .whiteningExample:last-child .planPrice {
  font-size: 1.25rem;
  /* 20px */
  color: #327FAE;
  text-align: right;
  margin-top: -1.5rem;
  /* lift to sit alongside title */
}

/* 5) Divider lines */
#whitening-examples .whiteningExample:last-child hr {
  border: none;
  border-top: 1px solid #61A8D3;
  margin: 1rem 0;
}

/* 6) Plan description text */
#whitening-examples .whiteningExample:last-child .planText {
  font-size: 1rem;
  /* 16px */
  color: #327FAE;
  margin: 0.5rem 0 0;
  line-height: 1.6;
}

/* 1) kill the old full-width border */
#menuPage #elinesmile-intro .treatment-visual {
  border: none;
  /* keep these */
  position: relative;
  display: flex;
  overflow: hidden;
  margin-top: 4vw;
}

/* 2) draw a centered 90vw border around just the image+text area */
#menuPage #elinesmile-intro .treatment-visual::before {
  content: "";
  position: absolute;
  top: 1.3vw;
  left: 56%;
  transform: translateX(-50%);
  width: 78vw;
  height: 20vw;
  border: 2px solid #D6C17E;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 999;
}

#aligner-plans>div {
  left: -37vw;
  top: 150vw;
  transform: rotate(90.021deg);
  color: #F8F4E8;
  font-family: "Kozuka Gothic Pr6N";
}

/* -------------------------------------------------------------------------- */
/* Bubble Cleaning Section                                                    */
/* -------------------------------------------------------------------------- */

/* 1) Full-width title bar */
#bubble-cleaning .sectionHeader {
  width: 100vw;
  margin-left: 0;
  background: #C7BD9C;
  color: #fff;
  font-size: 1.1rem;
  /* 24px */
  text-align: center;
  padding: 1rem 0;
}

/* 2) Main content wrapper */
#bubble-cleaning .bubbleContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem var(--page-padding, 2rem);
  box-sizing: border-box;
  gap: 2rem;
}

/* 3) Two side-by-side images */
#bubble-cleaning .bubbleImages {
  display: flex;
  gap: 2rem;
}

#bubble-cleaning .bubbleImages .cleaningImage {
  width: 30vw;
  max-width: 40rem;
  /* height: fit-content; */
  object-fit: cover;
  border-radius: 0.5rem;
}

/* 4) Explanatory text under images (60vw wide) */
#bubble-cleaning .bubbleText {
  width: 60vw;
  max-width: 50rem;
  text-align: left;
  font-size: 1rem;
  /* 16px */
  line-height: 1.6;
  color: #3A2E1B;
}

/* -------------------------------------------------------------------------- */
/* Plaque Removal Section                                                    */
/* -------------------------------------------------------------------------- */

/* 1) Section wrapper */
#plaque-removal {
  width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
}

/* 2) Full-width title bar, text aligned right */
#plaque-removal .sectionHeader {
  width: 80vw;
  margin-left: 0;
  margin-right: 0;
  background: #C7BD9C;
  color: #fff;
  font-size: 1.1rem;
  /* 24px */
  text-align: left;
  padding: 1rem 20vw;
  margin-bottom: 3vw;
  align-self: flex-end;
}

/* 3) Two side-by-side before/after images */
#plaque-removal .plaqueImages {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0 var(--page-padding, 2rem);
  box-sizing: border-box;
}

#plaque-removal .plaqueImages img {
  width: 30vw;
  max-width: 40rem;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 2vw;
}

/* 4) Centered explanatory text below */
#plaque-removal .plaqueText {
  width: 60vw;
  max-width: 50rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  /* 16px */
  line-height: 1.6;
  color: #3A2E1B;
}

/* -------------------------------------------------------------------------- */
/* *Cleaning Plans* — last article (“Plague removal” experiment)             */
/* -------------------------------------------------------------------------- */

/* 1) Container full-width */
#cleaningSection .cleaningPlan {
  width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
  padding-bottom: 4rem;
}

/* 2) Title bar, left-aligned, 80vw wide */
#cleaningSection .cleaningPlan .planHeader {
  width: 80vw;
  margin-left: 0;
  background: #C7BD9C;
  color: #fff;
  font-size: 1.1rem;
  text-align: left;
  padding: 1rem 4vw;
  border-radius: 0.25rem 0.25rem 0 0;
  margin-bottom: 4vw;
}

/* 3) Pale description block, centered, same 80vw */
#cleaningSection .cleaningPlan .planList {
  width: 60vw;
  margin: 0 auto;
  background: #F7F1DE;
  padding: 4rem 8vw;
  box-sizing: border-box;
}

/* 4) Each row: title, duration, price */
#cleaningSection .cleaningPlan .planRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.125rem;
  color: #327FAE;
}

/* 5) Underline the h4 titles */
#cleaningSection .cleaningPlan .planTitle {
  margin: 0;
  text-decoration: underline;
}

/* 6) Duration sits right of title */
#cleaningSection .cleaningPlan .planDuration {
  font-size: 1rem;
  margin: 0 1rem;
}

/* 7) Price aligned right */
#cleaningSection .cleaningPlan .planPrice {
  font-size: 1.125rem;
  text-align: right;
}

/* 8) Divider lines */
#cleaningSection .cleaningPlan hr {
  border: none;
  border-top: 1px solid #61A8D3;
  margin: 1rem 0;
}

/* 9) Reservation button centered under everything */
#cleaningSection .cleaningPlan .reservation {
  text-align: center;
  margin-top: 2rem;
}

#cleaningSection .cleaningPlan .reservation-button {
  display: inline-block;
  color: #fff;
  padding: 1.5rem 6rem;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0.25rem;
  border: 2px solid #D6C17E;
  background: #D6C17E;
  margin-top: 2vw;
}

#menuPage #zirconia-intro .treatment-visual::before {
  content: "";
  position: absolute;
  top: 1.3vw;
  left: 51%;
  transform: translateX(-50%);
  width: 80vw;
  height: 18vw;
  border: 2px solid #D6C17E;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 999;
}

#clinic #hero {
  height: 30vw;
  margin-bottom: -4vw;
}
#aligner-plans > article:nth-child(2) > p{
  margin: 0 13vw;
  margin-top: 2rem;
  font-size: 0.8rem;
}
#aligner-plans > article:nth-child(2) > div.plan-header{
    margin-right: 13vw;
    margin-left: 13vw;
}
#menuPage #whitening-content{height: 30vw;}
@media (max-width: 480px) {

  /* General body and header/footer rules */
  header,
  footer {}

  /* Make the header a single row */
  #menuPage .plan-item .plan-header {
    flex-direction: row;
    align-items: center;
    padding-left: 2rem;
    /* space to account for the colored bar */
    padding-bottom: 0.8rem;
    /* tighten the gap below text */
  }

  /* Hide the “extra” underline you’re getting from the before-after selector */
  #menuPage .plan-header+.before-after::before {
    display: none;
  }

  /* Tweak the title so it sits nicely beside the bar */
  #menuPage .plan-item .plan-title {
    margin: 0 1rem 0 0;
    /* give a little breathing room on the right */
    font-size: 1.25rem;
    /* ~20px */
    white-space: nowrap;
    /* keep it on one line if possible */
  }

  /* Pull the description up under the title, indented to align with text, 
     and shrink it slightly */
  #menuPage .plan-item .plan-desc {
    margin-top: 0.25rem;
    margin-left: calc(2rem + 1rem);
    /* match the padding-left + title gap */
    font-size: 0.875rem;
    /* ~14px */
    line-height: 1.4;
  }

  /* 1) Stack everything vertically & center it */
  #menuPage .before-after {
    flex-direction: column;
    align-items: center;
  }

  /* 2) Make the little cost‐triangle point down instead of left, and center it */
  #menuPage .plan-arrow {
    order: 2;
    /* put it after the gray “cloud” */
    width: 12rem;
    /* shrink a bit on mobile */
    height: 7rem;
    margin: 1rem 0;
    /* space around */
    /* new clip‐path: point at bottom */
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
    background: #D6C17E;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* 3) Move the “→予約” button underneath the triangle */
  #menuPage .plan-button {
    order: 3;
    margin-top: 0;
    /* reset any big top‐margins */
  }

  /* 1) Make the header a two-column flex container */
  .plan-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    /* space between title‐group and description */
  }

  /* 2) Stack the label + title vertically */
  .plan-header .title-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    /* small gap between span and h3 */
  }

  /* 3) Let the description fill the remaining space */
  .plan-header .plan-desc {
    flex: 1;
    /* grow to take up the rest */
    margin: 0;
    /* reset any margins */
  }

  /* 4) (Optional) Tweak the label and title styles as before */
  .plan-label {
    font-size: 0.875rem;
    color: #666;
  }

  .plan-title {
    font-size: 1.5rem;
    color: #3A2E1B;
    margin: 0;
  }

  #zirconia-intro>div.treatment-visual>div.visual-image-frame>img {
    height: 10rem;
    max-width: 70vw;
  }

  /* 1) Make the title bar full-width and reset its margins/padding */
  #whitening-examples .planHeader {
    width: 100vw !important;
    margin: 0 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0 !important;
    /* square corners on mobile */
  }

  /* 2) Stack everything vertically */
  #whitening-examples .planContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 !important;
    align-content: center;
  }

  /* 3) Each “step” block becomes full-width */
  #whitening-examples .step {
    width: 90vw !important;
    margin: 1rem !important;
    padding: 1rem !important;
    border-radius: 0 !important;
  }

  /* 4) Kill the stair offset on the 2nd block */
  #whitening-examples .step2 {
    margin: 0 auto 1rem !important;
  }

  /* 5) Images go full-width (with some side padding) */
  #whitening-examples .exampleImgs {
    position: relative !important;
    transform: none !important;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0 !important;
    width: 100vw;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  #whitening-examples .exampleImgs img {
    width: 80vw;
    max-width: 300px;
    height: auto;
  }

  #whitening-examples .exampleImgs .imgArrow {
    margin: 0 !important;
    font-size: 2rem;
  }

  /* 6) Badge circles repositioned above each block */
  #whitening-examples .step .badge {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: -2rem auto 1rem;
  }

  #whitening-content>div.pediatric-image-frame>img {
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.00) 64.42%, #FFF 100%), url(<path-to-image>) lightgray -49.057px -0.044px / 113.005% 102.757% no-repeat !important;
    mix-blend-mode: multiply;
    margin-left: 15vw !important;
    margin-top: 1rem !important;
  }

  /* Hero Section under #menuPage */
  #menuPage .hero-section {
    max-height: 60vw;
    height: 57vw;
    min-height: 50vw;
    margin-bottom: -1rem;
}

  #menuPage .hero-section .hero-image {
    max-height: 60vw;
}

  #menuPage .hero-section .hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    align-content: center;
}

  #menuPage .hero-section .hero-title {
    font-size: 2rem;
}

  #menuPage .hero-section .hero-subtitle {}

  /* Hero overlay */
  #menuPage .hero-section::before {
    height: 57vw;
}

  #menuPage .hero-image {}

  #menuPage .hero-content {}

  /* ELINESMILE Intro (scoped under #menuPage) */
  #menuPage #elinesmile-intro {
    margin-bottom: 0;
}

  /* Badge ("title island") */
  #menuPage #elinesmile-intro .badge {
    width: 25.5rem !important;
    left: 4vw;
    height: 8rem;
  }

  #menuPage #elinesmile-intro .badge-icon {
    width: 6rem;
    height: 3rem;
    margin-left: -1rem;
  }

  #menuPage #elinesmile-intro .badge-title {
    font-size: 1rem;
  }

  #menuPage #elinesmile-intro .badge-subtitle {
    font-size: 1.1rem;
  }

  /* Shared bordered container for image + text */
  #menuPage #elinesmile-intro .treatment-visual {
    display: flex;
    flex-direction: row;
    height: 50vw;
    overflow: visible;
    align-items: center;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 57.21%, #FFF 100%);
    mix-blend-mode: multiply;
  }

  /* Left side: image with fade-on-right */
  #menuPage #elinesmile-intro .visual-image-frame {
    margin-right: 0;
    margin-left: 0;
    mix-blend-mode: multiply;
  }

  #menuPage #elinesmile-intro .visual-image-frame::after {}

  /* Right side: text over a semi-opaque background */
  #menuPage #elinesmile-intro .visual-description {
    margin-right: 1vw;
    margin-top: 20rem;
    width: 80vw;
    margin-left: -9rem;
    flex: 1 1 80%;
  }

  #menuPage #elinesmile-intro .visual-description .section-heading {
    font-size: 1.1rem;
    width: 15rem;
    margin-left: -5rem;
  }

  #menuPage #elinesmile-intro .visual-description .section-text {
    font-size: 0.7rem;
    width: 8rem;
    width: 26rem;
    margin-left: -10rem;
  }

  /* "ELINESMILEとは？" Gradient Panel */
  #menuPage .treatment-description-section {
    margin-top: 11rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 4rem 1rem;
  }

  #menuPage #elinesmile-intro .treatment-description-section .section-heading {}

  #menuPage #elinesmile-intro .treatment-description-section .section-text {}

  #menuPage .badge-text {}

  /* GS Plan (scoped under #menuPage) */
  #menuPage #aligner-plans {
    padding: 0;
    margin-top: 2rem;
  }

  #menuPage .plan-item {
    margin-left: 5vw;
    margin-right: 5vw;
}

  /* Header bar & title */
  #menuPage .plan-item .plan-header {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: flex-start;
  }

  #menuPage .plan-item .plan-header::before {}

  #menuPage .plan-item .plan-label {}

  #menuPage .plan-item .plan-title {}

  #menuPage .plan-item .plan-desc {
    font-size: 0.9rem;
    margin-left: 0.5rem;
    padding-right: 3vw;
  }

  /* Underline */
  #menuPage .plan-header+.before-after::before {}

  #menuPage .whitening-intro {
}

  /* Container for the row */
  #menuPage .before-after {}

  #whitening-content {
    /* background: linear-gradient(270deg, rgba(255, 255, 255, 0.00) 64.42%, #FFF 100%), url(<path-to-image>) lightgray -49.057px -0.044px / 113.005% 102.757% no-repeat!important; */
  }

  /* The gray "cloud" around before/after */
  #menuPage .ba-gallery {
    margin-left: 2vw;
    margin-right: 2vw;
  }

  /* Before/After items */
  #menuPage .before-after-item {}

  #menuPage .ba-label {}

  #menuPage .ba-image {
    width: 8rem;
  }

  /* Divider arrow between images */
  #menuPage .before-after-divider {}

  /* Cost arrow */
  #menuPage .plan-arrow {}

  #menuPage .plan-arrow p {
    /* transform: rotateX(90deg); */
    margin-top: -1.5rem;
    text-align: center;
  }

  /* Reservation button */
  #menuPage .plan-button {}

  /* Pediatric Orthodontics Intro (scoped under #menuPage) */
  #menuPage #pediatric-intro {
    background: none;
  }
  #menuPage #pediatric-intro .pediatric-content {
    display: flex;
    flex-direction: column;
    background: none;
    margin-bottom: 3rem;
    margin-top: 4rem;
  }
  #pediatric-intro #whitening-content {
    display: flex !important;
    flex-direction: column-reverse !important;
    margin-bottom: 0rem !important;
  }
#whitening-content > div.pediatric-image-frame{
  
}
#aligner-plans > article:nth-child(2) > p {
    margin: 0 2vw;
    margin-top: 3rem;
}
  /* Flex container: text on left, image on right, equal height */


  /* Text panel (left) */
  #menuPage #pediatric-intro .pediatric-text {
    padding-right: 3rem;
    margin-left: 0;
    background: linear-gradient(90deg, #FFF 0%, #C7BD9C 50%, #FFF 100%);
    margin-top: -3rem;
  }

  #menuPage #pediatric-intro .pediatric-text .section-heading {
    font-size: 1.4rem;
  }

  #menuPage #pediatric-intro .pediatric-text .section-text {
    font-size: 0.8rem;
    text-align: justify;
  }

  /* Image panel (right) */
  #menuPage #pediatric-intro .pediatric-image-frame {
    margin: auto;
    margin-bottom: 2rem !important;
    /* padding-left: 2vw; */
    background: none;
    margin-bottom: 3rem;
  }

  /* Actual image blended and covered */
  #menuPage #pediatric-intro .pediatric-image-frame img {
    margin: auto;
    background: none;
  }

  /* Gradient fade on left of the image */
  #menuPage #pediatric-intro .pediatric-image-frame::before {
    background: none;
  }

  /* Zirconia Intro (scoped under #menuPage) */
  #menuPage #zirconia-intro {
    background: linear-gradient(281deg, #FFF 0%, #F1A1B1 100%);
    margin-bottom: 3rem;
    padding-bottom: 0;
  }

  /* Badge ("title island") */
  #menuPage #zirconia-intro .badge {
    width: 25.5rem;
    left: 4vw;
    height: 8rem;
    margin-bottom: 2rem;
  }

  #menuPage #zirconia-intro .badge-icon {
    width: 4rem;
    height: 4rem;
  }

  #menuPage #zirconia-intro .badge-title {
    font-size: 1.2rem;
  }

  #menuPage #zirconia-intro .badge-subtitle {
    font-size: 1.4rem;
  }

  /* Shared bordered container for image + text */
  #menuPage #zirconia-intro .treatment-visual {
    display: flex;
    flex-direction: row;
    background: none;
    z-index: 1;
    margin-top: 0;
  }

  /* Left side: image with fade-on-right */
  #menuPage #zirconia-intro .visual-image-frame {
    background: none;
    height: 12rem;
    max-width: 70vw;
    margin-left: 0;
  }

  #menuPage #zirconia-intro .visual-image-frame::after {
    background: none;
  }

  /* Right side: text over a semi-opaque background */
  #menuPage #zirconia-intro .visual-description {
    background: none;
    margin-right: 1vw;
    margin-top: 2rem;
    padding: 0;
    z-index: 999;
    margin-top: 11rem;
    margin-right: 2rem;
  }

  #menuPage #zirconia-intro .visual-description .section-heading {
    font-size: 1.2rem;
    max-width: 30rem;
    width: auto;
    margin-left: 1rem;
  }

  #menuPage #zirconia-intro .visual-description .section-text {
    font-size: 0.8rem;
    padding: 0;
    margin: 0;
  }

  /* "桜ジルコニア治療とは？" Gradient Panel */
  #menuPage #zirconia-intro .treatment-description-section {
    border-radius: 0;
  }

  #menuPage #zirconia-intro .treatment-description-section .section-heading {
    font-size: 1.4rem;
  }

  #menuPage #zirconia-intro .treatment-description-section .section-text {
    font-size: 0.8rem;
    text-align: justify;
    padding: 0 2rem;
  }

  #elinesmile-intro>div.treatment-visual>div.visual-image-frame::before {}

  #menuPage #elinesmile-intro .visual-image-frame img {
    height: 10rem;
    max-width: 70vw;
  }

  #menuPage>section.elinesmile>div>h2 {
    font-size: 1.1rem;
  }

  #menuPage>section.elinesmile>div>p {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  /* Styling for the new "gold square" before Before/After labels */
  #menuPage .ba-label .ba-square {}

  /* Styling for the long arrow SVG between the "Before" and "After" labels */
  #menuPage .label-arrow {}

  #menuPage .label-arrow svg {
    width: 4rem;
  }

  /* TOP ROW: "Before" → long‐arrow → "After" */
  #menuPage .ba-label-row {
    gap: 0.5rem;
}

  /* Each label‐block (gold square + text) */
  #menuPage .label-block {}

  /* The gold square itself */
  #menuPage .ba-square {}

  /* The text itself */
  #menuPage .ba-text {}

  /* BOTTOM ROW: images + round arrow */
  #menuPage .ba-image-row {
    flex-direction: row;
  }

  #menuPage .before-after-divider svg {}

  #zirconia-plans {}

  .whitening-text {
    background: linear-gradient(90deg, #FFF 0%, #C7BD9C 50%, #FFF 100%);
    padding: 2rem;
    margin-left: 0;
    margin-top: -3.5rem;
    z-index: 999;
  }

  .badge-whitening {}

  #pediatric-intro .pediatric-section.whitening-intro {}

  .whitening-section {

    margin-bottom: -5rem;
  }

  .whitening-text .section-heading {
    font-size: 1.4rem;
    line-height: 1.5;
  }

  .whitening-text .section-text {
    font-size: 0.8rem;
  }

  #zirconia-plans .plan-item .plan-header::before {
    top: -1rem;
  }

  #zirconia-plans .plan-item .plan-header {}

  #whitening-info {
    margin-top: -43rem;
  }

  #hero .hero-content {
  margin-top: 1rem;
  }

  #hero .hero-content h1 {
    font-size: 2rem;
    margin-top: -4rem;
  }

  .hero-content p {}

  #hero .hero-title {}

  #hero .hero-subtitle {}

  #hero {
    height: 57vw;
    min-height: 50vw;
    object-fit: cover;
  }

  /* *whitening article* */
  /* Section wrapper */
  #features.featuresSection {}

  /* Grid of four feature items */
  #features .featuresGrid {
    grid-template-columns: repeat(2, 1fr);
    width: 95vw;
    margin-top: -3rem;
  }

  /* Individual feature card */
  #features .featureItem {}

  /* Title bar above each image */
  #features .featureTitle {
    font-size: 0.8rem;
  }

  /* Feature image styling */
  #features .featureImage {}

  /* Description text under the grid */
  #features .featuresDescription {
    max-width: 90vw;
  }

  /* *whitening examples* — first article only */
  /* wrapper */
  #whitening-examples {}

  /* 1) Title bar (90vw wide, flush left) */
  #whitening-examples .planHeader {
    width: 100vw;
    margin-left: 0;
    font-size: 1.2rem;
  }

  /* 2) planContent holds blocks + images */
  #whitening-examples .planContent {
    margin: auto;
    width: 100vw;
  }

  /* common for both steps */
  #whitening-examples .step {}

  /* the little circle badge */
  #whitening-examples .step .badge {
    top: -2rem;
  }

  /* Step 1 sits at top-left of planContent */
  #whitening-examples .step1 {
    margin-top: 3rem !important;
  }

  /* Images sit to the right of step 1, vertically centered on it */
  #whitening-examples .exampleImgs {
    position: relative;
    top: 80vw;
    /* left: 0.1vw; */
    gap: 0.5vw;
    width: 90vw;
    margin-left: 2.2rem !important;
  }

  #whitening-examples .exampleImgs img {}

  #whitening-examples .exampleImgs .after {}

  #whitening-examples .exampleImgs .imgArrow {}

  /* Step 2 is offset like a stair below & to the right */
  #whitening-examples .step2 {
    margin-top: 3rem !important;
    position: relative;
    top: -38vw;
  }

  /* TYPE STYLES INSIDE EACH BLOCK */
  #whitening-examples .planTitle {
    font-size: 0.8rem;
  }

  #whitening-examples .planPrice {
    font-size: 1rem;
    margin-top: -1rem;
  }

  #whitening-examples .descBox hr {}

  #whitening-examples .planText {
    font-size: 0.8rem;
    margin-bottom: 1.8rem;
  }

  #whitening-examples .whiteningExample {}

  /* *whitening examples* — single reversed article (Home Whitening) */
  /* 1) Title bar, flush right (95vw wide) */
  #whitening-examples .whiteningExample.reversed .planHeader {
    font-size: 1rem;
  }

  /* 2) Constrain content to same 90vw footprint, flush right */
  #whitening-examples .whiteningExample.reversed .planContent {
    width: 100vw;
  }

  /* 3) Single step block */
  #whitening-examples .whiteningExample.reversed .step1 {}

  /* 4) Badge stays top-left of that block */
  #whitening-examples .whiteningExample.reversed .step1 .badge {}

  /* 5) Before/After images on the left side, vertically centered */
  #whitening-examples .whiteningExample.reversed .exampleImgs {}

  #whitening-examples .whiteningExample.reversed .exampleImgs .before,
  #whitening-examples .whiteningExample.reversed .exampleImgs .after {
    width: 80vw;
    max-width: 300px;
    height: auto;
  }

  #whitening-examples .whiteningExample.reversed .exampleImgs .after {}

  #whitening-examples .whiteningExample.reversed .exampleImgs .imgArrow {
    font-size: 2rem;
  }

  /* 6) Text inside block */
  #whitening-examples .whiteningExample.reversed .planTitle {
    font-size: 0.9rem;
  }

  #whitening-examples .whiteningExample.reversed .planPrice {
    font-size: 1rem;
    margin-top: -1rem;
  }

  #whitening-examples .whiteningExample.reversed .descBox hr {}

  #whitening-examples .whiteningExample.reversed .planText {
    font-size: 0.9rem;
  }

  #whitening-examples>article.whiteningExample.reversed>div.planContent>div.step.step1 {
    width: 90vw !important;
  }

  #whitening-examples>article.whiteningExample.reversed>div.planContent>div.exampleImgs {
    position: relative;
    top: 0;
    /* left: 0.1vw; */
    gap: 0.5vw;
    width: 90vw;
    margin-left: -1.8rem !important;
  }

  /* *whitening examples* — third article (Dual Whitening Course) */
  /* 1) Title bar flush-left, 95vw wide */
  #whitening-examples .whiteningExample:last-child .exampleHeader {
    width: 100vw;
    font-size: 1rem;
  }

  /* 2) Centered content block, 55vw wide */
  #whitening-examples .whiteningExample:last-child .exampleContainer {
    width: 90vw;
    padding: 2rem;
  }

  /* 3) Plan titles */
  #whitening-examples .whiteningExample:last-child .planTitle {
    font-size: 0.9rem;
    border-bottom: 1px solid #61A8D3;
    padding-bottom: 1vw;
  }

  /* 4) Plan prices, aligned right */
  #whitening-examples .whiteningExample:last-child .planPrice {
    font-size: 0.9rem;
    margin-top: -1.4rem;
  }

  /* 5) Divider lines */
  #whitening-examples .whiteningExample:last-child hr {}

  /* 6) Plan description text */
  #whitening-examples .whiteningExample:last-child .planText {
    font-size: 0.8rem;
  }

  #menuPage #elinesmile-intro .treatment-visual::before {
    top: -1rem;
    width: 94vw;
    height: 25rem;
    z-index: 999;
  }

  #whitening-info .menu-row.single {
    display: flex;
    flex-direction: column;
  }

  #aligner-plans>div {}

  #whitening-examples>article:nth-child(3)>div.exampleContainer>div>p:nth-child(3) {
    margin-bottom: 2rem;
  }

  /* Bubble Cleaning Section */
  /* 1) Full-width title bar */
  #bubble-cleaning .sectionHeader {}

  /* 2) Main content wrapper */
  #bubble-cleaning .bubbleContent {}

  /* 3) Two side-by-side images */
  #bubble-cleaning .bubbleImages {
    display: flex;
    flex-direction: column;
  }

  #bubble-cleaning .bubbleImages .cleaningImage {
    width: 80vw;
    border-radius: 0;
    gap: 1vw;
  }

  /* 4) Explanatory text under images (60vw wide) */
  #bubble-cleaning .bubbleText {
    width: 80vw;
    font-size: 0.8rem;
  }

  /* Plaque Removal Section */
  /* 1) Section wrapper */
  #plaque-removal {}

  /* 2) Full-width title bar, text aligned right */
  #plaque-removal .sectionHeader {
    text-align: center;
    width: 100vw;
    margin-left: 0;
    margin-right: 0;
    padding: 1rem;
  }

  /* 3) Two side-by-side before/after images */
  #plaque-removal .plaqueImages {
    display: flex;
    flex-direction: column;
    gap: 1vw;
    align-items: center;
  }

  #plaque-removal .plaqueImages img {
    width: 60vw;
    display: flex;
  }

  /* 4) Centered explanatory text below */
  #plaque-removal .plaqueText {
    font-size: 0.8rem;
    width: 80vw;
    margin-top: 2vw;
  }

  /* *Cleaning Plans* — last article ("Plague removal" experiment) */
  /* 1) Container full-width */
  #cleaningSection .cleaningPlan {}

  /* 2) Title bar, left-aligned, 80vw wide */
  #cleaningSection .cleaningPlan .planHeader {
    width: 100vw;
    text-align: center;
  }

  /* 3) Pale description block, centered, same 80vw */
  #cleaningSection .cleaningPlan .planList {
    width: 100vw;
    padding: 2rem 1rem;
  }

  /* 4) Each row: title, duration, price */
  #cleaningSection .cleaningPlan .planRow {}

  /* 5) Underline the h4 titles */
  #cleaningSection .cleaningPlan .planTitle {
    font-size: 0.9rem;
    text-decoration: none;
  }

  /* 6) Duration sits right of title */
  #cleaningSection .cleaningPlan .planDuration {
    font-size: 0.9rem;
  }

  /* 7) Price aligned right */
  #cleaningSection .cleaningPlan .planPrice {
    font-size: 0.9rem;
  }

  /* 8) Divider lines */
  #cleaningSection .cleaningPlan hr {}

  /* 9) Reservation button centered under everything */
  #cleaningSection .cleaningPlan .reservation {}

  #cleaningSection .cleaningPlan .reservation-button {}

  #menuPage #zirconia-intro .treatment-visual::before {
    /* top: 0; */
    width: 94vw;
    height: 21rem;
    z-index: 999;
  }

  #clinic #hero {
    min-height: fit-content;
    margin-bottom: 0;
    margin-top: 3rem;
    height: 57vw;
    margin-bottom: -2rem;
  }
#aligner-plans > article:nth-child(2) > div.plan-header {
    margin-right: 5vw;
    margin-left: 5vw;
}
#menuPage #whitening-content {
    height: 70vw;
}

.badge-whitening {
    width: 75vw !important;
    margin-bottom: 4vw !important;
}

#menuPage #elinesmile-intro .treatment-visual::before {
    content: "";
    position: absolute;
    top: 4vw;
    left: 51%;
    transform: translateX(-50%);
    width: 95vw;
    height: 80vw;
    border: 2px solid #D6C17E;
    pointer-events: none;
    box-sizing: border-box;
    z-index: 999;
}











}
