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

/* =========================================================================
   staffblog 移植用 子テーマ style.css
   -------------------------------------------------------------------------
   item(newitem5)部品の style.css ＋ 追加CSS からアウトラインだけを抽出・統合。
   採用 : ヘッダーボタン / ヘッダー背景・ナビ / 配送ボタン /
          スライドインメニュー(#navi-menu-content) /
          フローティングCTA(.floating-cta) / フッター微調整 / サイト幅
   除外 : CF7フォーム・価格表・クーポン見出し・su-button URL別色・口コミ吹き出し・
          youtube-report・mbbackr10・記事見出しH1〜H6・目次・パンくず・本文フォント強制
   ※ 特に「article header{display:none}」はブログの記事タイトルを消すため除外済み。

   ▼このCSSが効くための相方（フェーズ3で移植）
     - functions.php … フローティングCTA出力（custom_floating_cta_bar）
     - mobile-navi-button.php … ゾーン分けスライドメニューのHTML
     - Cocoon設定 … 「固定モバイルボタンを表示」ON（ヘッダーボタン表示の前提）
     これらが無いとCSSは“styleするだけ”で何も表示されません。
   ========================================================================= */


/* =========================================================================
   0. ベース（サイト共通の下地）
   ========================================================================= */
body {
  font-size: 15px;
  line-height: 1.75;
  /* フローティングCTAバーに最下部が隠れないための余白 */
  padding-bottom: 90px;
}
@media (max-width: 768px) {
  body {
    padding-bottom: 80px;
  }
}
main {
  padding-top: 0;
}


/* =========================================================================
   目次調整
   ========================================================================= */
.toc {
  font-size: unset !important;
}

/* =========================================================================
   1. ヘッダーボタン
      PC版のグローバルナビを隠し、モバイルヘッダーボタンをPCでも上部に出す
   ========================================================================= */
/* PC版のグローバルナビメニューを非表示にする */
.header-container-in.hlt-top-menu {
  display: none;
}
/* PC版でもモバイルヘッダーボタンを表示する */
.mobile-header-menu-buttons {
  justify-content: space-around;
  bottom: auto;
  top: 0;
  display: flex;
}
/* ヘッダーボタン調整 */
.mobile-menu-buttons .menu-button {
  width: auto;
}
li.logo-menu-button.menu-button img {
  vertical-align: text-top;
  padding-top: 1%;
  padding-bottom: 1.5%;
}
@media (max-width: 480px) {
  .mobile-menu-buttons .menu-caption {
    font-size: 8px !important;
    opacity: unset;
    width: 45px;
  }
}


/* =========================================================================
   2. ヘッダーメニュー背景・ナビ余白
   ========================================================================= */
:root {
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}
#header-container,
ul.menu-top {
  background-color: #ffffff !important;
}
#navi .navi-in > ul > li > a {
  padding: 0 0.5em;
}


/* =========================================================================
   3. 配送ボタン（.fa-truck を含むメニュー項目のカプセル化）
      ※ 該当メニュー項目が無ければ何も起きません（無害）
   ========================================================================= */
div.item-label:has(.fa-truck),
li.menu-button > a:has(.fa-truck) {
  padding: 0.1rem 0.5rem;
  background: linear-gradient(135deg, #34d058 0%, #28a745 100%);
  box-shadow: var(--shadow-md);
  color: #ffffff !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
div.item-label:has(.fa-truck):hover,
li.menu-button > a:has(.fa-truck):hover {
  background: linear-gradient(135deg, #4ade80 0%, #34d058 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15);
}


/* =========================================================================
   4. モバイル スライドインメニュー（#navi-menu-content 一式）
      CSS変数で自己完結。mobile-navi-button.php のHTMLとセットで機能。
   ========================================================================= */
/* 4-0. CSS変数（Cocoon環境用に自己完結） */
#navi-menu-content {
  --jet: #333;
  --dodger-blue: #1e90ff;
  --white: #fff;
  --font-system:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  --fs-body: 15px;
  --lh-normal: 1.8;
}

/* 4-1. メニューコンテナ全体 */
#navi-menu-content.navi-menu-content {
  background-color: #F0F2F5;
  width: 82%;
  max-width: 320px;
  font-family: var(--font-system) !important;
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  letter-spacing: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* 4-2. 閉じるボタン */
#navi-menu-content .menu-close-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4em;
  height: 2.4em;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  margin: 0.4em 0 0.3em 0.4em;
  font-size: 1.2em;
  transition: background 0.2s;
  cursor: pointer;
}
#navi-menu-content .menu-close-button:hover {
  background: rgba(0, 0, 0, 0.15);
}
#navi-menu-content .menu-close-button span {
  font-size: 1.4em;
  line-height: 1;
  color: var(--jet);
}

