@charset "utf-8";
/* ランキングコンテンツ */
#ranking-wrapper {
  max-width: 840px;
  margin-top: 16px;
}

.ranking-card {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 40px;
  margin-bottom: 16px;
  background: #fff;
}

.sort-buttons button {
  margin: 0 5px;
  padding: 6px 12px;
  cursor: pointer;
}

#sort-select {
  background: #fff;
  color: #333;
  border-radius: 5px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  max-width: 300px;
  margin-bottom: 16px;
}

/* ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ */
/* #ranking-list を外して投稿ページでも効くように変更 */
.ranking-card .ranking-card-title {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  font-size: 1.875rem;
  border: none;
  padding: 0;
  margin-bottom: 0;
}

.ranking-card .ranking-card-title p {
  margin-bottom: 0;
  font-weight: bold;
}

.ranking-card .ranking-card-title div {
  max-width: 72px;
}

.ranking-card .serviceContent {
  padding-top: 24px;
  display: flex;
  justify-content: flex-start;
  gap: 24px;
	flex-wrap: wrap;
}

.ranking-card .serviceContent div div.rankItem {
  max-width: 230px;
  width: 100%;
}

.ranking-card .serviceContent .cv-shosai a,
.ranking-card .serviceContent .cv-official a {
  position: relative;
  display: block;
  max-width: 230px;
  color: #fff;
  background-color: #B24343;
  text-align: center;
  font-weight: bold;
  font-size: 1.125rem;
  padding: 16px;
  border-radius: 5px;
  margin-top: 16px;
}

.ranking-card .serviceContent .cv-shosai a {
  background-color: #929FA7;
	margin-bottom: 0;
}

.ranking-card .serviceContent .cv-shosai a::after,
.ranking-card .serviceContent .cv-official a::after {
  position: absolute;
  content: "〉";
  top: 21px;
  right: 8px;
  font-size: 0.7rem;
}

@media screen and (max-width:800px){
	.ranking-card .serviceContent .cv-official a{
	 max-width: 250px;
}
}

.ranking-card div .only-front .cvCampaign,
.ranking-card div .only-single .cvCampaign,
.ranking-card div .cv-official .cvCampaign{
	position:relative;
	display: block;
    width: 100%;
    height: 1px;
	margin-top: 16px;
}

.ranking-card div .top1-margin{
	margin-top:40px;
}



.ranking-card div .only-front .cvCampaign::before,
.ranking-card div .only-single .cvCampaign::before,
.ranking-card div .cv-official .cvCampaign::before{
	position:absolute;
	content:"";
	display: block;
	background-image:url(https://kaitori-ranking.jp/kitte/wp-content/themes/cocoon-child-master/parts/images/campaign.svg);
	background-size:contain;
	background-repeat:no-repeat;
	width:208px;
	height:60px;
	margin:0 auto;
	left:0;
	right:0;
	top: -47px;
	animation: breathing 2.5s ease-in-out infinite;
	will-change: transform; /* ← スムーズさUP */
}

.ranking-card div .only-single .cvCampaign::before,
.ranking-card div .only-front .cvCampaign::before{
	top:-67px;
}

@keyframes breathing {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}


.ranking-card .serviceContent .serviceContent_txt {
  width: calc(100% - 280px);
}

.ranking-card .serviceContent .serviceContent_txt p {
  font-size: 1.375rem;
  margin-bottom: 32px;
}

.ranking-card .serviceContent .serviceContent_txt ol li p {
  margin-bottom: 16px;
}

.ranking-card .serviceContent .serviceContent_txt ol {
  margin-bottom: 48px;
	padding-left:0;
}

.ranking-card .serviceContent .serviceContent_txt ol li {
  margin-bottom: 16px;
}

.ranking-card .serviceContent .serviceContent_txt ol li p {
  font-size: 1.25rem;
}

.ranking-card .serviceContent .serviceContent_txt ol li p span {
  color: #FF150D;
	font-weight:bold;
}

.ranking-card .serviceContent .serviceContent_txt ol li .pointBar {
  max-width: 100px;
  padding: 8px 0 11px;
  text-align: center;
  background-color: #7C9DA9;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.ranking-card .ranking-hikakuList table tbody tr td.starcolorOn {
  color: #FF7500;
}

.ranking-card .ranking-hikakuList table tbody tr td .starcolorOff{
  color: #7d6f62;
	opacity: 0.5;
}

.ranking-card .ranking-hikakuList table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ccc;
}

.ranking-card .ranking-hikakuList th,
.ranking-card .ranking-hikakuList td {
  border: 1px solid #ccc;
  padding: 8px;
}

.ranking-card .ranking-hikakuList th {
  background-color: #f2f2f2;
  text-align: left;
}

.ranking-card .ranking-hikakuList .cv-flex {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 40px;
  margin-top: 44px;
}

.ranking-card .ranking-hikakuList .cv-flex .cv-shosai,
.ranking-card .ranking-hikakuList .cv-flex .cv-official {
  width: 100%;
}

.ranking-card .ranking-hikakuList .cv-flex .cv-shosai{
	max-width: 350px;
	margin-top: 0;
}

