.header-weather-group > .earthquake-open {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid #b9822f;
  border-radius: 12px;
  background: #fff1ce;
  color: #75400b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.earthquake-open-icon { font: 700 19px/1 system-ui, sans-serif; }
.earthquake-open-label { white-space: nowrap; }
.header-weather-group > .earthquake-open.earthquake-open-severe { border-color: #a32626; background: #bd3634; color: #fff; }
.earthquake-open:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.earthquake-count {
  position: absolute; top: -6px; right: -6px; display: grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 4px; border: 2px solid var(--panel); border-radius: 99px;
  background: #8b4d18; color: #fff; font-size: 10px; font-weight: 800; line-height: 1;
}
.earthquake-open-severe .earthquake-count { background: #8b2020; }

.earthquake-dialog { width: min(780px, 94vw); }
.earthquake-dialog a { color: var(--accent); }
.earthquake-intro, .earthquake-updated { color: var(--muted); font-size: 13px; line-height: 1.6; }
.earthquake-updated { margin: 16px 0 0; }
.earthquake-card { margin: 14px 0; padding: 16px; border: 1px solid #decda6; border-radius: 14px; background: #fffdf8; color: #303530; }
.earthquake-card-severe { border-color: #ca7771; }
.earthquake-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.earthquake-card-heading h3 { margin: 3px 0 0; font-size: 19px; line-height: 1.35; }
.earthquake-card-kicker { margin: 0; color: #766d5c; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.earthquake-national-max { display: grid; justify-items: end; gap: 5px; flex: 0 0 auto; color: #635c51; font-size: 12px; font-weight: 700; }
.earthquake-national-max .earthquake-scale { padding: 7px 10px; font-size: 17px; }
.earthquake-card-severe .earthquake-national-max .earthquake-scale { box-shadow: 0 0 0 2px #b42c2c; }
.earthquake-map-section { margin-top: 14px; }
.earthquake-map-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.earthquake-map-heading h4 { margin: 0; font-size: 14px; }
.earthquake-map-controls { display: flex; gap: 5px; }
.earthquake-map-controls button { min-height: 32px; padding: 4px 10px; border: 1px solid #c5cabc; border-radius: 7px; background: #fff; color: #435348; font: 700 12px/1.2 system-ui, sans-serif; cursor: pointer; }
.earthquake-map-controls button[aria-pressed='true'] { border-color: #4c705b; background: #e1eee3; color: #28583d; }
.earthquake-map-controls button:disabled { opacity: .5; cursor: default; }
.earthquake-map-controls button:focus-visible { outline: 2px solid #4c705b; outline-offset: 2px; }
.earthquake-map { height: 320px; border: 1px solid #c8d7d7; border-radius: 10px; background: #e2eff0; overflow: hidden; }
.earthquake-map .leaflet-container, .earthquake-map.leaflet-container { background: #e2eff0; font: 12px system-ui, sans-serif; }
.earthquake-map .leaflet-interactive:focus-visible { outline: 2px solid #42312c; outline-offset: 2px; }
.earthquake-map .leaflet-control-attribution { background: #ffffffd9; }
.earthquake-observation-marker { display: grid; place-items: center; box-sizing: border-box; border: 2px solid #fff; border-radius: 50%; color: #173240; box-shadow: 0 1px 4px #0009; font: 800 13px/1 system-ui, sans-serif; text-align: center; }
.earthquake-observation-10 { background: #b6e3f1; }
.earthquake-observation-20 { background: #62b7df; }
.earthquake-observation-30 { background: #ffe15f; color: #4a3900; }
.earthquake-observation-40 { background: #ffac4b; color: #512600; }
.earthquake-observation-45, .earthquake-observation-50 { background: #dc4b3c; color: #fff; font-size: 10px; }
.earthquake-observation-50 { background: #ad2732; }
.earthquake-observation-55, .earthquake-observation-60, .earthquake-observation-70 { background: #84509d; color: #fff; font-size: 10px; }
.earthquake-observation-60 { background: #65377e; }
.earthquake-observation-70 { background: #421957; font-size: 13px; }
.earthquake-observation-46 { border-style: dashed; background: #ae6b9f; color: #fff; font-size: 12px; }
.earthquake-epicenter-marker { display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #a92c2c; color: #fff; box-shadow: 0 1px 4px #0007; font: 800 20px/1 system-ui, sans-serif; }
.earthquake-map-status { min-height: 1.5em; margin: 8px 0; color: #4b594f; font-size: 12px; line-height: 1.5; }
.earthquake-map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; list-style: none; margin: 0; padding: 0; color: #514c45; font-size: 11px; line-height: 1.2; }
.earthquake-map-legend::before { content: '震度'; font-weight: 700; }
.earthquake-map-legend li { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.earthquake-map-key { width: 12px; height: 12px; border: 1px solid #82938a; border-radius: 3px; }
.earthquake-map-key-10 { background: #cae7ec; }
.earthquake-map-key-20 { background: #83c4dc; }
.earthquake-map-key-30 { background: #f3d76a; }
.earthquake-map-key-40 { background: #f4a259; }
.earthquake-map-key-45 { background: #e46d5b; }
.earthquake-map-key-50 { background: #c9404c; }
.earthquake-map-key-55 { background: #b077b3; }
.earthquake-map-key-60 { background: #865298; }
.earthquake-map-key-70 { background: #593173; }
.earthquake-map-key-estimated { border: 1px dashed #855477; background: #d5a8cb; }
.earthquake-map-key-unknown { background: #e8ebe7; }
.earthquake-map-note { margin: 8px 0 0; color: #6d6a61; font-size: 11px; line-height: 1.55; }
.earthquake-local { margin-top: 14px; padding: 12px; border-radius: 10px; background: #f5f0df; }
.earthquake-local h4, .earthquake-regions h4 { margin: 0; font-size: 14px; }
.earthquake-local-value { margin: 6px 0; font-size: 16px; font-weight: 800; }
.earthquake-estimated-text { font-size: 14px; line-height: 1.6; }
.earthquake-local-light, .earthquake-local-moderate { color: #76511d; }
.earthquake-local-strong, .earthquake-local-extreme, .earthquake-local-estimated { color: #a32d29; }
.earthquake-places, .earthquake-region-list { list-style: none; margin: 8px 0 0; padding: 0; }
.earthquake-places { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 6px 12px; }
.earthquake-places li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; font-size: 13px; }
.earthquake-places li > span:first-child { overflow-wrap: anywhere; }
.earthquake-scale { display: inline-block; flex: 0 0 auto; padding: 4px 7px; border-radius: 6px; background: #e6e9e6; color: #4b5350; font-size: 12px; font-weight: 800; line-height: 1.25; }
.earthquake-scale-light { background: #e2eee6; color: #315e4b; }
.earthquake-scale-moderate { background: #fff0bd; color: #77500d; }
.earthquake-scale-strong, .earthquake-scale-estimated { background: #ffe0d2; color: #a12c25; }
.earthquake-scale-extreme { background: #a83238; color: #fff; }
.earthquake-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 16px 0; }
.earthquake-field { min-width: 0; }
.earthquake-field dt { color: #756e63; font-size: 11px; font-weight: 700; }
.earthquake-field dd { margin: 3px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.earthquake-regions { padding-top: 12px; border-top: 1px solid #e5dfd1; }
.earthquake-region-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 6px 14px; }
.earthquake-region-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid #eee9df; font-size: 13px; }
.earthquake-region-name { flex: 0 0 auto; font-weight: 700; }
.earthquake-region-value { text-align: right; font-size: 12px; font-weight: 700; line-height: 1.5; }
.earthquake-region-light, .earthquake-region-moderate { color: #76511d; }
.earthquake-region-strong, .earthquake-region-extreme, .earthquake-region-estimated { color: #a32d29; }
.earthquake-empty { margin: 8px 0 0; color: #736e64; font-size: 13px; }

@media (max-width: 950px) {
  .header-weather-group > .earthquake-open { display: grid; align-content: center; gap: 1px; width: 44px; min-width: 44px; height: 44px; padding: 0; }
  .earthquake-open-icon { font-size: 17px; }
  .earthquake-open-label { font-size: 9px; }
}
@media (min-width: 561px) and (max-width: 950px) and (orientation: portrait) {
  .topbar:has(#earthquakeOpen:not([hidden])) { grid-template-columns: minmax(0, 1fr) auto; }
  .topbar:has(#earthquakeOpen:not([hidden])) .clock-block { grid-column: 1; grid-row: 1; min-width: 0; }
  .topbar:has(#earthquakeOpen:not([hidden])) .header-todos { grid-column: 2; grid-row: 1; }
  .topbar:has(#earthquakeOpen:not([hidden])) .header-weather-group { grid-column: 1 / -1; grid-row: 2; }
}
@media (min-width: 1024px) and (min-height: 600px) and (orientation: landscape) {
  .two-column .topbar:has(#earthquakeOpen:not([hidden])) .header-weather-group > button { grid-column: span 1; }
  .two-column .header-weather-group > .earthquake-open { display: grid; align-content: center; gap: 1px; padding: 0; border-color: #c69850; background: #715028; color: #fff2c9; }
  .two-column .header-weather-group > .earthquake-open.earthquake-open-severe { border-color: #eeaaa0; background: #9f312d; color: #fff; }
  .two-column .earthquake-open-icon { font-size: 17px; }
  .two-column .earthquake-open-label { font-size: 9px; }
  .two-column .topbar:has(#earthquakeOpen:not([hidden])) #bookingOpen::after { display: none; }
}
@media (max-width: 560px) and (orientation: portrait) {
  .phone-studio .header-weather-group > .earthquake-open { display: grid; align-content: center; gap: 1px; padding: 0; border-color: #c69850; background: #715028; color: #fff2c9; }
  .phone-studio .header-weather-group > .earthquake-open.earthquake-open-severe { border-color: #eeaaa0; background: #9f312d; color: #fff; }
  .phone-studio .earthquake-open-icon { font-size: 17px; }
  .phone-studio .earthquake-open-label { font-size: 9px; }
  .earthquake-dialog { padding: 14px; }
  .earthquake-map { height: 260px; }
  .earthquake-card { padding: 12px; }
  .earthquake-card-heading h3 { font-size: 17px; }
  .earthquake-national-max .earthquake-scale { font-size: 14px; }
}
