:root {
  color-scheme: light;
  --text-primary: #191f28;
  --text-body: #333d4b;
  --text-secondary: #4e5968;
  --text-tertiary: #8b95a1;
  --background: #ffffff;
  --surface-subtle: #f9fafb;
  --surface-pressed: #f2f4f6;
  --border-default: #e5e8eb;
  --brand: #0b328b;
  --brand-pressed: #08276d;
  --brand-weak: rgba(11, 50, 139, 0.08);
  --on-brand: #ffffff;
  /* Site spacing scale. List row insets follow the public TDS 8/12/16/24px
     vertical and 20/24px horizontal options. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 56px;
  --space-11: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--surface-pressed);
  color: var(--text-primary);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.card {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) var(--space-10);
  background: var(--background);
}
.site-header { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; }
.brand-symbol { display: block; flex: none; width: 46px; height: auto; }
.brand-name { color: var(--brand); font-size: 18px; font-weight: 750; letter-spacing: -0.045em; white-space: nowrap; }
.share-control { position: relative; flex: none; }
.share-button { min-height: 40px; padding: 0 var(--space-3); border: 1px solid var(--border-default); border-radius: 10px; background: var(--background); color: var(--text-body); font-size: 13px; font-weight: 700; cursor: pointer; }
.share-button:hover, .share-button:active, .share-button[aria-expanded="true"] { background: var(--surface-pressed); }
.share-menu { position: absolute; top: calc(100% + var(--space-2)); right: 0; z-index: 10; width: 172px; padding: var(--space-1); border: 1px solid var(--border-default); border-radius: 12px; background: var(--background); box-shadow: 0 12px 32px rgba(25,31,40,.12); }
.share-menu[hidden] { display: none; }
.share-menu button { display: block; width: 100%; min-height: 44px; padding: 0 var(--space-3); border: 0; border-radius: 8px; background: transparent; color: var(--text-primary); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.share-menu button:hover, .share-menu button:focus-visible { background: var(--surface-pressed); }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile { padding-top: var(--space-8); text-align: left; }
.identity-name { display: inline-flex; flex-direction: column; align-items: center; max-width: 100%; }
h1 { margin: 0; font-size: clamp(38px, 9vw, 46px); font-weight: 750; letter-spacing: -0.055em; line-height: 1.16; }
.english-name { margin: var(--space-1) 0 0; color: var(--text-tertiary); font-size: 13px; font-weight: 400; letter-spacing: 0.04em; line-height: 20px; white-space: nowrap; }
.role { margin: var(--space-4) 0 0; color: var(--text-secondary); font-size: 15px; font-weight: 650; letter-spacing: -0.02em; line-height: 24px; white-space: nowrap; }
.company-intro { margin-top: var(--space-7); }
.intro-heading { margin: 0; color: var(--text-body); font-size: 18px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.5; }
.intro-description { margin: var(--space-1) 0 0; color: var(--text-secondary); font-size: 15px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.6; }
.primary-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-7); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 52px; padding: 0 var(--space-3);
  border: 1px solid transparent; border-radius: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.button:active { transform: translateY(1px); }
.button svg { width: 18px; height: 18px; }
.button-primary { background: var(--brand); color: var(--on-brand); }
.button-primary:hover, .button-primary:active { background: var(--brand-pressed); }
.button-secondary { border-color: var(--border-default); background: var(--background); color: var(--text-primary); }
.button-secondary:hover, .button-secondary:active { background: var(--surface-pressed); }
.details-section { margin-top: var(--space-10); }
.details-section h2 { margin: 0 0 var(--space-4); font-size: 20px; font-weight: 700; letter-spacing: -0.035em; line-height: 28px; }
.details-list { border-top: 1px solid var(--border-default); }
.detail-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 80px; border-bottom: 1px solid var(--border-default); }
.detail-main { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: var(--space-4) 0; }
.detail-label { color: var(--text-secondary); font-size: 13px; font-weight: 500; line-height: 18px; }
.detail-value { display: block; overflow-wrap: anywhere; margin-top: var(--space-1); color: var(--text-primary); font-size: 17px; font-weight: 600; line-height: 24px; }
.detail-main a, .detail-main a:link, .detail-main a:visited { color: inherit; text-decoration: none !important; }
.detail-label, .detail-value { text-decoration: none !important; }
.copy-action { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 52px; min-height: 40px; padding: 0 var(--space-3); border: 0; border-radius: 9px; background: var(--surface-pressed); color: var(--text-body); font-size: 13px; font-weight: 700; cursor: pointer; }
.copy-action:hover, .copy-action:active { background: var(--brand-weak); color: var(--brand); }
.location-section { margin-top: var(--space-10); }
.location-panel { padding: var(--space-6); border-radius: 16px; background: var(--surface-subtle); }
.address-row { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
address { flex: 1; min-width: 0; overflow-x: auto; color: var(--text-body); font-size: 15px; font-style: normal; font-weight: 600; line-height: 1.55; letter-spacing: -0.025em; white-space: nowrap; scrollbar-width: none; }
address::-webkit-scrollbar { display: none; }
.map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: var(--space-4); }
.map-actions a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-1); min-height: 46px; padding: 0 var(--space-2); border: 1px solid var(--border-default); border-radius: 10px; background: var(--background); color: var(--text-body); font-size: 14px; font-weight: 650; }
.map-actions a:hover { border-color: var(--brand); color: var(--brand); }
.map-action-label { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.map-app-icon { display: block; flex: none; width: 20px; height: 20px; border-radius: 5px; object-fit: cover; }
.map-arrow { display: block; flex: none; width: 18px; height: 18px; }
.copy-address { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 60px; min-height: 40px; margin-left: auto; padding: 0 4px; border: 0; border-radius: 9px; background: var(--surface-pressed); color: var(--text-body); font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.copy-address:hover { background: var(--brand-weak); color: var(--brand); }
.card { padding-bottom: calc(var(--space-10) + 104px + env(safe-area-inset-bottom)); }
.header-share-control, .primary-actions { display: none; }
.floating-actions { position: fixed; left: 50%; bottom: calc(var(--space-3) + env(safe-area-inset-bottom)); z-index: 20; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: min(calc(100% - 24px), 520px); padding: 6px; transform: translateX(-50%); border: 1px solid var(--border-default); border-radius: 18px; background: var(--background); box-shadow: 0 12px 32px rgba(25,31,40,.16); }
.float-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; min-width: 0; min-height: 64px; padding: 4px 1px; border: 0; border-radius: 12px; background: transparent; color: var(--text-body); font-size: 12px; font-weight: 700; line-height: 16px; white-space: nowrap; cursor: pointer; }
.float-action:hover, .float-action:active { background: var(--surface-pressed); }
.float-action svg { width: 22px; height: 22px; }
.float-action-primary { background: var(--brand); color: var(--on-brand); }
.float-action-primary:hover, .float-action-primary:active { background: var(--brand-pressed); }
.float-share-control { width: 100%; min-width: 0; }
.float-share-control .share-menu { top: auto; right: 0; bottom: calc(100% + var(--space-3)); }
.toast { position: fixed; bottom: calc(var(--space-6) + env(safe-area-inset-bottom)); left: 50%; z-index: 5; max-width: calc(100vw - 32px); padding: var(--space-3) var(--space-4); border-radius: 12px; background: var(--text-primary); color: #fff; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transform: translate(-50%, var(--space-2)); transition: opacity .2s ease, transform .2s ease; white-space: nowrap; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast { bottom: calc(104px + env(safe-area-inset-bottom)); z-index: 30; }
@media (min-width: 640px) {
  .card { min-height: auto; margin: var(--space-8) auto; padding: var(--space-7) var(--space-8) calc(var(--space-11) + 104px + env(safe-area-inset-bottom)); border-radius: 24px; box-shadow: 0 14px 46px rgba(25,31,40,.06); }
  .profile { padding-top: var(--space-9); }
}
@media (max-width: 380px) {
  .card { padding-left: var(--space-5); padding-right: var(--space-5); }
  .location-panel { padding: var(--space-3); }
  .address-row { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .toast { transition: none; }
}
