/* JOIN HAMUYA：承認済みB案・カスタムHTMLウィジェット用 */
a.hjwb {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 300px;
  min-width: 0;
  margin: 0 auto;
  padding: 16px 18px 12px;
  border: 1px solid #D7CEC1;
  border-radius: 2px;
  background: #F2EBDF;
  color: #34312D;
  font-family: "Zen Maru Gothic", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
  text-align: left;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}
@media (min-width: 960px) {
  html[lang|="ja"] body.single-post a.hjwb {
    display: block;
  }
}
.hjwb * {
  box-sizing: border-box;
}
a.hjwb:hover {
  background: #EEE5D6;
  border-color: #B7A38B;
  color: #34312D;
  text-decoration: none;
}
a.hjwb:focus-visible {
  outline: 2px solid #C8392A;
  outline-offset: 4px;
}
.hjwb .hjwb-eyebrow {
  display: block;
  color: #C8392A;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .16em;
}
.hjwb .hjwb-heading {
  display: block;
  margin: 6px 0 0;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .015em;
}
a.hjwb[lang="zh-Hant"],
a.hjwb[lang="zh-Hant"] .hjwb-heading {
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
}
.hjwb .hjwb-middle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  align-items: center;
  gap: 4px;
  margin: 4px 0 8px;
}
.hjwb .hjwb-story {
  display: block;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
}
.hjwb .hjwb-story > span {
  display: block;
}
.hjwb .hjwb-scene {
  display: flex;
  justify-content: center;
  height: 80px;
  margin: 0;
  pointer-events: none;
}
.hjwb .hjwb-art {
  display: block;
  width: 84px;
  max-width: 100%;
  height: 80px;
  overflow: visible;
}
.hjwb .hjwb-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding-top: 12px;
  border-top: 1px solid #D7CEC1;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}
.hjwb .hjwb-arrow {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #C8392A;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hjwb .hjwb-art :is(
  .hjwb-person,
  .hjwb-leg-front,
  .hjwb-leg-back,
  .hjwb-knee-front,
  .hjwb-knee-back,
  .hjwb-arm-front,
  .hjwb-arm-back,
  .hjwb-pack
) {
  transform-box: view-box;
}
.hjwb .hjwb-walker {
  animation: hjwb-travel 4.8s 1.1s linear 1 both;
}
.hjwb .hjwb-person {
  transform-origin: 74px 79px;
  animation: hjwb-bob 4.8s 1.1s ease-in-out 1 both;
}
.hjwb .hjwb-leg-front {
  transform-origin: 77px 79px;
  animation: hjwb-front-leg 4.8s 1.1s ease-in-out 1 both;
}
.hjwb .hjwb-leg-back {
  transform-origin: 72px 78px;
  animation: hjwb-back-leg 4.8s 1.1s ease-in-out 1 both;
}
.hjwb .hjwb-knee-front {
  transform-origin: 78px 100px;
  animation: hjwb-front-knee 4.8s 1.1s ease-in-out 1 both;
}
.hjwb .hjwb-knee-back {
  transform-origin: 69px 100px;
  animation: hjwb-back-knee 4.8s 1.1s ease-in-out 1 both;
}
.hjwb .hjwb-arm-front {
  transform-origin: 72px 50px;
  animation: hjwb-back-leg 4.8s 1.1s ease-in-out 1 both;
}
.hjwb .hjwb-arm-back {
  transform-origin: 77px 50px;
  animation: hjwb-front-leg 4.8s 1.1s ease-in-out 1 both;
}
.hjwb .hjwb-pack {
  transform-origin: 65px 47px;
  animation: hjwb-pack-sway 4.8s 1.1s ease-in-out 1 both;
}
@keyframes hjwb-travel {
  0%, 8% { transform: translateX(0); }
  78%, 100% { transform: translateX(12px); }
}
@keyframes hjwb-bob {
  0%, 8%, 30%, 54%, 78%, 100% { transform: translateY(0); }
  18%, 42%, 66% { transform: translateY(-1.1px); }
}
@keyframes hjwb-front-leg {
  0%, 8%, 30%, 54%, 78%, 100% { transform: rotate(0); }
  18%, 66% { transform: rotate(-14deg); }
  42% { transform: rotate(12deg); }
}
@keyframes hjwb-back-leg {
  0%, 8%, 30%, 54%, 78%, 100% { transform: rotate(0); }
  18%, 66% { transform: rotate(12deg); }
  42% { transform: rotate(-14deg); }
}
@keyframes hjwb-front-knee {
  0%, 8%, 30%, 54%, 78%, 100% { transform: rotate(0); }
  18%, 66% { transform: rotate(4deg); }
  42% { transform: rotate(20deg); }
}
@keyframes hjwb-back-knee {
  0%, 8%, 30%, 54%, 78%, 100% { transform: rotate(0); }
  18%, 66% { transform: rotate(20deg); }
  42% { transform: rotate(4deg); }
}
@keyframes hjwb-pack-sway {
  0%, 8%, 30%, 54%, 78%, 100% { transform: rotate(0); }
  18%, 66% { transform: rotate(-1.4deg); }
  42% { transform: rotate(1.4deg); }
}
@media (prefers-reduced-motion: reduce) {
  a.hjwb,
  .hjwb * {
    animation: none;
    transition: none;
  }
}
/* New translated cards only: the installed Japanese widget remains untouched.
   Higher specificity is needed than .hjwb .hjwb-walker and the other joint rules. */
@media (prefers-reduced-motion: reduce) {
  a.hjwb[lang="zh-Hant"] *,
  a.hjwb[lang="en"] * {
    animation: none;
    transition: none;
  }
}
