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

/************************************
** 子テーマ用のスタイルを書く
************************************/
a {
  color: #70343e;
}

/* カテゴリーページのヘッダーアイキャッチを非表示 */
.archive .eye-catch-wrap {
  display: none !important;
}

.fa-folder::before {
  content: "\f058";
}

.fa-folder-open::before {
  content: "\f058";
}

.eye-catch-wrap .cat-label {
  display: none !important;
}

/* h2 bar */
.article h2::before {
  border-bottom: solid 4px #70343E;
}

.article h3::before {
  border-left: solid 3px var(--LtGray_T70);
}

/* 本文内のul, olのリスト項目だけマージンをつける */
.entry-content ul li,
.entry-content ol li {
  margin: 2rem 0 !important;
  /* 上下に1.2remの余白 */
}

/* 目次（.toc）の中にあるリストは除外（デフォルトに戻す） */
.entry-content .toc ul li,
.entry-content .toc ol li {
  margin: 0 !important;
  /* 目次のデザイン崩れを防ぐ */
}

/* 本文内のリスト（ul, ol）にあるbタグ（太字）の色を変更 */
.entry-content ul li b,
.entry-content ol li b {
  color: #70343e !important;
  font-weight: 700;
  /* 念のため太さを強調 */
}

/* 目次内の太字には影響させない設定（もし目次にbタグがあっても無視） */
.entry-content .toc ul li b,
.entry-content .toc ol li b {
  color: inherit !important;
}

/* サイドバー人気見出し */
.widget_popular_entries .widget-sidebar-title::before {
  font-family: "Font Awesome 5 Free";
  margin-right: 8px;
  content: "\f3a5";
  color: #d4af37;
}

/* 関連記事・人気見出し */
/* 関連記事 */
.related-entry-heading span::before {
  font-family: "Font Awesome 5 Free";
  content: "\f074";
  margin-right: 8px;
  color: #d4af37;
  font-weight: 900;
}

/* 記事下・人気記事 */
.widget-below-related-entries-title::before {
  font-family: "Font Awesome 5 Free";
  content: "\f3a5";
  margin-right: 8px;
  color: #d4af37;
}

/* 固定ページの日付とタグエリア非表示 */
.type-page .date-tags {
  display: none !important;
}

/* お問い合わせボタン */
div.wpforms-container-full .wpforms-form button[type=submit] {
  background-color: #70343e !important;
  transition: 0.3s;
  /* 動きを滑らかに */
}

/* ホバー */
div.wpforms-container-full .wpforms-form button[type=submit]:hover {
  background-color: #d4af37 !important;
}

/* 上へ戻るボタン */
.skin-grayish .go-to-top-button.go-to-top-button-icon-font {
  background-color: #70343e;
}

/* NEXT,Prevボタン */
.skin-grayish .list-new-entries .list-more-button,
.skin-grayish .list-columns .list-more-button,
.skin-grayish .pagination-next-link,
.skin-grayish .index-tab-wrap .list-more-button,
.skin-grayish .comment-btn,
.skin-grayish .pager-links .post-page-numbers .page-numbers.page-prev-next {
  color: #70343E;
  border: 1px solid #70343E;
}

/* footer */
/* フッターウィジェット内のリンク */
.footer-widgets .textwidget {
  text-align: center !important;
}

/* リンク自体 */
.footer-widgets a {
  color: #d4af37;
  text-decoration: none;
  font-size: 0.72rem;
  display: inline-block;
  margin: 0 10px;
  /* リンクが複数ある場合の間隔 */
}

/* 1ページ目（トップページ）のスタイル */
.home.skin-grayish .footer {
  background-color: #70343E;
  margin-top: 80px;
}

/* 2ページ目以降のスタイル */
.paged.skin-grayish .footer {
  background-color: #70343E;
  margin-top: 13px;
}

.skin-grayish .footer {
  background-color: #70343E;
}

.footer-bottom-logo {
  display: none !important;
}

.copyright {
  color: var(--skin-grayish-site-main-hover);
}

/* 404ページの画像を80%にして中央寄せにする */
.error404 .not-found {
  display: block;
  width: 80%;
  max-width: 100%; /* 親要素を突き抜けないように */
  height: auto;    /* アスペクト比を維持 */
  margin-left: auto;
  margin-right: auto;
	margin-bottom: 30px;
}

