.quick-guide {
  --paper: #fbf5e9;
  --ink: #17341f;
  --accent: #21462a;
  --accent-hover: #15331d;
  --line: #b6bb9e;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  line-height: 1.35;
  word-break: keep-all;
}

.quick-guide--postbox {
  --paper: #faf6f0;
  --ink: #392820;
  --accent: #973d31;
  --accent-hover: #773023;
  --line: #dfcfc2;
}

.quick-guide * { box-sizing: border-box; }
.quick-guide h1, .quick-guide p, .quick-guide figure { margin: 0; }
.quick-guide a:focus-visible { outline: 3px solid #005bb5; outline-offset: 4px; }

.quick-guide__sheet {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: clamp(12px, 2.5vh, 28px);
  padding-block: 16px;
}

.quick-guide__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.quick-guide__top h1 { font-size: clamp(16px, 2vw, 25px); font-weight: 750; }
.quick-guide__top a, .quick-guide__details {
  display: inline-grid;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-underline-offset: 3px;
  font-size: 14px;
}

.quick-guide__rule { text-align: center; font-size: clamp(16px, 1.6vw, 20px); font-weight: 650; }

.quick-guide__figures {
  width: min(100%, 1110px, calc((100svh - 336px) * 2 + 64px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(24px, 5vw, 64px) minmax(0, 1fr);
  align-items: center;
}

.quick-guide__figures--single {
  width: min(100%, 590px, calc((100svh - 175px) * 1.08));
  grid-template-columns: minmax(0, 1fr);
}

.quick-guide__figure { min-width: 0; display: grid; justify-items: center; }
.quick-guide__image { position: relative; max-width: 100%; }
.quick-guide__image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: max(180px, calc(100svh - 260px));
  border-radius: 12px;
}

.quick-guide__image--postbox-join {
  width: 100%;
  max-width: 576px;
  aspect-ratio: 576 / 187;
  overflow: hidden;
  border-radius: 12px;
}
.quick-guide__image--postbox-join img {
  position: absolute;
  bottom: 0;
  width: 100%;
  max-height: none;
}

.quick-guide__arrow { justify-self: center; font-size: clamp(20px, 4vw, 54px); font-weight: 850; }

.quick-guide__mark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border: clamp(2px, .35vw, 5px) solid #dcffb7;
  border-radius: clamp(6px, 2vw, 24px);
  pointer-events: none;
}

.quick-guide__mark--target { border-color: #fff2c8; }
.quick-guide--postbox .quick-guide__mark { border: 2px solid var(--paper); outline: 2px solid var(--accent); }

.quick-guide__footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px clamp(12px, 2vw, 30px);
  padding-top: 10px;
}
.quick-guide__launch {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 6px clamp(16px, 3vw, 46px);
  border-radius: 10px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: clamp(16px, 2vw, 25px);
  font-weight: 850;
}
.quick-guide__launch:hover { background: var(--accent-hover); }

@media (max-width: 600px) {
  .quick-guide__sheet { width: calc(100% - 24px); align-content: start; }
  .quick-guide__figures { width: 100%; }
  .quick-guide__figures--single { width: min(100%, 440px, calc((100svh - 150px) * 1.08)); }
  .quick-guide__image img { max-height: max(140px, calc(100svh - 226px)); }
  .quick-guide__image--postbox-join img { max-height: none; }
  .quick-guide__figures--stacked { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .quick-guide__figures--stacked img { max-height: max(100px, calc((100svh - 220px) / 2)); }
  .quick-guide__figures--stacked .quick-guide__arrow { rotate: 90deg; }
}
