@charset "UTF-8";
/*
Template: swell
Theme Name: SWELL CHILD
Theme URI: https://swell-theme.com/
Description: SWELLの子テーマ
Version: 1.0.0
Author: LOOS WEB STUDIO
Author URI: https://loos-web-studio.com/
License: GNU General Public License
License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ==========================================================================
   ポータブル電源アンサー（potaden-answer.com）
   SWELL 追加CSS（外観 > カスタマイズ > 追加CSS 全文）
   ※参考『魚ランキング記事（namagominavi.com）』の表・装飾・CTA仕様 ＋ SWELL DEMO 06 × Ankerシアン配色
   ========================================================================== */

/* 1. Pochipp（ポチップ）4ボタン配色＆並び順固定（公式ストア → Amazon → 楽天市場 → Yahoo!） */
:root {
  --pchpp-color-inline: #0082B0;
  --pchpp-color-custom: #00A9E0;
  --pchpp-color-custom-2: #0077A8;
  --pchpp-color-amazon: #FF6B00;
  --pchpp-color-rakuten: #E0423C;
  --pchpp-color-yahoo: #438EE8;
}
.pochipp-box .pochipp-box__btns {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: wrap;
}
.pochipp-box .pochipp-box__btnwrap.-custom,
.pochipp-box .pochipp-box__btnwrap.-custom_1,
.pochipp-box .pochipp-box__btnwrap.-custom1 { order: -4 !important; width: 100% !important; }
.pochipp-box .pochipp-box__btnwrap.-custom2 { order: -3 !important; }
.pochipp-box .pochipp-box__btnwrap.-amazon  { order: -2 !important; }
.pochipp-box .pochipp-box__btnwrap.-rakuten { order: -1 !important; }
.pochipp-box .pochipp-box__btnwrap.-yahoo   { order:  0 !important; }
.pochipp-box .pochipp-box__btnwrap.-mercari { order:  1 !important; }
.pochipp-box .pochipp-box__btnwrap.-custom::before,
.pochipp-box .pochipp-box__btnwrap.-custom_1::before,
.pochipp-box .pochipp-box__btnwrap.-custom1::before {
  content: "＼ ログインだけで自動5年保証＋30日間返品OK ／";
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #0077A8;
  margin-bottom: 4px;
  white-space: nowrap;
}
@media screen and (min-width: 1000px) {
  .pochipp-box .pochipp-box__btns { flex-direction: row !important; flex-wrap: nowrap; }
  .pochipp-box .pochipp-box__btnwrap { flex: 1 1 0; min-width: 0; max-width: none; width: auto !important; }
  .pochipp-box .pochipp-box__btn { min-height: 3.2em; padding: 8px 6px; }
  .pochipp-box .pochipp-box__btnwrap::before,
  .pochipp-box .pochipp-box__saleInfo { white-space: normal !important; overflow-wrap: anywhere; font-size: 10.5px; }
}
@media screen and (max-width: 599px) {
  .pochipp-box .pochipp-box__btns { align-items: stretch; }
  .pochipp-box .pochipp-box__btnwrap { flex: 0 0 auto; width: 100% !important; min-width: 100% !important; max-width: 100% !important; }
}

/* 2. 記事タイトル日時（2026 11/17）＆ 公開日 ＆ SNSシェアボタン完全非表示（更新日のみ表示） */
.single .c-postTitle__date,
#body_wrap.single .c-postTitle__date,
.c-postTitle__date,
.single .c-postTimes__posted,
#body_wrap.single .c-postTimes__posted,
.c-postTimes__posted,
.c-shareBtns {
  display: none !important;
}