/* 4-3. メニュードロワー共通 */
#navi-menu-content .menu-drawer {
  padding: 0 1rem 120px;
  list-style: none;
}
#navi-menu-content .menu-drawer ul {
  list-style: none;
  padding-left: 0;
}
#navi-menu-content .menu-drawer li {
  display: block;
  font-family: var(--font-system) !important;
  font-size: var(--fs-body) !important;
  font-weight: 400 !important;
  line-height: var(--lh-normal) !important;
  letter-spacing: 0 !important;
}
#navi-menu-content .menu-drawer a {
  text-decoration: none;
  padding: 6px;
  display: block;
  color: var(--jet);
}
#navi-menu-content .menu-drawer a:hover {
  filter: brightness(1.1);
  transition: all 0.3s ease-in-out;
  color: var(--dodger-blue);
}
#navi-menu-content .menu-drawer .sub-menu {
  padding-left: 20px;
}

/* 4-4. ゾーン区切り（セグメント） */
#navi-menu-content .menu-segment {
  margin-top: 10px;
}

/* 4-5. ゾーン見出し共通 */
#navi-menu-content .menu-zone-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px;
  margin: 0 0 2px;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
#navi-menu-content .menu-zone-heading .zone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}

/* 4-6. ゾーン別カラー */
#navi-menu-content .zone-cta            { color: #EF8C28; }
#navi-menu-content .zone-cta .zone-icon { background: #EF8C28; }
#navi-menu-content .zone-trust            { color: #3D5A80; }
#navi-menu-content .zone-trust .zone-icon { background: #3D5A80; }
#navi-menu-content .zone-guide            { color: #7B6B8D; }
#navi-menu-content .zone-guide .zone-icon { background: #7B6B8D; }
#navi-menu-content .zone-action            { color: #43A047; }
#navi-menu-content .zone-action .zone-icon { background: #43A047; }
#navi-menu-content .zone-support            { color: #607D8B; }
#navi-menu-content .zone-support .zone-icon { background: #607D8B; }

/* 4-7. CTAボタン（無料ウェブ査定） */
#navi-menu-content .menu-zone-cta .sub-menu a {
  display: block;
  background: linear-gradient(135deg, #FF6D00 0%, #ff6b35 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  padding: 14px 16px !important;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(239, 140, 40, 0.25);
  margin: 4px 8px;
  transition: all 0.3s ease;
}
#navi-menu-content .menu-zone-cta .sub-menu a:hover {
  background: linear-gradient(135deg, #E65100 0%, #e55a2b 100%) !important;
  color: #fff !important;
  box-shadow: 0 5px 16px rgba(239, 140, 40, 0.4);
  transform: translateY(-1px);
}

/* 4-8. バッジ（最短当日 / 0円） */
#navi-menu-content .menu-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: 0;
  line-height: 1.6;
}
#navi-menu-content .badge-urgent {
  color: #fff;
  background: #E74C3C;
}
#navi-menu-content .badge-free {
  color: #fff;
  background: #E67E22;
}

/* 4-9. Cocoon デフォルトの打ち消し / 競合対策 */
#navi-menu-content .menu-drawer,
#navi-menu-content .menu-drawer ul,
#navi-menu-content .menu-drawer .sub-menu {
  margin: 0;
}
#navi-menu-content ul {
  list-style: none;
  padding-left: 0;
}
#navi-menu-content .menu-drawer .sub-menu {
  padding-left: 20px;
}
#navi-menu-content .menu-drawer a,
#navi-menu-content .sub-menu a {
  color: var(--jet);
}
#navi-menu-content .menu-drawer a:hover,
#navi-menu-content .sub-menu a:hover {
  color: var(--dodger-blue);
}

/* 4-10. モバイル微調整 */
@media screen and (max-width: 480px) {
  #navi-menu-content.navi-menu-content {
    font-size: 16px;
    line-height: 1.9;
  }
}

/* 4-11. アクセシビリティ: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  #navi-menu-content,
  #navi-menu-content * {
    animation: none !important;
    transition: none !important;
  }
}


/* =========================================================================
   5. フッター固定 フローティングCTAバー（.floating-cta 一式）
      functions.php の custom_floating_cta_bar 出力とセット。
   ========================================================================= */
/* 5-0. Cocoon デフォルトのモバイルフッターボタンを非表示 */
.mobile-footer-menu-buttons {
  display: none !important;
}

/* 5-1. CSS変数（自己完結） */
.floating-cta {
  --jet: #333;
  --white: #fff;
  --gray: #555;
  --dodger-blue: #1e90ff;
  --line-forest-green: #06C755;
  --font-system:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}

/* 5-2. バー本体 */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 10px 32px calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
/*  z-index: 1000;*/
z-index: 1 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  font-family: var(--font-system);
}

