:root {
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --paper: #f3f4f6;
  --card: #fff;
  --red: #b42318;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100% - 32px, 1200px);
  min-height: 60px;
  margin-inline: auto;
}

.bar__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.bar__brand strong {
  letter-spacing: 0.08em;
}

.bar__brand span {
  color: var(--muted);
}

.bar__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
}

.film {
  margin: 0;
  height: 210px;
  overflow: hidden;
  background: #111;
}

.film img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 42%;
}

.lead {
  padding: 22px 0 8px;
}

h1 {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", "STSong", "PMingLiU", serif;
  font-size: 32px;
  font-weight: 560;
  line-height: 1.22;
}

.lead p {
  margin: 12px 0 0;
  max-width: 40em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 0 8px;
}

.step,
.job,
.note,
.desk {
  min-width: 0;
}

.step {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
}

.step img {
  width: 100%;
  height: 112px;
  object-fit: cover;
}

.crop-counter { object-position: center 78%; }
.crop-customs { object-position: center 74%; }
.crop-hand { object-position: center 52%; }
.crop-write { object-position: center 40%; }
.crop-repair { object-position: center 55%; }
.crop-isle { object-position: center 48%; }

.step span,
.job em,
.note b {
  display: block;
}

.step span {
  padding: 8px 8px 12px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
}

.step i {
  display: block;
  margin-bottom: 2px;
  color: var(--red);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

.block,
.notes {
  padding-top: 28px;
}

h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.job {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0 0 10px;
  padding-right: 12px;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
}

.job img {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.job strong {
  display: block;
}

.job em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
}

.note {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0 0 10px;
  padding: 14px;
  background: var(--card);
  border-radius: 12px;
}

.note b {
  color: var(--red);
  font-size: 16px;
  line-height: 1.35;
}

.desk {
  margin-top: 28px;
  margin-bottom: 8px;
  padding: 18px 16px 20px;
  background: #fff;
  border-radius: 16px;
}

.desk > p {
  margin: 0 0 14px;
  color: var(--muted);
}

label {
  display: block;
  margin: 12px 0 6px;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fafafa;
}

.desk button {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
}

.out {
  min-height: 1.5em;
  margin: 12px 0 0;
}

.foot {
  padding: 28px 0 max(32px, env(safe-area-inset-bottom));
  color: var(--muted);
}

.foot p {
  margin: 0;
}

@media (max-width: 359px) {
  h1 { font-size: 28px; }
  .film,
  .film img { height: 168px; }
  .step img { height: 96px; }
}

@media (min-width: 768px) {
  .film,
  .film img { height: 320px; }
  .lead { padding-top: 32px; }
  h1 { font-size: 44px; }
  .steps { gap: 16px; padding-top: 22px; }
  .step img { height: 180px; }
  .block,
  .notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .block h2,
  .notes h2 { grid-column: 1 / -1; }
  .job { margin: 0; }
  .note { margin: 0; }
}

@media (min-width: 1024px) {
  .bar__inner { min-height: 72px; }
  .film,
  .film img { height: 420px; }
  h1 { font-size: 56px; }
  .step img { height: 220px; }
  .block,
  .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .job { grid-template-columns: 128px 1fr; }
  .job img { width: 128px; height: 128px; }
  .desk { padding: 28px 32px; }
  #sendForm {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 16px;
    align-items: end;
  }
  #sendForm label { margin: 0; }
  #sendForm button {
    grid-column: 1 / -1;
    width: 220px;
  }
  #sendOut { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
