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

/* .wrapを可変幅に（モバイル横スクロール防止） */
.wrap {
  width: 100% !important;
  max-width: 1256px !important;
  box-sizing: border-box !important;
}

/* 834px以下（スマホ・タブレット） */
@media screen and (max-width: 834px) {
  .entry-card-thumb {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .entry-card-thumb img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  .entry-card-content {
    margin-left: 0 !important;
  }
}

// robots.txtにフィードURLのクロールを遮断
add_filter('robots_txt', function($output) {
    $output .= "\nDisallow: /feed/\nDisallow: /*/feed/\n";
    return $output;
}, 10, 1);

/* ===================================================
   トップページカスタマイズ（①②④ ナビゲーションブロック）
   =================================================== */

.ozjo-home-nav {
  max-width: 100%;
  margin: 0 0 24px;
}

/* ---- 共通タイトル ---- */
.ozjo-nav-title {
  font-size: 1.05em;
  font-weight: bold;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8c840;
  color: #333;
}

/* ---- ① 国から探す ---- */
.ozjo-country-nav {
  background: #fff;
  border-radius: 8px;
  padding: 18px 18px 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.ozjo-country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ozjo-country-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #eee;
  text-decoration: none !important;
  color: #333 !important;
  transition: background 0.18s, border-color 0.18s;
  text-align: center;
}

.ozjo-country-item:hover {
  background: #fffbea;
  border-color: #e8c840;
}

.ozjo-flag {
  font-size: 1.75em;
  line-height: 1;
  margin-bottom: 5px;
}

.ozjo-name {
  font-size: 0.7em;
  line-height: 1.3;
  color: #555;
}

/* ===== はじめての方はこちら ===== */
.ozjo-welcome-nav{margin:2em 0}
.ozjo-nav-title{font-size:0.95em;font-weight:bold;color:#3A2F26;border-left:3px solid #E6B400;padding-left:10px;margin-bottom:1.2em;letter-spacing:.02em}
.ozjo-welcome-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.ozjo-welcome-item{display:flex;flex-direction:column;align-items:center;text-align:center;text-decoration:none;color:#3A2F26;background:#fff;border:1px solid #ddd0a8;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(58,47,38,.06);transition:transform .2s,box-shadow .2s,border-color .2s;padding:0}
.ozjo-welcome-item:hover{transform:translateY(-3px);box-shadow:0 7px 18px rgba(58,47,38,.12);border-color:#C9A040}
.ozjo-welcome-icon{width:100%;padding:28px 16px 24px;margin-bottom:0;display:flex;justify-content:center;align-items:center}
.ozjo-card-food .ozjo-welcome-icon{background:#FFF4D6}
.ozjo-card-menu .ozjo-welcome-icon{background:#E4F2E4}
.ozjo-card-walk .ozjo-welcome-icon{background:#E4EBF8}
.ozjo-welcome-icon svg{width:64px;height:64px;background:#fff;border-radius:50%;padding:12px;box-shadow:0 2px 10px rgba(0,0,0,.10);transition:transform .2s}
.ozjo-welcome-item:hover .ozjo-welcome-icon svg{transform:scale(1.07)}
.ozjo-welcome-name{font-size:1.05em;font-weight:bold;color:#3A2F26;margin:16px 16px 4px;line-height:1.3}
.ozjo-welcome-desc{font-size:0.78em;color:#7A6A5A;margin:0 16px 12px;line-height:1.5}
.ozjo-welcome-arrow{font-size:1em;color:#E6B400;line-height:1;margin-bottom:18px}
@media(max-width:768px){.ozjo-welcome-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.ozjo-welcome-grid{grid-template-columns:1fr}.ozjo-welcome-icon{padding:24px 16px 20px}}
.ozjo-count{display:block;font-size:0.8em;margin-top:2px}

/* ===== プロフィールバー ===== */
.ozjo-profile-bar{display:grid;grid-template-columns:305px 160px 1fr 1fr;gap:0 16px;align-items:center;background:#FBF6ED;border:1px solid #ddd0a8;border-radius:12px;padding:24px;margin:24px 0}
.ozjo-profile-bar-avatar{width:285px;height:160px;border-radius:12px;object-fit:cover;display:block;justify-self:center}
.ozjo-profile-bar-sns{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center}
.ozjo-profile-bar-sns a{font-size:0.82em;color:#3A2F26;text-decoration:none;background:#fff;border:1px solid #ddd0a8;border-radius:20px;padding:4px 14px;display:inline-block;transition:background .2s;min-width:80px;text-align:center}
.ozjo-profile-bar-sns a:hover{background:#FFF4D6}
.ozjo-profile-bar-right{grid-column:3 / 5;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding-left:16px;border-left:2px solid #E6B400}
.ozjo-profile-bar-name{font-size:1.15em;font-weight:bold;color:#3A2F26;margin-bottom:3px}
.ozjo-profile-bar-role{font-size:0.82em;color:#7A6A5A;margin-bottom:10px}
.ozjo-profile-bar-bio{font-size:0.85em;color:#5A4A3A;line-height:1.7}
.ozjo-profile-bar-bio p{margin:0}
@media(max-width:768px){.ozjo-profile-bar{grid-template-columns:80px 1fr;grid-template-rows:auto auto;gap:12px}.ozjo-profile-bar-avatar{width:72px;height:72px}.ozjo-profile-bar-sns{grid-column:2;flex-direction:row;flex-wrap:wrap;gap:6px;align-items:flex-start}.ozjo-profile-bar-right{grid-column:1 / 3;border-left:none;border-top:1px solid #ddd0a8;padding-left:0;padding-top:12px}}

/* サイドバー プロフィールSNS */
.ozjo-profile-sns{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.ozjo-profile-sns a{font-size:0.82em;color:#3A2F26;text-decoration:none;background:#fff;border:1px solid #ddd0a8;border-radius:20px;padding:5px 14px;display:block;text-align:center;transition:background .2s}
.ozjo-profile-sns a:hover{background:#FFF4D6}

/* サイドバープロフィール全体センタリング */
.ozjo-profile{text-align:center;display:flex;flex-direction:column;align-items:center}
.ozjo-profile-avatar{display:block;margin:0 auto 12px}
.ozjo-profile-name{font-weight:bold;font-size:1em;color:#3A2F26;margin-bottom:4px}
.ozjo-profile-tagline{font-size:0.82em;color:#7A6A5A;margin-bottom:12px}
.ozjo-profile-sns{width:100%}
/* ===== カード余白調整 ===== */
.admin-pv{margin-top:3px!important;margin-bottom:4px!important}
.entry-card-content,.card-content{padding-bottom:10px!important}

/* ===== カードタイトル・説明文サイズ ===== */
.entry-card-title{font-size:20px!important}
.entry-card-snippet{font-size:16px!important}
/* ===== カードスタイル v2 ===== */
.entry-card-wrap{background:#fff!important;border-radius:14px!important;overflow:hidden!important;box-shadow:0 4px 16px rgba(0,0,0,.18)!important;margin-bottom:20px!important}
/* ===== サイト全体 基本フォントサイズ ===== */
body{font-size:17px!important;line-height:1.8!important}

/* === SNSボタン ブランド色（淡色版・再登録） 2026-07-05 === */
.ozjo-profile-sns a, .ozjo-profile-bar-sns a{font-weight:600;transition:background .2s,color .2s;}
.ozjo-profile-sns a[href*="://x.com"], .ozjo-profile-bar-sns a[href*="://x.com"]{color:#1a1a1a;border-color:#d2d2d2 !important;}
.ozjo-profile-sns a[href*="threads"], .ozjo-profile-bar-sns a[href*="threads"]{color:#1a1a1a;border-color:#d2d2d2 !important;}
.ozjo-profile-sns a[href*="instagram"], .ozjo-profile-bar-sns a[href*="instagram"]{color:#c13584;border-color:#e8bcd6 !important;}
.ozjo-profile-sns a[href*="tabelog"], .ozjo-profile-bar-sns a[href*="tabelog"]{color:#e07b16;border-color:#f1cf94 !important;}
.ozjo-profile-sns a[href*="://x.com"]:hover,.ozjo-profile-sns a[href*="threads"]:hover,.ozjo-profile-bar-sns a[href*="://x.com"]:hover,.ozjo-profile-bar-sns a[href*="threads"]:hover{background:#f5f5f5;}
.ozjo-profile-sns a[href*="instagram"]:hover,.ozjo-profile-bar-sns a[href*="instagram"]:hover{background:#fdeef5;}
.ozjo-profile-sns a[href*="tabelog"]:hover,.ozjo-profile-bar-sns a[href*="tabelog"]:hover{background:#fff5e8;}


/* === 広告CLS対策（記事内広告に高さ予約） 2026-07-05 === */
.ad-content-middle,.ad-content-bottom{min-height:320px;}
@media (max-width:782px){.ad-content-middle,.ad-content-bottom{min-height:290px;}}
.ad-area:has(ins.adsbygoogle[data-ad-status="unfilled"]){min-height:0;}


/* === cuisine-of-the-world 目次リデザイン 2026-07-05 === */
.page-id-262 .toc{background:#faf7f0;border:1px solid #ece3d2;border-radius:16px;padding:20px 24px;max-width:760px;margin:0 auto 32px;}
.page-id-262 .toc-title{font-weight:700;font-size:1.15em;color:#3a2f26;border:none;}
.page-id-262 .toc-content li:before{content:none !important;}
.page-id-262 .toc-list{padding-left:0;margin:12px 0 0;}
.page-id-262 .toc-list>li{list-style:none;margin:0 0 18px;padding:0;}
.page-id-262 .toc-list>li>a{display:inline-block;font-weight:700;font-size:1.05em;color:#3a2f26;text-decoration:none;margin:0 0 8px;padding-bottom:4px;border-bottom:2px solid #e5b96b;}
.page-id-262 .toc-list>li>ol{display:grid;grid-template-columns:repeat(2,1fr);gap:2px 14px;padding-left:0;margin:0;}
.page-id-262 .toc-list>li>ol>li{list-style:none;margin:0;}
.page-id-262 .toc-list>li>ol>li>a{display:block;color:#6b5d4f;text-decoration:none;padding:6px 10px;border-radius:8px;transition:background .15s,color .15s;}
.page-id-262 .toc-list>li>ol>li>a:hover{background:#fff;color:#c0392b;}
@media (max-width:600px){.page-id-262 .toc-list>li>ol{grid-template-columns:1fr;}}
.page-id-262 .toc-content ol,.page-id-262 .toc-content li{list-style:none !important;}
