/* =========================================================
   list.css — Hospital list (CPT: list / taxonomy: listtag)
   Notebook-style: aligned columns, ruled lines, no frames
   ========================================================= */

.listcont p {
  line-height: 1.8em;
}

.listcont p:first-child {
  margin-top: 0.5em;
}

.listcont p:last-child {
  margin-bottom: 0.5em;
}

.listurl {
  background: #51c5e8;
  color: #fff;
  font-family: "proxima-soft", sans-serif;
  margin-left: 0.7em;
  font-size: var(--fs-tiny);
  padding: 0.2em 0.5em;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 0;
  line-height: 1.6em;
}

.taxtag {
  text-align: left;
  margin: 0 0 1.25em;
}

.taxtag a {
  color: #000;
}

.taxtag a:not(:last-child) {
  margin-right: 0.5em;
}

.taxtag form {
  margin: 0;
}

.taxtag .selectlink,
.taxtag select {
  width: 100%;
  height: 2.75em;
  margin: 0;
  padding: 0 2.4em 0 0.85em;
  border: 1px solid #cfd4dc;
  border-radius: 0;
  background-color: #fff;
  color: #222;
  font-size: 0.95em;
}

.notag {
  line-height: 1.6em;
  margin-bottom: 1em;
}

.notag span:not(:last-child):after {
  content: "・";
  padding-right: 0;
}

.listlinkbt {
  text-align: right;
  margin-bottom: 0.5em;
}

.listlinkbt a {
  color: #000;
}

.listlinkbt a:not(:last-child):after {
  content: "|";
  padding-left: 0.3em;
  padding-right: 0.3em;
}

.totalnum {
  background: #000;
  color: #fff;
  padding: 0.2em 0.5em;
  display: inline-block;
  margin-bottom: 1em;
}

.listsearchform,
.list-search-form {
  margin-bottom: 0.75em;
}

.listserch {
  align-items: stretch;
}

.listserch input[type="text"],
.listserch input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 3em;
  margin: 0;
  padding: 0 1em;
  border: 1px solid #cfd4dc;
  border-radius: 0;
  background: #fff;
  color: inherit;
  box-sizing: border-box;
  outline: 0;
}

.listserch input[type="text"]:focus,
.listserch input[type="search"]:focus {
  border-color: #51c5e8;
}

.listserch button,
.listserch .botton {
  display: block;
  width: 100%;
  height: 3em;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #111;
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  line-height: 3em;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.listserch #s-btn {
  display: block;
  line-height: inherit;
}

.listaddy p {
  margin-bottom: 0;
}

.resedv2 .button.alt {
  background-color: #1cced0;
  box-shadow: none;
  color: #fff !important;
}

.resedv2 .button.alt.icon:before {
  color: #fff;
}

/* ---------- Intro / search ---------- */
.listpage .list-intro {
  margin: 0 0 1em;
  max-width: 42em;
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: #4a5560;
}

.listpage .listsearch {
  margin-bottom: 1.25em;
  padding-bottom: 0.85em;
  border-bottom: 1px solid #d5dae2;
}

.listpage #content > .inner > hr {
  margin: 1.75em 0 1.25em;
  border: 0;
  border-top: 1px solid #d5dae2;
}

/* ---------- Notebook list ---------- */
.listpage .boxer.list-notebook {
  display: block;
  margin: 0 0 1.5em;
  padding: 0;
  border-top: 1px solid #c8ced8;
  background: transparent;
}

