/* QOL DX PF minimal styles */

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 24px;
    line-height: 1.5;
    background-color: #fafafa;

    display: flex;
    justify-content: center;
}

.card {
    width: 100%;
    max-width: 520px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    background-color: #ffffff;
    text-align: center;
}

h1 {
    font-size: 20px;
    margin: 0 0 10px;
}

.muted {
    color: #666;
    margin: 0 0 14px;
}

.small {
    font-size: 12px;
}

.buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.buttons.compact {
    margin-top: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid #111;
    border-radius: 10px;
    text-decoration: none;
    color: #111;
    background-color: #ffffff;
    font: inherit;
    cursor: pointer;
}

.btn.secondary {
    border-color: #999;
    color: #333;
}

.btn.primary {
    background-color: #111;
    color: #fff;
}

.btn:hover {
    background-color: #f0f0f0;
}

.btn.primary:hover {
    background-color: #333;
}

/* Consent document */
.terms {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    margin: 10px 0 14px;
    text-align: left;
}

.consent-actions {
    margin: 24px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid #e5e5e5;
    background: #fff;
    text-align: left;
}

.consent-actions label {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
}

.consent-actions button {
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
}

.primary-action-btn {
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
}

button[disabled], input[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

[hidden] {
    display: none !important;
}

/* Message area (WebAuthn progress / result) */
.msg {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
}

.msg.info {
    border-color: #cfd8dc;
    background-color: #eef3f6;
    color: #37474f;
}

.msg.success {
    border-color: #b2dfdb;
    background-color: #e0f2f1;
    color: #004d40;
}

.msg.error {
    border-color: #ffcdd2;
    background-color: #ffebee;
    color: #b71c1c;
}

/* Member card logout link (subtle) */
.logout {
  text-align: right;
  margin: 24px 0 8px 0;
}

.menu-logout {
  text-align: center;
  margin: 18px 0 0;
}

.logout .link {
  font-size: 12px;
  color: #666;
  background: transparent;
  border: 1px solid #ddd;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.logout .link:hover {
  text-decoration: underline;
}

/* Member number (no literal spaces; spacing via CSS) */
.member-no-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin: 6px 0 0;
}

.member-no {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  grid-column: 2;
  margin: 0;

  display: inline-flex;
  justify-content: center;
  gap: 0.7rem;
  white-space: nowrap;
}

.copy-member-btn {
  align-self: center;
  background-color: #ffffff;
  border: 1px solid #999;
  border-radius: 8px;
  color: #333;
  cursor: pointer;
  grid-column: 3;
  justify-self: start;
  height: 34px;
  padding: 0;
  position: relative;
  width: 34px;
}

.copy-member-btn::before,
.copy-member-btn::after {
  background: #ffffff;
  border: 1.3px solid #333;
  border-radius: 3px;
  content: "";
  height: 12px;
  left: 11px;
  position: absolute;
  top: 9px;
  width: 9px;
}

.copy-member-btn::before {
  left: 14px;
  top: 12px;
}

.copy-member-btn:hover,
.copy-member-btn:focus {
  background-color: #f0f0f0;
}

.copy-member-tooltip {
  background: #222;
  border-radius: 6px;
  bottom: calc(100% + 8px);
  color: #fff;
  font-size: 12px;
  left: 50%;
  line-height: 1.2;
  opacity: 0;
  padding: 6px 8px;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  transition: opacity 120ms ease;
  white-space: nowrap;
  z-index: 1;
}

.copy-member-tooltip::after {
  border: 5px solid transparent;
  border-top-color: #222;
  content: "";
  left: 50%;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
}

.copy-member-btn:hover .copy-member-tooltip,
.copy-member-btn:focus .copy-member-tooltip {
  opacity: 1;
}

.copy-member-status {
  color: #666;
  font-size: 12px;
  min-height: 18px;
  margin: 2px 0 10px;
}

.member-label {
  font-size: 20px;
  font-weight: 700;
  margin: 18px 0 0;
}

.member-no .g {
  display: inline;
}

/* QR code display */
.qr {
  margin: 20px 0 10px 0;
  display: flex;
  justify-content: center;
}

.qr canvas,
.qr img {
  max-width: 220px;
  display: block;
}

.qr-caption {
  margin-top: 24px;
}

