* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #f5f5f0;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

header {
  background: #003087;
  color: #fff;
  padding: 12px 18px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
header .logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #FFD700;
}
header .subtitle {
  font-size: 15px;
  opacity: 0.9;
  font-weight: 700;
}

.container { padding: 12px 14px; max-width: 1200px; margin: 0 auto; }

h2 {
  font-size: 20px;
  font-weight: 900;
  margin: 14px 0 8px;
  color: #003087;
  border-left: 6px solid #FFD700;
  padding-left: 10px;
}

/* ====== 比較テーブル ====== */
.table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: none;
  margin-bottom: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

thead tr th {
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

thead tr:first-child th { background: #003087; color: #fff; font-size: 16px; }

th.head-item   { background: #003087; color: #fff; text-align: left; padding-left: 12px; }
th.head-normal { background: #1a7fc1; color: #fff; }
th.head-gold   { background: #b8860b; color: #fff; }

th.basic   { background: #1a7fc1; color: #fff; }
th.express { background: #e67e22; color: #fff; }
th.gold-b  { background: #b8860b; color: #fff; }
th.gold-e  { background: #7B2D8B; color: #fff; }

tbody tr td {
  padding: 8px 10px;
  border-bottom: 1px solid #e8e8e8;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  vertical-align: middle;
}

tbody tr td small { font-size: 14px; font-weight: 700; }

tbody tr td:first-child {
  text-align: left;
  background: #f0f4fa;
  font-weight: 900;
  color: #003087;
  white-space: nowrap;
  font-size: 15px;
  min-width: 150px;
}

td.span-note { color: #555; }

tbody tr:hover td { background: #fffbe8; }
tbody tr:hover td:first-child { background: #e8f0fb; }

.check { color: #16a34a; font-size: 20px; }
.cross { color: #dc2626; font-size: 20px; }
.triangle { color: #d97706; font-size: 20px; }

.badge-free { background: #16a34a; color: #fff; border-radius: 4px; padding: 2px 7px; font-size: 14px; white-space: nowrap; }
.badge-paid { background: #dc2626; color: #fff; border-radius: 4px; padding: 2px 7px; font-size: 14px; white-space: nowrap; }
.badge-cond { background: #d97706; color: #fff; border-radius: 4px; padding: 2px 7px; font-size: 14px; white-space: nowrap; }

/* ====== カードグリッド ====== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.card-box {
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
  border-top: 5px solid;
}
.card-box.basic   { border-color: #1a7fc1; }
.card-box.express { border-color: #e67e22; }
.card-box.gold-b  { border-color: #b8860b; }
.card-box.gold-e  { border-color: #7B2D8B; }

.card-box h3 {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 6px;
}
.card-box.basic   h3 { color: #1a7fc1; }
.card-box.express h3 { color: #e67e22; }
.card-box.gold-b  h3 { color: #b8860b; }
.card-box.gold-e  h3 { color: #7B2D8B; }

.card-box .fee {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 6px;
}
.card-box .fee small { font-size: 14px; font-weight: 700; }
.card-box .fee .free { color: #16a34a; }
.card-box.express .fee { color: #e67e22; }
.card-box.gold-b  .fee { color: #b8860b; }
.card-box.gold-e  .fee { color: #7B2D8B; }

.card-box .rate {
  font-size: 15px;
  font-weight: 700;
  color: #444;
  margin-bottom: 6px;
}
.card-box ul {
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  color: #444;
  line-height: 1.7;
}
.card-box ul li::before { content: "▶ "; font-size: 12px; }

/* ====== ポイント還元率グラフ ====== */
.rate-section {
  background: #fff;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}
.bar-group { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed #ddd; }
.bar-label {
  font-size: 17px;
  font-weight: 900;
  color: #003087;
  margin-bottom: 6px;
}
.bars { display: flex; flex-direction: column; gap: 5px; }
.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-name {
  font-size: 15px;
  font-weight: 700;
  width: 160px;
  flex-shrink: 0;
}
.bar-track { flex: 1; background: #e8e8e8; border-radius: 4px; height: 22px; position: relative; }
.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.bar-value {
  width: 56px;
  flex-shrink: 0;
  text-align: right;
  font-size: 16px;
  font-weight: 900;
}
.bars-note { font-size: 14px; font-weight: 700; color: #777; margin-top: 8px; }

/* ====== おすすめ判定 ====== */
.recommend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.rec-box {
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  border-left: 5px solid;
}
.rec-box.basic   { border-color: #1a7fc1; }
.rec-box.express { border-color: #e67e22; }
.rec-box.gold-b  { border-color: #b8860b; }
.rec-box.gold-e  { border-color: #7B2D8B; }
.rec-box .who {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 4px;
}
.rec-box.basic   .who { color: #1a7fc1; }
.rec-box.express .who { color: #e67e22; }
.rec-box.gold-b  .who { color: #b8860b; }
.rec-box.gold-e  .who { color: #7B2D8B; }
.rec-box p { font-size: 15px; font-weight: 700; color: #444; line-height: 1.6; }

/* ====== 注記 ====== */
.notes {
  font-size: 14px;
  font-weight: 700;
  color: #555;
  background: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  line-height: 1.9;
  margin-bottom: 12px;
}

footer {
  background: #003087;
  color: #ccd;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 10px;
}

/* ====== スマホ ====== */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .recommend-grid { grid-template-columns: 1fr; }
  .bar-name { width: 120px; font-size: 14px; }
  header .logo { font-size: 21px; }
}
