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

/* -------------------------------------------
  0. ベース調整（背景色・マージンなど）
-------------------------------------------- */
body {
  background-color: #f5f7fa;
}

.no-scrollable-main .main {
  background-color: #fff;
}

.main {
  padding: 0 29px;
}

.entry-content h2 > span::before,
.entry-content h3 > span::before,
.entry-content h4 > span::before {
  content: none !important;
}
h2 span::after,
.mobile-footer-menu-buttons,
.sns-share-message,
.go-to-top-button {
	background: #009999!important;
}
h3{
border-color: #009999!important;
}
@media screen and (max-width: 834px) {
    main.main {
        padding-top: 6px;
	}
}
html .body .btn-wrap.has-red-background-color>a {
    background-color: #ff7043;
}
.shop-official-link{
	text-align:right;
	font-size: 0.8em;
}
/* -------------------------------------------
  1. カテゴリー一覧（Gutenbergブロック）
-------------------------------------------- */
.wp-block-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wp-block-categories-list li {
  display: flex;
  align-items: center;
  background: #f5f7fa;
  border-radius: 8px;
  padding: 0.6em 1em;
  transition: background 0.2s ease;
}

.wp-block-categories-list li:hover {
  background: #e0f0ff;
}

.wp-block-categories-list li a {
  display: flex;
  align-items: center;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  width: 100%;
}

.wp-block-categories-list li a::before {
  content: "\1F4C1"; /* 📁 */
  margin-right: 8px;
  font-size: 1em;
}

.wp-block-categories-list .list-item-caption {
  display: inline-block;
}

/* -------------------------------------------
  2. サイドバー 最新記事カード
-------------------------------------------- */
.sidebar{
	padding-top:0;	
}
.sidebar h2,
.sidebar h3{
	color: #009999!important;
	border-color: #009999!important;
}

.widget-sidebar-standard,
.widget-sidebar-scroll  {
  background-color: #FFFFFF;
	padding:15px;
	border-radius:5px;
}

/* -------------------------------------------
  3. トップページ（.page-id-10）専用調整
-------------------------------------------- */
.page-id-10 .sns-share.ss-top,
.page-id-10 .date-tags,
.page-id-10 .footer-meta {
  display: none !important;
}

.page-id-10 main .popular-entry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}

/* 各カードのaタグをブロック化して全体クリック */
.page-id-10 main .popular-entry-card-link {
  display: block;
}

/* モバイル時は2列に切り替え */
@media screen and (max-width: 768px) {
  .page-id-10 main .popular-entry-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ最小サイズで1列 */
@media screen and (max-width: 480px) {
  .page-id-10 main .popular-entry-cards {
    grid-template-columns: 1fr;
  }
}
#top-slider {
  max-width: 100%;
  margin: 2em auto;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.slider-item {
  position: relative;
  aspect-ratio: 16 / 9;
  display: block;
  text-decoration: none;
  color: inherit;
}
.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slider-caption {
  position: absolute;
  left: 5%;
  top: 10%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 1em;
  border-radius: 8px;
  max-width: 90%;
}
.slider-caption .tag {
  display: inline-block;
  position: relative;
  background: #ffaa00;
  color: #000;
  font-weight: bold;
  padding: 0.3em 1em;
  font-size: 0.75em;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
  margin-bottom: 0.5em;
  letter-spacing: 0.05em;
}
.slider-caption h2 {
  font-size: 1.4em;
  font-weight: bold;
  margin: 0.2em 0;
}
.slider-caption .author {
  font-size: 0.85em;
  opacity: 0.8;
  margin-top: 0.5em;
  margin-bottom: 0;
}
#top-slider .article ul li,
#top-slider .article ol li {
  margin: 0.1em;
}

@media screen and (max-width: 768px) {
  .slider-caption {
    left: 3%;
    top: auto;
    bottom: 5%;
    font-size: 0.9em;
  }
  .slider-caption h2 {
    font-size: 1.1em;
  }
  .splide__arrow {
    display: none !important;
  }
  #top-slider .splide__pagination{
    margin-bottom: 0em;
  }
}

.splide__pagination__page {
  background: #ccc;
  opacity: 0.5;
  width: 10px;
  height: 10px;
}
.splide__pagination__page.is-active {
  background: #ffaa00;
  opacity: 1;
}
/* -------------------------------------------
  トップのランキング
-------------------------------------------- */

/* ==== 共通：ランキングカード用ボックス ==== */
.page-id-10 main .ranking-top3-box,
.page-id-10 main .ranking-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 2em 0;
}

