/* =========================================================
   KOREA VISA GUIDE — Main
   Palette: obsidian navy + champagne gold + ivory
   ========================================================= */
:root {
  --navy: #09111e;
  --navy-deep: #060b14;
  --navy-soft: #121c2e;
  --ivory: #faf8f4;
  --ivory-warm: #f4f0e8;
  --gold: #c6a463;
  --gold-light: #e0c58a;
  --ink: #151c28;
  --ink-2: #4a5365;
  --ink-3: #8a909c;
  --line-gold: rgba(198, 164, 99, .28);
  --line-dark: rgba(21, 28, 40, .09);
  --line-light: rgba(255, 255, 255, .12);

  --serif: "Noto Serif KR", "Batang", serif;
  --sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --latin: "Cormorant Garamond", Georgia, serif;

  --header-h: 84px;
  --container: 1240px;
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow, .card__no, .card__en, .step__no, .acc__no, .cta__tel, .drawer__tel, .hero__points span {
  font-variant-numeric: lining-nums;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.pc-only { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 30px;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  border-radius: 4px; border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-soft); }
.btn--line-gold { border-color: var(--line-gold); color: #fff; }
.btn--line-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

.eyebrow {
  font-family: var(--latin); font-size: 15px; font-weight: 600;
  letter-spacing: .18em; color: var(--gold); margin-bottom: 18px;
}
.eyebrow--light { color: var(--gold-light); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background .35s var(--ease), height .35s var(--ease), box-shadow .35s var(--ease);
}
.header.is-scrolled {
  --header-h: 70px;
  background: rgba(9, 17, 30, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-gold);
}
.header__inner {
  height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: #fff;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark { width: 36px; height: 36px; color: var(--gold); }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text strong { font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.logo__text small { font-size: 11.5px; color: var(--gold-light); letter-spacing: .02em; margin-top: 3px; }

.gnb > ul { display: flex; gap: 4px; }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a {
  display: block; padding: 10px 13px;
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,.88);
  transition: color .25s;
}
.gnb > ul > li:hover > a { color: var(--gold-light); }
.gnb .sub {
  position: absolute; top: 100%; left: 50%;
  min-width: 220px; padding: 12px;
  background: #fff; border-radius: 10px;
  box-shadow: 0 18px 40px rgba(6, 11, 20, .18);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.gnb .sub::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.gnb li:hover > .sub, .gnb li:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb .sub a {
  display: block; padding: 9px 12px; border-radius: 6px;
  font-size: 14px; color: var(--ink-2); white-space: nowrap;
}
.gnb .sub a:hover { background: var(--ivory-warm); color: var(--ink); }

.header__util { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; }
.lang__btn {
  display: flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 12px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-light); border-radius: 4px;
}
.lang__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 120px; padding: 8px;
  background: #fff; border-radius: 8px; box-shadow: 0 12px 30px rgba(6,11,20,.18);
  opacity: 0; visibility: hidden; transition: .2s;
}
.lang.is-open .lang__list { opacity: 1; visibility: visible; }
.lang__list a { display: block; padding: 8px 10px; font-size: 14px; color: var(--ink-2); border-radius: 4px; }
.lang__list a:hover, .lang__list a[aria-current] { background: var(--ivory-warm); color: var(--ink); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: #fff;
  transition: transform .3s var(--ease), opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Drawer (mobile) */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: var(--navy-deep);
  padding: calc(var(--header-h) + 8px) 0 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.menu-open .drawer { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.drawer__panel { padding: 0 24px; color: #fff; }
.drawer__menu a, .drawer__group > button {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 18px 0; font-size: 18px; font-weight: 600; text-align: left;
  border-bottom: 1px solid var(--line-light);
}
.drawer__group > button::after { content: "+"; color: var(--gold); font-weight: 300; font-size: 22px; transition: transform .3s; }
.drawer__group.is-open > button::after { transform: rotate(45deg); }
.drawer__group ul { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.drawer__group ul > div { overflow: hidden; }
.drawer__group.is-open ul { grid-template-rows: 1fr; }
.drawer__group li a { display: block; padding: 10px 4px; color: rgba(255,255,255,.7); font-size: 15px; }
.drawer__group li:first-child a { padding-top: 14px; }
.drawer__group li:last-child a { padding-bottom: 16px; }
.drawer .btn { margin-top: 32px; }
.drawer__tel { display: block; margin-top: 16px; text-align: center; color: var(--gold-light); font-family: var(--latin); font-size: 18px; letter-spacing: .04em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(120% 90% at 50% 0%, #15233a 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: #fff; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 40px) 24px 0;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow {
  position: absolute; width: 900px; height: 900px; left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(198,164,99,.18) 0%, rgba(198,164,99,0) 60%);
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(-50%, -54%) scale(1.08); opacity: .75; } }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 80%);
}
.hero__orbit {
  position: absolute; width: min(760px, 120vw); left: 50%; top: 44%;
  transform: translate(-50%, -50%);
  fill: none; stroke: var(--line-gold); stroke-width: .8;
  animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero__inner { position: relative; text-align: center; max-width: 900px; margin: 0 auto; padding-bottom: 150px; }
.hero__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(36px, 5.6vw, 72px); line-height: 1.28; letter-spacing: -.02em;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__rule { display: block; width: 64px; height: 1px; margin: 32px auto; background: var(--gold); }
.hero__lead { font-size: clamp(16px, 1.5vw, 19px); color: rgba(255,255,255,.78); line-height: 1.8; }
.hero__actions { display: flex; gap: 12px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.hero__note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-size: 13.5px; color: rgba(255,255,255,.55);
}
.hero__note svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.6; }

.hero__points {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
  background: rgba(6, 11, 20, .55); backdrop-filter: blur(6px);
}
.hero__points li { padding: 24px 40px; border-left: 1px solid var(--line-light); }
.hero__points li:first-child { border-left: 0; }
.hero__points span { display: block; font-family: var(--latin); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; color: var(--gold); }
.hero__points strong { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; }

/* ---------- Section common ---------- */
.section { padding: 140px 0; }
.section__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
  margin-bottom: 64px;
}
.section__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.35; letter-spacing: -.02em;
}
.section__desc { font-size: 16.5px; color: var(--ink-2); max-width: 480px; justify-self: end; }
.section__head--light { color: #fff; }
.section__head--light .section__desc { color: rgba(255,255,255,.65); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card--consult { grid-column: span 2; }
.card {
  position: relative; display: flex; flex-direction: column;
  min-height: 400px; padding: 30px 28px 24px;
  background: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius);
  overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(21,28,40,.1); border-color: var(--line-gold); }
.card__no { font-family: var(--latin); font-size: 15px; font-weight: 600; color: var(--gold); letter-spacing: .1em; }
.card__title { margin-top: 10px; font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.card__en { font-family: var(--latin); font-size: 12px; letter-spacing: .16em; color: var(--ink-3); font-weight: 600; }
.card__list { margin-top: 22px; position: relative; z-index: 1; }
.card__list li + li { margin-top: 2px; }
.card__list a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 0; font-size: 15px; color: var(--ink-2);
  transition: color .2s;
}
.card__list a::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.card__list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.card__no { position: absolute; top: 30px; right: 28px; }
.card__en { font-size: 11.5px !important; letter-spacing: .12em !important; }
.card__icon {
  order: -1; margin-bottom: 22px;
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ivory-warm); color: var(--gold);
  transition: background .4s var(--ease), color .4s var(--ease), transform .5s var(--ease);
}
.card__icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { background: var(--navy); color: var(--gold-light); transform: rotate(-8deg); }
.card__title { margin-top: 0 !important; }
.card__more {
  margin-top: auto; padding-top: 16px; position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-dark);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.card__more span { color: var(--gold); transition: transform .3s var(--ease); }
