/* Kept separate from the homepage: a closed/unsupported dialog hides itself. */
html[data-welcome-open="true"] { overflow: hidden; }
#cobs-welcome {
  --welcome-ready: 1;
  position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh;
  max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  overflow: auto; overscroll-behavior: contain;
  isolation: isolate; background: transparent; color: #18324c;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-synthesis: none; text-align: center; word-break: keep-all;
}
#cobs-welcome::before, #cobs-welcome::after {
  content: ''; position: fixed; top: 0; bottom: 0; width: 50.1%; z-index: -1;
  background: #f7f8f3; pointer-events: none;
}
#cobs-welcome::before { left: 0; background-image: radial-gradient(ellipse at 0 10%, #edf0ff 0, transparent 80%); }
#cobs-welcome::after { right: 0; background-image: radial-gradient(ellipse at 70% 70%, #e4eee6 0, transparent 85%); }
#cobs-welcome:not([open]) { display: none; }
#cobs-welcome[open] { display: flex; flex-direction: column; }
#cobs-welcome::backdrop { background: transparent; }
#cobs-welcome *, #cobs-welcome *::before, #cobs-welcome *::after { box-sizing: border-box; }
#cobs-welcome :is(p,h2) { margin: 0; }
#cobs-welcome button { cursor: pointer; font: inherit; letter-spacing: -.02em; }
#cobs-welcome button:focus-visible { outline: 3px solid #254de9; outline-offset: 5px; }
#cobs-welcome .welcome-top, #cobs-welcome .welcome-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex: 0 0 auto; width: 100%; padding: 28px max(32px, env(safe-area-inset-right));
}
#cobs-welcome .welcome-brand { font-size: 22px; font-weight: 850; letter-spacing: -.07em; }
#cobs-welcome .welcome-brand span { color: #254de9; }
#cobs-welcome .welcome-skip { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; padding: 10px 4px; border: 0; background: none; color: #465b6c; font-size: 14px; font-weight: 600; }
#cobs-welcome .welcome-skip:hover { color: #254de9; }
#cobs-welcome .welcome-content { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; padding: 0 24px 12px; }
#cobs-welcome .welcome-stage { position: relative; isolation: isolate; width: 352px; height: 336px; flex: 0 0 auto; }
#cobs-welcome .welcome-orbit { position: absolute; inset: 16px 14px 0; border-radius: 50%; background: #e8eddf; border: 1px solid #d6dfcf; transform: rotate(-14deg); }
#cobs-welcome .welcome-orbit::after { content: ''; position: absolute; inset: -12px -22px; border: 1px solid #d5ddcf; border-radius: 50%; transform: rotate(28deg); }
#cobs-welcome .welcome-character { display: block; position: relative; margin: 0 auto; width: 336px; height: 336px; padding: 0; border: 0; border-radius: 50%; background: transparent; mix-blend-mode: multiply; animation: welcome-arrive 850ms cubic-bezier(.2,.8,.2,1) both; transition: filter 180ms ease; }
#cobs-welcome .welcome-character:hover { filter: brightness(1.025); }
#cobs-welcome video { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
#cobs-welcome .welcome-hello { position: absolute; top: 12px; right: -26px; padding: 11px 16px; background: #fff; border: 1px solid #d6dfdc; border-radius: 18px 18px 18px 4px; color: #244b43; font-size: 14px; font-weight: 650; transform: rotate(6deg); animation: welcome-hello 700ms 180ms both; }
#cobs-welcome .welcome-prompt { position: absolute; left: -44px; bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid #d0dcff; border-radius: 20px 20px 4px 20px; background: #fff; color: #254de9; box-shadow: 0 8px 28px #254de913; font-size: 15px; font-weight: 650; pointer-events: none; animation: welcome-prompt 750ms 340ms both; }
#cobs-welcome .welcome-prompt span { font-size: 18px; }
#cobs-welcome .welcome-hello, #cobs-welcome .welcome-spark { pointer-events: none; }
#cobs-welcome .welcome-spark { position: absolute; color: #254de9; font-size: 32px; font-weight: 350; }
#cobs-welcome .welcome-spark-one { left: -26px; top: 72px; transform: rotate(13deg); }
#cobs-welcome .welcome-spark-two { right: -34px; bottom: 30px; font-size: 21px; color: #789372; }
#cobs-welcome .welcome-copy { margin-top: 26px; }
#cobs-welcome .welcome-eyebrow { margin-bottom: 14px; color: #254de9 !important; font-size: 13px; font-weight: 700; letter-spacing: .14em; }
#cobs-welcome #welcome-title { color: #18324c !important; font-size: clamp(36px, 4.3vw, 62px) !important; font-weight: 750 !important; line-height: 1.16 !important; letter-spacing: -.055em !important; }
#cobs-welcome #welcome-title > span { color: #254de9; }
#cobs-welcome #welcome-description { margin-top: 22px; color: #526574 !important; font-size: 17px; line-height: 1.6; }
#cobs-welcome .welcome-start { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 60px; margin-top: 30px; padding: 16px 23px 16px 30px; border: 1px solid #254de9; border-radius: 60px; background: #254de9; color: #fff !important; font-size: 17px; font-weight: 650; box-shadow: 0 8px 20px #254de91a; transition: transform 180ms ease, background 180ms ease; }
#cobs-welcome .welcome-start:hover { transform: translateY(-3px); background: #173dc9; }
#cobs-welcome .welcome-arrow { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #ffffff60; border-radius: 50%; font-size: 18px; }
#cobs-welcome .welcome-response { height: 28px; margin-top: 10px; color: #375343 !important; font-size: 14px; line-height: 1.6; }
#cobs-welcome .welcome-bottom { color: #718077; font-size: 11px; letter-spacing: .08em; padding-top: 16px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
#cobs-welcome.is-entering { overflow: hidden; pointer-events: none; }
#cobs-welcome.is-entering::before { animation: welcome-open-left 820ms 160ms cubic-bezier(.65,0,.2,1) both; }
#cobs-welcome.is-entering::after { animation: welcome-open-right 820ms 160ms cubic-bezier(.65,0,.2,1) both; }
#cobs-welcome .welcome-content, #cobs-welcome .welcome-bottom, #cobs-welcome .welcome-brand { transition: opacity 240ms ease, translate 240ms ease; }
#cobs-welcome.is-entering :is(.welcome-content,.welcome-bottom,.welcome-brand) { opacity: 0; translate: 0 -12px; }
#cobs-welcome.is-entering .welcome-skip { pointer-events: auto; }
#cobs-welcome .welcome-flyer { position: fixed; z-index: 3; overflow: hidden; border-radius: 50%; background: #fff; transform-origin: top left; pointer-events: none; will-change: transform; }
#cobs-welcome .welcome-flyer video { border-radius: inherit; }
#cobs-consultation .cc-mascot[data-welcome-landing="true"] { visibility: hidden; }
@keyframes welcome-arrive { from { opacity: 0; transform: translateY(24px) rotate(-5deg) scale(.93); } to { opacity: 1; transform: none; } }
@keyframes welcome-hello { from { opacity: 0; transform: translateY(7px) rotate(-3deg); } to { opacity: 1; transform: rotate(6deg); } }
@keyframes welcome-prompt { from { opacity: 0; transform: translateY(9px) rotate(2deg); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes welcome-open-left { to { transform: translateX(-102%); } }
@keyframes welcome-open-right { to { transform: translateX(102%); } }
@media (min-width: 900px) and (max-height: 900px) {
  #cobs-welcome .welcome-content { flex-direction: row; gap: clamp(36px, 6vw, 100px); padding: 16px 50px 30px; }
  #cobs-welcome .welcome-stage { width: 360px; height: 360px; }
  #cobs-welcome .welcome-character { width: 360px; height: 360px; }
  #cobs-welcome .welcome-copy { margin-top: 0; text-align: left; }
  #cobs-welcome #welcome-title { font-size: clamp(36px, 3.9vw, 60px) !important; }
}
@media (max-width: 600px) {
  #cobs-welcome .welcome-top { padding: max(16px, env(safe-area-inset-top)) 22px 14px; }
  #cobs-welcome .welcome-brand { font-size: 20px; }
  #cobs-welcome .welcome-skip { font-size: 12px; gap: 8px; }
  #cobs-welcome .welcome-content { padding: 10px 16px 0; }
  #cobs-welcome .welcome-stage { width: 268px; height: 268px; }
  #cobs-welcome .welcome-character { width: 268px; height: 268px; }
  #cobs-welcome .welcome-hello { font-size: 12px; padding: 9px 12px; right: -12px; }
  #cobs-welcome .welcome-prompt { left: -10px; bottom: 8px; padding: 10px 13px; gap: 9px; font-size: 12px; }
  #cobs-welcome .welcome-spark-one { left: -12px; }
  #cobs-welcome .welcome-spark-two { right: -12px; }
  #cobs-welcome .welcome-copy { margin-top: 26px; }
  #cobs-welcome #welcome-title { font-size: clamp(30px, 7.6vw, 42px) !important; line-height: 1.22 !important; }
  #cobs-welcome .welcome-eyebrow { font-size: 11px; margin-bottom: 12px; }
  #cobs-welcome #welcome-description { margin-top: 18px; font-size: 14px; }
  #cobs-welcome .welcome-start { margin-top: 26px; font-size: 15px; min-height: 56px; padding: 12px 20px 12px 25px; }
  #cobs-welcome .welcome-bottom { padding-right: 22px; padding-left: 22px; font-size: 10px; }
}
@media (max-width: 600px) and (max-height: 650px) {
  #cobs-welcome .welcome-stage, #cobs-welcome .welcome-character { width: 200px; height: 200px; }
  #cobs-welcome .welcome-copy { margin-top: 18px; }
  #cobs-welcome #welcome-description { margin-top: 12px; }
  #cobs-welcome .welcome-start { margin-top: 20px; }
  #cobs-welcome .welcome-response { height: 24px; margin-top: 6px; }
  #cobs-welcome .welcome-top { padding-bottom: 4px; }
  #cobs-welcome .welcome-bottom { padding-top: 0; padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #cobs-welcome, #cobs-welcome *, #cobs-welcome *::after { animation: none !important; transition: none !important; }
  #cobs-welcome .welcome-start:hover { transform: none; }
}
@media print { #cobs-welcome { display: none !important; } html[data-welcome-open="true"] { overflow: visible; } }
