/* 이명맞춤 — 흰 바탕, 먹색 글자, 강조색은 청록 한 가지. 가는 선과 여백, 글자 크기와 굵기로 위계를 만듭니다. */

:root {
  --ink: #1a1f24;
  --sub: #58636c;
  --line: #dfe3e6;
  --line-strong: #b9c0c6;
  --soft: #f5f6f7;
  --brand: #0b6e63;
  --brand-dark: #085349;
  --brand-soft: #e6f2f0;
  --r: 8px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

[hidden] { display: none !important; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- 머리 ---------- */
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  padding: 6px 0;
}
.brand svg { display: block; width: 26px; height: 26px; flex: none; }
.top nav {
  display: flex;
  gap: 2px;
  min-width: 0;
  margin-left: auto;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.top nav::-webkit-scrollbar { display: none; }
.top nav a {
  flex: none;
  color: var(--sub);
  text-decoration: none;
  font-size: 15px;
  padding: 10px 8px;
}

/* ---------- 첫 화면 ---------- */
.hero { padding: 28px 0 8px; }
.hero.hero-sm { padding-bottom: 4px; }
.eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}
h1 {
  margin: 0 0 12px;
  font-size: 29px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.lead { margin: 0 0 20px; font-size: 17px; color: var(--sub); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-row .btn { flex: 1 1 auto; }
.facts { margin: 16px 0 0; font-size: 14.5px; color: var(--sub); }
.hero-art {
  margin-top: 24px;
  padding: 14px 14px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-art p {
  margin: 6px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--sub);
}

/* ---------- 순서 ---------- */
.steps {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.steps a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.steps a:first-child { border-top: 0; }
.steps .txt { flex: 1 1 auto; min-width: 0; }
.steps b { display: block; font-size: 16.5px; line-height: 1.4; }
.steps small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--sub); }
.steps a::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border: solid var(--line-strong);
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- 구역과 글 위계 ---------- */
.card {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--ink);
  scroll-margin-top: 8px;
}
h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.tool > h2 { display: flex; align-items: flex-start; gap: 10px; }
.tool > h2 .num { margin-top: 1px; }
h3 { margin: 30px 0 6px; font-size: 17.5px; line-height: 1.45; font-weight: 700; }
p { margin: 0 0 14px; }
.sub, .hint { color: var(--sub); font-size: 15px; }
.hint { font-weight: 400; margin-top: 12px; }
.hint.tight { margin-top: 8px; }
strong { font-weight: 700; }

/* 먼저 읽어 주세요 */
.notice {
  margin-top: 24px;
  padding: 16px 16px 4px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 15.5px;
}
.notice h2 { margin-bottom: 6px; font-size: 16.5px; }

/* ---------- 높이 찾는 판 ---------- */
.tuner {
  margin-top: 18px;
  padding: 20px 16px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
}
.tuner-cap {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--sub);
}
.hz {
  margin: 0 0 4px;
  text-align: center;
  font-size: 60px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hz .unit {
  margin-left: 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--sub);
}

.lbl {
  display: block;
  margin: 20px 0 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sub);
}
.lbl b { color: var(--ink); font-weight: 700; }

input[type="range"] {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  accent-color: var(--brand);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: var(--line-strong);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  margin-top: -12px;
  border-radius: 50%;
  border: 3px solid var(--brand);
  background: #fff;
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--line-strong);
}
input[type="range"]::-moz-range-thumb {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--brand);
  background: #fff;
}
input[type="range"]:disabled { opacity: 0.5; cursor: not-allowed; }

.ends {
  display: flex;
  justify-content: space-between;
  margin-top: -4px;
  font-size: 13px;
  color: var(--sub);
}