/* 3. 追尾サイドバー目次 ＆ 本文中 黄色マーカー視認性強化 */
.mark_yellow,
.widget_swell_index a.mark_yellow,
.p-toc a.mark_yellow {
  background: linear-gradient(transparent 60%, #fcf69f 60%) !important;
  font-weight: 700 !important;
  color: #1A1A1A !important;
}
.widget_swell_index a {
  transition: background-color 0.2s ease;
  padding: 2px 3px;
  border-radius: 3px;
}

/* 4. 記事上部お知らせバー（#01 ランキングへ誘導｜Ankerシアン斜めストライプ） */
#body_wrap:not(.single-post) .c-infoBar,
#body_wrap:not(.single-post) .c-infoBar,
#body_wrap.postid-63 .c-infoBar,
#body_wrap.postid-63 .c-infoBar {
  display: none !important;
}
.c-infoBar {
  position: relative;
  padding: 10px 16px;
  color: #003B52 !important;
  background-color: #EAF8FD !important;
  background-image: repeating-linear-gradient(
    135deg,
    #EAF8FD 0px,
    #EAF8FD 24px,
    #D6F1FC 24px,
    #D6F1FC 48px
  ) !important;
}
.c-infoBar__text {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.c-infoBar__text::before {
  content: "★" !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #00A9E0 !important;
  color: #FFFFFF !important;
  font-size: 13px !important;
  line-height: 1 !important;
}
.c-infoBar .c-infoBar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 9px 24px;
  border: 0;
  border-radius: 999px;
  color: #FFFFFF !important;
  background: #0082B0 !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 130, 176, 0.22);
}
.c-infoBar .c-infoBar__btn:hover {
  background: #006B92 !important;
  opacity: 1;
}
@media (max-width: 600px) {
  .c-infoBar { padding: 8px 10px; }
  .c-infoBar__text { gap: 8px; font-size: clamp(11px, 3.4vw, 14px); }
  .c-infoBar__text::before { flex-basis: 18px; width: 18px; height: 18px; font-size: 10px; }
  .c-infoBar .c-infoBar__btn { padding: 6px 13px; font-size: clamp(10.5px, 3vw, 12.5px); }
}

/* 5. 公式ストアCTAグループ補助 ＆ マイクロコピー調整 */
.anker-official-cta {
  border: 1px solid #BFE7F7;
  border-radius: 12px;
}
.anker-official-cta a {
  text-decoration: none !important;
}
.anker-official-cta > .wp-block-group__inner-container > p:first-child {
  white-space: nowrap !important;
  font-size: clamp(12px, 3.3vw, 15px) !important;
  letter-spacing: -0.02em !important;
}

/* 6. 空の記事スライダー非表示・トップページ上部の余白排除 */
.p-postSlider:not(:has(.p-postList__item)),
#post_slider:not(:has(.p-postList__item)) {
  display: none !important;
}
body.home .l-content {
  padding-top: 0 !important;
}

/* 7. 参考『魚ランキング記事』完全準拠：左列固定・横スクロール比較表 ＆ 買物ボタン */
.rank24-table,
.fishrank-readable {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.2em 0;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 96px;
}
.rank24-table table {
  border-collapse: separate !important;
  border-spacing: 0;
  width: max-content !important;
  min-width: 100% !important;
  table-layout: auto !important;
  font-size: 13px;
}
.rank24-table th:not(:first-child),
.rank24-table td:not(:first-child) {
  min-width: 116px;
}
.rank24-table th,
.rank24-table td {
  padding: 10px 10px !important;
  border: 1px solid #e3e9ee !important;
  vertical-align: middle;
  text-align: center;
  line-height: 1.5;
  white-space: nowrap;
}
.rank24-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff !important;
  color: #1A1A1A !important;
  font-weight: 700;
  padding: 12px 8px !important;
}
.rank24-table thead th a {
  color: #1A1A1A !important;
  text-decoration: none !important;
}
.rank24-table thead th img {
  display: block;
  margin: 0 auto 6px;
  width: 82px !important;
  height: 82px !important;
  object-fit: contain !important;
}
.rank24-table .rk {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  background: #00A9E0;
  color: #fff;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.rank24-table .rk-sub {
  background: #8a99a4 !important;
}
.rank24-table th:first-child,
.rank24-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f4f8fb !important;
  text-align: left !important;
  width: 98px !important;
  min-width: 98px !important;
  max-width: 98px !important;
  white-space: normal !important;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}
