@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
*/

/* ── スマホ表示（モバイルUX）最適化：世界観維持・スマホ幅のみ適用（2026-11-11） ── */
@media (max-width: 820px) {
  /* 共通ヘッダー使用時、SWELL標準の下部固定ハンバーガーバー（#fix_bottom_menu）の重複表示を抑止 */
  #fix_bottom_menu {
    display: none !important;
  }
  .post_content h1,
  .post_content h2,
  .post_content h3 {
    text-wrap: balance;
  }
}

@media (max-width: 640px) {
  /* iOS Safari タップ時の自動画面ズーム防止（16px以上確保） */
  .post_content input:not([type="checkbox"]):not([type="radio"]),
  .post_content select,
  .post_content textarea,
  .wpforms-container input:not([type="checkbox"]):not([type="radio"]),
  .wpforms-container select,
  .wpforms-container textarea {
    font-size: max(1rem, 16px) !important;
    min-block-size: 44px;
  }

  /* WordPress本文・商品一覧・LP比較表の「監査調書カード」スタック化（colspan/rowspan表は除外） */
  .post_content table:not(:has([colspan], [rowspan])),
  .post_content table:not(:has([colspan], [rowspan])) tbody {
    display: block !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
  }
  .post_content table:not(:has([colspan], [rowspan])) thead,
  .post_content table:not(:has([colspan], [rowspan])) tbody > tr:first-child:not(:has(td)),
  .post_content table:not(:has([colspan], [rowspan])) tr.michi-th-row {
    display: none !important;
  }
  .post_content table:not(:has([colspan], [rowspan])) tbody tr:not(.michi-th-row):not(:first-child:not(:has(td))) {
    display: block !important;
    background: #ffffff !important;
    border: 1px solid #d9dee8 !important;
    border-top: 2px solid #0c233c !important;
    padding: 14px 16px !important;
    margin-bottom: 14px !important;
  }
  .post_content table:not(:has([colspan], [rowspan])) tbody tr:not(.michi-th-row) th,
  .post_content table:not(:has([colspan], [rowspan])) tbody tr:not(.michi-th-row) td {
    display: block !important;
    width: 100% !important;
    padding: 5px 0 !important;
    border: none !important;
    text-align: left !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
    background: transparent !important;
  }
  .post_content table:not(:has([colspan], [rowspan])) tbody tr:not(.michi-th-row) > :first-child {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #0c233c !important;
    border-bottom: 1px solid #eef0f4 !important;
    padding-bottom: 8px !important;
    margin-bottom: 6px !important;
  }
  .post_content table:not(:has([colspan], [rowspan])) tbody td[data-col]::before {
    content: attr(data-col);
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #5b6474;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
  }
  .post_content table:not(:has([colspan], [rowspan])) tbody td.michi-cta-cell a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-block-size: 44px;
    padding: 8px 16px;
    background: #0c233c;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none !important;
    border-radius: 2px;
    margin-top: 6px;
  }
}


