/*
Theme Name: MSJF TMP
Description: MSJFテンプレート
*/
/* Reset CSS */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

html {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption, th, td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

q, blockquote {
  quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after {
  content: "";
  content: none;
}

a img {
  border: none;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
  display: block;
}

/* editor */
 
p {
    display: block;
    margin: 1em 0;
}
strong { font-weight: bold; }
em { font-style: italic; }
blockquote {
    display: block;
    -webkit-margin-before: 1em;
    -webkit-margin-after: 1em;
    -webkit-margin-start: 40px;
    -webkit-margin-end: 40px;
}
 
/* img */
 
.aligncenter {
    display: block;
    margin: 0 auto;
}
.alignright { float: right;
margin-left:1em; }
.alignleft { float: left;
margin-right:1em;
 }
 
img[class*="wp-image-"],
img[class*="attachment-"] {
	width:inherit;
    height: auto;
    max-width: 100%;
}
 
/* clearfix */
 
.clearfix {
    overflow: hidden;
    zoom: 1;
}
.clearfix:after {
    content: "";
    display: block;
    clear: both;
}
.text-area .wrap:after {
    content: "";
    display: block;
    clear: both;
}

/* --- 比較表全体のラッパー --- */
.msfj-comparison-wrapper {
  max-width: 900px;
  margin: 60px auto; /* 上下の余白を少し広めに */
  font-family: inherit;
  line-height: 1.6;
}

/* --- 見出しと上部テキスト --- */
.msfj-comparison-header {
  text-align: center;
  margin-bottom: 30px;
}

/* ★公式サイトに馴染む見出しデザイン */
.msfj-comparison-header .msfj-heading {
  font-size: 2.2em; /* h2相当のサイズ */
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 3px solid #d91c2c; /* MSFJロゴカラーの赤 */
  display: inline-block; /* 下線を文字幅に合わせる */
}

/* ★見出し内の赤いアクセント */
.msfj-accent-red {
  color: #d91c2c;
}

.msfj-comparison-header .msfj-sub-text {
  font-size: 1.2em;
  font-weight: bold;
  color: #555;
  margin-top: 0;
}

/* --- テーブルのレスポンシブ対応 --- */
.msfj-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 25px;
  border: 1px solid #ddd; /* テーブル全体を囲む */
  border-radius: 4px;
}

/* --- テーブル本体のデザイン --- */
.msfj-comparison-table {
  width: 100%;
  min-width: 650px; /* スマホで見ても縮みすぎないように */
  border-collapse: collapse;
  background-color: #fff;
}

.msfj-comparison-table th,
.msfj-comparison-table td {
  border: 1px solid #ddd;
  padding: 18px 10px; /* パディングを少し広めに */
  text-align: center;
  vertical-align: middle;
}

.msfj-comparison-table thead th {
  background-color: #f9f9f9;
  font-weight: bold;
  color: #333;
  font-size: 1.1em;
}

.msfj-comparison-table tbody th {
  background-color: #f9f9f9;
  font-weight: bold;
  text-align: left;
  width: 20%;
  color: #333;
  padding-left: 15px;
}

.msfj-comparison-table td {
  width: 26.66%;
  font-size: 0.95em;
  color: #555;
}

/* ★MSFJ列の強調（赤へ変更） */
.msfj-comparison-table thead .msfj-col-msfj-red {
  background-color: #d91c2c; /* MSFJロゴカラーの赤 */
  color: #ffffff;
  font-size: 1.2em;
  border: 1px solid #d91c2c;
}

.msfj-comparison-table tbody .msfj-col-msfj-red {
  background-color: #fff4f4; /* 列全体に薄い赤背景 */
  border-left: 2px solid #d91c2c;
  border-right: 2px solid #d91c2c;
  color: #333; /* 文字色を濃く */
}
.msfj-comparison-table tbody tr:last-child .msfj-col-msfj-red {
  border-bottom: 2px solid #d91c2c;
}

/* ★特に良い条件の強調（赤へ変更） */
.msfj-highlight-red {
  color: #d91c2c !important; /* MSFJロゴカラーの赤 */
  font-weight: bold;
  font-size: 1.1em;
}

/* --- 下部テキスト --- */
.msfj-comparison-footer {
  text-align: center;
  background-color: #fff4f4;
  border: 2px solid #ffcccc;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
}

.msfj-comparison-footer p {
  font-size: 1.3em;
  font-weight: bold;
  color: #d91c2c;
  margin: 0;
}

/* --- スマホ表示用調整 --- */
@media screen and (max-width: 768px) {
  .msfj-comparison-wrapper {
    margin: 40px auto;
    padding: 0 15px; /* スマホでは左右に余白 */
  }
  .msfj-comparison-header .msfj-heading {
    font-size: 1.6em;
    padding-bottom: 10px;
  }
  .msfj-comparison-header .msfj-sub-text {
    font-size: 1em;
  }
  .msfj-comparison-table th,
  .msfj-comparison-table td {
    padding: 12px 5px;
    font-size: 0.85em;
  }
  .msfj-comparison-table thead .msfj-col-msfj-red {
    font-size: 1em;
  }
  .msfj-comparison-footer p {
    font-size: 1.1em;
  }
}

/* --- 比較表全体のラッパー --- */
.msfj-comparison-wrapper {
  max-width: 900px;
  margin: 60px auto;
  font-family: inherit;
  line-height: 1.6;
}

/* --- 上部テキスト（見出しはテーマ標準デザインに任せる） --- */
.msfj-accent-red {
  color: #d91c2c;
}

.msfj-sub-text {
  font-size: 1.2em;
  font-weight: bold;
  color: #555;
  margin-top: 20px;
  margin-bottom: 30px;
  text-align: center; /* サブテキストのみ中央揃え */
}

/* --- テーブルのレスポンシブ対応 --- */
.msfj-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 25px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* --- テーブル本体のデザイン --- */
.msfj-comparison-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  background-color: #fff;
}

