:root {
  color-scheme: light;
  font-family: Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #191919;
  background: #f7f8fa;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  --blue: #1877f2;
  --muted: #606873;
  --border: #dce0e6;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: #1264cd; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
:focus-visible { outline: 3px solid #81b6fa; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 16px; padding: 12px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: #fff; border-bottom: 1px solid #e7e9ed; }
.header-inner { max-width: 1120px; min-height: 78px; padding: 0 32px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { font-size: 30px; font-weight: 750; letter-spacing: -1.5px; color: #111; text-decoration: none; }
.back-link { font-size: 13px; color: #58616c; text-decoration: none; }
.back-link span { margin-left: 6px; }
.auth-main { max-width: 606px; margin: 0 auto; padding: 52px 24px 32px; }
.auth-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 36px; box-shadow: 0 5px 22px #17233304; }
.eyebrow { margin: 0 0 13px; color: #79818d; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
h1 { margin: 0; font-size: 26px; letter-spacing: -.035em; line-height: 1.45; }
.intro { margin: 12px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.auth-form { display: grid; gap: 21px; }
.field { min-width: 0; }
.field label, .kind-options legend { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; line-height: 1.55; }
.label-note { margin-left: 7px; color: #858b94; font-size: 11px; font-weight: 400; }
input:not([type="radio"]):not([type="checkbox"]) { display: block; width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid #cdd2d9; border-radius: 6px; background: white; color: #191919; font-size: 16px; line-height: 1.4; transition: border-color .15s, box-shadow .15s; }
input:not([type="radio"]):not([type="checkbox"]):focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #1877f21a; }
input::placeholder { color: #949ba5; opacity: 1; }
input[readonly] { color: #4c5663; background: #f5f7fa; }
input[aria-invalid="true"] { border-color: #c73838; }
.field-hint, .field-error { margin: 7px 0 0; font-size: 12px; line-height: 1.75; }
.field-hint { color: #737c88; }
.field-error { color: #b82828; }
.primary-button, .secondary-button { min-height: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1.45; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.primary-button { color: white; background: var(--blue); }
.primary-button:hover:not(:disabled) { background: #086be8; }
.secondary-button { color: #3f4a58; background: white; border-color: #cdd2d9; }
.secondary-button:hover:not(:disabled) { background: #f7f9fc; }
.full-width { width: 100%; }
.form-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 26px 0 0; padding-top: 23px; border-top: 1px solid #e9ebef; font-size: 13px; line-height: 1.7; color: var(--muted); }
.form-link-row { text-align: right; font-size: 12px; margin-top: -5px; }
.kind-options { margin: 0; padding: 0; border: 0; min-width: 0; }
.kind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kind-choice { display: flex; gap: 9px; align-items: center; padding: 13px 14px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 14px; line-height: 1.5; }
.kind-choice:has(input:checked) { border-color: var(--blue); background: #f2f7ff; color: #1264cd; }
.kind-choice input { margin: 0; width: 16px; height: 16px; accent-color: var(--blue); flex-shrink: 0; }
.corporate-fields { display: grid; gap: 19px; }
.lookup-row { display: flex; align-items: flex-start; gap: 9px; }
.lookup-row input { min-width: 0; flex: 1; }
.lookup-row button { flex-shrink: 0; padding-inline: 14px; }
.lookup-result { border: 1px solid #cfe5d5; background: #f4fbf6; border-radius: 6px; padding: 13px; font-size: 12px; line-height: 1.75; color: #325a3c; }
.lookup-result p { margin: 0; overflow-wrap: anywhere; }
.lookup-result p + p { margin-top: 4px; }
.lookup-result strong { display: block; margin-bottom: 5px; font-weight: 600; }
.source-note { margin: 0; padding: 12px 0 0; border-top: 1px solid #eceef2; color: #7b838d; font-size: 10px; line-height: 1.85; overflow-wrap: anywhere; }
.source-note a { color: #67717e; }
.notice { margin: 0; padding: 13px 15px; border: 1px solid #d7e6fa; background: #f3f8ff; border-radius: 6px; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.notice-error { border-color: #f0d1d1; background: #fff6f6; color: #ae2e2e; }
.notice-success { border-color: #cfe5d5; background: #f4fbf6; color: #325a3c; }
.status-block { display: grid; gap: 20px; }
.status-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 3px; border-radius: 50%; background: #edf5ff; color: var(--blue); font-size: 23px; }
.pending-address { display: block; font-weight: 600; overflow-wrap: anywhere; }
.muted-copy { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.85; }
.resend-details { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e9ebef; }
.resend-details summary { color: #606873; cursor: pointer; font-size: 12px; line-height: 1.8; }
.resend-details .auth-form { margin-top: 18px; gap: 15px; }
.page-footer { margin: 24px 0 0; text-align: center; font-size: 11px; color: #8b929c; letter-spacing: .045em; }
.line-entry { margin-bottom: 22px; }
.line-entry .field-hint { text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--muted); font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
#line-entry-notice, #line-settings-error { margin-bottom: 20px; }
.field .check-label { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 13px; font-weight: 400; line-height: 1.85; cursor: pointer; }
.check-label input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); cursor: pointer; }
.check-label input:disabled { cursor: default; opacity: .45; }
.check-label input:disabled + span { color: #7d8590; }
.line-consent { display: grid; gap: 15px; padding: 18px; border: 1px solid var(--border); border-radius: 7px; background: #f6f9fe; }
.line-consent .field-hint { margin: 0; }
.line-settings-section { display: grid; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.line-settings-section h2 { margin: 0; font-size: 16px; line-height: 1.6; }
.line-status-list { margin: 0; padding: 0 16px; border: 1px solid var(--border); border-radius: 7px; background: #f6f9fe; font-size: 13px; line-height: 1.8; }
.line-status-list > div { display: grid; grid-template-columns: 108px 1fr; gap: 14px; padding: 14px 0; }
.line-status-list > div + div { border-top: 1px solid var(--border); }
.line-status-list dt { color: var(--muted); }
.line-status-list dd { margin: 0; overflow-wrap: anywhere; }
.danger-button { color: #a82e2e; border-color: #e5bfc0; }
@media (max-width: 540px) {
  .header-inner { min-height: 68px; padding: 0 22px; }
  .wordmark { font-size: 27px; }
  .back-link { font-size: 11px; }
  .auth-main { padding: 28px 16px; }
  .auth-card { padding: 26px 22px; border-radius: 9px; }
  h1 { font-size: 23px; }
  .intro { font-size: 13px; margin-bottom: 24px; }
  .line-consent { padding: 15px; }
  .line-status-list > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