/* ==== 総合ランキングカード ==== */
.page-id-10 main .total-ranking-card {
  flex: 1 1 30%;
  background: #ffffff;
  border-radius: 12px;
	border: 3px solid #009999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5em 1em 1em;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
}

/* ==== ランクラベル（総合） ==== */
.page-id-10 main .total-ranking-card .rank-label {
  position: absolute;
  top: -12px;
  left: -12px;
  z-index: 2;
  font-weight: bold;
  font-size: 1.2em;
  padding: 0.6em 1.2em;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ==== 総合：順位カラー ==== */
.page-id-10 main .total-ranking-card.total-rank-1 .rank-label {
  background-color: #ffd700;
  color: #000;
}
.page-id-10 main .total-ranking-card.total-rank-2 .rank-label {
  background-color: #c0c0c0;
  color: #000;
}
.page-id-10 main .total-ranking-card.total-rank-3 .rank-label {
  background-color: #cd7f32;
  color: #fff;
}

/* ==== 総合：業者名見出し ==== */
.page-id-10 main .total-ranking-card .company-name {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  border-left:none;
	margin: 0.5em auto 1em;
  width: fit-content;
}

/* ==== 総合：画像 ==== */
.page-id-10 main .total-ranking-card .company-img img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 1em;
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* ==== 総合：CTAボタン ==== */
.page-id-10 main .total-ranking-card .btn-orange {
  display: inline-block;
  background: #f25c25;
  color: #fff;
  text-align: center;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s ease;
  margin: 0 auto;
}
.page-id-10 main .total-ranking-card .btn-orange:hover {
  background: #d84e1d;
}

.page-id-10 main .total-ranking-card .sub-text {
  font-size: 0.75em;
  margin-top: 0.5em;
  color: #666;
}
/* ==== レスポンシブ ==== */
@media screen and (max-width: 768px) {
  .page-id-10 main .ranking-top3-box {
    margin: 2em auto;
    width: 90%;
  }
}

/* ==== 部門別ランキングカード ==== */
.page-id-10 main .section-ranking-card {
  flex: 1 1 30%;
  background: #f9fdfd;
  border: 3px solid #009999;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* ==== 部門別：見出し（上部） ==== */
.page-id-10 main .section-ranking-card .ranking-header {
  background-color: #009999;
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
  padding: 12px 0;
  box-sizing: border-box;
  line-height: 1.4;
}

/* ==== 部門別：リスト ==== */
.page-id-10 main .section-ranking-card .ranking-list {
  list-style: none;
  padding: 12px 16px;
  margin: 0;
}

.page-id-10 main .section-ranking-card .ranking-list li {
  display: flex;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dotted #ccc;
  font-size: 0.95em;
}

/* ==== 部門別：順位アイコン ==== */
.page-id-10 main .section-ranking-card .section-rank-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4em;
  height: 2.4em;
  font-size: 1em;
  font-weight: bold;
  color: #fff;
  border-radius: 50%;
  margin-right: 0.6em;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.page-id-10 main .section-ranking-card .section-rank-1 {
  background-color: gold;
  color: #000;
}
.page-id-10 main .section-ranking-card .section-rank-2 {
  background-color: silver;
  color: #000;
}
.page-id-10 main .section-ranking-card .section-rank-3 {
  background-color: #cd7f32;
}

/* ==== 部門別：リンク ==== */
.page-id-10 main .section-ranking-card .ranking-link {
  display: block;
  text-align: center;
  padding: 10px;
  background: #eefafa;
  color: #009999;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9em;
  border-top: 1px solid #ddd;
}
.page-id-10 main .section-ranking-card .ranking-link:hover {
  background: #d9f3f3;
  text-decoration: underline;
}

/* ==== レスポンシブ ==== */
@media screen and (max-width: 768px) {
  .page-id-10 main .ranking-card,
  .page-id-10 main .total-ranking-card,
  .page-id-10 main .section-ranking-card {
    flex: 1 1 100%;
  }
}



/* -------------------------------------------
  4. ヘッダー構造の調整
-------------------------------------------- */

/* ロゴとキャッチコピーの配置を左寄せに変更 */
#header-container-in.hlt-center-logo,
#header-container-in.hlt-center-logo-top-menu {
  text-align: left;
}

/* -------------------------------------------
  ヘッダー構造の調整
-------------------------------------------- */

/* ヘッダー内の構造調整 */
#header-in {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 20px;
}

/* ロゴ全体のボックス */
.logo-header.logo-image {
  display: flex;
  align-items: center;
}