.msfj-comparison-table th,
.msfj-comparison-table td {
  border: 1px solid #ddd;
  padding: 18px 10px;
  text-align: center;
  vertical-align: middle;
}

.msfj-comparison-table thead th {
  background-color: #f9f9f9;
  font-weight: bold;
  color: #333;
  font-size: 1.1em;
}

.msfj-comparison-table tbody th {
  background-color: #f9f9f9;
  font-weight: bold;
  text-align: left;
  width: 20%;
  color: #333;
  padding-left: 15px;
}

.msfj-comparison-table td {
  width: 26.66%;
  font-size: 0.95em;
  color: #555;
}

/* --- MSFJ列の強調 --- */
.msfj-comparison-table thead .msfj-col-msfj-red {
  background-color: #d91c2c;
  color: #ffffff;
  font-size: 1.2em;
  border: 1px solid #d91c2c;
}

.msfj-comparison-table tbody .msfj-col-msfj-red {
  background-color: #fff4f4;
  border-left: 2px solid #d91c2c;
  border-right: 2px solid #d91c2c;
  color: #333;
}
.msfj-comparison-table tbody tr:last-child .msfj-col-msfj-red {
  border-bottom: 2px solid #d91c2c;
}

/* --- 特に良い条件の強調 --- */
.msfj-highlight-red {
  color: #d91c2c !important;
  font-weight: bold;
  font-size: 1.1em;
}

/* --- 下部テキスト --- */
.msfj-comparison-footer {
  text-align: center;
  background-color: #fff4f4;
  border: 2px solid #ffcccc;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
}

.msfj-comparison-footer p {
  font-size: 1.3em;
  font-weight: bold;
  color: #d91c2c;
  margin: 0;
}

/* --- スマホ表示用調整 --- */
@media screen and (max-width: 768px) {
  .msfj-comparison-wrapper {
    margin: 40px auto;
    padding: 0 15px;
  }
  .msfj-sub-text {
    font-size: 1em;
  }
  .msfj-comparison-table th,
  .msfj-comparison-table td {
    padding: 12px 5px;
    font-size: 0.85em;
  }
  .msfj-comparison-table thead .msfj-col-msfj-red {
    font-size: 1em;
  }
  .msfj-comparison-footer p {
    font-size: 1.1em;
  }
}