/* EDIT:COLORS 色・書体・最大幅はここに集約しています。 */
:root {
  color-scheme: light;
  --ink: #102b42;
  --ink-soft: #4b5d6a;
  --paper: #f8f5ed;
  --outside: #e9edf0;
  --rule: #a4acaf;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --card-width: 480px;
}
* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; padding: 32px 16px; color: var(--ink); background: var(--outside); font-family: var(--serif); font-size: 1rem; line-height: 1.7; }
a { color: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #257cba; outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 5; padding: 12px 16px; background: var(--paper); }
.skip-link:focus { top: 8px; }
.business-card { width: 100%; max-width: var(--card-width); margin-inline: auto; overflow: hidden; background: var(--paper); border: 1px solid #d5dbde; border-radius: 6px; box-shadow: 0 12px 46px #102b4217; }
.brand-scene { position: relative; min-height: 17.75rem; isolation: isolate; }
.sea-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -1; }
.brand-intro { padding: 34px 26px 0; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 3.125rem; height: 3.125rem; color: var(--paper); background: var(--ink); border-radius: 2px; font-size: 2.2rem; line-height: 1; }
.brand-logo { display: block; object-fit: cover; background: #fff; border: 0; border-radius: 8px; }
.brand-message { margin: 16px 0 0; font-size: .875rem; font-weight: 600; letter-spacing: .1em; line-height: 1.7; text-shadow: 0 0 7px var(--paper), 0 0 12px var(--paper); }
.brand-rule { display: block; width: 36px; height: 1px; margin: 15px 0; background: var(--ink); }
.brand-english { margin: 0; font-family: Georgia, serif; font-size: .75rem; letter-spacing: .16em; line-height: 1.55; }
.vertical-message { position: absolute; right: 27px; top: 29px; margin: 0; writing-mode: vertical-rl; color: #fff; font-size: 1rem; letter-spacing: .13em; line-height: 1.9; text-shadow: 0 1px 6px #071a30; }
.profile { position: relative; margin: 24px 24px 0; text-align: center; }
h1 { margin: 0; font-family: Georgia, "Yu Mincho", serif; font-weight: 400; font-size: 3.15rem; letter-spacing: .025em; line-height: 1.18; }
.name-rule { display: block; width: 30px; height: 1px; margin: 10px auto 8px; background: var(--ink-soft); }
.organization { margin: 0; font-family: Georgia, serif; font-size: 1.25rem; letter-spacing: .12em; line-height: 1.5; }
.specialty { margin: 2px 0 0; font-family: Georgia, serif; font-size: .875rem; letter-spacing: .12em; line-height: 1.65; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0 0 24px; padding: 0; }
.values li { padding: 0 7px; }
.values li + li { border-left: 1px solid #b3bbc0; }
.value-icon { display: block; width: 28px; height: 28px; margin: 0 auto 7px; }
.values p { margin: 0; font-size: .875rem; line-height: 1.55; }
.compact-break { display: none; }
.connections { display: grid; gap: 10px; margin: 0 24px; scroll-margin-top: 20px; }
.link-button { display: flex; align-items: center; min-width: 0; gap: 15px; padding: 10px 20px; border: 1px solid var(--ink); border-radius: 12px; text-decoration: none; font-size: 1.0625rem; line-height: 1.5; transition: background-color .18s, box-shadow .18s, transform .18s; }
.primary-link { min-height: 64px; margin-bottom: 2px; color: #fff; background: linear-gradient(105deg, #071b2c, #20445f); box-shadow: 0 3px 6px #102b4226; }
.x-icon { width: 30px; height: 30px; flex: 0 0 auto; margin-left: 20px; }
.primary-label { flex: 1; padding-left: 22px; border-left: 1px solid #ffffff50; font-size: 1.25rem; letter-spacing: .04em; }
.arrow { width: 10px; height: 18px; margin-left: auto; flex: 0 0 auto; }
.secondary-link { min-height: 53px; }
.link-icon { width: 25px; height: 25px; flex: 0 0 auto; }
.platform-icon { display: flex; justify-content: center; align-items: center; width: 25px; height: 25px; flex: 0 0 auto; color: var(--paper); background: var(--ink); font-family: Georgia, serif; font-size: 15px; font-weight: 700; line-height: 1; border-radius: 2px; }
.linkedin-icon { display: flex; justify-content: center; align-items: center; width: 25px; height: 25px; flex: 0 0 auto; color: var(--paper); background: var(--ink); font-family: Arial, sans-serif; font-size: 21px; font-weight: 700; line-height: 1; border-radius: 2px; }
.secondary-link[aria-disabled="true"] { color: var(--ink-soft); border-color: #8b979f; }
.secondary-link[aria-disabled="true"] .arrow { display: none; }
.link-status { margin-left: auto; font-family: var(--sans); font-size: .75rem; color: var(--ink-soft); white-space: nowrap; }
@media (hover: hover) {
  .primary-link:hover { background: #244d6b; transform: translateY(-1px); box-shadow: 0 5px 12px #102b4226; }
  .secondary-link[href]:hover { background: #e8edf0; }
  .qr-disclosure summary:hover, .copy-button:hover { background: #e8edf0; }
}
.sharing { position: relative; z-index: 1; margin: 25px 24px 0; text-align: center; }
.sharing-rule { display: block; width: 46px; height: 1px; margin: 0 auto 14px; background: var(--ink-soft); }
.no-app { margin: 0; font-size: .875rem; font-weight: 600; letter-spacing: .07em; }
.scan-description { margin: 6px 0 15px; color: var(--ink-soft); font-size: .875rem; line-height: 1.7; }
.qr-disclosure summary { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; min-width: 152px; min-height: 46px; padding: 8px 20px; margin-inline: auto; border: 1px solid #9aa9b2; border-radius: 6px; cursor: pointer; font-family: var(--sans); font-size: .875rem; list-style: none; }
.qr-disclosure summary::-webkit-details-marker { display: none; }
.qr-icon { width: 19px; height: 19px; }
.qr-open-label, .qr-disclosure[open] .qr-closed-label { display: none; }
.qr-disclosure[open] .qr-open-label { display: inline; }
.qr-panel { margin-top: 18px; padding: 20px 12px 12px; border: 1px solid #bdc9d0; border-radius: 8px; background: #fff; font-family: var(--sans); font-size: .875rem; }
.qr-name { margin: 0 0 8px; font-family: var(--serif); font-size: 1.3rem; }
.qr-name span { display: block; font-size: .875rem; }
.qr-image { display: block; width: min(100%, 296px); height: auto; margin-inline: auto; }
.qr-panel > p:not(.qr-name, .copy-status) { margin: 8px 0; }
.card-url { display: block; padding-block: 10px; overflow-wrap: anywhere; text-underline-offset: 4px; font-size: .875rem; }
.copy-button { display: block; min-height: 44px; margin: 8px auto 0; padding: 8px 20px; border: 1px solid var(--ink); border-radius: 5px; background: #fff; color: var(--ink); cursor: pointer; font-size: .875rem; }
.copy-status { margin: 8px 0 0; color: var(--ink-soft); font-size: .875rem; }
.copy-status:empty { display: none; }
.card-footer { position: relative; isolation: isolate; min-height: 155px; display: grid; align-items: center; padding: 32px 16px 36px; margin-top: 7px; text-align: center; }
.footer-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.footer-copy { padding: 12px 2px; text-shadow: 0 1px 5px var(--paper), 0 0 10px var(--paper); }
.footer-copy p { margin: 0 0 5px; font-family: Georgia, serif; font-size: .875rem; letter-spacing: .22em; }
.footer-copy small { display: block; font-family: Georgia, serif; font-size: .75rem; letter-spacing: .12em; line-height: 1.8; }
@media (max-width: 520px) {
  body { min-width: 0; padding: 0; background: var(--paper); }
  .business-card { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .brand-scene { min-height: clamp(9.75rem, 42vw, 11.25rem); }
  .brand-intro { padding-top: max(12px, env(safe-area-inset-top)); padding-left: 16px; }
  .brand-mark { width: 2.25rem; height: 2.25rem; }
  .brand-message { margin-top: 7px; font-size: .76rem; line-height: 1.4; }
  .brand-rule { margin-block: 7px; }
  .brand-english { font-size: .6rem; line-height: 1.3; letter-spacing: .1em; }
  .vertical-message { right: max(12px, env(safe-area-inset-right)); top: 12px; font-size: .7rem; line-height: 1.4; }
  .profile { margin: 10px 16px 0; }
  h1 { font-size: 2.15rem; }
  .name-rule { margin: 5px auto 4px; }
  .organization { font-size: .92rem; line-height: 1.25; }
  .specialty { letter-spacing: .07em; }
  .values { margin: 8px 0 10px; }
  .values li { padding-inline: 2px; }
  .value-icon { width: 19px; height: 19px; margin-bottom: 3px; }
  .values p { font-size: .66rem; line-height: 1.25; letter-spacing: -.01em; }
  .connections { gap: 6px; margin-inline: 16px; }
  .link-button { gap: 9px; padding: 6px 11px; border-radius: 9px; font-size: .86rem; }
  .primary-link { min-height: 48px; margin-bottom: 0; }
  .x-icon { width: 22px; height: 22px; margin-left: 5px; }
  .primary-label { padding-left: 10px; font-size: .98rem; }
  .secondary-link { min-height: 40px; }
  .link-icon, .platform-icon, .linkedin-icon { width: 20px; height: 20px; }
  .platform-icon { font-size: 13px; }
  .linkedin-icon { font-size: 16px; }
  .link-status { font-size: .65rem; }
  .sharing { margin: 10px 16px 0; }
  .sharing-rule { margin-bottom: 7px; }
  .no-app { font-size: .7rem; letter-spacing: 0; }
  .scan-description { margin: 2px 0 6px; font-size: .7rem; line-height: 1.4; }
  .qr-disclosure summary { min-width: 128px; min-height: 36px; padding: 5px 12px; gap: 6px; font-size: .7rem; }
  .qr-icon { width: 15px; height: 15px; }
  .card-footer { min-height: 66px; margin-top: auto; padding: 11px 12px max(12px, env(safe-area-inset-bottom)); }
  .footer-copy { padding: 4px; }
  .footer-copy p { margin-bottom: 2px; font-size: .68rem; }
  .footer-copy small { font-size: .58rem; line-height: 1.35; }
}
@media (max-width: 380px) {
  .brand-message { font-size: .78rem; letter-spacing: 0; }
  .brand-english { max-width: 130px; font-size: .62rem; letter-spacing: .05em; }
  .vertical-message { right: 11px; font-size: .68rem; line-height: 1.4; }
  .profile, .connections, .sharing { margin-left: 12px; margin-right: 12px; }
  h1 { font-size: 2rem; }
  .compact-break { display: initial; }
  .link-button { padding-inline: 10px; gap: 8px; }
  .primary-label { font-size: .95rem; padding-left: 8px; }
  .x-icon { margin-left: 3px; width: 20px; height: 20px; }
}
@media (max-width: 520px) and (max-height: 720px) {
  .brand-scene { min-height: 9.25rem; }
  .brand-intro { padding-top: max(10px, env(safe-area-inset-top)); }
  .profile { margin-top: 8px; }
  .values { margin-top: 6px; margin-bottom: 8px; }
  .sharing { margin-top: 8px; }
  .card-footer { min-height: 60px; padding-top: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .link-button { transition: none; }
}
