@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
div#pager-post-navi {display: none;}
aside#related-entries {display: none;}
h2#comments {display: none;}
div.entry-categories-tags {display: none;}
img {display: block; margin: 0 auto;}
img.brochure {width: 300px;}
ul {padding-left: 20px !important;}
ul ul {padding-left: 10px !important;}
ul.access ul {list-style-type: none;}
ul.access ul li::before {content: "|"; padding-right: 10px !important;}
div.tagline {font-size: clamp(16px, 1vw + 12px, 20px);}
.municount {
  text-align: right;
  display: inline-block;
  width: 4em
}
h4.main-caption {
  margin: 20px 0px !important;
  padding: 0px !important;
  text-decoration: underline !important;
}
h4::before {
  background-image: none !important;
}
.text-center {text-align: center;}
.text-right {text-align: right;}

/* new_list, popular_list */
.widget-entry-card-thumb {
  width: 120px !important;
  min-width: 120px !important;
}
.widget-entry-card-thumb img {
  width: 120px !important;
  height: auto !important;
  max-width: none !important;
}

/* カテゴリーページのカード */
div#list {
  display: block !important;
  grid-template-columns: unset !important;
}
#list article.entry-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px;
}
#list .entry-card-thumb {
  flex: 0 0 120px !important;
  width: 120px !important;
  margin: 0 !important;
}
#list .entry-card-thumb img {
  width: 120px !important;
  height: auto !important;
  display: block;
}
#list .entry-card-content {
  flex: 1 !important;
}


.autograph {
  letter-spacing: -0.1em;
  margin-right: 20px;
}

/* アコーディオン */
summary {
  display: block;
  position: relative;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

/* マーカーと文字が重ならないよう右側に余白を作る */
summary h3 {
  padding-right: 50px !important; 
}

/* マーカーの基本設定（＋の状態） */
summary::after {
  content: "+";            /* 初期状態はプラス */
  position: absolute;
  right: 20px;            /* 右端からの距離 */
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;       /* 大きさ（適宜調整） */
  font-weight: bold;
  pointer-events: none;
}

/* 開いている時の設定（－の状態と回転） */
details[open] summary::after {
  content: "−";
  transform: translateY(-50%);
}



/* リンクリスト */
  .link-container {
    display: grid;
    gap: 10px; /* ボタン同士の間隔 */
    max-width: 90vw; /* スマホの幅に合わせる */
    margin: 0px auto;
  }
  .link-container.grid4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .link-container.grid3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .link-container.grid2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
	flex-wrap: wrap; /* ← これが重要！ */
  }
  .no-break {display: inline-block;}

/* 白地図 */
.svg-map {background: #ffffff;}
.city-star { fill: #cd5a5e; font-size: 28px; }
.city-label { fill: #000; color: #424242; font-size: 20px; font-weight: bold; text-shadow: 1px 1px 0px white; }

/* 滞在偏差値 */
.score-card {
  display: flex;
  align-items: center;
  padding: 15px;
  margin-bottom: 12px;
  background: #f6f6f6;
  border-radius: 12px;
}
.score-info {
  flex: 1; /* 左側を広げる */
}
.score-label {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 5px 0;
}
h4.score-label {
	display: inline-block;
	margin: 0px;
	padding: 0px !important;
}
h4.score-label::before {
	background-image: none;
}
.score-num-wrap {
  text-align: right;
  line-height: 1;
}
.score-num {
  font-size: 48px !important;
  font-weight: 900;
}
.score-card.total {
  background: #faefef;
  margin-bottom: 25px;
}
.score-card.total .score-num {
  color: #cd5a5e !important;
}

/* しましまテーブル */
table.striped-table {
  width: 100%;
}
table.striped-table th,
table.striped-table td {
  padding: 10px 8px;
  font-size: clamp(14px, 1vw + 10px, 16px);
}
table.striped-table h4 {
  margin: 0;
  display: inline-block;
	margin: 0px;
	padding: 0px !important;
  font-size: clamp(14px, 1vw + 10px, 16px);
	font-weight: normal;
}
table.striped-table h4::before {
	background-image: none;
}

table.striped-table th {
  text-align: center;
}
table.striped-table td.text-right {
  text-align: right !important;
}
.high-value {
  color: #cd5a5e;
  font-weight: bold;
}
.low-value {
  color: #637fbd;
  font-weight: bold;
}


li>h4 {
  display: inline-block;
  margin: 0px !important;
  padding: 0px !important;
  font-size: clamp(14px, 1vw + 10px, 16px) !important;
  font-weight: normal !important;
}
li>h4::before {
  background-image: none !important;
}

/* フォローリンク改造 */
.pinterest-button .icon-pinterest::before {
  content: "\f0c5"; /* Font Awesome: コピー */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/* アンケート、いいねカウンター */
.vote-group {
  margin: 10px 0;
}
.vote-option {
  display: inline-block;
  padding: 6px 12px;
  margin: 4px 6px 4px 0;

  border-radius: 16px;
  background-color: #f6f6f6;

  cursor: pointer;
  transition: all 0.2s ease;
}
.vote-option:hover {
  background-color: #faefef;
  color: #cd5a5e;
}
.vote-option.selected {
  background-color: #faefef;
  color: #cd5a5e;
  font-weight: bold;
}
.vote-option.disabled {
/*  opacity: 0.6; */
  pointer-events: none;
}
.vote-option .label {
  margin-right: 4px;
}
.vote-option .count {
  opacity: 0.8;
}
.like-total {
  display: inline;
  font-size: 18px;
  margin-bottom: 8px;
  margin-left: 20px;
}

/* ボックス */
.line-box {
    width: 100%;
    margin: 20px auto;
    border: dotted 1px #cd5a5e;
}
.enquete-box {
    width: 100%;
    margin: 20px auto;
    border: 2px solid #cd5a5e;
    border-radius: 3px;
    overflow: hidden;
}
.enquete-caption {
    padding: .4em .8em;
    background-color: #cd5a5e;
    color: #fff;
}
.enquete-content {
    margin: 0 !important;
    padding: 1em 1.5em;
    color: #333;
}

/* おすすめスポット投稿 */
.spot-post {padding: 15px 20px;}
form.wpforms-form label,
form.wpforms-form select,
form.wpforms-form input,
form.wpforms-form textarea,
form.wpforms-form button {
    font-size: clamp(14px, 1vw + 10px, 16px) !important;
}
.wpforms-confirmation-container-full {
    background-color: #faefef !important;
    border-color: #faefef !important;
}

/* アフィリンク */
.affiliate-inner {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}
.affiliate-image {
  width: 300px;
}
.affiliate-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.affiliate-links {
  width: 34%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.affiliate-links a {
  display: block;
  padding: 10px;
  text-align: center;
  background: #f6f6f6;
  border-radius: 6px;
  text-decoration: none;
}
.affiliate-links a:hover {
  background: #faefef;
}

.affiliate-grid-inner {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}
.affiliate-grid-item {
  flex: 1;
  display: block;
}
.affiliate-grid-item img {
/*  width: 100%; */
  width: 300px;
  margin: 0;
  height: auto;
  border-radius: 6px;
  display: block;
}

@media (max-width: 768px) {
  .affiliate-inner {
    flex-direction: column;
  }
  .affiliate-image,
  .affiliate-links {
	  width: 300px;
  }
  .affiliate-grid-inner {
    flex-direction: column;
  }
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
