/* Hero */

.main-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #f0f7fc 0%, #ffffff 60%, #f9f4eb 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 70px 0;
}

.hero-copy {
  max-width: 480px;
}

.hero-copy h1 {
  margin: 18px 0 0;
  color: var(--navy);
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-copy h1 em,
.main-section h2 em,
.consult-section h2 em {
  font-style: normal;
  color: var(--blue);
}

.consult-section h2 em {
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* hero-copy 폭이 480px로 좁아서 두 버튼은 화면 크기와 관계없이 늘 위아래로
   쌓인다. 그런데 너비는 각자 글자 길이만큼만 차지해서 두 버튼 크기가 서로
   달라 보였다 (2026-09-23). 항상 같은 너비로 꽉 채운다. */
.hero-actions .primary-btn,
.hero-actions .secondary-btn {
  width: 100%;
}

.location-placeholder {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px dashed #9db4c4;
  border-radius: 16px;
  background: linear-gradient(145deg, #eaf3f8, #fffaf1);
  color: #7b92a2;
  font-weight: 800;
  font-size: 1.1rem;
}

/* 청력관리2/3/4 등 - 아직 내용이 없는 임시 하위 탭 */

.placeholder-box {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 220px;
  padding: 24px;
  border: 1px dashed #9db4c4;
  border-radius: 16px;
  background: linear-gradient(145deg, #eaf3f8, #fffaf1);
  color: #7b92a2;
  font-weight: 700;
  text-align: center;
}

.placeholder-box .text-link {
  margin-top: 0;
  color: var(--navy);
}

.hero-placeholder {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54%;
  background-image: url('images/단독사진.jpg');
  background-size: cover;
  background-position: center 25%;
}

.hero-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      #ffffff 0%,
      rgba(255, 255, 255, 0.8) 5%,
      rgba(255, 255, 255, 0.4) 10%,
      rgba(255, 255, 255, 0.1) 14%,
      rgba(255, 255, 255, 0) 18%);
}

/* Trust strip */

.trust-strip {
  background: var(--navy);
  color: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 32px 0;
}

.trust-grid div {
  display: grid;
  gap: 3px;
  padding: 0 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

/* 예전에는 첫 칸만 왼쪽 여백을 없앴는데, 그러면 첫 칸 글씨만 22px 왼쪽으로 튀어나와
   네 칸의 글씨 시작 위치가 어긋나 보였다. 네 칸 모두 같은 여백을 줘서 열을 맞춘다. */

.trust-grid div:last-child {
  border: 0;
}

.trust-grid strong {
  font-size: 1.15rem;
}

.trust-grid span {
  color: #c9dcea;
  font-size: 0.82rem;
}

/* Shared section layout */

.main-section {
  padding: 112px 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* 2026-09-26 — 여기(센터안내 #center·사후관리 흐름 #process) 제목은
   그동안 크기를 따로 정해준 적이 없어서, 브라우저가 알아서 정하는
   기본 크기로 떠 있었다. 휴대폰에서는 그 기본값이 유난히 작아서(측정:
   22.5px) 밑에 있는 굵은 문장(29.82px)보다 제목이 더 작아 보이는
   문제가 있었다("문구들이 정리가 안 됐다"는 지적). 크기를 직접 정해서
   제목이 항상 본문보다 크게 보이도록 고정한다. */
.split-grid > div > h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1.22;
  letter-spacing: -0.04em;
}

/* 센터소개 첫머리 문구. 센터의 다짐을 담은 문장이라 본문보다 크게 보여준다. */
.large-copy {
  margin: 0;
  color: var(--text);
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.75;
}

/* 휴대폰 요약문(위 mobile-summary)의 큰따옴표 다짐 문장과, 그 뒤에 오는
   설명 한 줄을 시각적으로 구분한다 — 지금까지는 굵기만 다르고 크기·색이
   같아서 두 문장이 한 덩어리로 보여 "정리가 안 됐다"는 지적을 받았다. */
.center-lead-quote {
  display: block;
  margin-bottom: 10px;
  color: var(--navy-deep);
}

.center-lead-caption {
  display: block;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--navy);
  font-weight: 800;
}

.text-link span {
  color: var(--accent);
}

.center-gallery {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

.center-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 40, 66, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

/* 글자(‹ ›) 대신 SVG로 그려 동그라미 한가운데에 정확히 오게 한다 (2026-09-25). */
.center-gallery-arrow svg {
  width: 45%;
  height: 45%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.center-gallery-arrow:hover {
  background: rgba(15, 40, 66, 0.8);
}

.center-gallery-arrow-prev {
  left: -8px;
}

.center-gallery-arrow-next {
  right: -8px;
}

@media (max-width: 640px) {
  .center-gallery-arrow {
    width: 44px;
    height: 44px;
  }
}

.center-gallery-stack {
  position: relative;
  width: min(100%, 900px);
  aspect-ratio: 16 / 10;
}

.center-gallery-stack figure {
  position: absolute;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(20, 59, 92, 0.18);
  cursor: zoom-in;
  transition: left 2.1s cubic-bezier(0.62, -0.04, 0.38, 1.04),
    top 2.1s cubic-bezier(0.62, -0.04, 0.38, 1.04),
    width 2.1s cubic-bezier(0.62, -0.04, 0.38, 1.04),
    height 2.1s cubic-bezier(0.62, -0.04, 0.38, 1.04),
    transform 2.1s cubic-bezier(0.62, -0.04, 0.38, 1.04),
    opacity 1.5s ease;
}

.center-gallery-stack img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .center-gallery-stack {
    aspect-ratio: 1 / 1.05;
  }
}

.center-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 18, 28, 0.86);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.center-gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.center-gallery-lightbox-frame {
  position: relative;
  display: inline-block;
  max-width: 92vw;
  max-height: 90vh;
}

.center-gallery-lightbox-frame img {
  display: block;
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.center-gallery-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.center-gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.center-gallery-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

/* 글자(‹ ›)를 span에 넣고 손으로 밀어 맞추던 방식(-2px) 대신, 처음부터 정확히
   가운데 오는 SVG 화살표로 바꿨다 (2026-09-25). */
.center-gallery-lightbox-arrow svg {
  width: 42%;
  height: 42%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.center-gallery-lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.center-gallery-lightbox-prev {
  left: clamp(12px, calc(50% - 560px), 140px);
}

.center-gallery-lightbox-next {
  right: clamp(12px, calc(50% - 560px), 140px);
}

@media (max-width: 640px) {
  .center-gallery-lightbox-arrow {
    width: 46px;
    height: 46px;
  }
}

/* Home overview cards (간편 홈 화면 - 각 메뉴 미리보기) */

.overview-section {
  background: #fff;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.overview-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(20, 59, 92, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.overview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 95, 159, 0.28);
  box-shadow: 0 14px 28px rgba(20, 59, 92, 0.08);
}

.overview-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 8px 16px rgba(20, 59, 92, 0.22);
}

.overview-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-card strong {
  margin-bottom: 8px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.overview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.overview-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.88rem;
}

.overview-more span {
  color: var(--accent);
}

@media (max-width: 980px) {
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
}

/* 2026-09-26 — "오시는 길" 카드 안 지도 미리보기.
   컴퓨터에서는 안 보이고(글자만), 휴대폰에서만 카드 위쪽에 실제 지도가 뜬다.
   카드 전체가 #location으로 가는 링크라서, 지도는 손가락으로 못 끌게 막아둔다
   (pointer-events:none — 지도 위를 눌러도 그냥 카드 링크로 눌린다). */
.home-location-map {
  display: none;
}

@media (max-width: 640px) {
  .overview-card-map .overview-icon {
    display: none;
  }

  .home-location-map {
    display: block;
    position: relative; /* 안의 .map-loading(불러오는 중 안내)이 이 칸 크기에 맞게 뜨도록 */
    height: 150px;
    margin: -32px -28px 16px;
    border-radius: 14px 14px 0 0;
    background: var(--bg-soft);
    overflow: hidden;
    pointer-events: none;
  }

  .home-location-map iframe,
  .home-location-map > div {
    width: 100%;
    height: 100%;
  }

  /* 불러오는 중 안내문·글자를 이 작은 칸에 맞게 줄인다 (원래 큰 지도용 글자 크기라 넘쳤다) */
  .home-location-map .map-loading {
    padding: 8px;
    gap: 2px;
  }

  .home-location-map .map-loading strong {
    font-size: 0.86rem;
  }

  .home-location-map .map-loading span,
  .home-location-map .map-loading small {
    font-size: 0.74rem;
  }
}

/* 2026-09-26 — 소주제 화면(예: "센터안내") 맨 위에 "센터안내 · 천안 중앙 보청기"
   (breadcrumb)와 "천안 중앙 보청기"(brand-title)가 나란히 뜨는데, 바로 위
   헤더에 이미 "천안 중앙" 로고가 있어서 업체명이 겹쳐 보인다는 지적으로
   휴대폰에서만 뺐다. hasPhotoIntro()(nav-modal.js)와 같은 641px 기준을 쓴다
   — 그 기준으로 "컴�터에서만 사진+문구 인트로"를 이미 나누고 있어서 맞췄다. */
/* 2026-09-26 — "센터안내" 진입 화면 맨 위 그라데이션 사진은 휴대폰에서도
   살리되, 그 위에 얹히던 타이핑 문구(라벨·리드·제목·설명)는 뺀다
   (문구는 바로 아래 실제 센터소개 내용과 겹쳐서 뺐던 것 — 사진만 요청받음).
   기존 .group-intro 반응형 여백이 이미 720px 기준이라 그대로 맞췄다. */
@media (max-width: 720px) {
  .group-intro-copy {
    display: none;
  }

  .group-intro {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .group-head .breadcrumb,
  .group-head .brand-title {
    display: none;
  }

  /* 위 문구를 지우고 나니 헤더(로고·햄버거 버튼)와 소주제 버튼(tab-row)이
     바로 붙어버려서, 위쪽에 살짝 여백을 되살렸다. */
  .group-head-wrap {
    padding-top: 22px;
  }

  /* 소주제 버튼 세로 크기를 줄여서 화면을 덜 차지하게 한다
     (버튼이 3~4개라 두 줄로 접히는 그룹에서 특히 효과가 크다). */
  .group-head .tab-card {
    padding: 13px 14px;
  }

  .group-head .tab-row {
    padding-bottom: 22px;
  }
}

/* 2026-09-26 — "지원금 확인하기" 아래 설명 글자를 휴대폰에서 더 진하게,
   위아래 여백도 다른 섹션과 맞춘다. */
.subsidy-lead-mobile {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 640px) {
  #subsidy-1.main-section {
    padding-top: 48px;
  }

  #subsidy-1 .section-intro.left-aligned {
    margin-bottom: 16px;
  }

  .subsidy-lead-mobile {
    margin-bottom: 24px;
  }
}

/* Home consult CTA band (상담예약 요약 - 실제 폼은 #consult 화면에서) */

.consult-teaser-section {
  padding: 72px 0;
  background: var(--accent);
  color: var(--navy-deep);
}

.consult-teaser-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.consult-teaser-section h2 {
  margin: 14px 0 0;
  color: var(--navy-deep);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.35;
}

.consult-teaser-section h2 em {
  font-style: normal;
  color: #fff;
}

.consult-teaser-section p {
  margin: 12px 0 0;
  color: #5e4b2f;
}

.consult-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* .kakao-btn 기본값은 항상 폭 100%(상담 상자 안에서 세로로 쌓일 때 쓰는 값)라,
   여기서는 다른 두 버튼처럼 내용 너비만큼만 차지하게 한다 (2026-09-25:
   "카카오톡으로 문의하기"가 스크롤만 해서는 안 보인다는 지적으로, 처음부터
   보이는 이 상담 유도 구역에도 추가함). */
.consult-teaser-actions .kakao-btn {
  width: auto;
  margin-top: 0;
}

/* Center / about */

.intro-section {
  background: #fff;
}

/* 원장소개 (2026-09-24 재설계 2차) — "청각 전문가의 신뢰감 있는 소개 페이지"
   1차(작은 박스·타임라인이 많아 난잡)를 뒤집어, 박스를 거의 없애고 여백 + 얇은 선(#e4eaf0)으로 구조를 만든다.
   박스는 "전문청능사" 자격 강조 영역 하나뿐. 그림자·그라데이션·아이콘 없음. 골드는 구역 위 짧은 선에만.
   글자 크기는 사이트 기준(rem, 1rem = 21px)에 맞춰 1차보다 키웠다. 본문 최소 1rem(21px)·보조 0.95rem(20px) 이상. */

.director-section {
  background: #fff;
}

/* 내용 폭을 1120px 로 넓히고 가운데에 둔다(예전엔 좁게 눌려 글자가 작아졌다) */
.director-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.director-layout {
  display: grid;
  grid-template-columns: 30% minmax(0, 1fr);
  align-items: start;
}

/* 왼쪽 — 사진 · 이름 · 자격 · 학력만. 카드 테두리 없이 페이지 안에 놓는다 */

.director-side {
  position: sticky;
  top: 112px;
  padding-right: 56px;
}

.director-photo-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-soft);
}

.director-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.director-id {
  margin-top: 30px;
}

.director-name {
  display: block;
  margin: 0;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.director-role {
  margin: 8px 0 0;
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
}

.director-edu {
  margin: 22px 0 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

/* 오른쪽 — 왼쪽과 얇은 세로선 하나로 이어 붙인다 */

.director-detail {
  padding-left: 56px;
  border-left: 1px solid #e4eaf0;
}

.director-headline {
  margin: 0;
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.director-intro {
  max-width: 660px;
  margin: 22px 0 0;
  color: #43566b;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* 구역: 위쪽 얇은 선 + 그 왼쪽 끝에 아주 짧은 골드선 */

.dir-block {
  position: relative;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid #e4eaf0;
}

.dir-block::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.dir-title {
  margin: 0 0 26px;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* 전문 자격 — 왼쪽 40% 청능사 · 가운데 얇은 연결선 · 오른쪽 60% 전문청능사(연한 배경으로 한 단계 강조) */

.dir-cert {
  display: grid;
  /* 왼쪽(청능사)은 글이 줄바꿈되지 않을 만큼은 항상 확보하고, 남는 폭은 오른쪽(전문청능사)이 더 많이 가진다 */
  grid-template-columns: minmax(max-content, 4fr) 112px minmax(0, 6fr);
  align-items: center;
}

.dir-cert-name {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.dir-cert-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dir-cert-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.dir-cert-list time {
  flex-shrink: 0;
  min-width: 4.6em;
  color: var(--navy);
  font-weight: 700;
}

.dir-cert-to {
  padding: 30px 34px 32px;
  border-radius: 12px;
  background: #eef3f9;
}

.dir-cert-to .dir-cert-name {
  font-size: 1.55rem;
  font-weight: 800;
}

.dir-cert-link {
  position: relative;
  align-self: center;
  height: 1px;
  margin: 0 10px;
  background: rgba(20, 59, 92, 0.32);
}

.dir-cert-link::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid rgba(20, 59, 92, 0.5);
  border-right: 1px solid rgba(20, 59, 92, 0.5);
  transform: rotate(45deg);
}

.dir-cert-link-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* 주요 상담·관리 분야 — 박스 없이 2열 리스트. 왼쪽에 가는 세로 포인트선 */

.dir-areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dir-areas li {
  padding-left: 18px;
  border-left: 2px solid var(--navy);
}

.dir-areas strong {
  display: block;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.dir-areas p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* 교육 · 세미나 — 연도(크게) + 행사명. 월은 화면에 안 보이고 data-date 에만 남겨둔다 */

.dir-study {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dir-study > li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  padding-bottom: 34px;
}

.dir-study > li:last-child {
  padding-bottom: 0;
}

.dir-year {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

.dir-study-item + .dir-study-item {
  margin-top: 26px;
}

.dir-study-item strong {
  display: block;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
}

.dir-study-item span {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 5px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.dir-study-item small {
  display: block;
  margin-top: 5px;
  color: #7a8a9b;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 페이지 맨 아래 작은 갤러리 — 높이를 제한해 프로필보다 길어지지 않게 */

.dir-visit {
  margin-top: 64px;
}

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

.director-gallery figure {
  height: 240px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-soft);
}

.director-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-gallery figure:nth-child(1) img {
  object-position: center 28%;
}

.director-gallery figure:nth-child(2) img {
  object-position: center 30%;
}

/* 화면이 낮으면 왼쪽을 따라오게 두지 않는다 */
@media (max-height: 760px) {
  .director-side {
    position: static;
  }
}

/* 노트북 폭 — 여백만 조금 줄인다 */
@media (max-width: 1200px) {
  .director-side {
    padding-right: 40px;
  }

  .director-detail {
    padding-left: 40px;
  }
}

/* 태블릿 — 1열. 왼쪽은 사진(작게)+이름·자격·학력을 나란히 */
@media (max-width: 980px) {
  .director-layout {
    grid-template-columns: 1fr;
  }

  .director-side {
    position: static;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 0 0 40px;
  }

  .director-id {
    margin-top: 0;
  }

  .director-detail {
    padding-left: 0;
    border-left: 0;
  }
}

/* 모바일 — 1열, 글자는 데스크톱과 거의 같은 크기로 유지 */
@media (max-width: 640px) {
  .director-side {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 32px;
  }

  .director-name {
    font-size: 1.4rem;
  }

  .director-headline {
    font-size: 1.45rem;
  }

  .director-intro {
    font-size: 1.05rem;
  }

  .dir-block {
    margin-top: 44px;
    padding-top: 30px;
  }

  .dir-cert {
    grid-template-columns: 1fr;
  }

  .dir-cert-to {
    padding: 24px 22px 26px;
  }

  /* 가로 연결선을 아래로 내려가는 짧은 선으로 */
  .dir-cert-link {
    width: 1px;
    height: 30px;
    margin: 14px 0 14px 10px;
  }

  .dir-cert-link::after {
    right: auto;
    left: -3px;
    top: auto;
    bottom: 0;
    transform: rotate(135deg);
  }

  .dir-cert-link-text {
    display: none;
  }

  .dir-areas {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .dir-study > li {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .director-gallery {
    grid-template-columns: 1fr;
  }

  .director-gallery figure {
    height: 210px;
  }
}

/* Care steps */

.care-section {
  background: var(--bg-soft);
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.number-grid article {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.035);
}

.number-grid b {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
}

.number-grid h3 {
  margin: 26px 0 8px;
  font-size: 1.25rem;
}

.number-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Product finder */

.product-section {
  background: #fff;
}

.finder-panel {
  background: linear-gradient(135deg, #ffffff 0%, #edf5ff 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.04);
}

.finder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-weight: 700;
}

.finder-count {
  color: var(--navy);
  font-size: 0.88rem;
}

.finder-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.search-box {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.search-icon {
  color: var(--muted);
  font-size: 1.3rem;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  color: var(--text);
  font-size: 0.98rem;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-filter {
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  font-weight: 700;
}

.quick-filter.active,
.quick-filter:hover {
  background: #eaf4ff;
  border-color: rgba(31, 95, 159, 0.35);
  color: var(--navy);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.category-tab {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  color: var(--muted);
  font-weight: 700;
}

.category-tab.active,
.category-tab:hover {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-color: transparent;
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.04);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 59, 92, 0.08);
}

.product-visual {
  height: 190px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #edf4ff 0%, #f8fafb 100%);
  position: relative;
}

.product-visual::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(31, 95, 159, 0.08);
  top: 16px;
  right: 16px;
}

.device-shape {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 100px;
  border-radius: 22px 22px 16px 16px;
  background: linear-gradient(180deg, #9ec3ff 0%, #4f7cc6 100%);
  border: 4px solid rgba(255, 255, 255, 0.8);
}

.device-shape::before,
.device-shape::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.82);
}

.device-shape::before {
  width: 22px;
  height: 20px;
  border-radius: 8px;
  left: 16px;
  top: 14px;
}

.device-shape::after {
  width: 42px;
  height: 9px;
  border-radius: 50px;
  left: 28px;
  bottom: 16px;
}

.product-card[data-shape="bte"] .device-shape {
  width: 122px;
  height: 84px;
  border-radius: 16px 16px 12px 12px;
  background: linear-gradient(180deg, #f7d69d 0%, #d88938 100%);
}

.product-card[data-shape="cic"] .device-shape {
  width: 92px;
  height: 102px;
  border-radius: 32px 32px 24px 24px;
  background: linear-gradient(180deg, #a3d6c4 0%, #479588 100%);
}

.product-card[data-shape="ric"] .device-shape {
  width: 104px;
  height: 84px;
  border-radius: 16px 16px 12px 12px;
  background: linear-gradient(180deg, #bfd3ff 0%, #6f8fe5 100%);
}

.product-card[data-shape="ite"] .device-shape {
  width: 110px;
  height: 100px;
  border-radius: 18px 18px 22px 22px;
  background: linear-gradient(180deg, #d5b3ff 0%, #865bd2 100%);
}

.product-body {
  padding: 18px 18px 20px;
}

.product-tag {
  display: inline-block;
  margin-bottom: 12px;
  background: rgba(31, 95, 159, 0.08);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.36rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.product-name {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.product-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text);
}

.product-type::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.product-price {
  color: var(--navy-deep);
  font-weight: 800;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 200px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  gap: 8px;
  grid-column: 1 / -1;
}

/* Process */

.process-section {
  background: var(--bg-soft);
}

.process-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.process-list b {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
}

.process-list strong,
.process-list small {
  display: block;
}

.process-list strong {
  color: var(--navy);
}

.process-list small {
  color: var(--muted);
  font-size: 0.85rem;
}

/* 무료체험 안내 카드 (사이드 아이콘 "무료체험" 전용 화면) */

.free-trial-section {
  background: var(--bg-soft);
}

.free-trial-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 48px 36px 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--navy);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(20, 59, 92, 0.08);
  text-align: center;
}

.free-trial-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(20, 59, 92, 0.25);
}

.free-trial-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.free-trial-card h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.free-trial-card p {
  margin: 0 0 28px;
  color: var(--muted);
}

.free-trial-card .primary-btn {
  width: 100%;
}

/* 무료체험 신청 전 간단 설문 (단계별 퀴즈) */

.free-trial-info-section {
  background: var(--bg-soft);
}

.quiz-card {
  max-width: 620px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(20, 59, 92, 0.09);
  background: #fff;
}

.quiz-topbar {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.quiz-restart {
  border: none;
  background: none;
  padding: 0;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.quiz-body {
  padding: 40px 40px 34px;
}

.quiz-step-num {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
}

.quiz-title {
  margin: 0 0 28px;
  color: var(--navy-deep);
  font-size: 1.2rem;
  line-height: 1.5;
  text-align: center;
}

.quiz-note {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  transition: all 0.15s ease;
}

.quiz-option:hover {
  border-color: rgba(20, 59, 92, 0.3);
  background: var(--bg-soft);
}

.quiz-option.is-selected {
  border-color: var(--navy);
  background: rgba(20, 59, 92, 0.06);
}

.quiz-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
}

.quiz-mark.is-square {
  border-radius: 6px;
}

.quiz-option.is-selected .quiz-mark {
  border-color: var(--navy);
}

.quiz-option.is-selected .quiz-mark::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy);
}

.quiz-option.is-selected .quiz-mark.is-square::after {
  border-radius: 2px;
}

.quiz-option-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--navy-deep);
  font-weight: 700;
}

.quiz-option-text span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.quiz-nav-btn {
  border: none;
  background: none;
  padding: 8px 4px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.quiz-nav-btn:hover {
  text-decoration: underline;
}

.quiz-nav-btn:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.quiz-nav-btn:disabled:hover {
  text-decoration: none;
}

.quiz-result-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz-result-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.02rem;
  transition: all 0.15s ease;
}

.quiz-result-btn:hover {
  border-color: var(--navy);
  background: var(--bg-soft);
}

@media (max-width: 640px) {
  .quiz-body {
    padding: 32px 24px 28px;
  }
}

/* Consult band */

.consult-section {
  padding: 100px 0;
  background: var(--accent);
  color: var(--navy-deep);
}

.consult-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;
  align-items: center;
}

.consult-section h2 {
  margin: 16px 0 0;
  color: var(--navy-deep);
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  line-height: 1.3;
}

.consult-section .section-label.light {
  color: rgba(9, 40, 64, 0.6);
}

.consult-intro {
  margin: 16px 0 0;
  color: #5e4b2f;
}

.consult-box {
  padding: 32px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(20, 59, 92, 0.07);
  text-align: center;
}

.consult-box .primary-btn {
  width: 100%;
}

.kakao-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 60px;
  /* primary-btn/secondary-btn과 똑같은 값 - 저기는 padding이 있어서
     min-height(60px)보다 실제로 더 크게(약 84px) 그려지는데, 이 버튼은
     padding이 없어서 혼자 60px로 작아 보였다(2026-09-25 지적). */
  padding: 1rem 1.7rem;
  margin-top: 12px;
  border-radius: 999px;
  background: #fee500;
  color: #191600;
  font-size: 1.15rem;
  font-weight: 800;
}

.kakao-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* 좁은 휴대폰 화면에서는 "카카오톡으로 문의하기" 글자가 아이콘·좌우 여백과
   합쳐 한 줄에 안 들어가 두 줄로 줄바꿈되면서 옆 버튼(전화로 상담 예약)보다
   키가 커 보였다(2026-09-25 지적). 좌우 여백과 아이콘을 살짝 줄여 한 줄에
   들어가게 한다. */
@media (max-width: 480px) {
  .kakao-btn,
  .phone-btn {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    gap: 6px;
  }

  .kakao-btn svg,
  .phone-btn svg {
    width: 19px;
    height: 19px;
  }
}

.kakao-note {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  opacity: 0.75;
}

.pamphlet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 59, 92, 0.25);
  background: rgba(255, 255, 255, 0.6);
  color: var(--navy-deep);
  font-weight: 700;
}

.pamphlet-btn span {
  color: var(--navy);
}

.consult-box p {
  margin: 18px 0 0;
  color: var(--navy-deep);
  font-size: 1.3rem;
  font-weight: 900;
}

.consult-box small {
  display: block;
  margin-top: 6px;
  color: #665331;
}

.cancel-link {
  display: inline-block;
  margin-top: 14px;
  color: #5e4b2f;
  font-size: 0.82rem;
  text-decoration: underline;
}

/* Online consult form (틀만 - 나중에 서버 연동 논의) */

.online-form-panel {
  position: relative;
  margin-top: 40px;
  padding: 38px 34px 34px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(20, 59, 92, 0.07);
  overflow: hidden;
}

.online-form-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 50%, var(--accent) 100%);
}

.online-form label > span,
.online-form .slot-field > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.online-form label > span::before,
.online-form .slot-field > span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.online-form-head h3 {
  margin: 10px 0 6px;
  color: var(--navy-deep);
  font-size: 1.4rem;
}

.online-form-head p {
  margin: 0 0 22px;
  color: #5e4b2f;
}

.online-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.online-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.online-form-full {
  margin-bottom: 14px;
}

.online-form .slot-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-hint {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.86rem;
}

.slot-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid rgba(20, 59, 92, 0.18);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 4px 10px rgba(20, 59, 92, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.slot-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
}

.slot-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 95, 159, 0.45);
  background: #eaf4ff;
  box-shadow: 0 8px 16px rgba(20, 59, 92, 0.1);
}

