
.wpcf7 input[type="submit"] {
width:100%;
padding:15px;
border-radius:10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border: none;
box-shadow: 0 3px 0 #ddd;
background: #98dd6c;
transition: 0.3s;
}
.wpcf7-submit:hover {
background: #a4dd6c;
transform: translate3d(0px, 3px, 1px);
-webkit-transform: translate3d(0px, 3px, 1px);
-moz-transform: translate3d(0px, 3px, 1px);
}

/* ===== 記事内の表デザイン（2026-09-26 追加） =====
   参考: https://code.nomad.inc/wordpress/jin/table/ （紺の見出し行・縞模様・スマホ横スクロール＋1列目固定）
   対象: 記事本文の class 指定がない表だけ（JINのランキング表・TablePressなど class 付きの表は対象外） */
.cps-post-main table:not([class]) {
  width: 100% !important;
  margin: 1.6em 0 2.2em !important;
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px #d6dee6, 0 8px 20px rgba(9, 39, 60, .07);
  font-size: 14px;
  line-height: 1.75;
  word-break: normal !important;
  overflow-wrap: anywhere;
}
.cps-post-main table:not([class]) th,
.cps-post-main table:not([class]) td {
  padding: .95em 1.15em !important;
  border: none !important;
  border-bottom: 1px solid #e2e8ee !important;
  vertical-align: top !important;
  text-align: left;
  font-weight: 400;
  color: #1f2d3a;
}
.cps-post-main table:not([class]) thead th {
  background: #09273c !important;
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: center;
  vertical-align: middle !important;
  border-bottom: none !important;
}
.cps-post-main table:not([class]) thead th + th {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .16);
}
.cps-post-main table:not([class]) tbody tr:nth-child(even) > * {
  background: #f5f8fb;
}
.cps-post-main table:not([class]) tbody tr > :first-child,
.cps-post-main table:not([class]) tbody th {
  background: #edf2f7;
  color: #09273c;
  font-weight: 700;
}
.cps-post-main table:not([class]) tbody tr:nth-child(even) > :first-child {
  background: #e4ebf2;
}
/* 1列目の幅（2026-09-27 夕方: 1列目だけ狭く行が高くなる問題の修正）
   2列の表は1列目を内容の幅に合わせて折り返さない。3列以上の表は固定幅にせず、下限だけ置いて自然に折り返す */
.cps-post-main table:not([class]) tr > :first-child {
  min-width: 9em;
}
.cps-post-main table:not([class]):not(:has(tr > :nth-child(3))) tr > :first-child {
  width: 1%;
  white-space: nowrap;
}
/* 数値だけのセル（ビルド時に class="num" を付与）は折り返さない */
.cps-post-main table:not([class]) td.num {
  white-space: nowrap;
}
.cps-post-main table:not([class]) tbody tr:last-child > * {
  border-bottom: none !important;
}
/* スマホ: 3列以上の表は横スクロールにして、1列目を固定 */
@media (max-width: 767px) {
  .cps-post-main table:not([class]) {
    font-size: 13px;
    line-height: 1.7;
  }
  .cps-post-main table:not([class]) th,
  .cps-post-main table:not([class]) td {
    padding: .8em .9em !important;
  }
  /* スマホの2列の表: 1列目は内容に合わせた幅で折り返す（固定幅にしない）。狭くなりすぎないよう下限だけ置く */
  .cps-post-main table:not([class]) tr > :first-child,
  .cps-post-main table:not([class]):not(:has(tr > :nth-child(3))) tr > :first-child {
    width: auto;
    min-width: 7em;
    white-space: normal;
  }
  .cps-post-main table:not([class]):has(tr > :nth-child(3)) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cps-post-main table:not([class]):has(tr > :nth-child(3)) th,
  .cps-post-main table:not([class]):has(tr > :nth-child(3)) td {
    min-width: 10.5em;
  }
  .cps-post-main table:not([class]):has(tr > :nth-child(3)) tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: auto;
    min-width: 8em;
    max-width: 11em;
    box-shadow: 2px 0 4px rgba(9, 39, 60, .08);
  }
  .cps-post-main table:not([class]):has(tr > :nth-child(3)) thead tr > :first-child {
    z-index: 2;
  }
  .cps-post-main table:not([class])::-webkit-scrollbar {
    height: 6px;
  }
  .cps-post-main table:not([class])::-webkit-scrollbar-track {
    background: #eef2f6;
  }
  .cps-post-main table:not([class])::-webkit-scrollbar-thumb {
    background: #09273c;
    border-radius: 3px;
  }
}
/* ===== 表デザインここまで ===== */
/* ===== 記事内のロゴ・スクショ（2026-09-27 追加、同日夕方に横幅いっぱいの表示へ変更） ===== */
.cps-post-main img.firm-logo {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto;
  border: 1px solid #e2e8ee;
  border-radius: 8px;
  margin: .4em 0 0;
}
.cps-post-main img.page-shot {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto;
  border: 1px solid #d6dee6;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(9, 39, 60, .08);
  margin: .6em 0 .2em;
}
.cps-post-main p:has(> img.page-shot) + p {
  font-size: 12px;
  color: #6b7785;
  margin-top: 0;
}
/* ===== ロゴ・スクショここまで ===== */

