/* 承認済みCSSを保持。今回の追加は gn-x- 名前空間。 */
.gn-x-save,.gn-x-button{font:inherit;font-size:14px;font-weight:700;color:#075b70;background:#fff;border:1px solid #075b70;min-height:44px;min-width:44px;padding:8px 14px;cursor:pointer;box-sizing:border-box;line-height:1.7}
.gn-x-save[aria-pressed=true]{background:#edf4f4}
.gn-x-save[aria-pressed=true]::before{content:'✓ ';}
.gn-x-save:hover,.gn-x-button:hover{background:#edf4f4}
.gn-results .gn-card-actions{flex-wrap:wrap;gap:8px 16px}
.gn-x-company-save{display:block;margin-top:0;grid-column:2;justify-self:start}
.gn-x-result-head{display:flex;align-items:center;justify-content:space-between;gap:16px;position:relative}
.gn-x-result-head .gn-h2{margin-bottom:8px}
.gn-x-policy{font-size:14px;color:#075b70;flex-shrink:0}
.gn-x-policy summary{min-height:44px;display:flex;align-items:center;cursor:pointer;text-decoration:underline;text-underline-offset:4px;gap:8px;font-weight:700}
.gn-x-policy summary::after{content:'＋';text-decoration:none}
.gn-x-policy[open] summary::after{content:'−'}
.gn-x-policy p{position:absolute;z-index:3;right:0;top:44px;width:min(520px,100%);box-sizing:border-box;background:#edf4f4;border:1px solid #9ebbc1;color:#143f48;padding:18px 22px;box-shadow:0 4px 10px #b5cbd0}
.gn-x-near{border-top:3px solid #075b70;padding:24px 0;margin-top:28px;color:#143f48}
.gn-x-kicker{font-size:14px;font-weight:700;color:#075b70;margin:0!important}
.gn-x-near h2{font-size:26px;line-height:1.5;margin:4px 0 12px}
.gn-x-near-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:20px 0 12px}
.gn-x-pref{border-top:1px solid #9ebbc1;border-bottom:1px solid #9ebbc1;padding:16px 0;display:grid;grid-template-columns:1fr auto;gap:6px}
.gn-x-pref strong{font-size:18px;color:#075b70;white-space:nowrap}
.gn-x-pref span{font-size:14px;align-self:center}.gn-x-pref b{font-size:18px;margin-left:4px}
.gn-x-pref small{grid-column:1/-1;font-size:14px}
.gn-x-hint{font-size:14px;line-height:1.8;color:#143f48}
.gn-x-omitted{padding:24px;background:#edf4f4;font-size:14px}
.gn-x-checks{list-style:none;padding:0;margin:0 0 16px}
.gn-x-tick{display:flex;align-items:center;gap:12px;min-height:48px;cursor:pointer;font-size:14px;line-height:1.8}
.gn-x-checks li{border-bottom:1px solid #b5cbd0}
.gn-x-tick input{width:22px;height:22px;flex:0 0 22px;accent-color:#075b70;margin:0}
.gn-x-tick span{padding:8px 0}
.gn-x-copy-text{width:100%;box-sizing:border-box;min-height:160px;font:inherit;font-size:14px;color:#143f48;padding:12px;border:1px solid #648a93;background:#fff}
.gn-x-bar{position:fixed;bottom:0;left:0;right:0;z-index:15;border-top:1px solid #9ebbc1;background:#fff;padding:8px max(18px,calc((100% - 1160px)/2));display:flex;justify-content:space-between;align-items:center;gap:16px;box-shadow:0 -3px 12px #edf4f4;color:#143f48;font-size:14px}
.gn-x-bar p{margin:0}.gn-x-bar button{background:#075b70;color:#fff;min-width:180px}
.gn-x-dialog{border:0;padding:0;max-width:760px;width:calc(100% - 36px);max-height:86dvh;color:#143f48;background:#fff;box-sizing:border-box}
.gn-x-dialog::backdrop{background:#143f48b3}
.gn-x-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 24px;border-bottom:1px solid #9ebbc1;position:sticky;top:0;background:#fff;z-index:1}
.gn-x-dialog h2{font-size:22px;margin:0}.gn-x-dialog-body{padding:0 24px 20px;font-size:14px;line-height:1.8}
.gn-x-item{border-top:1px solid #9ebbc1;padding:16px 0}.gn-x-item h3{font-size:17px;margin:0 0 8px}.gn-x-item dl{margin:0;display:grid;grid-template-columns:70px 1fr;gap:4px 12px}.gn-x-item dd{margin:0}.gn-x-item-actions{display:flex;gap:12px;align-items:center;margin-top:12px}.gn-x-item a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#075b70;color:#fff;min-height:44px;padding:0 18px;font-weight:700}.gn-x-item-actions span{flex:1}
.gn-x-live{position:fixed;bottom:78px;left:18px;z-index:20;background:#edf4f4;color:#143f48;padding:12px;border:1px solid #9ebbc1;max-width:calc(100% - 36px);box-sizing:border-box;font-size:14px}.gn-x-live:empty{display:none}
.gn-x-active{padding-bottom:80px}
.gn-x-bar[hidden],.gn-x-copy-text[hidden]{display:none!important}
.gn-x-item dd{overflow-wrap:anywhere}.gn-x-item dd:nth-of-type(2){word-break:keep-all;overflow-wrap:normal}
@media(max-width:600px){.gn-x-result-head #count{display:block;font-size:14px;line-height:1.8}.gn-x-result-head .gn-h2{white-space:nowrap}.gn-x-company-save{margin-top:12px}}
.gn-x-save:focus-visible,.gn-x-button:focus-visible,.gn-x-tick input:focus-visible,.gn-x-dialog a:focus-visible{outline:3px solid #a1431a;outline-offset:3px}
@media(max-width:600px){.gn-x-result-head{gap:4px;align-items:flex-start}.gn-x-result-head .gn-h2{font-size:22px;max-width:190px}.gn-x-policy{max-width:136px}.gn-x-policy summary{line-height:1.5}.gn-x-policy p{top:54px}.gn-x-near{padding:18px 0;margin-top:24px}.gn-x-near h2{font-size:22px}.gn-x-near-grid{grid-template-columns:1fr 1fr;gap:0 20px;margin-top:16px}.gn-x-pref{border-bottom:0;padding:14px 0}.gn-x-bar{padding:8px 18px;gap:8px}.gn-x-bar p{max-width:175px;line-height:1.5}.gn-x-bar button{min-width:128px}.gn-x-dialog{max-height:88dvh}.gn-x-dialog-head{padding:12px 16px}.gn-x-dialog-body{padding:0 16px 16px}.gn-x-item{padding:14px 0}.gn-x-dialog h2{font-size:20px}}

/* 直し2：面のある住宅イラスト。承認済みCSSは変更しない。 */
.gn-v-art,.gn-v-card-art,.gn-v-side,.gn-v-region,.gn-v-head-art,.gn-v-answer-art,.gn-v-footer-art{display:block;object-fit:contain;max-width:100%;height:auto}
.gn-v-side{width:210px;float:right;margin:0 0 8px 20px;max-width:34%}
.gn-v-flow{display:flex;align-items:center;gap:12px;max-width:530px;margin:8px 0}.gn-v-flow img{width:calc((100% - 68px)/3);height:auto}.gn-v-flow span{color:#075b70;font-size:24px}
.gn-v-page a:focus-visible,.gn-v-page button:focus-visible,.gn-v-page input:focus-visible,.gn-v-page summary:focus-visible{outline:3px solid #a1431a;outline-offset:3px}
@media(max-width:600px){.gn-v-side{width:130px;margin:0 0 4px 10px;max-width:36%}.gn-v-flow{gap:6px;margin:4px 0}.gn-v-flow img{width:calc((100% - 52px)/3)}}

.gn-v-page .gn-page-head{position:relative}.gn-v-head-art{position:absolute;right:0;top:0;width:240px;height:145px;pointer-events:none;opacity:.95}.gn-v-page .gn-page-head .gn-h1{padding-right:240px}.gn-v-page .gn-x-near>.gn-v-region{float:right;width:230px;margin:0 0 10px 20px}
@media(max-width:600px){.gn-v-head-art{width:105px;height:65px;right:0;top:2px}.gn-v-page .gn-page-head .gn-h1{padding-right:90px}.gn-v-page .gn-x-near>.gn-v-region{width:130px;margin-left:10px}}
@media(max-width:600px){.gn-v-page:has(.gn-results) .gn-page-head .gn-h1{padding-right:0}.gn-v-page:has(.gn-results) .gn-v-head-art{top:58px;width:95px;height:60px}}.gn-v-page .gn-v-flow{width:100%;box-sizing:border-box}.gn-v-page .gn-v-flow>img{flex:1 1 0;width:0;min-width:0}.gn-v-page .gn-v-flow>span{flex:0 0 20px;text-align:center}.gn-v-page .top-footer .gn-v-footer-art{width:145px;height:auto;max-width:40%;object-fit:contain;float:right}.gn-v-page .gn-x-dialog-head .gn-v-dialog-art{width:110px;height:65px;object-fit:contain;flex-shrink:0}.gn-v-page .gn-page-head:not(:has(.gn-v-head-art)) .gn-h1{padding-right:0}@media(min-width:601px) and (max-width:900px){.gn-v-page .gn-company-card{grid-template-columns:1fr}.gn-v-page .gn-company-card>*{min-width:0;max-width:100%}.gn-v-page .gn-page-head .gn-h1{padding-right:0}.gn-v-page .gn-v-head-art{top:60px;width:110px;height:65px}}.gn-v-page:not(:has(.gn-results,.gn-x-near)) [aria-labelledby="h-prepare"]>.gn-v-side{width:290px;max-width:42%}@media(max-width:600px){.gn-v-page:not(:has(.gn-results,.gn-x-near)) [aria-labelledby="h-prepare"]>.gn-v-side{float:none;width:100%;max-width:100%;height:150px;margin:0 0 8px}}
/* 直し3：画面写しがあるカードだけに追加。既存の列と操作は維持。 */
.gn-company-card .gn-card-shot{grid-column:1;grid-row:4;display:flex;align-items:center;gap:12px;margin:8px 0 0;min-width:0;color:#143f48;font-size:14px;line-height:1.6}
.gn-card-shot__link{display:block;flex:0 0 128px;width:128px;min-width:44px;min-height:44px}
.gn-card-shot__image{display:block;width:128px;max-width:100%;height:auto;border:1px solid #9ebbc1;box-sizing:border-box}
.gn-card-shot__caption{margin:0;min-width:0;font-size:14px;line-height:1.6;color:#143f48}
.gn-card-shot__link:focus-visible{outline:3px solid #a1431a;outline-offset:3px}
@media(max-width:900px){.gn-company-card .gn-card-shot{grid-column:1/-1;margin:8px 0 12px}}
@media(min-width:901px){.gn-company-card:has(>.gn-card-shot) .gn-dl dd:nth-of-type(1){grid-row:3}}

/* 本番：近くの県をリンクにしたときの文字色（見た目は見本のまま） */
a.gn-x-pref{color:inherit;text-decoration:none}a.gn-x-pref:hover small,a.gn-x-pref:focus-visible small{text-decoration:underline}
