/* ==========================================================================
   News page — SP layout (375px)
   HTML / PC styles unchanged — responsive overrides only
   Section h2: TOP .top-main (24.19px)
   ========================================================================== */

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

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

  /* ----- 装飾：フローティング予約等は非表示／FV時計は下で再表示 ----- */
  body:has(.news-page) .news-deco,
  body:has(.news-page) .news-page > .absolute[class*='size-[150px]'] {
    display: none !important;
  }

  /*
   * FV 背景（Figma 356:44585）
   * PC と同じ photo-news-fv-soai-clock.png を使用し、円形ソフトマスクで背景に溶かす
   */
  body:has(.news-page) .news-fv-bg {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: 150px !important;
    width: 600px !important;
    height: 633px !important;
    max-width: none !important;
    transform: translateX(-50%) !important;
    translate: none !important;
    pointer-events: none !important;
    z-index: 0 !important;
    opacity: 0.9 !important;
    overflow: visible !important;
    background: url('../../assets/images/photo-news-fv-soai-clock.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(.news-page) .news-fv-bg > div,
  body:has(.news-page) .news-fv-bg img {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* ----- H1 KV ----- */
  body:has(.news-page) .news-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(.news-page) .news-main > div[class*='h-[200px]'] [class*='text-[60px]'] {
    color: var(--corlor-1, #8e5572) !important;
    text-align: center !important;
    font-family: 'Zen Maru Gothic', sans-serif !important;
    font-size: 36px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: normal !important;
    letter-spacing: 1.8px !important;
  }

  body:has(.news-page) .news-main > div[class*='h-[200px]'] [class*='text-[60px]'] p {
    color: inherit !important;
    text-align: 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 ----- */
  body:has(.news-page) .news-main,
  body:has(.news-page) .news-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;
  }

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

  body:has(.news-page) .news-list-section {
    gap: 40px !important;
    overflow: visible !important;
    margin-top: 140px !important;
  }

  /* ----- Section headings (h2 block) — TOP .top-main ----- */
  body:has(.news-page) .news-list-section [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(.news-page) .news-list-section [class*='h-[59px]'][class*='w-[120px]'] {
    height: 39.651px !important;
    width: 80.645px !important;
  }

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

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

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

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

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

  body:has(.news-page) .news-list-section [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(.news-page) .news-list-section [class*='flex-col'][class*='gap-px'] [class*='text-[#8e5572]'],
  body:has(.news-page) .news-list-section [class*='flex-col'][class*='gap-px'] [class*='text-[#8e5572]'] p,
  body:has(.news-page) .news-list-section [class*='flex-col'][class*='gap-px'] [class*='text-[#8e5572]'] span,
  body:has(.news-page) .news-list-section [class*='text-[40px]'][class*='text-[#8e5572]'],
  body:has(.news-page) .news-list-section [class*='text-[40px]'][class*='text-[#8e5572]'] p,
  body:has(.news-page) .news-list-section [class*='text-[40px]'][class*='text-[#8e5572]'] span {
    font-size: 15px !important;
    line-height: 32.258px !important;
    letter-spacing: 1.2095px !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  body:has(.news-page) .news-list-section [class*='leading-[52px]'] {
    line-height: 32.258px !important;
  }

  /* ----- News list body ----- */
  body:has(.news-page) .news-list-body {
    gap: 26.882px !important;
    width: 100% !important;
    align-items: center !important;
  }

  body:has(.news-page) .news-card-list {
    gap: 6.72px !important;
    width: 100% !important;
  }

  body:has(.news-page) .news-card-row {
    height: auto !important;
    min-height: 0 !important;
    position: relative !important;
    width: 100% !important;
  }

  body:has(.news-page) .news-card-row > [class*='absolute'] {
    position: relative !important;
    inset: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  body:has(.news-page) .news-card-list [class*='bg-white'][class*='drop-shadow'] {
    flex-direction: column !important;
    align-items: flex-start !important;
    height: auto !important;
    gap: 6.72px !important;
    padding: 20.161px 26.882px !important;
    border-radius: 13.441px !important;
    box-shadow: 0 2.688px 1.344px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body:has(.news-page) .news-card-list [class*='bg-white'][class*='drop-shadow'] > p:first-child {
    flex: none !important;
    width: auto !important;
    font-size: 15px !important;
    line-height: 18.817px !important;
    letter-spacing: 1.21px !important;
  }

  body:has(.news-page) .news-card-list [class*='bg-white'][class*='drop-shadow'] > p:last-child {
    flex: none !important;
    width: 100% !important;
    font-size: 15px !important;
    line-height: 22.849px !important;
    letter-spacing: 1.478px !important;
    word-break: break-word !important;
  }

  /* ----- News detail article（一覧と同じ余白で背景・タイトル構図を揃える） ----- */
  body:has(.news-page) .news-detail-section {
    gap: 40px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    margin-top: 140px !important;
  }

  body:has(.news-page) .news-detail-section [class*='grid-cols-[max-content]'],
  body:has(.news-page) .news-detail-section [class*='inline-grid'] {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body:has(.news-page) .news-detail-section [class*='col-1'] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    grid-column: unset !important;
    grid-row: unset !important;
  }

  body:has(.news-page) .news-detail-article {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
    padding: 26.882px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body:has(.news-page) .news-detail-article > [class*='flex-col'][class*='gap-[60px]'] {
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    align-items: stretch !important;
  }

  body:has(.news-page) .news-detail-article [class*='shrink-0'] {
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  body:has(.news-page) .news-detail-article [class*='min-w-full'] {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body:has(.news-page) .news-detail-article [class*='gap-[30px]'] {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body:has(.news-page) .news-detail-article [class*='w-[116px]'],
  body:has(.news-page) .news-detail-article [class*='w-[796px]'],
  body:has(.news-page) .news-detail-article [class*='w-[716px]'],
  body:has(.news-page) .news-detail-article [class*='inline-grid'] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body:has(.news-page) .news-detail-article [class*='text-[22px]'] {
    font-size: 15px !important;
    line-height: 24.19px !important;
    letter-spacing: 0.806px !important;
    word-break: break-word !important;
  }

  /* Figma SP: 本文（soai-entry-content） */
  body:has(.news-page) .news-detail-article .soai-entry-content,
  body:has(.news-page) .news-detail-article .soai-entry-content p,
  body:has(.news-page) .news-detail-article [class*='text-[18px]'][class*='tracking-[1.8px]'],
  body:has(.news-page) .news-detail-article [class*='text-[18px]'][class*='tracking-[1.8px]'] p,
  body:has(.news-page) .news-detail-article [class*='whitespace-pre-wrap'],
  body:has(.news-page) .news-detail-article [class*='whitespace-pre-wrap'] p {
    color: #636171 !important;
    font-family: "Noto Sans CJK JP", "Noto Sans JP", sans-serif !important;
    font-size: 15px !important;
    font-style: normal !important;
    font-weight: 350 !important;
    line-height: 23.4px !important;
    letter-spacing: 1.3px !important;
  }

  body:has(.news-page) .news-detail-article .soai-entry-content,
  body:has(.news-page) .news-detail-article [class*='whitespace-pre-wrap'] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Figma SP: お知らせ一覧へボタン（ブログ詳細と同スケール） */
  body:has(.news-page) .news-detail-article .soai-back-button {
    align-self: center !important;
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 6.29px 18.16px 6.07px !important;
    gap: 9.08px !important;
    border-width: 1.34px !important;
    border-radius: 40px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }

  body:has(.news-page) .news-detail-article .soai-back-button,
  body:has(.news-page) .news-detail-article .soai-back-button p,
  body:has(.news-page) .news-detail-article .soai-back-button [class*='text-[18.07px]'] {
    font-size: 15px !important;
    line-height: normal !important;
  }

  body:has(.news-page) .news-detail-article .soai-back-button [class*='h-[5.217px]'] {
    width: 10.32px !important;
    height: 3.64px !important;
    flex-shrink: 0 !important;
  }

  body:has(.news-page) .news-main [class*='inline-grid'][class*='w-[1080px]'],
  body:has(.news-page) .news-main [class*='w-[1080px]']:not(.site-footer *) {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ----- Pagination ----- */
  body:has(.news-page) .news-pagination {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    gap: 26.882px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }

  body:has(.news-page) .news-pagination [class*='size-[20px]'] {
    width: 13.441px !important;
    height: 13.441px !important;
    flex-shrink: 0 !important;
  }

  body:has(.news-page) .news-pagination [class*='text-[18px]'] {
    font-size: 12.1px !important;
    line-height: 18.817px !important;
    letter-spacing: 1.21px !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 1 auto !important;
    text-align: center !important;
  }

  body:has(.news-page) .news-pagination [class*='text-[18px]'] span {
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
  }

  /* ----- Footer — medical-info.css 準拠 ----- */
  body:has(.news-page) .site-footer {
    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(.news-page) .site-footer > [class*='aspect-[3050'] {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    align-self: stretch !important;
    border-radius: 0 !important;
  }

  /* 医院外観写真 — 左右余白（マップは全幅のまま） */
  body:has(.news-page) .site-footer > [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(.news-page) .site-footer > [class*='aspect-[3050'] img {
    border-radius: 0 !important;
  }

  body:has(.news-page) .site-footer > [class*='aspect-[1944'] img {
    border-radius: 10px !important;
  }

  body:has(.news-page) .site-footer > :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(.news-page) .site-footer > [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(.news-page) .site-footer > [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(.news-page) .site-footer > [class*='gap-[36px]'] [class*='items-center'] {
    align-items: flex-start !important;
  }

  body:has(.news-page) .site-footer > [class*='gap-[36px]'] [class*='text-center'] {
    text-align: left !important;
  }

  body:has(.news-page) .site-footer > [class*='gap-[36px]'] [class*='gap-[20px]'] {
    gap: 13.44px !important;
  }

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

  body:has(.news-page) .site-footer > [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(.news-page) .site-footer > [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(.news-page) .site-footer > [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(.news-page) .site-footer > [class*='gap-[36px]'] p[class*='text-[#636171]'],
  body:has(.news-page) .site-footer > [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(.news-page) .site-footer > [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(.news-page) .site-footer [class*='max-w-[840px]'] {
    max-width: 100% !important;
    gap: 20px !important;
    align-items: center !important;
    width: 100% !important;
  }

  body:has(.news-page) .site-footer [class*='gap-[41px_60px]'] {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 24px !important;
    width: 100% !important;
  }

  body:has(.news-page) .site-footer [class*='gap-[41px_60px]'] [class*='px-[30px]'] {
    padding-inline: 0 !important;
    width: 100% !important;
    align-items: center !important;
  }

  body:has(.news-page) .site-footer [class*='aspect-[3635'] {
    min-height: 0 !important;
    min-width: 0 !important;
    max-width: 260px !important;
    width: 100% !important;
    margin-inline: auto !important;
  }

  body:has(.news-page) .site-footer [class*='gap-[41px_60px]'] [class*='text-[18px]'] {
    font-size: 12.1px !important;
    line-height: 18px !important;
    letter-spacing: 0.605px !important;
    text-align: center !important;
    max-width: 100% !important;
  }

  body:has(.news-page) .site-footer [class*='gap-[0px_32px]'] {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
  }

  body:has(.news-page) .site-footer [class*='gap-[0px_32px]'] > [class*='flex-col'] {
    align-items: center !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body:has(.news-page) .site-footer [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: 15.457px !important;
    font-style: normal !important;
    font-weight: 900 !important;
    line-height: normal !important;
    letter-spacing: 0.773px !important;
  }

  body:has(.news-page) .site-footer [class*='gap-[0px_32px]'] [class*='text-[16px]'][class*='text-[color:var(--p'] {
    font-size: 10.75px !important;
    line-height: 18px !important;
  }

  body:has(.news-page) .site-footer [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(.news-page) .site-footer [class*='gap-[0px_32px]'] [class*='inline-grid'] [class*='col-1'] {
    position: relative !important;
    margin: 0 !important;
    width: auto !important;
  }

  body:has(.news-page) .site-footer [class*='gap-[0px_32px]'] [class*='aspect-[45'] {
    width: 28px !important;
    height: 30px !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
  }

  body:has(.news-page) .site-footer [class*='gap-[0px_32px]'] a[href^='tel:'][class*='text-[42px]'],
  body:has(.news-page) .site-footer [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(.news-page) .site-footer [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(.news-page) .site-footer [class*='gap-[17px]'],
  body:has(.news-page) .site-footer .site-footer-sns-row {
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
  }

  body:has(.news-page) .site-footer [class*='gap-[17px]'] [class*='h-[36px]'][class*='w-[176px]'],
  body:has(.news-page) .site-footer .site-footer-sns-row [class*='h-[36px]'][class*='w-[176px]'] {
    width: 140px !important;
    height: 29px !important;
  }

  body:has(.news-page) .site-footer [class*='gap-[17px]'] [class*='h-[44px]'][class*='w-[127px]'],
  body:has(.news-page) .site-footer .site-footer-sns-row [class*='h-[44px]'][class*='w-[127px]'] {
    width: 100px !important;
    height: 35px !important;
  }

  body:has(.news-page) .site-footer [class*='gap-[17px]'] [class*='h-[36px]'][class*='w-[107px]'],
  body:has(.news-page) .site-footer .site-footer-sns-row [class*='h-[36px]'][class*='w-[107px]'] {
    width: 85px !important;
    height: 29px !important;
  }

  body:has(.news-page) .site-footer [class*='gap-[17px]'] [class*='size-[35px]'],
  body:has(.news-page) .site-footer [class*='gap-[17px]'] [class*='size-[36px]'],
  body:has(.news-page) .site-footer .site-footer-sns-row [class*='size-[35px]'],
  body:has(.news-page) .site-footer .site-footer-sns-row [class*='size-[36px]'] {
    width: 30px !important;
    height: 30px !important;
  }

  body:has(.news-page) .site-footer [class*='min-w-[300px]'] {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body:has(.news-page) .site-footer [class*='max-w-[390px]'],
  body:has(.news-page) .site-footer [class*='max-w-[404px]'] {
    max-width: 100% !important;
  }

  body:has(.news-page) .site-footer > [class*='max-w-[840px]'] > [class*='text-[14px]'] {
    font-size: 12px !important;
    line-height: 22px !important;
    letter-spacing: 1.2px !important;
  }
}

/* ==========================================================================
   News page — Tablet layout (768px–1024px)
   faq / medical-info タブレット準拠
   ========================================================================== */

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

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

  /* ----- 装飾：フローティング予約等は非表示／FV時計は下で再表示 ----- */
  body:has(.news-page) .news-deco,
  body:has(.news-page) .news-page > .absolute[class*='size-[150px]'] {
    display: none !important;
  }

  /* FV 背景 — PC と同じ写真を拡大（Figma 比約 1.2） */
  body:has(.news-page) .news-fv-bg {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: 120px !important;
    width: 720px !important;
    height: 760px !important;
    max-width: none !important;
    transform: translateX(-50%) !important;
    translate: none !important;
    pointer-events: none !important;
    z-index: 0 !important;
    opacity: 0.9 !important;
    overflow: visible !important;
    background: url('../../assets/images/photo-news-fv-soai-clock.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(.news-page) .news-fv-bg > div,
  body:has(.news-page) .news-fv-bg img {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* ----- H1 KV ----- */
  body:has(.news-page) .news-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(.news-page) .news-main > div[class*='h-[200px]'] [class*='text-[60px]'],
  body:has(.news-page) .news-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: 400 !important;
    line-height: normal !important;
    letter-spacing: 2.4px !important;
    text-align: center !important;
  }

  /* ----- Main column ----- */
  body:has(.news-page) .news-main,
  body:has(.news-page) .news-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(.news-page) .news-main > :not(.news-fv-bg):not(.news-deco):not(.site-footer):not([class*="-faq-section"]) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body:has(.news-page) .news-list-section,
  body:has(.news-page) .news-detail-section {
    gap: 48px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    align-items: center !important;
  }

  body:has(.news-page) .news-list-section > :not(.absolute):not(.news-deco),
  body:has(.news-page) .news-detail-section > :not(.absolute):not(.news-deco) {
    width: 100% !important;
    max-width: 720px !important;
    min-width: 0 !important;
  }

  /* ----- Section headings ----- */
  body:has(.news-page) .news-list-section [class*='flex-col'][class*='gap-px'][class*='items-center'][class*='justify-center'][class*='max-w-[1080px]'][class*='min-w-[300px]'],
  body:has(.news-page) .news-detail-section [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(.news-page) .news-list-section [class*='flex-col'][class*='gap-px'] [class*='min-w-[300px]'],
  body:has(.news-page) .news-list-section [class*='flex-col'][class*='gap-px'] [class*='inline-grid'][class*='min-w-[300px]'],
  body:has(.news-page) .news-detail-section [class*='flex-col'][class*='gap-px'] [class*='min-w-[300px]'],
  body:has(.news-page) .news-detail-section [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(.news-page) .news-list-section [class*='h-[59px]'][class*='w-[120px]'],
  body:has(.news-page) .news-detail-section [class*='h-[59px]'][class*='w-[120px]'] {
    height: 48px !important;
    width: 98px !important;
  }

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

  body:has(.news-page) .news-list-section [class*='items-start'][class*='justify-center'],
  body:has(.news-page) .news-detail-section [class*='items-start'][class*='justify-center'] {
    align-items: center !important;
    justify-content: center !important;
  }

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

  body:has(.news-page) .news-list-section [class*='flex-col'][class*='gap-px'] [class*='text-[#8e5572]'],
  body:has(.news-page) .news-list-section [class*='flex-col'][class*='gap-px'] [class*='text-[#8e5572]'] p,
  body:has(.news-page) .news-list-section [class*='flex-col'][class*='gap-px'] [class*='text-[#8e5572]'] span,
  body:has(.news-page) .news-list-section [class*='text-[40px]'][class*='text-[#8e5572]'],
  body:has(.news-page) .news-list-section [class*='text-[40px]'][class*='text-[#8e5572]'] p,
  body:has(.news-page) .news-list-section [class*='text-[40px]'][class*='text-[#8e5572]'] span,
  body:has(.news-page) .news-detail-section [class*='flex-col'][class*='gap-px'] [class*='text-[#8e5572]'],
  body:has(.news-page) .news-detail-section [class*='flex-col'][class*='gap-px'] [class*='text-[#8e5572]'] p,
  body:has(.news-page) .news-detail-section [class*='text-[40px]'][class*='text-[#8e5572]'],
  body:has(.news-page) .news-detail-section [class*='text-[40px]'][class*='text-[#8e5572]'] p {
    font-size: 28px !important;
    line-height: 1.3 !important;
    letter-spacing: 1.6px !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  body:has(.news-page) .news-list-section [class*='leading-[52px]'],
  body:has(.news-page) .news-detail-section [class*='leading-[52px]'] {
    line-height: 1.3 !important;
  }

  /* ----- News list ----- */
  body:has(.news-page) .news-list-body {
    gap: 32px !important;
    width: 100% !important;
    max-width: 720px !important;
    align-items: center !important;
  }

  body:has(.news-page) .news-card-list {
    gap: 10px !important;
    width: 100% !important;
    max-width: 720px !important;
  }

  body:has(.news-page) .news-card-row {
    height: auto !important;
    min-height: 0 !important;
    position: relative !important;
    width: 100% !important;
    max-width: 720px !important;
  }

  body:has(.news-page) .news-card-row > [class*='absolute'] {
    position: relative !important;
    inset: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  body:has(.news-page) .news-card-list [class*='bg-white'][class*='drop-shadow'] {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    height: auto !important;
    min-height: 72px !important;
    gap: 32px !important;
    padding: 20px 32px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 2px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    max-width: 720px !important;
    box-sizing: border-box !important;
  }

  body:has(.news-page) .news-card-list [class*='bg-white'][class*='drop-shadow'] > p:first-child {
    flex: none !important;
    width: 116px !important;
    font-size: 16px !important;
    line-height: 26px !important;
    letter-spacing: 1.6px !important;
  }

  body:has(.news-page) .news-card-list [class*='bg-white'][class*='drop-shadow'] > p:last-child {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    font-size: 18px !important;
    line-height: 28px !important;
    letter-spacing: 1.8px !important;
    word-break: break-word !important;
  }

  /* ----- Pagination ----- */
  body:has(.news-page) .news-pagination {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    gap: 32px !important;
    width: 100% !important;
    max-width: 720px !important;
    margin-inline: auto !important;
  }

  body:has(.news-page) .news-pagination [class*='size-[20px]'] {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
  }

  body:has(.news-page) .news-pagination [class*='text-[18px]'] {
    font-size: 16px !important;
    line-height: 26px !important;
    letter-spacing: 1.6px !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 1 auto !important;
    text-align: center !important;
  }

  body:has(.news-page) .news-pagination [class*='text-[18px]'] span {
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
  }

  /* ----- News detail article ----- */
  body:has(.news-page) .news-detail-section [class*='grid-cols-[max-content]'],
  body:has(.news-page) .news-detail-section [class*='inline-grid'] {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body:has(.news-page) .news-detail-section [class*='col-1'] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    grid-column: unset !important;
    grid-row: unset !important;
  }

  body:has(.news-page) .news-detail-article {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 40px !important;
    padding: 32px !important;
    width: 100% !important;
    max-width: 720px !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
  }

  body:has(.news-page) .news-detail-article > [class*='flex-col'][class*='gap-[60px]'] {
    gap: 32px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    align-items: stretch !important;
  }

  body:has(.news-page) .news-detail-article [class*='shrink-0'] {
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  body:has(.news-page) .news-detail-article [class*='min-w-full'] {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body:has(.news-page) .news-detail-article [class*='gap-[30px]'] {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body:has(.news-page) .news-detail-article [class*='w-[116px]'] {
    width: 116px !important;
    flex-shrink: 0 !important;
  }

  body:has(.news-page) .news-detail-article [class*='w-[796px]'],
  body:has(.news-page) .news-detail-article [class*='w-[716px]'],
  body:has(.news-page) .news-detail-article [class*='inline-grid'] {
    width: auto !important;
    flex: 1 1 auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body:has(.news-page) .news-detail-article [class*='text-[22px]'] {
    font-size: 18px !important;
    line-height: 28px !important;
    letter-spacing: 1.8px !important;
    word-break: break-word !important;
  }

  body:has(.news-page) .news-detail-article [class*='text-[18px]'][class*='tracking-[1.8px]'] {
    font-size: 16px !important;
    line-height: 26px !important;
    letter-spacing: 1.6px !important;
  }

  body:has(.news-page) .news-detail-article [class*='whitespace-pre-wrap'] {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    line-height: 26px !important;
    letter-spacing: 1.6px !important;
  }

  body:has(.news-page) .news-detail-article [class*='whitespace-pre-wrap'] p {
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
  }

  /* TB: お知らせ一覧へボタン */
  body:has(.news-page) .news-detail-article .soai-back-button {
    align-self: center !important;
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 8px 20px !important;
    gap: 10px !important;
    border-width: 1.5px !important;
    border-radius: 48px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }

  body:has(.news-page) .news-detail-article .soai-back-button,
  body:has(.news-page) .news-detail-article .soai-back-button p,
  body:has(.news-page) .news-detail-article .soai-back-button [class*='text-[18.07px]'] {
    font-size: 14px !important;
    line-height: normal !important;
  }

  body:has(.news-page) .news-detail-article .soai-back-button [class*='h-[5.217px]'] {
    width: 12px !important;
    height: 4.2px !important;
    flex-shrink: 0 !important;
  }

  body:has(.news-page) .news-main [class*='inline-grid'][class*='w-[1080px]'],
  body:has(.news-page) .news-main [class*='w-[1080px]']:not(.site-footer *) {
    width: 100% !important;
    max-width: 720px !important;
  }
}
