/* Apple-grade install gate + iOS instruction sheet (ui/pwa/) */
:root {
  --oro-a2hs-z: 9999;
}

/* 表示順: 検索画面→遅延→モーダル。初期は非表示、is-visible でフェード＋カードアニメ */
.oro-a2hs-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--oro-a2hs-z);
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top) + 18px) 18px calc(env(safe-area-inset-bottom) + 18px);
  background: rgba(255,255,255,0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms cubic-bezier(0.22, 1, 0.36, 1);
}
.oro-a2hs-backdrop.is-visible {
  opacity: 1;
}
.oro-a2hs-backdrop.is-visible .oro-a2hs-card {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.oro-a2hs-backdrop .oro-a2hs-blocker {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  cursor: default;
}

.oro-a2hs-card {
  width: min(520px, 92vw);
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  padding: 22px 20px 18px;
  position: relative;
  pointer-events: auto;
  z-index: 1;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition: all 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ×: 背景無し・当たり判定44px・濃いグレー（黒ベタ禁止） */
/* 案内メインビジュアル（指定アセット）。既存レイアウトを崩さない範囲 */
.oro-a2hs-hero {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 12px;
}

.oro-a2hs-close {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(0,0,0,0.52);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.oro-a2hs-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(0,0,0,0.88);
  margin: 4px 0 8px;
}

.oro-a2hs-sub {
  font-size: 14px;
  color: rgba(0,0,0,0.58);
  margin: 0 0 16px;
  line-height: 1.5;
}

.oro-a2hs-primary {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 14px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  background: rgba(0,0,0,0.88);
  cursor: pointer;
}

.oro-a2hs-note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  text-align: center;
}

.oro-a2hs-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: calc(var(--oro-a2hs-z) + 1);
  transform: translateY(110%);
  transition: transform 240ms ease;
  padding: 14px 14px calc(env(safe-area-inset-bottom) + 14px);
}

.oro-a2hs-sheet.show {
  transform: translateY(0%);
}

.oro-a2hs-sheet-inner {
  max-width: 640px;
  margin: 0 auto;
  border-radius: 22px;
  background: rgba(20,20,20,0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: rgba(255,255,255,0.92);
  box-shadow: 0 18px 50px rgba(0,0,0,0.32);
  padding: 18px 18px 14px;
  position: relative;
}

.oro-a2hs-sheet-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 10px;
}

.oro-a2hs-steps {
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.6;
}

/* 手順シート×: 背景無し・当たり判定44px・濃いグレー */
.oro-a2hs-sheet-dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,0.72);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.oro-a2hs-topbanner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--oro-a2hs-z);
  transform: translateY(-120%);
  transition: transform 240ms ease, opacity 240ms ease;
  opacity: 0;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 8px;
  pointer-events: none;
}

.oro-a2hs-topbanner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.oro-a2hs-topbanner-inner {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 14px;
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.oro-a2hs-topbanner-text {
  font-size: 13px;
  color: rgba(0,0,0,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oro-a2hs-topbanner-btn {
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  color: rgba(0,0,0,0.86);
  padding: 8px 8px;
  cursor: pointer;
}
