/* ========================================
   救急病院情報
   ======================================== */
/* class名は固定ページ本文（.pit-*）のもの。検索・絞り込みのJSが参照している。 */
.area-page .sub-button {
  cursor: pointer;
  font-family: inherit;
}

.area-page__intro {
  margin-top: 2.8rem;
  font-size: 1.6rem;
  line-height: 3.2rem;
}

.area-page .pit-area-inner {
  width: 92.3076923077%;
  max-width: 120rem;
  margin-inline: auto;
}

/* 現在地から探す */
.area-page .pit-area-band[data-area-map] {
  padding-block: 2.2rem 4.2rem;
}

.area-page .pit-map-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: none;
}

.area-page .pit-map-copy {
  padding: .1rem 2rem 0 var(--sub-content-edge);
}

.area-page .pit-map-copy h2 {
  margin: 0;
  color: #172c57;
  font-size: 5.3rem;
  font-weight: 500;
  line-height: 1.45;
}

.area-page .pit-map-copy > p {
  margin-top: 1.4rem;
  font-size: 1.6rem;
  line-height: 3.2rem;
}

.area-page .pit-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.6rem;
}

.area-page .pit-map-actions .sub-button {
  width: 28rem;
  padding: 0 4.8rem 0 1rem;
}

.area-page .pit-primary-button[data-use-location] {
  border-color: #0281cd;
  background: #0281cd url("../images/pages/area/location-white.png") 1.5rem center / 3.6rem no-repeat;
  color: #fff;
}

.area-page .pit-map-status {
  margin-top: .8rem !important;
}

.area-page .pit-map-quick {
  display: grid;
  grid-template-columns: repeat(3, 18rem);
  gap: 1.7rem;
  margin-top: 1rem;
}

.area-page .pit-map-chip,
.area-page .pit-filter-chip {
  min-height: 6rem;
  padding: .4rem;
  border: 1px solid #cfd5e0;
  border-radius: .5rem;
  background: #fff;
  color: #172c57;
  font: inherit;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.area-page .pit-map-chip.is-active,
.area-page .pit-filter-chip.is-active {
  border-color: #0281cd;
  background: #0281cd;
  color: #fff;
}

.area-page .pit-map-frame-wrap {
  padding-right: var(--sub-edge);
}

.area-page .pit-map-frame {
  display: block;
  width: 100%;
  height: 50.9rem;
  border: 0;
  border-radius: 3rem;
}

/* 救急医療情報センター */
.area-page .pit-phone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
  margin-top: 6.4rem;
}

.area-page .pit-phone-card {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 17.9rem;
  padding: 2rem 1rem;
  border: 1px solid #0281cd;
  border-radius: 1rem;
  background: #fff;
  color: #172c57;
  text-align: center;
}

.area-page .pit-phone-card h3 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
}

.area-page .pit-phone-area {
  font-size: 1.6rem;
  line-height: 2rem;
}

.area-page .pit-phone-number {
  display: inline-block;
  margin-top: 1.2rem;
  padding-left: 4.8rem;
  background: url("../images/pages/area/phone.png") left center / 4rem no-repeat;
  color: #0281cd;
  font-size: 3rem;
  font-weight: 700;
  line-height: 4rem;
  text-decoration: none;
}

.area-page .pit-official-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 13.1rem;
  margin-top: 3rem;
  padding: 1.6rem 6.1rem 1.6rem 22.6rem;
  border: 1px solid #0281cd;
  border-radius: 1rem;
  background: #fff url("../images/pages/area/hospital.png") 7.7rem center / 10rem no-repeat;
  color: #172c57;
}

.area-page .pit-official-box h3 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
}

.area-page .pit-official-box p {
  font-size: 1.6rem;
  line-height: 2.4rem;
}

.area-page .pit-official-box .sub-button {
  flex: 0 0 31.6rem;
  width: 31.6rem;
  padding-inline: 1rem 4.6rem;
}