/* Partner / affiliated organizations banner */
.partners {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.partners img {
  max-width: 100%;
  height: auto;
  opacity: 0.95;
}

.partners p {
  margin: 8px 0 0;
}

.site-icon-footer {
  margin-top: 32px;
  text-align: center;
}

.site-icon-footer img {
  display: inline-block;
  height: 48px;
  opacity: 0.9;
  width: 48px;
}

.menu-list,
.notice-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  text-align: left;
}

.menu-item,
.notice-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.menu-item {
  color: #111;
  display: block;
  text-decoration: none;
}

.menu-item span {
  color: #666;
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.menu-item.disabled {
  background: #f8f8f8;
  color: #777;
}

.app-store-actions {
  margin-top: 18px;
}

.app-store-actions .btn:disabled {
  cursor: default;
  opacity: 0.65;
}

#passkeyCheckForm {
  margin-top: 16px;
  text-align: center;
}

.notice-item h2 {
  font-size: 16px;
  margin: 0 0 6px;
}

.notice-body {
  color: #222;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.about-text {
  text-align: left;
}

.about-text h2 {
  font-size: 16px;
  margin: 20px 0 8px;
}

.about-text p {
  margin: 0 0 14px;
}

.public-site-body {
  background: #fff;
  color: #20201d;
  display: block;
  padding: 0;
}

.public-site-shell {
  margin: 0 auto;
  max-width: 1080px;
  padding: 0 24px 48px;
}

.public-site-header {
  align-items: center;
  border-bottom: 1px solid rgba(32, 32, 29, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.public-brand {
  align-items: center;
  color: #20201d;
  display: inline-flex;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.public-brand img {
  display: block;
  height: 40px;
  width: 40px;
}

.public-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.public-nav a,
.public-site-footer a {
  color: #315b4d;
}

.public-site-main {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 320px;
  padding: 64px 0 32px;
}

.public-hero {
  max-width: 720px;
}

.public-kicker {
  color: #8a5a2b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.public-home,
.public-hero {
  text-align: left;
}

.public-home h1,
.public-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.35;
  margin: 0 0 24px;
  text-align: left;
}

.public-home h2,
.public-hero h2 {
  border-left: 4px solid #6f8f72;
  font-size: 22px;
  margin: 34px 0 12px;
  padding-left: 12px;
}

.public-home h3,
.public-hero h3 {
  font-size: 17px;
  margin: 18px 0 6px;
}

.public-home p,
.public-home li,
.public-hero p,
.public-hero li {
  color: #222;
  font-size: 16px;
  line-height: 1.85;
}

.public-home ul,
.public-hero ul {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

.web-login-box {
  align-self: start;
  background: #fff;
  border: 1px solid rgba(32, 32, 29, 0.12);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(48, 45, 38, 0.08);
  margin-top: 12px;
  padding: 22px;
  text-align: left;
}

.web-login-box h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

.web-login-box p {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.public-login-actions {
  justify-content: flex-start;
}

.public-footer-link {
  margin-top: 18px;
  text-align: center;
}

.public-site-footer {
  border-top: 1px solid rgba(32, 32, 29, 0.12);
  color: #666;
  font-size: 14px;
  margin-top: 32px;
  padding-top: 24px;
}

.public-partners {
  align-items: flex-start;
  margin-top: 32px;
}

.public-partners img {
  max-width: 520px;
}

.public-partners p {
  text-align: left;
}

@media (max-width: 760px) {
  .public-site-shell {
    padding: 0 18px 36px;
  }

  .public-site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    padding: 18px 0;
  }

  .public-site-main {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .web-login-box {
    margin-top: 0;
  }

  .public-partners img {
    max-width: 100%;
  }
}

.profile-table {
  border-collapse: collapse;
  margin: 18px 0;
  text-align: left;
  width: 100%;
}

.profile-table th,
.profile-table td {
  border-bottom: 1px solid #eee;
  padding: 10px 6px;
  vertical-align: top;
}

.profile-table th {
  color: #555;
  font-weight: 700;
  width: 112px;
}

/* Two-column form rows (e.g., 姓 / 名) */
.form-row {
  display: flex;
  gap: 8px;
}

.form-row .field {
  flex: 1;
  text-align: left;
}

.form-row input {
  width: 100%;
  box-sizing: border-box;
}

/* Keep form elements aligned left inside centered card */
.card form {
  text-align: left;
}
