@media (max-width: 768px) {
  .wp-block-button__link {
    font-size: 14px !important;
    padding: 0.4em 0.8em !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }
}
@media screen and (max-width: 480px) {
  .button, .btn, a.button {
    padding: 10px 20px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    display: inline-block;
    width: auto;
  }
}
@media screen and (max-width: 480px) {
  .wp-block-media-text {
    align-items: center !important;
  }

  .wp-block-media-text__media img {
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 0 !important;
  }

  .wp-block-media-text__media {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .wp-block-media-text__content {
    padding-top: 0.5em !important;
    padding-bottom: 0.5em !important;
  }
}
@media screen and (max-width: 480px) {
  img {
    margin-bottom: 0 !important;
  }

  .wp-block-image {
    margin-bottom: 0 !important;
  }

  .wp-block-column {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .wp-block-group {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .wp-block-columns {
    gap: 0 !important;
  }
}
@media screen and (max-width: 480px) {
  img {
    margin-bottom: 0 !important;
  }

  .wp-block-image {
    margin-bottom: 0 !important;
  }

  .wp-block-column {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .wp-block-group {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .wp-block-columns {
    gap: 0 !important;
  }
}
@media (max-width: 767px) {
  .wp-block-image img {
    width: 130px !important;
    height: 130px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    margin: 0 auto !important;
    display: block !important;
  }
}
@media (max-width: 767px) {
  .wp-block-image img {
    width: 130px !important;
    height: 130px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    margin: 0 auto !important;
    display: block !important;
  }
}
@media (max-width: 767px) {
  .wp-block-image img {
    width: 130px !important;
    height: 130px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    margin: 0 auto !important;
    display: block !important;
  }
}
@media (max-width: 767px) {
  .wp-block-image img {
    width: 130px !important;
    height: 130px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    margin: 0 auto 16px auto !important;
    display: block !important;
  }
}
.entry-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* 記事上部の不要な空白（マージン・パディング）をカット */
.entry-header,
.wp-block-post-title,
h1.entry-title {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ページ全体にかかる可能性のある上部余白 */
.single-post .site-content,
.page .site-content,
.wp-block-template-part {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* FSE系テーマの上部余白を削除 */
.wp-site-blocks {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.is-layout-constrained {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.wp-block-group {
  margin-block-start: 0 !important;
  padding-block-start: 0 !important;
}
/* FSEテーマでの余白削除 */
.wp-site-blocks,
.is-layout-constrained,
.wp-block-group,
header.wp-block-template-part,
h1.entry-title,
.wp-block-post-title {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-block-start: 0 !important;
  padding-block-start: 0 !important;
}

/* スペーサー削除（FSEテンプレート内で使われることが多い） */
.wp-block-spacer {
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
@media screen and (max-width: 768px) {
  /* テーブル全体の幅を調整 */
  table {
    width: 100% !important;
    font-size: 14px;
    table-layout: fixed;
  }

  /* 各セルの余白と文字サイズを小さく */
  th, td {
    padding: 6px 4px !important;
    word-break: break-word;
  }

  /* ランキングボタンの文字が折り返さないように */
  .ranking-button {
    font-size: 13px !important;
    padding: 10px 14px !important;
    white-space: nowrap;
  }

  /* 商品紹介文を短く見せたいときはここを調整 */
  .product-feature {
    max-height: 3.8em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 各行の罫線の間隔 */
  table tr {
    border-bottom: 1px solid #ff8800;
  }
}
/* スマホだけに適用 */
@media screen and (max-width: 768px) {
  table th, table td {
    font-size: 13px;
    padding: 6px 4px;
    word-break: keep-all;
    white-space: normal;
  }

  /* テーブル列の折返し制限を緩くして読みやすく */
  table {
    table-layout: fixed;
    width: 100%;
  }

  /* 特徴列を短くし、省スペース */
  table td:nth-child(3) {
    font-size: 12px;
    line-height: 1.4;
  }

  /* 購入ボタン調整 */
  table td:nth-child(4) a {
    font-size: 13px !important;
    padding: 8px 10px !important;
    display: inline-block;
    border-radius: 10px;
    background-color: #ff6600;
    color: #fff !important;
    text-align: center;
    width: 100%;
  }

  /* 表の全体バランス調整 */
  .ranking-table {
    font-size: 13px;
  }
}
/* PC・スマホ両対応 チェックマーク位置修正 */
.qa-block ul li {
  list-style: none;
  position: relative;
  padding-left: 1.8em; /* チェックマークと文章の間隔を作る */
  margin-bottom: 10px;
}

.qa-block ul li::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 0;
}
@media screen and (max-width: 768px) {
  .profile-box img {
    width: 100px !important;
    height: auto !important;
    float: left;
    margin: 0 10px 10px 0;
    border-radius: 8px;
  }

  .profile-box {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
  }

  .profile-box p {
    font-size: 14px;
    line-height: 1.5;
  }
}
@media screen and (max-width: 768px) {
  .profile-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    flex-direction: row;
  }

  .profile-box img {
    width: 80px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .profile-box-text {
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
  }
}
