@charset "UTF-8";

:root { color-scheme: light; font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; color: #333; background: #fff; font-size: 15px; line-height: 1.75; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #176b9e; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
input, textarea, select { width: 100%; min-width: 0; border: 1px solid #9ca6ae; border-radius: 5px; padding: 11px 12px; color: #242c32; background: #fff; font-size: 16px; }
input[aria-invalid="true"] { border-color: #b43a32; }
textarea { resize: vertical; }
:focus-visible { outline: 3px solid #087abd; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p { margin-top: 0; }
.verify { width: min(800px, calc(100% - 32px)); margin: 0 auto; text-align: center; }
.shop-logo { display: block; width: min(400px, 82%); height: 190px; object-fit: contain; margin: 24px auto 18px; }
.verify h1 { margin-bottom: 22px; font-size: clamp(16px, 2.2vw, 20px); font-weight: 700; }
.user-select-wrap { width: min(640px, 100%); margin: 0 auto; padding: 30px 44px; border-radius: 6px; background: #eee; }
.member-section h2 { font-size: 17px; margin-bottom: 8px; }
.member-section p { margin-bottom: 18px; }
.registration-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid #c6c6c6; }
.verify-btn { display: block; width: min(280px, 100%); margin: 0 auto; padding: 12px 16px; border: 0; border-radius: 9px; background: #333; color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; line-height: 1.6; transition: background .15s; }
.verify-btn:hover { background: #555; }
.registration-form { max-width: 400px; margin: 0 auto; }
.registration-field { margin-bottom: 16px; }
.registration-form label { display: block; text-align: left; font-weight: 700; margin-bottom: 6px; }
.registration-form input { letter-spacing: .04em; }
.field-help { margin: 6px 0 14px; color: #5b646d; font-size: 12px; line-height: 1.65; }
.registration-form .field-help { text-align: left; }
.error-message { border: 1px solid #dfb3ae; border-radius: 5px; padding: 13px 15px; background: #fff2f0; color: #8b2820; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.success-message { padding: 13px 15px; border: 1px solid #b6d3c0; border-radius: 5px; color: #24553a; background: #f0f8f3; }
.parent-notes { margin: 22px auto 0; max-width: 640px; text-align: left; color: #555; font-size: 12px; }
.parent-notes p { margin: 5px 0; }
.copyright { margin: 28px 16px 20px; text-align: center; font-size: 11px; color: #666; overflow-wrap: anywhere; }
.test-notice { margin-bottom: 18px; padding: 5px 12px; border-radius: 4px; background: #fff4d6; color: #75521b; font-size: 12px; }
.verify > .test-notice { display: inline-block; }
.message-page { padding: 100px 0; }
.message-card { padding: 32px 24px; background: #f3f3f3; border-radius: 6px; }
.message-card p { margin: 0; }
.admin-body { background: #f4f6f8; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px max(24px, calc((100% - 1240px) / 2)); background: #fff; border-bottom: 1px solid #dce2e6; }
.admin-header h1 { font-size: 23px; line-height: 1.4; margin: 0; }
.eyebrow { margin: 0 0 3px; color: #257cb2; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.admin-main { width: min(1240px, calc(100% - 48px)); margin: 28px auto; }
.admin-narrow { max-width: 480px; }
.panel { padding: 28px; margin-bottom: 24px; background: #fff; border: 1px solid #dce2e6; border-radius: 8px; box-shadow: 0 2px 5px #142a3e05; }
.panel h2 { margin-bottom: 18px; font-size: 18px; }
.panel > p { font-size: 14px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.count { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 4px; background: #edf3f7; color: #3d627b; font-size: 12px; vertical-align: middle; }
.stack-form { display: grid; gap: 8px; }
.stack-form label, .form-field label { display: block; font-size: 14px; font-weight: 700; }
.stack-form input { margin-bottom: 12px; }
.button { display: inline-block; padding: 10px 20px; border: 1px solid #1b6c9d; border-radius: 5px; color: #fff; background: #1b6c9d; text-align: center; text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.7; }
.button:hover { background: #125077; }
.button-secondary { border-color: #bdc7cf; background: #fff; color: #344b5b; }
.button-secondary:hover { background: #edf2f5; }
.button-danger { background: #ad3c33; border-color: #ad3c33; }
.button-danger:hover { background: #852b25; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-field { margin-bottom: 16px; }
.form-field label { margin-bottom: 6px; }
.form-field .field-help { margin-bottom: 0; }
.school-destination-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.school-details-grid input, .school-details-grid select { height: 52px; line-height: 28px; }
.required { margin-left: 5px; color: #9a382f; font-size: 11px; }
.filter-label { display: block; width: min(320px, 100%); font-size: 12px; }
.filter-label input { margin-top: 4px; padding: 8px 10px; }
.table-wrap { overflow-x: auto; border: 1px solid #dce2e6; border-radius: 5px; }
table { width: 100%; min-width: 1100px; border-collapse: collapse; text-align: left; font-size: 13px; }
th, td { padding: 13px 12px; border-bottom: 1px solid #dce2e6; vertical-align: top; overflow-wrap: anywhere; }
thead th { background: #f0f4f7; white-space: nowrap; font-size: 12px; color: #496071; }
tbody th { width: 16%; font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.id-cell, .keyword-cell, .gid-cell { font-family: ui-monospace, monospace; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.copy-cell { width: 64px; min-width: 64px; text-align: center; white-space: nowrap; }
.copy-credentials-button { display: inline-flex; flex: 0 0 28px; width: 28px; height: 28px; padding: 5px; align-items: center; justify-content: center; border: 1px solid #c5cfd6; border-radius: 4px; background: #fff; color: #46677c; }
.copy-credentials-button svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.copy-credentials-button:hover { background: #edf5fa; border-color: #75a4c2; }
.copy-credentials-button:disabled { cursor: wait; opacity: .6; }
.copy-credentials-button.is-copied { background: #eaf6ee; border-color: #92c5a0; color: #286340; }
.copy-status { position: fixed; z-index: 10; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 12px 18px; border-radius: 6px; background: #245b3a; color: #fff; font-size: 14px; box-shadow: 0 3px 12px #0002; opacity: 0; pointer-events: none; }
.copy-status:not(:empty) { opacity: 1; }
.copy-status.is-error { background: #8b302a; }
.destination-cell { width: 9%; white-space: nowrap; }
.date-cell { width: 100px; white-space: nowrap; }
.note-cell { min-width: 140px; max-width: 260px; max-height: 180px; }
.row-actions { min-width: 72px; white-space: nowrap; }
.row-actions a { display: block; margin-bottom: 7px; }
.danger-link { color: #a9342c; }
.empty-state { padding: 25px 10px; color: #657380; text-align: center; font-size: 14px; }
.delete-panel { border-color: #d4a19c; }
.delete-details { display: grid; grid-template-columns: 140px 1fr; gap: 8px 20px; margin: 24px 0; }
.delete-details dt { color: #657380; }
.delete-details dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
  :root { font-size: 14px; }
  .shop-logo { height: 150px; margin-top: 18px; }
  .verify h1 { margin-bottom: 18px; }
  .user-select-wrap { padding: 26px 20px; }
  .member-section h2 { font-size: 16px; }
  .member-section p { font-size: 13px; }
  .member-section br { display: none; }
  .registration-section { margin-top: 26px; padding-top: 22px; }
  .registration-form .field-help { font-size: 12px; }
  .parent-notes { font-size: 11px; }
  .admin-header { padding: 18px 16px; }
  .admin-header h1 { font-size: 19px; }
  .admin-header .button { padding: 8px 12px; font-size: 12px; }
  .admin-main { width: calc(100% - 24px); margin-top: 18px; }
  .panel { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .filter-label { width: 100%; }
  .school-form > .button { width: 100%; }
  .copyright { font-size: 9px; }
  .delete-details { grid-template-columns: 1fr; gap: 4px; }
  .delete-details dd { margin-bottom: 10px; }
}
