/* 大阪石材 新トップ（テスト）— 差し込んだ欄だけに効きます。文字や見出しはテーマの書式をそのまま使います。 */
.ostv2-testbar { background: #fff4d6; color: #5a4300; font-size: 13px; line-height: 1.6; padding: 8px 16px; text-align: center; }
.ostv2-testbar a { margin-left: 8px; font-weight: 700; }
.ostv2-adminnote { margin: 0; background: #fff4d6; color: #5a4300; border-radius: 4px; padding: 14px 18px; font-size: 13px; line-height: 1.7; }

.ostv2-box { box-sizing: border-box; }
.ostv2-box *, .ostv2-box *::before, .ostv2-box *::after { box-sizing: border-box; }
.ostv2-reviews-box { background: rgba(240, 246, 252, .7); }
.ostv2-box > .inner { padding-top: 80px; padding-bottom: 100px; }

/* 総合評価 */
.ostv2-score { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 32px auto 28px; }
.ostv2-score__num { font-size: 48px; font-weight: 700; color: #273558; line-height: 1; }
.ostv2-score__meta { display: flex; flex-direction: column; font-size: 13px; color: #555; line-height: 1.6; text-align: left; }
.ostv2-stars { color: #b7791f; font-size: 18px; letter-spacing: 2px; }
.ostv2-stars--partial { position: relative; display: inline-block; white-space: nowrap; line-height: 1.3; }
.ostv2-stars__base { color: #d9d9d9; }
.ostv2-stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; color: #b7791f; }

/* 説明文は中央寄せ */
.ostv2-box .top-reason__word, .ostv2-box .top-reason__word .com-txt { text-align: center; }

/* 口コミ：左右の矢印で切り替えるスライダー */
.ostv2-slider { display: flex; align-items: center; gap: 12px; }
.ostv2-slider__viewport { flex: 1 1 auto; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px; }
.ostv2-slider__viewport::-webkit-scrollbar { display: none; }
.ostv2-slider__viewport:focus-visible { outline: 2px solid #273558; outline-offset: 4px; border-radius: 12px; }
.ostv2-slider__track { display: flex; gap: 20px; }
.ostv2-slider__track .ostv2-review { scroll-snap-align: start; }
.ostv2-slider__btn { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #273558; background: #fff; color: #273558; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background .15s, color .15s, opacity .15s; }
.ostv2-slider__btn:hover:not(:disabled) { background: #273558; color: #fff; }
.ostv2-slider__btn:focus-visible { outline: 2px solid #273558; outline-offset: 3px; }
.ostv2-slider__btn:disabled { opacity: .3; cursor: default; }
.ostv2-slider.is-static .ostv2-slider__btn { visibility: hidden; }
.ostv2-review { flex: 0 0 340px; width: 340px; background: #fff; border: 2px solid #273558; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.ostv2-review__text { margin: 0; font-size: 14px; line-height: 1.9; color: #444; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.ostv2-review__head { display: flex; align-items: center; gap: 12px; }
.ostv2-review__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: #e3e8f2; }
.ostv2-review__avatar--initial { display: flex; align-items: center; justify-content: center; font-weight: 700; color: #273558; font-size: 16px; }
.ostv2-review__who { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.ostv2-review__name { font-weight: 700; font-size: 14px; color: #273558; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.ostv2-review__name { text-decoration: none; }
a.ostv2-review__name:hover { text-decoration: underline; }
.ostv2-review__when { font-size: 12px; color: #666; }
.ostv2-note { margin: 16px 0 0; font-size: 12px; color: #666; text-align: center; }

/* Instagram：投稿を埋め込んだような見た目のカード */
.ostv2-ig-box .ostv2-slider { margin-top: 32px; }
.ostv2-igpost { flex: 0 0 320px; width: 320px; scroll-snap-align: start; background: #fff; border: 1px solid #dbdbdb; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; text-align: left; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; color: #262626; }
.ostv2-igpost__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; }
.ostv2-igpost__user { display: flex; align-items: center; gap: 10px; min-width: 0; color: #262626; text-decoration: none; }
.ostv2-igpost__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px #dbdbdb; }
.ostv2-igpost__avatar--blank { background: #efefef; }
.ostv2-igpost__name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ostv2-igpost__profile { flex: none; font-size: 12px; font-weight: 600; color: #fff; background: #0095f6; padding: 6px 10px; border-radius: 6px; text-decoration: none; }
.ostv2-igpost__profile:hover { background: #1877f2; color: #fff; }
.ostv2-igpost__media { position: relative; display: block; aspect-ratio: 1 / 1; background: #efefef; overflow: hidden; }
.ostv2-igpost__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s; }
.ostv2-igpost__media:hover img { opacity: .92; }
.ostv2-igpost__badge { position: absolute; top: 10px; right: 10px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.ostv2-igpost__actions { display: flex; align-items: center; gap: 14px; padding: 10px 14px 4px; color: #262626; }
.ostv2-igpost__save { margin-left: auto; }
.ostv2-igpost__caption { margin: 4px 14px 0; font-size: 13px; line-height: 1.6; color: #262626; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.ostv2-igpost__caption b { font-weight: 600; }
.ostv2-igpost__date { display: block; margin: 6px 14px 0; font-size: 11px; color: #8e8e8e; letter-spacing: .02em; }
.ostv2-igpost__more { display: block; margin-top: auto; padding: 12px 14px; border-top: 1px solid #efefef; font-size: 13px; font-weight: 600; color: #0095f6; text-decoration: none; }
.ostv2-igpost__more:hover { text-decoration: underline; }
.ostv2-igpost__caption + .ostv2-igpost__more, .ostv2-igpost__date + .ostv2-igpost__more { margin-top: 12px; }

@media (max-width: 960px) {
}
@media (max-width: 640px) {
	.ostv2-review { flex-basis: 280px; width: 280px; padding: 18px; }
	.ostv2-slider__track { gap: 12px; }
	.ostv2-slider { gap: 6px; }
	.ostv2-slider__btn { width: 36px; height: 36px; }
	.ostv2-review { flex-basis: 260px; width: 260px; }
	.ostv2-igpost { flex-basis: 270px; width: 270px; }
	.ostv2-ig-box a.ostv2-igpost__profile { display: none; }
	.ostv2-score { margin: 20px auto; }
	.ostv2-box > .inner { padding-top: 48px; padding-bottom: 56px; }
	.ostv2-score__num { font-size: 38px; }
}

/* テーマのリンク色に負けないように */
.ostv2-ig-box a.ostv2-igpost__user, .ostv2-ig-box a.ostv2-igpost__user:hover { color: #262626 !important; text-decoration: none !important; }
.ostv2-ig-box a.ostv2-igpost__profile, .ostv2-ig-box a.ostv2-igpost__profile:hover { color: #fff !important; text-decoration: none !important; }
.ostv2-ig-box a.ostv2-igpost__more { color: #0095f6 !important; text-decoration: none !important; }
.ostv2-ig-box a.ostv2-igpost__more:hover { text-decoration: underline !important; }

/* Instagramはお知らせのすぐ下なので、上の余白を詰める */
.ostv2-ig-box > .inner { padding-top: 16px; }
@media (max-width: 640px) { .ostv2-ig-box > .inner { padding-top: 8px; } }

/* ---------- 墓地・霊園を検索（トップ用の簡略版） ---------- */
.ostv2-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ostv2-reien { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: 40px; margin: 32px auto 0; max-width: 1000px; padding: 22px 40px; background: #fff; border: 2px solid #273558; border-radius: 12px; text-align: left; }
.ostv2-reien *, .ostv2-reien *::before, .ostv2-reien *::after { box-sizing: border-box; }
.ostv2-reien__tit { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: #273558; letter-spacing: .04em; line-height: 1.4; }
.ostv2-reien__lead { margin: 0 0 16px; font-size: 14px; color: #555; line-height: 1.7; }
.ostv2-reien__form { display: flex; gap: 0; max-width: 560px; }
.ostv2-reien__form input[type="search"] { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 16px; font-size: 16px; color: #333; background: #fff; border: 2px solid #273558; border-right: 0; border-radius: 8px 0 0 8px; outline: none; -webkit-appearance: none; appearance: none; }
.ostv2-reien__form input[type="search"]:focus-visible { box-shadow: inset 0 0 0 2px #7d8fbf; }
.ostv2-reien__form button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 52px; padding: 0 22px; font-size: 15px; font-weight: 700; color: #fff; background: #273558; border: 2px solid #273558; border-radius: 0 8px 8px 0; cursor: pointer; }
.ostv2-reien__form button:hover { background: #1b2540; }
.ostv2-reien__form button:focus-visible { outline: 2px solid #273558; outline-offset: 3px; }
.ostv2-reien__more { margin: 12px 0 0; font-size: 13px; }
.ostv2-reien a, .ostv2-reien__more a { color: #003b89; font-weight: 700; text-decoration: none; }
.ostv2-reien__more a::after { content: " ›"; }
.ostv2-reien__more a:hover { text-decoration: underline; }
.ostv2-reien__map { margin: 0; }
.ostv2-reien__map svg { display: block; width: 100%; height: auto; max-height: 370px; }
.ostv2-reien__sea { font-size: 16px; fill: #8aa4c8; letter-spacing: .1em; }
.ostv2-reien__area polygon { fill: #e8eef8; stroke: #fff; stroke-width: 3; stroke-linejoin: round; transition: fill .15s; }
.ostv2-reien__area:hover polygon, .ostv2-reien__area:focus-visible polygon { fill: #273558; }
.ostv2-reien__area:focus { outline: none; }
.ostv2-reien__lbl { font-size: 20px; font-weight: 700; fill: #273558; text-anchor: middle; pointer-events: none; }
.ostv2-reien__cnt { font-size: 13px; fill: #5a6680; text-anchor: middle; pointer-events: none; }
.ostv2-reien__area:hover .ostv2-reien__lbl, .ostv2-reien__area:hover .ostv2-reien__cnt, .ostv2-reien__area:focus-visible .ostv2-reien__lbl, .ostv2-reien__area:focus-visible .ostv2-reien__cnt { fill: #fff; }
.ostv2-reien__map figcaption { margin-top: 4px; font-size: 11px; color: #777; text-align: center; line-height: 1.5; }

.ostv2-sp { display: none; }
.ostv2-reien__maptit { display: none; }

@media (max-width: 640px) {
	.ostv2-sp { display: inline; }
	.ostv2-reien { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tit" "lead" "form" "map" "more"; gap: 0; margin-top: 20px; padding: 20px 16px 18px; border-radius: 10px; }
	.ostv2-reien__body { display: contents; }
	.ostv2-reien__tit { grid-area: tit; font-size: 19px; margin-bottom: 4px; }
	.ostv2-reien__lead { grid-area: lead; font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
	.ostv2-reien__form { grid-area: form; max-width: none; }
	.ostv2-reien__form input[type="search"], .ostv2-reien__form button { height: 48px; }
	.ostv2-reien__form input[type="search"] { font-size: 16px; padding: 0 12px; }
	.ostv2-reien__form button { padding: 0 16px; }
	.ostv2-reien__map { grid-area: map; display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e3e6ec; }
	.ostv2-reien__map svg { flex: none; width: 132px; max-height: none; }
	.ostv2-reien__map figcaption { margin: 0; text-align: left; font-size: 12px; line-height: 1.6; color: #555; }
	.ostv2-reien .ostv2-reien__maptit { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 700 !important; color: #273558 !important; }
	.ostv2-reien__sea, .ostv2-reien__cnt { display: none; }
	.ostv2-reien__lbl { font-size: 25px; }
	.ostv2-reien__more { grid-area: more; margin-top: 12px; text-align: right; }
}
