/* Honyaku 固有：翻訳ウインドウとドロップ枠の再現（疑似スクリーンショット）。色は k386.css の変数を使う。 */

.hy-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 7% 7% 0;
  background: linear-gradient(160deg, #3a4a63, #1c2536);
}
.hy-doc {
  background: #fff;
  color: #1d1d1f;
  border-radius: 10px 10px 0 0;
  padding: 16px 18px 40px;
  font-size: 0.8rem;
  line-height: 1.7;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}
.hy-doc__bar { display: flex; gap: 6px; margin: -6px 0 12px; }
.hy-doc__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d8d8dc; }
.hy-doc mark { background: #b3d4ff; color: inherit; border-radius: 2px; padding: 0 1px; }
.hy-doc p { margin: 0 0 8px; }

/* 翻訳ウインドウ（アプリの羊皮紙の見た目を再現） */
.hy-win {
  width: 100%;
  max-width: 400px;
  padding: 14px;
  border-radius: 14px;
  color: #3b2a1a;
  font-size: 0.78rem;
  line-height: 1.55;
  background: #f1e4c6 url("assets/parchment.webp") center / cover;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(90, 60, 20, 0.18);
}
.hy-stage .hy-win { position: absolute; left: 6%; top: 40%; width: 62%; }
.hy-win__top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hy-win__close { width: 14px; height: 14px; border-radius: 50%; background: rgba(60, 40, 20, 0.35); flex: none; }
.hy-win__pair { flex: 1; display: flex; align-items: center; gap: 6px; }
.hy-win__pair span { flex: 1; text-align: center; padding: 3px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(90, 60, 20, 0.2); }
.hy-win__pair b { font-weight: 400; opacity: 0.6; }
.hy-win__src { font-size: 0.7rem; font-weight: 700; opacity: 0.7; margin: 0 0 6px; }
.hy-win__src span { font-weight: 400; margin-left: 6px; }
.hy-win__box { background: #fff; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.1); padding: 8px 10px; min-height: 4.5em; }
.hy-win__foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.hy-win__gear { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(60, 40, 20, 0.45); flex: none; }
.hy-win__foot .hy-sp { flex: 1; }
.hy-btn { padding: 2px 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(0, 0, 0, 0.14); white-space: nowrap; }
.hy-btn--main { background: #2f6fd6; color: #fff; border-color: #2f6fd6; }
.hy-win__status { font-size: 0.66rem; opacity: 0.65; margin: 6px 0 0; }

/* ドロップ枠 */
.hy-drop {
  display: grid; place-items: center; text-align: center;
  width: 220px; max-width: 100%; height: 84px; margin: 0 auto;
  border-radius: 14px;
  border: 2px dashed rgba(47, 111, 214, 0.75);
  background: rgba(235, 243, 255, 0.94);
  color: #1f4f9c; font-weight: 700; font-size: 0.85rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.hy-drop small { display: block; font-weight: 400; font-size: 0.72rem; opacity: 0.8; }
.hy-demo { padding: 22px; border-radius: var(--radius, 16px); background: linear-gradient(160deg, #3a4a63, #1c2536); }

@media (max-width: 560px) {
  .hy-stage { aspect-ratio: auto; padding: 16px 16px 16px; }
  .hy-stage .hy-win { position: relative; left: auto; top: auto; width: 100%; margin-top: -24px; }
  .hy-doc { padding-bottom: 36px; }
}

/* 画面を囲んで翻訳（範囲選択中の画面の再現） */
.hy-cap {
  position: relative;
  padding: 56px 22px 26px;
  border-radius: var(--radius, 16px);
  background: linear-gradient(160deg, #3a4a63, #1c2536);
  overflow: hidden;
}
.hy-cap__hint {
  position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; margin: 0;
  padding: 6px 10px; border-radius: 10px; text-align: center;
  background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 0.72rem; font-weight: 500;
}
.hy-cap__img {
  display: grid; place-items: center; height: 150px; border-radius: 10px;
  background: linear-gradient(135deg, #f2d9a8, #d9a066 55%, #9c5a2f);
}
.hy-cap__sel {
  position: relative; z-index: 2; padding: 10px 14px;
  outline: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.28);
  color: #fff; font-weight: 700; font-size: 0.95rem; line-height: 1.4; text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