/* 5-3. テキスト行 */
.floating-cta-text {
  text-align: center;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.floating-cta-text strong {
  font-size: 13px;
  color: var(--jet);
}
.floating-cta-text small {
  font-size: 12px;
  color: var(--gray);
}

/* 5-4. ボタンコンテナ */
.floating-cta-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* 5-5. ボタン共通 */
.floating-cta-button {
  flex: 0 0 auto;
  padding: 13px 30px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* 5-6. 無料査定ボタン（オレンジ） */
.floating-cta-primary {
  background: linear-gradient(135deg, #FF6D00 0%, #ff6b35 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.30);
}
.floating-cta-primary:hover {
  color: var(--white);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
  transform: translateY(-1px);
}

/* 5-7. 宅配買取ボタン（グリーン） */
.floating-cta-secondary {
  background: var(--line-forest-green);
  color: var(--white);
  border: 2px solid var(--line-forest-green);
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.25);
}
.floating-cta-secondary:hover {
  color: var(--white);
  background: #05b34d;
  border-color: #05b34d;
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.40);
  transform: translateY(-1px);
}

/* 5-8. PC/SP ラベル切り替え */
.cta-label-sp { display: none; }
.cta-label-pc { display: inline; }

/* 5-9. モバイル調整 */
@media (max-width: 768px) {
  .floating-cta {
    padding: 8px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 5px;
  }
  .floating-cta-button {
    padding: 12px 20px;
    font-size: 14px;
  }
  .cta-label-pc { display: none; }
  .cta-label-sp { display: inline; }
}

/* 5-10. 印刷時は非表示 */
@media print {
  .floating-cta {
    display: none !important;
  }
}

/* 5-11. アクセシビリティ: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .floating-cta,
  .floating-cta * {
    animation: none !important;
    transition: none !important;
  }
}

/* 5-12. ラベル色 */
.cta-label-sp,
.cta-label-pc {
  color: #fff;
}


/* =========================================================================
   6. フッター微調整
   ========================================================================= */
#footer a:not(.sns-button) {
  text-decoration: none;
}
#footer-in li {
  font-size: 1rem;
}
section {
  width: auto !important;
}



/* =========================================================
   おもちゃ買取ドットJP フッター（カスタムHTMLウィジェット用）
   ※すべて #tk-footer-pc / #tk-footer-m 配下にスコープしているため
     テーマ本体・他ウィジェットには影響しません。
   子テーマ（CocoonChild）の style.css の末尾に追記してください。
   ========================================================= */

/* --- Cocoonのレイアウト調整（このウィジェットがある時だけ効く） ---
   フッター左を全幅にし、中・右の空カラムを詰める。
   :has() で当該ウィジェットが存在する場合のみ適用。
   ★重要★ 必ず min-width:1024px の中だけに書くこと。
   ここを常時適用にすると、Cocoonが1023px以下でPC用フッターを
   display:none で隠している挙動を打ち消し、スマホでもPC版が
   表示されてしまいます（今回の不具合の原因）。 */
@media screen and (min-width: 1024px) {
  .footer-widgets:has(#tk-footer-pc) .footer-left {
    width: 100%;
    max-width: 100%;
    float: none;
    padding: 0;
  }
  .footer-widgets:has(#tk-footer-pc) .footer-center,
  .footer-widgets:has(#tk-footer-pc) .footer-right { display: none; }
  .footer-left .widget:has(#tk-footer-pc) { margin: 0; padding: 0; }
}
/* モバイル側ウィジェットの余白調整（モバイル幅のみ影響） */
.footer-mobile .widget:has(#tk-footer-m) { margin: 0; padding: 0; }
.footer-mobile:has(#tk-footer-m) { padding: 0; }

/* =========================================================
   PC版フッター（4カラム）  root: #tk-footer-pc
   ========================================================= */
#tk-footer-pc {
  background: #0098fe;
  border-radius: 8px;
  padding: 26px 24px 16px;
  box-sizing: border-box;
}
#tk-footer-pc * { box-sizing: border-box; }

#tk-footer-pc .tk-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.7fr 1.2fr 1fr;
  gap: 20px;
}
#tk-footer-pc .tk-h {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 9px;
  line-height: 1.5;
}
#tk-footer-pc .tk-h.tk-mt { margin-top: 20px; }

#tk-footer-pc .tk-list { list-style: none; margin: 0; padding: 0; }
#tk-footer-pc .tk-list li {
  color: rgba(255,255,255,.92);
  font-size: 12px;
  line-height: 1.95;
  display: flex;
  gap: 6px;
  align-items: baseline;
}
#tk-footer-pc .tk-list li::before {
  content: "\2022";
  color: rgba(255,255,255,.65);
  font-size: 11px;
  flex: 0 0 auto;
}
#tk-footer-pc .tk-list a {
  color: inherit;
  text-decoration: none;
}
#tk-footer-pc .tk-list a:hover { text-decoration: underline; background-color: unset; }

