/* Genba Nippo v1.8.3 — site photo and gradient appearance sheet. */
body.gn183-appearance-open {
  overflow: hidden;
}

.gn183-appearance-sheet[hidden] {
  display: none;
}

.gn183-appearance-sheet {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: grid;
  align-items: end;
  color: #132a42;
}

.gn183-appearance-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgb(8 25 42 / 56%);
}

.gn183-appearance-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(88dvh, 760px);
  margin: 0 auto;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  background: #fffdf9;
  box-shadow: 0 -18px 60px rgb(8 25 42 / 24%);
}

.gn183-appearance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.gn183-appearance-head p,
.gn183-appearance-head h2,
.gn183-appearance-site,
.gn183-appearance-help,
.gn183-appearance-message {
  margin: 0;
}

.gn183-appearance-head p {
  color: #64717d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.gn183-appearance-head h2 {
  margin-top: 4px;
  color: #132a42;
  font-size: 22px;
}

.gn183-appearance-close {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #d8d8d2;
  border-radius: 50%;
  background: #f6f3ed;
  color: #132a42;
  font-size: 26px;
  line-height: 1;
}

.gn183-appearance-site {
  margin-top: 12px;
  color: #4e5c68;
  font-size: 14px;
}

.gn183-appearance-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.gn183-appearance-actions button {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #d8d8d2;
  border-radius: 12px;
  background: #132a42;
  color: #f7f9fc;
  font: inherit;
  font-weight: 700;
}

.gn183-appearance-actions .gn183-appearance-remove {
  background: #fffdf9;
  color: #a13d32;
}

.gn183-appearance-actions button:disabled {
  opacity: .52;
}

.gn183-appearance-help {
  margin-top: 10px;
  color: #64717d;
  font-size: 12px;
  line-height: 1.65;
}

.gn183-gradient-fieldset {
  min-width: 0;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.gn183-gradient-fieldset legend {
  margin-bottom: 10px;
  padding: 0;
  color: #132a42;
  font-size: 14px;
  font-weight: 800;
}

.gn183-gradient-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.gn183-gradient-option {
  min-width: 0;
  min-height: 78px;
  padding: 5px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f6f3ed;
  color: #132a42;
  font: inherit;
}

.gn183-gradient-option[aria-pressed="true"] {
  border-color: #dd765f;
  box-shadow: 0 0 0 2px #fffdf9, 0 0 0 4px #dd765f;
}

.gn183-gradient-option span {
  display: block;
  width: 100%;
  aspect-ratio: 1.3;
  border-radius: 8px;
  background: var(--gn183-gradient);
  box-shadow: inset 0 0 0 1px rgb(247 249 252 / 18%);
}

.gn183-gradient-option b {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gn183-appearance-message {
  min-height: 24px;
  margin-top: 14px;
  color: #315f53;
  font-size: 13px;
}

.gn183-appearance-message.is-error {
  color: #a13d32;
}

.gn183-appearance-sheet button:focus-visible {
  outline: 3px solid #dd765f;
  outline-offset: 3px;
}

@media (max-width: 360px) {
  .gn183-appearance-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  .gn183-gradient-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gn183-gradient-option {
    min-height: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gn183-appearance-card,
  .gn183-gradient-option {
    scroll-behavior: auto;
    transition: none;
  }
}