/* サイトロゴ画像 */
.site-logo-image.header-site-logo-image {
  height: 60px;
  width: auto;
  max-width: 100%;
}

/* サイト名テキストを非表示（画像のみ） */
.site-name-text {
  display: flex;
  align-items: center;
}

/* キャッチコピー（サブタイトル） */
#header-in .tagline {
  font-size: 0.9em;
  color: #666;
  margin: 0;
  position: static;
  height: auto;
  line-height: 1.2;
  background: none;
  padding: 0;
}

/* スマホ表示時の調整 */
@media screen and (max-width: 768px) {
  #header-in {
    flex-direction: column;
    align-items: center;
    padding: 10px 10px;
    gap: 8px;
  }

  .site-logo-image.header-site-logo-image {
  }

  #header-in .tagline {
    text-align: center;
    font-size: 0.85em;
  }
}

/* -------------------------------------------
  5. フッター調整
-------------------------------------------- */
.footer-bottom-logo img {
    height: 40px;
}

/* -------------------------------------------
  調整
-------------------------------------------- */
.wp-block-cocoon-blocks-iconlist-box.iconlist-box {
  background-color: #fff6c3; /* 内部：やさしい薄黄色 */
  padding: 1.2em 1.4em;
    margin-top: 3em;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* タイトル部分だけ背景強調 */
.wp-block-cocoon-blocks-iconlist-box .iconlist-title {
  font-weight: bold;
  margin: -1.2em -1.4em 0.8em -1.4em;
  padding: 0.6em 1.4em;
  background-color: #ffea80;
  border-radius: 10px;
  font-size: 1.05em;
}

/* リストの余白など */
.wp-block-cocoon-blocks-iconlist-box ul {
  margin: 0;
  margin-top: 1em;
  padding-left: 1em;
}

.wp-block-cocoon-blocks-iconlist-box li {
  margin-bottom: 0.5em;
}


/* タブラベル共通設定 */
.wp-block-cocoon-blocks-tab .tab-label-group {
  display: flex;
  border-bottom: none;
  margin-bottom: 0;
}

.wp-block-cocoon-blocks-tab .tab-label {
  flex: 1;
  text-align: center;
  font-size: 1.3em;
  padding: 0.8em 1em;
  cursor: pointer;
  font-weight: bold;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  transition: background-color 0.3s ease;
  border: 1px solid transparent;
  border-bottom: none;
}

/* メリット（1つ目） */
.wp-block-cocoon-blocks-tab .tab-label.tab-label-0 {
  background-color: #ffe6e0;
  color: #ff7043;
}
.wp-block-cocoon-blocks-tab .tab-label.tab-label-0.is-active {
  background-color: #ff7043;
  color: #fff;
  border-color: #ff7043;
}

/* デメリット（2つ目） → 青系に統一 */
.wp-block-cocoon-blocks-tab .tab-label.tab-label-1 {
  background-color: #e3f2fd;
  color: #1e88e5;
}
.wp-block-cocoon-blocks-tab .tab-label.tab-label-1.is-active {
  background-color: #42a5f5;
  color: #fff;
  border-color: #42a5f5;
}

/* コンテンツグループ */
.wp-block-cocoon-blocks-tab .tab-content-group {
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

/* メリット中身 */
.wp-block-cocoon-blocks-tab .tab-content:nth-of-type(1) {
  border: 2px solid #ff7043;
  background-color: #fffaf6;
  padding: 1em 1.2em;
}

/* デメリット中身 → 青系に統一 */
.wp-block-cocoon-blocks-tab .tab-content:nth-of-type(2) {
  border: 2px solid #42a5f5;
  background-color: #f1f8ff;
  padding: 1em 1.2em;
}

/* リスト共通スタイル */
.wp-block-cocoon-blocks-tab .tab-content ul {
  margin: 0;
  padding-left: 1em;
}
.wp-block-cocoon-blocks-tab .tab-content li {
  margin-bottom: 0.6em;
}


@media (min-width: 768px) {
  .main figure.wp-block-table.custom-table-wide {
    width: 85%;
    table-layout: fixed;
	margin:0 auto 3%;
    }
  .main figure.wp-block-table.custom-table-wide img {
    width: 100%;
    }
}

  .custom-table-wide td:first-child {
    width: 20%;
    white-space: nowrap;
    vertical-align: top;
    font-weight: bold;
  }

  .custom-table-wide td:nth-child(2) {
    width: 80%;
  }
}

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

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

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