/* オンライン診療の広告枠とセルフチェック */
:root {
  --mp-ink: #17324d;
  --mp-text: #40566b;
  --mp-muted: #64788a;
  --mp-line: #d7e3ec;
  --mp-soft: #f3f8fb;
  --mp-accent: #f08300;
  --mp-button: #f07800;
  --mp-button-hover: #dc6a00;
  --mp-accent-strong: #c45a00;
  --mp-accent-dark: #a44b00;
  --mp-accent-soft: #fff0dc;
  --mp-pr: #55697b;
  --mp-crisis: #b4233a;
  --mp-crisis-soft: #fdf0f2;
}

.mp-card *, .mp-inline *, .mp-subtle *, .mp-sticky *, .mp-check-entry *, .sc * {
  box-sizing: border-box;
}

.mp-pr {
  display: inline-block;
  flex: none;
  padding: 1px 7px;
  border: 1px solid var(--mp-pr);
  border-radius: 4px;
  color: var(--mp-pr);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.mp-pr-notice {
  margin: 0;
  color: var(--mp-muted);
  font-size: 12px;
  text-align: right;
}

.mp-button,
.mp-button:visited {
  display: block;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--mp-button);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mp-button:hover {
  background: var(--mp-button-hover);
  color: #fff;
}

.mp-button:disabled {
  background: #b8c6d1;
  cursor: not-allowed;
}

.mp-button--small,
.mp-button--small:visited {
  padding: 11px 14px;
  font-size: 14px;
}

.mp-note {
  margin: 12px 0 0;
  color: var(--mp-muted);
  font-size: 12px;
  line-height: 1.7;
}

/* メイン枠 */
.mp-card {
  margin: 0 0 28px;
  padding: 20px;
  border: 2px solid var(--mp-accent);
  border-radius: 14px;
  background: #fff;
  color: var(--mp-text);
}

.mp-card__labels {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.mp-kind {
  color: var(--mp-accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.mp-card__lead {
  margin: 0 0 2px;
  color: var(--mp-text);
  font-size: 14px;
  font-weight: 700;
}

.mp-card__name {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
}

.mp-card__name a,
.mp-card__name a:visited {
  color: var(--mp-ink);
  text-decoration: none;
}

.mp-card__name + .mp-button {
  margin-bottom: 16px;
}

.mp-card__image {
  display: block;
  margin-bottom: 14px;
}

.mp-card__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.mp-card__text {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.8;
}

.mp-card__points {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.mp-card__points li {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 26px;
  border-top: 1px solid var(--mp-line);
  color: var(--mp-ink);
  font-size: 15px;
  line-height: 1.6;
  list-style: none;
}

.mp-card__points li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 4px;
  width: 12px;
  height: 6px;
  border-bottom: 2px solid var(--mp-accent);
  border-left: 2px solid var(--mp-accent);
  transform: rotate(-45deg);
}

.mp-card__price {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--mp-accent-soft);
  color: var(--mp-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

/* 一覧の途中 */
.mp-inline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--mp-accent);
  border-radius: 12px;
  background: var(--mp-accent-soft);
}

.mp-inline__body {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mp-inline__text {
  margin: 0;
  color: var(--mp-ink);
  font-size: 14px;
  line-height: 1.7;
}

/* クリニック詳細・結果ページの控えめな枠 */
.mp-subtle {
  margin: 24px 0;
  padding: 14px 16px;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  background: var(--mp-soft);
}

.mp-subtle__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--mp-muted);
  font-size: 12px;
}

.mp-subtle__text {
  margin: 0 0 6px;
  color: var(--mp-text);
  font-size: 14px;
  line-height: 1.7;
}

.mp-subtle__link,
.mp-subtle__link:visited {
  color: var(--mp-accent-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}

/* スマホ下部の追従枠 */
.mp-sticky {
  display: none;
}

@media (max-width: 768px) {
  .mp-sticky:not([hidden]) {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--mp-line);
    background: #fff;
    box-shadow: 0 -2px 10px rgba(23, 50, 77, 0.12);
  }

  .mp-sticky__link,
  .mp-sticky__link:visited {
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
    border-radius: 8px;
    background: var(--mp-button);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
  }

  .mp-sticky__close {
    flex: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    color: var(--mp-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }
}

/* セルフチェックへの導線 */
.mp-check-entry,
.mp-check-entry:visited {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: #fff;
  color: var(--mp-text);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.mp-check-entry:hover {
  border-color: var(--mp-accent-strong);
}

.mp-check-entry__text {
  display: block;
  font-size: 13px;
  line-height: 1.7;
}

.mp-check-entry__text strong {
  display: block;
  color: var(--mp-ink);
  font-size: 16px;
}

.mp-check-entry__text span {
  display: block;
}

.mp-check-entry__go {
  flex: none;
  color: var(--mp-accent-strong);
  font-size: 20px;
  font-weight: 700;
}

/* 同じエリアのリンク */
.related-more {
  margin: 14px 0 0;
  text-align: right;
}

.related-more a {
  color: var(--mp-accent-dark);
  font-size: 14px;
  font-weight: 700;
}

/* エリアページの見出しを詰めて一覧を早く見せる */
.tax-area .page-header {
  padding: 0;
  margin-bottom: 14px;
  border: 0;
  background: none;
  box-shadow: none;
  text-align: left;
}

.tax-area .page-header .title-icon {
  display: none;
}

.tax-area .page-title {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-size: 22px;
  line-height: 1.45;
  text-align: left;
}

.tax-area .page-title .count {
  display: none;
}

.tax-area .breadcrumbs {
  margin-bottom: 8px;
  padding: 6px 0;
}

.area-lead {
  margin: 0 0 12px;
  color: var(--mp-text);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.area-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.area-jump a,
.area-jump a:visited {
  padding: 6px 12px;
  border: 1px solid var(--mp-line);
  border-radius: 999px;
  background: #fff;
  color: var(--mp-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.area-jump a:hover {
  border-color: var(--mp-accent-strong);
}

#clinic-list,
#area-cities,
#area-stations {
  scroll-margin-top: 12px;
}

.tax-area .page-description {
  margin: 0 0 24px;
  color: var(--mp-text);
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}

.mp-inline--top {
  margin: 16px 0 24px;
}

/* セルフチェック */
.sc {
  max-width: 680px;
  margin: 0 auto 28px;
  color: var(--mp-text);
  font-size: 15px;
  line-height: 1.8;
}

.sc [hidden] {
  display: none !important;
}

.sc p {
  margin: 0 0 8px;
}

.sc--inline {
  max-width: none;
  padding: 18px;
  border: 2px solid var(--mp-accent);
  border-radius: 14px;
  background: #fff;
}

.sc-heading {
  color: var(--mp-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.sc .sc-notice {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--mp-soft);
  color: var(--mp-text);
  font-size: 13px;
  line-height: 1.6;
}

.sc-lead {
  margin-top: 12px !important;
  color: var(--mp-ink);
  font-size: 14px;
}

.sc-bar {
  height: 6px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--mp-line);
  overflow: hidden;
}

.sc-bar span {
  display: block;
  width: 8.33%;
  height: 100%;
  background: var(--mp-accent);
  transition: width 0.2s ease;
}

.sc-progress {
  margin: 4px 0 8px !important;
  color: var(--mp-muted);
  font-size: 13px;
  text-align: right;
}

.sc-q {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.sc-q legend {
  display: block;
  min-height: 3.2em;
  padding: 0;
  color: var(--mp-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.sc-q__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.sc-choice {
  display: block;
  margin: 0;
  cursor: pointer;
}

.sc-choice input {
  position: absolute;
  opacity: 0;
}

.sc-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 52px;
  padding: 8px;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #fff;
  color: var(--mp-ink);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.sc-choice input:checked + span {
  border-color: var(--mp-accent);
  background: var(--mp-accent-soft);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--mp-accent);
}

.sc-choice input:focus-visible + span {
  outline: 2px solid var(--mp-accent-strong);
  outline-offset: 2px;
}

.sc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.sc-nav__prev,
.sc-nav__next {
  padding: 8px 12px;
  border: 0;
  background: none;
  font-size: 14px;
  cursor: pointer;
}

.sc-nav__prev {
  color: var(--mp-muted);
  text-decoration: underline;
}

.sc-nav__next {
  margin-left: auto;
  color: var(--mp-accent-strong);
  font-weight: 700;
}

.sc-nav__next:disabled {
  color: #a9b6c1;
  cursor: not-allowed;
}

.sc-privacy {
  margin: 4px 0 0 !important;
  color: var(--mp-muted);
  font-size: 12px;
}

.sc-results:focus {
  outline: none;
}

.sc-result,
.sc-crisis {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 12px;
}

.sc-result {
  border: 1px solid var(--mp-line);
  background: var(--mp-soft);
}

.sc-result__title {
  color: var(--mp-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.sc-crisis {
  border: 2px solid var(--mp-crisis);
  background: var(--mp-crisis-soft);
}

.sc .sc-crisis__list {
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.sc-crisis__list li {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.sc-crisis__list a,
.sc-crisis__list a:visited {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--mp-crisis);
  text-decoration: none;
}

.sc-crisis__list strong,
.sc-crisis__list span {
  display: block;
}

.sc-crisis__list span {
  color: var(--mp-ink);
  font-size: 14px;
}

.sc-crisis__more {
  font-size: 13px;
}

.sc-ad__button {
  margin-top: 8px;
}

.sc-retry {
  display: block;
  margin: 14px auto;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--mp-muted);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

.sc-disclaimer {
  margin: 8px 0 0 !important;
  padding-top: 12px;
  border-top: 1px solid var(--mp-line);
  color: var(--mp-muted);
  font-size: 12px;
  line-height: 1.7;
}

/* エリアページ下部のコラム */
.area-column {
  margin: 32px 0;
  padding: 22px 20px;
  border-radius: 12px;
  background: #fff;
  color: var(--mp-text);
  font-size: 15px;
  line-height: 1.85;
}

.area-column h2 {
  margin: 0 0 12px;
  color: var(--mp-ink);
  font-size: 21px;
  line-height: 1.45;
  text-align: left;
}

.area-column h3 {
  margin: 24px 0 8px;
  padding-left: 10px;
  border-left: 4px solid var(--mp-accent);
  color: var(--mp-ink);
  font-size: 17px;
  line-height: 1.5;
}

.area-column p {
  margin: 0 0 10px;
}

.area-column ul {
  margin: 0 0 10px;
  padding-left: 20px;
  list-style: disc;
}

.area-column li {
  margin-bottom: 6px;
  list-style: disc;
}

.area-column a {
  color: var(--text-blue, #1976d2);
  text-decoration: underline;
}

.area-column__note {
  margin-top: 18px !important;
  padding-top: 12px;
  border-top: 1px solid var(--mp-line);
  color: var(--mp-muted);
  font-size: 12px;
  line-height: 1.7;
}

@media (min-width: 769px) {
  .mp-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    column-gap: 28px;
    padding: 24px;
  }

  .mp-card > * {
    grid-column: 1;
  }

  .mp-card > .mp-card__image {
    grid-column: 2;
    grid-row: 1 / span 8;
    margin-bottom: 0;
  }

  .mp-inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .mp-button--small,
  .mp-button--small:visited {
    width: auto;
    flex: none;
  }

  .sc-q__choices {
    grid-template-columns: repeat(4, 1fr);
  }

  .sc-q legend {
    min-height: 0;
  }
}

/* 診療時間表がスマホで画面からはみ出さないようにする */
@media (max-width: 768px) {
  .clinic-detail .hour_table {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto !important;
  }
}

/* スマホでサイト名が1文字だけ折り返さないようにする */
@media (max-width: 480px) {
  #logo,
  #logo a {
    font-size: min(4.4vw, 17px);
    line-height: 1.4;
    white-space: nowrap;
  }
}

/* トップのスマホ表示: 検索窓と広告枠を最初の画面に収める */
@media (max-width: 767px) {
  .home .hero-content {
    padding: 24px 20px;
  }

  .home .hero-title {
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 1.4;
  }

  .home .hero-subtitle {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .home .site-main {
    padding-top: 0;
  }

  .home .mp-inline--top {
    margin-top: 12px;
    padding: 12px 14px;
    gap: 8px;
  }
}

/* スマホではメンクリ枠を短くして、チェックと一覧を早く見せる */
@media (max-width: 768px) {
  .mp-card {
    padding: 16px;
  }

  .mp-card__image {
    width: 62%;
    margin: 0 auto 10px;
  }

  .mp-card__text,
  .mp-card__points li:nth-child(n+4) {
    display: none;
  }

  .mp-card__points {
    margin-bottom: 10px;
  }

  .mp-card__price {
    margin-bottom: 12px;
  }
}

/* トップの主要都市・主要駅 */
.major-areas {
  margin: 32px 0;
}

.major-areas__title {
  margin: 24px 0 12px;
  color: var(--mp-ink);
  font-size: 20px;
  font-weight: 700;
  text-align: left;
}

.major-areas__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.major-areas__list a,
.major-areas__list a:visited {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  background: #fff;
  color: var(--mp-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.major-areas__list a:hover {
  border-color: var(--mp-accent);
}

.major-areas__list span {
  flex: none;
  color: var(--mp-muted);
  font-size: 12px;
  font-weight: 400;
}

.area-jump__label {
  flex-basis: 100%;
  color: var(--mp-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