.rank24-table thead th:first-child { z-index: 4; }
.rank24-table thead th:not(:first-child),
.rank24-table tbody td:not(:first-child) {
  scroll-snap-align: start;
}
.rank24-table tbody tr:nth-child(even) td:not(:first-child) { background: #fafcfd; }
.rank24-table tbody tr:hover td { background: #fffdf2 !important; }

/* SWELLセル背景アイコン（◎・○・△）交互背景対応 */
.post_content .rank24-table tbody tr:nth-child(even) td[data-has-cell-bg] .swl-cell-bg {
  --the-cell-bg: #fafcfd;
}
.post_content .rank24-table tbody tr:hover td[data-has-cell-bg] .swl-cell-bg {
  --the-cell-bg: #fffdf2;
}
.post_content .fishrank-comparison-compact td .swl-cell-bg[data-icon-size="l"] {
  --cell-icon-size: 3.1em;
}
.post_content .fishrank-comparison-compact td small {
  display: inline-block;
  font-size: 10.5px;
  line-height: 1.35;
  color: #555;
}
.post_content .fishrank-comparison-compact s,
.post_content .rank24-table s,
.post_content table s {
  color: #7a8691;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.post_content .fishrank-comparison-compact .fishrank-review-link {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #0055CC !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.post_content .fishrank-model-unit,
.post_content .fishrank-label-unit {
  display: inline-block;
  white-space: nowrap;
}

/* 比較表末尾「おすすめ購入先」ピルボタン（公式シアン・Amazonオレンジ・楽天レッド） */
.post_content .fishrank-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  padding: 8px 6px !important;
  border-radius: 999px;
  background: #00A9E0;
  box-shadow: 0 3px 0 #007FA8;
  color: #fff !important;
  font-size: 11.5px !important;
  font-weight: 700;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.post_content .fishrank-buy-btn:hover {
  background: #0092C4;
  opacity: 0.92;
}
.post_content .fishrank-buy-btn.fishrank-buy-amazon {
  background: #f99a0c;
  box-shadow: 0 3px 0 #cf7e05;
}
.post_content .fishrank-buy-btn.fishrank-buy-rakuten {
  background: #e0423c;
  box-shadow: 0 3px 0 #bd332e;
}
@media (max-width: 781px) {
  .post_content .fishrank-comparison-compact {
    margin-left: -8px !important;
    margin-right: -8px !important;
    width: calc(100% + 16px) !important;
    max-width: calc(100% + 16px) !important;
    scroll-padding-left: 68px;
  }
  .post_content .fishrank-comparison-compact table {
    table-layout: fixed !important;
    min-width: 780px !important;
  }
  .post_content .fishrank-comparison-compact table tr > :first-child {
    min-width: 68px !important;
    width: 68px !important;
    max-width: 68px !important;
    padding: 7px 4px !important;
    font-size: 10.5px !important;
  }
  .post_content .fishrank-comparison-compact table tr > :not(:first-child) {
    box-sizing: border-box !important;
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
    padding: 8px 4px !important;
    font-size: 11px !important;
    white-space: normal !important;
  }
  .post_content .fishrank-comparison-compact table thead img {
    width: 58px !important;
    height: 58px !important;
  }
  .post_content .fishrank-buy-btn {
    padding: 7px 3px !important;
    font-size: 10.5px !important;
    min-height: 34px !important;
  }
}

/* 8. H3特徴ボックス＆目的別リスト調整（sakana_ranking準拠） */
.post_content .h3-feature-box {
  padding: 24px 20px 18px !important;
  margin: 1.3em 0 !important;
}
.post_content .h3-feature-box .wp-block-group__inner-container > p,
.post_content .h3-feature-box > p {
  margin-bottom: 10px !important;
  font-size: 100% !important;
  font-weight: 700;
  line-height: 1.5 !important;
}
.post_content .h3-feature-box ul.wp-block-list {
  padding-left: 1.2em !important;
  margin: 0 !important;
}
.post_content .h3-feature-box ul.wp-block-list > li {
  font-size: 100% !important;
  line-height: 1.65 !important;
  margin-bottom: 9px !important;
}
.post_content .h3-feature-box ul.wp-block-list > li:last-child {
  margin-bottom: 0 !important;
}
@media (max-width: 600px) {
  .post_content .h3-feature-box { padding: 22px 14px 16px !important; }
}

/* 9. サイドバー新着記事の回り込み防止 */
.wp-block-latest-posts__post-title,
.wp-block-latest-posts__post-title a {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
}
.wp-block-latest-posts__list li { display: flex; align-items: center; gap: 12px; }
.wp-block-latest-posts__list li .wp-block-latest-posts__featured-image.alignleft { float: none; margin: 0; flex: 0 0 auto; }
.wp-block-latest-posts__list li > a,
.wp-block-latest-posts__list li .wp-block-latest-posts__post-title { flex: 1 1 auto; min-width: 0; }

/* 10. スマホ右下固定ボタン最適化（上へ戻る非表示 ＋ 目次ボタン文字ラベル表示） */
@media (max-width: 600px) {
  #pagetop {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }
  #fix_tocbtn {
    height: auto !important;
    min-height: 52px;
    padding: 9px 0 7px !important;
  }
  #fix_tocbtn::after {
    content: "目次";
    display: block;
    font-size: 10px;
    line-height: 1;
    margin-top: 3px;
    transform: scale(0.9);
    font-feature-settings: "palt";
  }
}

/* 11. スマホ幅375pxでの横長比較表スクロール保証 */
.sp-scroll-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sp-scroll-table table {
  min-width: 560px;
}