/* 追加CSSはここに記述 */
.st575-thanks-custom {
  margin: 24px 0;
}


.st575-status-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.st575-status-table th,
.st575-status-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
}

.st575-status-ok {
  color: #116329;
  font-weight: 700;
}

.st575-status-ng {
  color: #9b1c1c;
  font-weight: 700;
}

.st575-entry-fallback-image {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 18px;
  background: #fffef8;
}

.st575-entry-fallback-image .st575-entry-text {
  margin-bottom: 12px;
}


.st575-preview-grid {
  display: grid;
  gap: 18px;
  margin: 18px 0;
}

@media (min-width: 900px) {
  .st575-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.st575-preview-image-wrap {
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.st575-preview-image-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.st575-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.st575-inline-form {
  display: inline;
}


.st575-report-form {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.st575-admin-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.st575-report-badge {
  display: inline-block;
  min-width: 1.8em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #9b1c1c;
  color: #fff;
  text-align: center;
  font-size: 12px;
}


.st575-profile-header {
  display: grid;
  gap: 12px;
}

.st575-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.st575-profile-stat {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px 16px;
  background: #fff;
  min-width: 120px;
}

.st575-profile-stat strong {
  display: block;
  font-size: 1.5rem;
}

.st575-author-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}


.st575-avatar {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  background: #f2f2f2;
  border: 1px solid #e5e5e5;
}

.st575-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 6px;
  background: #f2f2f2;
  border: 1px solid #e5e5e5;
}

.st575-profile-title-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.st575-current-image {
  margin: 8px 0;
}


.st575-sso-area {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #fff;
}

.st575-google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #222;
  text-decoration: none;
  font-weight: 700;
}

.st575-google-button:hover {
  background: #f7f7f7;
}

.st575-profile-incomplete {
  border-left: 4px solid #d97706;
}


.st575-line-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #06c755;
  border-radius: 999px;
  background: #06c755;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.st575-line-button:hover {
  background: #05b64e;
  color: #fff;
}


.st575-apple-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.st575-apple-button:hover {
  background: #222;
  color: #fff;
}


.st575-x-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.st575-x-button:hover {
  background: #333;
  color: #fff;
}


.st575-facebook-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #1877f2;
  border-radius: 999px;
  background: #1877f2;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.st575-facebook-button:hover {
  background: #166fe5;
  color: #fff;
}


.st575-admin-summary-grid { display: grid; gap: 12px; margin: 16px 0; }
@media (min-width: 900px) { .st575-admin-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st575-admin-summary-card { border: 1px solid #dcdcde; background: #fff; border-radius: 8px; padding: 14px; }
.st575-admin-summary-card strong { display: block; font-size: 24px; line-height: 1.2; }
.st575-admin-table-scroll { overflow-x: auto; }


.st575-award-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #222;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.st575-award-card {
  border: 2px solid #222;
  border-radius: 16px;
  padding: 18px;
  margin: 0 0 18px;
  background: #fffef8;
}

.st575-award-comment {
  border-left: 4px solid #222;
  padding-left: 12px;
  margin: 12px 0;
}

.st575-award-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}


.st575-membership-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #222;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.st575-membership-badge.free { background: #777; }
.st575-membership-badge.paid { background: #116329; }
.st575-membership-badge.expired { background: #9b1c1c; }

.st575-usage-meter {
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
}

.st575-usage-meter strong { font-size: 1.2rem; }




.st575-payment-card {
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  margin: 16px 0;
}

.st575-payment-card h3 {
  margin-top: 0;
}

.st575-payment-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f1f1;
  font-size: 0.9rem;
}

.st575-payment-status.active {
  background: #e6f4ea;
  color: #116329;
}

.st575-payment-status.inactive {
  background: #fce8e6;
  color: #a50e0e;
}


.st575-hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


.st575-contest-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.st575-contest-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f1f1;
  font-size: 0.85rem;
  font-weight: 700;
}

.st575-contest-badge.open {
  background: #e6f4ea;
  color: #116329;
}

.st575-contest-badge.before {
  background: #e8f0fe;
  color: #174ea6;
}

.st575-contest-badge.ended {
  background: #fce8e6;
  color: #a50e0e;
}

.st575-contest-badge.paid {
  background: #fff4ce;
  color: #7a4f00;
}

