@charset "UTF-8";
/* PHP版で追加した動的画面のスタイル。基礎デザインは app/globals.css を継承します。 */
textarea,
select {
  font: inherit;
}

button:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(117, 66, 200, 0.3);
  outline-offset: 3px;
}

.mobile-menu-button {
  display: none;
}

.site-notice {
  border-bottom: 1px solid #d9ccef;
  background: #f2ecfc;
  color: #4d2c82;
  font-size: 12px;
  font-weight: 700;
}

.site-notice .container {
  padding-block: 13px;
}

.site-notice--success {
  border-color: #b9dfcb;
  background: #edf9f2;
  color: #176b3b;
}

.site-notice--error {
  border-color: #ffc8cb;
  background: #fff0f1;
  color: #a5232c;
}

.featured-list {
  display: grid;
  gap: 18px;
}

.featured-list .ranking-card {
  background: var(--white);
}

.featured-list .ranking-card:first-child {
  border-top-color: var(--yellow);
}

.site-owner {
  margin: -3px 0 11px;
  color: #8d8492;
  font-size: 9px;
  font-weight: 700;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-actions form {
  margin: 0;
}

.card-actions button,
.site-detail-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #ded7e5;
  background: var(--white);
  color: #6a6170;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
}

.card-actions button:hover,
.card-actions button.is-favorite,
.site-detail-actions button:hover,
.site-detail-actions button.is-favorite {
  border-color: #f7a8ac;
  background: #fff2f3;
  color: #d82f39;
}

.visit-link {
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: var(--white);
  font-size: 8px;
  font-weight: 900;
}

.visit-link:hover {
  background: var(--purple-dark);
}

.site-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #8d5bdc, #59309d);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.empty-state {
  min-height: 220px;
  padding: 44px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  border: 1px dashed #d8d1dd;
  background: var(--soft);
  text-align: center;
}

.empty-state strong {
  font-size: 17px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.site-detail-hero {
  position: relative;
  min-height: 330px;
  padding: 48px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 180px;
  align-items: center;
  gap: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 189, 8, 0.24), transparent 25%),
    linear-gradient(130deg, #faf8fd, #fff);
}

.site-detail-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border: 50px solid rgba(117, 66, 200, 0.05);
  border-radius: 50%;
}

.site-detail-hero__mark {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--purple), var(--purple-dark));
  box-shadow: 0 18px 36px rgba(89, 48, 157, 0.2);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 46px;
  font-weight: 700;
}

.site-detail-hero__content {
  position: relative;
  z-index: 1;
}

.site-detail-hero h1 {
  margin: 9px 0 14px;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(26px, 4vw, 43px);
  line-height: 1.2;
}

.site-detail-hero__content > p {
  max-width: 650px;
  margin: 0;
  color: #665e6b;
  font-size: 12px;
  line-height: 1.9;
}

.site-detail-meta {
  margin: 16px 0 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: #8d8590;
  font-size: 9px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 6px 9px;
  border: 1px solid #ded7e5;
  background: #fff;
  color: var(--purple);
  font-size: 8px;
  font-weight: 800;
}

