@charset "utf-8";
/*---------------------------------------------
 お客様の声（taxonomy-customer_voice）
 is_tax('customer_voice') のときだけ読込。hospital_case.css（hc-*）と併用し、
 本ファイルは #content.hc-page--voice 配下と、このページの MV／フッターCTA のみ
---------------------------------------------*/

/* 見出し（事例紹介トップ .hc-ar-title と同じ体裁） */
#content.hc-page--voice .hc-vo-title {
  margin: 0 0 60px;
  text-align: center;
  font-family: "Zen Old Mincho", "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho Pro", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--hc-green);
}

/* ページ内リンク（1件でも中央に寄せるため flex ＋ 固定幅） */
#content.hc-page--voice .hc-vo-nav {
  margin: 0 0 100px;
}
#content.hc-page--voice .hc-vo-nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}
#content.hc-page--voice .hc-vo-nav__list li {
  list-style: none; /* layout.css の ol li{decimal} 対策 */
  width: calc((100% - 40px) / 3);
}
#content.hc-page--voice .hc-vo-nav__list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 90px;
  padding: 15px 45px;
  border-radius: 8px;
  background-color: var(--hc-bg-tag);
  color: var(--hc-green);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
  transition: opacity 0.3s;
}
/* 下向きの矢印（ページ内移動） */
#content.hc-page--voice .hc-vo-nav__list a:after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--hc-green);
  border-bottom: 2px solid var(--hc-green);
  transform: rotate(45deg);
}
#content.hc-page--voice .hc-vo-nav__list a:hover {
  opacity: 0.75;
}

/* 事例の縦積み（本文幅は事例詳細の .hc-main と同じ 761px、区切りは小カテゴリページと同じ） */
#content.hc-page--voice .hc-vo-list {
  max-width: 761px;
  margin: 0 auto;
}
#content.hc-page--voice .hc-vo-item {
  scroll-margin-top: 150px; /* script.js を通らない遷移（直リンク等）用 */
}
#content.hc-page--voice .hc-vo-item + .hc-vo-item {
  margin-top: 80px;
  padding-top: 45px;
  border-top: 2px solid #F1F1F1;
}
#content.hc-page--voice .hc-vo-item .hc-case {
  margin: 45px 0 0;
  padding: 0;
  border-top: 0;
}
#content.hc-page--voice .hc-vo-item > .hc-case:first-child {
  margin-top: 0;
}

/* MV背景
   .pageMain は #content の外（header.php の pageTitle()）のため、直後の #container で限定 */
.pageMain:has(+ #container > #content.hc-page--voice) {
  background-image: url("../images/content/voice_mv.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* フッターCTA「お問い合わせはこちら」：反転配色（白地・緑文字 → hover で緑地・白文字） */
body:has(#content.hc-page--voice) footer .box1 .btn.w a {
  border-color: #FFF;
  background-color: #FFF;
  color: #007C4F;
}
body:has(#content.hc-page--voice) footer .box1 .btn.w a:before {
  background: url("../images/common/arrow.svg") no-repeat center;
}
body:has(#content.hc-page--voice) footer .box1 .btn.w a:hover {
  background-color: #007C4F;
  color: #FFF;
}
body:has(#content.hc-page--voice) footer .box1 .btn.w a:hover:before {
  background: url("../images/common/arrow_w.svg") no-repeat center;
}

@media screen and (max-width: 768px) {
  #content.hc-page--voice .hc-vo-title {
    margin-bottom: 40px;
    font-size: 22px;
  }
  #content.hc-page--voice .hc-vo-nav {
    margin-bottom: 60px;
  }
  #content.hc-page--voice .hc-vo-nav__list {
    gap: 10px;
  }
  #content.hc-page--voice .hc-vo-nav__list li {
    width: 100%;
  }
  #content.hc-page--voice .hc-vo-nav__list a {
    min-height: 60px;
    font-size: 14px;
  }
  #content.hc-page--voice .hc-vo-item {
    scroll-margin-top: 80px;
  }
  #content.hc-page--voice .hc-vo-item + .hc-vo-item {
    margin-top: 50px;
    padding-top: 30px;
  }
  #content.hc-page--voice .hc-vo-item .hc-case {
    margin-top: 30px;
  }
}