.area-page__phone-note {
  margin-top: 1rem;
  padding-left: 1.5rem;
  color: #172c57;
  font-size: 1.6rem;
  line-height: 2rem;
}

/* 救急告示病院一覧 */
.area-page .pit-area-band:not(.sub-wave):not([data-area-map]):not(.pit-notice-band) {
  padding-top: 4.3rem;
}

.area-page .pit-emergency-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 7rem;
}

.area-page .pit-emergency-action {
  display: flex;
  align-items: center;
  gap: 3rem;
  min-height: 14.6rem;
  padding-inline: 6.3rem 2rem;
  border-radius: 1rem 0;
  background: #fdf0f0;
  color: #172c57;
  text-decoration: none;
}

.area-page .pit-emergency-action.is-consult {
  padding-left: 4.1rem;
  background: #f2f8fc;
}

.area-page .pit-emergency-action.is-official {
  display: none;
}

.area-page .pit-emergency-action strong {
  color: #fb0b09;
  font-size: 7.2rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.area-page .pit-emergency-action.is-consult strong {
  color: #0281cd;
}

.area-page .pit-emergency-action span {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
}

.area-page .pit-emergency-action small {
  display: block;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 2rem;
}

.area-page .pit-hospital-tools {
  margin-top: 4.4rem;
}

.area-page .pit-hospital-search span {
  display: block;
  margin-bottom: 3rem;
  color: #172c57;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 3.6rem;
}

.area-page .pit-hospital-search input {
  width: 100%;
  min-height: 7.8rem;
  padding: 1rem 2rem 1rem 10.8rem;
  border: 1px solid #0281cd;
  border-radius: 1rem;
  background: #fff url("../images/pages/area/search.png") 2.3rem center / 4rem no-repeat;
  color: #172c57;
  font: inherit;
  font-size: 2.4rem;
}

.area-page .pit-hospital-search input::placeholder {
  color: #7e7e7e;
}

.area-page .pit-filter-panel {
  margin-top: 3rem;
  padding: 4.2rem 8.8rem 4.4rem 3.4rem;
  border-radius: 3rem 0;
  background: #f2f8fc;
}

.area-page .pit-filter-block {
  display: grid;
  grid-template-columns: 31.3rem minmax(0, 1fr);
  align-items: center;
  padding-bottom: 3.2rem;
  border-bottom: 1px solid #cfd5e0;
}

.area-page .pit-filter-block + .pit-filter-block {
  padding-top: 3.2rem;
}

.area-page .pit-filter-legend {
  color: #172c57;
  font-size: 2.4rem;
  padding-right: 4.6rem;
  font-weight: 700;
  text-align: center;
}

.area-page .pit-filter-chip-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.area-page .pit-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3.2rem;
  padding-left: 23.5rem;
}

.area-page .pit-selected-filters {
  flex: 0 0 100%;
  color: #172c57;
  font-size: 1.5rem;
  text-align: center;
}

.area-page .pit-selected-filters:empty {
  display: none;
}

.area-page .area-page__submit,
.area-page .pit-filter-reset {
  width: 31.6rem;
  padding-inline: 1rem 2.2rem;
}

.area-page .pit-filter-reset[hidden] {
  display: grid;
  border-color: #cfd5e0;
}

.area-page .pit-hospital-empty {
  margin-top: 4rem;
  font-size: 1.6rem;
  text-align: center;
}

/* 病院カード */
.area-page .pit-hospital-region {
  margin-top: 7rem;
}

.area-page .pit-hospital-group-head h3 {
  margin: 0;
  padding-left: 5.4rem;
  background: url("../images/pages/area/location-blue.png") left center / 4.6rem no-repeat;
  color: #172c57;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 4.6rem;
}

.area-page .pit-hospital-list {
  display: grid;
  gap: 2.5rem;
  margin-top: 3.8rem;
}

