:root {
  --ink: #0a0a0a;
  --ink-soft: #6b6b6b;
  --rule: #ededed;
  --rule-soft: #f0f0f0;
  --paper: #ffffff;
  --brand-sand: #F1CFA2;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #0a0a0a;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro JP", "Hiragino Sans", "ヒラギノ角ゴシック", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s ease, opacity .25s ease, border-color .25s ease;
}

a:hover {
  opacity: .55;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 28px 120px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s cubic-bezier(.16, 1, .3, 1), transform .55s cubic-bezier(.16, 1, .3, 1);
}

body:not(.is-loading) .shell {
  opacity: 1;
  transform: translateY(0);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 0 48px;
  border-bottom: 1px solid var(--ink);
}

.lang {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.lang span[aria-current="true"] {
  color: #0a0a0a;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}
.lang-switch button {
  font: inherit;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #b0b0b0;
  background: transparent;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.lang-switch button[aria-current="true"] {
  color: #0a0a0a;
  border-bottom-color: #0a0a0a;
}
.lang-switch button:hover {
  color: #0a0a0a;
}
.lang-divider {
  font-size: 10px;
  color: #d8d8d8;
}

.hero {
  padding: 88px 0 72px;
}

.hero[data-no-portrait] {
  padding-top: 56px;
}

.portrait {
  width: 112px;
  height: 112px;
  background: #0a0a0a;
  color: var(--brand-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  letter-spacing: .14em;
  font-weight: 200;
  margin-bottom: 48px;
  overflow: hidden;
}

.portrait[hidden] {
  display: none;
}

.portrait[data-fallback="true"] {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  background: transparent;
  margin: 12px 0 56px;
  padding-bottom: 18px;
  border-bottom: 1px solid #c0c0c0;
  align-items: initial;
  justify-content: initial;
}

.portrait[data-fallback="true"] img {
  height: 30px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  filter: brightness(0);
}

@media (max-width: 480px) {
  .portrait[data-fallback="true"] {
    margin: 8px 0 44px;
    padding-bottom: 14px;
    max-width: 300px;
  }
  .portrait[data-fallback="true"] img {
    height: 26px;
    max-width: 180px;
  }
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(8px);
}

body:not(.is-loading) .name {
  animation: rise .42s cubic-bezier(.16, 1, .3, 1) .04s forwards;
}

.name.is-cjk {
  margin-left: -0.06em;
  letter-spacing: -0.04em;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (prefers-reduced-motion: reduce) {
  .name, .name-roman, .role {
    animation-duration: .01ms;
    opacity: 1;
    transform: none;
  }
}

.name-roman {
  font-size: 16px;
  font-weight: 400;
  color: #6b6b6b;
  margin: 0 0 36px;
  letter-spacing: .06em;
  opacity: 0;
  transform: translateY(6px);
}

body:not(.is-loading) .name-roman {
  animation: rise .42s cubic-bezier(.16, 1, .3, 1) .12s forwards;
}

.role {
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
  opacity: 0;
  transform: translateY(6px);
}

body:not(.is-loading) .role {
  animation: rise .42s cubic-bezier(.16, 1, .3, 1) .2s forwards;
}

.credentials {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(6px);
}

body:not(.is-loading) .credentials {
  animation: rise .42s cubic-bezier(.16, 1, .3, 1) .28s forwards;
}

.credentials[hidden] {
  display: none;
}

.cred-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  font-size: 17px;
}

.cred-label {
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  flex: 0 0 64px;
  padding-top: 2px;
}

.cred-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  color: var(--ink);
  letter-spacing: .02em;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
}

.cred-list li {
  display: inline-flex;
  align-items: baseline;
}

.cred-list li:not(:first-child)::before {
  content: "·";
  margin: 0 12px;
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  .cred-row { gap: 14px; font-size: 16px; }
  .cred-label { flex: 0 0 56px; font-size: 11px; }
  .cred-list { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .credentials {
    animation-duration: .01ms;
    opacity: 1;
    transform: none;
  }
}


.section {
  padding: 60px 0;
  border-top: 1px solid var(--rule);
}

.section:last-of-type {
  padding-bottom: 32px;
}

.section-label {
  font-size: 12px;
  letter-spacing: .26em;
  font-weight: 500;
  text-transform: uppercase;
  color: #0a0a0a;
  margin: 0 0 32px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.section-num {
  color: #c0c0c0;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: .2em;
  font-size: 11px;
}

.kv {
  display: block;
  padding: 0;
  margin: 0;
}

.kv dt {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}

.kv-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.kv-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.kv dt:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.kv dd {
  margin: 10px 0 22px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.5;
}

.kv dd:last-of-type {
  margin-bottom: 0;
}

.kv dd a {
  border-bottom: 1px solid transparent;
}

.kv dd a::after {
  content: " ↗";
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  letter-spacing: 0;
  color: var(--ink-soft);
  vertical-align: 1px;
  transition: color .25s ease;
}

.kv dd .kv-hint {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: .03em;
  line-height: 1.55;
}

.kv-multi {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kv-multi-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kv-multi-label {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}

.kv-multi-value {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
  align-self: flex-start;
}

.kv-multi-value::after {
  content: " ↗";
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  letter-spacing: 0;
  color: var(--ink-soft);
  vertical-align: 1px;
  transition: color .25s ease;
}

.kv-multi-value:hover {
  border-bottom-color: var(--ink);
  opacity: 1;
}

.kv-multi-value:hover::after {
  color: var(--ink);
}

.copy-id {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, opacity .25s ease;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.copy-id:hover {
  border-bottom-color: var(--ink);
  opacity: 1;
}

.copy-id-icon {
  display: inline-flex;
  width: 12px;
  height: 12px;
  color: var(--ink-soft);
  transition: color .25s ease;
  align-self: center;
}

.copy-id-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.copy-id:hover .copy-id-icon {
  color: var(--ink);
}

.kv dd a:hover {
  border-bottom-color: var(--ink);
  opacity: 1;
}

.kv dd a:hover::after {
  color: var(--ink);
}

.clinics {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clinic-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 22px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}

.clinic-card:first-child {
  border-top: 0;
  padding-top: 4px;
}

.clinic-card-num {
  font-size: 28px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: #c8c8c8;
  letter-spacing: 0;
  line-height: 1;
  padding-top: 2px;
}

.clinic-card-body {
  min-width: 0;
}

.clinic-card-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.clinic-card-key {
  font-size: 13px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}

.clinic-card-name {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: .02em;
}

.clinic-card-addr {
  font-style: normal;
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
  white-space: pre-line;
  color: var(--ink);
}

.clinic-card-links {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 0;
}

.clinic-card-links li {
  border-top: 1px solid #f5f5f5;
}

.clinic-card-links li:first-child {
  border-top: 1px solid var(--rule);
}

.clinic-card-links a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 14px 0;
  align-items: baseline;
}

.clinic-card-links a:hover {
  opacity: 1;
}

.clinic-card-links a:hover .link-value {
  border-bottom-color: var(--ink);
}

.clinic-card-links .link-label {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}

.clinic-card-links .link-value {
  font-size: 15px;
  letter-spacing: .02em;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
  padding-bottom: 1px;
}

@media (max-width: 480px) {
  .clinic-card { grid-template-columns: 36px 1fr; gap: 0 18px; padding: 36px 0; }
  .clinic-card-num { font-size: 22px; }
  .clinic-card-links a { grid-template-columns: 56px 1fr; }
}

.actions {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border: 1px solid #0a0a0a;
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 500;
  background: #ffffff;
  color: #0a0a0a;
  width: 100%;
  text-align: left;
  transition: background .25s ease, color .25s ease;
}

.btn:hover {
  background: #0a0a0a;
  color: #ffffff;
  opacity: 1;
}

.btn--primary {
  background: #0a0a0a;
  color: #ffffff;
}

.btn--primary:hover {
  background: #ffffff;
  color: #0a0a0a;
}

.btn .arrow {
  font-size: 16px;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn .arrow--qr svg {
  width: 18px;
  height: 18px;
  display: block;
}

.btn--primary .arrow {
  color: var(--brand-sand);
  transition: color .25s ease;
}

.btn--primary:hover .arrow {
  color: #0a0a0a;
}

.brand-mark {
  margin: 96px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  clip-path: inset(0 100% 0 0);
  animation: brand-mark-reveal 1.1s cubic-bezier(.7, 0, .2, 1) forwards;
  animation-delay: .55s;
}

.brand-mark img {
  height: 100%;
  width: auto;
  filter: brightness(0);
}

@keyframes brand-mark-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark { animation-duration: .01ms; clip-path: inset(0 0 0 0); }
}

.clinic-card-map {
  margin-top: 18px;
  height: 220px;
  border: 1px solid var(--rule);
  overflow: hidden;
  filter: grayscale(0.35) contrast(1.02);
  background: #f5f5f5;
}

.clinic-card-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 480px) {
  .clinic-card-map { height: 180px; }
}

.fade-in {
  opacity: 0;
  animation: fade-in .6s ease forwards;
}

.fade-in.delay-1 { animation-delay: .08s; }
.fade-in.delay-2 { animation-delay: .16s; }
.fade-in.delay-3 { animation-delay: .24s; }
.fade-in.delay-4 { animation-delay: .32s; }

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.qr-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  margin: auto;
  max-width: 92vw;
}

.qr-dialog::backdrop {
  background: rgba(10, 10, 10, .82);
  backdrop-filter: blur(4px);
}

.qr-dialog-body {
  position: relative;
  background: #ffffff;
  padding: 40px 32px 32px;
  width: 320px;
  max-width: 92vw;
  text-align: center;
}

.qr-dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}

.qr-dialog-mark {
  width: 240px;
  height: 240px;
  margin: 0 auto 22px;
  display: block;
}

.qr-dialog-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-dialog-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  margin: 0 0 6px;
  color: var(--ink);
}

.qr-dialog-url {
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-soft);
  margin: 0;
  word-break: break-all;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  background: #0a0a0a;
  color: #ffffff;
  padding: 14px 24px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.toast.is-shown {
  opacity: 1;
}

@media (max-width: 480px) {
  .shell { padding: 28px 22px 100px; }
  .name { font-size: 36px; }
  .name-roman { font-size: 15px; margin-bottom: 28px; }
  .role { font-size: 12px; letter-spacing: .2em; }
  .section { padding: 48px 0; }
  .section-label { font-size: 11px; margin-bottom: 24px; }
  .kv dd { font-size: 16px; }
  .clinic-card-addr { font-size: 15px; }
  .clinic-card-links .link-value { font-size: 14px; }
  .btn { padding: 20px 22px; font-size: 12px; }
  .brand-mark { height: 20px; margin-top: 80px; }
  .portrait { width: 96px; height: 96px; font-size: 24px; margin-bottom: 36px; }
  .hero { padding: 64px 0 56px; }
  .hero[data-no-portrait] { padding-top: 40px; }
}

@media print {
  .actions, .toast, .brand-mark { display: none; }
  .section { break-inside: avoid; }
  body { font-size: 11pt; }
}