/* ===== 書籍紹介カード（2026-09-29 追加） ===== */
.cps-post-main .mbb-book {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.6em 0 2.2em;
  padding: 22px 18px;
  border: 1px solid #d8dee5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(9, 39, 60, .07);
}
.cps-post-main .mbb-book .mbb-book-cover {
  display: block;
  order: 1;
  width: 180px;
  max-width: 100%;
  margin: 0 auto 18px;
}
.cps-post-main .mbb-book .mbb-book-cover > a {
  display: block;
}
.cps-post-main .mbb-book .mbb-book-cover img {
  display: block;
  width: 100% !important;
  max-width: 180px;
  height: auto !important;
  max-height: 260px;
  object-fit: contain;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid #d8dee5;
  border-radius: 7px;
  background: #fff;
  box-sizing: border-box;
}
.cps-post-main .mbb-book .mbb-book-title {
  order: 2;
  width: 100%;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #09273c;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}
.cps-post-main .mbb-book .mbb-book-title::before,
.cps-post-main .mbb-book .mbb-book-title::after {
  display: none !important;
  content: none !important;
}
.cps-post-main .mbb-book .mbb-book-title a {
  color: #09273c;
  text-decoration: none;
}
.cps-post-main .mbb-book .mbb-book-description {
  order: 3;
  width: 100%;
}
.cps-post-main .mbb-book .mbb-book-description > :first-child {
  margin-top: 0;
}
.cps-post-main .mbb-book .mbb-book-description > :last-child {
  margin-bottom: 0;
}
.cps-post-main .mbb-book .mbb-book-action {
  order: 4;
  width: 440px !important;
  max-width: 100% !important;
  margin: 20px auto 6px;
}
.cps-post-main .mbb-book .mbb-book-amazon {
  display: block;
  width: 100% !important;
  max-width: none !important;
  padding: 12px 24px;
  border-radius: 7px;
  background: #f39c12;
  box-sizing: border-box;
  color: #17202a !important;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none !important;
  transition: opacity .2s ease, transform .2s ease;
}
.cps-post-main .mbb-book .mbb-book-amazon:hover {
  opacity: .88;
  transform: translateY(-1px);
}
@media (max-width: 767px) {
  .cps-post-main .mbb-book {
    padding: 18px 14px;
  }
  .cps-post-main .mbb-book .mbb-book-cover {
    width: 150px;
  }
  .cps-post-main .mbb-book .mbb-book-cover img {
    max-width: 150px;
  }
  .cps-post-main .mbb-book .mbb-book-title {
    font-size: 1.08em;
  }
  .cps-post-main .mbb-book .mbb-book-action {
    width: 100% !important;
  }
}
/* ===== 書籍紹介カードここまで ===== */

/* ===== case-book／fermi-book 共通書籍レイアウト（2026-09-29追加） ===== */
.cps-post-main .sc-u01 {
  line-height: 1.85;
}
.cps-post-main .sc-u01 .sc-book-section {
  margin: 34px 0;
  padding-bottom: 22px;
  border-bottom: 1px solid #e5e9ed;
}
.cps-post-main .sc-u01 .book-layout {
  display: flex;
  flex-direction: column;
  margin: 22px 0;
}
.cps-post-main .sc-u01 .book-layout > div {
  display: contents;
}
.cps-post-main .sc-u01 .book-layout > div > * {
  order: 3;
}
.cps-post-main .sc-u01 .book-layout > div > h3 {
  order: 1;
  margin-top: 0 !important;
}
.cps-post-main .sc-u01 .book-layout > a {
  order: 2;
  align-self: center;
  width: 180px;
  margin: 10px auto 20px;
}
.cps-post-main .sc-u01 .book-layout > a .book-cover {
  display: block;
  width: 180px;
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #d8dee5;
  border-radius: 7px;
  padding: 6px;
  box-sizing: border-box;
}
.cps-post-main .sc-u01 .book-title-link {
  color: inherit;
  text-decoration: none;
}
.cps-post-main .sc-u01 .amazon {
  display: block;
  width: calc(100% - 24px);
  max-width: 440px;
  box-sizing: border-box;
  margin: 20px auto 8px;
  background: #f39c12;
  color: #17202a !important;
  text-align: center;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 7px;
  font-weight: 700;
}
.cps-post-main .sc-u01 .note {
  font-size: .92em;
  color: #5f6d79;
}
.cps-post-main .sc-u01 .table-wrap {
  width: 100%;
  margin: 1em 0 2em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cps-post-main .sc-u01 .book-comparison-table {
  width: 100%;
  min-width: 650px;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}
.cps-post-main .sc-u01 .book-comparison-table th,
.cps-post-main .sc-u01 .book-comparison-table td {
  padding: 9px;
  border: 1px solid #ccd5de;
  line-height: 1.6;
  text-align: left;
  vertical-align: middle;
}
.cps-post-main .sc-u01 .book-comparison-table th {
  background: #eef3f7;
}
.cps-post-main .sc-u01 .book-comparison-table th:first-child,
.cps-post-main .sc-u01 .book-comparison-table td:first-child {
  width: 84px;
  text-align: center;
}
.cps-post-main .sc-u01 .book-comparison-table th:nth-child(2),
.cps-post-main .sc-u01 .book-comparison-table td:nth-child(2) {
  width: 34%;
}
.cps-post-main .sc-u01 .book-comparison-table td:first-child a {
  display: inline-block;
  line-height: 0;
}
.cps-post-main .sc-u01 .book-comparison-table .book-cover {
  display: block;
  width: 64px !important;
  max-width: 64px !important;
  height: 86px !important;
  max-height: 86px !important;
  margin: 0 auto !important;
  padding: 3px !important;
  border: 1px solid #d8dee5;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  object-fit: contain;
}
@media (max-width: 640px) {
  .cps-post-main .sc-u01 .book-layout > a {
    width: 150px;
  }
  .cps-post-main .sc-u01 .book-layout > a .book-cover {
    width: 150px;
  }
  .cps-post-main .sc-u01 .amazon {
    width: 100%;
  }
  .cps-post-main .sc-u01 .book-comparison-table {
    min-width: 590px;
    font-size: 13px;
  }
  .cps-post-main .sc-u01 .book-comparison-table th,
  .cps-post-main .sc-u01 .book-comparison-table td {
    padding: 7px;
  }
}
/* ===== case-book／fermi-book 共通書籍レイアウトここまで ===== */

