/* 番地候補のタップ選択／候補がない場合の手入力。3LP共通。 */
.mmc-root .v5-block-field{display:grid;gap:8px;padding:13px;border:1px solid #b4e5eb;border-radius:14px;background:#f6fdff}
.mmc-root .v5-block-field .v5-manual-label{font-size:14px}
.mmc-root .v5-block-trigger{min-height:58px;border-color:#65c8d4;color:#073867;font-size:15px}
.mmc-root .v5-block-trigger span:first-child{overflow-wrap:anywhere;min-width:0}
.mmc-root .v5-block-switch{display:block;width:100%;min-height:42px;padding:9px 12px;border:1px dashed #81c6cf;border-radius:10px;background:#fff;color:#0b697f;font-size:12px;font-weight:900;cursor:pointer;text-align:center}
.mmc-root .v5-block-switch:hover,.mmc-root .v5-block-switch:focus-visible{border-color:#0baebf;background:#f0fcff}
.mmc-root .v5-block-help{color:#547681;font-size:11px;line-height:1.6;font-weight:700}
.mmc-root .v5-block-manual-entry{display:grid;gap:9px}
.mmc-root #v5-current-block{background:#fff;border-color:#74cbd4}
.mmc-root .v5-block-popup-intro{padding:8px 10px;margin:0 0 10px;border-radius:10px;background:#eefbfc;color:#315a60;font-size:12px;font-weight:750;line-height:1.5}
.mmc-root [data-v5-block-filter]{height:49px;min-height:49px;font-size:16px;margin-bottom:10px}
.mmc-root .v5-block-count{margin:3px 0 10px;color:#65818d;font-size:11px;line-height:1.5;font-weight:850}
.mmc-root .v5-block-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mmc-root .v5-block-choice{display:grid;align-content:center;min-height:54px;padding:8px 6px;border:2px solid #cce9ed;border-radius:11px;background:#fff;color:#073867;cursor:pointer;text-align:center;overflow-wrap:anywhere}
.mmc-root .v5-block-choice strong{font-size:14px;line-height:1.25;font-weight:950}
.mmc-root .v5-block-choice small{color:#688b94;font-size:9px;font-weight:750}
.mmc-root .v5-block-choice:hover,.mmc-root .v5-block-choice:focus-visible{border-color:#1fbbc8;background:#eafdff}
.mmc-root .v5-block-no-match{grid-column:1/-1;color:#607985;font-size:12px;line-height:1.6}
.mmc-root .v5-block-manual-in-popup{margin-top:15px}
.mmc-root .v5-block-field .v5-address-popup-body{min-height:0}
@media(max-width:560px){
 .mmc-root .v5-block-field{padding:11px}
 .mmc-root .v5-block-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .mmc-root .v5-block-choice{min-height:56px}
 .mmc-root .v5-block-choice strong{font-size:14px}
}

.mmc-root .v5-block-credit{color:#68858b;font-size:10px;line-height:1.5}
.mmc-root .v5-block-credit a{color:#0b697f;text-decoration:underline;text-underline-offset:2px}

/* local-only sample block data, explicitly distinguished from real address data */
.mmc-root .v5-block-demo-notice{padding:10px 12px;border-radius:9px;background:#fff8ea;color:#764d13;font-size:12px;font-weight:750;line-height:1.65}

/* v4.1.24: 町名選択直後に番地候補をインラインで表示 */
.mmc-root .v5-block-inline-list{display:grid;gap:8px;margin:0;padding:10px;border:1px solid #cae9ed;border-radius:12px;background:#fff}
.mmc-root .v5-block-inline-list .v5-block-popup-intro{margin:0}
.mmc-root .v5-block-inline-list [data-v5-block-filter]{width:100%;margin:0}
.mmc-root .v5-block-choice-scroll{max-height:340px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:2px 4px 3px 2px;outline-offset:2px}
.mmc-root .v5-block-selected{display:grid;gap:5px;padding:11px 13px;border:2px solid #58c5d1;border-radius:11px;background:#fff;color:#103d54}
.mmc-root .v5-block-selected span{font-size:11px;font-weight:700;color:#547681}
.mmc-root .v5-block-selected strong{font-size:18px;font-weight:900;line-height:1.4;overflow-wrap:anywhere}
.mmc-root .v5-block-loading{padding:12px;border:1px dashed #a5dce4;border-radius:10px;background:#fff;color:#315a60;font-size:13px;font-weight:750;line-height:1.5}
@media(max-width:560px){.mmc-root .v5-block-choice-scroll{max-height:300px;scrollbar-gutter:auto}}


/* final revision 2026-11-06 */
.v5-address-head-themed{align-items:flex-start;gap:12px;padding:4px 0 2px}
.v5-address-heading-copy{display:flex;flex-direction:column;gap:4px}
.v5-address-character{display:inline-flex;align-items:center;justify-content:center;width:64px;min-width:64px;height:64px;border-radius:18px;background:linear-gradient(180deg,#fffef6 0%,#eefbff 100%);box-shadow:0 8px 20px rgba(5,95,135,.12);border:1px solid rgba(18,125,173,.14);padding:6px}
.v5-address-character img{display:block;width:100%;height:auto}
.v5-address-card-current .v5-address-badge,.v5-address-card-dest .v5-address-badge{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:6px 12px;border-radius:999px;font-weight:800;letter-spacing:.02em}
.v5-address-card-current .v5-address-badge{background:#e7f7ff;color:#0b6fa9}
.v5-address-card-dest .v5-address-badge{background:#fff3da;color:#b26b00}
.v5-address-helper-copy{margin:0;font-size:13px;line-height:1.6;color:#4a6470}
.v5-dropdown-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}
.v5-dropdown-scroll{max-height:min(60vh,460px);overflow:auto;padding-right:2px;scroll-behavior:smooth}
.v5-kana-index{position:sticky;top:0;display:flex;flex-direction:column;gap:6px;padding-top:2px}
.v5-kana-index-btn{width:34px;min-height:28px;border:none;border-radius:999px;background:#eaf7ff;color:#0f6ca8;font-weight:800;font-size:12px;line-height:1;box-shadow:inset 0 0 0 1px rgba(15,108,168,.14);cursor:pointer}
.v5-kana-index-btn:hover,.v5-kana-index-btn:focus-visible{background:#d7efff;outline:none}
.v5-dropdown-kana-section{scroll-margin-top:8px}
.v5-block-popup-intro{line-height:1.7}
@media (max-width: 767px){
  .v5-address-character{width:56px;min-width:56px;height:56px;border-radius:16px}
  .v5-kana-index{gap:5px}
  .v5-kana-index-btn{width:30px;min-height:26px;font-size:11px}
  .v5-dropdown-scroll{max-height:min(58vh,420px)}
}

/* 2026-11-06: sticky kana index belongs to the popup body's scrolling context. */
.mmc-root .v5-dropdown-picker{align-items:stretch;position:relative}
.mmc-root .v5-kana-index{align-self:start;position:sticky;top:4px;z-index:4}
.mmc-root .v5-kana-index-btn.is-current{background:#0e82bc;color:#fff;box-shadow:0 0 0 2px #a3dbf1}

.mmc-root .v5-dropdown-kana-warning{border:1px solid #ead39b;background:#fff9eb;color:#684a0f;border-radius:10px;padding:9px 11px;font-size:12px;line-height:1.6;margin-bottom:10px}

/* 2026-11-06: first-number-first selector; incremental rendering of every match. */
.mmc-root .v5-block-first-step{display:grid;gap:10px;border:1px solid #bbe7ec;background:#fff;border-radius:13px;padding:12px}
.mmc-root .v5-block-first-title{color:#073d62;font-size:15px;font-weight:900;line-height:1.5}
.mmc-root .v5-block-first-step .v5-block-popup-intro{padding:9px 12px;background:#effaff;margin:0}
.mmc-root .v5-block-first-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(62px,1fr));gap:7px;max-height:240px;overflow-y:auto;padding:3px 2px;overscroll-behavior:contain}
.mmc-root .v5-block-first-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:53px;border:1.5px solid #b3dfe6;background:#fff;border-radius:10px;color:#0b5682;cursor:pointer;line-height:1.2}
.mmc-root .v5-block-first-choice strong{font-size:19px;font-weight:900}
.mmc-root .v5-block-first-choice small{font-size:10px;font-weight:700;color:#668394}
.mmc-root .v5-block-first-choice.is-active{border-color:#0e9fc5;background:#dff7fb;box-shadow:0 0 0 1px #5ec3d4}
.mmc-root .v5-block-first-choice:hover,.mmc-root .v5-block-first-choice:focus-visible{border-color:#087f9b;background:#ecfbff;outline-offset:1px}
.mmc-root .v5-block-second-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px;color:#0a4264}
.mmc-root .v5-block-second-head strong{font-size:14px;font-weight:900}
.mmc-root .v5-block-second-head span{font-size:11px;color:#567a87;font-weight:700}
.mmc-root .v5-block-search-label{display:grid;gap:6px;font-size:12px;color:#4a697b;font-weight:800}
.mmc-root .v5-block-search-label [data-v5-block-filter]{margin:0;width:100%;min-height:44px}
.mmc-root .v5-block-more-status{padding:10px 4px;margin:0;text-align:center;color:#6b8390;font-size:12px;font-weight:750;line-height:1.5}
@media(max-width:560px){
 .mmc-root .v5-block-first-step{padding:10px}
 .mmc-root .v5-block-first-title{font-size:14px}
 .mmc-root .v5-block-first-grid{grid-template-columns:repeat(auto-fill,minmax(56px,1fr));max-height:180px}
 .mmc-root .v5-block-first-choice{min-height:48px}
 .mmc-root .v5-block-first-choice strong{font-size:17px}
}

/* 2026-11-06: fixed 0-9 first-digit buckets and accessible jump target. */
.mmc-root .v5-block-first-grid{grid-template-columns:repeat(5,minmax(0,1fr));max-height:none;overflow:visible}
.mmc-root .v5-block-first-choice:disabled{opacity:.45;cursor:not-allowed;background:#f0f5f7;border-color:#d4e0e5;box-shadow:none}
.mmc-root .v5-block-second-head{scroll-margin-top:16px;outline-offset:4px}
@media(max-width:560px){.mmc-root .v5-block-first-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.mmc-root .v5-block-first-choice{min-width:0}}

/* 2026-11-06: Block selection uses the same modal as city/town selection. */
.mmc-root .v5-block-field-popup{gap:8px;padding:12px;border:1px solid #b4e5eb;border-radius:14px;background:#f6fdff}
.mmc-root .v5-block-popup-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:54px;text-align:left;cursor:pointer}
.mmc-root .v5-block-popup-trigger span:first-child{min-width:0;overflow-wrap:anywhere}
.mmc-root .v5-block-popup-layer .v5-address-popup-head{background:#f2fbfe}
.mmc-root .v5-block-popup-content{display:grid;align-content:start;gap:12px}
.mmc-root .v5-block-popup-location{padding:8px 11px;border-radius:10px;background:#f0f9fc;color:#335c71;font-size:12px;font-weight:800;line-height:1.55;overflow-wrap:anywhere}
.mmc-root .v5-block-popup-layer .v5-block-first-step{padding:12px}
.mmc-root .v5-block-popup-layer .v5-block-inline-list{padding:10px}
.mmc-root .v5-block-popup-layer .v5-block-choice-scroll{max-height:min(36vh,360px);scrollbar-gutter:stable;overscroll-behavior:contain}
.mmc-root .v5-block-popup-layer .v5-block-switch{min-height:46px;font-size:13px}
.mmc-root .v5-block-popup-layer .v5-block-manual-entry{padding:10px;border:1px solid #cae9ed;border-radius:12px;background:#fff}
.mmc-root .v5-block-popup-layer #v5-current-block{min-height:56px;font-size:16px}
@media(max-width:560px){
 .mmc-root .v5-block-field-popup{padding:10px}
 .mmc-root .v5-block-popup-layer .v5-address-popup-body{padding:11px}
 .mmc-root .v5-block-popup-layer .v5-block-popup-content{gap:10px}
 .mmc-root .v5-block-popup-layer .v5-block-first-step{padding:10px}
 .mmc-root .v5-block-popup-layer .v5-block-choice-scroll{max-height:min(31vh,300px);scrollbar-gutter:auto}
 .mmc-root .v5-block-popup-layer .v5-block-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
