@import url("../../css/styles.css");

/* =========================================================
   App Guide page
   共通本文（content__*）は /css/styles.css を使用
   ここでは App Guide 固有要素だけ定義
========================================================= */

:root {
  --guide-border: #efd4e2;
  --guide-title: #1d2f48;
  --guide-text: #6f7f95;
}

.guide {
  background: #fff;
}

/* Download box */
.guide-download {
  padding: 18px 20px 22px;
  border: 1px solid var(--guide-border);
  border-radius: 14px;
  background: #fff;
}

.guide-download__title {
  margin: 0;
  color: var(--guide-title);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.guide-download__badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--guide-border);
  flex-wrap: wrap;
}

.guide-download__badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.guide-download__badge {
  display: block;
  width: auto;
  height: 42px;
}

.guide-download__badge--google {
  height: 42px;
}

/* Steps */
.guide-steps {
  margin-top: 30px;
}

.guide-steps__title {
  margin: 0 0 18px;
  color: var(--guide-title);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
}

.guide-steps__list {
  display: grid;
  gap: 12px;
}

.guide-step-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--guide-border);
  border-radius: 14px;
  background: #fff;
}

.guide-step-card__number {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  background: var(--c-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.guide-step-card__body {
  min-width: 0;
}

.guide-step-card__title {
  margin: 0;
  color: var(--guide-title);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

.guide-step-card__text {
  margin: 4px 0 0;
  color: var(--guide-text);
  font-size: 14px;
  line-height: 1.7;
}

.trademark {
  margin-top: 4em;
  color: var(--guide-text);
  font-size: 8px;
  line-height: 1.5;
}

/* ページ固有レスポンシブ差分だけ */
@media (max-width:768px) {
  .guide-download {
    padding: 16px;
  }

  .guide-download__badges {
    justify-content: flex-start;
    gap: 12px;
  }

  .guide-download__badge {
    height: 40px;
  }

  .guide-download__badge--google {
    height: 42px;
  }

  .guide-steps__title {
    font-size: 18px;
  }

  .guide-step-card {
    padding: 14px;
  }

  .guide-step-card__title {
    font-size: 14px;
  }

  .guide-step-card__text {
    font-size: 13px;
  }
}

@media (max-width:480px) {
  .guide-download__badges {
    gap: 8px;
  }

  .guide-download__badge-link {
    padding: 4px;
  }

  .guide-step-card {
    gap: 10px;
  }

  .guide-step-card__number {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
}

/* WCAG 2.2 targeted improvements for Download page (layout-safe) */
a:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.guide-download__badge-link:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 4px;
  border-radius: 8px;
}

:root {
  --guide-text: #475569;
}

.trademark {
  font-size: 12px;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: #fff;
  color: #1f2328;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  top: 16px;
}