.slot-btn.is-selected {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 20px rgba(20, 59, 92, 0.3);
}

.slot-btn.is-selected::before {
  border-color: var(--accent);
  background: var(--accent);
}

.online-form input,
.online-form select {
  border: 1px solid rgba(20, 59, 92, 0.18);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.online-form .primary-btn {
  margin-top: 6px;
}

.online-form-message {
  margin: 14px 0 0;
  min-height: 1.2em;
  color: var(--navy-deep);
  font-weight: 700;
}

/* Location */

.location-section {
  background: #fff;
}

/* 지도를 크게 보여주려고 오른쪽 칸에 더 많은 폭을 준다.
   왼쪽 칸(주소·영업시간)이 좁아지면 글이 어색하게 접히므로, 폭은 조금만 옮기고
   대신 두 칸 사이 간격을 줄여서 남는 자리를 지도에 준다. */
.location-grid {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 56px;
  /* 가운데 정렬이면 지도가 커진 만큼 왼쪽 글이 위아래로 붕 뜬다.
     지도 위쪽에 맞춰야 제목·주소가 위에서 시작해 읽는 순서가 자연스럽다. */
  align-items: start;
}

.location-title {
  /* 2026-09-24: "이름이 붕 떠 보인다" 지적. 본문용 줄 간격(약 1.7배)이 그대로 걸려 두 줄이 위아래로 벌어져 있었다.
     글씨를 키우고(45px→약 61~84px) 줄 간격을 좁혀 한 덩어리로 묶고, 첫 줄 윗선을 지도 위쪽 선에 맞춘다. */
  margin: -0.1em 0 26px;
  font-size: clamp(2.8rem, 4.4vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* 주소는 어르신이 바로 읽으실 수 있게 본문보다 크고 진하게. */
.address {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 520px;
  margin: 0 0 24px;
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.6;
}

.address-copy-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1px solid #9db8d6;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.address-copy-btn:hover {
  background: var(--navy);
  color: #fff;
}

.address-copy-btn.is-copied {
  background: var(--navy);
  color: #fff;
}

/* 가까운 버스 정류장 안내 */
.visit-transit {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  margin: 0 0 26px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.55;
}

.visit-transit strong {
  color: var(--navy-deep);
}

.visit-transit-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
}

.visit-transit-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Responsive */

@media (max-width: 980px) {
  .split-grid,
  .consult-grid,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* 휴대폰(컴퓨터는 그대로, 2026-09-25 원장님 요청)에서 오시는 길 순서를
     "이름 -> 지도 -> 주소 -> 오시는 방법 -> 영업시간" 으로 바꾼다.
     지도가 주소·영업시간을 담은 div 밖에 별도 칸(.location-map-col)으로 있어서,
     그 div를 display:contents로 "투명하게" 만들어 안의 요소들을 지도와 같은
     줄에서 order로 재배치한다 (HTML 순서·데스크톱 배치는 그대로 둔다). */
  .location-grid > div:first-child {
    display: contents;
  }

  .location-grid .location-title {
    order: 1;
  }

  .location-map-col {
    order: 2;
  }

  .location-grid .address {
    order: 3;
  }

  .location-grid .visit-transit {
    order: 4;
  }

  .location-grid .visit-hours {
    order: 5;
  }

  .location-grid .text-link {
    order: 6;
  }

  .hero-grid {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 44px;
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
    padding-top: 28px;
  }

  .hero-placeholder {
    position: static;
    width: 100%;
    height: 260px;
  }

  .hero-placeholder::before {
    display: none;
  }

  .online-form-row {
    grid-template-columns: 1fr;
  }

  .online-form-panel {
    padding: 22px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .trust-grid div:nth-child(2) {
    border: 0;
  }

  .main-section {
    padding: 68px 0;
  }

  .number-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .finder-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions,
  .consult-box {
    width: 100%;
  }

  .poster-head,
  .poster-main,
  .poster-location,
  .poster-cta,
  .poster-disclaimer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .poster-main {
    grid-template-columns: 1fr;
  }

  .poster-photo img {
    max-width: 220px;
    margin: 0 auto;
  }

  .poster-location {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .poster-cta {
    flex-direction: column;
  }
}

/* ===================================================================
   내용을 아직 채우지 않은 자리 표시 (공통)
   - .is-empty      : "내용 들어갈 칸" 텍스트
   - .slot-image    : "이미지 들어갈 칸" 박스
   - .slot-caption  : 작성 시 주의사항 안내 문구
   =================================================================== */

.is-empty {
  display: inline-block;
  padding: 3px 12px;
  border: 1px dashed rgba(31, 95, 159, 0.3);
  border-radius: 8px;
  background: rgba(31, 95, 159, 0.035);
  color: #8299ad;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* .is-empty와 함께 쓰는 표시.
   "안내 문구가 들어갈 칸입니다" 같은 설명이 아니라, 00개월 / 000 방법처럼
   숫자·형식만 잡아둔 채 나중에 실제 값으로 채워야 하는 자리에 붙인다.
   회색 안내와 구분되도록 파란 글씨로 눈에 띄게 한다. */
.is-empty.fill-later {
  border-color: rgba(31, 95, 159, 0.55);
  background: rgba(31, 95, 159, 0.08);
  color: var(--blue);
  font-weight: 800;
}

.slot-image {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 180px;
  padding: 20px;
  border: 1px dashed #9db4c4;
  border-radius: 14px;
  background: linear-gradient(145deg, #eef5fa, #fffaf2);
  color: #7b92a2;
  text-align: center;
}

.slot-image p {
  margin: 0;
  font-size: 0.85rem;
}

.slot-badge {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(31, 95, 159, 0.18);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
}

.slot-logo {
  min-height: 96px;
  border-radius: 12px;
}

.slot-caption {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

/* 취급 브랜드 아래 공통 안내 한 줄 (2026-09-25) - 작은 회색 캡션(.slot-caption)
   보다는 눈에 띄되, 소제목만큼 강조하지는 않는다. */
.section-note {
  margin: 28px 0 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
}

/* .slot-caption과 똑같은 모양이지만, hide-empty.js가 감추지 않는 진짜 안내문에 쓴다
   (.slot-caption은 "아직 안 채운 자리" 표시로 취급돼 지워진다). */
.brand-photo-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.section-lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
}

.section-intro.left-aligned {
  margin-bottom: 40px;
}

/* 하위 탭 공통 배경 - 흰색과 연회색을 번갈아 쓰지 않고 한 톤으로 통일 */

.info-section {
  background: #fff;
}

/* 센터 연혁 */

.history-section {
  background: var(--bg-soft);
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 48px;
  align-items: start;
}

.history-figure {
  min-height: 380px;
  background: #fff;
}

.history-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.history-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  padding: 0 0 28px 0;
}

.history-timeline li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.history-timeline li:last-child {
  padding-bottom: 0;
}

.history-timeline li:last-child::after {
  display: none;
}

.history-year {
  position: relative;
  padding-left: 26px;
  color: var(--navy);
  font-weight: 800;
}

.history-year::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-soft);
}

.history-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.history-body strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.history-body p {
  margin: 0;
  color: var(--muted);
}

/* 센터 시설 */

.facility-section {
  background: #fff;
}

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

.facility-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.035);
  cursor: pointer;
  transition: box-shadow 0.25s ease, flex-grow 0.45s ease;
}