.site-detail-actions {
  margin-top: 23px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-action,
.support-button {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.primary-action:hover,
.support-button:hover {
  background: var(--purple-dark);
}

.site-detail-actions button {
  min-height: 44px;
}

.site-detail-rank {
  position: relative;
  z-index: 1;
  padding: 28px 18px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.site-detail-rank > span {
  color: var(--purple);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.site-detail-rank strong {
  margin-block: 7px;
  display: block;
  font-family: Georgia, serif;
  font-size: 55px;
  line-height: 1;
}

.site-detail-rank strong small {
  margin-left: 4px;
  font-family: inherit;
  font-size: 14px;
}

.site-detail-rank p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.site-stats-grid {
  margin-block: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.site-stats-grid article {
  min-height: 120px;
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: #fff;
}

.site-stats-grid article > span {
  color: #8d8590;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-stats-grid strong {
  font-family: Georgia, serif;
  font-size: 29px;
}

.site-stats-grid strong small {
  font-family: inherit;
  font-size: 10px;
}

.support-button {
  margin-top: 2px;
  background: var(--coral);
}

.support-button:hover {
  background: #dc3039;
}

.auth-page {
  min-height: 650px;
  padding-block: 70px 100px;
  display: grid;
  place-items: start center;
}

.auth-panel {
  width: min(100%, 560px);
  padding: 42px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 22px 65px rgba(46, 31, 61, 0.08);
}

.auth-panel__heading {
  margin-bottom: 28px;
  text-align: center;
}

.auth-panel__heading h1 {
  margin: 9px 0 10px;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 34px;
}

.auth-panel__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form label,
.field-list label {
  display: grid;
  gap: 8px;
  color: #514a55;
  font-size: 10px;
  font-weight: 800;
}

.auth-form input,
.auth-form select,
.field-list input,
.field-list select,
.field-list textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #dcd6e0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}

.field-list textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

.auth-form input:focus,
.auth-form select:focus,
.field-list input:focus,
.field-list select:focus,
.field-list textarea:focus {
  border-color: var(--purple);
  outline: 3px solid rgba(117, 66, 200, 0.11);
}

.auth-form small,
.field-list small {
  color: #918a95;
  font-size: 8px;
  font-weight: 500;
}

.auth-form button {
  min-height: 52px;
  margin-top: 5px;
  border: 0;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.auth-form button:hover {
  background: var(--purple-dark);
}

.auth-switch {
  margin: 24px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 9px;
}

.auth-switch a {
  color: var(--purple);
  font-weight: 900;
}

.form-error {
  margin: 0 auto 24px;
  padding: 16px 18px;
  border: 1px solid #ffc3c7;
  background: #fff1f2;
  color: #98232b;
  font-size: 10px;
  line-height: 1.7;
}

.form-error strong {
  display: block;
}

.form-error ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.installer-page {
  background: linear-gradient(180deg, #faf8fd, #fff);
}

.installer-note,
.install-success {
  padding: 18px;
  border: 1px solid #dcd3ea;
  background: #faf7ff;
  color: #5c5265;
  font-size: 10px;
  line-height: 1.8;
}

.installer-note {
  margin-bottom: 22px;
}

.installer-note strong,
.install-success strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.install-success {
  display: grid;
  gap: 15px;
}

.install-success p {
  margin: 0;
}

.narrow-form-page {
  max-width: 860px;
}

.form-submit > a {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.panel-edit-link {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--purple);
  font-size: 8px;
  font-weight: 900;
}

.registered-info a {
  color: var(--purple);
  word-break: break-all;
}

.dashboard-nav form {
  margin: 0;
}

button.dashboard-nav__logout {
  width: 100%;
  padding: 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.status-pending {
  color: #9b6800 !important;
}

.status-approved {
  color: #138344 !important;
}

.status-suspended,
.status-rejected {
  color: #bd2e37 !important;
}

.admin-page,
.legal-page {
  padding-block: 24px 90px;
}

.admin-hero {
  margin-bottom: 22px;
  padding: 36px 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  background: #2a2330;
  color: #fff;
}

.admin-hero h1 {
  margin: 9px 0;
  font-family: Georgia, serif;
  font-size: 34px;
}

.admin-hero p {
  margin: 0;
  color: #cfc8d4;
  font-size: 10px;
}

.admin-hero > a {
  padding: 11px 14px;
  border: 1px solid #5c5265;
  font-size: 9px;
  font-weight: 800;
}

.admin-hero__actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.admin-hero__actions > span {
  color: #bfb6c5;
  font-size: 8px;
  font-weight: 800;
}

.admin-hero__actions > a {
  min-height: 38px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #5c5265;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.admin-navigation {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-navigation a {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid var(--line);
  color: #645d68;
  font-size: 9px;
  font-weight: 900;
}

.admin-navigation a:hover,
.admin-navigation a.active {
  color: var(--purple);
  background: #f5f1fc;
}

.admin-navigation a.active {
  box-shadow: inset 0 -3px var(--purple);
}

.admin-navigation > span {
  flex: 1;
}

.admin-navigation > span ~ a {
  border-right: 0;
  border-left: 1px solid var(--line);
  color: var(--purple);
}

.admin-overview {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.admin-overview--users {
  grid-template-columns: repeat(3, 1fr);
}

.admin-overview article {
  min-width: 0;
  padding: 18px 20px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-top: 3px solid #d9d0e6;
  background: #fff;
}

.admin-overview article:nth-child(2) {
  border-top-color: var(--yellow);
}

.admin-overview article:nth-child(3) {
  border-top-color: var(--purple);
}

.admin-overview span {
  color: #77707b;
  font-size: 8px;
  font-weight: 900;
}

.admin-overview strong {
  font: 700 27px Georgia, serif;
}

.admin-overview small {
  color: #aaa4ad;
  font-size: 7px;
}

.admin-stats {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.admin-stats a {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-stats a.active {
  border-color: var(--purple);
  box-shadow: inset 0 -3px var(--purple);
}

.admin-stats span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.admin-stats strong {
  font-family: Georgia, serif;
  font-size: 26px;
}

.admin-panel {
  border: 1px solid var(--line);
  background: #fff;
}

.admin-panel__heading {
  min-height: 70px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.admin-panel__heading h2 {
  margin: 0;
  font-size: 15px;
}

.admin-panel__heading > div > span {
  color: var(--purple);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.admin-panel__heading > div > h2 {
  margin-top: 4px;
}

.admin-panel__heading > strong,
.admin-panel__heading > small {
  color: #8b848f;
  font-size: 8px;
}

.admin-panel__heading a {
  color: var(--purple);
  font-size: 9px;
  font-weight: 800;
}

.admin-filter {
  padding: 18px 24px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px auto auto;
  align-items: end;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #faf9fb;
}

.admin-filter label {
  display: grid;
  gap: 6px;
}

.admin-filter label > span {
  color: #746d78;
  font-size: 8px;
  font-weight: 900;
}

.admin-filter input,
.admin-filter select,
.admin-actions select,
.admin-side-control select {
  width: 100%;
  height: 40px;
  padding-inline: 11px;
  border: 1px solid #d9d3dd;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 9px;
}

.admin-filter button,
.admin-filter > a {
  min-height: 40px;
  padding: 8px 14px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--purple);
  background: var(--purple);
  color: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
}

.admin-filter > a {
  border-color: #d9d3dd;
  background: #fff;
  color: #6f6873;
}

.admin-site-row {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.admin-site-row:last-child {
  border-bottom: 0;
}

.admin-site-titleline {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-site-titleline > small {
  color: #aaa4ad;
  font-size: 8px;
}

.status-badge {
  padding: 5px 8px;
  display: inline-flex;
  border: 1px solid currentColor;
  font-size: 8px;
  font-weight: 900;
}

.admin-site-main h2 {
  margin: 10px 0 7px;
  font-size: 15px;
}

.admin-site-main > p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.admin-site-main dl {
  margin: 0;
  display: grid;
  gap: 6px;
}

.admin-site-main dl > div {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  gap: 10px;
  font-size: 8px;
}

.admin-site-main dt {
  color: #938b96;
}

.admin-site-main dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-site-main dd a {
  color: var(--purple);
}

.admin-point-summary {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-point-summary span {
  min-height: 30px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e5e0e8;
  background: #faf9fb;
  color: #817a85;
  font-size: 7px;
}

.admin-point-summary b {
  color: var(--ink);
  font-size: 10px;
}

.admin-actions {
  display: grid;
  align-content: start;
  gap: 7px;
}

.admin-actions form {
  display: grid;
  gap: 7px;
}

.admin-actions .admin-primary-link {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.admin-actions button,
.admin-actions a {
  min-height: 34px;
  padding: 8px;
  border: 1px solid #dcd6e0;
  background: #fff;
  color: #665e6b;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
  text-align: center;
}

.admin-actions button.approve {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.admin-actions button.reject {
  color: #b72b34;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 20px;
}

.admin-detail-main,
.admin-detail-side {
  display: grid;
  gap: 20px;
}

.admin-control-panel {
  overflow: hidden;
}

.admin-point-form {
  padding: 24px;
}

.admin-point-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.admin-point-fields label {
  display: grid;
  gap: 7px;
  color: #68616d;
  font-size: 8px;
  font-weight: 900;
}

.admin-point-fields input {
  width: 100%;
  height: 48px;
  padding-inline: 12px;
  border: 1px solid #d9d3dd;
  border-radius: 0;
  font: 700 17px Georgia, serif;
}

.admin-point-fields input:focus {
  border-color: var(--purple);
  outline-offset: 0;
}

.admin-point-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--purple);
  background: #f7f3fc;
}

.admin-point-note strong {
  color: #5c486d;
  font-size: 9px;
}

.admin-point-note p {
  margin: 4px 0 0;
  color: #77707b;
  font-size: 8px;
  line-height: 1.7;
}

.admin-submit {
  min-width: 180px;
  min-height: 42px;
  margin-top: 18px;
  border: 0;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
}

.admin-reset-form {
  padding: 16px 24px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.admin-reset-form p {
  margin: 0;
  color: #817a85;
  font-size: 8px;
}

.admin-reset-form button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #e1bfc3;
  background: #fff8f8;
  color: #b72b34;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
}

.admin-detail-list {
  margin: 0;
  padding: 8px 24px 22px;
}

.admin-detail-list > div {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.admin-detail-list dt {
  color: #8b848f;
}

.admin-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.admin-detail-list a {
  color: var(--purple);
}

.admin-detail-list code {
  font-size: 8px;
}

.admin-side-control .admin-panel__heading {
  min-height: 58px;
  padding: 15px 18px;
}

.admin-side-control form,
.admin-owner-card {
  padding: 18px;
  display: grid;
  gap: 11px;
}

.admin-side-control label {
  display: grid;
  gap: 8px;
  color: #716a75;
  font-size: 8px;
  font-weight: 900;
}

.admin-side-control button {
  min-height: 38px;
  border: 0;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
}

.admin-owner-card strong {
  font-size: 13px;
}

.admin-owner-card a {
  color: var(--purple);
  font-size: 8px;
  font-weight: 900;
}

.admin-owner-card p {
  margin: 0;
  color: #817a85;
  font-size: 8px;
}

.admin-mini-logs {
  margin: 0;
  padding: 8px 18px 16px;
  display: grid;
  list-style: none;
}

.admin-mini-logs li {
  padding: 10px 0;
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.admin-mini-logs strong,
.admin-mini-logs span {
  font-size: 8px;
  line-height: 1.5;
}

.admin-mini-logs small {
  color: #aaa4ad;
  font-size: 7px;
}

.admin-user-row {
  padding: 23px 24px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 150px;
  align-items: start;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-user-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0eafa;
  color: var(--purple);
  font-size: 17px;
  font-weight: 900;
}

.admin-user-main > div:first-child {
  display: flex;
  gap: 7px;
}

.admin-role-badge {
  padding: 5px 8px;
  display: inline-flex;
  border: 1px solid var(--purple);
  color: var(--purple);
  font-size: 8px;
  font-weight: 900;
}

.admin-user-main h2 {
  margin: 10px 0 4px;
  font-size: 15px;
}

.admin-user-main > p {
  margin: 0 0 13px;
  color: var(--purple);
  font-size: 9px;
}

.admin-user-main dl {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.admin-user-main dl > div {
  display: flex;
  gap: 7px;
  font-size: 8px;
}

.admin-user-main dt {
  color: #938b96;
}

.admin-user-main dd {
  margin: 0;
}

.admin-user-actions {
  display: grid;
  gap: 8px;
}

.admin-user-actions > a,
.admin-user-actions button {
  min-height: 36px;
  padding: 8px 10px;
  display: grid;
  place-items: center;
  border: 1px solid #dcd6e0;
  background: #fff;
  color: #655e69;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
  text-align: center;
}

.admin-user-actions button {
  width: 100%;
}

.admin-user-actions button.danger {
  border-color: #e5c2c6;
  color: #b72b34;
}

.admin-user-actions button.approve {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.admin-user-actions > small {
  color: #99929c;
  font-size: 7px;
  text-align: center;
}

.admin-log-filter {
  display: flex;
  gap: 7px;
}

.admin-log-filter a {
  min-height: 30px;
  padding: 6px 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  color: #746d78;
}

.admin-log-filter a.active {
  border-color: var(--purple);
  color: var(--purple);
  background: #f5f1fc;
}

.admin-log-list article {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-log-list time {
  color: #8e8792;
  font-size: 8px;
}

.admin-log-list article > div {
  display: grid;
  gap: 6px;
}

.admin-log-list article > div > span {
  color: var(--purple);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.admin-log-list article > div > strong {
  font-size: 10px;
}

.admin-log-list article > div > small {
  color: #8e8792;
  font-size: 8px;
}

.admin-log-list article > a {
  color: var(--purple);
  font-size: 8px;
  font-weight: 900;
}

.admin-log-list details {
  margin-top: 4px;
}

.admin-log-list summary {
  color: #746d78;
  cursor: pointer;
  font-size: 8px;
}

.admin-log-list pre {
  max-width: 100%;
  padding: 12px;
  overflow-x: auto;
  background: #f7f5f8;
  font-size: 8px;
  line-height: 1.6;
}

.legal-document {
  max-width: 860px;
  margin-inline: auto;
  padding: 50px;
  border: 1px solid var(--line);
  background: #fff;
}

.legal-document h1 {
  margin: 9px 0 30px;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 36px;
}

.legal-document h2 {
  margin: 32px 0 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.legal-document p {
  color: #625b66;
  font-size: 10px;
  line-height: 2;
}

.legal-updated {
  margin-top: 40px;
  color: #978f9a !important;
  text-align: right;
}

@media (max-width: 900px) {
  .site-detail-hero {
    grid-template-columns: 90px minmax(0, 1fr);
    padding: 34px;
  }

  .site-detail-hero__mark {
    width: 84px;
    height: 84px;
    font-size: 38px;
  }

  .site-detail-rank {
    grid-column: 1 / -1;
    padding: 20px 0 0;
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--line);
    border-left: 0;
    text-align: left;
  }

  .site-detail-rank strong {
    margin: 0;
    font-size: 36px;
  }

  .admin-stats,
  .site-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-overview {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-filter {
    grid-template-columns: minmax(0, 1fr) 180px auto;
  }

  .admin-filter > a {
    grid-column: 1 / -1;
  }

  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-detail-side {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .card-actions form,
  .card-actions button,
  .visit-link {
    width: 100%;
  }

  .site-mark {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .site-detail-hero {
    padding: 28px 20px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-detail-hero__mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 28px;
  }

  .site-detail-rank {
    grid-column: auto;
  }

  .site-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-stats-grid article {
    min-height: 100px;
    padding: 16px;
  }

  .site-stats-grid strong {
    font-size: 23px;
  }

  .auth-page {
    min-height: 0;
    padding-block: 35px 60px;
  }

  .auth-panel {
    padding: 27px 18px;
  }

  .admin-hero {
    padding: 28px 22px;
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-hero__actions {
    width: 100%;
    justify-items: start;
  }

  .admin-navigation {
    overflow-x: auto;
  }

  .admin-navigation a {
    padding-inline: 14px;
    flex: none;
    white-space: nowrap;
  }

  .admin-navigation > span {
    display: none;
  }

  .admin-navigation > span ~ a {
    border-left: 0;
    border-right: 1px solid var(--line);
  }

  .admin-overview,
  .admin-overview--users {
    grid-template-columns: 1fr 1fr;
  }

  .admin-filter {
    padding: 16px;
    grid-template-columns: 1fr;
  }

  .admin-filter > a {
    grid-column: auto;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .admin-stats a {
    padding: 14px;
  }

  .admin-site-row {
    padding: 18px;
    grid-template-columns: 1fr;
  }

  .admin-site-main dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .admin-point-fields {
    grid-template-columns: 1fr 1fr;
  }

  .admin-reset-form {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-detail-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-detail-side {
    grid-template-columns: 1fr;
  }

  .admin-user-row {
    padding: 18px;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .admin-user-avatar {
    width: 42px;
    height: 42px;
  }

  .admin-user-actions {
    grid-column: 1 / -1;
  }

  .admin-user-main dl {
    display: grid;
  }

  .admin-log-list article {
    padding: 18px;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .legal-document {
    padding: 30px 20px;
  }
}

/* ============================================================
   adult-ranking から移植した仕組みの画面部品
   （配色はPOPの紫、文字サイズはPOPの既存部品に合わせてある）
   ============================================================ */

/* --- 共通 --- */
.text-link {
  color: var(--purple);
  font-weight: 900;
}

.registration-form,
.form-section,
.form-section__heading,
.field-list,
.field-list label,
.field-list input,
.field-list textarea,
.field-list select,
.code-field,
.code-field textarea,
.category-allocation-list,
.category-allocation-row,
.category-allocation-row label,
.category-allocation-row select {
  min-width: 0;
}

.form-page-back-link,
.confirm-cancel-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  color: var(--purple);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.6;
}

.form-page-back-link {
  margin-top: 18px;
}

.form-page-back-link:hover,
.confirm-cancel-link:hover {
  color: var(--purple-dark);
  text-decoration: underline;
}

.confirm-cancel-link {
  flex-basis: 100%;
}

.step-list li.done {
  color: var(--purple);
}

.step-list li.done b {
  border-color: var(--purple);
  color: var(--purple);
}

/* --- ランキングの説明（並び順の下） --- */
.side-panel--accent .ranking-rules {
  margin: 0;
  padding-left: 1.15em;
  list-style: disc;
  font-size: 9px;
  line-height: 1.7;
}

.ranking-rules > li + li {
  margin-top: 9px;
}

/* --- パスワードの表示・再設定 --- */
.auth-form .password-visibility {
  width: fit-content;
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.auth-form .password-visibility input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ink);
  accent-color: var(--purple);
  cursor: pointer;
}

.auth-forgot {
  margin: 14px 0 0;
  text-align: center;
}

.auth-forgot a {
  color: var(--purple);
  font-size: 9px;
  font-weight: 800;
}

.password-help {
  display: grid;
  gap: 18px;
}

.password-help__lead {
  margin: 0;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.9;
}

.password-help__contact {
  padding: 16px 18px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  background: var(--soft);
}

.password-help__contact > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.password-help__sent {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.password-help__contact small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.password-help__note {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.85;
}

.password-help--compact {
  margin-top: 18px;
  gap: 10px;
}

.password-help__note a {
  color: var(--purple);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-notice--password {
  border-color: #b9dfcb !important;
  background: #e7f6ed !important;
  color: #0d5c30 !important;
}

.site-notice--password .container {
  padding-block: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.95;
}

/* --- 登録確認画面 --- */
.confirm-layout {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 34px;
  align-items: start;
}

.confirm-panel {
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: var(--white);
}

.confirm-section + .confirm-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.confirm-section h2 {
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--purple);
  font-size: 13px;
}

.confirm-list {
  margin: 0;
}

.confirm-list > div {
  padding: 11px 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.confirm-list > div:last-child {
  border-bottom: 0;
}

.confirm-list dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.confirm-list dt small {
  margin-left: 6px;
  padding: 1px 6px;
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-size: 7px;
}

.confirm-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  word-break: break-word;
}

.confirm-password {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.confirm-password [data-password-plain],
.confirm-password [data-password-masked] {
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-family: Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.confirm-password small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.password-toggle {
  padding: 4px 12px;
  border: 1px solid var(--purple);
  background: var(--white);
  color: var(--purple);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.password-toggle:hover {
  background: var(--purple);
  color: #fff;
}

.confirm-actions {
  margin-top: 32px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.confirm-actions button {
  padding: 16px 24px;
  border: 1px solid var(--purple);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}

.confirm-actions button.confirm-back {
  background: var(--white);
  color: var(--purple);
}

.confirm-actions button.confirm-back:hover {
  background: var(--soft);
}

.confirm-actions button.confirm-submit {
  flex: 1;
  min-width: 220px;
  background: var(--purple);
  color: #fff;
}

.confirm-actions button.confirm-submit:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
}

/* --- バナーの案内（登録画面） --- */
.banner-notice {
  padding: 20px;
  border: 1px solid var(--purple);
  background: var(--white);
}

.banner-notice > span {
  display: block;
  color: var(--purple);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.banner-notice h2 {
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}

.banner-notice p {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.8;
}

.banner-notice strong {
  background: linear-gradient(transparent 60%, #f2ecfc 60%);
}

.banner-notice__preview {
  margin: 4px 0 12px;
  padding: 14px;
  background: var(--soft);
  text-align: center;
}

.banner-notice__preview img {
  max-width: 100%;
  height: auto;
}

.banner-notice__warning {
  padding: 10px 12px;
  background: var(--purple);
  color: #fff !important;
  font-size: 9px;
  font-weight: 800;
}

.banner-notice__hint {
  margin-bottom: 0 !important;
  color: var(--muted) !important;
  font-size: 8px !important;
  font-weight: 600 !important;
}

/* --- マイページ：バナーの設置状況 --- */
.banner-status {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-left: 4px solid var(--line);
  background: var(--soft);
}

.banner-status strong {
  display: block;
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
}

.banner-status p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.7;
}

.banner-status small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 8px;
}

.banner-status--ok {
  border-left-color: #1a7f4b;
  background: #e8f6ee;
}

.banner-status--alert {
  border-left-color: var(--coral);
  background: #fff0f1;
}

.banner-status--warn {
  border-left-color: #b8860b;
  background: #fdf4dd;
}

.banner-status--wait {
  border-left-color: var(--muted);
}

.setup-badge--ok {
  background: #e9f8ef;
  color: #27844a;
}

.setup-badge--alert {
  background: #fff0f1;
  color: #a5232c;
}

.setup-badge--warn {
  background: #fdf4dd;
  color: #7a5a00;
}

.setup-badge--wait {
  background: var(--soft);
  color: var(--muted);
}

.banner-steps {
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.banner-steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.banner-steps b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.banner-steps span {
  padding-top: 4px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.7;
}

.banner-steps strong {
  background: linear-gradient(transparent 60%, #f2ecfc 60%);
}

.ranking-banner-gallery {
  margin: 18px 0 28px;
  display: grid;
  gap: 18px;
}

.ranking-banner-gallery--primary {
  margin-bottom: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-banner-option,
.ranking-text-option {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  background: var(--white);
}

.ranking-text-option {
  margin-bottom: 16px;
}

.ranking-banner-option > header,
.ranking-text-option > header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ranking-banner-option > header strong,
.ranking-text-option > header strong {
  color: var(--ink);
  font-size: 10px;
}

.ranking-banner-option > header span,
.ranking-text-option > header span {
  color: var(--purple);
  font-size: 8px;
  font-weight: 900;
}

.ranking-banner-canvas {
  min-height: 72px;
  margin-bottom: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  background: var(--soft);
}

.ranking-banner-canvas img {
  max-width: none;
  display: block;
}

.ranking-banner-option .code-field textarea {
  min-height: 82px;
}

.ranking-banner-option .link-actions,
.ranking-text-option .link-actions {
  margin-top: 10px;
}

.banner-extras {
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.banner-extras > summary {
  padding: 12px 16px;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.banner-extras > summary:hover {
  background: #f2ecfc;
}

.banner-extras__body {
  padding: 16px;
}

.registered-site-panel .registered-info dt,
.registered-site-panel .registered-info dd {
  color: var(--ink);
}

/* --- カテゴリーの割り振り（登録・編集） --- */
.category-allocation-list {
  display: grid;
  gap: 12px;
}

.category-allocation-row {
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  gap: 15px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  background: var(--white);
}

.category-allocation-row label {
  display: grid;
  gap: 7px;
}

.category-allocation-row label > span {
  color: #514a55;
  font-size: 10px;
  font-weight: 800;
}

.category-allocation-editor > strong {
  display: block;
  font-size: 12px;
}

.category-allocation-editor > p,
.allocation-help {
  margin: 7px 0 15px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.allocation-total {
  margin-top: 14px;
  padding: 14px 17px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--soft);
}

.allocation-total > span {
  font-size: 9px;
  font-weight: 900;
}

.allocation-total strong {
  color: #b4232c;
  font-size: 18px;
}

.allocation-total small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 8px;
}

.allocation-total.is-valid {
  border-color: var(--purple);
}

.allocation-total.is-valid strong {
  color: var(--purple);
}

/* --- マイページ：カテゴリー別ポイント --- */
.category-performance-list {
  display: grid;
  gap: 10px;
}

.category-performance-list article {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, 0.9fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
}

.category-performance-list article > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.category-performance-list article > div > span {
  min-width: 44px;
  padding: 7px;
  background: var(--purple);
  color: #fff;
  text-align: center;
  font-size: 9px;
  font-weight: 900;
}

.category-performance-list article > div > strong {
  font-size: 11px;
}

.category-performance-list article > div > small {
  color: var(--purple);
  font-size: 8px;
  font-weight: 900;
}

.category-performance-list dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.category-performance-list dl > div {
  padding: 0 13px;
  border-left: 1px solid var(--line);
}

.category-performance-list dt {
  color: var(--muted);
  font-size: 8px;
}

.category-performance-list dd {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 900;
}

.category-performance-list dd small {
  font-size: 8px;
}

.category-performance-list article > a {
  color: var(--purple);
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.site-point-note {
  margin: 26px 0 0;
  padding: 15px 18px;
  border-left: 3px solid var(--purple);
  background: var(--soft);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
}

/* --- 退会・サイト削除 --- */
.withdraw-section {
  margin-top: 32px;
  border-color: #e5c2c6;
}

.withdraw-section .form-section__heading h2 {
  color: #b72b34;
}

.withdraw-warning {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-left: 4px solid #b72b34;
  background: #fff1f2;
}

.withdraw-warning strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
}

.withdraw-warning ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.9;
}

.withdraw-warning p {
  margin: 0;
  color: #98232b;
  font-size: 9px;
  font-weight: 900;
}

.withdraw-form .field-list {
  margin-bottom: 18px;
}

.form-section button.withdraw-submit {
  width: 100%;
  padding: 16px;
  border: 1px solid #b72b34;
  background: #b72b34;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}

.form-section button.withdraw-submit:hover {
  border-color: #98232b;
  background: #98232b;
}

/* --- 管理画面：概要カード・絞り込み・バッジ --- */
.admin-overview {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-filter {
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px)) auto auto;
}

.admin-legacy-note {
  margin: 0 0 22px;
  padding: 14px 18px;
  border-left: 3px solid var(--purple);
  background: var(--soft);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.7;
}

.admin-legacy-note b {
  color: var(--purple);
}

.link-badge,
.source-badge {
  padding: 5px 8px;
  display: inline-flex;
  border: 1px solid currentColor;
  font-size: 8px;
  font-weight: 900;
}

.link-unknown {
  color: #8a8391;
}

.link-linked {
  color: #138344;
}

.link-unlinked {
  color: #bd2e37;
}

.link-error {
  color: #9b6800;
}

.source-seed {
  color: #6b5bd2;
}

.source-member {
  color: #0f7ba8;
}

.admin-side-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.7;
}

.admin-panel > .admin-side-note {
  padding: 14px 24px 0;
}

/* --- 管理画面：一括操作バー・チェック・行 --- */
.admin-bulk-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #faf9fb;
}

.admin-bulk-bar > strong {
  color: var(--purple);
  font-size: 9px;
  font-weight: 900;
}

.admin-bulk-bar button {
  min-height: 40px;
  padding-inline: 18px;
  border: 1px solid #dcd6e0;
  background: #fff;
  color: #665e6b;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.admin-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--purple);
  cursor: pointer;
}

.admin-row-check {
  align-self: start;
  padding-top: 3px;
}

.admin-site-row {
  grid-template-columns: 24px minmax(0, 1fr) 170px;
}

.admin-site-row.is-selected {
  background: #f7f3fc;
}

.admin-row-controls {
  display: grid;
  gap: 7px;
}

.admin-row-controls label {
  display: grid;
  gap: 4px;
}

.admin-row-controls label > span {
  color: #746d78;
  font-size: 8px;
  font-weight: 900;
}

.admin-row-controls select {
  width: 100%;
  height: 38px;
  padding-inline: 9px;
  border: 1px solid #d9d3dd;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
}

.admin-bulk-bar .admin-danger {
  margin-left: auto;
  border-color: #b72b34 !important;
  background: #b72b34 !important;
  color: #fff !important;
}

.admin-bulk-bar .admin-danger:hover {
  border-color: #98232b !important;
  background: #98232b !important;
}

.admin-bulk-bar .admin-danger[disabled] {
  border-color: var(--line) !important;
  background: #ded9e2 !important;
  color: #8a8391 !important;
  cursor: not-allowed;
}

.admin-row-controls .admin-danger {
  border-color: #b72b34 !important;
  background: #fff !important;
  color: #b72b34 !important;
}

.admin-row-controls .admin-danger:hover {
  border-color: #b72b34 !important;
  background: #b72b34 !important;
  color: #fff !important;
}

/* --- 管理画面：設定・リンクチェック・カテゴリー管理・一括登録のフォーム --- */
.admin-linkcheck__body {
  padding: 18px 24px 22px;
  display: grid;
  gap: 14px;
}

.admin-linkcheck__setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.admin-linkcheck__setting label {
  display: grid;
  gap: 6px;
}

.admin-linkcheck__setting label > span {
  color: #746d78;
  font-size: 8px;
  font-weight: 900;
}

.admin-linkcheck__setting input {
  width: 100%;
  height: 40px;
  padding-inline: 11px;
  border: 1px solid #d9d3dd;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
}

.admin-linkcheck__setting button,
.admin-category-delete button,
.admin-linkcheck__run button {
  min-height: 40px;
  padding-inline: 18px;
  border: 1px solid var(--purple);
  background: var(--purple);
  color: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
}

.admin-category-delete {
  display: grid;
  gap: 6px;
}

.admin-category-delete button {
  border-color: #e5c2c6;
  background: #fff;
  color: #b72b34;
}

.admin-linkcheck__warn {
  margin: 0;
  padding: 12px 16px;
  border-left: 4px solid #b72b34;
  background: #fdeced;
  color: #7d1f26;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.7;
}

.admin-linkcheck__run {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.admin-linkcheck__run small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.admin-linkcheck__run code {
  padding: 2px 6px;
  background: var(--soft);
  font-size: 8px;
}

.admin-linkinfo {
  margin: 0 0 12px;
  padding: 14px 18px 0;
  display: grid;
  gap: 9px;
}

.admin-linkinfo > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
}

.admin-linkinfo dt {
  color: #716a75;
  font-size: 8px;
  font-weight: 900;
}

.admin-linkinfo dd {
  margin: 0;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-linkinfo__note {
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.admin-user-main details {
  margin-top: 12px;
}

.admin-user-main details > summary {
  color: var(--purple);
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
}

.admin-user-main details .admin-linkcheck__setting {
  margin-top: 12px;
}

.field-list label.bulk-include-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  font-weight: 900;
}

.field-list label.bulk-include-check input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  margin: 0;
}

.bulk-apply-all {
  margin-bottom: 18px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  background: var(--soft);
}

.bulk-apply-all label {
  flex: 1 1 260px;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.bulk-apply-all label > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
}

.bulk-apply-all select {
  min-width: 0;
  height: 40px;
  padding-inline: 11px;
  border: 1px solid #d9d3dd;
  background: #fff;
  font-size: 9px;
}

.bulk-apply-all button {
  min-height: 40px;
  padding-inline: 18px;
  border: 1px solid var(--purple);
  background: var(--purple);
  color: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.site-bulk-page .admin-user-row {
  grid-template-columns: 48px minmax(0, 1fr);
}

.site-bulk-page .admin-user-main {
  min-width: 0;
}

.site-bulk-page .admin-user-main h2,
.site-bulk-page .admin-user-main p {
  overflow-wrap: anywhere;
}

.site-bulk-page .registration-form > .field-list {
  margin-bottom: 18px;
}

/* --- 2段階確認（ブラウザのダイアログを使わない） --- */
.is-confirming {
  border-color: #b72b34 !important;
  background: #b72b34 !important;
  color: #fff !important;
  animation: confirm-pulse 1s ease-in-out infinite;
}

@keyframes confirm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

@media (prefers-reduced-motion: reduce) {
  .is-confirming {
    animation: none;
  }
}

.confirm-note {
  display: block;
  margin-top: 6px;
  padding: 9px 11px;
  border-left: 4px solid #b72b34;
  background: #fdeced;
  color: #7d1f26;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.65;
}

/* --- 画面幅への対応 --- */
@media (max-width: 900px) {
  .confirm-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .confirm-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .confirm-panel {
    padding: 20px;
  }
}

@media (max-width: 760px) {
  .category-allocation-row {
    grid-template-columns: 1fr;
  }

  .category-performance-list article {
    grid-template-columns: 1fr;
  }

  .category-performance-list dl > div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .ranking-banner-gallery--primary {
    grid-template-columns: minmax(0, 1fr);
  }

  .ranking-text-option {
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .admin-bulk-bar {
    position: static;
    padding: 14px 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-bulk-bar button,
  .admin-bulk-bar .admin-danger {
    width: 100%;
    margin-left: 0;
  }

  .admin-site-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .admin-site-row .admin-actions {
    grid-column: 1 / -1;
  }

  .admin-linkcheck__body {
    padding: 16px 18px 20px;
  }

  .admin-linkcheck__setting {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-filter {
    grid-template-columns: 1fr;
  }

  .site-bulk-page .admin-user-row {
    padding: 18px 12px;
    gap: 10px;
  }
}

@media (max-width: 490px) {
  .category-performance-list dl {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .category-performance-list dl > div {
    padding: 7px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .ranking-banner-option {
    padding: 14px;
  }

  .ranking-banner-canvas {
    margin-inline: -4px;
    padding: 12px;
  }
}

/* マイページ左メニュー：スマートフォン幅ではサイト名が3列に並ぶため、長い名前を折り返す。 */
@media (max-width: 640px) {
  .dashboard-nav nav a {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
