:root{--ink:#17231f;--muted:#607068;--paper:#f5f7f5;--surface:#fff;--line:#dce4df;--green:#176b4d;--green-dark:#0e4e38;--green-pale:#e5f2eb;--gold:#d5a846;--danger:#a33b35;--danger-bg:#fff0ee;--shadow:0 18px 45px rgba(21,50,39,.09);font-family:"Hiragino Sans","Yu Gothic UI","Yu Gothic",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:16px}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 85% 10%,rgba(213,168,70,.1),transparent 27rem),var(--paper)}a{color:inherit}.site-header{height:72px;padding:0 clamp(1rem,4vw,3.5rem);display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10;backdrop-filter:blur(12px)}.brand{display:inline-flex;align-items:center;gap:.75rem;text-decoration:none;font-weight:800;letter-spacing:.04em}.brand-large{font-size:1.15rem}.brand-mark{display:grid;place-items:center;width:2.35rem;height:2.35rem;border-radius:.7rem;background:var(--green);color:#fff;font-size:1.05rem;box-shadow:inset 0 -3px 0 rgba(0,0,0,.12)}.header-account{display:flex;align-items:center;gap:1rem}.account-name{font-weight:700}.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr)}.login-intro{padding:clamp(2rem,7vw,7rem);background:linear-gradient(145deg,#123d30,#176b4d 72%,#1e7857);color:#fff;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.login-intro:after{content:"";position:absolute;width:22rem;height:22rem;border:1px solid rgba(255,255,255,.18);border-radius:50%;right:-7rem;bottom:-8rem}.login-intro h1{font-family:inherit;font-size:clamp(2.4rem,5vw,4.8rem);line-height:1.25;letter-spacing:.04em;margin:3.5rem 0 1.5rem;max-width:12ch}.login-intro p{font-size:1.08rem;color:rgba(255,255,255,.78)}.neighborhood-lines{display:flex;gap:.65rem;margin-top:4rem}.neighborhood-lines span{height:4px;background:var(--gold);border-radius:2px}.neighborhood-lines span:nth-child(1){width:5rem}.neighborhood-lines span:nth-child(2){width:2.5rem;opacity:.7}.neighborhood-lines span:nth-child(3){width:1rem;opacity:.4}.login-panel{display:grid;place-items:center;padding:2rem}.panel-card{width:min(100%,430px);background:var(--surface);padding:clamp(1.6rem,4vw,3rem);border:1px solid var(--line);border-radius:1.25rem;box-shadow:var(--shadow)}.eyebrow{text-transform:uppercase;letter-spacing:.13em;color:var(--green);font-weight:800;font-size:.78rem;margin:0 0 .5rem}.panel-card h2,.page-heading h1{font-family:inherit;font-size:clamp(1.9rem,4vw,2.7rem);margin:.2rem 0 2rem}.form-stack{display:grid;gap:1.25rem}.form-stack label{display:grid;gap:.5rem;font-weight:700}.form-stack input,.form-stack textarea,.form-stack select{width:100%;font:inherit;color:var(--ink);background:#fff;border:1px solid #bdcac3;border-radius:.65rem;padding:.82rem .9rem;outline:none}.form-stack input:focus,.form-stack textarea:focus,.form-stack select:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(23,107,77,.13)}.form-stack small,.help-text{color:var(--muted);line-height:1.6;font-weight:400}.help-text{font-size:.88rem;margin:1.4rem 0 0}.button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:.65rem 1rem;border-radius:.65rem;border:1px solid transparent;font:inherit;font-weight:800;text-decoration:none;cursor:pointer}.button-primary{background:var(--green);color:#fff}.button-primary:hover{background:var(--green-dark)}.button-quiet{background:transparent;border-color:var(--line);color:var(--ink)}.button-wide{width:100%}.page-shell{width:min(1180px,calc(100% - 2rem));margin:0 auto;padding:clamp(2rem,6vw,5rem) 0}.page-narrow{max-width:760px}.page-heading{display:flex;justify-content:space-between;align-items:end;gap:2rem;margin-bottom:2rem}.page-heading h1{margin-bottom:.5rem}.page-heading p{color:var(--muted);margin:.3rem 0}.association-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:1.25rem}.association-card,.content-card,.form-card{background:var(--surface);border:1px solid var(--line);border-radius:1rem;box-shadow:0 7px 25px rgba(21,50,39,.05)}.association-card{padding:1.4rem;text-decoration:none;transition:.2s transform,.2s box-shadow}.association-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.association-card h2{font-size:1.3rem;margin:1.4rem 0 .5rem}.association-card p{color:var(--muted);margin:0}.card-top{display:flex;align-items:center;justify-content:space-between}.status-badge{display:inline-flex;background:var(--green-pale);color:var(--green-dark);padding:.3rem .65rem;border-radius:999px;font-size:.8rem;font-weight:800}.empty-state{text-align:center;background:var(--surface);border:1px dashed #b9c7c0;border-radius:1rem;padding:clamp(2.5rem,8vw,5rem)}.empty-mark,.hero-monogram{display:grid;place-items:center;margin:0 auto 1.2rem;width:4rem;height:4rem;border-radius:50%;background:var(--green-pale);color:var(--green);font-weight:900;font-size:1.4rem}.alert{border-radius:.7rem;padding:.85rem 1rem;margin-bottom:1.25rem}.alert-error{background:var(--danger-bg);color:var(--danger);border:1px solid #efc7c3}.alert-success{background:var(--green-pale);color:var(--green-dark)}.form-card{padding:clamp(1.25rem,4vw,2.25rem)}.form-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:.5rem}.required{color:var(--danger);font-size:.8rem}.input-prefix{display:flex;align-items:stretch}.input-prefix span{display:flex;align-items:center;padding:0 .8rem;background:#edf1ee;border:1px solid #bdcac3;border-right:0;border-radius:.65rem 0 0 .65rem}.input-prefix input{border-radius:0 .65rem .65rem 0}.back-link{display:inline-block;color:var(--green);font-weight:700;margin-bottom:1.5rem}.association-hero{background:linear-gradient(135deg,#fff,#eef5f1);border:1px solid var(--line);border-radius:1.25rem;padding:clamp(1.5rem,5vw,3.5rem);display:flex;justify-content:space-between;align-items:center;margin-bottom:1.25rem}.association-hero h1{font-family:inherit;font-size:clamp(2rem,5vw,3.7rem);margin:1rem 0 .6rem}.association-hero p{color:var(--muted)}.hero-monogram{margin:0;width:6rem;height:6rem;font-size:2rem;border-radius:1.5rem}.detail-grid{display:grid;grid-template-columns:2fr 1fr;gap:1.25rem}.content-card{padding:1.5rem}.content-card h2{margin:.2rem 0 1rem}.body-copy{white-space:pre-wrap;line-height:1.9;color:#405048}.compact-card dl,.compact-card dl div{display:grid;gap:.3rem}.compact-card dl{gap:1.2rem}.compact-card dt{color:var(--muted);font-size:.85rem}.compact-card dd{margin:0;font-weight:700}@media(max-width:760px){.login-shell{display:block}.login-intro{min-height:38vh;padding:2rem}.login-intro h1{font-size:2.25rem;margin:2.3rem 0 1rem}.neighborhood-lines{display:none}.login-panel{padding:1rem;margin-top:-1.5rem;position:relative}.site-header{height:64px}.account-name{display:none}.page-heading{align-items:flex-start;flex-direction:column}.detail-grid{grid-template-columns:1fr}.association-hero{align-items:flex-start}.hero-monogram{width:4rem;height:4rem;flex:0 0 auto}.form-actions{flex-direction:column-reverse}.form-actions .button{width:100%}}
:root{--announcement-district-gap:.6rem}.announcement-district-list{display:grid;gap:var(--announcement-district-gap);padding:.35rem 0 .5rem}.announcement-district{border:1px solid var(--line);border-radius:.65rem;background:#fff;overflow:hidden}.announcement-district>summary{padding:.75rem 1rem;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:1rem;list-style-position:inside}.announcement-district>summary::marker{color:var(--green)}.announcement-district>summary span:first-child{display:flex;align-items:center;gap:.7rem}.announcement-district>summary small{color:var(--muted)}.announcement-district-members{border-top:1px solid var(--line);padding-left:.75rem}

/* Association documents */
.drive-breadcrumbs{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.2rem 0;overflow-wrap:anywhere}
.drive-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.5rem 0;border-bottom:1px solid #dde4e9}
.drive-item[hidden]{display:none}.drive-item-name{display:grid;gap:.35rem;min-width:0;overflow-wrap:anywhere}.drive-item-name small{color:#596979}
.drive-item-title{display:flex;align-items:center;gap:.65rem;min-width:0;text-decoration:none}.drive-item-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drive-item-title:hover strong{text-decoration:underline}.drive-icon{flex:0 0 30px}.drive-icon-folder{color:#c28b20}.drive-icon-excel{color:var(--green)}.drive-icon-pdf{color:#b34238}.drive-icon-document{color:#496173}.drive-item-name{flex:1}.drive-item-name small{padding-left:calc(30px + .65rem)}.drive-items{margin-top:.5rem}.drive-item-actions{display:flex;flex-wrap:wrap;gap:.5rem;flex-shrink:0}.drive-item-actions .button{min-height:44px}
.drive-pdf{width:100%;height:75vh;border:1px solid #d6e0e8;background:#fff}.drive-sheet{overflow:auto;max-height:65vh}.drive-sheet td,.drive-sheet th{padding:.5rem;border:1px solid #dae2e8;min-width:5rem;max-width:24rem;overflow-wrap:anywhere;white-space:pre-wrap}.drive-sheet th{position:sticky;left:0;background:#eef3f7}.drive-sheet caption{text-align:left}.drive-disconnect{margin-top:2rem}
@media(max-width:700px){.drive-item{align-items:flex-start;flex-direction:column}.drive-item-name{width:100%}.drive-item-actions{width:100%}.drive-item-actions .button{flex:1}}

.drive-settings-page .drive-settings-heading{display:block}
.drive-settings-heading h1{white-space:nowrap;font-size:clamp(1.3rem,5.4vw,2.7rem)}
.drive-settings-heading p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:.6rem}
.drive-copy-row{display:flex;align-items:center;gap:.65rem}
.drive-copy-row input{flex:1;min-width:0;width:100%;font:inherit;padding:.75rem;border:1px solid #bdcac3;border-radius:.65rem;background:#fff;color:var(--ink)}
.drive-copy-row .button{flex-shrink:0}
.drive-copy-status{min-height:1.4em;margin:.4rem 0 0;color:var(--green-dark);font-size:.9rem}

.operation-busy { border: 0; border-radius: 16px; padding: 32px; max-width: calc(100vw - 40px); text-align: center; color: #17352b; box-shadow: 0 16px 60px #0003; }
.operation-busy::backdrop { background: rgb(0 0 0 / 45%); }
.operation-busy strong { display: block; font-size: 1.15rem; }
.operation-busy p { margin-bottom: 0; }
.operation-busy-spinner { display: inline-block; width: 32px; height: 32px; margin-bottom: 16px; border: 4px solid #dce8e2; border-top-color: #276b50; border-radius: 50%; animation: operation-spin 1s linear infinite; }
@keyframes operation-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .operation-busy-spinner { animation: none; } }

.mfa-card { max-width: 640px; margin: 24px auto; }
.mfa-qr { display: block; max-width: 100%; margin: 20px auto; }
.mfa-secret { display: block; overflow-wrap: anywhere; padding: 12px; }
.mfa-recovery, .mfa-logout { margin-top: 24px; }
.mfa-code-list { padding-left: 20px; line-height: 2; font-size: .95rem; overflow-wrap: anywhere; }
.mfa-card .form-stack .checkbox-label { display: flex; align-items: flex-start; gap: .65rem; line-height: 1.6; }
.mfa-card .checkbox-label input[type="checkbox"] { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin: .25rem 0 0; padding: 0; accent-color: var(--green); }
.privacy-audit-filters { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.privacy-audit-filters .form-actions { grid-column: 1 / -1; }
.privacy-audit-list { display: grid; gap: 1rem; }
.privacy-audit-item { padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); overflow-wrap: anywhere; }
.privacy-audit-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.privacy-audit-item dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.privacy-audit-item dt { color: var(--muted); font-size: .85rem; }
.privacy-audit-item dd { margin: .35rem 0 0; }
.privacy-audit-item small { display: block; color: var(--muted); margin-top: .25rem; }
.privacy-audit-targets { max-height: 240px; overflow: auto; padding-left: 1.25rem; }
@media print { .mfa-card form, .mfa-card button { display: none; } .mfa-card { box-shadow: none; } }

.site-footer { max-width: 1200px; margin: 2rem auto 0; padding: 1.5rem 24px 2rem; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .875rem; }
.site-footer nav, .legal-related { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem 1.5rem; }
.site-footer a, .legal-document a { color: var(--green-dark); text-underline-offset: .2em; }
.site-footer p { margin: 1rem 0 0; }
.legal-page { max-width: 900px; }
.legal-page h1 { font-size: clamp(1.6rem, 5vw, 2.7rem); overflow-wrap: anywhere; }
.legal-document { line-height: 1.9; overflow-wrap: anywhere; }
.legal-document section { margin-top: 2rem; scroll-margin-top: 6rem; }
.legal-document h2 { font-size: 1.2rem; line-height: 1.6; }
.legal-preparation-note { padding: 1rem; background: var(--bg); border-left: 3px solid var(--line); font-size: .9rem; }
.legal-toc { margin: 1.5rem 0; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: .75rem; }
.legal-toc ol { padding-left: 1.5rem; }
.legal-related { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .site-footer nav { flex-direction: column; align-items: center; } }
.legal-contact { margin: 1rem 0 1.5rem; }
.legal-contact p { margin: .5rem 0; }
.legal-contact-email { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; vertical-align: middle; }
.legal-contact-email svg { flex-shrink: 0; }
.legal-contact-email span { min-width: 0; overflow-wrap: anywhere; }

/* 緊急・危険情報 */
.danger-section{border:2px solid #c62828}.danger-section h1,.danger-section h2,.danger-section .eyebrow{color:#b71c1c}.danger-card{display:flex;gap:16px;padding:16px 0;color:inherit;text-decoration:none;border-bottom:1px solid #efcccc}.danger-card img{width:100px;height:80px;object-fit:cover;border-radius:8px}.danger-card span{min-width:0;overflow-wrap:anywhere}.danger-card strong{display:block;color:#b71c1c}.danger-card small{display:block;margin-top:8px}.danger-photo{max-width:100%;max-height:600px;object-fit:contain}.danger-body{white-space:pre-wrap;overflow-wrap:anywhere}.danger-map{width:100%;height:380px;border:0;border-radius:10px}.danger-fab{position:fixed;right:20px;bottom:calc(24px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;max-width:calc(100vw - 16px);min-height:44px;padding:6px 16px;border:0;border-radius:16px;background:#7f1d1d;color:white;font:inherit;font-weight:800;box-shadow:0 4px 16px #0004;z-index:900;cursor:grab;touch-action:none;user-select:none;text-align:left}.danger-fab>span:first-child{font-size:28px;line-height:1}.danger-fab:focus-visible{outline:3px solid #17231f;outline-offset:3px}.danger-fab.is-dragging{cursor:grabbing}.danger-move-help{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#danger-compose{max-height:90dvh;overflow:auto;width:min(540px,calc(100% - 32px))}#danger-form label{display:grid;gap:8px;margin:16px 0}#danger-preview{max-width:100%;max-height:220px;object-fit:contain}#danger-error{color:#b71c1c}.site-footer{padding-bottom:100px}

#danger-compose{box-sizing:border-box;min-width:0;max-width:calc(100vw - 24px);width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:clamp(12px,4vw,24px);overflow-x:hidden;overflow-y:auto;overflow-wrap:anywhere}
#danger-compose .dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}
#danger-compose .dialog-heading h2{min-width:0;margin:0;font-size:clamp(18px,5vw,24px)}
#danger-close{flex:0 0 36px;min-height:36px}
#danger-form{min-width:0;grid-template-columns:minmax(0,1fr);gap:12px}
#danger-form label{min-width:0;margin:0;grid-template-columns:minmax(0,1fr)}
#danger-form input,#danger-form select,#danger-form textarea,#danger-form button{box-sizing:border-box;width:100%;min-width:0;max-width:100%;font-size:16px}
#danger-form input[type=file]{overflow:hidden;padding:8px;font-size:14px}
#danger-form p{margin:0;min-width:0}
#danger-preview{width:100%;min-width:0}

/* Home alerts expire after the posting day and the following day (Japan time). */
.admin-section.danger-home{background:#7f1d1d;color:#fecaca;border-color:#991b1b;margin-bottom:24px}
.danger-home .section-heading{border-bottom-color:#b45454;padding:20px;align-items:center;gap:12px;flex-wrap:wrap}
.danger-home .section-heading h2{color:#fecaca;min-width:0}
.danger-home-content{background:#fff;color:#000;padding:16px 20px;min-width:0}
.danger-home-reports{min-width:0}
.danger-home .danger-card{border-bottom-color:var(--line);color:#000}
.danger-home .danger-card:first-child{padding-top:0}
.danger-home .danger-card:last-child{padding-bottom:0;border-bottom:0}
.danger-home .danger-card strong{color:#000}
.danger-home-actions{display:flex;flex-direction:column;align-items:flex-end;gap:12px;margin:0 0 0 auto;max-width:220px}
.danger-home .section-heading .danger-home-actions .button{background:#fecaca;border-color:#fecaca;color:#7f1d1d;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.danger-home .section-heading .danger-home-actions .button:hover{background:#fca5a5;border-color:#fca5a5}
.danger-home a:focus-visible{outline:3px solid #fca5a5;outline-offset:3px}
@media(max-width:480px){.danger-home .section-heading{padding:16px}.danger-home-content{padding:16px;gap:12px}.danger-home-actions{max-width:130px}.danger-home-actions .button{width:auto}.danger-home .danger-card{gap:12px}.danger-home .danger-card img{width:80px;flex:0 0 80px}}
.danger-delete-form{margin-top:24px;padding-top:20px;border-top:1px solid #efcccc}.danger-delete-form .button{max-width:100%;white-space:normal}
#danger-compose{background:#fff0ee}
.danger-history-item{display:flex;align-items:flex-start;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.danger-history-photo{display:block;flex:0 0 100px;max-width:100px;padding:0;border:3px solid transparent;border-radius:10px;background:transparent;cursor:pointer}.danger-history-photo img{display:block;width:100%;height:80px;object-fit:cover;border-radius:6px}.danger-history-photo[aria-pressed=true]{border-color:#c62828;box-shadow:0 0 0 3px #ffdddd}.danger-history-photo:focus-visible{outline:3px solid var(--green);outline-offset:3px}.danger-history-description{min-width:0;overflow-wrap:anywhere}.danger-history-description p{margin:8px 0}.danger-history-description strong{color:#b71c1c}#danger-history-map{scroll-margin-top:80px}

/* Local highlights share photo/location posting controls with emergency reports. */
#good-place-compose{background:#eef7f0;box-sizing:border-box;min-width:0;max-width:calc(100vw - 24px);width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:clamp(12px,4vw,24px);overflow-x:hidden;overflow-y:auto;overflow-wrap:anywhere}
#good-place-compose .dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}#good-place-compose h2{min-width:0;margin:0;font-size:clamp(18px,5vw,24px)}#good-place-close{flex:0 0 36px;min-height:36px}#good-place-form{min-width:0;grid-template-columns:minmax(0,1fr);gap:12px}#good-place-form label{min-width:0;margin:0;grid-template-columns:minmax(0,1fr)}#good-place-form input,#good-place-form select,#good-place-form textarea,#good-place-form button{box-sizing:border-box;width:100%;min-width:0;max-width:100%;font-size:16px}#good-place-form input[type=file]{overflow:hidden;padding:8px;font-size:14px}#good-place-form p{margin:0;min-width:0}#good-place-preview{width:100%;min-width:0;max-height:220px;object-fit:contain}#good-place-error{color:#b71c1c}
.good-place-gallery{margin-bottom:24px;padding:0}.good-place-gallery .section-heading{padding:0 0 16px;align-items:center;gap:12px;flex-wrap:wrap}.good-place-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:24px;margin-top:20px}.good-place-feature{display:block;min-width:0;text-decoration:none;overflow-wrap:anywhere}.good-place-feature>img{display:block;width:100%;height:clamp(220px,30vw,400px);object-fit:cover;border-radius:12px}.good-place-feature>div{padding-top:10px}.good-place-feature strong{display:block;font-size:1rem}.good-place-feature small{display:block;font-size:.8rem;color:var(--muted);margin-top:6px}.good-place-section .danger-history-description strong{color:var(--green-dark)}

.good-place-gallery .good-place-grid{gap:16px;min-width:0}
.good-place-gallery .good-place-feature[hidden]{display:none}
.good-place-gallery .good-place-feature{display:flex;flex-direction:column;min-height:0}
.good-place-gallery .good-place-feature>div{flex:0 0 auto}
.good-place-gallery .good-place-feature strong{font-size:.95rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.good-place-gallery .good-place-feature small{font-size:.75rem;line-height:1.5}
.good-place-gallery .good-place-feature>img{min-height:0;flex:1 1 auto;object-fit:cover}
.good-place-gallery .good-place-layout-1{grid-template-columns:minmax(0,1fr)}
.good-place-gallery .good-place-layout-1 .good-place-feature>img{flex:none;height:clamp(220px,30vw,400px)}
.good-place-gallery .good-place-layout-3{grid-template-columns:minmax(0,2fr) minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));height:500px}
.good-place-gallery .good-place-layout-5{grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));height:500px}
.good-place-gallery .good-place-layout-3 .is-featured,.good-place-gallery .good-place-layout-5 .is-featured{grid-column:1;grid-row:1 / span 2}
@media(max-width:640px){
 .good-place-gallery .good-place-grid{gap:12px}
 .good-place-gallery .good-place-layout-3,.good-place-gallery .good-place-layout-5{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;height:auto}
 .good-place-gallery .good-place-layout-3 .is-featured,.good-place-gallery .good-place-layout-5 .is-featured{grid-column:1 / -1;grid-row:auto}
 .good-place-gallery .good-place-feature>img{flex:none;height:auto;aspect-ratio:4 / 3}
 .good-place-gallery .good-place-layout-1 .good-place-feature>img{height:clamp(220px,60vw,400px);aspect-ratio:auto}
 .good-place-gallery .good-place-feature strong{font-size:.85rem}
 .good-place-gallery .good-place-feature small{font-size:.7rem}
}
.good-place-gallery{position:relative}
.good-place-gallery .good-place-grid.good-place-gallery-outgoing{position:absolute;z-index:1;margin:0;pointer-events:none;overflow:hidden;background:#fff}
.good-place-reactions{margin-top:24px;padding-top:24px;border-top:1px solid var(--line);scroll-margin-top:90px}.good-place-like-form{margin-bottom:24px}.good-place-comment-form{margin:20px 0;max-width:100%;min-width:0}.good-place-comment-form textarea{min-width:0;resize:vertical}.good-place-comment-form>.button{justify-self:end}.good-place-comment{padding:16px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.good-place-comment>p:first-child{font-size:.85rem}.good-place-comment-body{white-space:pre-wrap}.good-place-comment.is-hidden{background:#f5f5f5;padding:16px;border-radius:8px}.good-place-reactions nav{display:flex;flex-wrap:wrap;gap:16px;margin-top:16px}

/* Keep the map visible while browsing the independently scrollable history. */
#danger-history-frame{display:block;height:clamp(160px,32dvh,380px)}
.danger-history-list{max-height:40vh;max-height:40dvh;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}
.danger-history-list:focus-visible{outline:3px solid var(--green);outline-offset:3px}

.good-place-gallery .good-place-gallery-link{display:flex;justify-content:space-between;padding:20px;background:#dbeafe;color:#1e3a8a;border-bottom:1px solid #93c5fd;border-radius:15px 15px 0 0;text-decoration:none}
.good-place-gallery-link h2{color:inherit;margin:0}
.good-place-gallery-link:hover{background:#bfdbfe}
.good-place-gallery-link:focus-visible{outline:3px solid #1d4ed8;outline-offset:3px}

.good-place-gallery .good-place-grid{margin:20px}

.good-place-history-page .danger-history-description{flex:1 1 260px}
.good-place-history-reactions{flex:1 1 50%;min-width:0;overflow-wrap:anywhere}
.good-place-history-likes{font-weight:700;text-decoration:none;color:var(--green-dark)}
.good-place-history-comment{margin:6px 0;white-space:pre-wrap}
.good-place-photo-dialog{width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:transparent;overflow:hidden;outline:none}
.good-place-photo-dialog[open]{display:flex;align-items:center;justify-content:center}
.good-place-photo-dialog::backdrop{background:#000b}
.good-place-photo-dialog img{display:block;width:auto;height:auto;max-width:98vw;max-height:98vh;max-height:98dvh;object-fit:contain}
@media(max-width:760px){.good-place-history-page .danger-history-item{flex-wrap:wrap}.good-place-history-page .danger-history-description{flex:1 1 150px}.good-place-history-reactions{flex-basis:100%}}

.good-place-gallery .good-place-layout-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.good-place-gallery .good-place-layout-4{grid-template-columns:repeat(2,minmax(0,1fr))}
.good-place-gallery .good-place-layout-2 .good-place-feature>img,.good-place-gallery .good-place-layout-4 .good-place-feature>img{flex:none;height:240px}

.directory-gallery-accordion>summary{cursor:pointer;list-style:none}
.directory-gallery-accordion>summary::-webkit-details-marker{display:none}
.directory-gallery-accordion:not([open])>summary{border-bottom:0;border-radius:15px}
.directory-gallery-chevron{font-size:1.5rem;line-height:1}
.directory-gallery-accordion[open] .directory-gallery-chevron{transform:rotate(180deg)}

.linked-gallery-accordion>summary{list-style:none;cursor:pointer}
.linked-gallery-accordion>summary::-webkit-details-marker{display:none}
.good-place-gallery.linked-gallery-accordion>.good-place-gallery-link{padding:0;gap:0;flex-wrap:nowrap}
.good-place-gallery-home{display:flex;flex:1;min-width:0;align-self:stretch;color:inherit;text-decoration:none}
.good-place-gallery-home:focus-visible{outline:3px solid #1d4ed8;outline-offset:-4px}
.good-place-gallery-title{flex:0 1 auto;min-width:0;margin-left:auto;padding:16px 0 16px 12px;text-align:right;justify-content:flex-end;color:inherit;text-decoration:none}
.good-place-gallery-photo{display:flex;align-self:stretch;flex:none;width:clamp(120px,24vw,200px);color:inherit;text-decoration:none;border-top-left-radius:15px;overflow:hidden}
.linked-gallery-accordion:not([open]) .good-place-gallery-photo{border-bottom-left-radius:15px}
.linked-gallery-toggle{display:flex;align-items:center;justify-content:center;align-self:stretch;min-width:60px;min-height:60px}
.linked-gallery-chevron{display:flex;align-items:center;justify-content:center;width:24px;height:24px;line-height:1}
.linked-gallery-accordion[open] .linked-gallery-chevron{transform:rotate(180deg)}
.linked-gallery-accordion:not([open])>summary{border-bottom:0;border-radius:15px}
.good-place-gallery-photo:focus-visible,.good-place-gallery-title:focus-visible{outline:3px solid #1d4ed8;outline-offset:-4px}
.gallery-toggle-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.good-place-history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0}
.good-place-history-toolbar p{margin:0}
.good-place-history-sort{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.good-place-history-sort select{font:inherit;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff}
.good-place-history-page .danger-history-item.is-selected{background:#eff6ff;border-radius:10px}
.good-place-history-page .danger-history-item{padding:5px 0;cursor:pointer}
.good-place-history-page .danger-history-item:focus-visible{outline:3px solid #93c5fd;outline-offset:-3px}
.good-place-history-page .danger-history-photo[aria-pressed=true]{border-color:#93c5fd;box-shadow:0 0 0 3px #eff6ff}
.good-place-detail-modal{width:min(960px,94vw);max-width:94vw;padding:0;border:0;border-radius:16px;overflow:hidden}
.good-place-detail-modal::backdrop{background:rgb(0 0 0 / 45%)}
.good-place-modal-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:#dbeafe;color:#1e3a8a}
.good-place-modal-heading button{font-size:1.5rem;cursor:pointer;border:0;background:transparent;padding:4px 12px}
.good-place-detail-modal>iframe{display:block;width:100%;height:78vh;height:78dvh;border:0;background:#fff}

.good-place-gallery-title,.directory-gallery-title{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.directory-gallery-title{flex:1;min-width:0}
.good-place-gallery-latest{position:relative;display:block;width:100%;min-height:100px;font-size:.65rem;line-height:1.5;font-weight:400}
.good-place-gallery-latest img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.good-place-gallery-latest>span{position:absolute;right:0;bottom:0;max-width:100%;box-sizing:border-box;padding:3px 6px;background:rgb(0 0 0 / 65%);color:#fff;text-align:right}
.good-place-gallery-latest time{display:inline-block}
@media(max-width:600px){.good-place-gallery-title,.directory-gallery-title{gap:8px}.good-place-gallery-title{padding-left:8px}.linked-gallery-toggle{min-width:40px}.good-place-gallery-latest{font-size:.6rem}}

/* Guide access shared by full pages; modal partials do not include it. */
.header-actions{display:flex;align-items:center;gap:clamp(.5rem,2vw,1.25rem);min-width:0}.header-guide-link{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:44px;padding:.4rem .6rem;border-radius:.5rem;background:#1e4f91;color:#fff;font-weight:800;text-decoration:none;white-space:nowrap}.header-guide-link:hover{background:#173d70}.header-guide-link:focus-visible{outline:2px solid #1e4f91;outline-offset:2px}.guide-bar{display:flex;justify-content:flex-end;padding:.25rem clamp(1rem,4vw,3.5rem);background:var(--surface);border-bottom:1px solid var(--line)}
@media(max-width:480px){.site-header{padding-inline:.75rem;gap:.5rem}.site-header .brand{gap:.4rem;letter-spacing:0;font-size:.85rem}.header-actions{gap:.25rem}.header-actions .header-account{gap:.25rem}.header-guide-link{font-size:.85rem;padding-inline:.35rem}}

.menu-item.menu-guide-link{background:#eaf2fc;color:#1e4f91;font-weight:800}.menu-item.menu-guide-link:hover{background:#d8e7fa;color:#173d70}.menu-item.menu-guide-link:focus-visible{outline:2px solid #1e4f91;outline-offset:2px}

.menu-item.menu-logout-button{background:#fff0ee;color:var(--danger)}.menu-item.menu-logout-button:hover{background:#fbe0dc;color:var(--danger)}.menu-item.menu-logout-button:focus-visible{outline:2px solid var(--danger);outline-offset:2px}

.good-place-history-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.good-place-history-heading #good-place-open{margin-left:auto}

.line-login-button{display:flex;align-items:center;width:100%;min-height:52px;padding:0;border:0;border-radius:6px;background:#06c755;color:#fff;cursor:pointer;font:inherit;font-weight:700;overflow:hidden;margin:8px 0}
.line-login-button:hover{background:linear-gradient(#0000001a,#0000001a),#06c755}
.line-login-button:active{background:linear-gradient(#0000004d,#0000004d),#06c755}
.line-login-button:focus-visible{outline:3px solid #18334b;outline-offset:3px}
.line-login-icon{display:flex;align-items:center;justify-content:center;flex:0 0 52px;align-self:stretch;border-right:1px solid #00000014}
.line-login-icon img{display:block;width:48px;height:48px;object-fit:contain}
.line-login-label{flex:1;padding:14px 24px;white-space:nowrap;text-align:center}
.profile-line-settings>summary{display:flex;align-items:center;gap:12px;cursor:pointer;min-height:44px;font-weight:700;list-style:none;flex-wrap:wrap}
.profile-line-settings>summary::-webkit-details-marker{display:none}
.profile-line-settings>summary::before{content:'▶';font-size:.8em;transition:transform .15s}
.profile-line-settings[open]>summary::before{transform:rotate(90deg)}
.profile-line-settings>summary .status-badge{margin-left:auto}
.profile-line-settings>summary:focus-visible{outline:3px solid var(--green);outline-offset:4px;border-radius:4px}
.profile-line-settings-content{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
.association-list-heading{width:100%;min-width:0}
.association-list-title-row{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.association-list-title-row h1{margin:.2rem 0 .5rem}
.association-list-faq-button{flex-shrink:0;background:#173f75;color:#fff}
.association-list-faq-button:hover{background:#102e57}
.association-list-faq-button:focus-visible{outline:3px solid #173f75;outline-offset:3px}

.district-map-frame {
  display: block;
  width: 100%;
  height: clamp(320px, 60vh, 560px);
  border: 0;
  border-radius: 12px;
}

.district-map-preview-link {
  display: block;
  max-width: 960px;
  margin-inline: auto;
}
.district-map-preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