/* 2026-09-26 — 컴퓨터 화면에서 센터시설 상자 4개의 테두리를 검은색으로
   더 두껍게(원장님 요청, 컴퓨터 화면 한정). 휴대폰은 손대지 않는다. */
@media (min-width: 641px) {
  .facility-card {
    border: 2px solid #000;
  }
}

.facility-card:hover,
.facility-card:focus-visible {
  box-shadow: 0 8px 24px rgba(20, 59, 92, 0.12);
}

.facility-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* 확대 안내 표시 (2026-09-24) — 카드를 누르면 커진다는 걸 알 수 있게, 마우스를 올리면(키보드로 골라도)
   카드 오른쪽 위에 "확대" 아이콘이 나타난다. 이미 커진 카드에는 닫기(✕) 단추가 그 자리에 있으므로 나타나지 않는다. */
.facility-card::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(15, 23, 32, 0.62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.facility-card:not(.is-active):hover::after,
.facility-card:not(.is-active):focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

/* 마우스가 없는 화면(휴대폰·태블릿)은 올려 볼 수 없으니 처음부터 살짝 보여준다 */
@media (hover: none) {
  .facility-card:not(.is-active)::after {
    opacity: 0.85;
    transform: scale(1);
  }
}

.facility-card .slot-image {
  min-height: 220px;
  border: 0;
  border-bottom: 1px dashed #cfdde8;
  border-radius: 0;
}

/* 실제 사진이 들어간 칸 - slot-image(빈 틀)와 높이를 맞춰 카드 4개 높이가 그대로 일치한다 */
.facility-card .facility-photo {
  height: 220px;
  overflow: hidden;
}

.facility-card .facility-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.facility-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px 26px 28px;
}