/* mobile */
.mobile-footer-menu-buttons {
  display: none !important;
}

.home-menu-caption {
  display: none !important;
}

/* 家マークを非表示にしてファビコンを背景として表示 */
.fa-home::before {
  visibility: hidden;
}

.home-menu-icon.menu-icon .fa-home {
  visibility: hidden;
  /* 元のアイコン（家）を消す */
  position: relative;
  display: inline-block;
  width: 26px;
  /* アイコンの横幅（いい感じのサイズに調整してください） */
  height: 26px;
  /* アイコンの縦幅 */
}

.home-menu-icon.menu-icon .fa-home::after {
  content: "";
  visibility: visible;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  /* ファビコンURL */
  background-image: url('https://papa.sukigyu.net/wp-content/uploads/2026/04/icon.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 4px;
  /* 角を少し丸く */
}

/* モバイルフッターのリンク色と中央寄せ */
.footer-mobile .text-mobile {
  text-align: center !important;
  padding: 0;
}

.footer-mobile {
  padding: 0;
}

.footer-mobile .text-mobile a {
  color: #d4af37 !important;
  text-decoration: none;
  font-size: 0.5rem;
  margin: 0 5px;
  display: inline-block;
}

/* footer line */
.skin-grayish .footer-widgets-mobile::before {
  height: 0px;
}


/* ========================================
   ACF summary_title オーバーレイ
   中央白フェード帯 + #70343e テキスト
   IBM Plex Sans JP フォント
   ======================================== */

/* Google Fonts: IBM Plex Sans JP */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@400;500;600;700&display=swap');

/* 共通：親要素を position: relative に */
.eye-catch,
.entry-card-thumb,
.related-entry-card-thumb,
.carousel-entry-card-thumb {
  position: relative;
  overflow: hidden;
}

/* オーバーレイ本体（中央の白フェード帯） */
.eyecatch-summary-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

/* 白フェード帯（テキスト背景） */
.eyecatch-summary-text {
  position: relative;
  display: block;
  width: 100%;
  color: #70343e;
  font-family: 'IBM Plex Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  letter-spacing: 0.06em;
  word-break: break-word;
  padding: 14px 20px;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.82) 18%,
      rgba(255, 255, 255, 0.92) 40%,
      rgba(255, 255, 255, 0.92) 60%,
      rgba(255, 255, 255, 0.82) 82%,
      rgba(255, 255, 255, 0) 100%);
}

/* --- 投稿ページのアイキャッチ用（大きめ表示） --- */
.eye-catch .eyecatch-summary-text {
  font-size: 2.6rem;
  font-weight: 700;
  padding: 40px 28px;
  letter-spacing: 0.08em;
}

/* --- エントリーカード用 --- */
.entry-card-thumb .eyecatch-summary-text {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 24px 10px;
  letter-spacing: 0.04em;
}

/* --- 関連記事カード用 --- */
.related-entry-card-thumb .eyecatch-summary-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 10px 8px;
}

/* --- カルーセルカード用 --- */
.carousel-entry-card-thumb .eyecatch-summary-text {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 24px 10px;
}

/* ========================================
   文字数に応じた自動サイズ調整
   short: ≤10文字 / medium: 11-18文字
   long: 19-28文字 / xlong: 29文字以上
   ======================================== */

/* --- 投稿ページ：文字数別 --- */
.eye-catch .summary-len-short {
  font-size: 2.6rem;
}

.eye-catch .summary-len-medium {
  font-size: 2.1rem;
}

.eye-catch .summary-len-long {
  font-size: 1.7rem;
}

.eye-catch .summary-len-xlong {
  font-size: 1.3rem;
}

/* --- エントリーカード：文字数別 --- */
.entry-card-thumb .summary-len-short {
  font-size: 1.1rem;
}

.entry-card-thumb .summary-len-medium {
  font-size: 0.92rem;
}

.entry-card-thumb .summary-len-long {
  font-size: 0.78rem;
}

.entry-card-thumb .summary-len-xlong {
  font-size: 0.65rem;
}

/* --- 関連記事カード：文字数別 --- */
.related-entry-card-thumb .summary-len-short {
  font-size: 0.95rem;
}