/* ---------- 버튼 ---------- */
button, .btn {
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn-main {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
}
.btn-lg { min-height: 54px; padding: 12px 22px; font-size: 17px; }
.btn-strong { border: 2px solid var(--brand); color: var(--brand-dark); font-weight: 700; }

button[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
}

/* 소리 듣기 단추의 세모(재생)·네모(멈춤) 표시 */
#btnPlay { min-height: 56px; font-size: 18px; }
#btnPlay::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 16px;
  margin-right: 10px;
  vertical-align: -2px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
#btnPlay[aria-pressed="true"]::before { width: 14px; height: 14px; vertical-align: -1px; clip-path: none; border-radius: 2px; }

/* 손가락으로 누르는 화면에서는 누른 뒤 색이 남지 않도록, 마우스가 있을 때만 올려놓은 표시를 합니다 */
@media (hover: hover) {
  .top nav a:hover { color: var(--brand-dark); text-decoration: underline; }
  button:hover:not(:disabled), .btn:hover { border-color: var(--brand); color: var(--brand-dark); }
  .btn-main:hover:not(:disabled):not([aria-pressed="true"]), a.btn-main:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
  .btn-text:hover:not(:disabled) { color: var(--brand-dark); }
  .steps a:hover b { color: var(--brand-dark); }
  .more a:hover { border-color: var(--brand); }
  .faq summary:hover { color: var(--brand-dark); }
}

button:disabled {
  color: #8b959c;
  border-color: var(--line);
  background: var(--soft);
  cursor: not-allowed;
}
.btn-small { min-height: 42px; padding: 6px 13px; font-size: 15px; }
.btn-text {
  border: 0;
  min-height: 40px;
  padding: 6px 4px;
  background: transparent;
  color: var(--sub);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 15px;
}
.wide { width: 100%; }

.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.row4 button { padding-left: 4px; padding-right: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.row2 button { padding-left: 8px; padding-right: 8px; }
.stack { display: grid; gap: 8px; margin-top: 16px; }

.direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 15px;
  color: var(--sub);
}
.direct input {
  font: inherit;
  width: 116px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--ink);
  background: #fff;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- 고르는 칸 ---------- */
.seg { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.seg-row { display: flex; gap: 6px; }
.seg label { flex: 1 1 0; min-width: 0; position: relative; }
.seg input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.seg span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 52px;
  padding: 6px 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--sub);
}
.seg small { display: block; font-size: 12.5px; font-weight: 400; color: var(--sub); }
.seg input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
}
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.seg input:disabled + span { color: #8b959c; }

/* ---------- 안쪽 판 (옥타브 확인, 내 기록, 걸러낼 범위) ---------- */
.panel {
  margin-top: 24px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.panel > h3:first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.oct { list-style: none; margin: 12px 0 0; padding: 0; }
.oct li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
}
.oct .oct-name { flex: 1 1 auto; min-width: 0; font-size: 14.5px; line-height: 1.35; color: var(--sub); }
.oct .oct-name b { display: block; font-size: 16.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.oct li.is-playing { background: var(--brand-soft); }
.oct li.is-playing .oct-name b { color: var(--brand-dark); }

.hist { list-style: none; margin: 10px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.hist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.hist li b { font-size: 16px; }
.hist .when { color: var(--sub); flex: 1 1 auto; }

/* 걸러낼 범위를 막대 그림으로 */
.info { margin: 0; font-size: 15.5px; }
.info b { font-variant-numeric: tabular-nums; }
.panel.band-card { margin-top: 16px; }
.band { margin-top: 12px; }
.band-bar {
  position: relative;
  height: 16px;
  border-radius: 3px;
  background: #e4e7ea;
  overflow: hidden;
}
.band-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--brand);
}
.band-bar b {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #fff;
}
.band-ticks { position: relative; height: 22px; margin-top: 4px; font-size: 12.5px; color: var(--sub); font-variant-numeric: tabular-nums; }
.band-ticks span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.band-ticks span:first-child { transform: none; }
.band-ticks span:last-child { transform: translateX(-100%); }
.band-cap { margin: 2px 0 0; font-size: 13.5px; color: var(--sub); }
.band-cap i {
  display: inline-block;
  width: 14px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  background: var(--brand);
  vertical-align: 0;
}

/* ---------- 알림 글 ---------- */
.msg {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  color: var(--ink);
  font-size: 15px;
}
.msg.strong { border-left-color: var(--ink); background: var(--soft); font-weight: 700; }

/* ---------- 파일 고르기 ---------- */
.file { display: block; margin-top: 22px; }
.file .lbl { margin-top: 0; margin-bottom: 8px; color: var(--ink); }
.file input[type="file"] {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 14px 12px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.file input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  min-height: 42px;
  padding: 6px 14px;
  margin-right: 12px;
  border: 0;
  border-radius: var(--r);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

/* ---------- 결과 ---------- */
.result {
  margin-top: 22px;
  padding: 18px 14px;
  border: 1px solid var(--brand);
  border-radius: var(--r);
}
.result h3 { margin-top: 0; }
.result audio { display: block; width: 100%; margin: 10px 0 12px; }
.spec-box {
  margin-top: 16px;
  padding: 10px 10px 4px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.spec { display: block; width: 100%; height: 190px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--sub); margin: 8px 0 0; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid #a3acb3; vertical-align: middle; margin-right: 6px; }
.legend i.after { border-top-color: var(--brand); }
.legend i.band { height: 10px; border-top: 0; border-radius: 2px; background: var(--brand-soft); }
.result .msg { background: var(--soft); border-left-color: var(--ink); }
.result > .hint:last-child { margin-bottom: 0; }

select {
  font: inherit;
  font-size: 16px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
}
.inline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 15px; color: var(--sub); }

/* ---------- 글 영역 ---------- */
.prose ol {
  list-style: none;
  counter-reset: step;
  margin: 14px 0;
  padding: 0;
}
.prose ol > li {
  counter-increment: step;
  position: relative;
  margin-bottom: 14px;
  padding-left: 34px;
}
.prose ol > li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  color: var(--brand-dark);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.prose ul:not(.more) { list-style: none; margin: 0 0 14px; padding: 0; }
.prose ul:not(.more) > li { position: relative; margin-bottom: 8px; padding-left: 18px; }
.prose ul:not(.more) > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.78em;
  width: 8px;
  height: 2px;
  background: var(--ink);
}
.prose h3 { margin-top: 28px; }
.prose > section { padding: 26px 0; border-top: 1px solid var(--line); }
.prose > section:first-child { padding-top: 0; border-top: 0; }
.prose > section:last-child { padding-bottom: 0; }
.prose > section > :last-child { margin-bottom: 0; }
.refs li { font-size: 15px; color: var(--sub); }

.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 15.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; font-size: 14px; color: var(--sub); border-bottom-color: var(--ink); }
/* 첫 칸(연도·학술지)이 글자 중간에서 끊기지 않게 합니다 */
.prose th:first-child, .prose td:first-child { white-space: nowrap; }
.prose td:first-child { font-weight: 700; }
.prose td:first-child .sub { font-weight: 400; }