.ranking-card .ranking-hikakuList .cv-flex .cv-official {
  width: 100%;
}

.ranking-card .ranking-hikakuList .cv-flex .cv-shosai a,
.ranking-card .ranking-hikakuList .cv-flex .cv-official a {
  position: relative;
  display: block;
/*   max-width: 350px; */
  width: 100%;
  color: #fff;
  background-color: #B24343;
  text-align: center;
  font-weight: bold;
  font-size: 1.125rem;
  padding: 16px;
  border-radius: 5px;
  margin-top: 16px;
}

.ranking-card .ranking-hikakuList .cv-flex .cv-shosai a {
  background-color: #929FA7;
	margin-bottom:0;
}

.ranking-card .ranking-hikakuList .cv-flex .cv-shosai a::before,
.ranking-card .ranking-hikakuList .cv-flex .cv-official a::before{
  position: absolute;
  content: "〉";
  top: 21px;
  right: 8px;
  font-size: 0.7rem;
}

/* 初期状態：.only-front は非表示 */
.only-front{
  display: none;
}

.only-single{
	display:block;
	margin-bottom: 24px;
	max-width: 522px;
	margin: 32px 0 16px auto;
	position: relative;
}

.only-single a::before{
	position: absolute;
  content: "〉";
  top: 21px;
  right: 8px;
  font-size: 0.7rem;
}

body.home .ranking-card div .cv-official .cvCampaign {
    height: 0px;
    margin-top: 0px;
}

body.home .ranking-card[data-rank="1"] div .only-front-top {
        margin-top:16px;
    }

body.home .ranking-card div .only-front-top .cvCampaign::before {
    top: -62px;
}

@media screen and (max-width: 800px) {
    body.home .ranking-card[data-rank="1"] div .only-front-top {
        margin-top:24px;
    }
}

body.home .ranking-card div .no-first-none{
	display:block;
}

@media screen and ( max-width: 800px){
	body.home .ranking-card div .no-first-none{
	display:none;
}
}

/* 基本スタイル（フロント基準） */
.ranking-card .cv-shosai a,
.ranking-card .cv-official a {
  position: relative;
  display: block;
  width: 100%;
/*   max-width: 350px; */
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 1.125rem;
  padding: 16px;
  border-radius: 5px;
  margin-top: 16px;
	margin-bottom: 42px;
}

/* 「詳細を見る」だけグレー背景 */
.ranking-card .cv-shosai a {
  background-color: #929FA7;
}

/* 「公式サイト」赤背景 */
.ranking-card .cv-official a {
  background-color: #B24343;
}

/* 投稿ページのみ：公式ボタンを幅100%で表示（1つだけだから） */
.single-post .cv-official a {
  max-width: 100%;
}

@media screen and (max-width:800px){
	.ranking-card .serviceContent .serviceContent_txt p {
    font-size: 1.125rem;
}
	.ranking-card .ranking-hikakuList .cv-flex {
  flex-wrap: wrap;
		gap:16px;
}
	.ranking-card[data-rank="1"] .ranking-hikakuList .cv-flex {
		gap: 32px;
    }
	
	.ranking-card .serviceContent .serviceContent_txt {
    width: 100%;
}
	.ranking-card .serviceContent{
		justify-content:center;
		gap:8px;
	}
	
	.ranking-card{
		padding: 40px 16px;
	}
	
	.ranking-card .ranking-hikakuList th {
    width: 35%;
    font-size: 0.875rem;
}
	.ranking-card .ranking-hikakuList th, .ranking-card .ranking-hikakuList td {
    font-size: 0.875rem;
}
	.ranking-card .ranking-card-title{
		font-size:1.6rem;
	}
	.ranking-card .ranking-card-title div {
    max-width: 72px;
}
	.ranking-card .ranking-card-title div img{
		max-width: 58px;
}
	.ranking-card .serviceContent .serviceContent_txt ol li p {
  font-size: 1rem;
}
}

@media screen and (max-width: 480px) {
  .ranking-card .cv-official a {
    max-width: 100%;
  }
}

.pagination{
	gap:24px;
}

.pagination .current {
    padding: 2px 8px;
    border: 1px solid #bbb;
}

/* ▼ 1. 基本は非表示にする（どのページでも） */
.cv-shosai,
.cv-official,
.new-detail-content {
  display: none;
}

/* ▼ 2. フロントページでは詳細＆公式ボタン表示 */
body.home .cv-shosai,
body.home .cv-official {
  display: block;
}

/* ▼ 2-1. フロントページでは2個目の公式ボタン非表示 */
body.home .only-single,
body.home .only-single-cnt,
body.page-id-17 .only-single {
  display: none;
}

/* ▼ 3. 投稿ページ（詳細ページ）では1位カードの特徴要素表示 */
body.single .ranking-card[data-rank="1"] .new-detail-content {
  display: block;
}

/* ▼ 4. 投稿ページでは公式ボタンも表示 */
body.single .cv-official {
  display: block;
}
/* ▼ 4-1. 投稿ページでは1つ目の公式ボタンは非表示 */
body.single .only-front{
	display:none;
}

