/* ===================================================================
   ALLREJU · mobile / tablet only
   Desktop styles and existing product/spec data stay in style.css.
   2026-10 responsive pass · loaded AFTER style.css.
   =================================================================== */

@media (max-width: 1100px) {

  /* Later desktop rules in style.css were overriding earlier breakpoints. */
  .hero .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid>*,
  .split-layout>*,
  .contact-grid>*,
  .product-family-grid>*,
  .product-grid-sub>* {
    min-width: 0;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-visual {
    width: 100%;
    min-width: 0;
  }

  .hero .product-stage {
    max-width: 100%;
  }

  .products-section .product-grid-sub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .allreju-products.open,
  .family-products.open {
    max-height: 6400px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 76px;
  }

  html {
    scroll-padding-top: 92px;
  }

  .container,
  .header-inner {
    width: min(calc(100% - 32px), 680px);
  }

  .section {
    padding: 76px 0;
  }

  .section[id] {
    scroll-margin-top: 88px;
  }

  /* Header stays clear on first screen, and forms a glass bar on scroll. */
  .site-header {
    height: 76px;
    padding: 9px 0;
  }

  .site-header .header-inner {
    height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 0 12px 0 16px;
  }

  .site-header .brand img {
    width: 100px;
    max-height: 49px;
    object-fit: contain;
  }

  .site-header.scrolled .brand img {
    width: 86px;
  }

  .site-header .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-self: end;
    width: 44px;
    height: 44px;
    padding: 10px;
    z-index: 3;
    touch-action: manipulation;
  }

  .menu-toggle span {
    width: 100%;
    margin: 3px 0;
  }

  .global-nav {
    position: fixed;
    top: calc(var(--header-height) + 6px);
    left: 16px;
    right: 16px;
    width: auto;
    max-height: calc(100dvh - 105px);
    overflow-y: auto;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 44px rgba(17, 31, 52, .14);
  }

  .global-nav.open {
    display: grid;
  }

  .global-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--navy);
  }

  .global-nav a.active {
    color: var(--copper);
  }

  .header-cta {
    display: none;
  }

  /* Hero: prevent fixed desktop column minimums on small viewports. */
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 44px);
    padding-bottom: 50px;
    background-image:
      linear-gradient(90deg, rgba(255, 251, 247, .89) 0%, rgba(255, 251, 247, .73) 60%, rgba(255, 251, 247, .35) 100%),
      url("./images/bg.webp");
    background-position: center, 63% center;
    background-size: cover;
  }

  .hero .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .hero-copy {
    max-width: 100%;
    text-align: left;
  }

  .hero h1 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(38px, 7vw, 54px);
    line-height: 1.2;
  }

  .hero-description {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-visual {
    min-height: 330px;
    overflow: visible;
  }

  .hero .product-stage {
    width: 100%;
    height: 300px;
    margin: 0;
    transform: none;
  }

  .hero .product-item {
    bottom: 25px;
  }

  /* ABOUT: image first, copy below. No squeezed 2-column layout. */
  .about-detail .split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
  }

  .about-detail .section-visual {
    min-height: 330px;
    width: 100%;
  }

  .about-detail .single-pack-product {
    width: min(320px, 55%);
  }

  .about-detail .visual-ring {
    width: min(480px, 90%);
  }

  .about-detail .section-copy {
    text-align: left;
  }

  .about-detail .section-copy h2 {
    font-size: clamp(34px, 6vw, 46px);
  }

  .about-detail .section-copy>p:not(.eyebrow) {
    font-size: 17px;
    line-height: 1.8;
  }

  .about-detail .about-trust-wrap {
    margin-top: 42px;
  }

  .about-detail .about-trust-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-detail .about-trust-panel article {
    min-width: 0;
    padding: 23px 12px;
  }

  .about-detail .about-trust-panel strong {
    font-size: 16px;
  }

  .about-detail .about-trust-panel p {
    font-size: 14px;
  }

  /* PRODUCTS: family cards are vertical, individual products 2 across. */
  .products-section .product-family-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .products-section .allreju-family {
    grid-column: auto;
  }

  .products-section .product-family-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px 14px 22px;
  }

  .products-section .family-visual {
    flex: 0 0 auto;
    height: 265px;
    margin-bottom: 18px;
  }

  .products-section .product-family-card h3 {
    font-size: 28px;
  }

  .products-section .product-family-card>p:not(.family-kicker) {
    min-height: 0;
    margin-bottom: 8px;
    font-size: 14px;
  }

  .products-section .family-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 44px;
    margin-top: auto;
    font-size: 15px;
  }

  .products-section .family-visual.single-product img {
    max-height: 94%;
    scale: 1.25;
  }

  .products-section .family-visual.allreju-stack {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .products-section .family-visual.allreju-stack img {
    scale: 1.45;
  }

  .allreju-subheading {
    align-items: center;
  }

  .allreju-subheading h3 {
    font-size: 25px;
  }

  .allreju-close {
    min-height: 44px;
    padding: 10px;
  }

  .products-section .product-grid-sub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .products-section .product-grid-sub .product-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px;
    border-radius: 18px;
  }

  .products-section .product-card-image {
    height: 200px;
    margin-bottom: 14px;
  }

  .products-section .product-card-image img {
    max-height: 94%;
    scale: 1.22;
  }

  .products-section .product-grid-sub .product-card h3 {
    font-size: 20px;
  }

  .products-section .product-grid-sub .product-card p {
    overflow-wrap: anywhere;
  }

  .products-section .card-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 44px;
    margin-top: auto;
  }

  .network-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .network-section .network-map {
    overflow: hidden;
  }

  .section-heading {
    margin-bottom: 30px;
    padding-bottom: 18px;
  }

  .section-heading h2 {
    font-size: clamp(34px, 6.5vw, 46px);
  }

  /* NEWS: readable full-width thumbnail and touch-scrolling news list. */
  .news-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .news-section .news-list {
    max-height: 284px;
  }

  .featured-news {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
  }

  .news-section .news-image {
    width: 100%;
    min-height: 255px;
  }

  .featured-news h3 {
    font-size: 21px;
  }

  .news-row {
    grid-template-columns: 85px minmax(0, 1fr);
    gap: 10px;
    min-height: 76px;
  }

  .news-row strong {
    white-space: normal;
  }

  .news-row time {
    display: block;
    grid-column: 2;
  }

  .news-row .news-category {
    grid-column: 1;
    grid-row: 1/3;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .contact-copy,
  .contact-form {
    min-height: 0;
  }

  .contact-copy h2 {
    font-size: clamp(34px, 6.5vw, 46px);
  }

  .company-info dd {
    overflow-wrap: anywhere;
  }

  .location-panel .map-card {
    width: 100%;
  }

  /* Modal: full usable phone width; spec table scrolls inside the modal. */
  .modal-panel {
    width: calc(100% - 24px);
    max-width: 680px;
    max-height: calc(100dvh - 28px);
    padding: 28px 16px 26px;
    border-radius: 18px;
    overscroll-behavior: contain;
  }

  .modal-panel h2 {
    font-size: clamp(27px, 6vw, 36px);
    padding-right: 18px;
  }

  .modal-panel .eyebrow {
    font-size: 14px;
  }

  .modal-close {
    top: 9px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .spec-section {
    gap: 16px;
  }

  .spec-head {
    gap: 10px;
  }

  .spec-head h3 {
    font-size: 23px;
  }

  .spec-visuals {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .spec-visuals .spec-icon {
    width: 80px;
  }

  .spec-visuals .spec-thread {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .spec-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .spec-table-wrap::before {
    content: '← 규격표를 좌우로 밀어 확인하세요 →';
    position: sticky;
    left: 0;
    display: block;
    width: max-content;
    padding: 0 0 7px;
    font-size: 11px;
    color: #89909a;
  }

  .spec-table {
    min-width: 540px;
  }

  .spec-table th,
  .spec-table td {
    padding: 12px 10px;
  }

  .spec-table tbody td {
    font-size: 14px;
  }

  .spec-table thead th {
    font-size: 13px;
  }

  .spec-table-grouped .stacked-values span {
    min-height: 45px;
  }

  .modal-panel>.button.button-primary {
    margin-top: 28px;
    min-height: 46px;
  }

  .product-ribbon-family {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-ribbon-family a {
    min-height: 65px;
    font-size: 13px;
  }

  .top-button {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 540px) {

  .container,
  .header-inner {
    width: calc(100% - 28px);
  }

  .section {
    padding: 62px 0;
  }

  .section[id] {
    scroll-margin-top: 74px;
  }

  .site-header .header-inner {
    padding-left: 12px;
    padding-right: 10px;
  }

  .global-nav {
    left: 14px;
    right: 14px;
  }

  .intro-wordmark {
    width: 100%;
    font-size: clamp(24px, 6.3vw, 34px);
  }

  .intro-korean {
    top: -7px;
    left: 80%;
    font-size: 9px !important;
  }

  .intro-face {
    width: clamp(90px, 27vw, 118px);
  }

  .intro-skip {
    top: max(18px, env(safe-area-inset-top));
    right: 18px;
    min-height: 44px;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 38px;
  }

  .hero .hero-grid {
    gap: 12px;
  }

  .hero .hero-brandline {
    font-size: clamp(13px, 4vw, 18px);
  }

  .hero h1 {
    font-size: clamp(32px, 9.5vw, 43px);
  }

  .hero-description {
    margin-top: 20px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-actions .button {
    width: 100%;
    max-width: 320px;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero .product-stage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 1px;
    align-items: end;
    justify-items: center;
    width: 100%;
    height: auto;
    padding: 18px 0 0;
    margin: 0 auto;
    transform: none;
  }

  .hero .product-stage .product-item {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(95px, 92%);
    height: auto;
    max-height: 152px;
    object-fit: contain;
    --rotate: 0deg;
    transform: scale(1.12);
    filter: drop-shadow(0 9px 8px rgba(22, 28, 45, .13));
  }

  .hero .product-stage .product-item:hover {
    transform: none;
  }

  .about-detail .section-visual {
    min-height: 255px;
  }

  .about-detail .single-pack-product {
    width: min(230px, 58%);
  }

  .about-detail .visual-ring {
    height: 100px;
  }

  .about-detail .section-copy h2,
  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(31px, 8.5vw, 40px);
  }

  .about-detail .section-copy>p:not(.eyebrow) {
    font-size: 16px;
  }

  .about-detail .section-copy p br {
    display: none;
  }

  .about-detail .about-trust-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-detail .about-trust-panel article {
    min-height: 158px;
    padding: 18px 8px;
  }

  .about-detail .about-trust-panel article:nth-child(2) {
    border-top: 0;
  }

  .about-detail .about-trust-panel article:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .about-detail .about-trust-panel article+article::before {
    display: none !important;
  }

  .about-detail .about-trust-panel strong {
    font-size: 15px;
  }

  .about-detail .about-trust-panel p {
    font-size: 13px;
  }

  .products-section .product-family-card {
    padding: 12px 12px 18px;
    border-radius: 20px;
  }

  .products-section .family-visual {
    height: 215px;
  }

  .products-section .family-visual.single-product img {
    max-height: 96%;
    scale: 1.18;
  }

  .products-section .family-visual.allreju-stack img {
    scale: 1.3;
  }

  .products-section .product-family-card h3 {
    font-size: 25px;
  }

  .products-section .product-family-card h3 span {
    font-size: 13px;
  }

  .products-section .product-grid-sub {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .products-section .product-grid-sub .product-card {
    padding: 14px;
  }

  .products-section .product-card-image {
    height: 215px;
  }

  .products-section .product-card-image img {
    scale: 1.27;
  }

  .allreju-subheading {
    gap: 10px;
  }

  .allreju-subheading h3 {
    font-size: 23px;
  }

  .network-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clinic-card {
    min-width: 0;
    padding: 15px 10px;
  }

  .clinic-card h3 {
    font-size: 16px;
  }

  .news-section .news-image {
    min-height: 215px;
  }

  .news-section .news-list {
    max-height: 268px;
  }

  .news-section .news-image>img {
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
  }

  .featured-news h3 {
    font-size: 19px;
  }

  .news-row {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
  }

  .contact-section .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-section .contact-form {
    padding: 24px 17px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }

  .location-panel .map-card {
    height: 255px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .footer-copy {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .product-ribbon-family a {
    min-height: 60px;
    font-size: 12px;
  }

  .modal-panel {
    width: calc(100% - 14px);
    max-height: calc(100dvh - 18px);
    padding: 22px 12px 22px;
    border-radius: 14px;
  }

  .modal-panel h2 {
    font-size: 28px;
  }

  .spec-head h3 {
    font-size: 20px;
  }

  .spec-badges {
    gap: 6px;
  }

  .spec-badge {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }
}

@media (max-width: 370px) {
  .hero h1 {
    font-size: 32px;
  }

  .about-detail .about-trust-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-detail .about-trust-panel article+article {
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {

  .products-section .product-family-card,
  .news-section .news-image img {
    transition: none;
  }
}


/* ===============================================================
   Mobile navigation · right side slide-in drawer
   Brand gradient mirrors the existing ALLREJU gradient ribbon.
   =============================================================== */
.mobile-menu-backdrop,
.mobile-drawer {
  display: none;
}

@media (max-width: 820px) {

  /* Disable the old drop-down navigation on mobile only. */
  .site-header .global-nav {
    display: none !important;
  }

  /* Keep a three-line hamburger, using the existing brand gradient. */
  .site-header .menu-toggle {
    position: relative;
    z-index: 1;
    cursor: pointer;
  }

  .site-header .menu-toggle span {
    height: 2.5px;
    border-radius: 99px;
    background: linear-gradient(90deg, #cba383 0%, #8060bf 36%, #07407e 72%, #3c92c8 100%);
  }

  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(7, 21, 45, .46);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .32s ease, visibility .32s ease;
  }

  .mobile-menu-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1101;
    width: min(370px, 87vw);
    height: 100vh;
    height: 100dvh;
    padding: max(26px, env(safe-area-inset-top)) 26px max(26px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(155deg, #ffffff 0%, #faf8fa 56%, #f2f2fb 100%);
    box-shadow: -20px 0 55px rgba(10, 28, 57, .17);
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform .36s cubic-bezier(.22, 1, .36, 1), visibility .36s;
    will-change: transform;
  }

  .mobile-drawer.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-drawer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #cba383, #8060bf, #07407e, #3c92c8);
  }

  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(22, 38, 70, .10);
  }

  .mobile-drawer-brand {
    font-family: "Margaret", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", serif;
    font-size: 18px;
    letter-spacing: .02em;
    font-weight: 700;
    color: #102f5a;
  }

  .mobile-drawer-close {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(12, 44, 82, .10);
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #102f5a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    padding-top: 25px;
  }

  .mobile-drawer-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 63px;
    padding: 9px 5px;
    border-bottom: 1px solid rgba(23, 45, 81, .08);
    color: #173454;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: .035em;
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
  }

  .mobile-drawer-nav a span {
    color: #b79bcb;
    font-size: 18px;
  }

  .mobile-drawer-nav a:is(:hover, :focus-visible),
  .mobile-drawer-nav a.active {
    padding-left: 11px;
    color: #8262b2;
  }

  .mobile-drawer-footer {
    display: grid;
    gap: 16px;
    margin-top: auto;
    padding-top: 32px;
  }

  .mobile-drawer-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(105deg, #cba383, #8060bf, #07407e);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-drawer-footer p {
    margin: 0;
    color: #8990a3;
    font-size: 12px;
    letter-spacing: .04em;
  }

  body.mobile-drawer-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {

  .mobile-drawer,
  .mobile-menu-backdrop {
    transition: none !important;
  }

  .mobile-drawer-nav a {
    transition: none;
  }
}


/* 모바일 제품 구성: 올리쥬/볼픽스/미쥬코 각 카드 바로 아래에 패널 표시 */
@media (max-width: 820px) {

  /* 닫힌 패널이 그리드의 빈 행/간격을 차지하지 않게 합니다. */
  .products-section .product-family-grid>.allreju-products:not(.open) {
    display: none;
  }

  .products-section .product-family-grid>.allreju-products.open {
    display: block;
    grid-column: 1 / -1;
    min-width: 0;
    margin-top: 0;
    padding: 6px 10px 30px;
    max-height: 6400px;
  }
}


/* APROMEDION 푸터 - 모바일/태블릿 레이아웃 */
@media (max-width: 600px) {
  .site-footer {
    padding: 28px 0 24px;
  }

  .site-footer .footer-top {
    align-items: flex-start;
    gap: 17px;
    padding-bottom: 24px;
  }

  .site-footer .footer-brand {
    flex-basis: 88px;
  }

  .site-footer .footer-brand img {
    width: 84px;
  }

  .site-footer .footer-company {
    font-size: 15px;
  }

  .site-footer .footer-info {
    font-size: 12px;
    gap: 8px;
  }

  .site-footer .footer-contact-details {
    gap: 5px 9px;
  }

  .site-footer .footer-contact-separator {
    display: none;
  }

  .site-footer .footer-bottom {
    align-items: flex-start;
    gap: 14px;
  }

  .site-footer .footer-links {
    gap: 12px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .site-footer .footer-top {
    gap: 14px;
  }

  .site-footer .footer-brand {
    flex-basis: 68px;
  }

  .site-footer .footer-brand img {
    width: 66px;
  }

  .site-footer .footer-links {
    flex-wrap: wrap;
  }
}


/* CONTACT: 좁은 모바일에서도 개인정보 수집 안내가 카드 안에 들어오도록 */
@media (max-width: 540px) {
  #contact-form .privacy-disclosure-toggle {
    min-height: 60px;
    padding: 14px 37px 14px 12px;
    font-size: 14px;
  }

  #contact-form .privacy-disclosure-toggle::after {
    right: 15px;
  }

  #contact-form .privacy-disclosure-body {
    padding: 18px 12px 20px;
  }

  #contact-form .privacy-disclosure-body h3 {
    font-size: 16px;
  }

  #contact-form .privacy-info-table {
    font-size: 12px;
  }

  #contact-form .privacy-info-table th,
  #contact-form .privacy-info-table td {
    padding: 11px 8px;
  }

  #contact-form .privacy-info-table th {
    width: 32%;
  }

  #contact-form .privacy-info-note {
    font-size: 12px;
  }

  #contact-form .privacy-info-link {
    font-size: 13px;
  }
}

/* ===============================================================
   제품 상세 규격표: 작은 모바일에서는 4개 항목을 한 화면에 표시
   - PC 규격표/병합 셀/제품별 색상은 변경하지 않음
   - 폭이 좁아도 좌우로 밀지 않고 전체 4열을 비교할 수 있게 함
   =============================================================== */
@media (max-width: 600px) {
  .modal-panel .spec-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
  }

  /* 기존 '좌우로 밀어 확인하세요' 문구는 4열 전체 표시 방식에서는 불필요 */
  .modal-panel .spec-table-wrap::before {
    content: none;
    display: none;
  }

  .modal-panel .spec-table-grouped {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }

  /* 기기 폭에 맞게 열 배분: USP / Gauge / Needle / Thread */
  .modal-panel .spec-table-grouped thead th:nth-child(1) {
    width: 18%;
  }

  .modal-panel .spec-table-grouped thead th:nth-child(2) {
    width: 28%;
  }

  .modal-panel .spec-table-grouped thead th:nth-child(3) {
    width: 27%;
  }

  .modal-panel .spec-table-grouped thead th:nth-child(4) {
    width: 27%;
  }

  .modal-panel .spec-table-grouped th,
  .modal-panel .spec-table-grouped td {
    box-sizing: border-box;
    padding: 10px 3px;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /* 컬러는 각 제품 CSS 그대로, 헤더 단어만 자연스럽게 2줄로 표시 */
  .modal-panel .spec-table-grouped thead th {
    padding: 11px 2px;
    font-size: clamp(11px, 3.2vw, 13px);
    font-weight: 650;
    line-height: 1.35;
    white-space: normal;
  }

  /* 모바일에서는 컬럼명을 2줄로 표시해 작은 글씨를 피합니다. */
  .modal-panel .spec-table-grouped thead th span {
    display: block;
    white-space: nowrap;
  }

  .modal-panel .spec-table-grouped tbody td {
    font-size: clamp(11.5px, 3.5vw, 13.5px);
    line-height: 1.4;
    color: #4d5360;
  }

  /* 병합된 USP 값과 Needle Gauge는 길이 값과 쉽게 구분되게 표시 */
  .modal-panel .spec-table-grouped tbody td.usp-merged,
  .modal-panel .spec-table-grouped tbody td:not(.usp-merged):not(.spec-length-cell) {
    font-weight: 600;
  }

  .modal-panel .spec-table-grouped tbody td:not(.usp-merged):not(.spec-length-cell) {
    font-size: clamp(10.5px, 3.2vw, 12.5px);
  }

  /* 여러 Needle / Thread 길이값의 점선 구분 및 행 높이 유지 */
  .modal-panel .spec-table-grouped .stacked-values span {
    min-height: 42px;
    padding: 9px 2px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
}


/* =============================================================
   PRODUCTS / Apple 스타일 모바일 가로 스와이프 카드
   PC 3열과 제품 상세 모달·규격표는 기존 상태 그대로 유지
   ============================================================= */
.family-carousel-controls {
  display: none;
}

@media (max-width: 820px) {
  .products-section .family-carousel {
    width: 100%;
    min-width: 0;
  }

  .products-section .family-carousel .product-family-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: calc(100% - 64px);
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 14px;
    width: calc(100% + 12px);
    margin: 0 -6px;
    padding: 12px 6px 24px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .products-section .family-carousel .product-family-grid::-webkit-scrollbar {
    display: none;
  }

  .products-section .family-carousel .product-family-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    grid-column: auto;
    min-width: 0;
    height: 100%;
    min-height: 420px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  /* 터치할 때 기존 PC 호버 효과로 카드가 위아래 흔들리지 않도록 */
  .products-section .family-carousel .product-family-card:hover {
    transform: none;
    box-shadow: 2px 4px 12px #00000014;
  }

  .products-section .family-carousel .product-family-card:hover .family-visual {
    transform: none;
  }

  /* 조작 버튼 없이, 가볍게 다음 콘텐츠 방향만 표시 */
  .products-section .family-carousel-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 27px;
    padding: 0 12px 2px;
    pointer-events: none;
  }

  .products-section .family-carousel-hint {
    color: #ad806b;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
  }

  /* 펼쳐지는 제품 시리즈는 슬라이드 영역 아래에 단독 표시 */
  .products-section [data-family-panel].open {
    margin-top: 18px;
    padding: 10px 10px 32px;
    max-height: 6400px;
  }
}

@media (max-width: 540px) {
  .products-section .family-carousel .product-family-card {
    min-height: 400px;
  }

  .products-section .family-carousel-hint {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .products-section .family-carousel .product-family-grid {
    scroll-behavior: auto;
  }
}


/* =============================================================
   모바일 2단계 슬라이드: 올리쥬·볼픽스·미쥬코 개별 제품과 클리닉
   PC 레이아웃은 변경하지 않고, 다음 카드가 살짝 보이도록 구성
   ============================================================= */
.mobile-card-carousel-controls {
  display: none;
}

@media (max-width: 820px) {

  .products-section [data-family-panel] .product-grid-sub,
  .network-section .network-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 86%;
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 10px 26px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .products-section [data-family-panel] .product-grid-sub::-webkit-scrollbar,
  .network-section .network-grid::-webkit-scrollbar {
    display: none;
  }

  .products-section [data-family-panel] .product-grid-sub>.product-card,
  .network-section .network-grid>.clinic-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    grid-column: auto;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
  }

  .products-section [data-family-panel] .product-grid-sub>.product-card {
    min-height: 380px;
  }

  .network-section .network-grid>.clinic-card {
    min-height: 222px;
  }

  /* 터치 후 남는 hover 효과로 카드가 흔들리지 않도록 */
  .products-section [data-family-panel] .product-card:hover,
  .network-section .clinic-card:hover {
    transform: none;
    box-shadow: 2px 4px 12px #00000014;
  }

  .mobile-card-carousel-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 27px;
    padding: 0 12px 2px;
    pointer-events: none;
  }

  .mobile-card-carousel-hint {
    color: #ad806b;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
  }

}