.facility-body strong {
  color: var(--navy);
  font-size: 1.22rem;
  font-weight: 800;
}

.facility-body p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* ── 카드 확대(2026-09-23) — 누르면 사진이 크게 확대되고 나머지는 아래로 내려간다 ── */

.facility-card-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 32, 0.55);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.facility-card.is-active .facility-card-close {
  display: block;
}

.facility-detail {
  display: none;
}

.facility-card.is-active .facility-summary {
  display: none;
}

.facility-card.is-active .facility-detail {
  display: block;
  max-width: 760px;
}

.facility-detail p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.facility-detail h4 {
  margin: 28px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
}

.facility-equip-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.facility-equip-list li {
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

.facility-equip-list li strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.facility-equip-list li span {
  display: block;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.facility-points .check-list {
  margin: 0;
}

/* 누른 카드는 위쪽에 사진이 화면을 거의 채울 만큼 크게, 나머지 3개는 그 아래
   한 줄로 내려간다. 뒤에 있는 "보유 장비" 칸은 자연히 더 아래로 밀려난다
   (따로 손댈 필요 없이 이 레이아웃 변경만으로 저절로 그렇게 된다). */
@media (min-width: 641px) {
  .facility-grid.is-expanded {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .facility-grid.is-expanded .facility-card.is-active {
    order: -1;
    grid-column: 1 / -1;
  }

  .facility-grid.is-expanded .facility-card.is-active .facility-photo,
  .facility-grid.is-expanded .facility-card.is-active .slot-image {
    height: min(72vh, 640px);
  }

  .facility-grid.is-expanded .facility-card:not(.is-active) .facility-body {
    padding: 16px 14px;
    gap: 4px;
  }

  .facility-grid.is-expanded .facility-card:not(.is-active) strong {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  /* 아래로 내려간 작은 카드는 이름만 보이고, 설명 문단은 감춘다 */
  .facility-grid.is-expanded .facility-card:not(.is-active) .facility-summary {
    display: none;
  }
}

@media (max-width: 640px) {
  .facility-grid.is-expanded .facility-card:not(.is-active) {
    display: none;
  }

  .facility-grid.is-expanded .facility-card.is-active .facility-photo,
  .facility-grid.is-expanded .facility-card.is-active .slot-image {
    height: min(58vh, 480px);
  }
}

/* 휴대폰에서 카드를 확대했을 때 사진 양옆에 뜨는 이전·다음 버튼
   (facility-expand.js가 만든다). 컴퓨터 화면에서는 나머지 3개 카드가 그대로
   보이므로 이 버튼이 필요 없어 감춘다. */
.facility-nav {
  display: none;
}

@media (max-width: 640px) {
  .facility-grid {
    position: relative;
  }

  .facility-grid.is-expanded .facility-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: min(29vh, 240px);
    transform: translateY(-50%);
    z-index: 3;
    /* 손가락으로 누르기 편하도록, 그리고 사진 옆에서 눈에 더 잘 띄도록
       동그라미가 아니라 세로로 긴 캡슐 모양으로 키웠다(2026-09-25 요청 -
       "사이즈도 세로에 더 비중을 둬서 키우고"). */
    width: 46px;
    height: 92px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 32, 0.55);
    color: #fff;
    cursor: pointer;
  }

  /* 글자(‹ ›) 대신 SVG로 그려 가운데에 정확히 오게 한다 (2026-09-25).
     버튼이 정사각형이 아니라 세로로 긴 캡슐이라, %로 크기를 주면 더 좁은
     가로 기준(46px의 40%=18px)에 맞춰져 기호가 작아 보였다(같은 날 재지적).
     고정 픽셀로 넉넉하게 키웠다. */
  .facility-grid.is-expanded .facility-nav svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .facility-grid.is-expanded .facility-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
  }

  .facility-grid.is-expanded .facility-nav-prev {
    left: 8px;
  }

  .facility-grid.is-expanded .facility-nav-next {
    right: 8px;
  }
}

.equipment-panel {
  margin-top: 32px;
  padding: 32px 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}

.equipment-panel h3 {
  position: relative;
  margin: 0 0 20px;
  padding-left: 16px;
  color: var(--navy);
  font-size: 1.1rem;
}

.equipment-panel h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--accent) 100%);
}

/* 보유 장비 카드 4장 (2026-09-24) — 2열 × 2행, 모바일은 1열.
   grid-auto-rows: 1fr 이라 4장의 높이가 항상 같다(가장 긴 카드에 맞춘다).
   사진 칸은 aspect-ratio 로 같은 비율을 쓰고, object-fit: contain 이라 장비가 잘리지 않는다. */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
}

.equipment-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 1px 8px rgba(20, 59, 92, 0.04);
}

.equipment-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 14px 14px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.equipment-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* 사진이 아직 없을 때 대신 보이는 자리표시 (equipment-photos.js 가 is-missing 을 붙인다) */
.equipment-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  background: #f1f5fa;
  text-align: center;
}

.equipment-photo.is-missing img {
  display: none;
}

.equipment-photo.is-missing .equipment-placeholder {
  display: flex;
}

.equipment-placeholder .ph-name {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
}

.equipment-placeholder .ph-model {
  color: var(--muted);
  font-size: 0.86rem;
}

.equipment-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 22px 22px;
}

.equipment-name {
  margin: 0;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
}

/* 모델명 줄. 모델명이 없는 카드(방음부스)도 같은 높이를 차지해서 설명 글이 옆 카드와 나란히 시작한다 */
.equipment-model {
  min-height: 1.4em;
  margin: 2px 0 0;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.equipment-desc {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* 본문보다 작은 보조 문구. 카드 맨 아래에 붙는다 */
.equipment-note {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

/* 태블릿 폭(2열인데 카드가 좁아지는 구간) — 안쪽 여백을 줄여 설명 글이 너무 여러 줄로 접히지 않게 한다 */
@media (max-width: 900px) {
  .equipment-grid {
    gap: 14px;
  }

  .equipment-photo {
    margin: 10px 10px 0;
  }

  .equipment-body {
    padding: 14px 14px 18px;
  }

  .equipment-desc {
    font-size: 0.92rem;
  }
}

/* 모바일(1열) — 카드가 세로로 쌓이므로 4번 카드에 높이를 맞추면 위 카드 아래가 휑하게 빈다.
   카드 높이는 내용에 맞추고, 사진 칸 높이(aspect-ratio)는 그대로라 사진은 4장이 똑같다.
   옆 카드와 설명 줄을 맞출 필요도 없으니 모델명이 빈 줄은 없앤다. */
@media (max-width: 640px) {
  .equipment-grid {
    grid-auto-rows: auto;
  }

  .equipment-model:empty {
    display: none;
  }
}

/* 정보형 카드 3~4칸 그리드 (난청 바로알기, 지원 대상 등) */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.035);
}

.info-num {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
}

.info-card strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* 자가 점검 패널 */

.check-panel {
  margin-top: 32px;
  padding: 40px 38px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
  text-align: center;
}

.check-panel-head h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.3rem;
}

.check-panel-head p {
  margin: 0 0 26px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 7px;
  height: 12px;
  margin-top: -7px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-list li.is-empty {
  display: block;
  padding-left: 30px;
}

.support-side .check-list {
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}

/* 재활 프로그램 카드 */

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.program-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.035);
}

.program-card .slot-image {
  min-height: 170px;
  border: 0;
  border-bottom: 1px dashed #cfdde8;
  border-radius: 0;
}

.program-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px 24px 28px;
}

.program-tag {
  font-size: 0.78rem;
}

.program-body strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.program-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* 단계형 목록 (적응관리, 신청 절차) */

.stage-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.stage-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.035);
}

.stage-when {
  color: var(--navy);
  font-weight: 800;
}

.stage-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.stage-body strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.stage-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* 2026-09-26 — "보청기 적응관리"·"안심 서비스" 설명이 휴대폰에서
   너무 길어서 안 읽힌다는 지적으로, 휴대폰에는 짧은 요약(.mobile-summary)만
   보여주고 원래 긴 설명(.desktop-detail)은 컴퓨터에서만 보여준다.
   내용 자체는 똑같고(사실을 새로 지어내지 않음), 길이만 줄인 것이다. */
.mobile-summary {
  display: none;
}

@media (max-width: 640px) {
  .mobile-summary {
    display: block;
  }

  .desktop-detail {
    display: none;
  }
}

/* 취급 브랜드 */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.035);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

/* 2026-09-25: 카드를 누르면 자세히 보기 팝업이 뜬다는 걸 알 수 있게, 마우스를
   올리면(또는 키보드로 골라도) 테두리·그림자가 은은하게 진해진다. */
.brand-card:hover,
.brand-card:focus-visible {
  border-color: #9db8d6;
  box-shadow: 0 10px 26px rgba(20, 59, 92, 0.14);
  transform: translateY(-2px);
}

.brand-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.brand-card .brand-logo {
  width: 100%;
}

.brand-card strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.brand-card .brand-eng {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

/* 국가 표시 (2026-09-26) - 브랜드명 밑, 소개 문구 위에 작은 이름표로 */
.brand-country {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* 카드 속 키워드(2026-09-26 - 스타키처럼 원장님이 따로 주신 키워드가
   있을 때만 표시. 없으면 이 칸 자체가 안 생긴다) */
.brand-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.brand-keyword {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
}

/* 취급 브랜드 화면 (2026-09-24) — "보청기 제품" 검색 화면이던 자리를 브랜드 6칸으로 바꿨다.
   이미지 칸이 카드 안에서 늘어나고, 데스크톱에서는 3열×2행이 화면을 꽉 채운다. */
.brand-section {
  background: #fff;
}

.brand-showcase {
  grid-auto-rows: 1fr;
}

.brand-showcase .brand-card {
  gap: 14px;
  padding: 22px;
}

/* 2026-09-25: flex:1로 남는 세로 공간을 사진 칸이 채우게 했더니, 카드마다
   제품명 줄바꿈·설명 줄바꿈 길이가 달라 사진 칸 높이가 카드마다 제각각이
   되고, 그 아래 브랜드명·설명 위치까지 카드마다 어긋났다. flex:1을 없애서
   로고 칸이 항상 같은 가로세로 비율(기본 .brand-logo의 aspect-ratio)만
   따르게 하면, 카드 폭이 같은 이상 로고 칸 높이도 항상 같게 고정된다
   (width:100%는 .brand-card .brand-logo에 이미 있어 따로 안 적어도 된다). */

.brand-showcase .brand-card strong {
  font-size: 1.7rem;
  line-height: 1.35;
}

/* 브랜드마다 한 줄 소개 글자 수가 달라 2~3줄로 줄바꿈되는 정도가 제각각이라,
   그 아래 키워드 이름표·"자세히 보기" 위치가 카드마다 어긋났다. 가장 긴 소개
   (3줄) 기준으로 자리를 미리 확보해서, 짧은 소개를 쓴 카드도 그 아래 요소들이
   항상 같은 높이에서 시작하게 한다. */
.brand-showcase .brand-card p {
  font-size: 1.3rem;
  line-height: 1.7;
  min-height: calc(1.3rem * 1.7 * 3);
}

.brand-showcase .brand-keyword {
  font-size: 0.92rem;
  padding: 5px 14px;
}

/* 이 화면 위쪽 소개 문구도 키운다 (다른 화면의 .section-lead 는 그대로) */
#products .section-lead {
  max-width: 900px;
  font-size: 1.3rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .brand-showcase .brand-card strong {
    font-size: 1.45rem;
  }

  .brand-showcase .brand-card p {
    font-size: 1.15rem;
    min-height: calc(1.15rem * 1.7 * 3);
  }

  #products .section-lead {
    font-size: 1.12rem;
  }
}

