/* ==========================================================================
   Orthodontist page — SP layout (Figma node 336:21551, 375px)
   HTML / PC styles unchanged — responsive overrides only
   Section h2: Figma 26px / lh 35 / tracking 1.3px
   ========================================================================== */

@media (max-width: 767px) {
  body:has(.orthodontist-page) .orthodontist-page {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* ----- Breadcrumb — hide ----- */
  body:has(.orthodontist-page) .orthodontist-page > div[class*='w-[1080px]'][class*='py-[10px]'] {
    display: none !important;
  }

  /* ----- Hide PC deco / floating（FV・左右blobは下記で再表示） ----- */
  body:has(.orthodontist-page) .orthodontist-bg-deco,
  body:has(.orthodontist-page) .orthodontist-main > .absolute:not(.orthodontist-fv-wrap):not(.orthodontist-deco),
  body:has(.orthodontist-page) .orthodontist-page > .absolute[class*='size-[150px]'] {
    display: none !important;
  }

  /* ----- SP FV blobs（Figma 341:43508 / 341:43502） ----- */
  body:has(.orthodontist-page) .orthodontist-deco {
    display: block !important;
    position: absolute !important;
    max-width: none !important;
    transform: none !important;
    translate: none !important;
    pointer-events: none !important;
    z-index: 0 !important;
    overflow: visible !important;
    mix-blend-mode: multiply !important;
    filter: blur(5px) saturate(0.9) !important;
  }

  body:has(.orthodontist-page) .orthodontist-deco-left {
    left: -120px !important;
    right: auto !important;
    top: 100px !important;
    width: 300px !important;
    height: 300px !important;
    opacity: 0.58 !important;
    background: url('../../assets/images/deco-orthodontist-fv-left-sp.png') center / contain no-repeat !important;
    -webkit-mask-image: radial-gradient(ellipse 100% 110% at 28% 48%, #000 18%, rgba(0, 0, 0, 0.45) 52%, transparent 82%) !important;
    mask-image: radial-gradient(ellipse 100% 110% at 28% 48%, #000 18%, rgba(0, 0, 0, 0.45) 52%, transparent 82%) !important;
  }

  body:has(.orthodontist-page) .orthodontist-deco-right {
    left: auto !important;
    right: -140px !important;
    top: -20px !important;
    width: 320px !important;
    height: 340px !important;
    opacity: 0.5 !important;
    background: url('../../assets/images/deco-orthodontist-fv-right-sp.png') center / contain no-repeat !important;
    -webkit-mask-image: radial-gradient(ellipse 100% 110% at 72% 40%, #000 18%, rgba(0, 0, 0, 0.45) 52%, transparent 82%) !important;
    mask-image: radial-gradient(ellipse 100% 110% at 72% 40%, #000 18%, rgba(0, 0, 0, 0.45) 52%, transparent 82%) !important;
  }

  /* ----- SP FV: photo-orthodontist-fv（Figma image 104 / 600px） ----- */
  body:has(.orthodontist-page) .orthodontist-fv-wrap {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: 0 !important;
    max-width: none !important;
    transform: none !important;
    translate: none !important;
    pointer-events: none !important;
    z-index: 0 !important;
    overflow: visible !important;
  }

  body:has(.orthodontist-page) .orthodontist-fv-wrap .orthodontist-fv-bg,
  body:has(.orthodontist-page) [class*='absolute'][class*='bottom-0'][class*='pointer-events-none'] .orthodontist-fv-bg {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: 100px !important;
    width: 600px !important;
    height: 600px !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
    translate: none !important;
    pointer-events: none !important;
    z-index: 0 !important;
    opacity: 0.9 !important;
    overflow: visible !important;
    filter: blur(2px) !important;
    background: url('../../assets/images/photo-orthodontist-fv.png') center / cover no-repeat !important;
    -webkit-mask-image: radial-gradient(circle at center, #000 38%, rgba(0, 0, 0, 0.55) 55%, transparent 72%) !important;
    mask-image: radial-gradient(circle at center, #000 38%, rgba(0, 0, 0, 0.55) 55%, transparent 72%) !important;
  }

  body:has(.orthodontist-page) .orthodontist-fv-bg img {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* ----- H1 KV (Figma 362:65394) ----- */
  body:has(.orthodontist-page) .orthodontist-main > div[class*='h-[200px]'] {
    background: transparent !important;
    height: 134px !important;
    min-height: 134px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
    flex-shrink: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-main > div[class*='h-[200px]'] [class*='text-[60px]'] {
    color: var(--corlor-1, #8e5572) !important;
    text-align: center !important;
    text-shadow: none !important;
    font-family: 'Zen Maru Gothic', sans-serif !important;
    font-size: 36px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: normal !important;
    letter-spacing: 1.8px !important;
  }

  body:has(.orthodontist-page) .orthodontist-main > div[class*='h-[200px]'] [class*='text-[60px]'] p {
    color: inherit !important;
    text-align: inherit !important;
    text-shadow: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-style: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
  }

  /* ----- Main column（Figma main pt-[200px]） ----- */
  body:has(.orthodontist-page) .orthodontist-main,
  body:has(.orthodontist-page) .orthodontist-main[class*='gap-[200px]'] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-top: 0 !important;
    padding-inline: 40px !important;
    padding-bottom: 0 !important;
    gap: 60px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  /* FV 余白：H1直後のイントロを下げる */
  body:has(.orthodontist-page) .orthodontist-intro-section {
    margin-top: 66px !important;
  }

  body:has(.orthodontist-page) .orthodontist-main > :not(.absolute):not(.orthodontist-fv-wrap):not(.orthodontist-deco):not([class*="-faq-section"]) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body:has(.orthodontist-page) .orthodontist-main > div[class*='gap-[60px]'],
  body:has(.orthodontist-page) .orthodontist-doctor-section,
  body:has(.orthodontist-page) .orthodontist-mft-section,
  body:has(.orthodontist-page) .orthodontist-philosophy-section {
    gap: 40.323px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    align-items: center !important;
  }

  /* ----- Section headings (h2 block) — TOP .top-main ----- */
  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'][class*='items-center'][class*='justify-center'][class*='max-w-[1080px]'][class*='min-w-[300px]'] {
    display: flex !important;
    min-width: 201.613px !important;
    max-width: 725.806px !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.672px !important;
    align-self: stretch !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='h-[59px]'][class*='w-[120px]'] {
    height: 39.651px !important;
    width: 80.645px !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='pb-[20px]'] {
    padding-bottom: 13.441px !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='py-[10px]'] {
    padding-block: 6.72px !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='text-[16px]'][class*='tracking-[0.8px]'] {
    font-size: 15px !important;
    letter-spacing: 0.5375px !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='text-[16px]'][class*='tracking-[0.8px]'] p {
    font-size: inherit !important;
    letter-spacing: inherit !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='min-w-[300px]'],
  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='inline-grid'][class*='min-w-[300px]'] {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='items-start'][class*='justify-center'] {
    align-items: center !important;
    justify-content: center !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='inline-grid'][class*='place-items-start'] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    place-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='text-[16px]'],
  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='text-[16px]'] p {
    text-align: center !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='text-[46px]'][class*='text-[#8e5572]'],
  body:has(.orthodontist-page) .orthodontist-main [class*='text-[46px]'][class*='text-[#8e5572]'] p,
  body:has(.orthodontist-page) .orthodontist-main [class*='text-[46px]'][class*='text-[#8e5572]'] span,
  body:has(.orthodontist-page) .orthodontist-main [class*='text-[46px]'][class*='text-[#f5f2ed]'],
  body:has(.orthodontist-page) .orthodontist-main [class*='text-[46px]'][class*='text-[#f5f2ed]'] p,
  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='text-[#8e5572]'],
  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='text-[#8e5572]'] p,
  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='text-[#f5f2ed]'],
  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='text-[#f5f2ed]'] p,
  body:has(.orthodontist-page) .orthodontist-intro-heading,
  body:has(.orthodontist-page) .orthodontist-intro-heading p {
    color: var(--corlor-1, #8e5572) !important;
    font-size: 26px !important;
    line-height: 35px !important;
    letter-spacing: 1.3px !important;
    text-align: center !important;
    text-shadow: none !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  /* イントロのクリームアイコン → ピンク（背景に溶けるため） */
  body:has(.orthodontist-page) .orthodontist-intro-section img[src*='icon-braces-cream'] {
    content: url('../../assets/images/icon-braces-pink.svg') !important;
  }

  body:has(.orthodontist-page) .orthodontist-intro-section img[src*='icon-dental-tools-cream'] {
    content: url('../../assets/images/icon-dental-tools-pink.svg') !important;
  }

  /* ----- Body copy ----- */
  body:has(.orthodontist-page) .orthodontist-main > div[class*='gap-[60px]'] > [class*='text-[24px]'],
  body:has(.orthodontist-page) .orthodontist-mft-section > [class*='text-[24px]'],
  body:has(.orthodontist-page) .orthodontist-philosophy-section > [class*='text-[24px]'] {
    font-size: 15px !important;
    line-height: 25.538px !important;
    letter-spacing: 1.6129px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='leading-[38px]'] {
    line-height: 25.538px !important;
  }

  /* ----- Doctor section (Figma 334:24035) ----- */
  body:has(.orthodontist-page) .orthodontist-doctor-section {
    position: relative !important;
    overflow: visible !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-heading {
    padding-bottom: 228.495px !important;
    width: 100% !important;
    z-index: 2 !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-bg {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: 159.27px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 372.984px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    transform: translateX(-50%) !important;
    z-index: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-bg img {
    border-radius: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-bg img[src*='photo-director-xray'] {
    content: url('../../assets/images/photo-director-sp.jpg') !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 40.323px 53.763px 53.763px !important;
    gap: 26.882px !important;
    border-radius: 13.441px !important;
    box-shadow: 0 2.688px 2.688px rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    box-sizing: border-box !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel > [class*='text-[0px]'][class*='text-[#8e5572]'] [class*='text-[22px]'] {
    font-size: 15px !important;
    letter-spacing: 0.739px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel > [class*='text-[0px]'][class*='text-[#8e5572]'] [class*='text-[38px]'] {
    font-size: 15px !important;
    letter-spacing: 1.277px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel > [class*='text-[18px]'][class*='text-[color:var(--p'] {
    font-size: 15px !important;
    line-height: 22px !important;
    letter-spacing: 1.3px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='flex-col'][class*='gap-[40px]'] {
    gap: 26.882px !important;
    width: 100% !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='flex-col'][class*='gap-[20px]'] {
    gap: 13.441px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='text-[28px]'][class*='text-[#8e5572]'] {
    font-size: 15px !important;
    letter-spacing: 0.941px !important;
    line-height: normal !important;
    text-align: left !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='flex-col'][class*='gap-[10px]'] {
    gap: 6.72px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='gap-[13px]'] {
    gap: 8.737px !important;
    align-items: flex-start !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='w-[28px]'] {
    width: 18.817px !important;
    flex-shrink: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='h-[23px]'][class*='w-[28px]'],
  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='h-[23px]'] {
    height: 15.457px !important;
    width: 18.817px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='pt-[7px]'] {
    padding-top: 4.704px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='text-[22px]'][class*='text-[#636171]'],
  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='text-[22px]'][class*='text-[#636171]'] p,
  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='text-[22px]'][class*='text-[#636171]'],
  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='text-[22px]'][class*='text-[#636171]'] p {
    font-size: 15px !important;
    line-height: 22.849px !important;
    letter-spacing: 1.478px !important;
    color: #636171 !important;
  }

  /* ----- Doctor certification notice card ----- */
  body:has(.orthodontist-page) .orthodontist-doctor-notice {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 40.323px 53.763px 40.323px !important;
    gap: 26.882px !important;
    border-radius: 13.441px !important;
    border-width: 1.344px !important;
    box-sizing: border-box !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-notice > [class*='text-[24px]'] {
    font-size: 15px !important;
    line-height: 23.52px !important;
    letter-spacing: 1.613px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='text-[28px]'][class*='text-[#8e5572]'] {
    font-size: 15px !important;
    letter-spacing: 0.941px !important;
    line-height: normal !important;
    text-align: left !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='flex-col'][class*='gap-[10px]'] {
    gap: 6.72px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='gap-[13px]'] {
    gap: 8.737px !important;
    align-items: flex-start !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='w-[28px]'] {
    width: 18.817px !important;
    flex-shrink: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='h-[23px]'][class*='w-[28px]'],
  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='h-[23px]'] {
    height: 15.457px !important;
    width: 18.817px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='pt-[7px]'] {
    padding-top: 4.704px !important;
  }

  /* ----- Flow cards (MFT / Philosophy) ----- */
  body:has(.orthodontist-page) .orthodontist-flow-card {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 26.21px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card > [class*='inline-grid'] {
    position: relative !important;
    width: 201.613px !important;
    height: 201.613px !important;
    min-width: 201.613px !important;
    min-height: 201.613px !important;
    max-width: 201.613px !important;
    max-height: 201.613px !important;
    margin-inline: auto !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: 50% !important;
  }

  /* 円形アセット差し替え（指定の3枚）— マスク／拡大率調整は不要 */
  body:has(.orthodontist-page) .orthodontist-flow-card > [class*='inline-grid'] > div {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    mask: none !important;
    -webkit-mask: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card > [class*='inline-grid'] img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    transform: none !important;
  }

  body:has(.orthodontist-page) .orthodontist-mft-section .orthodontist-flow-card img[src*='photo-mft-staff'] {
    content: url('../../assets/images/photo-orthodontist-mft-circle-sp.png') !important;
  }

  body:has(.orthodontist-page) .orthodontist-philosophy-section .orthodontist-flow-card img[src*='photo-philosophy-working-women'] {
    content: url('../../assets/images/photo-orthodontist-philosophy-women-circle-sp.png') !important;
  }

  body:has(.orthodontist-page) .orthodontist-philosophy-section .orthodontist-flow-card img[src*='photo-philosophy-family'] {
    content: url('../../assets/images/photo-orthodontist-philosophy-family-circle-sp.png') !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card > [class*='flex-[1_0_0]'][class*='flex-col'] {
    gap: 13.441px !important;
    align-items: flex-start !important;
  }

  body:has(.orthodontist-page) .orthodontist-philosophy-section .orthodontist-flow-card > [class*='flex-[1_0_0]'][class*='flex-col'] {
    gap: 20.161px !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card [class*='h-[41px]'] {
    height: auto !important;
    min-height: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card [class*='text-[28px]'][class*='text-[#8e5572]'],
  body:has(.orthodontist-page) .orthodontist-flow-card [class*='text-[28px]'][class*='text-[#8e5572]'] p {
    font-size: 15px !important;
    line-height: normal !important;
    letter-spacing: 0.941px !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card [class*='text-[20px]'][class*='text-[color:var(--p'] {
    font-size: 15px !important;
    line-height: normal !important;
    letter-spacing: 0.672px !important;
    text-align: left !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card [class*='text-[18px]'],
  body:has(.orthodontist-page) .orthodontist-flow-card [class*='text-[18px]'] p {
    font-size: 15px !important;
    line-height: 18.817px !important;
    letter-spacing: 1.21px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    text-align: left !important;
  }

  body:has(.orthodontist-page) .orthodontist-philosophy-section .orthodontist-flow-card + .orthodontist-flow-card {
    margin-top: 0 !important;
  }


  /* ----- Footer — Figma SP (patterns from top.css) ----- */

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-top: 134px !important;
    padding-inline: 0 !important;
    padding-bottom: 40px !important;
    gap: 60px !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='aspect-[3050'] {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    align-self: stretch !important;
    border-radius: 0 !important;
  }

  /* 医院外観写真 — 左右余白（マップは全幅のまま） */
  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='aspect-[1944'] {
    width: calc(100% - 80px) !important;
    max-width: calc(100% - 80px) !important;
    margin-inline: 40px !important;
    align-self: center !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='aspect-[3050'] img {
    border-radius: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='aspect-[1944'] img {
    border-radius: 10px !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > :not([class*='aspect-[3050']):not([class*='aspect-[1944']) {
    padding-inline: 40px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='gap-[36px]'] {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-content: flex-start !important;
    align-items: flex-start !important;
    gap: 24px !important;
    white-space: normal !important;
    text-align: left !important;
    letter-spacing: 1.075px !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='gap-[36px]'] > div {
    flex: 0 1 calc(50% - 12px) !important;
    min-width: 0 !important;
    max-width: calc(50% - 12px) !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='gap-[36px]'] [class*='items-center'] {
    align-items: flex-start !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='gap-[36px]'] [class*='text-center'] {
    text-align: left !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='gap-[36px]'] [class*='gap-[20px]'] {
    gap: 13.44px !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='gap-[36px]'] .site-footer-link,
  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='gap-[36px]'] .site-footer-link p {
    text-align: left !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='gap-[36px]'] > div:first-child {
    font-family: 'Noto Sans JP', 'Noto Sans CJK JP', 'Hiragino Sans', sans-serif !important;
    font-weight: 700 !important;
    color: var(--color-primary, #8e5572) !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='gap-[36px]'] > div:first-child .site-footer-link p {
    font-family: inherit !important;
    font-weight: 700 !important;
    font-style: normal !important;
    color: var(--color-primary, #8e5572) !important;
    font-size: 12px !important;
    line-height: 22.849px !important;
    letter-spacing: 1.075px !important;
    text-decoration: none !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='gap-[36px]'] p[class*='text-[#8e5572]'][class*='text-[16px]'] {
    color: var(--corlor-1, var(--color-primary, #8e5572)) !important;
    font-family: 'Noto Sans JP', 'Noto Sans CJK JP', 'Hiragino Sans', sans-serif !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 17.473px !important;
    letter-spacing: 1.075px !important;
    text-decoration: none !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='gap-[36px]'] p[class*='text-[#636171]'],
  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='gap-[36px]'] p[class*='text-[14px]'][class*='underline'] {
    color: var(--colore-2, var(--p, #636171)) !important;
    font-family: 'Noto Sans JP', 'Noto Sans CJK JP', 'Hiragino Sans', sans-serif !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 17.473px !important;
    letter-spacing: 0.941px !important;
    text-decoration-line: underline !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='gap-[36px]'] p[class*='text-[#636171]'] span {
    color: var(--colore-2, var(--p, #636171)) !important;
    font-family: 'Noto Sans JP', 'Noto Sans CJK JP', 'Hiragino Sans', sans-serif !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 17.473px !important;
    letter-spacing: 0.941px !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='max-w-[840px]'] {
    max-width: 100% !important;
    gap: 20px !important;
    align-items: center !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[41px_60px]'] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    width: 100% !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[41px_60px]'] [class*='px-[30px]'] {
    padding-inline: 0 !important;
    width: 100% !important;
    align-items: center !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='aspect-[3635'] {
    min-height: 0 !important;
    min-width: 0 !important;
    max-width: 260px !important;
    width: 100% !important;
    margin-inline: auto !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[41px_60px]'] [class*='text-[18px]'] {
    font-size: 15px !important;
    line-height: 22px !important;
    letter-spacing: 0.7px !important;
    text-align: center !important;
    max-width: 100% !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[0px_32px]'] {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[0px_32px]'] > [class*='flex-col'] {
    align-items: center !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[0px_32px]'] [class*='text-[23px]'] {
    color: var(--corlor-1, var(--color-primary, #8e5572)) !important;
    text-align: center !important;
    font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif !important;
    font-size: 15px !important;
    font-style: normal !important;
    font-weight: 900 !important;
    line-height: normal !important;
    letter-spacing: 0.773px !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[0px_32px]'] [class*='text-[16px]'][class*='text-[color:var(--p'] {
    font-size: 15px !important;
    line-height: 18px !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[0px_32px]'] [class*='inline-grid'] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[0px_32px]'] [class*='inline-grid'] [class*='col-1'] {
    position: relative !important;
    margin: 0 !important;
    width: auto !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[0px_32px]'] [class*='aspect-[45'] {
    width: 28px !important;
    height: 30px !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[0px_32px]'] a[href^='tel:'][class*='text-[42px]'],
  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[0px_32px]'] [class*='text-[42px]'][class*='text-[#8e5572]'] {
    color: var(--corlor-1, var(--color-primary, #8e5572)) !important;
    font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif !important;
    font-size: 28.226px !important;
    font-style: normal !important;
    font-weight: 900 !important;
    line-height: normal !important;
    letter-spacing: 1.411px !important;
    width: auto !important;
    margin-left: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[0px_32px]'] a[href^='tel:'] p {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-style: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[17px]'] {
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[17px]'] > [class*='inline-grid'] {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[17px]'] [class*='col-1'] {
    position: relative !important;
    margin: 0 !important;
    grid-column: unset !important;
    grid-row: unset !important;
    flex-shrink: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[17px]'] [class*='h-[36px]'][class*='w-[176px]'] {
    width: 140px !important;
    height: 29px !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[17px]'] [class*='h-[44px]'][class*='w-[127px]'] {
    width: 100px !important;
    height: 35px !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[17px]'] [class*='h-[36px]'][class*='w-[107px]'] {
    width: 85px !important;
    height: 29px !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[17px]'] [class*='size-[35px]'],
  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='gap-[17px]'] [class*='size-[36px]'] {
    width: 30px !important;
    height: 30px !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='min-w-[300px]'] {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='max-w-[390px]'],
  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] [class*='max-w-[404px]'] {
    max-width: 100% !important;
  }

  body:has(.orthodontist-page) .orthodontist-page > div[class*='pt-[200px]'][class*='pb-[60px]'] > [class*='max-w-[840px]'] > [class*='text-[14px]'] {
    font-size: 15px !important;
    line-height: 22px !important;
    letter-spacing: 1.2px !important;
  }
}

/* ==========================================================================
   Orthodontist page — Tablet layout (768px–1024px)
   equipment / first-visit タブレット準拠
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1024px) {
  body:has(.orthodontist-page) .orthodontist-page {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-shadow: none !important;
  }

  /* ----- Breadcrumb — hide ----- */
  body:has(.orthodontist-page) .orthodontist-page > div[class*='w-[1080px]'][class*='py-[10px]'] {
    display: none !important;
  }

  /* ----- Hide PC deco / floating（FV・左右blobは下記で再表示） ----- */
  body:has(.orthodontist-page) .orthodontist-bg-deco,
  body:has(.orthodontist-page) .orthodontist-main > .absolute:not(.orthodontist-fv-wrap):not(.orthodontist-deco),
  body:has(.orthodontist-page) .orthodontist-page > .absolute[class*='size-[150px]'] {
    display: none !important;
  }

  /* ----- TB FV blobs ----- */
  body:has(.orthodontist-page) .orthodontist-deco {
    display: block !important;
    position: absolute !important;
    max-width: none !important;
    transform: none !important;
    translate: none !important;
    pointer-events: none !important;
    z-index: 0 !important;
    overflow: visible !important;
    mix-blend-mode: multiply !important;
    filter: blur(6px) saturate(0.9) !important;
  }

  body:has(.orthodontist-page) .orthodontist-deco-left {
    left: -140px !important;
    right: auto !important;
    top: 140px !important;
    width: 360px !important;
    height: 360px !important;
    opacity: 0.58 !important;
    background: url('../../assets/images/deco-orthodontist-fv-left-sp.png') center / contain no-repeat !important;
    -webkit-mask-image: radial-gradient(ellipse 100% 110% at 28% 48%, #000 18%, rgba(0, 0, 0, 0.45) 52%, transparent 82%) !important;
    mask-image: radial-gradient(ellipse 100% 110% at 28% 48%, #000 18%, rgba(0, 0, 0, 0.45) 52%, transparent 82%) !important;
  }

  body:has(.orthodontist-page) .orthodontist-deco-right {
    left: auto !important;
    right: -160px !important;
    top: -30px !important;
    width: 380px !important;
    height: 400px !important;
    opacity: 0.5 !important;
    background: url('../../assets/images/deco-orthodontist-fv-right-sp.png') center / contain no-repeat !important;
    -webkit-mask-image: radial-gradient(ellipse 100% 110% at 72% 40%, #000 18%, rgba(0, 0, 0, 0.45) 52%, transparent 82%) !important;
    mask-image: radial-gradient(ellipse 100% 110% at 72% 40%, #000 18%, rgba(0, 0, 0, 0.45) 52%, transparent 82%) !important;
  }

  /* ----- TB FV: photo-orthodontist-fv ----- */
  body:has(.orthodontist-page) .orthodontist-fv-wrap {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: 0 !important;
    max-width: none !important;
    transform: none !important;
    translate: none !important;
    pointer-events: none !important;
    z-index: 0 !important;
    overflow: visible !important;
  }

  body:has(.orthodontist-page) .orthodontist-fv-wrap .orthodontist-fv-bg,
  body:has(.orthodontist-page) [class*='absolute'][class*='bottom-0'][class*='pointer-events-none'] .orthodontist-fv-bg {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: 120px !important;
    width: 720px !important;
    height: 720px !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
    translate: none !important;
    pointer-events: none !important;
    z-index: 0 !important;
    opacity: 0.9 !important;
    overflow: visible !important;
    filter: blur(2px) !important;
    background: url('../../assets/images/photo-orthodontist-fv.png') center / cover no-repeat !important;
    -webkit-mask-image: radial-gradient(circle at center, #000 38%, rgba(0, 0, 0, 0.55) 55%, transparent 72%) !important;
    mask-image: radial-gradient(circle at center, #000 38%, rgba(0, 0, 0, 0.55) 55%, transparent 72%) !important;
  }

  body:has(.orthodontist-page) .orthodontist-fv-bg img {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* ----- H1 KV ----- */
  body:has(.orthodontist-page) .orthodontist-main > div[class*='h-[200px]'] {
    background: transparent !important;
    height: 160px !important;
    min-height: 160px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
    flex-shrink: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-main > div[class*='h-[200px]'] [class*='text-[60px]'],
  body:has(.orthodontist-page) .orthodontist-main > div[class*='h-[200px]'] [class*='text-[60px]'] p {
    color: var(--corlor-1, #8e5572) !important;
    font-family: 'Zen Maru Gothic', sans-serif !important;
    font-size: 48px !important;
    font-weight: 500 !important;
    line-height: normal !important;
    letter-spacing: 2.4px !important;
    text-align: center !important;
    text-shadow: none !important;
  }

  /* ----- Main column ----- */
  body:has(.orthodontist-page) .orthodontist-main,
  body:has(.orthodontist-page) .orthodontist-main[class*='gap-[200px]'] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-top: 0 !important;
    padding-inline: 60px !important;
    padding-bottom: 0 !important;
    gap: 80px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  body:has(.orthodontist-page) .orthodontist-intro-section {
    margin-top: 80px !important;
  }

  body:has(.orthodontist-page) .orthodontist-main > :not(.absolute):not(.orthodontist-fv-wrap):not(.orthodontist-deco):not(.orthodontist-bg-deco):not(.site-footer):not([class*="-faq-section"]) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body:has(.orthodontist-page) .orthodontist-intro-section,
  body:has(.orthodontist-page) .orthodontist-doctor-section,
  body:has(.orthodontist-page) .orthodontist-mft-section,
  body:has(.orthodontist-page) .orthodontist-philosophy-section {
    gap: 48px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    align-items: center !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
  }

  body:has(.orthodontist-page) .orthodontist-intro-section > :not(.absolute),
  body:has(.orthodontist-page) .orthodontist-doctor-section > :not(.absolute),
  body:has(.orthodontist-page) .orthodontist-mft-section > :not(.absolute),
  body:has(.orthodontist-page) .orthodontist-philosophy-section > :not(.absolute) {
    width: 100% !important;
    max-width: 720px !important;
    min-width: 0 !important;
  }

  /* ----- Section headings ----- */
  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'][class*='items-center'][class*='justify-center'][class*='max-w-[1080px]'][class*='min-w-[300px]'] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 4px !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='min-w-[300px]'],
  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='inline-grid'][class*='min-w-[300px]'] {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='h-[59px]'][class*='w-[120px]'] {
    height: 48px !important;
    width: 98px !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='pb-[20px]'] {
    padding-bottom: 16px !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='py-[10px]'] {
    padding-block: 8px !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='items-start'][class*='justify-center'] {
    align-items: center !important;
    justify-content: center !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='inline-grid'][class*='place-items-start'] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    place-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='text-[16px]'],
  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='text-[16px]'] p {
    text-align: center !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='text-[16px]'][class*='tracking-[0.8px]'],
  body:has(.orthodontist-page) .orthodontist-main [class*='text-[16px]'][class*='tracking-[0.8px]'] p {
    font-size: 15px !important;
    letter-spacing: 0.7px !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='text-[46px]'][class*='text-[#8e5572]'],
  body:has(.orthodontist-page) .orthodontist-main [class*='text-[46px]'][class*='text-[#8e5572]'] p,
  body:has(.orthodontist-page) .orthodontist-main [class*='text-[46px]'][class*='text-[#8e5572]'] span,
  body:has(.orthodontist-page) .orthodontist-main [class*='text-[46px]'][class*='text-[#f5f2ed]'],
  body:has(.orthodontist-page) .orthodontist-main [class*='text-[46px]'][class*='text-[#f5f2ed]'] p,
  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='text-[#8e5572]'],
  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='text-[#8e5572]'] p,
  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='text-[#f5f2ed]'],
  body:has(.orthodontist-page) .orthodontist-main [class*='flex-col'][class*='gap-px'] [class*='text-[#f5f2ed]'] p,
  body:has(.orthodontist-page) .orthodontist-intro-heading,
  body:has(.orthodontist-page) .orthodontist-intro-heading p {
    color: var(--corlor-1, #8e5572) !important;
    font-size: 30px !important;
    line-height: 1.3 !important;
    letter-spacing: 1.5px !important;
    text-align: center !important;
    text-shadow: none !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  body:has(.orthodontist-page) .orthodontist-intro-section img[src*='icon-braces-cream'] {
    content: url('../../assets/images/icon-braces-pink.svg') !important;
  }

  body:has(.orthodontist-page) .orthodontist-intro-section img[src*='icon-dental-tools-cream'] {
    content: url('../../assets/images/icon-dental-tools-pink.svg') !important;
  }

  /* ----- Body copy ----- */
  body:has(.orthodontist-page) .orthodontist-intro-section > [class*='text-[24px]'],
  body:has(.orthodontist-page) .orthodontist-mft-section > [class*='text-[24px]'],
  body:has(.orthodontist-page) .orthodontist-philosophy-section > [class*='text-[24px]'] {
    font-size: 20px !important;
    line-height: 32px !important;
    letter-spacing: 2px !important;
    width: 100% !important;
    max-width: 720px !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  body:has(.orthodontist-page) .orthodontist-main [class*='leading-[38px]'] {
    line-height: 32px !important;
  }

  /* ----- Doctor section ----- */
  body:has(.orthodontist-page) .orthodontist-doctor-section {
    position: relative !important;
    overflow: visible !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-heading {
    padding-bottom: 200px !important;
    width: 100% !important;
    max-width: 720px !important;
    z-index: 2 !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-bg {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: 140px !important;
    width: 100% !important;
    max-width: 720px !important;
    height: 280px !important;
    margin: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transform: translateX(-50%) !important;
    z-index: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-bg img {
    border-radius: 16px !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 720px !important;
    min-width: 0 !important;
    padding: 48px 40px 40px !important;
    gap: 32px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-sizing: border-box !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel > [class*='text-[0px]'][class*='text-[#8e5572]'] [class*='text-[22px]'] {
    font-size: 16px !important;
    letter-spacing: 0.8px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel > [class*='text-[0px]'][class*='text-[#8e5572]'] [class*='text-[38px]'] {
    font-size: 28px !important;
    letter-spacing: 1.4px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel > [class*='text-[18px]'][class*='text-[color:var(--p'] {
    font-size: 15px !important;
    line-height: 24px !important;
    letter-spacing: 1.5px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='flex-col'][class*='gap-[40px]'] {
    gap: 32px !important;
    width: 100% !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='flex-col'][class*='gap-[20px]'] {
    gap: 16px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='text-[28px]'][class*='text-[#8e5572]'] {
    font-size: 22px !important;
    letter-spacing: 1.1px !important;
    line-height: normal !important;
    text-align: left !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='flex-col'][class*='gap-[10px]'] {
    gap: 10px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='gap-[13px]'] {
    gap: 12px !important;
    align-items: flex-start !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='w-[28px]'] {
    width: 24px !important;
    flex-shrink: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='h-[23px]'][class*='w-[28px]'],
  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='h-[23px]'] {
    height: 20px !important;
    width: 24px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='pt-[7px]'] {
    padding-top: 4px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='text-[22px]'][class*='text-[#636171]'],
  body:has(.orthodontist-page) .orthodontist-doctor-panel [class*='text-[22px]'][class*='text-[#636171]'] p,
  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='text-[22px]'][class*='text-[#636171]'],
  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='text-[22px]'][class*='text-[#636171]'] p {
    font-size: 16px !important;
    line-height: 26px !important;
    letter-spacing: 1.6px !important;
    color: #636171 !important;
  }

  /* ----- Doctor certification notice card ----- */
  body:has(.orthodontist-page) .orthodontist-doctor-notice {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 720px !important;
    min-width: 0 !important;
    padding: 48px 40px 48px !important;
    gap: 32px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-notice > [class*='text-[24px]'] {
    font-size: 20px !important;
    line-height: 29px !important;
    letter-spacing: 2px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='text-[28px]'][class*='text-[#8e5572]'] {
    font-size: 22px !important;
    letter-spacing: 1.1px !important;
    line-height: normal !important;
    text-align: left !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='flex-col'][class*='gap-[10px]'] {
    gap: 10px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='gap-[13px]'] {
    gap: 12px !important;
    align-items: flex-start !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='w-[28px]'] {
    width: 24px !important;
    flex-shrink: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='h-[23px]'][class*='w-[28px]'],
  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='h-[23px]'] {
    height: 20px !important;
    width: 24px !important;
  }

  body:has(.orthodontist-page) .orthodontist-doctor-notice [class*='pt-[7px]'] {
    padding-top: 4px !important;
  }

  /* ----- Flow cards — 横並び ----- */
  body:has(.orthodontist-page) .orthodontist-flow-card {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 32px !important;
    width: 100% !important;
    max-width: 720px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card > * {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card > [class*='inline-grid'] {
    display: block !important;
    position: relative !important;
    flex: 0 0 220px !important;
    width: 220px !important;
    max-width: 220px !important;
    height: 220px !important;
    min-width: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: 50% !important;
    background: transparent !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card > [class*='inline-grid'] > div {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    mask: none !important;
    -webkit-mask: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card > [class*='inline-grid'] img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    transform: none !important;
  }

  body:has(.orthodontist-page) .orthodontist-mft-section .orthodontist-flow-card img[src*='photo-mft-staff'] {
    content: url('../../assets/images/photo-orthodontist-mft-circle-sp.png') !important;
  }

  body:has(.orthodontist-page) .orthodontist-philosophy-section .orthodontist-flow-card img[src*='photo-philosophy-working-women'] {
    content: url('../../assets/images/photo-orthodontist-philosophy-women-circle-sp.png') !important;
  }

  body:has(.orthodontist-page) .orthodontist-philosophy-section .orthodontist-flow-card img[src*='photo-philosophy-family'] {
    content: url('../../assets/images/photo-orthodontist-philosophy-family-circle-sp.png') !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card > [class*='flex-[1_0_0]'][class*='flex-col'] {
    flex: 1 1 0% !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    gap: 16px !important;
    align-items: flex-start !important;
  }

  body:has(.orthodontist-page) .orthodontist-philosophy-section .orthodontist-flow-card > [class*='flex-[1_0_0]'][class*='flex-col'] {
    gap: 20px !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card [class*='min-w-[300px]'] {
    min-width: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card [class*='h-[41px]'] {
    height: auto !important;
    min-height: 0 !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card [class*='text-[28px]'][class*='text-[#8e5572]'],
  body:has(.orthodontist-page) .orthodontist-flow-card [class*='text-[28px]'][class*='text-[#8e5572]'] p {
    font-size: 22px !important;
    line-height: 1.35 !important;
    letter-spacing: 1.1px !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card [class*='text-[20px]'][class*='text-[color:var(--p'] {
    font-size: 16px !important;
    line-height: 1.4 !important;
    letter-spacing: 0.8px !important;
    text-align: left !important;
  }

  body:has(.orthodontist-page) .orthodontist-flow-card [class*='text-[18px]'],
  body:has(.orthodontist-page) .orthodontist-flow-card [class*='text-[18px]'] p {
    font-size: 15px !important;
    line-height: 24px !important;
    letter-spacing: 1.5px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    text-align: left !important;
  }
}