/* 폰에서는 표를 한 줄씩 쌓아 읽기 쉽게 합니다 */
@media (max-width: 560px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; }
  .prose thead { display: none; }
  .prose table { border-top: 1px solid var(--ink); }
  .prose tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .prose td { padding: 0; border-bottom: 0; }
  .prose td + td { margin-top: 8px; }
  .prose td:first-child br { display: none; }
  .prose td:first-child .sub { margin-left: 8px; }
  .prose td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sub);
  }
}

/* ---------- 자주 묻는 질문 ---------- */
.faq { margin-top: 14px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 14px 36px 14px 0;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 20px;
  width: 9px;
  height: 9px;
  border: solid var(--sub);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.faq details[open] summary::after { top: 25px; transform: rotate(-135deg); }
.faq details p { margin: 0; padding: 0 0 16px; }

.more { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.more a {
  position: relative;
  display: block;
  padding: 14px 40px 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
}
.more a::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}
.more a b { display: block; color: var(--brand-dark); }
.more a span { display: block; font-size: 15px; line-height: 1.5; color: var(--sub); }

/* ---------- 함께 쓰면 좋은 것 ---------- */
.shop-notice {
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--soft);
  font-size: 14px;
  color: var(--sub);
}
.shop-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.shop-list li { padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; }
.shop-list a { font-weight: 700; font-size: 17px; color: var(--brand-dark); }
.shop-list p { margin: 6px 0 0; font-size: 15.5px; color: var(--sub); }

/* ---------- 바닥 ---------- */
footer {
  margin-top: 48px;
  padding: 26px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--sub);
  font-size: 14.5px;
}
footer p { margin-bottom: 8px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 14px; }

/* 좁은 폰에서는 옥타브 확인 줄을 두 줄로: 위에 이름과 높이, 아래에 단추 */
@media (max-width: 479px) {
  .oct li { flex-wrap: wrap; padding: 12px 8px; }
  .oct .oct-name { flex: 1 1 100%; }
  .oct .oct-name b { display: inline; margin-left: 6px; }
  .oct li button { flex: 1 1 0; }
}

/* ---------- 넓은 화면 ---------- */
@media (min-width: 480px) {
  .tuner { padding: 24px 22px 18px; }
  .panel { padding: 18px; }
  .notice { padding: 18px 20px 6px; }
}

@media (min-width: 760px) {
  body { font-size: 17.5px; }
  .wrap { padding: 0 24px; }
  .hero { padding: 48px 0 12px; }
  .hero.hero-sm { padding: 44px 0 8px; }
  .hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; }
  .hero-art { margin-top: 0; }
  h1 { font-size: 38px; }
  .lead { font-size: 18.5px; }
  .cta-row .btn { flex: 0 1 auto; }
  h2 { font-size: 25px; }
  .hz { font-size: 76px; }
  .card { margin-top: 48px; padding-top: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
  .steps a { align-items: flex-start; padding: 18px 16px 18px 0; border-top: 0; }
  .steps a + a { padding-left: 16px; border-left: 1px solid var(--line); }
  .steps a::after { display: none; }
  .tuner { padding: 30px 32px 22px; }
  .tuner .stack, .tuner .row4 { max-width: 520px; margin-left: auto; margin-right: auto; }
  .panel { padding: 22px; }
  .result { padding: 22px; }
  .shop-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 12px; }
  h1 { font-size: 26px; }
  .hz { font-size: 52px; }
  .row4 button { font-size: 15px; }
  .row2 button { font-size: 15px; }
  .top nav a { padding: 10px 6px; font-size: 14.5px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  button, .btn, .seg span { transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
}
