*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  word-break: break-word;
  letter-spacing: 0;
}

body {
  background: #FFFFFF;
  color: #000000;
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 0.875rem;
  line-height: 1.7142857;
  font-weight: 300;
  text-spacing-trim: space-all;
}

.page {
  max-width: 563px;
  margin: 0 auto;
  padding: 24px 25px 60px;
  background: #FFFFFF;
}

.stack,
.block {
  display: flex;
  flex-direction: column;
}

.stack {
  gap: 24px;
}

.block {
  gap: 16px;
}

h1 {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  color: #333333;
}

p {
  font-size: 0.875rem;
  line-height: 1.7142857;
  font-weight: 300;
  color: #000000;
}

.badge-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.badge-card {
  background: #FFFFFF;
  border: 2px solid #333333;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.badge-card--single {
  padding: 24px;
}

.badge-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.badge-row--single {
  justify-content: center;
}

/*
  バッジ画像について:
  4バッジ(badge01.png)・マスターリーダー単体(badge02.png)は、
  枠・ロゴをFigma側で1枚に合成済みのフル画像。
  以前のようにフレームSVGとロゴPNGを層状に重ねる必要はなく、
  画像の自然な縦横比のまま幅いっぱいに表示するだけで良い。
*/
.badge-row__picture {
  display: block;
  width: 100%;
  height: auto;
}

.badge-row__picture--single {
  width: calc(267 / 831 * 100%);
  aspect-ratio: 1 / 1;
}

.step-image__picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.badge-card__title-row {
  display: flex;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.badge-card__title {
  flex: 1 0 0;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 600;
  color: #333333;
}

.badge-card__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/*
  取得可能バッジの一覧表示について:
  「・誌名」列は幅154pxで固定し、値列(デジタル版定期購読者)と16pxの間隔で揃える。
  Figma上は最も長い文言に合わせて154px、短い文言(週刊少年ジャンプ)は
  whitespace-nowrapで実測しているが、実装では4行とも154px固定で統一している。
*/
.badge-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.badge-list__row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.badge-list__title {
  flex-shrink: 0;
  width: 154px;
}

.badge-list__value {
  flex: 1 0 0;
  min-width: 0;
}

/*
  手順画像ブロックの座標系についての注記:
  .step-image は aspect-ratio: 324 / 244 の箱で、Figma の 324x244 キャンバスに対応する。
  各ステップ画像(subscription01-03.png / masterreadercard01-02.png)は、
  背景・切り抜き画像・赤枠ハイライトをFigma側で1枚に合成済みのフル画像であり、
  .step-image__picture 1枚を object-fit: cover で敷くだけで良い。
  以前のようにハイライトやビューポートを別レイヤーで重ねる必要はない。
  画像を差し替える場合は、縦横比が 324:244 と異なると
  object-fit: cover により上下または左右が切れるため注意する。
*/
.step-image {
  width: 100%;
  aspect-ratio: 324 / 244;
  background: #D9D9D9;
  position: relative;
  overflow: hidden;
}

@media (min-width: 563px) {
  .badge-card--single {
    padding: 16px 24px 12px;
  }
}