#tk-footer-pc .tk-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

#tk-footer-pc .tk-bar {
  border-top: 0.5px solid rgba(255,255,255,.3);
  margin-top: 18px;
  padding-top: 12px;
  text-align: center;
}
#tk-footer-pc .tk-bar p {
  color: rgba(255,255,255,.85);
  font-size: 11px;
  margin: 2px 0;
  line-height: 1.6;
}

/* 保険: 万一この幅でPC枠が見えても崩れないように */
@media screen and (max-width: 1023px) {
  #tk-footer-pc .tk-grid { grid-template-columns: 1fr; }
  #tk-footer-pc .tk-two  { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   モバイル版フッター（アコーディオン）  root: #tk-footer-m
   ========================================================= */
#tk-footer-m {
  background: #0098fe;
  border-radius: 8px;
  padding: 8px 18px 14px;
  box-sizing: border-box;
}
#tk-footer-m * { box-sizing: border-box; }

#tk-footer-m .tk-acc { border-top: 0.5px solid rgba(255,255,255,.28); }
#tk-footer-m .tk-acc:first-child { border-top: none; }

#tk-footer-m .tk-acc__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  padding: 13px 2px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

/* CSSだけで作る開閉シェブロン（アイコンフォント不要） */
#tk-footer-m .tk-acc__icon {
  width: 9px;
  height: 9px;
  border-right: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: rotate(45deg);          /* ▼ 閉じている状態 */
  transition: transform .2s ease;
  margin: 0 4px 3px 8px;
  flex: 0 0 auto;
}
#tk-footer-m .tk-acc.is-open .tk-acc__icon {
  transform: rotate(-135deg);        /* ▲ 開いた状態 */
  margin-bottom: -3px;
}

#tk-footer-m .tk-acc__body {
  display: none;
  padding: 0 2px 12px;
}
#tk-footer-m .tk-acc.is-open .tk-acc__body { display: block; }

#tk-footer-m .tk-list { list-style: none; margin: 0; padding: 0; }
#tk-footer-m .tk-list li {
  color: rgba(255,255,255,.92);
  font-size: 12px;
  line-height: 1.95;
  display: flex;
  gap: 6px;
  align-items: baseline;
}
#tk-footer-m .tk-list li::before {
  content: "\2022";
  color: rgba(255,255,255,.65);
  font-size: 11px;
  flex: 0 0 auto;
}
#tk-footer-m .tk-list a { color: inherit; text-decoration: none; }
#tk-footer-m .tk-list a:hover { text-decoration: underline; background-color: unset; }

#tk-footer-m .tk-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

#tk-footer-m .tk-bar {
  border-top: 0.5px solid rgba(255,255,255,.3);
  margin-top: 6px;
  padding-top: 12px;
  text-align: center;
}
#tk-footer-m .tk-bar p {
  color: rgba(255,255,255,.85);
  font-size: 11px;
  margin: 2px 0;
  line-height: 1.6;
}


/* =========================================================================
   7. サイト幅
      ※ Cocoon設定側のサイト幅と食い違うとレイアウトがずれます。
        Cocoon設定の「サイト幅」と揃えるか、片方に寄せてください。
   ========================================================================= */
.wrap {
  width: auto;
}
@media (min-width: 1009px) {
  .wrap {
    width: 1008px;
  }
}


/* =========================================================================
   8.【任意】最終更新日バッジ
      functions.php の auto_updated_badge_on_pages を移植した場合のみ表示。
      不要なら functions.php 側と併せて削除。
   ========================================================================= */
.updated-badge-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1em;
}
.updated-badge {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  line-height: 1.6;
}


/* =========================================================================
   9.【任意・ブランド寄せ】リンク色
      記事本文のリンク見た目もこの色に変わります。Cocoon既定のままにしたい
      場合はこのセクションごと削除してください。
   =========================================================================
a {
  color: #0098fe;
  text-decoration: none;
  transition: color 0.15s ease;
  border-bottom: 1px solid transparent;
}
a:hover {
  color: #0077cc;
  border-bottom-color: rgba(0, 119, 204, 0.5);
}
a:visited {
  color: #7c3aed;
}
a:active {
  color: #005fa3;
}
 */

/************************************
** レスポンシブ用メディアクエリ（予備・空でOK）
************************************/
@media screen and (max-width: 1023px) {
    .mblt-footer-mobile-buttons, .mblt-header-and-footer-mobile-buttons {
        margin-bottom: unset;
    }
}
@media screen and (max-width: 834px)  {}
@media screen and (max-width: 480px)  {}

@media (max-width:360px){
    main.main, div.sidebar {
	    padding: 32px 0px;
	}
}