.area-page .pit-hospital-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31.6rem;
  grid-template-areas:
    "top links"
    "name links"
    "meta links";
  column-gap: 4rem;
  align-items: start;
  padding: 4.4rem 6rem 3.6rem 4.6rem;
  border: 1px solid #0281cd;
  border-left-width: 5px;
  border-radius: 1rem;
  background: #fff;
}

.area-page .pit-hospital-card-top {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.area-page .pit-hospital-badge {
  display: grid;
  place-items: center;
  width: 17.9rem;
  min-height: 4.1rem;
  border-radius: 100vmax;
  background: #0281cd;
  color: #fff;
  font-family: "M PLUS 1p", sans-serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.area-page .pit-hospital-town {
  font-size: 1.6rem;
}

.area-page .pit-hospital-card h4 {
  grid-area: name;
  margin: 1.4rem 0 .6rem;
  color: #0281cd;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 4.8rem;
}

.area-page .pit-hospital-meta {
  grid-area: meta;
  margin: 0;
  font-size: 1.6rem;
  line-height: 2.8rem;
}

.area-page .pit-hospital-meta > div {
  display: grid;
  grid-template-columns: 13.2rem minmax(0, 1fr);
  padding-block: .6rem;
}

.area-page .pit-hospital-meta dt {
  padding-left: 3.4rem;
  background: url("../images/pages/area/location-blue.png") left .2rem / 2.5rem no-repeat;
  color: #0281cd;
}

.area-page .pit-hospital-meta > div:nth-child(2) dt {
  background-image: url("../images/pages/area/train.png");
}

.area-page .pit-hospital-meta > div:nth-child(3) dt {
  background-image: url("../images/pages/area/phone.png");
}

.area-page .pit-hospital-meta > div:nth-child(4) dt {
  background-image: url("../images/pages/area/hospital.png");
}

.area-page .pit-hospital-meta dd {
  margin: 0;
}

.area-page .pit-hospital-meta a {
  color: inherit;
}

.area-page .pit-hospital-links {
  grid-area: links;
  display: grid;
  gap: 2rem;
  padding-top: 12.2rem;
}

.area-page .pit-hospital-links .sub-button {
  padding-inline: 1rem 4.6rem;
}

/* 注意事項 */
.area-page .pit-notice-band {
  padding-block: 9rem 10rem;
}

.area-page .pit-information-notice {
  padding: 3.8rem 4.4rem;
  border: 1px solid #0281cd;
  border-left-width: 5px;
  border-radius: 3rem;
  background: #f2f8fc;
}

.area-page__notice-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
  line-height: 4.8rem;
}

.area-page .pit-information-notice ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.6rem;
  line-height: 3.2rem;
}

.area-page .pit-information-notice li {
  position: relative;
  padding-left: 2.4rem;
}

.area-page .pit-information-notice li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #0281cd;
}

.area-page .pit-information-notice a {
  color: #0281cd;
}

@media (hover: hover) {
  .area-page .pit-map-chip:hover,
  .area-page .pit-filter-chip:hover {
    background: #172c57;
    color: #fff;
  }

  .area-page .pit-primary-button[data-use-location]:hover {
    border-color: #172c57;
    background-color: #172c57;
    color: #fff;
  }
}

