/* ==========================================================
   本文用の部品（inc/blocks.php）
   ========================================================== */

/* ---------- 症例一覧 [hdo_cases] ---------- */
.hdo-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 12px;
  padding: 0;
}
.hdo-cases-item {
  list-style: none;
  margin: 0;
}
.hdo-cases-link {
  display: block;
  position: relative;
  height: 100%;
  padding: 16px 44px 16px 18px;
  background: #fff;
  border: 1px solid rgba(64, 107, 81, 0.25);
  border-radius: 8px;
  color: #2c382e;
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, translate 0.3s ease;
}
.hdo-cases-link::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-top: 1px solid #406b51;
  border-right: 1px solid #406b51;
  rotate: 45deg;
}
.hdo-cases-ttl {
  display: block;
  color: #406b51;
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  line-height: 1.5;
}
.hdo-cases-sum {
  display: block;
  margin-top: 4px;
  color: #5d6660;
  font-size: 13px;
  line-height: 1.6;
}
.hdo-cases-more {
  margin: 0 0 8px;
}
@media (hover: hover) and (pointer: fine) {
  .hdo-cases-link:hover {
    border-color: #406b51;
    box-shadow: 0 10px 24px -16px rgba(37, 66, 49, 0.5);
    translate: 0 -2px;
  }
}
@media screen and (max-width: 768px) {
  .hdo-cases {
    grid-template-columns: 1fr;
  }
}