.card:hover .card__more span { transform: translate(3px, -3px); }

.card--consult { background: var(--navy); color: #fff; border-color: var(--navy); }
.card--consult .card__en { color: rgba(255,255,255,.45); }
.card--consult .card__text { margin: 22px 0 24px; font-size: 15px; color: rgba(255,255,255,.72); line-height: 1.75; position: relative; z-index: 1; }
.card--consult .card__icon { background: rgba(198,164,99,.14); color: var(--gold-light); }
.card--consult:hover .card__icon { background: var(--gold); color: var(--navy); }
.card__list { margin-bottom: 20px; }
.card--consult .card__more { border-top-color: var(--line-light); color: var(--gold-light); }

/* ---------- Process ---------- */
.process { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.process::before {
  content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; border-radius: 50%;
  border: 1px solid var(--line-gold); box-shadow: 0 0 0 80px rgba(198,164,99,.02), 0 0 0 160px rgba(198,164,99,.015);
}
.steps { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
  opacity: .5;
}
.step { position: relative; padding: 0 10px; text-align: center; }
.step__no {
  position: relative; display: grid; place-items: center;
  width: 54px; height: 54px; margin: 0 auto 22px;
  font-family: var(--latin); font-size: 18px; font-weight: 600; color: var(--gold-light);
  background: var(--navy); border: 1px solid var(--gold); border-radius: 50%;
  transition: background .3s, color .3s;
}
.step:hover .step__no { background: var(--gold); color: var(--navy); }
.step strong { display: block; font-size: 17px; font-weight: 700; }
.step p { max-width: 8.5em; margin: 8px auto 0; font-size: 14px; color: rgba(255,255,255,.58); line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq { background: var(--ivory-warm); }
.faq__wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.faq__head { position: sticky; top: 120px; }
.faq__head .section__desc { justify-self: start; margin: 20px 0 32px; }
.acc { border-top: 1px solid rgba(21,28,40,.14); }
.acc:last-child { border-bottom: 1px solid rgba(21,28,40,.14); }
.acc summary {
  position: relative; display: flex; align-items: center; gap: 20px;
  padding: 28px 48px 28px 0; cursor: pointer; list-style: none;
  font-size: 18.5px; font-weight: 600; letter-spacing: -.01em;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after, .acc summary::before {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease);
}
.acc summary::before { transform: rotate(90deg); }
.acc[open] summary::before { transform: rotate(0); }
.acc__no { font-family: var(--latin); font-size: 17px; color: var(--gold); font-weight: 600; flex-shrink: 0; }
.acc__body { padding: 0 48px 30px 41px; color: var(--ink-2); font-size: 15.5px; line-height: 1.85; }
.acc__body p + p { margin-top: 10px; }
.acc__body b { color: var(--ink); font-weight: 700; }
.acc__list { margin: 12px 0; padding: 14px 18px; background: #fff; border-left: 2px solid var(--gold); }
.acc__list li { position: relative; padding-left: 12px; font-size: 14.5px; }
.acc__list li + li { margin-top: 4px; }
.acc__list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.acc__flow {
  padding: 14px 18px; background: #fff; border-left: 2px solid var(--gold);
  font-size: 14.5px; color: var(--ink); font-weight: 500;
}

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 120px 0;
  background: linear-gradient(135deg, var(--navy-deep), #13203a);
  color: #fff;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 80% at 85% 50%, rgba(198,164,99,.16), transparent 70%);
}
.cta__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.cta__title { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3vw, 40px); line-height: 1.4; letter-spacing: -.02em; }
.cta__desc { margin-top: 22px; color: rgba(255,255,255,.65); font-size: 16px; max-width: 520px; }
.cta__box {
  padding: 36px; border: 1px solid var(--line-gold); border-radius: var(--radius);
  background: rgba(255,255,255,.03); backdrop-filter: blur(4px);
}
.cta__tel { display: block; padding-bottom: 24px; border-bottom: 1px solid var(--line-light); }
.cta__tel span { font-family: var(--latin); font-size: 13px; letter-spacing: .2em; color: var(--gold); font-weight: 600; }
.cta__tel strong { display: block; margin-top: 4px; font-family: var(--latin); font-size: clamp(30px, 3.2vw, 40px); font-weight: 600; letter-spacing: .02em; }
.cta__tel:hover strong { color: var(--gold-light); }
.messengers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 24px 0; }
.msg {
  display: grid; place-items: center; height: 46px; border-radius: 6px;
  font-size: 13px; font-weight: 600; border: 1px solid var(--line-light);
  transition: background .25s, border-color .25s, color .25s;
}
.msg:hover { border-color: transparent; }
.msg--kakao:hover { background: #fee500; color: #191919; }
.msg--wechat:hover { background: #07c160; }
.msg--whatsapp:hover { background: #25d366; }
.msg--line:hover { background: #06c755; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.55); padding: 64px 0 40px; font-size: 14px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line-light); }
.logo--footer { color: #fff; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a:hover { color: var(--gold-light); }
.footer__info { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; }
.footer__info div { display: flex; gap: 8px; }
.footer__info dt { color: rgba(255,255,255,.35); }
.footer__info dd { margin: 0; }
.footer__copy { margin-top: 28px; font-size: 13px; color: rgba(255,255,255,.3); }

/* ---------- Floating ---------- */
.floating {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  display: flex; flex-direction: column; gap: 10px;
}
.floating__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 68px; height: 68px; border-radius: 50%;
  background: #fff; color: var(--ink); box-shadow: 0 10px 28px rgba(6,11,20,.18);
  font-size: 11px; font-weight: 600;
  transition: transform .3s var(--ease), opacity .3s, visibility .3s;
}
.floating__btn:hover { transform: translateY(-3px); }
.floating__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.floating__btn--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); }
.floating__btn:last-child { opacity: 0; visibility: hidden; }
.show-top .floating__btn:last-child { opacity: 1; visibility: visible; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__glow, .hero__orbit { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
  .gnb > ul > li > a { padding: 10px 9px; font-size: 14.5px; }
  .header__inner { padding: 0 28px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card--consult { grid-column: 1 / -1; min-height: 0; }
  .card { padding: 26px 22px 22px; }
  .card__no { top: 26px; right: 22px; }
}

@media (max-width: 1080px) {
  :root { --header-h: 68px; }
  .gnb, .header__cta { display: none; }
  .menu-toggle { display: block; }
  .header__inner { padding: 0 20px; }
  .hero__points { grid-template-columns: repeat(2, 1fr); }
  .hero__points li { padding: 18px 24px; }
  .hero__points li:nth-child(3) { border-left: 0; }
  .hero__points li:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .hero__inner { padding-bottom: 200px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .faq__wrap { grid-template-columns: 1fr; gap: 40px; }
  .faq__head { position: static; }
  .cta__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  .container { padding: 0 20px; }
  .section { padding: 96px 0; }
  .section__head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .section__desc { justify-self: start; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card { min-height: 380px; }
  .pc-only { display: none; }
}

@media (max-width: 560px) {
  .logo__mark { width: 30px; height: 30px; }
  .logo__text strong { font-size: 15.5px; }
  .logo__text small { font-size: 10.5px; }
  .lang__btn { height: 38px; padding: 0 10px; }

  .hero { padding: calc(var(--header-h) + 32px) 20px 0; }
  .hero__inner { padding-bottom: 180px; }
  .hero__rule { margin: 24px auto; }
  .hero__lead { font-size: 15px; }
  .hero__actions { flex-direction: column; margin-top: 32px; }
  .hero__actions .btn { width: 100%; height: 52px; }
  .hero__note { font-size: 12.5px; }
  .hero__points li { padding: 14px 18px; }
  .hero__points span { font-size: 10.5px; }
  .hero__points strong { font-size: 13.5px; }

  .section { padding: 80px 0; }
  .eyebrow { font-size: 13px; margin-bottom: 12px; }

  /* Cards: compact horizontal layout on phones */
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { min-height: 0; padding: 22px 20px 18px; }
  .card__title { font-size: 22px; margin-top: 6px; }
  .card__icon { width: 52px; height: 52px; margin-bottom: 16px; }
  .card__icon svg { width: 26px; height: 26px; }
  .card__list { margin-top: 14px; margin-bottom: 16px; }
  .card__list a { font-size: 14.5px; }
  .card--consult .card__text { font-size: 14px; margin-top: 14px; }

  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; text-align: left; padding: 0 0 26px; }
  .step::before { content: ""; position: absolute; left: 26.5px; top: 54px; bottom: 0; width: 1px; background: var(--line-gold); }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before { display: none; }
  .step__no { grid-row: span 2; margin: 0; }
  .step strong { align-self: end; padding-top: 4px; }
  .step p { max-width: none; margin: 2px 0 0; }

  .acc summary { font-size: 16px; gap: 14px; padding: 22px 36px 22px 0; }
  .acc__body { padding: 0 0 24px; font-size: 14.5px; }

  .cta { padding: 88px 0; }
  .cta__box { padding: 24px 20px; }
  .messengers { grid-template-columns: repeat(2, 1fr); }

  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__links { gap: 16px; }
  .footer__info { flex-direction: column; gap: 6px; }

  .floating { right: 14px; bottom: 14px; transition: opacity .3s, visibility .3s; }
  body:not(.show-top) .floating { opacity: 0; visibility: hidden; }
  .floating__btn { width: 56px; height: 56px; font-size: 10px; }
  .floating__btn svg { width: 19px; height: 19px; }
}

/* ---- English pages: longer words need a little more room ---- */
html[lang="en"] .btn { height: auto; min-height: 56px; padding-top: 10px; padding-bottom: 10px; line-height: 1.3; text-align: center; }
@media (max-width: 560px) {
  html[lang="en"] .btn { min-height: 52px; }
  html[lang="en"] .header__util { gap: 6px; }
  html[lang="en"] .logo { gap: 10px; }
  html[lang="en"] .logo__text strong { font-size: 13.5px; letter-spacing: 0; }
  html[lang="en"] .logo__text small { font-size: 10px; }
}

/* ---- Chinese pages: Simplified Chinese fonts ---- */
html[lang="zh-CN"] {
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Pretendard Variable", Pretendard, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
html[lang="zh-CN"] body { word-break: normal; line-break: strict; }

/* ---- Japanese pages: Japanese fonts ---- */
html[lang="ja"] {
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Pretendard Variable", Pretendard, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
}
html[lang="ja"] body { word-break: normal; line-break: strict; }

/* ---- Messenger QR popup ---- */
.qr-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 10, 20, .7); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.qr-modal.is-open { opacity: 1; visibility: visible; }
.qr-modal__box { position: relative; width: 100%; max-width: 340px; padding: 36px 28px 28px; background: #fff; border-radius: 12px; text-align: center; color: var(--ink); }
.qr-modal__close { position: absolute; top: 8px; right: 12px; width: 36px; height: 36px; font-size: 26px; line-height: 1; color: var(--ink-3); }
.qr-modal__title { font-family: var(--latin); font-size: 22px; font-weight: 600; letter-spacing: .04em; }
.qr-modal__img { display: block; width: 240px; height: 240px; margin: 16px auto 12px; }
.qr-modal__desc { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.qr-modal__open[hidden] { display: none; }

/* Consultation language note under the messenger buttons */
.cta__lang { margin: -10px 0 18px; font-size: 13px; color: rgba(255,255,255,.55); text-align: center; letter-spacing: .01em; }

/* ---- Traditional Chinese pages (Taiwan · Hong Kong) ---- */
html[lang="zh-TW"] {
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", "MingLiU", serif;
  --sans: "Pretendard Variable", Pretendard, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}
html[lang="zh-TW"] body { word-break: normal; line-break: strict; }

/* ---- Online consultation form (modal) ---- */
.consult-modal { align-items: flex-start; overflow-y: auto; }
.qr-modal__box.consult { max-width: 620px; margin: 40px auto; padding: 40px 36px 32px; text-align: left; }
.consult__title { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.consult__lead { margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.consult__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 24px; }
.consult label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.consult__full { margin-top: 14px; }
.consult input:not([type=checkbox]), .consult select, .consult textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink);
  background: #fff; border: 1px solid rgba(21,28,40,.18); border-radius: 6px; transition: border-color .2s, box-shadow .2s;
}
.consult textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.consult input:focus, .consult select:focus, .consult textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,150,90,.18); }
.consult .req { color: #c0392b; margin-left: 3px; }
.consult .consult__consent { flex-direction: row; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 14px; background: rgba(21,28,40,.04); border-radius: 6px; font-weight: 400; cursor: pointer; }
.consult__consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--gold); }
.consult__consent b { display: block; font-size: 13.5px; }
.consult__consent small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.consult__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consult__msg { min-height: 1em; margin: 14px 0 12px; font-size: 14px; line-height: 1.6; }
.consult__msg.is-error { color: #c0392b; }
.consult__msg.is-done { color: #1e7a46; font-weight: 600; }
.consult button[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 600px) {
  .qr-modal__box.consult { margin: 12px auto; padding: 32px 20px 24px; }
  .consult__grid { grid-template-columns: 1fr; }
}