@media (min-width: 768px) and (max-width: 1056.25px) {
  .area-page .pit-map-copy {
    padding-right: 2rem;
  }

  .area-page .pit-map-copy h2 {
    font-size: 3.6rem;
  }

  .area-page .pit-map-quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
  }

  .area-page .pit-official-box {
    padding: 1.6rem 2rem 1.6rem 13rem;
    background-position: 1.6rem center;
  }

  .area-page .pit-official-box .sub-button {
    flex-basis: 24rem;
    width: 24rem;
  }

  .area-page .pit-emergency-action,
  .area-page .pit-emergency-action.is-consult {
    gap: 1.6rem;
    padding-inline: 2rem 1rem;
  }

  .area-page .pit-filter-panel {
    padding-inline: 2rem;
  }

  .area-page .pit-filter-block {
    grid-template-columns: 9rem minmax(0, 1fr);
  }

  .area-page .pit-hospital-card {
    grid-template-columns: minmax(0, 1fr) 24rem;
    padding: 2.4rem;
  }

  .area-page .pit-hospital-meta > div {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .area-page__intro {
    margin-top: 1.6rem;
    font-size: 1.5rem;
    line-height: 2;
  }

  .area-page .pit-area-band[data-area-map] {
    padding-block: 2.4rem 3rem;
  }

  .area-page .pit-map-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 92.3076923077%;
    margin-inline: auto;
  }

  .area-page .pit-map-copy {
    padding: 0;
  }

  .area-page .pit-map-copy h2 {
    font-size: 2.8rem;
    line-height: 1.5;
  }

  .area-page .pit-map-copy > p {
    font-size: 1.5rem;
    line-height: 2;
  }

  .area-page .pit-map-actions .sub-button {
    width: 100%;
  }

  .area-page .pit-map-quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem;
  }

  .area-page .pit-map-chip,
  .area-page .pit-filter-chip {
    min-height: 4.8rem;
    font-size: 1.4rem;
  }

  .area-page .pit-map-frame-wrap {
    padding: 0;
  }

  .area-page .pit-map-frame {
    height: 32rem;
    border-radius: 1.5rem;
  }

  .area-page .pit-phone-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

  .area-page .pit-phone-card {
    min-height: 0;
    padding: 1.6rem 1rem;
  }

  .area-page .pit-phone-card h3 {
    font-size: 2rem;
  }

  .area-page .pit-phone-area {
    font-size: 1.4rem;
  }

  .area-page .pit-phone-number {
    font-size: 2.6rem;
  }

  .area-page .pit-official-box {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    margin-top: 1rem;
    padding: 9rem 1.6rem 1.6rem;
    background-position: center 1.2rem;
    background-size: 7rem;
    text-align: center;
  }

  .area-page .pit-official-box h3 {
    font-size: 1.8rem;
  }

  .area-page .pit-official-box p {
    font-size: 1.4rem;
  }

  .area-page .pit-official-box .sub-button {
    flex-basis: auto;
    width: 100%;
  }

  .area-page__phone-note {
    padding-left: 0;
    font-size: 1.4rem;
    line-height: 1.6;
  }

  .area-page .pit-area-band:not(.sub-wave):not([data-area-map]):not(.pit-notice-band) {
    padding-top: 2rem;
  }

  .area-page .pit-emergency-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 2.4rem;
  }

  .area-page .pit-emergency-action,
  .area-page .pit-emergency-action.is-consult {
    gap: 1.6rem;
    min-height: 10rem;
    padding-inline: 1.6rem;
  }

  .area-page .pit-emergency-action strong {
    font-size: 4.4rem;
  }

  .area-page .pit-emergency-action span {
    font-size: 1.6rem;
  }

  .area-page .pit-emergency-action small {
    font-size: 1.3rem;
  }

  .area-page .pit-hospital-tools {
    margin-top: 3rem;
  }

  .area-page .pit-hospital-search span {
    font-size: 1.8rem;
  }

  .area-page .pit-hospital-search input {
    min-height: 5.6rem;
    padding-left: 5rem;
    background-position: 1.2rem center;
    background-size: 2.8rem;
    font-size: 1.5rem;
  }

  .area-page .pit-filter-panel {
    margin-top: 1.6rem;
    padding: 2rem 1.2rem;
    border-radius: 2rem 0;
  }

  .area-page .pit-filter-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-bottom: 2rem;
  }

  .area-page .pit-filter-block + .pit-filter-block {
    padding-top: 2rem;
  }

  .area-page .pit-filter-legend {
    font-size: 1.8rem;
  }

  .area-page .pit-filter-chip-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }

  .area-page .pit-filter-summary {
    gap: 1rem;
    margin-top: 2rem;
  }

  .area-page .area-page__submit,
  .area-page .pit-filter-reset {
    width: 100%;
  }

  .area-page .pit-hospital-region {
    margin-top: 4rem;
  }

  .area-page .pit-hospital-group-head h3 {
    padding-left: 4rem;
    background-size: 3.2rem;
    font-size: 1.9rem;
    line-height: 3.4rem;
  }

  .area-page .pit-hospital-list {
    gap: 1.2rem;
    margin-top: 1.6rem;
  }

  .area-page .pit-hospital-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1.6rem;
  }

  .area-page .pit-hospital-badge {
    width: auto;
    min-height: 3.2rem;
    padding-inline: 1.4rem;
    font-size: 1.4rem;
  }

  .area-page .pit-hospital-town {
    font-size: 1.4rem;
  }

  .area-page .pit-hospital-card h4 {
    margin: 1rem 0 .4rem;
    font-size: 1.9rem;
    line-height: 1.5;
  }

  .area-page .pit-hospital-meta {
    font-size: 1.4rem;
    line-height: 1.7;
  }

  .area-page .pit-hospital-meta > div {
    grid-template-columns: 9.6rem minmax(0, 1fr);
    padding-block: .3rem;
  }

  .area-page .pit-hospital-meta dt {
    padding-left: 2.6rem;
    background-size: 2rem;
  }

  .area-page .pit-hospital-links {
    gap: .8rem;
    padding-top: 1.2rem;
  }

  .area-page .pit-notice-band {
    padding-block: 6rem 8rem;
  }

  .area-page .pit-information-notice {
    padding: 2rem 1.6rem;
    border-radius: 1.5rem;
  }

  .area-page__notice-title {
    font-size: 1.8rem;
    line-height: 1.8;
  }

  .area-page .pit-information-notice ul {
    font-size: 1.4rem;
    line-height: 1.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .area-page .pit-map-chip, .area-page .pit-filter-chip { transition: none; }
}