.listpage .list-row {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  grid-template-columns: 5.5em minmax(0, 1fr);
  column-gap: 1.5em;
  row-gap: 0.15em;
  align-items: center;
  margin: 0;
  padding: 0.55em 0.1em 0.58em;
  border: 0;
  border-bottom: 1px solid #e3e6eb;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.listpage .list-pref {
  min-width: 0;
  color: #222;
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.listpage .list-main {
  min-width: 0;
}

.listpage .list-name {
  min-width: 0;
  color: #111;
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.4;
}

.listpage .list-name-text {
  margin-right: 0.25em;
}

.listpage .list-url {
  margin-top: 0.12em;
  min-width: 0;
  font-size: var(--fs-meta);
  line-height: 1.4;
  word-break: break-all;
}

.listpage .list-url a {
  color: #7a828c;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.listpage .list-url a:hover {
  color: #4f5963;
}

.listpage .list-points {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4em;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.listpage .list-point {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  /* 折り返さない最小幅（最長: 自発機能を考慮した治療）で3つ揃える */
  flex: 0 0 13.2em;
  width: 13.2em;
  min-width: 13.2em;
  height: 2.35em;
  margin: 0;
  padding: 0 0.6em;
  border: 1px solid #c8ccd4;
  background: #fff;
  color: #3a414a;
  font-size: 0.7em;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.listpage a.post-edit-link,
.tax-listtag a.post-edit-link,
.post-type-archive-list a.post-edit-link {
  margin-left: 0.15em;
  padding: 0;
  background: transparent;
  color: #9a9a9a;
  font-size: 0.62em;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.4;
  vertical-align: middle;
}

.listpage a.post-edit-link:hover,
.tax-listtag a.post-edit-link:hover,
.post-type-archive-list a.post-edit-link:hover {
  color: #666;
  opacity: 0.85;
  text-decoration: none;
}

/* Legacy helpers kept for single / other templates */
.boxer {
  margin-bottom: 2em;
}

.boxer .box {
  margin-bottom: 1em;
}

.boxer .box.alt {
  padding: 0.5em 1em;
}

.boxer .box.alt:last-child {
  margin-bottom: 0;
}

.boxer h3 {
  color: #000;
  margin-bottom: 1em;
  font-weight: 400;
  font-size: 1em;
}

.resedv {
  text-align: left;
  line-height: 2.2em;
}

.resedv h5 {
  margin: 0.4em 0 0;
  font-weight: 500;
  font-size: 1em;
}

.resedv p {
  font-size: 0.9em;
  margin-bottom: 0;
}

.resedv span {
  background: #fff;
  border: 1px solid #ccc;
  color: #000;
  width: 100px;
  display: inline-block;
  text-align: center;
  padding: 0;
  line-height: 1.6em;
  font-size: 0.9em;
  margin-right: 1em;
}

.resedv span.step1 {
  background: #c70e90;
  border: 1px solid #c70e90;
  color: #fff;
}

.resedv span.step2 {
  background: #ccc;
  border: 1px solid #ccc;
  color: #fff;
}

.resedv span.step3 {
  background: #1cced0;
  border: 1px solid #1cced0;
  color: #fff;
}

.resedv span.pref {
  background: #fff;
  border: 1px solid #9d9db4;
  color: #000;
}

.resedv span.pref a {
  color: #000;
}

.list-recommend-points {
  margin: 0 0 15px;
}

.list-recommend-points ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-recommend-points li {
  position: relative;
  padding: 4px 0 4px 1.4em;
  font-size: 0.85em;
  line-height: 1.6;
  color: #333;
}

.list-recommend-points li::before {
  font-family: FontAwesome;
  content: "\f00c";
  position: absolute;
  left: 0;
  top: 4px;
  font-weight: 700;
}

@media screen and (max-width: 1200px) {
  .listpage .list-point {
    flex-basis: 13.2em;
    width: 13.2em;
    min-width: 13.2em;
  }
}

@media screen and (max-width: 980px) {
  .listpage .list-row {
    grid-template-columns: 4.75em minmax(0, 1fr);
    column-gap: 0.85em;
    row-gap: 0.35em;
    align-items: start;
    padding: 0.7em 0;
  }

  .listpage .list-pref {
    padding-top: 0.12em;
    font-size: 0.84em;
  }

  .listpage .list-points {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin-top: 0.45em;
    gap: 0.1em;
    overflow: visible;
  }

  .listpage .list-point {
    display: block;
    flex: none;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #3a414a;
    font-size: 0.78em;
    font-weight: 500;
    line-height: 1.55;
    text-align: left;
    white-space: normal;
  }

  .listpage .list-point::before {
    content: "・";
    margin-right: 0.05em;
  }

  .resedv span {
    background: none;
    padding: 0 0.5em;
    width: auto;
    font-size: 0.9em;
    margin-right: 0.7em;
    margin-top: 0.5em;
  }

  .resedv2 .stacked {
    margin-top: 0.5em;
  }

  .resedv2 ul.actions.stacked li {
    margin-bottom: 0;
  }

  .resedv2 ul.actions:not(.fixed) li {
    padding: 0.5em 0 0 0;
  }
}

@media screen and (max-width: 736px) {
  .listpage .list-intro {
    font-size: 0.86em;
    line-height: 1.65;
  }

  .listpage .list-row {
    grid-template-columns: 3.6em minmax(0, 1fr);
    column-gap: 0.65em;
    row-gap: 0.4em;
    padding: 0.75em 0;
  }

  .listpage .list-pref {
    font-size: 0.78em;
  }

  .listpage .list-name {
    font-size: 0.92em;
  }

  .listpage .list-url {
    font-size: 0.76em;
  }

  .listpage .list-points {
    margin-top: 0.4em;
  }

  .post-type-archive-list #content .boxer {
    margin-bottom: 0;
    padding: 0;
    background: none;
  }
}

@media screen and (max-width: 520px) {
  .listpage .list-points {
    width: 100%;
    max-width: 100%;
  }
}
