/*
  GJcar's ブログ記事用CSS（サイト全体で一度だけ設定する）
  設定場所：WordPress管理画面 →「外観」→「カスタマイズ」→「追加CSS」（管理者の権限が必要）
  効く範囲：AUTO BLOG の記事ページの本文（.mechanics-eye-single .single-content）だけ。
            ほかのページ（在庫・納車情報など）には効かない。既存のブログ記事39件の見た目は変わる。
  記事ごとの HTML では字体・文字サイズを指定しない（design.md §1）。
*/


.mechanics-eye-single h3 {
   font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", Meiryo, sans-serif;
  font-feature-settings: "palt" 0;
  word-break: normal;
  overflow-wrap: anywhere;
}

.mechanics-eye-single h1 {
   font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", Meiryo, sans-serif;
  font-feature-settings: "palt" 0;
  word-break: normal;
  overflow-wrap: anywhere;
}

.mechanics-eye-single h1 {
  font-size: 24px;
  margin-bottom: 20px;
}


.mechanics-eye-single .single-content,
.mechanics-eye-single .single-content p,
.mechanics-eye-single .single-content li,
.mechanics-eye-single .single-content td,
.mechanics-eye-single .single-content th,
.mechanics-eye-single .single-content h2,
.mechanics-eye-single .single-content h3 {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", Meiryo, sans-serif;
  font-feature-settings: "palt" 0;
  word-break: normal;
  overflow-wrap: anywhere;
}
.mechanics-eye-single .single-content p {
  font-size: 17px;
  line-height: 1.9;
  color: #222;
  margin: 0 0 1.6em;
}
.mechanics-eye-single .single-content li {
  font-size: 16px;
  line-height: 1.9;
  color: #222;
}
.mechanics-eye-single .single-content ul { list-style: disc; padding-left: 1.4em; }
.mechanics-eye-single .single-content ol { list-style: decimal; padding-left: 1.4em; }
.mechanics-eye-single .single-content ul li { list-style: disc; }
.mechanics-eye-single .single-content ol li { list-style: decimal; }
.mechanics-eye-single .single-content h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
  margin: 2.8em 0 1.2em;
  padding: 0.4em 0 0.4em 0.7em;
  border-left: 5px solid #1a1a1a;
  background: #f5f5f5;
}
.mechanics-eye-single .single-content h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
  margin: 2.2em 0 1em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #999;
}
.mechanics-eye-single .single-content a { color: #0055aa; text-decoration: underline; text-underline-offset: 2px; }
.mechanics-eye-single .single-content strong { font-weight: 700; }
.mechanics-eye-single .single-content img { max-width: 100%; height: auto; display: block; margin: 1.6em auto 1em; }
@media (max-width: 600px) {
  .mechanics-eye-single .single-content p { font-size: 16px; }
  .mechanics-eye-single .single-content li { font-size: 15px; }
  .mechanics-eye-single .single-content h2 { font-size: 20px; }
  .mechanics-eye-single .single-content h3 { font-size: 18px; }
}

/*追加*/

/* PC表示のレイアウト：アイキャッチを上、本文を下に（本文は最大760px） */
@media screen and (min-width: 769px) {
.mechanics-eye-single { background: #fff; }
.mechanics-eye-single .tum-wrap-left { float: none; width: 100%; margin-bottom: 30px; }
.mechanics-eye-single .tum-wrap-left img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.mechanics-eye-single .tum-wrap-right { float: none; width: 100%; max-width: 760px; margin: 0 auto; padding: 0; }
}
/* 箇条書きの直後の段落がくっつかないようにする */
.mechanics-eye-single .single-content ul,
.mechanics-eye-single .single-content ol { margin-bottom: 1.6em; }


/*
div:has(> table) {
    max-width: 100%;
    overflow-x: auto;
}
*/


/* --- スマホでの表（2026-11-16追加）---
   記事の表は min-width（3列は560px）で横スクロールさせる作りだが、WordPressが保存時に
   overflow-x の指定を消すため、スマホでは表の右側が見切れる。
   スマホ（幅600px以下）では min-width を外し、3列の表は1行ずつカード型に並べ替える。
   見出し行は「項目 ／ 内容 ／ 見方」の1行の説明として残す。PCの見え方は変わらない。 */
@media screen and (max-width: 600px) {
  .mechanics-eye-single .single-content table[style*="min-width"] { min-width: 0 !important; }
  .mechanics-eye-single .single-content table[style*="min-width"]:has(td + td + td) { border: none !important; }
  .mechanics-eye-single .single-content table[style*="min-width"]:has(td + td + td) thead tr { display: block; background: none !important; color: #666 !important; margin-bottom: 8px; }
  .mechanics-eye-single .single-content table[style*="min-width"]:has(td + td + td) th { display: inline; padding: 0 !important; background: none !important; border: none !important; color: #666 !important; font-size: 12px; font-weight: normal !important; white-space: normal !important; }
  .mechanics-eye-single .single-content table[style*="min-width"]:has(td + td + td) th + th::before { content: " ／ "; }
  .mechanics-eye-single .single-content table[style*="min-width"]:has(td + td + td) tbody tr { display: block; border: 1px solid #ddd; margin-bottom: 12px; background: #fff !important; }
  .mechanics-eye-single .single-content table[style*="min-width"]:has(td + td + td) td { display: block; padding: 6px 12px !important; border: none !important; }
  .mechanics-eye-single .single-content table[style*="min-width"]:has(td + td + td) td:first-child { background: #1a1a1a !important; color: #fff !important; font-weight: bold; }
  .mechanics-eye-single .single-content table[style*="min-width"]:has(td + td + td) td + td + td { color: #555; border-top: 1px dashed #ddd !important; }
}