/* XDの指定 */
.area-page .pit-map-copy > p,
.area-page .sub-heading__en {
  color: #000;
}

.area-page .pit-map-actions .pit-primary-button {
  padding: 0 .6rem 0 0;
}

.area-page .pit-filter-chip.is-active {
  border-color: #172c57;
  background: #349ad6;
}

@media (max-width: 767px) {
  .area-page .pit-hospital-search span {
    margin-bottom: .8rem;
  }
  .area-page .pit-filter-legend {
    padding-right: 0;
  }
  .area-page .pit-filter-summary {
    padding-left: 0;
  }
}

/* XDのドロップシャドウ（X0 Y0 ぼかし5px 黒16%） */
.area-page .pit-phone-card,
.area-page .pit-official-box,
.area-page .pit-emergency-action,
.area-page .pit-hospital-search input,
.area-page .pit-hospital-card {
  box-shadow: 0 0 5px rgb(0 0 0 / 16%);
}

/* SP：英字見出しが長いので、画面幅に合わせて縮めて1行に収める（通常の3.8remが上限） */
@media (max-width: 767px) {
  .area-page .sub-hero__en {
    font-size: min(3.8rem, 7.9vw);
    white-space: nowrap;
  }
}

/* 選んだ条件（診療科・地域）の表示：現行サイトと同じ、×付きの丸いラベル。押すとその条件を外す */
.area-page .pit-selected-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
}

.area-page .pit-selected-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1.2rem;
  border: 1px solid #a9d3ee;
  border-radius: 999px;
  background: #eaf5fc;
  color: #0281cd;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.area-page .pit-selected-pill::after {
  content: "×";
  font-size: 1.5rem;
  line-height: 1;
}

@media (hover: hover) {
  .area-page .pit-selected-pill:hover {
    border-color: #0281cd;
    background: #0281cd;
    color: #fff;
  }
}

@media (max-width: 767px) {
  .area-page .pit-selected-filters {
    gap: .6rem;
  }
  .area-page .pit-selected-pill {
    font-size: 1.3rem;
  }
}