.related-entry-card-thumb .summary-len-medium {
  font-size: 0.8rem;
}

.related-entry-card-thumb .summary-len-long {
  font-size: 0.68rem;
}

.related-entry-card-thumb .summary-len-xlong {
  font-size: 0.56rem;
}

/* --- カルーセルカード：文字数別 --- */
.carousel-entry-card-thumb .summary-len-short {
  font-size: 1.1rem;
}

.carousel-entry-card-thumb .summary-len-medium {
  font-size: 0.92rem;
}

.carousel-entry-card-thumb .summary-len-long {
  font-size: 0.78rem;
}

.carousel-entry-card-thumb .summary-len-xlong {
  font-size: 0.65rem;
}

/* ===== レスポンシブ (タブレット) ===== */
@media screen and (max-width: 834px) {
  .eye-catch .summary-len-short {
    font-size: 2rem;
  }

  .eye-catch .summary-len-medium {
    font-size: 1.65rem;
  }

  .eye-catch .summary-len-long {
    font-size: 1.35rem;
  }

  .eye-catch .summary-len-xlong {
    font-size: 1.05rem;
  }

  .eye-catch .eyecatch-summary-text {
    padding: 30px 24px;
  }
}

/* ===== レスポンシブ (スマホ) ===== */
@media screen and (max-width: 480px) {

  /* 投稿ページのアイキャッチ画像を適切な高さに制限 */
  .eye-catch {
    max-height: 56vw;
  }

  .eye-catch img {
    width: 100%;
    height: 100%;
    max-height: 56vw;
    object-fit: cover;
    object-position: center top;
  }

  /* モバイルではオーバーレイの白帯を狭く＋中央寄せ */
  .eye-catch .eyecatch-summary-text {
    padding: 18px 12px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.82) 18%, rgba(255, 255, 255, 0.92) 40%, rgba(255, 255, 255, 0.92) 60%, rgba(255, 255, 255, 0.82) 82%, rgba(255, 255, 255, 0) 100%);
  }

  .eye-catch .summary-len-short {
    font-size: 1.0rem;
  }

  .eye-catch .summary-len-medium {
    font-size: 1.25rem;
  }

  .eye-catch .summary-len-long {
    font-size: 1rem;
  }

  .eye-catch .summary-len-xlong {
    font-size: 0.82rem;
  }

  .entry-card-thumb .summary-len-short,
  .carousel-entry-card-thumb .summary-len-short {
    font-size: 0.85rem;
  }

  .entry-card-thumb .summary-len-medium,
  .carousel-entry-card-thumb .summary-len-medium {
    font-size: 0.72rem;
  }

  .entry-card-thumb .summary-len-long,
  .carousel-entry-card-thumb .summary-len-long {
    font-size: 0.6rem;
  }

  .entry-card-thumb .summary-len-xlong,
  .carousel-entry-card-thumb .summary-len-xlong {
    font-size: 0.5rem;
  }

  .related-entry-card-thumb .summary-len-short {
    font-size: 0.75rem;
  }

  .related-entry-card-thumb .summary-len-medium {
    font-size: 0.63rem;
  }

  .related-entry-card-thumb .summary-len-long {
    font-size: 0.52rem;
  }

  .related-entry-card-thumb .summary-len-xlong {
    font-size: 0.44rem;
  }
}

/* ========================================
   人気記事ランキングバッジ
   金色の丸＋白地＋ランキング番号
   ======================================== */
.popular-entry-card-thumb,
.widget-entry-card-thumb {
  position: relative;
}

.popular-rank-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #c9a84c;
  box-sizing: border-box;
  color: #70343e;
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  line-height: 1;
  letter-spacing: 0;
  padding-left: 0px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

