:root {
  color-scheme: only light;
  --primary: #047857;
  --primary-hover: #036149;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #fafcfb;
  --text: #213b30;
  --text-muted: #60746a;
  --border: #e4ece7;
  --kiosk-bg: #f2faf5;
  --kiosk-ink: #397553;
  --platform-bg: #f4f9f7;
  --platform-ink: #496f5e;
  --backdrop: #294c3b66;
  --logo-bg: #ffffff;
  --selection: #d1fae5;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --text-display: 2.75rem;
  --text-heading: 1.5625rem;
  --text-subheading: 1.25rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-utility: 0.8125rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --radius-sm: 0.5rem;
  --radius-card: 1.25rem;
  --header-max: 75rem;
  --content-max: 65rem;
  --dialog-max: 55rem;
  --target: 2.75rem;
  --motion: 180ms ease-out;
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--border) var(--bg); }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--text-body); line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--primary); outline-offset: var(--space-1); }
::selection { background: var(--selection); color: #172d26; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: var(--space-4); left: var(--space-4); z-index: 5; padding: var(--space-3) var(--space-6); background: var(--surface); color: var(--primary); border-radius: var(--radius-sm); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.icon { display: block; flex-shrink: 0; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { max-width: var(--header-max); min-height: var(--space-20); padding: var(--space-4) var(--space-8); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.brand { display: flex; align-items: center; gap: var(--space-5); min-height: var(--target); min-width: 0; text-decoration: none; }
.brand-logo { display: flex; align-items: center; padding: var(--space-1); background: var(--logo-bg); border-radius: var(--radius-sm); }
.brand-logo img { display: block; width: 7rem; height: auto; }
.brand-divider { flex-shrink: 0; width: 1px; height: var(--space-5); background: var(--border); }
.brand-label { min-width: 0; color: var(--text-muted); font-size: var(--text-small); font-weight: 500; }
.homepage-link { min-height: var(--target); min-width: 0; display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-small); font-weight: 500; text-decoration: none; }
.homepage-link > span { min-width: 0; }
.homepage-link:hover { color: var(--primary); text-decoration: underline; }
.main { width: min(100% - var(--space-16), var(--content-max)); margin-inline: auto; padding-block: var(--space-16) var(--space-12); flex: 1; }
.main:focus { outline: none; }
.intro { text-align: center; margin-bottom: var(--space-10); }
h1 { margin: 0; font-size: var(--text-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.3; }
.intro p { max-width: 65ch; margin: var(--space-4) auto 0; font-size: var(--text-body); color: var(--text-muted); }
.mobile-break { display: none; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(25rem, 100%), 1fr)); gap: var(--space-6); }
.guide-card { position: relative; min-width: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; text-align: left; display: flex; flex-direction: column; transition: transform var(--motion), background-color var(--motion); }
.guide-card:has(:focus-visible) { outline: 3px solid var(--primary); outline-offset: var(--space-1); }
.guide-card:hover { transform: translateY(-3px); background: var(--surface-muted); }
.guide-card:active { transform: translateY(0); }
.guide-visual { aspect-ratio: 16 / 6; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); }
.visual-kiosk { --product-mask: url('tablet.svg'); background: var(--kiosk-bg); color: var(--kiosk-ink); }
.visual-platform { --product-mask: url('monitor.svg'); background: var(--platform-bg); color: var(--platform-ink); }
.product-icon { display: block; width: 4.5rem; height: 4.5rem; background-color: currentColor; mask: var(--product-mask) center / contain no-repeat; }
.visual-label { font-size: var(--text-utility); font-weight: 500; }
.guide-content { padding: var(--space-8); display: flex; flex: 1; flex-direction: column; }
.guide-title { display: block; margin: 0; font-size: var(--text-heading); letter-spacing: -0.035em; font-weight: 700; line-height: 1.4; }
.guide-description { display: block; margin: var(--space-3) 0 0; color: var(--text-muted); font-size: var(--text-body); }
.guide-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }
.video-status { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-utility); color: var(--text-muted); }
.guide-action { display: inline-flex; align-items: center; min-height: var(--target); padding: 0; background: transparent; border: 0; gap: var(--space-2); font-size: var(--text-small); color: var(--primary); font-weight: 600; }
.guide-action::after { content: ''; position: absolute; inset: 0; }
.guide-action:focus-visible { outline: none; }
.guide-action .icon { transition: transform var(--motion); }
.guide-card:hover .guide-action .icon { transform: translateX(3px); }
.support { margin-top: var(--space-10); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--space-2) var(--space-3); color: var(--text-muted); font-size: var(--text-small); }
.support p { max-width: 65ch; margin: 0; }
.support a { min-height: var(--target); display: inline-flex; align-items: center; gap: var(--space-1); color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.support a:hover { color: var(--primary); }
.site-footer { border-top: 1px solid var(--border); background: var(--surface-muted); color: var(--text-muted); font-size: var(--text-utility); }
.footer-inner { max-width: var(--header-max); margin: auto; padding: var(--space-12) var(--space-8) var(--space-6); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.7fr) minmax(0, 0.95fr) minmax(0, 1.7fr); gap: var(--space-8); }
.footer-grid > * { min-width: 0; }
.footer-brand-link { display: inline-flex; align-items: center; min-height: var(--target); }
.footer-brand-link img { display: block; width: 8.5rem; height: auto; }
.footer-tagline { margin: var(--space-4) 0 0; font-size: var(--text-small); }
.footer-heading { margin: 0 0 var(--space-4); color: var(--text); font-size: var(--text-subheading); font-weight: 600; line-height: 1.4; letter-spacing: -0.025em; }
.footer-links, .company-details { list-style: none; margin: 0; padding: 0; }
.footer-links { font-size: var(--text-small); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.site-footer a:active { color: var(--primary-hover); }
.footer-links a, .footer-contact a, .footer-legal a, .footer-download { display: inline-flex; align-items: center; min-height: var(--target); }
.footer-contact dl, .footer-contact dd { margin: 0; }
.footer-contact dl > div + div { margin-top: var(--space-4); }
.footer-contact dt { font-size: var(--text-utility); }
.footer-contact a { color: var(--text); font-size: var(--text-body); font-weight: 600; font-variant-numeric: tabular-nums; }
.company-details { line-height: 1.8; }
.company-details strong { font-weight: 600; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); margin-top: var(--space-3); }
.footer-legal a:not(:first-child) { color: var(--text); font-weight: 600; }
.footer-legal a:hover { color: var(--primary); }
.footer-download { gap: var(--space-2); margin-top: var(--space-2); color: var(--text); font-size: var(--text-small); font-weight: 500; }
.footer-disclaimer { margin: var(--space-4) 0 0; max-width: 72ch; line-height: 1.7; }
.footer-copyright { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--border); text-align: center; }
.video-dialog { width: min(calc(100% - var(--space-10)), var(--dialog-max)); max-height: calc(100dvh - var(--space-10)); margin: auto; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-card); color: var(--text); background: var(--surface); }
.video-dialog::backdrop { background: var(--backdrop); }
.dialog-header { padding: var(--space-6) var(--space-8); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.dialog-header h2 { font-size: var(--text-heading); line-height: 1.4; letter-spacing: -0.035em; margin: 0; }
.close-button { flex-shrink: 0; width: var(--target); height: var(--target); display: grid; place-items: center; background: transparent; border: 0; border-radius: var(--radius-sm); }
.close-button:hover, .close-button:active { background: var(--surface-muted); }
.video-list { display: flex; flex-direction: column; gap: var(--space-8); padding: 0 var(--space-8); }
.video-intro { margin: 0; color: var(--text-muted); font-size: var(--text-small); }
.video-item h3 { margin: 0; font-size: var(--text-subheading); line-height: 1.4; }
.video-item > p { margin: var(--space-2) 0 var(--space-4); color: var(--text-muted); font-size: var(--text-small); }
.video-item .video-stage { overflow: hidden; border-radius: var(--radius-sm); }
.video-steps { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--text-small); }
.video-steps summary { min-height: var(--target); display: flex; align-items: center; color: var(--primary); cursor: pointer; font-weight: 600; }
.video-steps summary::before { content: '›'; margin-right: var(--space-2); font-size: var(--text-subheading); }
.video-steps[open] summary::before { transform: rotate(90deg); }
.video-steps summary:focus-visible { outline: 3px solid var(--primary); outline-offset: var(--space-1); }
.video-steps ol { margin: 0; padding-left: var(--space-6); }
.video-steps li + li { margin-top: var(--space-2); }
.video-stage { background: var(--surface-muted); aspect-ratio: 16 / 9; display: grid; align-items: center; }
.video-empty, .video-error { padding: var(--space-10); text-align: center; }
.empty-icon { display: block; margin: 0 auto var(--space-5); opacity: 0.65; }
.video-stage h3 { margin: 0; font-size: var(--text-subheading); line-height: 1.5; }
.video-stage p { margin: var(--space-3) auto 0; max-width: 36rem; font-size: var(--text-small); color: var(--text-muted); }
.video-stage video { display: block; width: 100%; max-height: 65dvh; background: #000000; }
.dialog-help { margin: 0; padding: var(--space-5) var(--space-8); font-size: var(--text-small); color: var(--text-muted); display: flex; align-items: center; gap: var(--space-3); }
.dialog-help a { min-height: var(--target); display: inline-flex; align-items: center; color: var(--primary); }
.retry-button { min-height: var(--target); padding: var(--space-2) var(--space-5); margin-top: var(--space-6); border: 0; border-radius: var(--radius-sm); background: var(--primary); color: var(--bg); }
.retry-button:hover { background: var(--primary-hover); }
.retry-button:active { opacity: 0.85; }
.noscript-note { padding: var(--space-6); text-align: center; }

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

@media (max-width: 640px) {
  :root { --text-display: 2rem; --text-heading: 1.375rem; }
  .header-inner { min-height: 4.5rem; padding: var(--space-3) var(--space-5); gap: var(--space-2); }
  .brand { gap: var(--space-3); }
  .brand-logo img { width: 5rem; }
  .brand-label { font-size: var(--text-utility); }
  .homepage-link { font-size: var(--text-utility); gap: var(--space-1); }
  .main { width: calc(100% - var(--space-10)); padding-top: var(--space-12); padding-bottom: var(--space-8); }
  .intro { margin-bottom: var(--space-8); }
  .mobile-break { display: initial; }
  .guide-grid { gap: var(--space-5); }
  .guide-visual { aspect-ratio: 16 / 7; gap: var(--space-2); }
  .product-icon { width: var(--space-16); height: var(--space-16); }
  .guide-content { padding: var(--space-6); }
  .guide-description { font-size: var(--text-small); }
  .guide-bottom { margin-top: var(--space-6); }
  .support { gap: var(--space-1) var(--space-2); margin-top: var(--space-8); }
  .support > .icon { display: none; }
  .footer-inner { padding: var(--space-8) var(--space-5) max(var(--space-6), env(safe-area-inset-bottom)); }
  .footer-grid { gap: var(--space-8) var(--space-6); }
  .footer-brand, .footer-company { grid-column: 1 / -1; }
  .footer-heading { font-size: var(--text-subheading); }
  .footer-contact a { font-size: var(--text-small); }
  .footer-copyright { margin-top: var(--space-8); text-align: left; }
  .dialog-header { padding: var(--space-4); gap: var(--space-2); }
  .dialog-header h2 { font-size: var(--text-subheading); }
  .video-list { padding: 0 var(--space-5); gap: var(--space-6); }
  .video-empty, .video-error { padding: var(--space-8) var(--space-5); }
  .video-stage h3 { font-size: var(--text-body); }
  .dialog-help { padding: var(--space-3) var(--space-5); }
}

@media (max-width: 360px) { .brand-label, .brand-divider { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .guide-card, .guide-action .icon { transition: none; }
  .guide-card:hover, .guide-card:active, .guide-card:hover .guide-action .icon { transform: none; }
}