/* ---------- 予約導線 [hdo_cta] ---------- */
.hdo-cta {
  margin: 40px 0;
  padding: 30px 32px;
  background: #f1f5f2;
  border: 1px solid rgba(64, 107, 81, 0.3);
  border-radius: 12px;
}
.hdo-cta .hdo-cta-ttl {
  margin: 0 0 8px;
  color: #406b51;
  font-family: "Shippori Mincho", serif;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.hdo-cta .hdo-cta-lead {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.9;
}
.hdo-cta-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.hdo-cta-btns a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: filter 0.3s ease, translate 0.3s ease;
}
.hdo-cta-sub {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.hdo-cta-tel {
  background: #215d96;
  letter-spacing: 0.04em;
}
.hdo-cta-first {
  background: #406b51;
}
.hdo-cta-web {
  background: #528566;
}
.hdo-cta .hdo-cta-hours {
  margin: 14px 0 0;
  color: #5d6660;
  font-size: 13px;
  line-height: 1.7;
}
@media (hover: hover) and (pointer: fine) {
  .hdo-cta-first:hover,
  .hdo-cta-web:hover {
    filter: brightness(1.08);
    translate: 0 -2px;
  }
}
@media screen and (max-width: 768px) {
  .hdo-cta {
    margin: 32px 0;
    padding: 22px 18px;
  }
  .hdo-cta .hdo-cta-ttl {
    font-size: 19px;
  }
  .hdo-cta-btns {
    grid-template-columns: 1fr;
  }
  .hdo-cta-btns a {
    min-height: 60px;
    font-size: 17px;
  }
}

/* ---------- 症例詳細 → 診療ページ ---------- */
.hdo-case-related {
  margin: 32px 0 0;
  padding: 18px 20px;
  background: #fff;
  border-left: 3px solid #406b51;
  border-radius: 4px;
}
.hdo-case-related span {
  display: block;
  margin-bottom: 4px;
  color: #8a938c;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.hdo-case-related a {
  color: #406b51;
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 通院の流れ（本文の ul.hdo-steps） ---------- */
.hdo-steps {
  margin: 16px 0 24px;
  padding: 0;
  counter-reset: hdo-step;
}
.hdo-steps li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 12px 0 12px 46px;
  border-bottom: 1px dashed rgba(64, 107, 81, 0.3);
  line-height: 1.8;
}
.hdo-steps li::before {
  counter-increment: hdo-step;
  content: counter(hdo-step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #406b51;
  color: #fff;
  font-family: "Marcellus", serif;
  font-size: 14px;
  line-height: 30px;
  text-align: center;
}
.hdo-steps strong {
  color: #406b51;
  font-weight: 500;
  margin-right: 6px;
}
.hdo-checks {
  margin: 12px 0 8px;
  padding: 0;
}
.hdo-checks li {
  position: relative;
  list-style: none;
  padding: 8px 0 8px 26px;
  line-height: 1.8;
}
.hdo-checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 10px;
  height: 6px;
  border-left: 2px solid #406b51;
  border-bottom: 2px solid #406b51;
  rotate: -45deg;
}

/* 本文共通スタイル（.local__content p 等）より優先させる */
.hdo-checks a,
.hdo-cases-more a {
  color: #406b51;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hdo-checks a:hover,
.hdo-cases-more a:hover {
  text-decoration-thickness: 2px;
}

/* ==========================================================
   記事末尾の導線（基礎知識の記事）[hdo_render_article_guide]
   押しつけにならないよう、記事の延長として控えめに見せる
   ========================================================== */
.hdo-guide {
  max-width: 980px;
  margin: 64px auto 24px;
  padding: 0 20px;
  box-sizing: border-box;
}
.hdo-guide .hdo-guide-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
}
.hdo-guide .hdo-guide-links li {
  list-style: none;
  margin: 0;
}
.hdo-guide .hdo-guide-link {
  display: block;
  position: relative;
  height: 100%;
  padding: 18px 40px 18px 20px;
  background: #fff;
  border: 1px solid rgba(64, 107, 81, 0.22);
  border-radius: 8px;
  color: #2c382e;
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.hdo-guide .hdo-guide-link::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-top: 1px solid #406b51;
  border-right: 1px solid #406b51;
  rotate: 45deg;
  transition: translate 0.3s ease;
}
.hdo-guide .hdo-guide-name {
  display: block;
  color: #406b51;
  font-family: "Shippori Mincho", serif;
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 6px;
}
.hdo-guide .hdo-guide-desc {
  display: block;
  color: #5d6660;
  font-size: 13px;
  line-height: 1.75;
}
.hdo-guide .hdo-guide-consult {
  margin-top: 36px;
  padding: 26px 28px;
  border-top: 1px solid rgba(64, 107, 81, 0.3);
  border-bottom: 1px solid rgba(64, 107, 81, 0.3);
}
.hdo-guide .hdo-guide-consult-ttl {
  margin: 0 0 8px;
  color: #406b51;
  font-family: "Shippori Mincho", serif;
  font-size: 19px;
  line-height: 1.5;
}
.hdo-guide .hdo-guide-consult-text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.9;
}
.hdo-guide .hdo-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hdo-guide .hdo-guide-actions a {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 260px;
  min-height: 60px;
  padding: 8px 20px;
  border: 1px solid #406b51;
  border-radius: 6px;
  color: #406b51;
  font-family: "Shippori Mincho", serif;
  font-size: 17px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.hdo-guide .hdo-guide-tel span {
  display: block;
  font-size: 12px;
  color: #5d6660;
}
.hdo-guide .hdo-guide-note {
  margin: 14px 0 0;
  color: #5d6660;
  font-size: 13px;
  line-height: 1.8;
}
.hdo-guide .hdo-guide-note a {
  color: #406b51;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .hdo-guide .hdo-guide-link:hover {
    border-color: #406b51;
    box-shadow: 0 10px 24px -18px rgba(37, 66, 49, 0.5);
  }
  .hdo-guide .hdo-guide-link:hover::after {
    translate: 3px 0;
  }
  .hdo-guide .hdo-guide-first:hover {
    background: #406b51;
    color: #fff;
  }
}
@media screen and (max-width: 768px) {
  .hdo-guide {
    margin-top: 48px;
  }
  .hdo-guide .hdo-guide-consult {
    padding: 22px 4px;
  }
  .hdo-guide .hdo-guide-actions a {
    width: 100%;
    min-width: 0;
  }
}

