:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: #111;
  background: #F2F2F7;
  font-size: 16px;
  line-height: 1.6;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #F2F2F7;
  overflow-wrap: anywhere;
}

a { color: #007AFF; text-underline-offset: .2em; }
a:hover { color: #005FCC; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #007AFF;
  outline-offset: 3px;
}

.site-header { background: #F2F2F7; }
.header-inner {
  width: min(680px, 100%);
  min-height: 64px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: #111;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  text-decoration: none;
}
.brand img { display: block; width: 36px; height: 36px; border: 1px solid #C6C6C8; border-radius: 9px; }

.language-control { display: inline-flex; flex: 0 1 180px; min-width: 0; align-items: center; }
.language-control select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 36px;
  border: 1px solid #C6C6C8;
  border-radius: 8px;
  padding: 5px 28px 5px 9px;
  color: #111;
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.page-shell {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 12px 24px 32px;
}
h1 {
  margin: 4px 0 12px;
  text-align: center;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
}
.description { margin: 0 0 20px; color: #222; font-size: 16px; }

#support-form { display: grid; gap: 14px; }
.message-card {
  min-width: 0;
  border: 1px solid #C6C6C8;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.message-card[aria-busy="true"] { opacity: .82; }
textarea,
.email-field input {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  color: #111;
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}
textarea {
  min-height: 184px;
  margin: 0;
  padding: 20px 24px 8px;
  resize: vertical;
}
textarea::placeholder { color: #85858B; opacity: 1; font-size: 14px; }
textarea:focus-visible,
.email-field input:focus-visible { outline-offset: -3px; }

.image-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 60px;
  padding: 0 16px 16px;
}
.image-list {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}
.image-list:empty { display: none; }
.image-item { position: relative; flex: 0 0 44px; width: 44px; height: 44px; }
.image-thumbnail {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #E5E5EA;
}
.remove-image-button {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(60, 60, 67, .2);
  border-radius: 50%;
  padding: 0;
  color: #3C3C43;
  background: rgba(255, 255, 255, .94);
  font: 17px/1 system-ui, sans-serif;
  cursor: pointer;
}
.remove-image-button:hover { background: #fff; }

.add-image-button {
  display: grid;
  flex: 0 0 44px;
  margin-left: auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: #3C3C43;
  background: transparent;
  cursor: pointer;
}
.add-image-button:hover:not(:disabled) { background: #F2F2F7; }
.add-image-button img { display: block; width: 30px; height: 22px; }
.add-image-button:disabled { opacity: .45; cursor: default; }
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #C6C6C8;
  border-top-color: #007AFF;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 1.8s; }
}

.field-error { margin: 0; color: #B42318; font-size: 13px; line-height: 1.45; }
.message-error { text-align: right; }
textarea[aria-invalid="true"],
.email-field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #B42318; }

.reply-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 36px;
  color: #111;
  font-size: 13px;
}
.switch-label { position: relative; display: inline-flex; flex: 0 0 auto; width: 51px; height: 31px; cursor: pointer; }
.switch-label input {
  position: absolute;
  width: 51px;
  height: 31px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.switch-track {
  position: relative;
  display: block;
  width: 51px;
  height: 31px;
  border: 1px solid #C6C6C8;
  border-radius: 18px;
  background: #E5E5EA;
  pointer-events: none;
  transition: background-color .15s ease;
}
.switch-track::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  content: "";
  transition: transform .15s ease;
}
.switch-label input:checked + .switch-track { border-color: #34C759; background: #34C759; }
.switch-label input:checked + .switch-track::after { transform: translateX(20px); }
.switch-label input:focus-visible + .switch-track { outline: 3px solid #007AFF; outline-offset: 3px; }

.email-field { display: grid; gap: 7px; }
.email-field > label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.required-badge { flex-shrink: 0; white-space: nowrap; border-radius: 4px; padding: 1px 7px; color: #fff; background: #007AFF; font-size: 11px; font-weight: 600; }
.email-field input {
  min-height: 48px;
  border: 1px solid #C6C6C8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.form-status { margin: 0; color: #B42318; font-size: 14px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status:focus,
.success-title:focus-visible { outline: 3px solid #007AFF; outline-offset: 4px; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cancel-button,
.submit-button {
  min-width: 0;
  min-height: 50px;
  border: 1px solid #C6C6C8;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cancel-button { color: #111; background: #fff; }
.cancel-button:hover { background: #F8F8FA; }
.submit-button { border-color: #007AFF; color: #fff; background: #007AFF; }
.submit-button:hover:not(:disabled) { background: #005FCC; }
.submit-button:disabled {
  border-color: rgba(0, 122, 255, .25);
  color: rgba(255, 255, 255, .6);
  background: rgba(0, 122, 255, .4);
  cursor: default;
}

.page-footer { display: grid; gap: 10px; margin-top: 30px; color: #5A5A60; font-size: 12px; line-height: 1.5; }
.privacy-note { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.privacy-note a { color: #5A5A60; }
.help-link { justify-self: end; font-size: 14px; }
.noscript-note { margin: 24px 0 0; padding: 12px; border: 1px solid #C6C6C8; border-radius: 8px; background: #fff; font-size: 14px; }

.success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.success-check {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #34C759;
}
.success-check::after {
  width: 13px;
  height: 23px;
  margin-top: -4px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
  content: "";
}
.success-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.success-feedback-id { margin: 0; color: #5A5A60; font-size: 12px; }
.feedback-id { color: #3C3C43; font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

@media (max-width: 380px) {
  .header-inner,
  .page-shell { padding-right: 20px; padding-left: 20px; }
  .button-row { gap: 8px; }
  .cancel-button,
  .submit-button { padding-right: 6px; padding-left: 6px; font-size: 14px; }
}
