/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 220px);
  color: #102a43;
}

a {
  color: #0f62fe;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.card {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.page-title {
  margin: 0 0 8px;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin: 0;
  color: #627d98;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #829ab1;
}

.dropzone {
  border: 2px dashed #bcccdc;
  border-radius: 16px;
  padding: 52px 24px;
  text-align: center;
  background: #f8fafc;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.dropzone.active {
  border-color: #0f62fe;
  background: #edf5ff;
}

.password-field {
  margin-top: 20px;
  margin-bottom: 20px;
}

.password-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: #486581;
}

.password-field input {
  width: 100%;
  max-width: 360px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #d9e2ec;
  background: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: #0f62fe;
  color: #fff;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button.secondary {
  background: #fff;
  color: #0f62fe;
  border: 1px solid #9fb3c8;
}

.error {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff1f0;
  color: #b42318;
  border: 1px solid #fecdca;
}

.success-banner {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #edfdf4;
  border: 1px solid #abefc6;
  color: #067647;
}

.role-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-top: 20px;
}

.role-link-card {
  display: block;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid #d9e2ec;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.role-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

.role-link-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: #102a43;
}

.role-link-card p {
  margin: 0;
  color: #627d98;
  font-size: 0.92rem;
}

.role-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.role-nav a {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #d9e2ec;
  background: #fff;
  color: #334e68;
  font-weight: 600;
}

.role-nav a.active {
  background: #0f62fe;
  border-color: #0f62fe;
  color: #fff;
  text-decoration: none;
}

.top-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.result-page {
  display: grid;
  grid-gap: 20px;
  gap: 20px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #d9e2ec;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.meta-card {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #d9e2ec;
}

.meta-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #829ab1;
}

.meta-value {
  font-size: 0.96rem;
  color: #243b53;
  word-break: break-word;
}

.panel {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf2f7;
  color: #486581;
  font-size: 0.85rem;
  font-weight: 700;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.image-card {
  margin: 0;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
}

.image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 12px;
  background: #fff;
}

.image-frame img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 8px;
}

.image-card figcaption {
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334e68;
  border-top: 1px solid #e4e7eb;
  background: #f8fafc;
}

.field-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  grid-gap: 16px;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e4e7eb;
}

.field-row-empty {
  opacity: 0.72;
}

.field-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #486581;
  line-height: 1.5;
}

.field-value {
  font-size: 0.98rem;
  color: #102a43;
  line-height: 1.6;
  word-break: break-word;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.field-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e4e7eb;
}

.field-card-empty {
  opacity: 0.7;
}

.field-card .field-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #627d98;
  margin-bottom: 6px;
}

.field-card .field-value {
  font-size: 1rem;
  color: #102a43;
  word-break: break-word;
}

.table-scroll {
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.matrix-table th,
.matrix-table td {
  border: 1px solid #d9e2ec;
  padding: 10px 12px;
  text-align: left;
}

.matrix-table th {
  background: #f0f4f8;
  font-size: 0.85rem;
}

.matrix-table td.num {
  text-align: right;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.matrix-table td.total {
  font-weight: 700;
}

.order-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.order-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #d9e2ec;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.order-list-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  text-decoration: none;
}

.order-list-item strong {
  display: block;
  margin-bottom: 4px;
  color: #102a43;
}

.order-list-arrow {
  color: #0f62fe;
  font-weight: 700;
}

.auth-card,
.landing-card {
  max-width: 720px;
  margin: 0 auto;
}

.auth-form {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  margin-top: 20px;
}

.auth-form label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  font-size: 0.92rem;
  color: #486581;
}

.auth-form input {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #d9e2ec;
}

.demo-credentials {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e4e7eb;
}

.demo-credentials h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.demo-credentials ul {
  margin: 0;
  padding-left: 18px;
  color: #486581;
  font-size: 0.92rem;
}

.muted {
  color: #627d98;
}

@media (max-width: 720px) {
  .result-header {
    flex-direction: column;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