/* ▼ 5. 検索結果では、詳細ボタンと公式ボタンを表示 */
/* ▼ 検索結果ページでもボタンを表示 */
body.search .cv-shosai,
body.search .cv-official {
  display: block;
}

/* ▼ 検索結果ページでは特徴要素は非表示のまま */
body.search .new-detail-content {
  display: none;
}

/* ▼ 検索結果ページでは2個目の公式ボタンは非表示のまま */
body.search .only-single{
	display: none;
}

body.search .ranking-card .ranking-hikakuList .cv-flex{
	align-items:baseline;
}

/* ▼ SP時はフロントと同様、2位以下は非表示 */
@media screen and (max-width: 800px) {
  body.search .ranking-card[data-rank]:not([data-rank="1"]) .cv-shosai,
  body.search .ranking-card[data-rank]:not([data-rank="1"]) .cv-official {
    display: none;
  }
}

/* ▼ 6. SPのみ、2位以下のカードではボタン非表示（フロントページ） */
@media screen and (max-width: 800px) {
  body.home .ranking-card[data-rank]:not([data-rank="1"]) .no-first-none,
  body.home .ranking-card[data-rank]:not([data-rank="1"]) .no-first-none {
    display: none;
  }
}

/* コヤッシュの特徴CSS */
.new-detail-content .features-section{
  max-width: 800px;
}

.new-detail-content .features-section h3{
  border-bottom: 2px solid #A71818;
  color: #A71818;
  font-size: 1.5rem;
 padding:0 0 16px 0;
  margin-bottom: 24px;
	border-left:none;
	border-right:none;
	border-top:none;
}

.new-detail-content .flex-cnt{
  display: flex;
  justify-content: space-between;
	gap:16px;
	flex-wrap:wrap;
}

.new-detail-content .flex-cnt p{
  max-width: 486px;
  padding-left: 8px;
  font-size: 18px;
  line-height: 1.8;
  text-align: justify;
	margin-block-start:0;
	margin-block-end:0;
	margin-bottom:0;
	padding-right:0;
}

.new-detail-content .features-section ul li h4{
  font-size: 20px;
  color: #fff;
  background-image: url(https://kaitori-ranking.jp/kitte/wp-content/themes/cocoon-child-master/parts/images/featurestitle-bar.svg);
	background-repeat:no-repeat;
  background-size: cover;
  margin-bottom: 24px;
  padding: 8px 0 8px 24px;
	border-top:none;
	border-bottom:none;
}
@media screen and (max-width:840px){
.new-detail-content .flex-cnt{
	flex-direction:column-reverse;
	align-items:center;
}
	.new-detail-content .features-section ul{
		padding-left:0;
	}
	.new-detail-content .flex-cnt p{
		font-size:16px;
		padding-left:0;
	}
}

.new-detail-content .features-section ul li{
  margin-bottom: 48px;
}

/* 電話番号追加 */
body.single .cv-shosai.only-single,
body.single .cv-call.only-single,
body.single-post .cv-shosai.only-single,
body.single-post .cv-call.only-single {
  display: block;
}
/* メイン電話ボタン */
.main-call-button {
  position: relative;
  display: flex;
  flex-direction: column;
	align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background-color: #46AF3D;
box-shadow:1px 1px 0 #368839;
  color: #fff;
  cursor:default;
  text-align: left;
  padding: 12px 24px 12px 48px;
  font-size: 18px;
	font-weight:bold;
	width:100%;
}

#callBtnB.main-call-button{
	display:block;
	text-align:center;
	line-height: 1.1;
}

#callBtnB.main-call-button .main-call-button::before{
	left:40%;
}

/* 電話アイコン（白固定） */
.main-call-button::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
	background: url("../images/tellicon.svg") no-repeat center / contain;
}

/* 営業時間の小文字 */
.main-call-button small {
  font-size: 12px;
  opacity: 0.9;
}

.only-front-mg{
	margin-top:64px;
}

.only-single-mg{
	margin:32px auto 16px;
	width:100%;
}

body.postid-17 .entry-content .ranking-card .ranking-hikakuList .cv-flex{
	display:block;
	width:100%;
	margin-top:100px;
}

body.postid-17 .ranking-card .ranking-hikakuList .cv-flex .cv-shosai{
	max-width:770px;
}

body.postid-17 .main-call-button{
	padding:12px 24px 12px 24px;
}

#callBtnB.main-call-button::before{
	left: 39%;
    top: 35%;
}

body.postid-17 .ranking-card div .cv-official .cvCampaign::before{
		top:-148px;
}

@media screen and (max-width:800px){
	
	.main-call-button{
	pointer-events: auto;
    cursor: pointer;
	}
	
	body.postid-17 .ranking-card div .cv-official .cvCampaign::before{
		top:-145px;
	}
	#callBtnB.main-call-button{
		line-height:2;
		padding: 12px 12px 12px 48px;
	}
	
	#callBtnB.main-call-button::before{
		left:23%;
		top:50%;
	}
}

@media screen and (max-width:400px){
	#callBtnB.main-call-button::before{
		left:19%;
		top:50%;
	}
}

/* End 電話番号追加 */