@media (min-width: 981px) {
  .brand-showcase {
    min-height: max(520px, calc(100vh - 420px));
  }
}

/* ── 브랜드 카드 로고 (2026-09-25) ──────────────────────────────────
   제조사 공식 로고를 흰 바탕 칸 가운데 놓는다. 로고마다 원래 가로세로
   비율이 다르므로(정사각형에 가까운 것도, 옆으로 긴 것도 있다) 칸 크기는
   고정하되(aspect-ratio) img는 max-width/max-height + object-fit:contain
   으로 각자의 비율 그대로 안에 맞춘다 - 6개를 억지로 같은 틀에 욱여넣어
   찌그러뜨리지 않는다. */
.brand-logo {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.brand-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* 로고 파일을 못 찾는 만일의 경우(파일명이 바뀌는 등) 깨진 이미지 아이콘
   대신 빈 흰 칸만 남긴다. */
.brand-logo.is-missing img {
  visibility: hidden;
}

/* 시그니아 로고만 원래 모양이 가로로 넓지 않고 세로로 긴 편(아이콘+글자가
   위아래로 짧게 쌓인 모양)이라, 다른 5개와 똑같은 안쪽 여백(28px)을 주면
   유독 작아 보인다(2026-09-25, 원장님이 실제 화면 보고 지적). 로고 파일
   자체는 그대로 두고 이 카드의 안쪽 여백만 줄여서 눈으로 봤을 때 비슷한
   크기로 보이게 맞춘다 - 비율은 여전히 object-fit:contain이 지켜준다. */
.brand-logo-signia {
  padding: 10px;
}

/* 2026-09-26 — 위 여백 조정만으로는 부족했다("로고가 너무 작다" 재지적).
   진짜 원인을 찾아보니 signia-logo.svg 파일 자체에 크기가 49×56px로
   작게 박혀 있었다(다른 로고 파일들은 이런 고정 크기가 없다). 그래서
   img에 기본으로 걸려 있는 width:auto/height:auto가 그 작은 원본
   크기를 그대로 써버려, contain으로 키워주는 계산 자체가 무의미해져
   있었다. 이 로고에서만 auto 대신 100%를 줘서 진짜로 칸을 채우도록
   강제한다(비율은 여전히 object-fit:contain이 지켜준다 - 로고 파일은
   손대지 않는다). */
.brand-logo-signia img {
  width: 100%;
  height: 100%;
}

/* ── 브랜드 자세히 보기 팝업 (2026-09-25 최초, 2026-09-26 단순화) ───────
   사진 라이트박스(.center-gallery-lightbox)와 같은 틀을 쓴다: 화면 전체를
   덮는 어두운 배경 위에 가운데 카드, ESC·바깥 클릭·닫기 버튼으로 닫힌다.
   2026-09-26 — 장점 3가지·고객 설명 문구 같은 예전 구조는 없애고,
   로고·이름·국가·전체 설명·공식 홈페이지 버튼만 있는 단순한 팝업으로. */
.brand-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 18, 28, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.brand-modal.is-open {
  opacity: 1;
  visibility: visible;
}

/* 내용이 길면 팝업 안에서만 스크롤된다(뒤 화면은 고정) */
body.brand-modal-lock {
  overflow: hidden;
}

.brand-modal-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(10, 18, 28, 0.35);
}

.brand-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 32, 0.55);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.brand-modal-close:hover {
  background: rgba(15, 23, 32, 0.78);
}

.brand-modal-dialog .brand-logo {
  aspect-ratio: 16 / 10;
  padding: 32px;
  border: none;
  border-radius: 20px 20px 0 0;
}

/* 카드와 같은 이유로 팝업 안에서도 시그니아만 여백을 줄인다. */
.brand-modal-dialog .brand-logo-signia {
  aspect-ratio: 16 / 13;
  padding: 16px;
}

.brand-modal-body {
  padding: 26px 28px 30px;
}

.brand-modal-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.brand-modal-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.5rem;
}

.brand-modal-eng {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.brand-modal-country {
  margin-bottom: 14px;
}

.brand-modal-about {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
}

.brand-modal-site {
  width: 100%;
  margin-top: 22px;
}

@media (max-width: 640px) {
  .brand-modal {
    padding: 0;
    align-items: flex-end;
  }

  .brand-modal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
}

/* 보청기 기술 */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.tech-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.035);
}

.tech-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  min-height: 68px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(31, 95, 159, 0.08);
  color: var(--navy);
}

.tech-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 아직 아이콘을 못 넣은 칸은 slot-image를 함께 붙여 점선 상자로 남겨둔다. */
.tech-icon.slot-image {
  background: linear-gradient(145deg, #eef5fa, #fffaf2);
}

.tech-icon .slot-badge {
  padding: 3px 8px;
  font-size: 0.62rem;
}

.tech-card strong {
  color: var(--navy);
  font-size: 1.02rem;
}

.tech-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* 액세서리 */

.accessory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.accessory-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.035);
}

.accessory-card .slot-image {
  width: 100%;
  min-height: 150px;
}

.accessory-card strong {
  color: var(--navy);
  font-size: 1.02rem;
}

.accessory-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.accessory-price {
  margin-top: auto;
  font-size: 0.86rem;
}

/* 건강보험 지원 */

.support-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

.support-main {
  display: grid;
  gap: 20px;
}

.support-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.04);
}

.support-label {
  font-size: 0.82rem;
}

.support-amount {
  font-size: 1.5rem;
  color: var(--navy);
}

.support-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.support-side {
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}

.support-side h3 {
  position: relative;
  margin: 0 0 20px;
  padding-left: 16px;
  color: var(--navy);
  font-size: 1.05rem;
}

.support-side h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--accent) 100%);
}

.support-side .text-link {
  margin-top: 0;
}

/* 사후관리 */

/* 사후관리 서비스 카드 6개 - 3열 두 줄로 놓는다. 개수를 바꾸면 열 수도 같이 맞춰야 한다. */
/* 5개를 한 번에 늘어놓지 않고 한 장씩 크게 보여준다 (2026-09-23, service-carousel.js) */
.service-carousel {
  position: relative;
  padding: 0 92px;
}

.service-grid {
  display: block;
  min-height: 380px;
}

.service-card {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 72px 64px;
  /* 흰 바탕 위에서 카드가 흐릿하게 묻히지 않도록 테두리를 또렷하게
     (2026-09-24 "글과 배경 사이에 경계선" / 2026-09-25 그래도 연해 보인다는
     지적에 원래(#8ba5c0)보다 눈에 띄게 진한 색으로 다시 조정) */
  border: 2px solid #4a6b8c;
  border-radius: 24px;
  background: #fcfdff;
  box-shadow: 0 10px 30px rgba(20, 59, 92, 0.14);
  text-align: center;
}

.service-card.is-current {
  display: flex;
  cursor: pointer; /* 2026-09-26 — 카드를 눌러도 다음으로 넘어간다 */
}

.service-icon {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(20, 59, 92, 0.25);
  /* 본문 줄간격을 그대로 물려받아 숫자가 원 한가운데에서 아래로 치우쳐
     있었다(날짜 선택기 숫자와 같은 원인 - 2026-09-25, 전체 패턴 점검). */
  line-height: 1;
}

.service-card strong {
  color: var(--navy-deep);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.4;
}

.service-card p {
  margin: 0;
  max-width: 900px;
  color: var(--muted);
  font-size: 1.42rem;
  line-height: 1.85;
}

/* 2026-09-25: 동그라미 버튼(72px)만 눌러야 했던 것을, 카드 옆 여백
   (.service-carousel의 좌우 92px) 전체를 눌러도 이전·다음으로 넘어가게
   넓혔다. 실제 원 모양은 안쪽 span(.service-carousel-arrow-circle)이 맡고,
   버튼 자신은 옆 여백 전체를 차지하는 투명한 클릭 영역이 된다. */
.service-carousel-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.service-carousel-arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(20, 59, 92, 0.35);
  transition: background-color 0.15s, transform 0.15s;
}

/* 글자(‹ ›) 대신 SVG로 그려 동그라미 한가운데에 정확히 오게 한다 (2026-09-25). */
.service-carousel-arrow svg {
  width: 42%;
  height: 42%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-carousel-arrow:hover .service-carousel-arrow-circle {
  background: var(--navy-deep);
  transform: scale(1.08);
}

/* 첫 장에서는 이전, 마지막 장에서는 다음 화살표를 꺼서 처음↔끝으로 건너뛰지 못하게 한다 */
.service-carousel-arrow:disabled {
  visibility: hidden;
}

.service-carousel-prev {
  left: 0;
}

.service-carousel-next {
  right: 0;
}

.service-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.service-carousel-dot {
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
}

.service-carousel-dot.is-current {
  width: 44px;
  background: var(--accent);
}

.warranty-panel {
  margin-top: 40px;
  padding: 36px 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}

.warranty-panel h3 {
  margin: 0 0 24px;
  color: var(--navy);
  font-size: 1.4rem;
}

.warranty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
  margin: 0;
}

.warranty-grid > div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.warranty-grid dt {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.warranty-grid dd {
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
}

/* 사후관리 화면 위쪽 소개 문구 — 이 화면에서만 키운다 (다른 화면의 .section-lead 는 그대로) */
#process-3 .section-lead {
  max-width: 900px;
  font-size: 1.3rem;
  line-height: 1.7;
}

/* 소개 문구가 커진 만큼 제목 묶음의 폭도 넓혀서, 문장이 한두 글자만 다음 줄로 넘어가지 않게 한다 */
#process-3 .section-intro,
#products .section-intro {
  max-width: 1100px;
}

#process-3 .section-lead,
#products .section-lead {
  max-width: 1100px;
}

/* 자주 묻는 질문 */

.faq-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  align-items: start;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.035);
}

.faq-q {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  /* 같은 원인(본문 줄간격 상속)으로 "Q" 글자가 원 안에서 아래로 치우쳐
     있었다 - 2026-09-25, 원 안에 글자를 넣는 곳 전체 점검. */
  line-height: 1;
}

/* 2026-09-26: <details>로 바뀌면서 summary/펼친 답을 각각 세로로 쌓는다.
   width:100%가 있어야 summary 안의 "자세히 보기" 표시가 오른쪽 끝에 붙는다. */
.faq-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.faq-body summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  list-style: none;
  cursor: pointer;
}

.faq-body summary::-webkit-details-marker {
  display: none;
}

/* 2026-09-26 — "접기" 표시가 질문과 따로 떨어진 줄로 나와 어색했다.
   질문(strong) 자체를 가로 줄로 만들어 오른쪽 끝에 펼침/접기 표시가
   같은 줄에 나란히 붙게 한다. */
.faq-body strong {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  color: var(--navy);
  font-size: 1.05rem;
}

.faq-short {
  color: var(--muted);
  font-size: 0.92rem;
}

/* 눌러보시도록 유도하는 표시 — 안 펼쳤을 때만 보인다 */
.faq-body strong::after {
  content: "자세히 보기 ＋";
  flex-shrink: 0;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.faq-body[open] strong::after {
  content: "접기 －";
}

.faq-body[open] summary .faq-short {
  display: none;
}

.faq-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.faq-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 30px 34px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.faq-cta p {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}

/* 공지사항 */

.notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy);
}

.notice-list li {
  display: grid;
  grid-template-columns: 90px 1fr 110px;
  gap: 20px;
  align-items: start;
  padding: 24px 6px;
  border-bottom: 1px solid var(--line);
}