@media (prefers-reduced-motion: reduce) {

  .products-section [data-family-panel] .product-grid-sub,
  .network-section .network-grid {
    scroll-behavior: auto;
  }
}

@media (min-width: 541px) and (max-width: 820px) {

  .products-section [data-family-panel] .product-grid-sub,
  .network-section .network-grid {
    grid-auto-columns: 52%;
  }
}


/* 모바일: 슬라이드 안내 문구 + 제품 이미지 수직 위치 미세 조정
   PC 스타일 및 올리쥬 대표 카드 이미지는 유지합니다. */
@media (max-width: 820px) {

  /* 슬라이드 조작 버튼 대신 짧은 안내 문구 */
  .products-section .family-carousel-hint,
  .mobile-card-carousel-hint {
    color: #967763;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  /* 대표 카드: 볼픽스·미쥬코 이미지만 조금 아래로 */
  .products-section .family-carousel .product-family-card:nth-child(2) .family-visual.single-product img,
  .products-section .family-carousel .product-family-card:nth-child(3) .family-visual.single-product img {
    transform: translateY(14px);
  }

  /* 제품 보기 안의 시리즈 카드: 세 제품군 모두 이미지 소폭 하향 */
  .products-section [data-family-panel] .product-card-image img {
    transform: translateY(10px);
  }
}


/* 모바일 슬라이드 안내: 문구 옆의 오른쪽 화살표만 부드럽게 움직입니다.
   조작 버튼이 아닌 좌우 스와이프를 알려주는 시각적 힌트입니다. */
@media (max-width: 820px) {

  .products-section .family-carousel-hint::after,
  .mobile-card-carousel-hint::after {
    content: "→";
    display: inline-block;
    margin-left: 8px;
    color: #967763;
    font-size: 17px;
    font-weight: 600;
    vertical-align: -1px;
    animation: allreju-swipe-arrow 1.6s ease-in-out infinite;
    will-change: transform;
  }
}

@keyframes allreju-swipe-arrow {

  0%,
  100% {
    transform: translateX(-4px);
    opacity: 0.65;
  }

  50% {
    transform: translateX(5px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {

  .products-section .family-carousel-hint::after,
  .mobile-card-carousel-hint::after {
    animation: none;
    transform: none;
    opacity: 1;
    will-change: auto;
  }
}


/* Supplied SVG: keep the drawer wordmark within its existing header slot. */
@media (max-width: 820px) {
  .mobile-drawer-brand .brand-svg {
    width: 86px;
    height: auto;
    display: block;
  }
}

/* Airier hero typography; keep the two headline lines inside narrow screens. */
@media (max-width: 540px) {
  .hero .hero-brandline {
    margin-bottom: 22px;
  }

  .hero .hero-copy h1 {
    font-size: clamp(28px, 8.8vw, 43px);
    line-height: 1.4;
  }
}

/* The mobile hero has a pale overlay: use dark text for readable contrast.
   The desktop headline remains white; wordmark colour matches navigation. */
@media (max-width: 820px) {
  .hero .hero-copy h1 {
    color: #fff;
    text-shadow: 2px 2px 5px #7f5a5a7b;
  }

  .hero .hero-description {
    color: #594a40;
    text-shadow: none;
  }

  .hero .hero-description br {
    display: initial;
  }
}
/* MIJUKO S: a merged USP cell shifts the second row's DOM cell indexes.
   Target length cells by class so 19G L uses the same 42px row as 19G HL. */
@media (max-width: 600px) {
  .modal-panel .spec-table-grouped.mijuko-special-table td.spec-length-cell {
    padding: 0;
  }
}

/* Only the Korean intro label shrinks; the face and SVG wordmark keep scale. */
@media (max-width: 820px) {
  .intro-wordmark .intro-korean {
    font-size: clamp(6px, .10em, 13px) !important;
  }
}
@media (max-width: 540px) {
  .intro-wordmark .intro-korean { font-size: .22em !important; }
}

/* Keep the original mobile card carousel; the directory opens below it. */
@media (max-width: 820px) {
  .network-section .clinic-toggle-wrap { margin-top: 22px; }
  .clinic-directory { padding: 22px 18px; }
  .clinic-directory-heading { align-items: flex-start; gap: 18px; }
  .clinic-directory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
}
@media (max-width: 540px) {
  .clinic-directory { margin-top: 22px; padding: 22px 16px; border-radius: 15px; }
  .clinic-directory-heading { flex-direction: column; }
  .clinic-directory-heading h3 { font-size: 21px; }
  .clinic-search-field { width: 100%; }
  .clinic-directory-list { grid-template-columns: minmax(0, 1fr); }
  .clinic-directory-list > li { min-height: 51px; padding: 13px 2px; }
  .clinic-directory-footer .button { width: 100%; }
}

/* ==========================================================
   CLINICS 모바일: 로고만 보이는 느린 자동 캐러셀
   PC 배열은 style.css 설정 그대로 유지합니다.
   ========================================================== */
@media (max-width: 820px) {
  .network-section .network-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: clamp(148px, 42vw, 188px);
    grid-auto-rows: auto;
    justify-content: normal;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px 16px 16px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: none;
    scroll-behavior: auto;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .network-section .network-grid::-webkit-scrollbar {
    display: none;
  }
  .network-section .network-grid > .clinic-card {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    transform: none;
  }
  .network-section .network-grid > .clinic-card:hover {
    transform: none;
    box-shadow: none;
  }
  .network-section .network-grid > .clinic-card .clinic-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* 클리닉은 자동으로 움직이므로 수동 슬라이드 안내를 숨깁니다. */
  .network-section .mobile-card-carousel-controls {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .network-section .network-grid > .clinic-card {
    transition: none;
  }
}


/* CLINICS 무한 슬라이드: 새 로고가 오른쪽에서 등장할 때 투명하게
   페이드인하지 않도록 합니다. 다른 섹션의 reveal은 유지됩니다. */
@media (max-width: 820px) {
  .network-section .network-grid > .clinic-card,
  .network-section .network-grid > .clinic-card.reveal,
  .network-section .network-grid > .clinic-card.reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}


/* 6 × 2 PC용 '추가 예정' 칸은 모바일 자동 슬라이드에서 제외합니다. */
@media (max-width: 820px) {
  .network-section .network-grid > .clinic-logo-slot {
    display: none !important;
  }
}
