/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN',
    'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.7;
  color: #333;
  background: #f5f5f5;
}

a {
  color: #06c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
}

/* Header */
.header {
  background: #00b900;
  color: #fff;
  padding: 16px;
  text-align: center;
}

.header__title {
  font-size: 1.2rem;
  font-weight: 700;
}

.header__subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 4px;
}

/* Navigation */
.nav {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.nav__link {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  background: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  border: 2px solid #e0e0e0;
  transition: border-color 0.2s;
}

.nav__link:hover {
  text-decoration: none;
  border-color: #00b900;
}

.nav__link--active {
  border-color: #00b900;
  color: #00b900;
}

/* Updated date */
.updated {
  text-align: right;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 12px;
}

/* Card */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  position: relative;
}

.card__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #00b900;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.card__badge {
  display: inline-block;
  background: #fff3e0;
  color: #e65100;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 8px 0 4px;
}

.card__provider {
  font-size: 0.8rem;
  color: #888;
}

.card__price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #00b900;
  margin: 12px 0 4px;
}

.card__price-note {
  font-size: 0.75rem;
  color: #999;
}

.card__coverage {
  font-size: 0.85rem;
  color: #555;
  margin: 8px 0;
  padding: 8px;
  background: #f9f9f9;
  border-radius: 6px;
}

.card__type {
  font-size: 0.85rem;
  color: #555;
  margin: 8px 0;
  padding: 8px;
  background: #f9f9f9;
  border-radius: 6px;
}

.card__highlights {
  list-style: none;
  margin: 8px 0 16px;
}

.card__highlights li {
  font-size: 0.85rem;
  color: #555;
  padding: 2px 0;
}

.card__highlights li::before {
  content: '✓ ';
  color: #00b900;
  font-weight: 700;
}

.card__cta {
  display: block;
  width: 100%;
  padding: 12px;
  background: #00b900;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.card__cta:hover {
  background: #009a00;
  text-decoration: none;
  color: #fff;
}

/* Info section */
.info {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.info__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
}

.info__text {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.8;
}

/* Comparison Table */
.compare {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.compare__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #333;
}

.compare__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.compare__table th,
.compare__table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.compare__table th {
  background: #f9f9f9;
  font-weight: 700;
  font-size: 0.78rem;
}

.compare__table th:first-child,
.compare__table td:first-child {
  text-align: left;
  font-weight: 600;
}

.compare__col--bad {
  color: #c62828;
  background: #fff5f5;
}

.compare__col--good {
  color: #00b900;
  background: #f5fff5;
}

.compare__note {
  font-size: 0.72rem;
  color: #999;
  margin-top: 10px;
  line-height: 1.5;
}

/* Bad example card */
.card--bad {
  border: 2px solid #ef9a9a;
  background: #fffbfb;
}

.card__badge--bad {
  background: #ffebee;
  color: #c62828;
}

.card__price--bad {
  color: #c62828;
}

.card__highlights--bad li::before {
  content: '✗ ';
  color: #c62828;
}

.card__bad-note {
  font-size: 0.72rem;
  color: #999;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

/* Compare detail link */
.compare__detail-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding: 10px;
  background: #f0f9f0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #00b900;
}

.compare__detail-link:hover {
  background: #e0f5e0;
  text-decoration: none;
}

/* Bad card merit note */
.card__bad-merit {
  font-size: 0.78rem;
  color: #555;
  margin-top: 8px;
  padding: 8px 10px;
  background: #f9f9f9;
  border-radius: 6px;
  line-height: 1.6;
}

/* Section title */
.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin: 20px 0 12px;
}

/* Back link */
.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: #00b900;
  margin-bottom: 16px;
}

/* Detail Compare Table */
.detail-compare {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.detail-compare__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.detail-compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  min-width: 520px;
}

.detail-compare__table th,
.detail-compare__table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  text-align: center;
  vertical-align: top;
}

.detail-compare__header-item {
  background: #f5f5f5;
  font-weight: 700;
  min-width: 90px;
  text-align: left;
}

.detail-compare__header-product {
  background: #f5f5f5;
  min-width: 120px;
}

.detail-compare__product-name {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  color: #333;
}

.detail-compare__product-provider {
  display: block;
  font-size: 0.7rem;
  color: #888;
  margin-top: 2px;
}

.detail-compare__item {
  text-align: left;
  font-weight: 600;
  color: #555;
  background: #fafafa;
}

.detail-compare__row--highlight {
  background: #f9fef9;
}

.text-strong-green {
  color: #00b900;
  font-weight: 700;
}

.text-muted {
  color: #bbb;
}

.text-sub {
  font-size: 0.7rem;
  color: #999;
}

/* Notice / Disclaimer */
.notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.notice__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e65100;
  margin-bottom: 6px;
}

.notice__text {
  font-size: 0.78rem;
  color: #555;
  line-height: 1.7;
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 0.75rem;
  color: #999;
}

.footer__disclaimer {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Responsive */
@media (min-width: 480px) {
  .container {
    padding: 24px;
  }

  .card {
    padding: 24px;
  }
}