.notice-tag {
  font-size: 0.78rem;
  text-align: center;
}

.notice-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.notice-body strong {
  color: var(--navy);
  font-size: 1.02rem;
}

.notice-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice-date {
  font-size: 0.82rem;
  text-align: right;
}

/* 상담 후기 */

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.review-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.035);
}

.review-stars {
  color: var(--accent);
  letter-spacing: 0.1em;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.review-card footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

/* 상담 문의 */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.035);
}

.contact-card strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.contact-card p {
  margin: 6px 0 0;
  color: var(--text);
  font-weight: 600;
}

.contact-card small {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-card .text-link {
  margin-top: 14px;
}

/* 신청 서류 표 */

.doc-table {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}

.doc-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.doc-row:last-child {
  border-bottom: 0;
}

.doc-head {
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

/* 오시는 길 - 영업시간 안내 */

.visit-hours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
  margin: 0 0 32px;
  max-width: 480px;
}

.visit-hours > div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* 글씨를 키운 뒤(2026-09-24) 좁은 칸에서 전화번호가 "010-3429- / 2678" 로 꺾였다.
   내용이 긴 셋째·넷째 항목(휴무·전화)은 칸 두 개 폭을 다 쓰게 한다. */
.visit-hours > div:nth-child(n + 3) {
  grid-column: 1 / -1;
}

/* 영업시간 표도 어르신 기준으로 한 단계씩 키웠다. */
.visit-hours dt {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.visit-hours dd {
  margin: 0;
  color: var(--text);
  font-size: 1.14rem;
  font-weight: 700;
}

.visit-hours dd small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
}

.visit-hours dd a {
  color: var(--navy);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .visit-hours {
    grid-template-columns: 1fr;
  }
}

/* 지원금 확인 시작 배너 */

.subsidy-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 36px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.04);
}

.subsidy-start-body strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 1.15rem;
}

.subsidy-start-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.support-note-panel {
  margin-top: 32px;
  padding: 32px 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}

.support-note-panel h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.1rem;
}

.support-note-panel p {
  margin: 0;
  color: var(--muted);
}

.support-note-panel .text-link {
  margin-top: 16px;
}

/* 상담예약 화면 - 진료시간 안내 */

.consult-hours-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.consult-hours-item {
  padding: 24px 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(20, 59, 92, 0.06);
}

.consult-hours-label {
  display: block;
  margin-bottom: 8px;
  color: #7a6134;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.consult-hours-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy-deep);
  font-size: 1.08rem;
}

.consult-hours-item small {
  color: #6b5836;
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .consult-hours-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subsidy-start {
    padding: 26px 24px;
  }
}

@media (max-width: 640px) {
  .consult-hours-panel {
    grid-template-columns: 1fr;
  }
}

/* 홈 - 숫자로 보는 센터 */

.stat-strip {
  padding: 84px 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.stat-intro {
  margin-bottom: 36px;
}

.stat-intro h2 {
  margin: 14px 0 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.035);
}

.stat-item strong {
  font-size: 1.6rem;
  color: var(--navy);
}

.stat-item span {
  font-size: 0.86rem;
}

/* 홈 - 취급 브랜드 줄 */

.home-brand-section {
  padding: 84px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.home-brand-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.home-brand-head h2 {
  margin: 14px 0 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.home-brand-head .text-link {
  margin-top: 0;
}

.home-brand-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

/* 새 섹션 반응형 */

@media (max-width: 1100px) {
  .tech-grid,
  .accessory-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-brand-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .history-layout,
  .support-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .history-figure {
    min-height: 240px;
  }

  .info-grid,
  .program-grid,
  .brand-grid,
  .review-grid,
  .contact-grid,
  .facility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warranty-grid {
    grid-template-columns: 1fr;
  }

  .stage-list li {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .notice-list li {
    grid-template-columns: 80px 1fr;
  }

  .notice-date {
    grid-column: 2;
    text-align: left;
  }

  .stat-strip,
  .home-brand-section {
    padding: 56px 0;
  }
}

@media (max-width: 640px) {
  .info-grid,
  .program-grid,
  .brand-grid,
  .review-grid,
  .contact-grid,
  .facility-grid,
  .tech-grid,
  .accessory-grid,
  .stat-grid,
  .check-list,
  .equipment-grid {
    grid-template-columns: 1fr;
  }

  /* 모바일: 좌우 화살표가 카드 양옆 공간을 차지하면 카드가 좁아져 큰 글씨가 몇 글자씩 끊긴다.
     화살표를 카드 아래 두 모서리로 내리고, 점(dots)을 그 사이에 둔다. */
  .service-carousel {
    padding: 0 0 66px;
  }

  .service-carousel-arrow {
    top: auto;
    bottom: 0;
    height: 52px;
    /* 휴대폰은 옆 여백이 없어서(위 padding: 0 0 66px) 넓힐 자리가 없다 -
       원래처럼 원 모양 그대로 클릭 영역으로 쓴다. */
    width: 52px;
  }

  .service-carousel-arrow-circle {
    width: 52px;
    height: 52px;
  }

  .service-carousel-arrow:hover .service-carousel-arrow-circle {
    transform: none;
  }

  .service-carousel-dots {
    height: 48px;
    margin-top: -48px;
  }

  .service-card {
    padding: 36px 20px;
    gap: 16px;
  }

  .service-icon {
    width: 80px;
    height: 80px;
    font-size: 1.7rem;
  }

  .service-card strong {
    font-size: 1.7rem;
  }

  .service-card p {
    font-size: 1.2rem;
    line-height: 1.75;
  }

  #process-3 .section-lead {
    font-size: 1.12rem;
  }

  .warranty-grid dd {
    font-size: 1.15rem;
  }

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

  .history-timeline li {
    grid-template-columns: 70px 1fr;
    gap: 14px;
  }

  .doc-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .doc-head {
    display: none;
  }

  .faq-list li {
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 22px 20px;
  }

  .check-panel,
  .equipment-panel,
  .warranty-panel,
  .support-side {
    padding: 26px 22px;
  }
}

/* ── 문의 게시판 ────────────────────────────────────────────
   방문자가 직접 문의를 남기고, 목록에서 답변까지 함께 보는 영역. */

.inquiry-board {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

/* 서버가 아직 연결되지 않았을 때 뜨는 경고. 손님이 "전달됐겠지" 하고
   기다리는 일이 없도록 눈에 띄게 만든다. */
.inquiry-notice {
  margin-bottom: 28px;
  padding: 18px 22px;
  border: 1px solid #f0c98a;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: #fff8ec;
}

.inquiry-notice strong {
  display: block;
  margin-bottom: 6px;
  color: #8a5a12;
}

.inquiry-notice p {
  margin: 0;
  color: #6d5326;
  font-size: 0.94rem;
  line-height: 1.65;
}

.inquiry-notice a {
  font-weight: 800;
  text-decoration: underline;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 2px 16px rgba(20, 59, 92, 0.04);
}

.inquiry-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.inquiry-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.inquiry-field span {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.inquiry-field input,
.inquiry-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  resize: vertical;
}

.inquiry-field input:focus,
.inquiry-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 159, 0.12);
}

.inquiry-privacy {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.inquiry-message {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
}

.inquiry-message:empty {
  display: none;
}

.inquiry-message.is-ok {
  color: #1c7a4a;
}

.inquiry-message.is-error {
  color: #b03a3a;
}

.inquiry-form .primary-btn {
  align-self: flex-start;
}

/* 목록 */

.inquiry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.inquiry-empty {
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.inquiry-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}

.inquiry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 1.1rem 1.3rem;
  border: none;
  background: none;
  text-align: left;
}

.inquiry-head:hover {
  background: #f6faff;
}

.inquiry-head.is-open {
  background: #f4f9ff;
}

.inquiry-title {
  color: var(--navy-deep);
  font-size: 1.06rem;
  font-weight: 700;
}

.inquiry-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.inquiry-badge {
  padding: 3px 11px;
  border-radius: 999px;
  background: #eef2f7;
  color: #6b7c8d;
  font-size: 0.8rem;
  font-weight: 800;
}

.inquiry-badge.is-answered {
  background: #e5f5ec;
  color: #1c7a4a;
}

.inquiry-body {
  padding: 4px 1.3rem 1.3rem;
  border-top: 1px solid var(--line);
}

.inquiry-question {
  margin: 16px 0 0;
  color: var(--text);
  line-height: 1.75;
  white-space: pre-line;
}

.inquiry-reply {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: var(--bg-soft);
}

.inquiry-reply-label {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
}

.inquiry-reply p {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
  white-space: pre-line;
}

.inquiry-reply-date {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .inquiry-field-row {
    grid-template-columns: 1fr;
  }

  .inquiry-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .inquiry-form .primary-btn {
    align-self: stretch;
  }
}

/* ── 오시는 길 지도 ────────────────────────────────────────
   카카오 지도 키가 있으면 실제 지도가, 없으면 안내 카드가 들어간다. */

/* 어르신이 위치를 알아보실 수 있게 지도를 넉넉히 크게 잡는다.
   화면 높이에 따라 늘어나되, 너무 커지지 않도록 위아래 한계를 둔다. */
.location-map {
  /* 지도 높이. 아래 iframe도 같은 값을 써야 해서, 두 곳에 따로 적어두면 한쪽만 고쳤을 때
     어긋난다. 여기 한 곳만 고치면 iframe까지 따라온다. */
  --map-h: clamp(500px, 64vh, 720px);
  min-height: var(--map-h);
  /* 불러오는 동안 띄우는 안내(.map-loading)가 이 칸 안에 놓이도록 (2026-09-22) */
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.location-map.is-fallback {
  display: grid;
  place-items: center;
  border-style: dashed;
}

.map-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 28px;
  text-align: center;
}

.map-fallback strong {
  color: var(--navy-deep);
  font-size: 1.24rem;
}

.map-fallback p {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
}

.map-fallback-note {
  max-width: 320px;
  color: var(--muted) !important;
  font-size: 0.94rem !important;
  line-height: 1.6;
}

.map-fallback .secondary-btn {
  margin-top: 8px;
}

/* 지도 안에 들어가는 iframe(구글 지도)이 상자를 꽉 채우도록 */
.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: var(--map-h);
  border: 0;
}

.map-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* 지도와 길찾기 버튼을 한 칸으로 묶어, 버튼이 지도 바로 아래에 오도록 한다. */
.location-map-col {
  display: flex;
  flex-direction: column;
}

/* 상담 예약 상자의 전화 버튼.
   2026-09-25: 원장님이 "상담 신청서 작성하기"와 크기·글자를 맞춰달라고
   하셔서, 아래 버튼(전화·카카오)도 같은 크기(60px/1.15rem/800)로 맞췄다. */
.phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 60px;
  /* primary-btn과 같은 padding - 없으면 이 버튼만 min-height(60px)에서
     안 자라 다른 버튼(약 84px)보다 작게 보인다. */
  padding: 1rem 1.7rem;
  margin-top: 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 59, 92, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy-deep);
  font-size: 1.15rem;
  font-weight: 800;
}

.phone-btn:hover {
  background: #fff;
  border-color: var(--navy);
}

.phone-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 주요 버튼이 된 "상담 신청서 작성하기"의 화살표 */
.consult-box .primary-btn span {
  margin-left: 6px;
}

/* =============================================================================
   문의 게시판 보완 (2026-09-22)

   문의에 "종류"가 생겼고, 연락처를 반드시 받게 됐다.
   번호를 남기는 일은 망설여지는 일이라, 누가 보는지와 무엇에 쓰지 않는지를
   눈에 띄게 적어두는 것이 이 화면에서 가장 중요한 부분이다.
   ============================================================================= */

/* 종류 고르는 칸 — 글 쓰는 칸과 같은 모양으로 맞춘다 */
.inquiry-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.inquiry-field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 159, 0.12);
}

/* 연락처 안내 — 옅은 글씨로 흘려보내지 않고, 테두리를 둘러 읽게 만든다 */
.inquiry-privacy {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #d9e6f4;
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  background: #f6faff;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.65;
}

