@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
.cta {
	position: relative;
    text-align: center;
    padding: 45px 0;
	margin: 0;
}
.cta .cta__micro {
	margin-bottom: 0;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: bold;
	text-wrap: nowrap;
}
.cta a {
	display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 320px;
    height: 72px;
    line-height: 1.2em;
    background-color: #FD1515;
    text-decoration: none;
    color: #FFF;
    border-radius: 40px;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
	overflow: hidden; 
	position:relative;
}
.cta a::before {
	content: "";
	position: absolute;
	top: 0;
	left: -75%;
	width: 50%;
	height: 72px;
	background: linear-gradient(
		120deg,
		transparent 0%,
		rgba(255, 255, 255, 0.6) 50%,
		transparent 100%
	);
	transform: skewX(-20deg);
	pointer-events: none; 
	animation: shine 3s infinite;
}
.author-thumb img {
	border-radius: 50%;
}
.review-carousel {
  position: relative;
  margin: 24px 0;
	padding: 0 50px;
}
.review-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	padding: 8px;
	padding-inline: 15px;
	scroll-padding-inline: 15px;
	scrollbar-width: none;
	-ms-overflow-style: none;  
}
.review-track::-webkit-scrollbar {
 	display: none;
}
.review-slide {
  flex: 0 0 90%;
  max-width: 90%;
  scroll-snap-align: start;
  background: #F5F6F7;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.review-slide p {
  margin: 0 0 8px;
  line-height: 1.6;
}
.review-source {
  font-size: 0.85em;
  color: #666;
}
.review-prev, .review-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inline-size: 40px;
  block-size: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  cursor: pointer;
}
.review-slide__img {
	width: 36px;
    height: 36px;
    border: solid 2px #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.review-slide__img img {
	width: 28px;
    height: 28px;
}

.review-slide__top {
	display: flex;
    justify-content: left;
    align-items: center;
    gap: 8px;
	margin-bottom: 12px;
}
.review-slide .review-source {
    margin: 0;
    line-height: 1;
    font-size: 18px;
}
.review-prev { 
	left: 4px; 
	font-size: 24px;
}
.review-next { 
	right: 4px;
	font-size: 24px;
}

.wp-block-table.ranking th {
	background: #ebf8f4;
    font-weight: bold;
}
.wp-block-table.ranking table {
	min-width: 800px;
}
.wp-block-table.ranking table td:first-of-type {
	text-align: center;
	font-size: 14px;
	font-weight: bold;
}
.wp-block-table.ranking table tr:nth-of-type(2n+1) {
	background-color: none;
}
.wp-block-table.ranking table:not(.has-border-color) :where(th, td) {
	border: 1px solid #000000;
}
.link-btn {
	width: 110px;
    height: 33px;
    font-size: 14px;
    display: flex;
    background: #0000ff;
    align-items: center;
    margin: 0 auto;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
}
.map-container {
	width: 100%;
    aspect-ratio: 4 / 3;
}
.map-container iframe {
	width: 100%;
    height: 100%;
}
@keyframes shine {
	0%   { left: -75%; }
	60%  { left: 120%; }
	100% { left: 120%; }
}
@media (hover: hover) and (pointer: fine) {
	.cta a:hover {
		transform: translateY(3px);
		box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
	}
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

@media (min-width: 960px) {
  .review-slide {
    flex-basis: 45%;
    max-width: 45%;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
	.author-box {
		padding: 20px 40px;
		display: flex;
		flex-direction: column;
		gap: 10px;
		align-items: center;
		justify-content: center;
	}
	.author-box .author-thumb {
		width: 32%;
	}
	.author-box .author-content {
		margin: 0;
	}
	.author-box .sns-follow-buttons {
		justify-content: center;
	}
	.author-name {
		text-align: center;
		margin: 0 0 10px;
	}
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
	.cta .ecocta__micro { 
		font-size: 14px;	
	}
		.review-slide .review-source {
		font-size: 15px;
	}
	.review-slide p {
		font-size: 14px;	
	}
	.review-prev,.review-next {
		font-size:18px;
		inline-size: 30px;
    	block-size: 30px;
	}
	.review-carousel {
		padding: 0 35px;
	}
}