.st575-contest-badge.sponsored {
  background: #f3e8fd;
  color: #681da8;
}

.st575-contest-badge.result {
  background: #e6f4f1;
  color: #006b5b;
}


.st575-user-suspended-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fce8e6;
  color: #a50e0e;
  font-size: 0.85rem;
  font-weight: 700;
}


.st575-terms-card {
  border-left: 4px solid #a50e0e;
}

.st575-terms-agreement label {
  font-weight: 700;
}


.st575-policy-links {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f7f7;
  font-size: 0.95rem;
}

.st575-policy-links a {
  font-weight: 700;
}


/* v0.28.70 premium award badge design */

.st575-award-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 42px;
  padding: 9px 18px 9px 16px;
  border: 1px solid #d7a83a;
  border-radius: 999px;
  background:
    linear-gradient(135deg, #fff8d7 0%, #f7d46c 42%, #dca934 72%, #fff1a8 100%);
  color: #4a3100;
  font-size: clamp(1rem, 2.4vw, 1.22rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  box-shadow:
    0 8px 18px rgba(142, 92, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(125, 79, 0, 0.16);
  vertical-align: middle;
  margin: 0 0 14px;
}

.st575-award-badge::before {
  content: "🏆";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 1.05em;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(160, 105, 0, 0.12);
}

.st575-award-badge::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: inherit;
  pointer-events: none;
}

.st575-user-award-head .st575-award-badge {
  margin-bottom: 0;
}

/* PWA install prompt */
.st575-pwa-install-banner[hidden],
.st575-pwa-install-modal[hidden] {
  display: none !important;
}

.st575-pwa-install-banner {
  display: none;
}

@media (max-width: 767px) {
  .st575-pwa-install-banner {
    position: fixed;
    top: 8px;
    left: 10px;
    right: 10px;
    z-index: 10020;
    display: block;
  }

  .st575-pwa-install-banner__inner {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 10px 12px;
    border: 1px solid rgba(106, 122, 40, .22);
    border-radius: 16px;
    background: rgba(255, 250, 242, .96);
    box-shadow: 0 10px 28px rgba(42, 33, 18, .14);
    backdrop-filter: blur(8px);
  }

  .st575-pwa-install-banner__text {
    min-width: 0;
  }

  .st575-pwa-install-banner__text strong {
    display: block;
    color: #3f4d13;
    font-size: 13px;
    line-height: 1.35;
  }

  .st575-pwa-install-banner__text span {
    display: block;
    margin-top: 2px;
    color: #6b604f;
    font-size: 11px;
    line-height: 1.35;
  }

  .st575-pwa-install-banner__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    align-items: center;
  }

  .st575-pwa-install-banner__button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #6A7A28;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 9px 12px;
    text-decoration: none;
    white-space: nowrap;
  }

  .st575-pwa-install-banner__button:hover {
    background: #56631f;
    color: #fff;
  }

  .st575-pwa-install-banner__close {
    appearance: none;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: rgba(106, 122, 40, .10);
    color: #4b4b33;
    cursor: pointer;
    font: inherit;
    font-size: 18px;
    line-height: 1;
  }
}

.st575-footer-nav .st575-footer-pwa-install {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--st575-text, #1f2933);
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
}

.st575-footer-nav .st575-footer-pwa-install:hover,
.st575-footer-nav .st575-footer-pwa-install:focus {
  color: var(--st575-text, #1f2933);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.st575-pwa-install-modal {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: grid;
  place-items: center;
  padding: 20px;
}

.st575-pwa-install-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 23, 16, .44);
}

.st575-pwa-install-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  padding: 22px;
  border-radius: 20px;
  background: #fffaf2;
  box-shadow: 0 18px 48px rgba(24, 20, 12, .24);
}

.st575-pwa-install-modal__dialog h2 {
  margin: 0 34px 12px 0;
  color: #3f4d13;
  font-size: 1.15rem;
}

.st575-pwa-install-modal__body p {
  margin: 0 0 10px;
  line-height: 1.8;
}

.st575-pwa-install-modal__close {
  appearance: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(106, 122, 40, .10);
  color: #4b4b33;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  line-height: 1;
}

.st575-pwa-install-modal-open {
  overflow: hidden;
}