.inquiry-privacy strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy-deep);
  font-size: 1rem;
}

.inquiry-privacy ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 5px;
  color: var(--muted);
}

.inquiry-privacy li b {
  color: var(--text);
}

/* 2026-09-26: 개인정보 수집·이용 동의 체크박스 (문의 폼에는 안내문만 있고
   실제 동의 절차가 없었다) */
.inquiry-agree {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.inquiry-agree input {
  width: 17px;
  height: 17px;
  accent-color: var(--navy);
}

/* 2026-09-26 — 상담 신청서와 같은 이유로, 휴대폰에서는 문의 폼의
   개인정보 동의 체크박스도 더 크게 키운다. 컴퓨터는 그대로 둔다. */
@media (max-width: 640px) {
  .inquiry-agree {
    gap: 10px;
    font-size: 0.96rem;
  }

  .inquiry-agree input {
    width: 22px;
    height: 22px;
  }
}

/* 덜 채운 칸 아래에 뜨는 빨간 안내 (상담 신청서와 같은 모양) */
.inquiry-form .field-error {
  margin: 6px 0 0;
  color: #d64545;
  font-size: 0.84rem;
  font-weight: 700;
}

/* 목록에서 제목 앞에 붙는 종류 딱지 */
.inquiry-kind {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eaf2fb;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .inquiry-privacy { padding: 15px 16px; font-size: 0.88rem; }
  .inquiry-kind { display: block; margin: 0 0 5px; width: fit-content; }
}

/* 지도를 불러오는 동안 (2026-09-22)
   빈 회색 칸만 보이면 고장처럼 보이므로 주소를 먼저 적어둔다. */
.map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  background: #eef2f7;
  color: var(--navy-deep);
  border-radius: inherit;
}

.map-loading strong {
  font-size: 1.05rem;
}

.map-loading span {
  color: var(--muted);
  font-size: 0.92rem;
}

.map-loading small {
  margin-top: 4px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 700;
}

/* =============================================================================
   문의 게시판 개편 (2026-09-22)

   보러 오신 분이 먼저다. 찾아보기(검색·종류)와 목록이 앞에 오고,
   글을 쓰는 긴 칸은 "문의 남기기"를 누르셨을 때만 열린다.
   ============================================================================= */

/* 답변이 어떻게 오는지 먼저 밝히는 안내 */
.inquiry-howto {
  margin: 0 0 22px;
  padding: 18px 22px;
  border: 1px solid #d9e6f4;
  border-left: 4px solid var(--blue);
  border-radius: 14px;
  background: #f6faff;
}

.inquiry-howto strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy-deep);
  font-size: 1.05rem;
}

.inquiry-howto p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── 찾아보기 줄 ── */
.inquiry-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.inquiry-search {
  position: relative;
  flex: 1 1 320px;
  min-width: 0;
}

.inquiry-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.inquiry-search input {
  width: 100%;
  height: 56px;
  padding: 0 1.1rem 0 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
}

.inquiry-search input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 159, 0.12);
}

#inquiryKindFilter {
  height: 56px;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
}

.inquiry-write-open {
  flex: 0 0 auto;
  min-height: 56px;
  padding: 0 1.8rem;
}

.inquiry-count {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

/* ── 목록 ── */
.inquiry-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inquiry-lock {
  font-size: 0.95rem;
}

.inquiry-item.is-secret .inquiry-title {
  color: #5b6a7d;
}

.inquiry-waiting {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ── 비공개 글 열기 ── */
.inquiry-locked {
  padding: 18px 20px;
  border: 1px dashed #c8d8ea;
  border-radius: 14px;
  background: #fafcfe;
}

.inquiry-locked-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.inquiry-locked-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inquiry-locked-input {
  flex: 1 1 200px;
  min-width: 0;
  height: 52px;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
}

.inquiry-locked-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 159, 0.12);
}

.inquiry-locked-btn {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 1.4rem;
}

.inquiry-locked-error {
  margin: 10px 0 0;
  min-height: 1.2em;
  color: #d64545;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ── 문의 작성 창 ── */
.inquiry-write {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 30, 48, 0.55);
  overflow-y: auto;
}

.inquiry-write[hidden] {
  display: none;
}

.inquiry-write-card {
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 30px 30px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(12, 30, 50, 0.34);
}

.inquiry-write-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.inquiry-write-head h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

.inquiry-write-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.inquiry-write-close:hover {
  background: #f1f5f9;
}

.inquiry-write-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.inquiry-write-actions .primary-btn,
.inquiry-write-actions .secondary-btn {
  min-height: 56px;
  padding: 0 1.8rem;
}

/* 창이 열린 동안 뒤 화면이 따라 움직이지 않게 */
body.inquiry-writing {
  overflow: hidden;
}

/* ── 공개 / 비공개 고르기 ── */
.inquiry-open {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}

.inquiry-open legend {
  padding: 0;
  margin-bottom: 4px;
  color: var(--navy-deep);
  font-size: 0.95rem;
  font-weight: 700;
}

.inquiry-open-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.inquiry-open-choice:hover {
  border-color: #9db8d6;
}

.inquiry-open-choice input {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.inquiry-open-choice:has(input:checked) {
  border-color: var(--blue);
  background: #f6faff;
}

.choice-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.choice-body b {
  color: var(--navy-deep);
  font-size: 1rem;
}

.choice-body small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ── 보낸 뒤 알림 ── */
.inquiry-done {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 30, 48, 0.55);
}

.inquiry-done-card {
  width: 100%;
  max-width: 440px;
  padding: 30px 28px 26px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 26px 54px rgba(12, 30, 50, 0.32);
}

.inquiry-done-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: var(--navy-deep);
}

.inquiry-done-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.inquiry-done-card .primary-btn {
  width: 100%;
  min-height: 54px;
}

@media (max-width: 640px) {
  .inquiry-toolbar { gap: 10px; }
  .inquiry-search { flex: 1 1 100%; }
  #inquiryKindFilter { flex: 1 1 0; }
  .inquiry-write-open { flex: 1 1 0; }

  .inquiry-write { padding: 12px; align-items: flex-start; }
  .inquiry-write-card { padding: 20px 17px 22px; max-height: 94vh; }
  .inquiry-write-head h3 { font-size: 1.25rem; }
  .inquiry-write-actions { flex-direction: column-reverse; }
  .inquiry-write-actions .primary-btn,
  .inquiry-write-actions .secondary-btn { width: 100%; }

  .inquiry-locked-btn { flex: 1 1 100%; }
}

/* 여러 개 고르는 문항 안내 (2026-09-22)
   하나만 고르는 문항은 고르는 순간 넘어가므로, 여러 개 고르는 문항에서만
   "다 고르시면 다음" 이라고 알려준다. */
.quiz-multi-hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

/* =============================================================================
   휴대폰에서 좌우로 밀리던 것 수정 (2026-09-22)

   글자를 키운 뒤 "전화로 상담 예약 / 온라인 상담 신청하기" 두 단추가
   화면보다 18px 넓어져서, 사이트가 좌우로 흔들렸다.
   단추는 글자가 길어도 줄이 바뀌지 않게(nowrap) 되어 있어서 스스로 줄지 못했다.
   ============================================================================= */
@media (max-width: 720px) {
  /* 단추가 화면을 넘지 않게 한다 — 길면 줄을 바꾼다 */
  .consult-teaser-actions {
    width: 100%;
    flex-shrink: 1;
  }

  .consult-teaser-actions .primary-btn,
  .consult-teaser-actions .secondary-btn,
  .consult-teaser-actions .kakao-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  /* 휴대폰에서 쭉 내렸을 때 뜨는 순서만 바꾼다(2026-09-25) - 온라인 상담
     신청하기 -> 전화로 상담 예약 -> 카카오톡. 컴퓨터 화면 순서(HTML 순서
     그대로: 전화 -> 온라인 -> 카카오)는 그대로 둔다. */
  .consult-teaser-actions .secondary-btn {
    order: 1;
  }

  .consult-teaser-actions .primary-btn {
    order: 2;
  }

  .consult-teaser-actions .kakao-btn {
    order: 3;
  }
}

/* 어떤 단추도 화면보다 넓어지지 않게 하는 안전망 */
.primary-btn,
.secondary-btn {
  max-width: 100%;
}

/* =============================================================================
   오른쪽에 떠 있는 바로가기 칸(.side-icons, styles.css)이 1400px 이상 화면에서만
   나타나는데, 내용 폭(.container)이 화면 끝까지 꽉 차 있어서 그 칸과 겹쳤다
   (2026-09-23 전체 점검에서 발견). "한눈에" 카드 3번째 줄·탭 전환 버튼·안심서비스
   캐러셀 화살표·상담예약 카드의 전화번호/신청 버튼이 가려지거나 눌리지 않는
   문제였다. 그 칸이 나타나는 너비에서는 본문 오른쪽에 똑같이 자리를 비워 겹치지
   않게 한다. 사진이 화면 끝까지 꽉 차야 하는 히어로(첫 화면 사진)는 원래대로 둔다.
   ============================================================================= */
@media (min-width: 1400px) {
  .container {
    padding-right: 132px;
  }

  .main-hero .container {
    padding-right: 0;
  }
}

/* =============================================================================
   상단 메뉴 항목 사이의 경계 (2026-09-24)

   대주제 메뉴 4개가 서로 붙어 하나의 긴 문장처럼 보이고, 소주제(남색 띠)도 서로 구분이
   약했다. 메뉴 구조·문구는 그대로 두고 "항목 사이 경계"만 분명하게 한다.
   - 항목 사이 간격을 gap(빈 공간)이 아니라 안쪽 여백(padding)으로 만들어 항목이 서로 맞닿게 하고,
     맞닿은 자리에 1px 세로선을 긋는다. 굵은 테두리·박스형 버튼·그림자는 쓰지 않는다.
   - 2026-09-24 오후: "대주제가 각각 독립된 칸처럼" 다시 요청 → 선을 짧은 표시가 아니라 **머리줄 높이 전체**로 긋고(첫 칸 왼쪽
     끝과 마지막 칸 오른쪽 끝에도), 칸마다 시작·끝이 보이게 했다. 모서리 둥글림은 없앴다(칸 모양). 글자 '|' 가 아니라 border 다.
   - 지금 들어와 있는 대주제는 아랫줄 3px(+아주 연한 배경)으로 표시한다 (nav-modal.js 가 .is-current-group 을 붙인다).
   - 열린(마우스를 올린) 대주제는 기존처럼 연한 회색 칸이 남색 띠로 이어진다.
   - 남색 띠의 소주제는 반투명 흰 선으로 나누고, 지금 보고 있는 소주제는 배경 + 아랫줄로 강조한다
     (nav-modal.js 가 그 소주제 링크에 aria-current="page" 를 붙인다).
   styles.css 의 .main-nav 는 다른 화면과 공유하므로, main-site 전용인 이 파일에서만 덮어쓴다.
   980px 이하(햄버거 메뉴)는 세로 목록이라 선을 넣지 않는다 — 줄바꿈될 때 선이 어색하게 남지 않는다.
   ============================================================================= */