/* 1〜3位は金色背景＋白文字 */
.popular-rank-badge.rank-1,
.popular-rank-badge.rank-2,
.popular-rank-badge.rank-3 {
  background: linear-gradient(135deg, #d4a017, #f0d060);
  color: #fff;
  border-color: #b8860b;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}


/* ─── 秘書活おすすめ表 ─── */
.hisho-table-wrap {
  margin: 2.5em 0 2em;
  font-family: 'IBM Plex Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
}

/* タイトル */
.hisho-table-title {
  text-align: center;
  font-weight: 700;
  color: #70343e;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.hisho-table-title .title-main {
  font-size: 1.15rem;
}

.hisho-table-title .title-sub {
  display: block;
  font-size: 0.95rem;
  color: #b8860b;
  letter-spacing: 0.08em;
}

/* 横スクロール注釈 */
.hisho-scroll-hint {
  display: none;
  /* PCでは非表示 */
  text-align: center;
  font-size: 0.72rem;
  color: #999;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.hisho-scroll-hint span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hisho-scroll-hint .arrow {
  display: inline-block;
  animation: hisho-scroll-arrow 1.2s ease-in-out infinite;
}

@keyframes hisho-scroll-arrow {

  0%,
  100% {
    transform: translateX(0);
    opacity: 0.5;
  }

  50% {
    transform: translateX(4px);
    opacity: 1;
  }
}

/* スクロールコンテナ */
.hisho-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(112, 52, 62, 0.08);
}

/* テーブル本体 */
.hisho-table {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  table-layout: fixed;
}

/* 列幅固定（展開時のガタつき防止） */
.hisho-table th:nth-child(1),
.hisho-table td:nth-child(1) {
  width: 52px;
}

/* 順位 */
.hisho-table th:nth-child(2),
.hisho-table td:nth-child(2) {
  width: 180px;
}

/* サービス名 */
.hisho-table th:nth-child(3),
.hisho-table td:nth-child(3) {
  width: 90px;
  text-align: center;
}

/* 種別 */
.hisho-table th:nth-child(4),
.hisho-table td:nth-child(4) {
  width: auto;
}

/* おすすめポイント（残り幅） */
.hisho-table th:nth-child(5),
.hisho-table td:nth-child(5) {
  width: 160px;
}

/* 注意点 */
/* Cocoonテーマ干渉リセット */
.hisho-table tbody,
.hisho-table thead,
.hisho-table tr,
.hisho-table th,
.hisho-table td {
  margin: 0 !important;
}

.hisho-table tbody {
  padding: 0 !important;
}

/* ヘッダー */
.hisho-table thead th {
  background: linear-gradient(135deg, #70343e 0%, #8a4450 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #d4af37;
}

.hisho-table thead th:first-child {
  border-radius: 10px 0 0 0;
}

.hisho-table thead th:last-child {
  border-radius: 0 10px 0 0;
}

/* セル共通 */
.hisho-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #f0e8ea;
  vertical-align: middle;
  color: #3a2a2e;
}

/* 順位セル */
.hisho-table .col-rank {
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
  width: 52px;
  min-width: 52px;
}

/* 1〜3位 ゴールド */
.hisho-table .rank-gold {
  color: #b8860b;
  font-size: 1rem;
}

/* サービス名セル */
.hisho-table .col-service {
  font-weight: 700;
  white-space: nowrap;
}

.hisho-table .col-service a {
  color: #70343e;
  text-decoration: none;
  border-bottom: 1px dashed #d4af37;
  transition: color 0.2s, border-color 0.2s;
}

.hisho-table .col-service a:hover {
  color: #d4af37;
  border-color: #70343e;
}

/* 種別バッジ */
.hisho-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.badge-hisho {
  background: #fdf3f5;
  color: #70343e;
  border: 1px solid #e8c0c7;
}

.badge-club {
  background: #fef9ec;
  color: #8b6914;
  border: 1px solid #e8d590;
}

.badge-app {
  background: #f0f4ff;
  color: #3a5ba0;
  border: 1px solid #b8c8e8;
}

.badge-site {
  background: #f4f0ff;
  color: #5a3a8a;
  border: 1px solid #c8b8e8;
}

.badge-deai {
  background: #f0faf4;
  color: #2a7a4a;
  border: 1px solid #a8d8b8;
}

.badge-real {
  background: #f8f5f0;
  color: #6a5a3a;
  border: 1px solid #d8cbb0;
}

/* おすすめ・注意列 */
.hisho-table .col-point {
  font-size: 0.84rem;
}

.hisho-table .col-caution {
  font-size: 0.8rem;
  color: #888;
}

/* 偶数行ストライプ */
.hisho-table tbody tr:nth-child(even) td {
  background: #fdfbfb;
}

/* ホバー */
.hisho-table tbody tr:hover td {
  background: #fef8f0;
  transition: background 0.2s;
}

/* 番外編ラベル（順位セルに入る） */
.hisho-table .rank-bangai {
  background: linear-gradient(135deg, #fdf6e8 0%, #fef0e0 100%);
  color: #8b6914;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  border-left: 3px solid #d4af37;
}

/* 最終行の角丸 & 下線消し */
.hisho-table tbody tr:last-child td {
  border-bottom: none;
}

.hisho-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 10px;
}

.hisho-table tbody tr:last-child td:last-child {
  border-radius: 0 0 10px 0;
}

/* ========================================
   折りたたみ版テーブル（3位まで表示 + もっと見る）
   チェックボックスハックでJS不要
   ======================================== */

/* チェックボックス非表示 */
.hisho-toggle-check {
  display: none !important;
}

/* 折りたたみ対象（4位以降） */
.hisho-table-collapse .hisho-table-hidden {
  display: none;
}

/* チェック時に表示 */
.hisho-toggle-check:checked~.hisho-table-scroll .hisho-table-collapse .hisho-table-hidden {
  display: table-row;
}

/* 「もっと見る」ボタン */
.hisho-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 0;
  padding: 10px 0;
  background: linear-gradient(180deg, #fdfbfb 0%, #f8f2f3 100%);
  border: 1px solid #f0e8ea;
  border-top: none;
  border-radius: 0 0 10px 10px;
  cursor: pointer;
  color: #70343e;
  font-family: 'IBM Plex Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}

.hisho-more-btn:hover {
  background: linear-gradient(180deg, #fef8f0 0%, #fdf3f5 100%);
  color: #d4af37;
}

/* 矢印アイコン */
.hisho-more-btn .more-arrow {
  display: inline-block;
  transition: transform 0.3s;
  font-size: 0.7rem;
}

/* チェック時：ボタン内テキスト切替 */
.hisho-more-btn .more-text-open {
  display: inline;
}

.hisho-more-btn .more-text-close {
  display: none;
}

.hisho-toggle-check:checked~.hisho-more-btn .more-text-open {
  display: none;
}

.hisho-toggle-check:checked~.hisho-more-btn .more-text-close {
  display: inline;
}

.hisho-toggle-check:checked~.hisho-more-btn .more-arrow {
  transform: rotate(180deg);
}

/* 折りたたみ版のスクロールコンテナは角丸を下だけ外す（ボタンと繋げる） */
.hisho-table-wrap--collapsible .hisho-table-scroll {
  border-radius: 10px 10px 0 0;
}

/* 展開後は角丸を戻す */
.hisho-toggle-check:checked~.hisho-table-scroll {
  border-radius: 10px;
}

.hisho-toggle-check:checked~.hisho-more-btn {
  border-radius: 0 0 10px 10px;
  border-top: 1px solid #f0e8ea;
  margin-top: -1px;
}

/* 折りたたみ版：テーブルの角丸もボタンに合わせて調整 */
.hisho-table-wrap--collapsible .hisho-table {
  border-radius: 10px 10px 0 0;
}

.hisho-toggle-check:checked~.hisho-table-scroll .hisho-table {
  border-radius: 10px;
}

/* 折りたたみ時：3位（最後の見える行）の角丸と下線 */
.hisho-table-collapse .hisho-table-visible:last-of-type td {
  border-bottom: none;
}

.hisho-table-collapse .hisho-table-visible:last-of-type td:first-child {
  border-radius: 0 0 0 10px;
}

.hisho-table-collapse .hisho-table-visible:last-of-type td:last-child {
  border-radius: 0 0 10px 0;
}

/* 展開時はリセット */
.hisho-toggle-check:checked~.hisho-table-scroll .hisho-table-collapse .hisho-table-visible:last-of-type td {
  border-bottom: 1px solid #f0e8ea;
  border-radius: 0;
}

/* ─── レスポンシブ：834px以下でスクロールヒント表示 ─── */
@media screen and (max-width: 834px) {
  .hisho-scroll-hint {
    display: block;
  }

  .hisho-table {
    font-size: 0.82rem;
  }
}




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

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

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