/************************************
** 追従_小冊子CV
************************************/
/* フッターCTA */
.blk_cta {
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  bottom: 0;
  display: flex;
  flex-wrap: nowrap;
  height: 80px;
  justify-content: center;
  left: 0;
  padding: 0;
  position: fixed;
  width: 100%;
  z-index: 3;
  font-size:14px;
  line-height:1em;
}

.conversion-pdf {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 20px 0;
  order: 3;
  padding: 10px 5px;
  position: relative;
  max-width: 1280px;
}

.conversion-pdf_wrap {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  margin-bottom: 8px;
}

.conversion-pdf_img {
  margin: 0;
  flex-shrink: 0;
}

.conversion-pdf_img p {
  background: no-repeat 1px 0/68px auto url(https://www.e-ohaka.com/responsive/img/balloon.png);
  font-size: 14px;
  height: 68px;
  left: 5px;
  line-height: 1.4;
  padding: 14px 0 0;
  position: absolute;
  top: 5px;
  width: 68px;
  text-align:center;
}

.conversion-pdf_txt {
  width: calc(100% - 140px);
}
.conversion-pdf_txt p {
  line-height:1.2em;
  padding:0;
  margin:0;
}

.conversion-pdf_ttl {
  color: #FFEB3B;
  font-size: 1.375rem;
  font-weight: bold;
  line-height: 1em;
  margin-bottom: 0px;
}

.conversion-pdf_subtxt {
  font-size: .875rem;
  font-weight: bold;
  line-height: 1em;
  color: #ffffff;
  margin-bottom: 0px;
}

.button_conversion-pdf {
  background: linear-gradient(to bottom, rgba(87, 221, 6, 1), rgba(5, 170, 34, 1));
  border-radius: 5px;
  border: 1px solid rgba(5, 170, 34, 1);
  box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
  box-sizing: border-box;
  display: block;
  flex-shrink: 0;
  height: auto;
  margin: 0 auto;
  padding: 0 0 5px;
  width: calc(100% - 10px);
  text-align:center;
}

.button_conversion-pdf a {
  color: #fff;
  display: block;
  height: 100%;
  line-height: 22px;
  text-decoration: none;
  width: 100%;
}

.cv-button-title {
  display: inline-block;
  font-size: 19px;
  font-weight: bold;
  line-height: 28px;
  margin-top: 5px;
  text-shadow: 0 0 6px rgb(0 0 0 / 15%);
}

.button_conversion-pdf .icon-free {
  background-color: #fff;
  border-radius: 2px;
  color: #05aa22;
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  height: 24px;
  line-height: 24px;
  margin-left: 5px;
  padding: 0 5px;
  transform: translateY(-3px);
}

@media screen and (min-width: 768px) {
  
  .conversion-pdf {
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: 20px 10px;
    padding: 10px 10px 0;
  }

  .conversion-pdf_wrap {
    margin-right: 10px;
    margin-bottom: 0;
  }

  .conversion-pdf_img {
    margin-right: 15px;
  }
  .conversion-pdf_img img {
    height: auto;
    margin: 0 10px 0 22px;
    max-width: 80px;
    object-fit: cover;
    object-position: 0 0;
    width: 60px;
  }
  .conversion-pdf_img p {
    background: no-repeat 1px 0/60px auto url(https://www.e-ohaka.com/responsive/img/balloon.png);
    font-size: 14px;
    line-height: 1em;
    width: 60px;
  }
  .conversion-pdf_txt {
    width: 100%;
  }
  .conversion-pdf_ttl {
    font-size: 22px;
  }

  .conversion-pdf_subtxt {
    font-size: 16px;
  }

  .button_conversion-pdf {
    height: 64px;
    margin-bottom: 8px;
    width: 250px;
  }

  .button_conversion-pdf a {
    line-height: 22px;
  }

  .cv-button-title {
    font-size: 22px;
  }

  .button_conversion-pdf .icon-free {
    font-size: 1rem;
  }

}

@media screen and (max-width: 767px) {
  .blk_cta {
    height: 118px;
    background: rgb(0 0 0 / 80%);
  }

  .conversion-pdf_img {
    margin: 0;
    flex-shrink: 0;
  }

  .conversion-pdf_img img {
    height: auto;
    margin: 0 0 0 40px;
    max-width: 50px;
    object-fit: cover;
    object-position: 0 0;
    width: 40%;
  }
  
  .conversion-pdf_img p {
    background: no-repeat 1px 0/48px auto url(https://www.e-ohaka.com/responsive/img/balloon.png);
    font-size: 11px;
    line-height: 1em;
    width: 48px;
  }
  
  .conversion-pdf_txt {
    width: 100%;
  }
  .conversion-pdf_txt p {
    margin: 0px 0px 3px 0px;
    padding:0px;
  }
  .conversion-pdf_ttl {
    font-size: 16px;
  }

  .conversion-pdf_subtxt {
    font-size: 12px;
  }
  
  .button_conversion-pdf {
    height: 40px;
  }
  .cv-button-subtext {
    display:none;
  }
	.go-to-top{
		bottom:130px;
	}
}
/* ▲▲▲ 従_小冊子CVここまで ▲▲▲ */


/************************************
**  ▼▼▼ CTA お墓診断誘導 ▼▼▼
************************************/
  /* ===== パーツA：お墓診断 誘導カード（eoh-cta2）===== */
  .eoh-cta2,.eoh-cta2 *{box-sizing:border-box;}
  .eoh-cta2{position:relative;overflow:hidden;background:linear-gradient(180deg,#f6fce9 0%,#ecf7d9 100%);border:1px solid #d3e8b4;border-radius:16px;padding:20px 22px;margin:28px 0;}
  .eoh-cta2::after{content:"";position:absolute;top:-46px;right:-34px;width:170px;height:170px;background:radial-gradient(circle at 60% 40%,rgba(120,200,70,.28),rgba(120,200,70,0) 70%);border-radius:50%;pointer-events:none;}
  .eoh-cta2>*{position:relative;z-index:1;}
  /* wpautop対策 */
  .eoh-cta2 br{display:none;}
  .eoh-cta2 p{margin:0;padding:0;}
  .eoh-cta2 ul,.eoh-cta2 li{margin:0;padding:0;list-style:none;}
  .eoh-cta2 a{text-decoration:none;}
  /* header */
  .eoh-cta2 .eoh-cta2__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;}
  .eoh-cta2 .eoh-cta2__kicker{font-size:20px;font-weight:800;color:#556343;letter-spacing:.02em;}
  /* ↓Cocoonの .entry-content img{width:100%;height:100%;object-fit:cover} を打ち消す（.eoh-cta2内で詳細度勝ち） */
  .eoh-cta2 .eoh-cta2__logo{height:28px;width:auto;max-width:none;max-height:none;object-fit:initial;display:block;}
  .eoh-cta2 .eoh-cta2__figure{margin:0;text-align:center;}
  .eoh-cta2 .eoh-cta2__figure img{width:100%;max-width:300px;height:auto;max-height:none;object-fit:initial;display:inline-block;}
  /* main */
  .eoh-cta2 .eoh-cta2__main{display:flex;flex-direction:column;gap:14px;}
  .eoh-cta2 .eoh-cta2__catch{font-weight:800;color:#5ead34;font-size:22px;line-height:1.45;text-align:center;}
  .eoh-cta2 .eoh-cta2__catch .eoh-cta2__cl{display:block;}
  .eoh-cta2 .eoh-cta2__catch .eoh-cta2__hl{color:#e07b1e;}
  .eoh-cta2 .eoh-cta2__chips{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;}
  .eoh-cta2 .eoh-cta2__chips li{background:#fff;border:1px solid #d7ddc9;border-radius:8px;font-size:14px;font-weight:700;color:#555;padding:7px 14px;}
  /* button */
  .eoh-cta2 .eoh-cta2__btnwrap{width:100%;}
  .eoh-cta2 a.eoh-cta2__btn,.eoh-cta2 a.eoh-cta2__btn:hover,.eoh-cta2 a.eoh-cta2__btn:visited{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;background:linear-gradient(180deg,#e88b2f 0%,#d26a22 100%);color:#fff;font-weight:800;border-radius:12px;padding:15px 52px;box-shadow:0 4px 10px rgba(200,95,20,.30);transition:transform .12s ease,box-shadow .12s ease;}
  .eoh-cta2 a.eoh-cta2__btn:hover{transform:translateY(-2px);box-shadow:0 6px 14px rgba(200,95,20,.38);}
  .eoh-cta2 .eoh-cta2__free{background:#fff;color:#d26a22;font-size:13px;font-weight:800;border-radius:6px;padding:3px 9px;line-height:1;white-space:nowrap;}
  .eoh-cta2 .eoh-cta2__btn-text{font-size:19px;text-shadow:0 1px 2px rgba(0,0,0,.12);}
  .eoh-cta2 .eoh-cta2__arrow{position:absolute;right:16px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:2px solid rgba(255,255,255,.9);border-radius:50%;display:flex;align-items:center;justify-content:center;}
  .eoh-cta2 .eoh-cta2__arrow::before{content:"";width:7px;height:7px;border-top:2.5px solid #fff;border-right:2.5px solid #fff;transform:rotate(45deg);margin-left:-2px;}
  @media screen and (min-width:768px){
    .eoh-cta2{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:30px;row-gap:8px;padding:22px 28px;}
    .eoh-cta2 .eoh-cta2__head{grid-column:1/3;grid-row:1;margin-bottom:4px;}
    .eoh-cta2 .eoh-cta2__kicker{font-size:22px;}
    .eoh-cta2 .eoh-cta2__logo{height:32px;}
    .eoh-cta2 .eoh-cta2__figure{grid-column:1/2;grid-row:2;align-self:center;}
    .eoh-cta2 .eoh-cta2__figure img{width:270px;max-width:none;}
    .eoh-cta2 .eoh-cta2__main{grid-column:2/3;grid-row:2;gap:16px;justify-content:center;}
    .eoh-cta2 .eoh-cta2__catch{text-align:left;font-size:27px;}
    .eoh-cta2 .eoh-cta2__chips{justify-content:flex-start;}
  }

  /* ===== パーツB：軽量テキストリンク（どのエリアでも可）===== */
  .eoh-cta--inline{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;background:#f4faee;border:1px solid #cfe6c4;border-left:6px solid #5ead34;border-radius:8px;padding:14px 16px;margin:24px 0;}
  .eoh-cta--inline br{display:none;}
  .eoh-cta--inline p,.eoh-cta--inline .eoh-cta__inline-lead{font-size:15px;font-weight:700;color:#333;margin:0;padding:0;}
  .eoh-cta--inline .eoh-cta__hi{color:#3f8a1e;}
  .eoh-cta--inline a.eoh-cta__inline-link,.eoh-cta--inline a.eoh-cta__inline-link:visited{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(180deg,#e88b2f 0%,#d26a22 100%);color:#fff;text-decoration:none;font-weight:700;font-size:14px;border-radius:8px;padding:9px 16px;white-space:nowrap;box-shadow:0 2px 6px rgba(200,95,20,.25);}
  .eoh-cta--inline a.eoh-cta__inline-link::after{content:"";display:inline-block;width:7px;height:7px;border-top:2px solid #fff;border-right:2px solid #fff;transform:rotate(45deg);}

  /* ===== パーツC：スマホ追従フッターバー（SPのみ）===== */
  .eoh-sticky{display:none;}
  .eoh-sticky br{display:none;}
  @media screen and (max-width:767px){
    .eoh-sticky{display:flex;align-items:center;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:9990;background:rgba(255,255,255,.97);border-top:1px solid #cfe6c4;box-shadow:0 -3px 12px rgba(0,0,0,.12);padding:8px 12px calc(8px + env(safe-area-inset-bottom));}
    .eoh-sticky__txt{flex:1;min-width:0;font-size:12px;font-weight:700;color:#3f8a1e;line-height:1.35;}
    .eoh-sticky__txt small{display:block;font-size:10px;color:#8a9a78;font-weight:500;}
    .eoh-sticky a.eoh-sticky__btn,.eoh-sticky a.eoh-sticky__btn:visited{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;background:linear-gradient(180deg,#e88b2f 0%,#d26a22 100%);color:#fff;text-decoration:none;font-weight:800;font-size:15px;border-radius:10px;padding:11px 18px;box-shadow:0 2px 6px rgba(200,95,20,.3);}
    .eoh-sticky a.eoh-sticky__btn::after{content:"";display:inline-block;width:7px;height:7px;border-top:2px solid #fff;border-right:2px solid #fff;transform:rotate(45deg);}
    .eoh-sticky__close{flex:0 0 auto;background:none;border:none;color:#aaa;font-size:18px;line-height:1;padding:4px;cursor:pointer;}
  }
/* ▲▲▲ CTAお墓診断CSSここまで ▲▲▲ */




/****************************************
** 霊園カード折りたたみ (ranking-item-fold) 2026-09〜 v2
****************************************/
details.ranking-item-fold {
  display: block;
}

.ranking-item-fold-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 16px;
  padding: 10px 12px;
  border: 1px solid #cfe3d8;
  border-radius: 6px;
  background: #fff;
  color: #21976c;
  font-size: 0.95em;
  font-weight: bold;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}

.ranking-item-fold-label::-webkit-details-marker {
  display: none;
}

.ranking-item-fold-label::marker {
  content: "";
}

.ranking-item-fold-label:hover,
.ranking-item-fold-label:active {
  background: #f3faf7;
}

.ranking-item-fold-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-top: solid 2px currentColor;
  border-right: solid 2px currentColor;
  transform: rotate(135deg);
  flex-shrink: 0;
}

.ranking-item-fold-label::after {
  content: "この霊園のおすすめポイント・価格・口コミを見る";
}

.ranking-item-fold-body {
  position: relative;
  max-height: 260px;
  overflow: hidden;
}

.ranking-item-fold-body::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96) 70%);
  pointer-events: none;
}

details.ranking-item-fold[open] .ranking-item-fold-body {
  max-height: none;
}

details.ranking-item-fold[open] .ranking-item-fold-body::after {
  display: none;
}

details.ranking-item-fold[open] > .ranking-item-fold-label::before {
  margin-top: 4px;
  transform: rotate(-45deg);
}

details.ranking-item-fold[open] > .ranking-item-fold-label::after {
  content: "閉じる";
}

@media (max-width: 600px) {
  .ranking-item-fold-body {
    max-height: 220px;
  }

  .ranking-item-fold-body::after {
    height: 60px;
  }
}

.ranking-item-fold-label:focus-visible {
  outline: 2px solid #21976c;
  outline-offset: 2px;
}
.ranking-item[id^="ranking-item-"] {
  scroll-margin-top: 80px;
}

@media (max-width: 768px) {
  .ranking-item[id^="ranking-item-"] {
    scroll-margin-top: 64px;
  }
}
/*
 * nearby-scroller.css
 * いいお墓ガイド(guide.e-ohaka.com) エリア記事の「周辺エリアのおすすめ」枠を、
 * コンパクトなカードの横スライド(スワイプ)表示にするスタイル。
 *
 * 背景: 周辺エリア枠は本編ランキングと同じ大きさのカードで縦に積まれており、
 * 記事が長くなって本編の読了を妨げていた。いいお墓本体(www.e-ohaka.com)の
 * 詳細ページ下部「周辺のおすすめの霊園・墓地」と同じ、横スクロールで一覧できる
 * 形式に戻す(2026-09-14 先方要望)。
 *
 * 記事本文には<style>タグ・style属性を出さない方針のため、
 * assets/ranking-item-fold.css と同じくテーマ側で1回読み込む。
 * JSは使わない(CSSのスクロールスナップのみ)。未読込でも縦並びのリストとして
 * 読める(内容が消えない)マークアップにしてある。
 */

.nearby-scroller {
  position: relative;
  margin: 1em 0 1.8em;
}

.nearby-scroller-hint {
  margin: 0 0 6px;
  color: #6b7f76;
  font-size: 0.8em;
  text-align: right;
}

.nearby-scroller-hint::after {
  content: " ⇄";
}

.nearby-scroller-list {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0 4px 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.nearby-card {
  flex: 0 0 232px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 10px 10px 12px;
  border: 1px solid #cfe3d8;
  border-radius: 8px;
  background: #fff;
  list-style: none;
}

.nearby-card-img {
  display: block;
  margin-bottom: 8px;
}

.nearby-card-img img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 5px;
}

.nearby-card-area {
  margin: 0 0 2px;
  color: #21976c;
  font-size: 0.78em;
  font-weight: bold;
}

.nearby-card-name {
  margin: 0 0 4px;
  font-size: 0.92em;
  font-weight: bold;
  line-height: 1.4;
}

.nearby-card-name a {
  color: #333;
  text-decoration: none;
}

.nearby-card-eval {
  margin: 0 0 2px;
  color: #e2582b;
  font-size: 0.85em;
  font-weight: bold;
}

.nearby-card-price {
  margin: 0 0 2px;
  font-size: 0.85em;
}

.nearby-card-access {
  margin: 0 0 8px;
  color: #666;
  font-size: 0.78em;
  line-height: 1.4;
  /* アクセス表記の長さでカードの高さが揃わなくなるのを防ぐ(2行で打ち切る) */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nearby-card-btn {
  margin-top: auto;
  display: block;
  padding: 8px 4px;
  border-radius: 5px;
  background: #21976c;
  box-shadow: 0 2px 0 #17714f;
  color: #fff;
  font-size: 0.83em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.nearby-card-btn:hover {
  opacity: 0.9;
}

/* スマートフォン: 次のカードの端が少し見えるようにして「横に続く」ことを伝える */
@media (max-width: 600px) {
  .nearby-card {
    flex-basis: 208px;
  }

  .nearby-card-img img {
    height: 116px;
  }
}
