/* My Japan Friend · v51.2 illustrated guide. Isolated selectors to avoid search UI changes. */
.mjf-how{margin:18px 0 28px;padding:24px 25px 20px;border:1px solid #d9e8f1;border-radius:20px;background:linear-gradient(140deg,#f2f9ff 0%,#f9fdff 57%,#fff8f1 100%);color:#1b3450;box-shadow:0 5px 26px rgba(27,66,98,.05)}
.mjf-how *{box-sizing:border-box}
.mjf-how-header{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:18px}
.mjf-how-eyebrow{display:block;font-weight:800;font-size:11px;letter-spacing:.105em;color:#1673b8;margin-bottom:5px}
.mjf-how-header h2{font-size:clamp(22px,2.4vw,30px);line-height:1.26;letter-spacing:-.035em;margin:0;color:#193451}
.mjf-how-header p{font-size:13.5px;line-height:1.65;margin:7px 0 0;color:#50697e;max-width:800px}
.mjf-how-action{display:inline-flex;gap:12px;align-items:center;justify-content:center;flex:none;border-radius:10px;background:#e94d40;color:#fff!important;padding:11px 18px;min-height:42px;font-size:13px;font-weight:750;text-decoration:none!important}
.mjf-how-action:hover,.mjf-how-action:focus-visible{background:#cd3e32;color:#fff}
.mjf-how-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;list-style:none;margin:0;padding:0}
.mjf-how-step{min-width:0;border:1px solid #e2ebf1;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 2px 10px rgba(41,72,99,.03)}
.mjf-how-art{height:150px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fff 0%,#eaf6fc 100%);overflow:hidden}
.mjf-how-step:nth-child(2) .mjf-how-art{background:linear-gradient(180deg,#fff 0%,#fef2ed 100%)}
.mjf-how-step:nth-child(3) .mjf-how-art{background:linear-gradient(180deg,#fff 0%,#f1f6fc 100%)}
.mjf-how-step:nth-child(4) .mjf-how-art{background:linear-gradient(180deg,#fff 0%,#effaf4 100%)}
.mjf-how-art img{width:100%;max-width:246px;height:150px;object-fit:contain;display:block}
.mjf-how-copy{padding:13px 13px 17px;min-height:128px}
.mjf-how-num{display:inline-flex;align-items:center;justify-content:center;background:#e0effc;color:#166eae;border-radius:7px;font-size:11px;font-weight:800;min-width:29px;height:25px;vertical-align:middle;margin-right:7px}
.mjf-how-copy h3{display:inline;font-size:15px;line-height:1.55;margin:0;vertical-align:middle;color:#193451}
.mjf-how-copy p{font-size:12px;line-height:1.65;color:#62788b;margin:8px 0 0;overflow-wrap:anywhere;word-break:keep-all}
.mjf-how-policies{display:grid;grid-template-columns:1fr 1fr 1.9fr;gap:15px;align-items:center;margin-top:15px;padding:13px 17px;border:1px solid #dbe7ef;border-radius:12px;background:#fffdfc}
.mjf-how-policy{display:flex;gap:11px;align-items:center;min-width:0}
.mjf-how-policy-icon{display:flex;flex:none;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#e4f2ff;color:#136bab;font-size:20px;font-weight:750}
.mjf-how-policy span:last-child{min-width:0}
.mjf-how-policy strong{font-size:12px;display:block;line-height:1.45}
.mjf-how-policy small{display:block;font-size:11px;line-height:1.5;color:#c3453f;font-weight:700}
.mjf-how-note{font-size:11px;line-height:1.65;color:#50677c;margin:0;border-left:1px solid #e4e9ef;padding-left:14px}
.mjf-how-note a{color:#1765a5;text-underline-offset:3px;font-weight:700}
@media(max-width:1050px){.mjf-how{padding:20px 18px}.mjf-how-steps{gap:9px}.mjf-how-copy{padding:11px;min-height:145px}.mjf-how-art,.mjf-how-art img{height:123px}.mjf-how-copy h3{font-size:13px}.mjf-how-policies{grid-template-columns:1fr 1fr}.mjf-how-note{grid-column:1 / -1;border-left:0;border-top:1px solid #e4e9ef;padding:9px 0 0}}
@media(max-width:700px){.mjf-how{padding:15px 12px 14px;margin:15px 0 20px;border-radius:14px}.mjf-how-header{align-items:flex-start;margin-bottom:12px;gap:10px}.mjf-how-header h2{font-size:20px}.mjf-how-header p{font-size:12px;line-height:1.55}.mjf-how-action{font-size:11px;padding:8px 10px;min-height:36px;white-space:nowrap}.mjf-how-steps{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(185px,72%);grid-template-columns:none;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:1px 2px 8px;gap:9px}.mjf-how-step{scroll-snap-align:start}.mjf-how-art,.mjf-how-art img{height:125px}.mjf-how-copy{min-height:120px;padding:10px 12px 12px}.mjf-how-policies{grid-template-columns:1fr 1fr;gap:7px 10px;margin-top:10px;padding:10px}.mjf-how-policy{align-items:flex-start;gap:6px}.mjf-how-policy-icon{width:25px;height:25px;font-size:15px}.mjf-how-policy strong{font-size:10.5px}.mjf-how-policy small{font-size:10px}.mjf-how-note{font-size:10px}}
@media(max-width:380px){.mjf-how-header{display:block}.mjf-how-action{margin-top:9px}.mjf-how-policies{grid-template-columns:1fr}.mjf-how-note{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.mjf-how-steps{scroll-behavior:auto}}

.mjf-how-swipehint{display:none;font-size:11px;color:#526f8e;margin:0 0 8px}
@media(max-width:700px){.mjf-how-swipehint{display:block}}