/* ==========================================================
   初診予約の案内（初診は電話予約のみ）
   トップ「初めての方へ」の下と、初めての方へページの「ご予約について」
   ========================================================== */
.hdo-reserve-label {
  display: inline-block;
  margin: 0;
  padding: 4px 16px;
  background: #406b51;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.12em;
}
.hdo-reserve-tel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  padding: 12px 28px 14px;
  background: #215d96;
  border-radius: 10px;
  box-shadow: 0 10px 22px -14px rgba(33, 93, 150, 0.8);
  color: #fff;
  text-decoration: none;
  transition: filter 0.3s ease, translate 0.3s ease;
}
.hdo-reserve-tel-sub {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  opacity: 0.92;
}
.hdo-reserve-tel-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Marcellus", serif;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: 0.06em;
}
.hdo-reserve-tel-num::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hdo-reserve-hours {
  margin: 10px 0 0;
  color: #5d6660;
  font-size: 13px;
  line-height: 1.7;
}
.hdo-reserve-hours span + span::before {
  content: "、";
}
@media (hover: hover) and (pointer: fine) {
  .hdo-reserve-tel:hover {
    filter: brightness(1.1);
    translate: 0 -2px;
  }
}
.hdo-reserve-tel:focus-visible {
  outline: 3px solid #406b51;
  outline-offset: 3px;
}

/* ---------- トップ ---------- */
.hdo-top-reserve {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: center;
  max-width: 1160px;
  margin: 40px auto 0;
  padding: 30px 44px;
  background: #fff;
  border: 1px solid rgba(64, 107, 81, 0.35);
  border-radius: 12px;
  box-shadow: 0 16px 36px -28px rgba(37, 66, 49, 0.55);
  box-sizing: border-box;
}
.hdo-top-reserve .hdo-top-reserve-ttl {
  margin: 12px 0 8px;
  color: #406b51;
  font-family: "Shippori Mincho", serif;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.hdo-top-reserve .hdo-top-reserve-lead {
  margin: 0;
  color: #2c382e;
  font-size: 15px;
  line-height: 1.9;
}
.hdo-top-reserve-action {
  text-align: center;
}

/* ---------- 初めての方へ「ご予約について」 ---------- */
.local__content .hdo-reserve {
  position: relative;
  margin: 64px 0 56px;
  padding: 44px 48px 36px;
  background: #fff;
  border: 2px solid #406b51;
  border-radius: 14px;
  text-align: center;
}
.local__content .hdo-reserve .hdo-reserve-label {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -50%;
  padding: 6px 22px;
  font-size: 14px;
  white-space: nowrap;
}
.local__content .hdo-reserve h3.hdo-reserve-ttl {
  margin: 0 0 16px;
  padding: 0;
  border: none;
}
.local__content .hdo-reserve-body {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.local__content .hdo-reserve-body p {
  margin-bottom: 0;
}
.local__content p.hdo-reserve-hours {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}
.local__content .hdo-reserve-action {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px dashed rgba(64, 107, 81, 0.35);
}
.local__content .hdo-reserve + h3 {
  border-top: none;
  padding-top: 0;
}

@media screen and (max-width: 768px) {
  .hdo-reserve-tel {
    display: flex;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .hdo-reserve-tel-num {
    font-size: 26px;
  }
  .hdo-reserve-hours span {
    display: block;
  }
  .hdo-reserve-hours span + span::before {
    content: none;
  }
  .hdo-top-reserve {
    grid-template-columns: 1fr;
    margin-top: 28px;
    padding: 24px 18px;
    text-align: center;
  }
  .hdo-top-reserve .hdo-top-reserve-ttl {
    font-size: 19px;
  }
  .hdo-top-reserve .hdo-top-reserve-lead {
    font-size: 14px;
    text-align: left;
  }
  .local__content .hdo-reserve {
    margin: 48px 0 40px;
    padding: 34px 18px 24px;
  }
}