@media (min-width: 981px) {
  .main-nav {
    gap: 0;
  }

  /* 안쪽 여백은 화면 폭에 맞춰 나눈다. 메뉴는 원래도 폭이 빠듯해서(1440px 에서 빈틈이 거의 없다),
     예전 전체 폭(글자 사이 22px)보다 넓어지지 않는 범위에서만 늘린다.
     981~1200px: 7px / 1201~1399px: 9px / 1400px 이상: 14px (아래 두 미디어쿼리) */
  .nav-item > a {
    padding: 0 7px;
    margin: 0;
  }

  /* 칸 사이 경계: 머리줄 높이 전체의 1px 선. 첫 칸의 왼쪽 끝에도 그어 4칸 모두 시작과 끝이 보이게 한다 */
  .nav-item {
    border-right: 1px solid rgba(20, 59, 92, 0.16);
  }

  .nav-item:first-child {
    border-left: 1px solid rgba(20, 59, 92, 0.16);
  }

  /* 모든 칸의 높이를 똑같이 (줄 높이가 아니라 칸 자체로) — 칸은 머리줄 높이까지 늘어난다 */
  .nav-item > a {
    justify-content: center;
    min-height: 64px;
    border-radius: 0;
  }

  /* 지금 들어와 있는 대주제 (2026-09-24 오후: "소주제를 누르면 그 띠가 계속 떠 있게"):
     그 칸은 마우스를 올렸을 때와 같은 회색 칸이 되어 남색 띠(소주제)와 이어지고, 띠는 마우스를 치워도 그대로 떠 있다.
     다른 대주제나 홈으로 가면 (nav-modal.js 가 is-current-group 을 옮기거나 지우므로) 이 띠는 들어가고 새 띠가 나온다. */
  .nav-item.is-current-group > a {
    background: rgba(15, 32, 61, 0.08);
    color: var(--navy);
  }

  .nav-item.is-current-group .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  /* 떠 있는 띠 높이만큼 내용을 아래로 밀어 띠가 내용(예: 센터안내 첫 사진)을 가리지 않게 한다 */
  #groupView {
    padding-top: var(--subnav-h, 0px);
  }

  /* 소주제(남색 띠): 항목 사이 gap 대신 좌우 여백을 똑같이 주고, 사이에 반투명 세로선 */
  .nav-dropdown {
    gap: 0;
  }

  .nav-dropdown a {
    position: relative;
    padding: 13px 28px;
    margin: 0;
  }

  .nav-dropdown a + a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    height: 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.42);
    transform: translateY(-50%);
  }

  /* 지금 보고 있는 소주제: 조금 더 밝은 배경 + 아랫줄 */
  .nav-dropdown a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.85);
  }
}

@media (min-width: 1201px) {
  .nav-item > a {
    padding: 0 9px;
  }

  .nav-dropdown a {
    padding: 13px 40px;
  }
}

/* 화면이 넉넉할 때(1400px 이상)는 안쪽 여백을 화면 폭에 맞춰 단계적으로 더 준다 (2026-09-24 오후: "따닥따닥 붙어 있다" 지적).
   1400px 이상은 로고와 메뉴 사이 여백도 24px 로 줄여 그만큼을 메뉴 칸 여백에 쓴다.
   메뉴 끝 위치(측정): 1400px 에서 18px → 끝 1384px(화면 안) / 1500px 에서 24px → 1432px / 1700px 이상 30px → 1480px */
@media (min-width: 1400px) {
  .main-nav {
    margin-left: 24px;
  }

  .nav-item > a {
    padding: 0 18px;
  }
}

@media (min-width: 1500px) {
  .nav-item > a {
    padding: 0 24px;
  }
}

@media (min-width: 1700px) {
  .nav-item > a {
    padding: 0 30px;
  }
}

/* 햄버거 메뉴(세로 목록)에서는 지금 보는 소주제만 진하게 */
@media (max-width: 980px) {
  .nav-dropdown a[aria-current="page"] {
    color: var(--navy);
    font-weight: 800;
  }
}

/* =============================================================================
   컴퓨터 화면 글씨 확대 (2026-09-24)

   "컴퓨터로 보면 글씨가 전체적으로 너무 작고 얇아서 안 읽힌다" 지적. 원인은 셋이었다:
   ① 기본 글씨가 21px 에 굵기 400(가늘다)이고, ② 보조 글씨 색(--muted #5f6f82)이 흐리며,
   ③ 0.8~0.95rem 짜리 작은 글씨가 본문에 아주 많다.
   - 기본 글씨를 21px → 23px (+약 10%). 사이트 글씨·여백이 rem 기준이라 본문 전체가 같은 비율로 커진다
   - 기본 굵기 400 → 500 (Noto Sans KR 500 은 이미 불러오고 있다), 보조 글씨 색을 더 진하게
   - 0.85rem 미만의 아주 작은 보조 글씨(날짜·딱지·안내문 …)는 최소 0.9rem 으로
   - 머리줄(로고·대주제 메뉴)은 폭이 빠듯해서(메뉴 칸 여백을 맞춰둔 값) 예전 크기(px)를 그대로 지킨다
   - 히어로의 두 단추("무료 청력상담 예약" · "취급 브랜드 둘러보기")는 따로 더 크게
   컴퓨터 화면(981px 이상)에만 적용한다. 되돌리려면 이 블록만 지우면 된다.
   ============================================================================= */
@media (min-width: 981px) {
  html {
    font-size: 143.75%;
  }

  :root {
    --muted: #45566a;
  }

  body {
    font-weight: 500;
  }

  /* 머리줄은 예전 크기 그대로 (예전 = 1.9rem / 1.55rem / 1.34rem × 21px) */
  .brand-kor {
    font-size: 39.9px;
  }

  .main-nav {
    font-size: 32.55px;
  }

  .section-label {
    font-size: 0.86rem;
  }

  .trust-grid span,
  .kakao-note,
  .cancel-link,
  .address-copy-btn,
  .program-tag,
  .support-label,
  .notice-tag,
  .notice-date,
  .review-card footer,
  .consult-hours-label,
  .consult-hours-item small,
  .inquiry-privacy,
  .inquiry-badge,
  .inquiry-reply-date,
  .inquiry-form .field-error,
  .inquiry-kind,
  .slot-caption {
    font-size: 0.9rem;
  }

  .hero-actions .primary-btn,
  .hero-actions .secondary-btn {
    min-height: 68px;
    font-size: 1.3rem;
    font-weight: 800;
  }

  /* 보청기 적응관리 단계 목록 - 컴퓨터로 보면 카드는 넓은데 글자가 작아
     안 쓰는 여백처럼 보인다는 지적(2026-09-25). 칸 폭·여백·글자를 다 키운다. */
  .stage-list li {
    grid-template-columns: 190px 1fr;
    gap: 30px;
    padding: 32px 36px;
  }

  .stage-when {
    font-size: 1.15rem;
  }

  .stage-body strong {
    font-size: 1.35rem;
  }

  .stage-body p {
    font-size: 1.12rem;
    line-height: 1.75;
  }
}

@media (min-width: 981px) and (max-width: 1200px) {
  .main-nav {
    font-size: 28.14px;
  }
}

/* =============================================================================
   오시는 길 — 컴퓨터 화면 전용 순서 재배치 (2026-09-26)

   원장님 요청: 어르신이 위에서 아래로 읽기만 하면 되도록
   "이름 → 주소 → 버스정류장 안내 → (큰) 지도 → 카카오맵 길찾기 →
   영업시간 요약" 순서로. 휴대폰은 손대지 않는다(휴대폰은 이미
   2026-09-25에 "이름→지도→주소→오시는방법→영업시간"으로 따로
   맞춰져 있다 — 위 981px 미만 규칙 참고, 그대로 둠).

   방법은 휴대폰 순서 재배치와 똑같다: 왼쪽 칸(div)을 display:contents로
   "투명하게" 만들어 안의 요소들이 오른쪽 지도 칸과 같은 자리에서
   order로 재배치되게 한다. 컴퓨터 전용으로 새로 만든 두 요소
   (.location-desktop-only — 카카오맵 길찾기 링크·영업시간 요약)는
   휴대폰에서는 계속 감춰두고, 기존 위치보기 링크·영업시간표
   (.location-mobile-only, .visit-hours)는 컴퓨터에서만 감춘다.
   ============================================================================= */
.location-desktop-only {
  display: none;
}

.visit-hours-mini p {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* 2026-09-26 (3) — "여전히 비어 보인다. 공간을 일부만 쓰는 경향을 깨고
   더 넓고 크게" 라는 재지적(720px→1040px로 넓힌 것도 부족했다).
   이번엔 폭 제한 자체를 없애서 본문 칸(.container, 최대 1440px 안팎)을
   그대로 다 쓰고, 글씨·지도도 한 번 더 크게 키운다. */
@media (min-width: 981px) {
  .location-grid .location-title {
    font-size: clamp(4.2rem, 6.2vw, 6.4rem);
  }

  .location-grid .address {
    max-width: none;
    font-size: 2.2rem;
  }

  .location-grid .visit-transit {
    max-width: none;
    padding: 30px 36px;
    font-size: 1.7rem;
  }

  .location-grid .visit-transit-icon {
    width: 68px;
    height: 68px;
  }

  .location-grid .visit-transit-icon svg {
    width: 36px;
    height: 36px;
  }

  .location-grid .location-desktop-only.text-link {
    font-size: 1.4rem;
  }

  .location-grid .visit-hours-mini p {
    font-size: 1.55rem;
  }

  .location-section .location-map {
    --map-h: clamp(680px, 82vh, 1040px);
  }
}

.visit-hours-mini p:last-child {
  margin-bottom: 0;
}

.visit-hours-mini strong {
  color: var(--navy-deep);
}

.visit-hours-mini a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}

@media (min-width: 981px) {
  /* 2026-09-26 (4) — "더 가로로, 옆이 비어" 재지적. .container 자체가
     사이트 공통 규칙(styles.css)으로 최대 1440px 안팎에 묶여 있어서,
     .location-grid 쪽 폭 제한을 없애도 그 바깥 그릇이 좁았다. 이 구역만
     그 그릇 규칙을 깨고 화면 가장자리 가까이까지 넓힌다. */
  .location-section .container.location-grid {
    width: calc(100% - 48px);
    max-width: 1800px;
  }

  /* 위 본문 폭 공식을 위쪽 탭 버튼 줄(.group-head-wrap)에도 그대로 맞춰서
     "탭 줄만 좁고 안쪽으로 밀려 보이는" 좌우 어긋남을 없앤다.
     (nav-modal.js가 "문의·오시는길" 그룹일 때만 is-location-group을 붙인다) */
  .group-head-wrap.is-location-group {
    width: calc(100% - 48px);
    max-width: 1800px;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .location-grid > div:first-child {
    display: contents;
  }

  .location-grid .location-title { order: 1; }
  .location-grid .address { order: 2; }
  .location-grid .visit-transit { order: 3; margin-bottom: 0; }

  .location-map-col {
    order: 4;
    margin: 28px 0;
  }

  .location-grid .location-desktop-only {
    order: 5;
  }

  .location-grid a.location-desktop-only {
    display: inline-flex;
  }

  .location-grid div.location-desktop-only {
    display: block;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  .location-grid .location-mobile-only,
  .location-grid .visit-hours {
    display: none;
  }
}

/* 2026-09-26 (5) — 제목·주소·오시는 길 안내(3줄)가 페이지 정중앙이 아니라
   살짝 왼쪽으로 치우쳐 보인다는 지적. 원인: .container 공통 규칙(아래
   1400px 이상에서 오른쪽에 132px을 비우는 것 — .side-icons 겹침 방지용)이
   이 구역에도 그대로 적용되는데, 왼쪽은 그대로 두고 오른쪽만 비워서
   그릇 자체는 화면 중앙이어도 안의 글자는 중앙보다 왼쪽으로 쏠렸다.
   왼쪽에도 같은 만큼 여백을 줘서 좌우를 맞춘다. */
@media (min-width: 1400px) {
  .location-section .container.location-grid {
    padding-left: 132px;
  }

  /* 위쪽 탭 버튼 줄도 같이 밀어줘야 본문과 계속 나란히 맞는다. */
  .group-head-wrap.is-location-group {
    padding-left: 132px;
  }
}

/* =============================================================================
   감춘 요소는 반드시 사라지게 한다 (2026-09-22)

   hidden 을 붙여도, 그 요소에 display:flex/grid 같은 규칙이 따로 있으면
   그 규칙이 이겨서 그대로 보인다. 아직 채우지 않은 자리를 감추는
   hide-empty.js 가 제대로 동작하려면 이 한 줄이 필요하다.
   ============================================================================= */
[hidden] {
  display: none !important;
}
